game.min.js 1.4 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192
  1. var f = f || {};
  2. f.U = f.U || {};
  3. f.l = {};
  4. q = window;
  5. q = Object.prototype;
  6. delete window._p;
  7. f.fd = function(c) {
  8. return document.createElement(c)
  9. };
  10. f.ub = function(c, d, e, g) {
  11. c.addEventListener(d, e, g)
  12. };
  13. f.I$ = "undefined" !== typeof require && require("fs");
  14. f.Wca = function(c, d) {
  15. if (c)
  16. if (c instanceof Array)
  17. for (var e = 0, g = c.length; e < g && !1 !== d.call(void 0, c[e], e); e++);
  18. else
  19. for (e in c)
  20. if (!1 === d.call(void 0, c[e], e)) break
  21. };
  22. f.Q0 = function(c) {
  23. if (!c) return f.log("invalid URL"), !1;
  24. var d = c.indexOf("://");
  25. if (-1 == d) return !1;
  26. d = c.indexOf("/", d + 3);
  27. return (-1 == d ? c : c.substring(0, d)) != location.origin
  28. };
  29. f.async = {
  30. b9: function(c) {
  31. var d = this.tca;
  32. if (!d.O_) {
  33. var e = d.length,
  34. g = d.uga,
  35. h = d.Bfa,
  36. k = h.Yh,
  37. m = h.nca,
  38. n = h.s3,
  39. h = h.D5a;
  40. if (c) {
  41. if (d.O_ = c, k) return k.call(m, c)
  42. } else {
  43. var p = Array.apply(null, arguments).slice(1),
  44. s = p.length;
  45. 0 == s ? p = null : 1 == s && (p = p[0]);
  46. g[this.index] = p;
  47. d.count--;
  48. n && n.call(h, p, e - d.count, e);
  49. 0 == d.count && k && k.apply(m, [null, g])
  50. }
  51. }
  52. },
  53. S9: function() {},
  54. f0a: function(c, d, e) {
  55. var g = f.async;
  56. if (void 0 !== e) "function" == typeof d && (d = {
  57. s3: d
  58. }), d.Yh = e || d.Yh;
  59. else if (void 0 !== d) "function" == typeof d && (d = {
  60. Yh: d
  61. });
  62. else if (void 0 !==
  63. c) d = {};
  64. else throw "arguments error!";
  65. var h = (e = c instanceof Array) ? c.length : Object.keys(c).length;
  66. if (0 == h) d.Yh && d.Yh.call(d.nca, null);
  67. else {
  68. var k = {
  69. length: h,
  70. count: h,
  71. Bfa: d,
  72. uga: e ? [] : {}
  73. };
  74. f.Wca(c, function(c, e) {
  75. if (k.O_) return !1;
  76. var h = d.Yh || d.s3 ? g.b9.bind({
  77. tca: k,
  78. index: e
  79. }) : g.S9;
  80. c(h, e)
  81. })
  82. }
  83. },
  84. map: function(c, d, e) {
  85. var g = this,
  86. h = arguments.length;
  87. "function" == typeof d && (d = {
  88. X0: d
  89. });
  90. if (3 === h) d.Yh = e || d.Yh;
  91. else if (2 > h) throw "arguments error!";
  92. "function" == typeof d && (d = {
  93. X0: d
  94. });
  95. if (void 0 !== e) d.Yh = e || d.Yh;
  96. else if (void 0 === c) throw "arguments error!";
  97. var k = (h = c instanceof Array) ? c.length : Object.keys(c).length;
  98. if (0 === k) d.Yh && d.Yh.call(d.nca, null);
  99. else {
  100. var m = {
  101. length: k,
  102. count: k,
  103. Bfa: d,
  104. uga: h ? [] : {}
  105. };
  106. f.Wca(c, function(c, e) {
  107. if (m.O_) return !1;
  108. var h = d.Yh ? g.b9.bind({
  109. tca: m,
  110. index: e
  111. }) : g.S9;
  112. d.X0.call(d.hDa, c, e, h)
  113. })
  114. }
  115. }
  116. };
  117. f.path = {
  118. join: function() {
  119. for (var c = arguments.length, d = "", e = 0; e < c; e++) d = (d + ("" == d ? "" : "/") + arguments[e]).replace(/(\/|\\\\)$/, "");
  120. return d
  121. },
  122. zp: function(c) {
  123. return (c = /(\.[^\.\/\?\\]*)(\?.*)?$/.exec(c)) ? c[1] : null
  124. },
  125. o_a: function(c) {
  126. if (c) {
  127. var d = c.lastIndexOf(".");
  128. if (-1 !== d) return c.substring(0, d)
  129. }
  130. return c
  131. },
  132. Dwa: function(c, d) {
  133. var e = c.indexOf("?");
  134. 0 < e && (c = c.substring(0, e));
  135. e = /(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(c.replace(/(\/|\\\\)$/, ""));
  136. if (!e) return null;
  137. e = e[2];
  138. return d && c.substring(c.length - d.length).toLowerCase() ==
  139. d.toLowerCase() ? e.substring(0, e.length - d.length) : e
  140. },
  141. dirname: function(c) {
  142. return c.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/, "$2")
  143. },
  144. c_: function(c, d) {
  145. d = d || "";
  146. var e = c.indexOf("?"),
  147. g = "";
  148. 0 < e && (g = c.substring(e), c = c.substring(0, e));
  149. e = c.lastIndexOf(".");
  150. return 0 > e ? c + d + g : c.substring(0, e) + d + g
  151. },
  152. pB: function(c, d, e) {
  153. if (0 == d.indexOf(".")) return this.c_(c, d);
  154. var g = c.indexOf("?"),
  155. h = "";
  156. e = e ? this.zp(c) : "";
  157. 0 < g && (h = c.substring(g), c = c.substring(0, g));
  158. g = c.lastIndexOf("/");
  159. return c.substring(0, 0 >= g ? 0 : g + 1) + d + e + h
  160. }
  161. };
  162. f.L = {
  163. P$: {},
  164. rN: {},
  165. Ssa: {},
  166. xv: {},
  167. MQ: "",
  168. vwa: "",
  169. jj: {},
  170. LH: function() {
  171. return window.XMLHttpRequest ? new window.XMLHttpRequest : new ActiveXObject("MSXML2.XMLHTTP")
  172. },
  173. n$: function(c) {
  174. var d = c[0],
  175. e = c[1],
  176. g = c[2],
  177. h = ["", null, null];
  178. if (1 === c.length) h[1] = d instanceof Array ? d : [d];
  179. else if (2 === c.length) "function" == typeof e ? (h[1] = d instanceof Array ? d : [d], h[2] = e) : (h[0] = d || "", h[1] = e instanceof Array ? e : [e]);
  180. else if (3 === c.length) h[0] = d || "", h[1] = e instanceof Array ? e : [e], h[2] = g;
  181. else throw "arguments error to load js!";
  182. return h
  183. },
  184. ODa: function(c, d, e) {
  185. var g = this,
  186. h = g.P$,
  187. k = g.n$(arguments); - 1 < navigator.userAgent.indexOf("Trident/5") ? g.W$(k[0], k[1], 0, k[2]) : f.async.map(k[1], function(c, d, e) {
  188. c = f.path.join(k[0], c);
  189. if (h[c]) return e(null);
  190. g.c9(c, !1, e)
  191. }, k[2])
  192. },
  193. hfa: function(c, d, e) {
  194. var g = this.Vsa(),
  195. h = this.n$(arguments);
  196. this.ODa(h[0], h[1], function(c) {
  197. if (c) throw c;
  198. g.parentNode.removeChild(g);
  199. if (h[2]) h[2]()
  200. })
  201. },
  202. c9: function(c, d, e) {
  203. var g = document,
  204. h = f.fd("script");
  205. h.async = d;
  206. h.src = c;
  207. this.P$[c] = !0;
  208. f.ub(h, "load", function() {
  209. this.removeEventListener("load",
  210. arguments.callee, !1);
  211. e()
  212. }, !1);
  213. f.ub(h, "error", function() {
  214. e("Load " + c + " failed!")
  215. }, !1);
  216. g.body.appendChild(h)
  217. },
  218. W$: function(c, d, e, g) {
  219. if (e >= d.length) g && g();
  220. else {
  221. var h = this;
  222. h.c9(f.path.join(c, d[e]), !1, function(k) {
  223. if (k) return g(k);
  224. h.W$(c, d, e + 1, g)
  225. })
  226. }
  227. },
  228. Vsa: function() {
  229. var c = document,
  230. d = c.getElementById("cocos2d_loadJsImg");
  231. if (!d) {
  232. d = f.fd("img");
  233. f.Y$ && (d.src = f.Y$);
  234. c = c.getElementById(f.vf.kj.id);
  235. c.style.backgroundColor = "black";
  236. c.parentNode.appendChild(d);
  237. var e = getComputedStyle ? getComputedStyle(c) : c.currentStyle;
  238. e || (e = {
  239. width: c.width,
  240. height: c.height
  241. });
  242. d.style.left = c.offsetLeft + (parseFloat(e.width) - d.width) / 2 + "px";
  243. d.style.top = c.offsetTop + (parseFloat(e.height) - d.height) / 2 + "px";
  244. d.style.position = "absolute"
  245. }
  246. return d
  247. },
  248. lQ: function(c, d) {
  249. if (f.I$) require("fs").F0a(c, function(c, e) {
  250. c ? d(c) : d(null, e.toString())
  251. });
  252. else {
  253. var e = this.LH(),
  254. g = "load " + c + " failed!";
  255. e.open("GET", c, !0);
  256. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (e.setRequestHeader("Accept-Charset", "utf-8"), e.onreadystatechange = function() {
  257. 4 ==
  258. e.readyState && 200 == e.status ? d(null, e.responseText) : d(g)
  259. }) : (e.overrideMimeType && e.overrideMimeType("text/plain; charset\x3dutf-8"), e.onload = function() {
  260. 4 == e.readyState && 200 == e.status ? d(null, e.responseText) : d(g)
  261. });
  262. e.send(null)
  263. }
  264. },
  265. X$: function(c) {
  266. if (f.I$) return require("fs").G0a(c).toString();
  267. var d = this.LH();
  268. d.open("GET", c, !1);
  269. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? d.setRequestHeader("Accept-Charset", "utf-8") : d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dutf-8");
  270. d.send(null);
  271. return 4 == !d.readyState || 200 != d.status ? null : d.responseText
  272. },
  273. ifa: function(c, d) {
  274. this.lQ(c, function(e, g) {
  275. try {
  276. e ? d(e) : d(null, JSON.parse(g))
  277. } catch (h) {
  278. throw "load json [" + c + "] failed : " + h;
  279. }
  280. })
  281. },
  282. V8: function(c) {
  283. return null != /(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(c)
  284. },
  285. eI: function(c, d, e) {
  286. var g = !0;
  287. void 0 !== e ? g = null == d.Q0 ? g : d.Q0 : void 0 !== d && (e = d);
  288. var h = new Image;
  289. g && "file://" != location.origin && (h.crossOrigin = "Anonymous");
  290. f.ub(h, "load", function() {
  291. this.removeEventListener("load", arguments.callee, !1);
  292. this.removeEventListener("error", arguments.callee, !1);
  293. e && e(null, h)
  294. });
  295. f.ub(h, "error", function() {
  296. this.removeEventListener("error", arguments.callee, !1);
  297. e && e("load image failed")
  298. });
  299. h.src = c;
  300. return h
  301. },
  302. Wsa: function(c, d, e) {
  303. var g = this,
  304. h = null;
  305. (d = c.type) ? (d = "." + d.toLowerCase(), h = c.src ? c.src : c.name + d) : (h = c, d = f.path.zp(h));
  306. var k = g.jj[h];
  307. if (k) return e(null, k);
  308. k = g.rN[d.toLowerCase()];
  309. if (!k) return f.error("loader for [" + d + "] not exists!"), e();
  310. d = g.u0(k.gP ? k.gP() : g.MQ, h);
  311. k.load(d, h, c, function(c, d) {
  312. c ? (f.log(c),
  313. g.jj[h] = null, delete g.jj[h], e()) : (g.jj[h] = d, e(null, d))
  314. })
  315. },
  316. u0: function(c, d) {
  317. var e = this.Ssa,
  318. g = f.path;
  319. if (void 0 !== c && void 0 === d) {
  320. d = c;
  321. var h = g.zp(d),
  322. h = h ? h.toLowerCase() : "";
  323. c = (h = this.rN[h]) ? h.gP ? h.gP() : this.MQ : this.MQ
  324. }
  325. d = f.path.join(c || "", d);
  326. if (d.match(/[\/(\\\\)]lang[\/(\\\\)]/i)) {
  327. if (e[d]) return e[d];
  328. g = g.zp(d) || "";
  329. d = e[d] = d.substring(0, d.length - g.length) + "_" + f.Ed.language + g
  330. }
  331. return d
  332. },
  333. load: function(c, d, e) {
  334. if (void 0 !== e) "function" == typeof d && (d = {
  335. s3: d
  336. });
  337. else if (void 0 !== d) "function" == typeof d && (e = d, d = {});
  338. else if (void 0 !==
  339. c) d = {};
  340. else throw "arguments error!";
  341. d.Yh = function(c, d) {
  342. c && f.log(c);
  343. e && e(d)
  344. };
  345. c instanceof Array || (c = [c]);
  346. d.X0 = this.Wsa;
  347. d.hDa = this;
  348. f.async.map(c, d)
  349. },
  350. y$: function(c, d) {
  351. var e = this.xv,
  352. g = [],
  353. h;
  354. for (h in c) {
  355. var k = c[h];
  356. e[h] = k;
  357. g.push(k)
  358. }
  359. this.load(g, d)
  360. },
  361. k_a: function(c, d) {
  362. var e = this,
  363. g = e.zd(c);
  364. g ? e.y$(g.filenames, d) : e.load(c, function(c) {
  365. e.y$(c[0].filenames, d)
  366. })
  367. },
  368. Xp: function(c, d) {
  369. if (c && d) {
  370. if ("string" == typeof c) return this.rN[c.trim().toLowerCase()] = d;
  371. for (var e = 0, g = c.length; e < g; e++) this.rN["." + c[e].trim().toLowerCase()] =
  372. d
  373. }
  374. },
  375. zd: function(c) {
  376. return this.jj[c] || this.jj[this.xv[c]]
  377. },
  378. wh: function(c) {
  379. var d = this.jj,
  380. e = this.xv;
  381. delete d[c];
  382. delete d[e[c]];
  383. delete e[c]
  384. },
  385. R0a: function() {
  386. var c = this.jj,
  387. d = this.xv,
  388. e;
  389. for (e in c) delete c[e];
  390. for (e in d) delete d[e]
  391. }
  392. };
  393. (function() {
  394. function c() {
  395. f.Qa && f.vf.ht && f.Qa.dispatchEvent(f.vf.ht)
  396. }
  397. function d() {
  398. f.Qa && f.vf.gt && f.Qa.dispatchEvent(f.vf.gt)
  399. }
  400. var e = window,
  401. g, h;
  402. "undefined" !== typeof document.hidden ? (g = "hidden", h = "visibilitychange") : "undefined" !== typeof document.mozHidden ? (g = "mozHidden", h = "mozvisibilitychange") : "undefined" !== typeof document.msHidden ? (g = "msHidden", h = "msvisibilitychange") : "undefined" !== typeof document.webkitHidden && (g = "webkitHidden", h = "webkitvisibilitychange");
  403. g ? f.ub(document, h, function() {
  404. document[g] ? d() :
  405. c()
  406. }, !1) : (f.ub(e, "blur", d, !1), f.ub(e, "focus", c, !1));
  407. "onpageshow" in window && "onpagehide" in window && (f.ub(e, "pagehide", d, !1), f.ub(e, "pageshow", c, !1));
  408. h = e = null
  409. })();
  410. f.log = f.warn = f.error = f.assert = function() {};
  411. f.xca = function(c, d) {
  412. for (var e = ["webgl", "experimental-webgl", "webkit-3d", "moz-webgl"], g = null, h = 0; h < e.length; ++h) {
  413. try {
  414. g = c.getContext(e[h], d)
  415. } catch (k) {}
  416. if (g) break
  417. }
  418. return g
  419. };
  420. f.Asa = function(c, d) {
  421. f.fb = 0;
  422. f.na = 1;
  423. var e = f.Ed = {};
  424. e.kma = "en";
  425. e.DLa = "zh";
  426. e.ELa = "fr";
  427. e.HLa = "it";
  428. e.FLa = "de";
  429. e.OLa = "es";
  430. e.NLa = "ru";
  431. e.JLa = "ko";
  432. e.ILa = "ja";
  433. e.GLa = "hu";
  434. e.MLa = "pt";
  435. e.CLa = "ar";
  436. e.KLa = "no";
  437. e.LLa = "pl";
  438. e.Wma = "Windows";
  439. e.l6 = "iOS";
  440. e.m6 = "OS X";
  441. e.Uma = "UNIX";
  442. e.Tma = "Linux";
  443. e.Sma = "Android";
  444. e.Vma = "Unknown";
  445. e.xja = "wechat";
  446. e.tja = "androidbrowser";
  447. e.cS = "ie";
  448. e.uja = "qqbrowser";
  449. e.Y3 = "mqqbrowser";
  450. e.vja = "ucbrowser";
  451. e.gKa = "360browser";
  452. e.hKa = "baiduboxapp";
  453. e.X3 = "baidubrowser";
  454. e.iKa = "maxthon";
  455. e.dS = "opera";
  456. e.jKa = "miuibrowser";
  457. e.jD = "firefox";
  458. e.eS = "safari";
  459. e.bS = "chrome";
  460. e.wja = "unknown";
  461. e.$Ca = !1;
  462. var g = [e.X3, e.dS, e.jD, e.bS, e.eS],
  463. h = [e.X3, e.dS, e.jD, e.bS, e.eS, e.vja, e.uja, e.Y3, e.cS],
  464. k = window,
  465. m = k.navigator,
  466. n = document.documentElement,
  467. p = m.userAgent.toLowerCase();
  468. e.Or = -1 != p.indexOf("mobile") || -1 != p.indexOf("android");
  469. var s = m.language,
  470. s = (s = s ? s : m.browserLanguage) ? s.split("-")[0] : e.kma;
  471. e.language = s;
  472. var s = e.wja,
  473. u = p.match(/micromessenger|qqbrowser|mqqbrowser|ucbrowser|360browser|baiduboxapp|baidubrowser|maxthon|trident|opera|miuibrowser|firefox/i) ||
  474. p.match(/chrome|safari/i);
  475. u && 0 < u.length && (s = u[0].toLowerCase(), "micromessenger" == s ? s = e.xja : "safari" === s && p.match(/android.*applewebkit/) ? s = e.tja : "trident" == s && (s = e.cS));
  476. e.gx = s;
  477. e.iva = -1 < h.indexOf(e.gx);
  478. h = parseInt(c[d.LQ]);
  479. s = f.na;
  480. u = f.fd("Canvas");
  481. f.BG = !0;
  482. g = -1 == g.indexOf(e.gx);
  483. if (1 === h || 0 === h && (e.Or || g)) s = f.fb;
  484. s != f.na || k.WebGLRenderingContext && f.xca(u, {
  485. stencil: !0,
  486. preserveDrawingBuffer: !0
  487. }) || (0 == h ? s = f.fb : f.BG = !1);
  488. if (s == f.fb) try {
  489. u.getContext("2d")
  490. } catch (v) {
  491. f.BG = !1
  492. }
  493. f.K = s;
  494. try {
  495. e.RN = !!new(k.AudioContext ||
  496. k.webkitAudioContext || k.mozAudioContext)
  497. } catch (z) {
  498. e.RN = !1
  499. }
  500. try {
  501. var A = e.localStorage = k.localStorage;
  502. A.setItem("storage", "");
  503. A.removeItem("storage");
  504. A = null
  505. } catch (B) {
  506. "SECURITY_ERR" !== B.name && "QuotaExceededError" !== B.name || f.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"), e.localStorage = function() {}
  507. }
  508. A = e.$Z = {
  509. canvas: !0
  510. };
  511. f.K == f.na && (A.opengl = !0);
  512. void 0 !== n.ontouchstart || m.msPointerEnabled ? A.touches = !0 : void 0 !== n.onmouseup && (A.mouse = !0);
  513. void 0 !== n.onkeyup && (A.keyboard = !0);
  514. if (k.DeviceMotionEvent || k.DeviceOrientationEvent) A.accelerometer = !0;
  515. k = p.match(/(iPad|iPhone|iPod)/i) ? !0 : !1;
  516. p = p.match(/android/i) || m.platform.match(/android/i) ? !0 : !1;
  517. n = e.Vma; - 1 != m.appVersion.indexOf("Win") ? n = e.Wma : k ? n = e.l6 : -1 != m.appVersion.indexOf("Mac") ? n = e.m6 : -1 != m.appVersion.indexOf("X11") ? n = e.Uma : -1 != m.appVersion.indexOf("Linux") ? n = e.Tma : p && (n = e.Sma);
  518. e.y1 = n;
  519. e.TRa = function() {};
  520. e.hRa = function() {};
  521. e.I1a = function() {};
  522. e.fRa = function() {
  523. var c;
  524. c = "" + ("isMobile : " + this.Or + "\r\n");
  525. c += "language : " + this.language +
  526. "\r\n";
  527. c += "browserType : " + this.gx + "\r\n";
  528. c += "capabilities : " + JSON.stringify(this.$Z) + "\r\n";
  529. c += "os : " + this.y1 + "\r\n";
  530. f.log(c)
  531. }
  532. };
  533. f.hMa = 0;
  534. f.iMa = 1;
  535. f.fMa = 2;
  536. f.gMa = 3;
  537. f.If = null;
  538. f.s = null;
  539. f.Sb = null;
  540. f.wra = null;
  541. f.uN = !1;
  542. f.$aa = !1;
  543. f.Zaa = function(c) {
  544. var d, e;
  545. if (!f.$aa) {
  546. f.$aa = !0;
  547. var g = window;
  548. g.a2 = g.requestAnimationFrame || g.webkitRequestAnimationFrame || g.mozRequestAnimationFrame || g.oRequestAnimationFrame || g.msRequestAnimationFrame;
  549. var h = f.mc(c) || f.mc("#" + c),
  550. k;
  551. "CANVAS" == h.tagName ? (d = d || h.width, e = e || h.height, k = f.container = f.fd("DIV"), c = f.Sb = h, c.parentNode.insertBefore(k, c), c.cx(k), k.setAttribute("id", "Cocos2dGameContainer")) : ("DIV" != h.tagName && f.log("Warning: target element is not a DIV or CANVAS"), d = d || h.clientWidth, e = e || h.clientHeight,
  552. k = f.container = h, c = f.Sb = f.mc(f.fd("CANVAS")), h.appendChild(c));
  553. c.Qba("gameCanvas");
  554. c.setAttribute("width", d || 480);
  555. c.setAttribute("height", e || 320);
  556. c.setAttribute("tabindex", 99);
  557. c.style.outline = "none";
  558. h = k.style;
  559. h.width = (d || 480) + "px";
  560. h.height = (e || 320) + "px";
  561. h.margin = "0 auto";
  562. h.position = "relative";
  563. h.overflow = "hidden";
  564. k.top = "100%";
  565. f.K == f.na && (f.s = f.W5a = f.xca(c, {
  566. stencil: !0,
  567. preserveDrawingBuffer: !0,
  568. antialias: !f.Ed.Or,
  569. alpha: !1
  570. }));
  571. f.s ? (g.gl = f.s, f.If = new f.gla(f.s), f.uN = !0, f.nb.Fsa(), f.xg.FF()) : (f.s = c.getContext("2d"),
  572. f.Ysa = f.s, f.s.translate(0, c.height), f.If = f.a5 ? new f.a5(f.s) : null);
  573. f.wra = k;
  574. f.log(f.JS);
  575. f.pua();
  576. f.Ed.Or && (d = f.fd("style"), d.type = "text/css", document.body.appendChild(d), d.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);}");
  577. f.view = f.HS.rW();
  578. f.Gea.EFa(f.Sb);
  579. f.Q = f.ic.rW();
  580. f.Q.B2 && f.Q.B2(f.view);
  581. f.gq = f.Q.Y;
  582. f.fGa = new f.pK;
  583. f.dFa = new f.jna
  584. }
  585. };
  586. f.tV = function() {
  587. if (f.K !== f.na) throw "This feature supports WebGL render mode only.";
  588. };
  589. f.H$ = !1;
  590. f.pua = function() {
  591. f.H$ = !1;
  592. f.Sb.oncontextmenu = function() {
  593. if (!f.H$) return !1
  594. }
  595. };
  596. f.vf = {
  597. U4: 0,
  598. Wka: 1,
  599. MKa: 2,
  600. Vka: 3,
  601. BS: 4,
  602. V4: 5,
  603. T4: 6,
  604. UJ: "game_on_hide",
  605. vD: "game_on_show",
  606. gt: null,
  607. ht: null,
  608. FOa: [],
  609. Vm: {
  610. M_: "engineDir",
  611. KQa: "dependencies",
  612. iH: "debugMode",
  613. cIa: "showFPS",
  614. cP: "frameRate",
  615. id: "id",
  616. LQ: "renderMode",
  617. iDa: "jsList",
  618. Wwa: "classReleaseMode"
  619. },
  620. saa: !1,
  621. FX: !1,
  622. Ce: !0,
  623. MW: null,
  624. kj: null,
  625. Sp: null,
  626. M_a: null,
  627. k3a: function(c) {
  628. this.kj[this.Vm.cP] = c;
  629. this.MW && clearInterval(this.MW);
  630. this.Ce = !0;
  631. this.ZX()
  632. },
  633. ZX: function() {
  634. var c = this,
  635. d, e = c.kj,
  636. g = c.Vm,
  637. h = window,
  638. k = e[g.cP],
  639. m = f.Q;
  640. m.OGa(e[g.cIa]);
  641. h.a2 && 60 == k ? (d = function() {
  642. c.Ce ||
  643. (m.lfa(), h.a2(d))
  644. }, h.a2(d)) : (d = function() {
  645. m.lfa()
  646. }, c.MW = setInterval(d, 1E3 / k));
  647. c.Ce = !1
  648. },
  649. eGa: function(c) {
  650. function d() {
  651. c && (e.kj[e.Vm.id] = c);
  652. e.saa ? f.BG && (e.Fqa = setInterval(function() {
  653. e.FX && (f.Zaa(e.kj[e.Vm.id]), e.ZX(), e.gt = e.gt || new f.kq(e.UJ), e.gt.setUserData(e), e.ht = e.ht || new f.kq(e.vD), e.ht.setUserData(e), e.Sp(), clearInterval(e.Fqa))
  654. }, 10)) : e.mFa(function() {
  655. f.BG && (f.Zaa(e.kj[e.Vm.id]), e.ZX(), e.gt = e.gt || new f.kq(e.UJ), e.gt.setUserData(e), e.ht = e.ht || new f.kq(e.vD), e.ht.setUserData(e), e.Sp())
  656. })
  657. }
  658. var e =
  659. this;
  660. document.body ? d() : f.ub(window, "load", function() {
  661. this.removeEventListener("load", arguments.callee, !1);
  662. d()
  663. }, !1)
  664. },
  665. vsa: function() {
  666. function c(c) {
  667. c[d.M_] = c[d.M_] || "frameworks/cocos2d-html5";
  668. null == c[d.iH] && (c[d.iH] = 0);
  669. c[d.cP] = c[d.cP] || 60;
  670. null == c[d.LQ] && (c[d.LQ] = 1);
  671. return c
  672. }
  673. var d = this.Vm;
  674. if (document.ccConfig) this.kj = c(document.ccConfig);
  675. else try {
  676. for (var e = document.getElementsByTagName("script"), g = 0; g < e.length; g++) {
  677. var h = e[g].getAttribute("cocos");
  678. if ("" == h || h) break
  679. }
  680. var k, m, n;
  681. if (g < e.length) {
  682. if (k = e[g].src) n =
  683. /(.*)\//.exec(k)[0], f.L.MQ = n, k = f.path.join(n, "project.json");
  684. m = f.L.X$(k)
  685. }
  686. m || (m = f.L.X$("project.json"));
  687. var p = JSON.parse(m);
  688. this.kj = c(p || {})
  689. } catch (s) {
  690. f.log("Failed to read or parse project.json"), this.kj = c({})
  691. }
  692. f.Asa(this.kj, d)
  693. },
  694. Psa: {},
  695. q$: function(c, d, e) {
  696. var g = this.Psa;
  697. if (g[d]) return null;
  698. e = e || "";
  699. var h = [],
  700. k = c[d];
  701. if (!k) throw "can not find module [" + d + "]";
  702. d = f.path;
  703. for (var m = 0, n = k.length; m < n; m++) {
  704. var p = k[m];
  705. if (!g[p]) {
  706. var s = d.zp(p);
  707. s ? ".js" == s.toLowerCase() && h.push(d.join(e, p)) : (s = this.q$(c, p, e)) && (h = h.concat(s));
  708. g[p] = 1
  709. }
  710. }
  711. return h
  712. },
  713. mFa: function(c) {
  714. var d = this,
  715. e = d.kj,
  716. g = d.Vm,
  717. h = e[g.M_],
  718. k = f.L;
  719. if (f.BG) {
  720. d.saa = !0;
  721. var m = e[g.iDa] || [];
  722. f.N ? k.hfa("", m, function(e) {
  723. if (e) throw e;
  724. d.FX = !0;
  725. c && c()
  726. }) : (g = f.path.join(h, "moduleConfig.json"), k.ifa(g, function(g, k) {
  727. if (g) throw g;
  728. var s = e.modules || [],
  729. u = k.module,
  730. v = [];
  731. f.K == f.na ? s.splice(0, 0, "shaders") : 0 > s.indexOf("core") && s.splice(0, 0, "core");
  732. for (var z = 0, A = s.length; z < A; z++) {
  733. var B = d.q$(u, s[z], h);
  734. B && (v = v.concat(B))
  735. }
  736. v = v.concat(m);
  737. f.L.hfa(v, function(e) {
  738. if (e) throw e;
  739. d.FX = !0;
  740. c && c()
  741. })
  742. }))
  743. } else f.error("Can not support render!")
  744. }
  745. };
  746. f.vf.vsa();
  747. f.l = {
  748. N3: "cc.ActionManager.addAction(): action must be non-null",
  749. aja: "cocos2d: removeAction: Target not found",
  750. JJa: "cc.ActionManager.removeActionByTag(): an invalid tag",
  751. KJa: "cc.ActionManager.removeActionByTag(): target must be non-null",
  752. Zia: "cc.ActionManager.getActionByTag(): an invalid tag",
  753. $ia: "cocos2d : getActionByTag(tag \x3d %s): Action not found",
  754. $wa: "cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)",
  755. axa: "Expected 'data' dict, but not found. Config file: %s",
  756. bxa: "Please load the resource first : %s",
  757. bla: "cocos2d: Director: Error in gettimeofday",
  758. cla: "cocos2d: Director: unrecognized projection",
  759. XKa: "cocos2d: Director: unrecognized projection",
  760. ala: "cocos2d: Director: Error in gettimeofday",
  761. $ka: "running scene should not null",
  762. Z4: "the scene should not null",
  763. mB: "element type is wrong!",
  764. Vna: "CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s",
  765. Wna: "cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.",
  766. Xna: "cc.scheduler.scheduleCallbackForTarget(): target should be non-null.",
  767. Tna: "cc.Scheduler.pauseTarget():target should be non-null",
  768. Una: "cc.Scheduler.resumeTarget():target should be non-null",
  769. Sna: "cc.Scheduler.isTargetPaused():target should be non-null",
  770. Cma: "getZOrder is deprecated. Please use getLocalZOrder instead.",
  771. Nma: "setZOrder is deprecated. Please use setLocalZOrder instead.",
  772. Ama: "RotationX !\x3d RotationY. Don't know which one to return",
  773. Bma: "ScaleX !\x3d ScaleY. Don't know which one to return",
  774. wma: "An Node can't be added as a child of itself.",
  775. xma: "child already added. It can't be added again",
  776. yma: "child must be non-null",
  777. Hma: "removeFromParentAndCleanup is deprecated. Use removeFromParent instead",
  778. Fma: "argument tag is an invalid tag",
  779. Gma: "cocos2d: removeChildByTag(tag \x3d %s): child not found!",
  780. Ema: "removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead",
  781. Oma: "cc.Node.stopActionBy(): argument tag an invalid tag",
  782. zma: "cc.Node.getActionByTag(): argument tag is an invalid tag",
  783. Jma: "resumeSchedulerAndActions is deprecated, please use resume instead.",
  784. Dma: "pauseSchedulerAndActions is deprecated, please use pause instead.",
  785. vma: "Unknown callback function",
  786. Ima: "child must be non-null",
  787. Kma: "cc.Node.runAction(): action must be non-null",
  788. Lma: "callback function must be non-null",
  789. Mma: "interval must be positive",
  790. $La: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
  791. jja: "cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses",
  792. TJa: "",
  793. P3: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
  794. Opa: "cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!",
  795. Qpa: "cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!",
  796. Ppa: "cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!",
  797. Npa: "cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil",
  798. zla: "Invalid parameter.",
  799. LK: "Don't call this method if the event is for touch.",
  800. Uya: "Invalid scene graph priority!",
  801. Vya: "0 priority is forbidden for fixed priority since it's used for scene graph based priority.",
  802. Zya: "Invalid listener type!",
  803. $ya: "Can't set fixed priority with scene graph based listener.",
  804. Wya: "Invalid parameters.",
  805. Xya: "listener must be a cc.EventListener object when adding a fixed priority listener",
  806. Yya: "The listener has been registered, please don't register it again.",
  807. nma: "parameters should not be ending with null in Javascript",
  808. oma: "Invalid index in MultiplexLayer switchTo message",
  809. pma: "Invalid index in MultiplexLayer switchTo message",
  810. mma: "cc.Layer.addLayer(): layer should be non-null",
  811. kla: "Resolution not valid",
  812. lla: "should set resolutionPolicy",
  813. JCa: "The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s",
  814. ria: "cc.swap is being modified from original macro, please check usage",
  815. rB: "WebGL error %s",
  816. ewa: "cocos2d: cc.AnimationCache: No animations were found in provided dictionary.",
  817. fwa: "cc.AnimationCache. Invalid animation format",
  818. mwa: "cc.AnimationCache.addAnimations(): File could not be found",
  819. gwa: "cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
  820. hwa: "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.",
  821. iwa: "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.",
  822. jwa: "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.",
  823. kwa: "cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
  824. lwa: "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.",
  825. nwa: "cc.AnimationCache.addAnimations(): Invalid texture file name",
  826. zoa: "cc.Sprite.reorderChild(): this child is not in children list",
  827. roa: "cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode",
  828. Coa: "cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found",
  829. Doa: "cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index",
  830. Boa: "setDisplayFrame is deprecated, please use setSpriteFrame instead.",
  831. koa: "cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode",
  832. toa: "cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null",
  833. uoa: "cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null",
  834. voa: " is null, please check.",
  835. soa: "cc.Sprite.initWithFile(): filename should be non-null",
  836. Eoa: "cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null",
  837. Aoa: "cc.Sprite.reorderChild(): child should be non-null",
  838. loa: "cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode",
  839. moa: "cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode",
  840. noa: "cc.Sprite.addChild(): child should be non-null",
  841. Goa: "cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode",
  842. DMa: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  843. xoa: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  844. ooa: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
  845. poa: "cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture",
  846. woa: "Sprite.initWithTexture(): Argument must be non-nil ",
  847. Foa: "Invalid spriteFrameName",
  848. Hoa: "Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.",
  849. EMa: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
  850. yoa: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
  851. qoa: "cc.SpriteBatchNode.addChild(): child should be non-null",
  852. doa: "cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children",
  853. foa: "cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.",
  854. goa: "cocos2d: WARNING: Not enough memory to resize the atlas",
  855. ioa: "cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite",
  856. hoa: "cc.SpriteBatchNode.addChild(): sprite batch node should contain the child",
  857. eoa: "cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null",
  858. joa: "cc.SpriteBatchNode.addChild():child should be non-null",
  859. kIa: "cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist",
  860. mIa: "cocos2d: WARNING: an alias with name %s already exists",
  861. jIa: "cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit",
  862. pIa: "cocos2d: cc.SpriteFrameCahce: Frame %s not found",
  863. lIa: "Please load the resource first : %s",
  864. nIa: "cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null",
  865. oIa: "Argument must be non-nil",
  866. lS: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  867. Mja: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  868. Ija: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
  869. Lja: "Sprite.initWithTexture(): Argument must be non-nil ",
  870. Jja: "cc.Sprite.addChild(): child should be non-null",
  871. Oja: "Invalid spriteFrameName",
  872. Pja: "Invalid argument: cc.Sprite texture setter expects a CCTexture2D.",
  873. Qja: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
  874. Nja: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
  875. Kja: "cc.SpriteBatchNode.addChild(): child should be non-null",
  876. hpa: "cocos2d: Could not open file: %s",
  877. z7: "cc.TextureAtlas.insertQuad(): invalid totalQuads",
  878. ipa: "cc.TextureAtlas.initWithTexture():texture should be non-null",
  879. spa: "cc.TextureAtlas.updateQuad(): quad should be non-null",
  880. tpa: "cc.TextureAtlas.updateQuad(): Invalid index",
  881. lpa: "cc.TextureAtlas.insertQuad(): Invalid index",
  882. mpa: "cc.TextureAtlas.insertQuad(): Invalid index + amount",
  883. jpa: "cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex",
  884. kpa: "cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex",
  885. qpa: "cc.TextureAtlas.removeQuadAtIndex(): Invalid index",
  886. rpa: "cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds",
  887. npa: "cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds",
  888. opa: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex",
  889. ppa: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex",
  890. BIa: "TextureCache:addPVRTCImage does not support on HTML5",
  891. zIa: "TextureCache:addPVRTCImage does not support on HTML5",
  892. AIa: "addPVRImage does not support on HTML5",
  893. CIa: "cocos2d: Couldn't add UIImage in TextureCache",
  894. EIa: "cocos2d: '%s' id\x3d%s %s x %s",
  895. tia: "cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s",
  896. FIa: "cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)",
  897. DIa: "cc.Texture.addUIImage(): image should be non-null",
  898. Zoa: "initWithETCFile does not support on HTML5",
  899. cpa: "initWithPVRFile does not support on HTML5",
  900. epa: "initWithPVRTCData does not support on HTML5",
  901. Voa: "cc.Texture.addImage(): path should be non-null",
  902. apa: "cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil",
  903. bpa: "cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s",
  904. gpa: "initWithString isn't supported on cocos2d-html5",
  905. $oa: "initWithETCFile does not support on HTML5",
  906. dpa: "initWithPVRFile does not support on HTML5",
  907. fpa: "initWithPVRTCData does not support on HTML5",
  908. Xoa: "bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format",
  909. Uoa: "cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha",
  910. Woa: "cc.Texture.addImage(): path should be non-null",
  911. Yoa: "NSInternalInconsistencyException",
  912. Hf: "Missing file: %s",
  913. Tfa: "cc.radiansToDegress() should be called cc.radiansToDegrees()",
  914. HT: "Rect width exceeds maximum margin: %s",
  915. GT: "Rect height exceeds maximum margin: %s",
  916. Ala: "If program goes here, there should be event in dispatch.",
  917. Bla: "_inDispatch should be 1 here."
  918. };
  919. f.IM = function(c) {
  920. if (f.Sb) {
  921. var d = f.Xsa,
  922. e = document;
  923. if (!d) {
  924. var g = e.createElement("Div"),
  925. d = g.style;
  926. g.setAttribute("id", "logInfoDiv");
  927. f.Sb.parentNode.appendChild(g);
  928. g.setAttribute("width", "200");
  929. g.setAttribute("height", f.Sb.height);
  930. d.zIndex = "99999";
  931. d.position = "absolute";
  932. d.top = "0";
  933. d.left = "0";
  934. d = f.Xsa = e.createElement("textarea");
  935. e = d.style;
  936. d.setAttribute("rows", "20");
  937. d.setAttribute("cols", "30");
  938. d.setAttribute("disabled", !0);
  939. g.appendChild(d);
  940. e.backgroundColor = "transparent";
  941. e.borderBottom = "1px solid #cccccc";
  942. e.borderRightWidth = "0px";
  943. e.borderLeftWidth = "0px";
  944. e.borderTopWidth = "0px";
  945. e.borderTopStyle = "none";
  946. e.borderRightStyle = "none";
  947. e.borderLeftStyle = "none";
  948. e.padding = "0px";
  949. e.margin = 0
  950. }
  951. c = "string" == typeof c ? c : JSON.stringify(c);
  952. d.value = d.value + c + "\r\n";
  953. d.scrollTop = d.scrollHeight
  954. }
  955. };
  956. f.gM = function(c) {
  957. if ("object" === typeof c) try {
  958. return JSON.stringify(c)
  959. } catch (d) {
  960. return ""
  961. } else return c
  962. };
  963. console.log && (f.log = function(c) {
  964. for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, f.gM(arguments[d]));
  965. console.log(c)
  966. }, f.warn = console.warn ? function(c) {
  967. for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, f.gM(arguments[d]));
  968. console.warn(c)
  969. } : f.log, f.error = console.error ? function(c) {
  970. for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, f.gM(arguments[d]));
  971. console.error(c)
  972. } : f.log, f.assert = function(c, d) {
  973. if (!c && d) {
  974. for (var e = 2; e < arguments.length; e++) d = d.replace(/(%s)|(%d)/, f.gM(arguments[e]));
  975. throw d;
  976. }
  977. });
  978. var aa = f.vf.kj[f.vf.Vm.iH],
  979. ba = f.vf;
  980. console.log && aa === ba.Wka || (f.log = aa == ba.BS ? f.IM.bind(f) : function() {});
  981. aa && aa != ba.U4 && aa != ba.Vka && aa != ba.T4 || (f.warn = function() {});
  982. aa != ba.BS && aa != ba.V4 && console.warn || (f.warn = f.IM.bind(f));
  983. aa && aa != ba.U4 ? aa != ba.BS && aa != ba.V4 && aa != ba.T4 && console.error || (f.error = f.IM.bind(f), f.assert = function(c, d) {
  984. if (!c && d) {
  985. for (var e = 2; e < arguments.length; e++) d = d.replace("%s", arguments[e]);
  986. f.IM(d)
  987. }
  988. }) : (f.error = function() {}, f.assert = function() {});
  989. f.L.LDa = function(c, d) {
  990. var e = this,
  991. g = this.LH(),
  992. h = "load " + c + " failed!";
  993. g.open("GET", c, !0);
  994. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (g.setRequestHeader("Accept-Charset", "x-user-defined"), g.onreadystatechange = function() {
  995. if (4 == g.readyState && 200 == g.status) {
  996. var c = f.zV(g.responseBody);
  997. d(null, e.NN(c))
  998. } else d(h)
  999. }) : (g.overrideMimeType && g.overrideMimeType("text/plain; charset\x3dx-user-defined"), g.onload = function() {
  1000. 4 == g.readyState && 200 == g.status ? d(null, e.NN(g.responseText)) : d(h)
  1001. });
  1002. g.send(null)
  1003. };
  1004. f.L.NN = function(c) {
  1005. if (!c) return null;
  1006. for (var d = new Uint8Array(c.length), e = 0; e < c.length; e++) d[e] = c.charCodeAt(e) & 255;
  1007. return d
  1008. };
  1009. f.L.gfa = function(c) {
  1010. var d = this.LH(),
  1011. e = "load " + c + " failed!";
  1012. d.open("GET", c, !1);
  1013. c = null;
  1014. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  1015. d.setRequestHeader("Accept-Charset", "x-user-defined");
  1016. d.send(null);
  1017. if (200 != d.status) return f.log(e), null;
  1018. (d = f.zV(d.responseBody)) && (c = this.NN(d))
  1019. } else {
  1020. d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dx-user-defined");
  1021. d.send(null);
  1022. if (200 != d.status) return f.log(e), null;
  1023. c = this.NN(d.responseText)
  1024. }
  1025. return c
  1026. };
  1027. var Uint8Array = Uint8Array || Array;
  1028. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  1029. var ca = f.fd("script");
  1030. ca.type = "text/vbscript";
  1031. ca.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';
  1032. document.body.appendChild(ca);
  1033. f.zV = function(c) {
  1034. for (var d = {}, e = 0; 256 > e; e++)
  1035. for (var g = 0; 256 > g; g++) d[String.fromCharCode(e + 256 * g)] = String.fromCharCode(e) + String.fromCharCode(g);
  1036. e = IEBinaryToArray_ByteStr(c);
  1037. c = IEBinaryToArray_ByteStr_Last(c);
  1038. return e.replace(/[\s\S]/g, function(c) {
  1039. return d[c]
  1040. }) + c
  1041. }
  1042. };
  1043. f = f || {};
  1044. f.Y$ = "data:image/gif;base64,R0lGODlhEAAQALMNAD8/P7+/vyoqKlVVVX9/fxUVFUBAQGBgYMDAwC8vL5CQkP///wAAAP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAANACwAAAAAEAAQAAAEO5DJSau9OOvNex0IMnDIsiCkiW6g6BmKYlBFkhSUEgQKlQCARG6nEBwOgl+QApMdCIRD7YZ5RjlGpCUCACH5BAUAAA0ALAAAAgAOAA4AAAQ6kLGB0JA4M7QW0hrngRllkYyhKAYqKUGguAws0ypLS8JxCLQDgXAIDg+FRKIA6v0SAECCBpXSkstMBAAh+QQFAAANACwAAAAACgAQAAAEOJDJORAac6K1kDSKYmydpASBUl0mqmRfaGTCcQgwcxDEke+9XO2WkxQSiUIuAQAkls0n7JgsWq8RACH5BAUAAA0ALAAAAAAOAA4AAAQ6kMlplDIzTxWC0oxwHALnDQgySAdBHNWFLAvCukc215JIZihVIZEogDIJACBxnCSXTcmwGK1ar1hrBAAh+QQFAAANACwAAAAAEAAKAAAEN5DJKc4RM+tDyNFTkSQF5xmKYmQJACTVpQSBwrpJNteZSGYoFWjIGCAQA2IGsVgglBOmEyoxIiMAIfkEBQAADQAsAgAAAA4ADgAABDmQSVZSKjPPBEDSGucJxyGA1XUQxAFma/tOpDlnhqIYN6MEAUXvF+zldrMBAjHoIRYLhBMqvSmZkggAIfkEBQAADQAsBgAAAAoAEAAABDeQyUmrnSWlYhMASfeFVbZdjHAcgnUQxOHCcqWylKEohqUEAYVkgEAMfkEJYrFA6HhKJsJCNFoiACH5BAUAAA0ALAIAAgAOAA4AAAQ3kMlJq704611SKloCAEk4lln3DQgyUMJxCBKyLAh1EMRR3wiDQmHY9SQslyIQUMRmlmVTIyRaIgA7";
  1045. f.Qz = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAAgCAYAAAD9qabkAAAKQ2lDQ1BJQ0MgcHJvZmlsZQAAeNqdU3dYk/cWPt/3ZQ9WQtjwsZdsgQAiI6wIyBBZohCSAGGEEBJAxYWIClYUFRGcSFXEgtUKSJ2I4qAouGdBiohai1VcOO4f3Ke1fXrv7e371/u855zn/M55zw+AERImkeaiagA5UoU8Otgfj09IxMm9gAIVSOAEIBDmy8JnBcUAAPADeXh+dLA//AGvbwACAHDVLiQSx+H/g7pQJlcAIJEA4CIS5wsBkFIAyC5UyBQAyBgAsFOzZAoAlAAAbHl8QiIAqg0A7PRJPgUA2KmT3BcA2KIcqQgAjQEAmShHJAJAuwBgVYFSLALAwgCgrEAiLgTArgGAWbYyRwKAvQUAdo5YkA9AYACAmUIszAAgOAIAQx4TzQMgTAOgMNK/4KlfcIW4SAEAwMuVzZdL0jMUuJXQGnfy8ODiIeLCbLFCYRcpEGYJ5CKcl5sjE0jnA0zODAAAGvnRwf44P5Dn5uTh5mbnbO/0xaL+a/BvIj4h8d/+vIwCBAAQTs/v2l/l5dYDcMcBsHW/a6lbANpWAGjf+V0z2wmgWgrQevmLeTj8QB6eoVDIPB0cCgsL7SViob0w44s+/zPhb+CLfvb8QB7+23rwAHGaQJmtwKOD/XFhbnauUo7nywRCMW735yP+x4V//Y4p0eI0sVwsFYrxWIm4UCJNx3m5UpFEIcmV4hLpfzLxH5b9CZN3DQCshk/ATrYHtctswH7uAQKLDljSdgBAfvMtjBoLkQAQZzQyefcAAJO/+Y9AKwEAzZek4wAAvOgYXKiUF0zGCAAARKCBKrBBBwzBFKzADpzBHbzAFwJhBkRADCTAPBBCBuSAHAqhGJZBGVTAOtgEtbADGqARmuEQtMExOA3n4BJcgetwFwZgGJ7CGLyGCQRByAgTYSE6iBFijtgizggXmY4EImFINJKApCDpiBRRIsXIcqQCqUJqkV1II/ItchQ5jVxA+pDbyCAyivyKvEcxlIGyUQPUAnVAuagfGorGoHPRdDQPXYCWomvRGrQePYC2oqfRS+h1dAB9io5jgNExDmaM2WFcjIdFYIlYGibHFmPlWDVWjzVjHVg3dhUbwJ5h7wgkAouAE+wIXoQQwmyCkJBHWExYQ6gl7CO0EroIVwmDhDHCJyKTqE+0JXoS+cR4YjqxkFhGrCbuIR4hniVeJw4TX5NIJA7JkuROCiElkDJJC0lrSNtILaRTpD7SEGmcTCbrkG3J3uQIsoCsIJeRt5APkE+S+8nD5LcUOsWI4kwJoiRSpJQSSjVlP+UEpZ8yQpmgqlHNqZ7UCKqIOp9aSW2gdlAvU4epEzR1miXNmxZDy6Qto9XQmmlnafdoL+l0ugndgx5Fl9CX0mvoB+nn6YP0dwwNhg2Dx0hiKBlrGXsZpxi3GS+ZTKYF05eZyFQw1zIbmWeYD5hvVVgq9ip8FZHKEpU6lVaVfpXnqlRVc1U/1XmqC1SrVQ+rXlZ9pkZVs1DjqQnUFqvVqR1Vu6k2rs5Sd1KPUM9RX6O+X/2C+mMNsoaFRqCGSKNUY7fGGY0hFsYyZfFYQtZyVgPrLGuYTWJbsvnsTHYF+xt2L3tMU0NzqmasZpFmneZxzQEOxrHg8DnZnErOIc4NznstAy0/LbHWaq1mrX6tN9p62r7aYu1y7Rbt69rvdXCdQJ0snfU6bTr3dQm6NrpRuoW623XP6j7TY+t56Qn1yvUO6d3RR/Vt9KP1F+rv1u/RHzcwNAg2kBlsMThj8MyQY+hrmGm40fCE4agRy2i6kcRoo9FJoye4Ju6HZ+M1eBc+ZqxvHGKsNN5l3Gs8YWJpMtukxKTF5L4pzZRrmma60bTTdMzMyCzcrNisyeyOOdWca55hvtm82/yNhaVFnMVKizaLx5balnzLBZZNlvesmFY+VnlW9VbXrEnWXOss623WV2xQG1ebDJs6m8u2qK2brcR2m23fFOIUjynSKfVTbtox7PzsCuya7AbtOfZh9iX2bfbPHcwcEh3WO3Q7fHJ0dcx2bHC866ThNMOpxKnD6VdnG2ehc53zNRemS5DLEpd2lxdTbaeKp26fesuV5RruutK10/Wjm7ub3K3ZbdTdzD3Ffav7TS6bG8ldwz3vQfTw91jicczjnaebp8LzkOcvXnZeWV77vR5Ps5wmntYwbcjbxFvgvct7YDo+PWX6zukDPsY+Ap96n4e+pr4i3z2+I37Wfpl+B/ye+zv6y/2P+L/hefIW8U4FYAHBAeUBvYEagbMDawMfBJkEpQc1BY0FuwYvDD4VQgwJDVkfcpNvwBfyG/ljM9xnLJrRFcoInRVaG/owzCZMHtYRjobPCN8Qfm+m+UzpzLYIiOBHbIi4H2kZmRf5fRQpKjKqLupRtFN0cXT3LNas5Fn7Z72O8Y+pjLk722q2cnZnrGpsUmxj7Ju4gLiquIF4h/hF8ZcSdBMkCe2J5MTYxD2J43MC52yaM5zkmlSWdGOu5dyiuRfm6c7Lnnc8WTVZkHw4hZgSl7I/5YMgQlAvGE/lp25NHRPyhJuFT0W+oo2iUbG3uEo8kuadVpX2ON07fUP6aIZPRnXGMwlPUit5kRmSuSPzTVZE1t6sz9lx2S05lJyUnKNSDWmWtCvXMLcot09mKyuTDeR55m3KG5OHyvfkI/lz89sVbIVM0aO0Uq5QDhZML6greFsYW3i4SL1IWtQz32b+6vkjC4IWfL2QsFC4sLPYuHhZ8eAiv0W7FiOLUxd3LjFdUrpkeGnw0n3LaMuylv1Q4lhSVfJqedzyjlKD0qWlQyuCVzSVqZTJy26u9Fq5YxVhlWRV72qX1VtWfyoXlV+scKyorviwRrjm4ldOX9V89Xlt2treSrfK7etI66Trbqz3Wb+vSr1qQdXQhvANrRvxjeUbX21K3nShemr1js20zcrNAzVhNe1bzLas2/KhNqP2ep1/XctW/a2rt77ZJtrWv913e/MOgx0VO97vlOy8tSt4V2u9RX31btLugt2PGmIbur/mft24R3dPxZ6Pe6V7B/ZF7+tqdG9s3K+/v7IJbVI2jR5IOnDlm4Bv2pvtmne1cFoqDsJB5cEn36Z8e+NQ6KHOw9zDzd+Zf7f1COtIeSvSOr91rC2jbaA9ob3v6IyjnR1eHUe+t/9+7zHjY3XHNY9XnqCdKD3x+eSCk+OnZKeenU4/PdSZ3Hn3TPyZa11RXb1nQ8+ePxd07ky3X/fJ897nj13wvHD0Ivdi2yW3S609rj1HfnD94UivW2/rZffL7Vc8rnT0Tes70e/Tf/pqwNVz1/jXLl2feb3vxuwbt24m3Ry4Jbr1+Hb27Rd3Cu5M3F16j3iv/L7a/eoH+g/qf7T+sWXAbeD4YMBgz8NZD+8OCYee/pT/04fh0kfMR9UjRiONj50fHxsNGr3yZM6T4aeypxPPyn5W/3nrc6vn3/3i+0vPWPzY8Av5i8+/rnmp83Lvq6mvOscjxx+8znk98ab8rc7bfe+477rfx70fmSj8QP5Q89H6Y8en0E/3Pud8/vwv94Tz+4A5JREAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcAgcQLxxUBNp/AAAQZ0lEQVR42u2be3QVVZbGv1N17829eRLyIKAEOiISEtPhJTJAYuyBDmhWjAEx4iAGBhxA4wABbVAMWUAeykMCM+HRTcBRWkNH2l5moS0LCCrQTkYeQWBQSCAIgYRXEpKbW/XNH5zS4noR7faPEeu31l0h4dSpvc+t/Z199jkFWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhY/H9D/MR9qfKnLj/00U71aqfJn9+HCkCR/Wk36ddsgyJ/1wF4fkDfqqm9/gPsUeTnVr6a2xlQfnxdI7zs0W7irzD17Ytb2WT7EeNv/r4ox1O3Quf2QP2pgt9utwfout4FQE8AVBSlnaRmfvAURQkg2RlAbwB9AThlW5L0GaiKojhJhgOIBqDa7XaPrusdPtr5kQwF0BVAAoBIABRCKDd5aFUhRDAAw57eAOwAhKIoupft3zoqhB1AqLwuHIBut9uFt02qqvqRDJR2dAEQJj/BAOjn56dqmma+xiaECAEQAWAggLsB6A6HQ2iaZggBhBAqgEAAnQB0kzaEmT4hAITT6VQ8Ho/HJAKKECJQtr8LwD1y/A1/vcdfEUIEyfZ9AcQbYvZ942Px88L2UwlJR0dH0EMPPbRj5syZPUeNGrXR7Xb/641xIwJ1XY9NSUlZm52dfW+XLl1w8uRJzJ8//+OGhoYJqqqe1TSt1Wsm9NN1PSIqKmr12rVrR5WUlHy1bdu2AQCumWc3IYRD1/UwVVXnFRQUTIuNjUVzczN2797dWFJSkq8oymZd15sAGAEnFEUJ1nX9nzIzM1dnZmZGh4SE4OTJk5g5c+Zf29vbp9pstrMej6fVOyhIhgAYU1hY+B+hoaGoqKg4XVlZea+XTULTNFdCQsLGiRMnPuR2u3UhBOV9eeDAAWXTpk095DUe6WsoyRE5OTlr0tLSAux2O/bs2cO5c+e+pijKUpIXSHaQVAGkvPLKK++6XK4OksJLCFlXV2cvKSlJBFAjhU+x2WwhHo9nUHp6+urMzMy7wsLCUF9fjxdffPHjxsbGiTab7WuPx9NiEutOuq4PyMjI+M+srKyYqKgoHD58GDNmzNjq8XhyVFU9b/q+LH7hBAEYu3PnTlZVVRFAGgCX6f/tAHoOHDjwa0p27txp/JO9e/f+QM7cipw9nfL3kQBKt2zZQpJ87rnn6mQmoHilw2EACs+cOUOSrK+vZ1NTE0nyo48+IoBpxswoBcMJ4Ndjx471kOTFixe5d+9ekqTH42H//v13A4jyzpAURfEH0H/OnDnthu1z5sw558MmFUCPWbNmnaMP3nrrLZoyDmP8Hl68eDFJ8siRI9/Yc+zYMQKYKdtAztrTrl27xptRXV1NAKMAOAyBBBA/Y8aMdpLs6Ojgxx9//E37+++//29yvFXppwvAwMcee8xjtDHsuXLlCqOjo//ia3wsfpkoALqFhoZuIckJEyackimm3dQmEMDUmpoakmRISMhhAHOHDx/eQJIbN24kgKEyMAHAFRMTs2XXrl1saWkhSZ0kp0+ffhrAr3wEW/S8efOukORLL72kA1gKYMPWrVtJkk899dRJAHeYrgsEsIQkjx8/TgDvAPjd448/3kaSb7zxBmUa7vC6z53BwcFbSHL9+vU6Sc6aNes8gF5ewWAH0PfVV18lSQL4DMBGIcQ6AKtcLleBFC2jXtFt8ODBe0iyoqKCAJYByC8qKmJDQwOzsrK+MAmqo1OnTveHhoa+GRkZ+XZkZOSWiIiIvzgcjk9mzpypkWRmZuZpmbYbGV4AgPnNzc1sa2sjgN0A5iQmJtaSZHl5OQHcb/K3s81mW0uSTU1NBFAFYFbfvn1Pk+Tbb79NAA8IIVzW42/hByA+Pz/fLR/2ZXIda05NI/z9/TeR5J49ewhgqlxTrtI0jY2NjQQw3zTLuWJiYjaUlJToS5Ys6fjkk080kwDEeAmADcA9GzZsIElGRUW9CyAWwLApU6Y0kOSKFSsog9QICGdERMTGsrIyZmVlEcC9AB4IDw/fTpLbtm0jgN94CUAnAJmVlZVcs2aNZ/LkyRdJcvbs2b4EwAkgZfPmzTxw4AABFAN4BkC6vFeUSewcAO5duXIlSTIhIaEawGMAxgKYAmAGgCS73e5vrKVk/yGythANYEhCQsIhkly+fDkBpKqqGmL6DgIALDKN/3yZpVWQZGVlJQE8aPI3KiMjo5okV61aRQAjAPQBMPfIkSN0u90EUCBtsPiFEwpgbn19PdetW2fM5N4zQ9ekpKQqkty0aRMBpMjiWM6JEydIkoqirJUFJ6iq6pAPVy8A6cZMehMBUACEuVyuFwG8HBwcPEIWx367ZMkSjSQXLVrUJouTRorrkAHdA8BdQogsAOsKCwtJkmPGjDkvMw2bDDo/ADEjRoz4XylyFbm5uY0mAbjLyyZ/AOOrq6tZVlbWsWDBgo69e/eyoqKCgwcPPg4gSQaoIRbp27dvN7KF+tLSUr28vJwFBQXtMpvpYRIM7+wrAkDeqVOnePbsWQIoNKfzpiXPg8uXLydJJicnNwF4f+nSpW6STEtLq5fjYwhk1wkTJtSQ5Ouvv04AqTKj+N2xY8dIkgEBAW/Ie1v8wncRegwZMmQvSfbr12+3Ua33WqPfOWbMmP0kWVpaSgCDZAqcfejQIWNZsEGKgvnh9gfQb9myZd8nAEJVVZtMkUNk8CcNHTq0liR1XWdYWNhmH1mJIme80OnTp18x1rp5eXkEsNJms92Fb7e/IgEsvHz5Mp999tkmAI/l5uZeMC0B7vEqqAYAyL106RJJsra2lpWVld+sucePH38ZQG+5NncBeOrgwYMkqbe3t/Po0aOsra011wAWyl0H7x0JJ4DE+fPnu0kyPT29DsDdUrBuyNKEEAkAdpw/f/6GeoEM8GUmfwEgPCIiopwkGxsbabPZPgOw6L777vvm4p49e26VGYjFLxUhhD+ApLKyMp44ccIoVnXybgbgzkcfffRzklyzZg0BDJYCMMmoCwQFBXkLgLGWvvcWAgBToSsKwNPTp09vMR7UuLi4rwH0lgU8c/Db5ezbeeTIkRWzZ8++aMxu+fn5BPCADBwHgP4LFy701NXVEUAJgAnPP/98kyxMNgHo53A4zH77BQQETMvPz7+Um5vbBuAlAFMSExPPmdbVL0qh8Acw8fDhw5SCchVAEYAVb775JknyhRdeaJYztHfxMwLAaqNwCGC2FArv8x0hAHKNLGPKlCme5OTk/Zs3bzb7O0wKiiG8KXl5ed8IxenTp0mSR48e1UmyW7duWywBuD2xyQcgFECgoih+8H1gyJgZV5Lkyy+/3CbTRIePtl2HDBmyw1QBHyGDdXZdXR1JUghRKkXBjOMHCoBdpr0L3nvvPZLkF198wejo6O0A4lVVDTb74HQ6AwD8Wq7Jh8rgGgDgQ13XjVR8qaxJuADMbmlpYXl5uV5UVNRWUFDgfv/993Vj/ZydnU1c37eHXML4S3viAcQqitJD2l104cIFY8lTKsXSBWBMVVWVcd9yed2A1NTUQ6Zl00CvLMMOoHdubm6zFIlWOf5+PsY/Kj09vdrU11QAwwGsv3jxIk21m2DZr10I0RXAuAcffPBgaWkpV69eTYfDcdiwUxY0w6xw+flX8L1xApjevXv3lREREaW6rofB93aPDUDQpEmTMgHgtddeqwBwEd/utZvpqK6uPgEAcXFxkA94NwB9unfvjrNnz4LklwDcf08iIqv66Zs2bXrl4YcfxooVKxAbG7uqrq5uAYA2TdOEqqpGYIi2tjbl6aeffu/YsWPv5uTk7JaC1wHg4Pnz542MwoVvTx+21dbWYvjw4WLixIl+2dnZ9lGjRgmSTE1NRUpKCkwFTGiaxtTU1OXTpk3707Bhw/6g67pDipnT4biuj7qut+Lbk3Vf1tTUXI9qu91Pjq1QFEUBgJaWFgBo8yGOQ8eNGxcAAOvXr/8QwBUfYygAKL169eoCABcuXACAWtn2hOGv0+kMNO1KiPDw8F4A4rZv3/7R1KlTR0+bNu1ht9u9r1+/fqitrQXJgwDarRC6/QjPzs4+QJIffPCB9/aQmSAA43ft2mW0e1QGoi8CAPyLsZccExNTC2BlRkbGRdOyYJCP2csBIN6UAZzCd7cBbQCijYp/dXU1ExMTz6SmptaMHj36f9LS0vYlJCRsl6mxIWSdu3fv/g5J7t+/nwC2AShMTk6+SJKff/45AWRLYbD7+fndAeDf5BJnLoCCyZMnt5JkdnZ2C4B/F0KEm1Pu+Pj4rST55ZdfEsBWAK+mpaVdMo3raDn7KwDuSEpK+m+S3LBhAwG8DuCtHTt2UBbpjgC408vvcFVV15HkuXPnjMp+p5uMf0RcXNyHJNnQ0EBVVfcCWBQXF3fG+Jv0yxABPwB5LS0tRmFxN4BlTzzxxGWSXLx4sS5F3GGFy+1Hp5SUlJq6ujoWFxdTpsZ2H+0iIyMj/0iSWVlZX5mr5jfJFroPGzasxlhTnjp1iiTZ3NxMl8tlrCd9pfa9SkpKSJI5OTmnZOageLUZZqxvfVFWVkZcPwdgNwnSCKPqb17jkmR8fPzfZMDZ5CRsFBmNI7h95s2b1yhT7/MAYmStwCx4vy0uLqa3v5qmEcCfvSr1QQAeXb16NY3Cm3HQ55133iGAp+SxZTNhKSkpfzUddkrFjYevzAQCeGjp0qXfsYckY2NjTwD4leGDLCL2HTdunNtoY+zWSHFcIHdsFCtcfuZ1vO9Eqs3m7/F47sb1k2qX/f3997W2tl7BjWfpBYDOzzzzzIVJkyZh0KBBCwEsB3AJvl9AETabLcDj8dwRFRW1ctasWb8JCgpSzp07d62wsPC/Wltb8xRFadR1/ZqPXYbgAQMGbI2Pjw/+6quv9ldVVT0r01ezuPRJSUn5Y9euXXVd11WzDaqq6kePHm3+7LPPRgO4KlNuxWazhXo8nuTk5OSXMjIyEl0uFxoaGtqKior+dPXq1VdUVT0jj7r68ieoT58+vx8yZMjdx48fP1JVVTVF9m20VW02WyfZf97YsWPjXS4X6urqWvPy8jYCWCyEuEDS8FdVFKWzruv//OSTTy5OTk7uqWkaPv3007qysrJ8RVH+LI8ym8/rB3Tu3HnRI488knLo0KG2ffv2ZQI4C98vP6mqqoZqmpaclpa2cOTIkX39/f3R0NDQUVxc/G5TU9PLqqrWa5rWLH1QVFUN0TStX1JSUvH48eP7BwYG4uDBg1cKCgpeBbBe2u+2Qug2EwD5N5sMPuNtMe8XP4TT6Qxoa2sbIGeXvUKIK7d4IISiKC5d1wPljOfA9bPwzYqiXNV13dd6Uqiq6qdpml2mpe02m63d4/G4vcTF5fF47LJf71nJA6BZVVW3pmntuPHlmAD5wk6Q9NnbHp9vHaqq6tA0zU/64PZhk1FfCZB9G/23ALiqKEqzD39tpvbGUqoFwFUhRLP3yzpCCDtJpxyXDulfG27+pqRR3DXsUWVd4Yq0x/taVQjhIhksC8L+ABpM9ljBf5sKwI8pIBr75L5E4vvu+UNeG/a+hv+AL7yFH8qPtOfHjtOP6V/Bja8D6z/B2Nys/1u9Xv33tLf4GfF/LC4GCJwByWIAAAAASUVORK5CYII\x3d";
  1046. f.VW = "data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAAlAAD/4QMpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjAtYzA2MCA2MS4xMzQ3NzcsIDIwMTAvMDIvMTItMTc6MzI6MDAgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjM4MDBEMDY2QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjM4MDBEMDY1QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzUgV2luZG93cyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkU2RTk0OEM4OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkU2RTk0OEM5OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQADQkJCQoJDQoKDRMMCwwTFhENDREWGhUVFhUVGhkUFhUVFhQZGR0fIB8dGScnKionJzk4ODg5QEBAQEBAQEBAQAEODAwOEA4RDw8RFA4RDhQVERISERUfFRUXFRUfKB0ZGRkZHSgjJiAgICYjLCwoKCwsNzc1NzdAQEBAQEBAQEBA/8AAEQgAyACgAwEiAAIRAQMRAf/EALAAAAEFAQEAAAAAAAAAAAAAAAQAAgMFBgcBAQEAAwEBAAAAAAAAAAAAAAAAAQMEAgUQAAIBAgIEBwoLBgQGAwAAAAECAwAEEQUhMRIGQVFxsTITFGGBwdEiQlKSMzWRoeFicqKyI1NzFYJjJDQWB9KjVCbxwkNkJWXik3QRAAIBAgMFBQcDBQEAAAAAAAABAhEDIRIEMUFRcTJhwVIUBZGhsSJyEzOB0ULhYpIjUxX/2gAMAwEAAhEDEQA/AMJSpUqAVKlXuFAeUq9wpUB5XuFe4V6ooDzZHDox0CnGMinzwl7Z8NajaHeoO3vmTBZBtp9YUIqTEV5ROxHKnWRnaU8VRMhFBUjpV7hSoSeUq9pUB5Sr2lhQHlKvcK8oBV7hSFSRrtaKAZs07YNPM1pG2xJIAw1jSeandry/8X4m8VCKkWwaWwam7Xl/4v1W8VLtmX/i/VbxUoKkWwakSM407tmX/i/VbxUmzGwjQsjdY41IARie/U0IbZO0kNtCXnOCkEBeFu4KI3Bs7DNb27ya+jDx3kJeEnpJJEcQVbWDsk17u5urd591ucZkWhym2Vnd9RkCDEpFxDRpbw0bunu5mlp2De2FMLYXOD2wB2xbOeraUcYGJ72mlSUiqzzdzMd3Z3mixltA2yzcK/NlHM1DQyRXce1HocdNOEfJXZ88y9ZojOqhiBszIRiHQ8Y4cK5TvHuzLljHNMqxNoDjLFraHHnjPxcNCGVbxEUzYNTx5jZSxhpW6qTzlwJ+DCvO2Zf+L9VvFSgqyHYNLYNTdssPxfibxUu15f8Ai/VPiqCakOwa82DU/a8v/F+JvFTDdWPBL8R8VKCvYRYV5UzoMAy6QdIIqI0B4KJtxiRQwou16QoGUkntH5Tz0RbZbmF2hktraSVBo2lUkY8tDye0flPPXTslVUyiyVRsjqUOA4yMT8dW2ram2m6UVTNq9S7EIyUVJydMTn/6DnP+im9Wl+g5z/opvVrpteEhQWY4AaSTwAVf5WPiZh/9S5/zj7zltzlmYWkfWXNvJDGTgGcYDHirR7i7mSbwXParsFMrgb7w6jKw/wCmnc9I14kF3vpvCljbMyWMOJL4aEiB8qU/ObUK7HYWVrl1pFZWiCOCBQqKOLjPGTrNZZqKbUXVHq2nNwTuJRk1VpbgXN8s7Rk5ym0UQQzhIG2NAjhxHWbI+gCBVjBBFbwxwQqEiiUJGg1BVGAFe7dV28WYLYZFmF2Th1UD7JGjymGyn1iK5OyzIBGB1HgrLZhamzumQAGJwSqnSCh1q3GOCodxt4cxurdcpzuN4cyhiWaF5Bg09udUmnWw1H/jV9nFuJ7Quo+8h8peThFA+047vduyMtk7fYqTl07YFdfUufMPzT5p71UdtlmYXaGS2t3mQHAsgxANdadYJopLe4QS2867EsZ4QfCNYrCFbjdDPmgkYyWFxgVf04ifJf6ScNdRUW1XBb6FU5TjF5EpSSrGu/s5lN+g5z/opvVpfoOc/wCim9WtdHnatvObJXDW7xLGhB8nrPaY9/HCr+tEdPCVaSeDoYLnqF63lzW4/PFSW3ecxbI84VSzWUwUaSdg0DXXK5nvAipnd6qgKvWnQO7pri9ZUEmm3Vl2j1kr8pRlFRyquBNZjGxQ/S56Y1S2fu9OVueon11Szahoou06QoQUXadIVCD2FJJ7R+U89dMydv8Axdn+TH9muZye0flPPXQstlK5Tbka1gUjlC1q0vVLkeb6r+O3Tx9xcY1nt8c0NrZCyiOE1108NYjGv1joo7Js1jzKyScYLIvkzL6LDwHXVJksH9Sb49dKNq0tj1jA6uriOCL+02FWX7iVtZX1/AzaHTyeoauKn2MX9W79zebiZCuR5MjSrhfXuEtwTrUeZH+yNfdrRNcxI6IzhXlJEak6WIGJ2Rw4ChWnChndtlVBLMdQA0k1gbXNMzzDfDLs6mjaPKppJbWwJ1bOwwxw43OnHh71YT3DpfWUJmFlb5jHHDdeXBHIsrRea5TSqvxqG04cNN62vetoCS4tre5mgnkGE9q+3DKOkuI2WX6LDQRRHWDh1UCtwj7QRg2wdl8Djgw1qe7XvW0BQ3kfZ7mSLgU+T9E6RVbnuVrnWVSWqj+Lt8ZbRuHEdKPkYVcZ2MJY5fSGyeVar45+rkWQHAqccalPE5km1htWK5nK4Wnt5FuUBUwOMG4nGkA/BXUrW4S6torlOjMgcd/xVn7rLo7zKs0uEjCNeSvdwoBhgsZxX1l2j36k3Lu+uyprdj5Vs5A+i/lD48a0aaVJOPi7jB6lbzWozpjB48pf1NDXNN4vfl7+Z4BXS65pvF78vfzPAK71XTHmZ/S/yT+jvJ7L3fHytz1E+upbL+Qj5W56jfXWRnsIYKLtekKEFGWvSFQgyjk9o/Keet3YthlMP/5x9msJJ7R+U89biyb/AMXEv7gD6tadL1T+kwepRrC39ZkLDMbiwMvUHRPG0bjlGg8ore/23sxBldxfMPLupNhT8yL/AORNZbdzJ484scytxgLqJY5LZj6Q2sV5G1Vud1mjjyG0ij0NEGSZToKyhjtqw4waztuiXA3qKTbSxltfGhbZlE95ZtZqxVbgiOZhrER9ph3Svk9+pJILZ4Y4DGBFCUMKjRsGPobPFhUfW0NJmljE2xJcIrcI2vFUEln1lRXd6lrazXT9GCNpD+yNqoI7mOVduNw6nzlOIoPOUa6yye1XXcbMR5GdQ3xY0BSbj31/FcTQZirJ+q431q7anbHCTZ72Bw7lbPrKBMcBWNNgbMBBh+bsjBdni0VJ1lARZs6yWiupxCuMDy6KpS2IwOo6DTr3Mre3e5tZZVUM4ZBjqOOJoWO4jkXajcOOMHGgDISvWIrdAkKR80+TzVl908bPPL3LzxOuHdifxVfiTAg92qI/w+/8gGgSyN/mR7XPVlp0lF/3L3mbVKtu5Hjbk/8AHE2Fc03i9+Xv5ngFdKNc13i9+Xv5ngFaNV0x5nn+l/kn9HeEWXu+PlbnqJ9dS2Xu9OVueon11kZ7CGCjLXpCgxRlr0hUIPYUcntH5Tz1s8vb+Bt1/dqPirGSe0flPPWusG/g4Py15q06XqlyMWvVYQ+ruI9xJOqzO9hOto/sP8tbGOFIrmWeM7IuMDMnAXXQJOUjQeOsJk0nY96ip0CYunrjaHx1t+srPJUbXBm2LrFPikwTOb+T+VhbZxGMrDXp83x1QSy2tucJpUjPETp+Cn5/ftaRvKvtp3Kx48HG3erHMzOxZiWZtLMdJNQSbbL71Vk6yynViOkqnEEfOWtPbXi3EQkGg6mXiNckjeSJxJGxR10qw0GtxuxmvbImD4CZMFlA4fRfv0BqesqqzTMZNMEDbIHtHH2QeCiZJSqMQdOGiue53mz3czQwsRbIcNHnkec3c4qAMuriz68gTIToxwOOnlp0MjxMJYW741Gs3RVldtbygE/dMcHX/moDaxTiWNZB53B3arb8/wC+4SOF4sf/AKxU9kcBsfOGHfoUHtG/RbzY5Die5HHhXdvavqiZ9Q8Jdlq4/gbKua7xe/L38zwCuhpf2Uk/Zo50kmwJKIdogDjw1VzzeL35e/meAVp1LTgqY4nn+mRauzqmqwrjzCLL3fHytz1E+upLL+Qj5W56jfXWRnroYKLtekKEFF2vSFQg9hSSe0flPPWosm/hIfoLzVl5PaPynnrRWb/w0X0F5q06XqlyM2sVYx5gmbFre/t71NY2T+0h8VbSO5SWNJUOKSAMp7jDGspmMPaLRlXS6eWve1/FRO7WYdbZm1Y/eW/R7qHxHRXGojlm3ulid6aVbaW+OALvgCLq2Hm9WxHKWqjhj6xsK1e8dm15l4niG1LZkswGsxtrPeOmsvayBJA1VItlWjptLuTdPMo7LtjRDq9naK4+WF9IrUW7BaHOljGqVHB7w2hzVoZt87d8vaNYSLl02CcRsDEbJbj71Uu7UBkvJ7/D7q2QoDxySaAO8MTXdxRVMpRp5XZOWdF/ms7R5XdyKfKWJsO/5PhrG5XlNxmEywW6bTnTxAAcJNbGSMXkM1pjgbiNo1PziPJ+Os7u7m/6ReM00ZOgxSpqYYHT3wRXMKN4ll9zUG4bQfNshu8sZVuEA2hirA4qe/VOwwrVbzbww5mI44UKRRYkbWG0S3JWctbd7u5WFfOOLHiUdJqmaipfLsIsObhWe001lMkMVvJNjhghIALMcBxCs7fxXQmkupx1bXDswGPlaTidVaEyKNXkoo4eBV+Sq7L7Vs9zcBgeyQ4GQ/MB1crmoim2orezqcowTuSeEY48jQ7oZX2PLzdyLhNd6RjrEY6I7+uspvH78vfzPAK6UAAAFGAGgAcArmu8Xvy9/M8ArTfio24RW5nnaG67uou3H/KPuqT2X8hHytz1G+upLL3enK3PUb66ys9RDBRdr0hQgou06QqEGUkntH5Tz1e238vF9BeaqKT2j8p56vbb+Xi+gvNWjTdUuRn1XTHmTh8KrJTJlt8t1CPIY44cGnpJVjTJYkmjaN9Ib4u7V923njTethRauZJV3PaW1rfLIiXEDYg6R4VYc9CXW7thfOZbKdbGZtLW8uPVY/u3GrkNUkM9zlcxUjbhfWOA90cRq4gv4LhdqN+VToNYWmnRm9NNVWNTyHc6VWBv8wt4YeHqm6xyPmroq1Z7WGFLSxTq7WLSuPSdjrkfumq5yHXDUeA92oO2SKpVumNAaoJLMXH3myp0rpJ4uKhc3tbDM5BMri1zAj79j7KTiY8TcdBpcsith0286o+sPCagEX9Pzg4zXUCp6QYse8oouCG3tk6m1BYv05W6T+IdyolxbHDAAa2OgDlNCz3ryN2WxBd5PJMg1t81eId2ukqnLlTBbfcuY+9uJLiRcvtPvHdsHK+cfRHcHDWsyawjyy0WBcDI3lTP6TeIcFV+S5OmXx9bJg1048o8Cj0V8Jq2DVu09nL80up7OxHi+oal3P8AXB/IsZS8T/YOV65zvCcc7vfzPAK3ivWCz445zeH954BXOr6I8yfSfyz+jvCLP3fHytz1G+upLP3fHytz1E+usbPaQ0UXadIUIKLtekKhB7Ckk9o/Keer22/l4/oLzVRSe0flPPV7b/y8X0F5q0abqlyM+q6Y8yQsBTDMor1o8aiaE1pbluMqS3sbLLHIhSRQyngqukhaJ9uBjo+H5aOa3ao2t34qouRlLajTalGP8v0IY8ylXQ+PKPFU/bYXOLPge6CKia0LaxTOxHu1Q7cuBd9yPEJ7TbjXKO8CajbMIF6CNIeNvJHjqIWJ7tSpYkalqVblwIdyG+RGXur0hXYJFxal+Dhq5y3slkv3Y2pD0pTr+QUClpJRUdo9XW4OLrTHtM16cZLLWkeC7y4jvlNEpcRtw1Ux27Ci448NZrTFy3nn3IQWxlgGrDZ3pza7/M8ArZo+ArF5171uvp+CqdV0R5l/psUrs2vB3hdl7vTlbnqJ9dS2Xu+PlbnqJ9dY2eshooq16QoQUXa9IVCD2FLJ7RuU89WNtmUSQqkgYMgw0accKrpPaPynnrZWG4Vi+VWmY5tnMWXG+XrIYnA0rhj0mdcTgdNdwnKDqjmduM1SRR/qlr8/4KX6pa8T/BVzDuLZXudRZblmbxXcPUNPc3KqCIwrbOzgrHEnHjoyD+3eSXkht7DeKG4umDGOJVUklfouThXfmbnZ7Cvy1vt9pmv1W1+d8FL9VteJvgq5yrcOGfLmzHN80iyyETPbptAEFo2ZG8pmUa1OFNn3Ky6W/sbDKM5hv5bx2WTZA+7RF2y52WOPJTzE+z2Dy1vt9pT/AKpacTerS/U7Tib1a04/t7kDXPY03jhN0W6sQ7K7W3q2dnrMccaDy/8At80kuZfqWYxWNtlcvUPPhiGYhWDeUy7IwYU8xPs9g8tb7faUn6pacTerTxm9oOBvVq3v9z927aynuId44LiWKNnjhAXF2UYhRg516qpsryjLr21665zFLSTaK9U2GOA87SwqY37knRU+BzOzags0s1Oyr+BKM6sxwP6tSDPLMen6vy0rvdm3Sxlu7K/S7WDDrFUDUTxgnTU826eXW7KlxmqQuwDBXUKcD+1Xee/wXuKX5XDGWLapSVcOyhEM/seJ/V+WnjeGx4pPV+Wkm6kKZlFay3Jlt7iFpYZY8ASVK6DjtDDA0f8A0Tl340/1f8Ndx8xJVWXB0KbktFFpNzdVXAC/qOwA0CQni2flrO3Vwbm5lnI2TKxbDirX/wBE5d+NcfV/wVR7xZPa5U9utvI8nWhmbbw0YEAYYAVxfhfy5rlKR4Fulu6X7mW1mzT8S4Yis/5CPlbnqJ9dSWfu9OVueon11mZvQ2i7XpChKKtekKhBlNJ7R+U89bDfGTb3a3ZX0Lcj6kdY+T2j8p560288m1kWQr6MJ+ylSAr+2cnV5renjs3H1loX+3j9XvbbtxLN9lqW4UnV5jdnjtXHxihtyZNjeSBu5J9k1BJe7xy7W5CJ/wCzuD/mTVTf2+fq97LJuLrPsNRueS7W6aJ/38x+vLVXuY+xvHaNxbf2GoCezf8A36j/APsSf8w1sLnqczTefJluYoLm5uo5F61sBshItP1cNFYe1f8A3ir/APfE/wCZUe9bB94r5jwuPsrQFhmG4l/Z2M17HdW90tuu3IkTHaCjWdIw0VVZdks9/C06yJFEp2dp+E1bbqybGTZ8vpQD7L1XRv8A7blT96Oda7tpNuuNE37Cq9KSisjyuUoxrStKllHbLlWTXsMs8chuSuwEPDqwoLe5y+YRE/gLzmqRekvKKtd4327yM/ulHxmrHJStySWVRyrjxKI2XC/CTlnlPPKTpTdFbP0L1bgrf5Lp0G3dPhQHwV0S1lzBsns3sESR8Crh9WAJGjSOKuU3E+zdZQ3oJh8IArdZXFDmOTpHa3i2+YrI2KtKy4ricBsBuHHgFXSo440+Wa2qqxjvM9uMoy+WvzWpLCWWWE28HxL6e43ojgkeSCBY1Ri5BGIUDT51cl3vm276BBqSEH4WbxV0tlkyXJcxTMb+OW6uY9mGHrCzDQwwAbTp2uKuTZ9N1uYsfRRR8WPhrm419mSSjRyiqxVK7y23B/ftuTm2oSdJyzNVw3BFn7vTlbnqF9dS2fu9OVueon11lZuQ2iLdsGFD05H2dNQGV0ntG5Tz1dWm9N1b2kVq8EVwsI2UaQaQOKhmitZGLOmk68DhSFvY+gfWNSAg7z3Qvo7yKCKIohiaNR5LKxx8qpxvjcqS0VpbxvwOAcRQPZ7D0G9Y0uz2HoH1jUCpLY7zXlpbm3eKO5QuzjrBqZji3x17PvNcyT288VvDBJbMWUovS2hslW7mFQ9nsPQPrGl2ew9A+saCod/WNxtbYsrfb17WBxx5ddD2281xC88klvDcSXEnWuzrqOGGC9zRUPZ7D0G9Y0uzWHoH1jQVCLreq6ntZbaO3it1mGy7RjTs1X2mYy20ZiCq8ZOODcdEdmsPQb1jS7PYegfWNdJuLqnQiSUlRqpFLmryxtH1Ma7Qw2gNNPOdSt0oI27p007s9h6B9Y0uz2HoH1jXX3Z+I4+1b8IJdX89xLHKQFMXQUahpxoiPN5P+onfU+A0/s9h6DesaXZ7D0D6xpG7OLbUtu0StW5JJx2bBsmbtiSiEk+cxoCWWSaVpZOk2vDVo0VYdnsPQb1jSNvZcCH1jSd2c+p1XAmFqEOmOPEfaH+BQd1ueo211IzrgFUYKNAAqI1WztCpUqVCRUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoD/9k\x3d";
  1047. var f = f || {},
  1048. da = {
  1049. id: 0 | 998 * Math.random(),
  1050. MCa: 0 | 998 * Math.random(),
  1051. rca: function(c, d, e) {
  1052. c = c.toString();
  1053. var g = c.substring(c.indexOf("(") + 1, c.indexOf(")")),
  1054. g = g.trim();
  1055. for (c = c.substring(c.indexOf("{") + 1, c.lastIndexOf("}")); - 1 != c.indexOf("this._super");) {
  1056. var h = c.indexOf("this._super"),
  1057. k = c.indexOf("(", h),
  1058. m = c.substring(k + 1, c.indexOf(")", k)),
  1059. m = m.trim();
  1060. c = c.substring(0, h) + "ClassManager[" + e + "]." + d + ".call(this" + (m ? "," : "") + c.substring(k + 1)
  1061. }
  1062. return Function(g, c)
  1063. },
  1064. Hda: function() {
  1065. return this.id++
  1066. },
  1067. HAa: function() {
  1068. return this.MCa++
  1069. }
  1070. };
  1071. da.rca.KKa = da;
  1072. (function() {
  1073. var c = /\b_super\b/,
  1074. d = f.vf.kj[f.vf.Vm.Wwa];
  1075. d && console.log("release Mode");
  1076. f.N = function() {};
  1077. f.N.extend = function(e) {
  1078. function g() {
  1079. this.yb = da.HAa();
  1080. this.ctor && this.ctor.apply(this, arguments)
  1081. }
  1082. var h = this.prototype,
  1083. k = Object.create(h),
  1084. m = da.Hda();
  1085. da[m] = h;
  1086. var n = {
  1087. writable: !0,
  1088. enumerable: !1,
  1089. configurable: !0
  1090. };
  1091. k.yb = null;
  1092. g.id = m;
  1093. n.value = m;
  1094. Object.defineProperty(k, "__pid", n);
  1095. g.prototype = k;
  1096. n.value = g;
  1097. Object.defineProperty(g.prototype, "constructor", n);
  1098. this.Go && (g.Go = f.p(this.Go));
  1099. this.Ho && (g.Ho = f.p(this.Ho));
  1100. for (var p = 0, s = arguments.length; p < s; ++p) {
  1101. var u = arguments[p],
  1102. v;
  1103. for (v in u) {
  1104. var z = "function" === typeof u[v],
  1105. A = "function" === typeof h[v],
  1106. B = c.test(u[v]);
  1107. d && z && A && B ? (n.value = da.rca(u[v], v, m), Object.defineProperty(k, v, n)) : z && A && B ? (n.value = function(c, d) {
  1108. return function() {
  1109. var e = this._super;
  1110. this._super = h[c];
  1111. var g = d.apply(this, arguments);
  1112. this._super = e;
  1113. return g
  1114. }
  1115. }(v, u[v]), Object.defineProperty(k, v, n)) : z ? (n.value = u[v], Object.defineProperty(k, v, n)) : k[v] = u[v];
  1116. if (z) {
  1117. var C, G;
  1118. if (this.Go && this.Go[v]) {
  1119. var z = this.Go[v],
  1120. L;
  1121. for (L in this.Ho)
  1122. if (this.Ho[L] == z) {
  1123. G = L;
  1124. break
  1125. }
  1126. f.d(k, z, u[v], u[G] ? u[G] : k[G], v, G)
  1127. }
  1128. if (this.Ho && this.Ho[v]) {
  1129. z = this.Ho[v];
  1130. for (L in this.Go)
  1131. if (this.Go[L] == z) {
  1132. C = L;
  1133. break
  1134. }
  1135. f.d(k, z, u[C] ? u[C] : k[C], u[v], C, v)
  1136. }
  1137. }
  1138. }
  1139. }
  1140. g.extend = f.N.extend;
  1141. g.$Wa = function(c) {
  1142. for (var d in c) k[d] = c[d]
  1143. };
  1144. return g
  1145. };
  1146. Function.prototype.bind = Function.prototype.bind || function(c) {
  1147. var d = this;
  1148. return function() {
  1149. var h = Array.prototype.slice.call(arguments);
  1150. return d.apply(c || null, h)
  1151. }
  1152. }
  1153. })();
  1154. f.d = function(c, d, e, g, h, k) {
  1155. if (c.__defineGetter__) e && c.__defineGetter__(d, e), g && c.__defineSetter__(d, g);
  1156. else if (Object.defineProperty) {
  1157. var m = {
  1158. enumerable: !1,
  1159. configurable: !0
  1160. };
  1161. e && (m.get = e);
  1162. g && (m.set = g);
  1163. Object.defineProperty(c, d, m)
  1164. } else throw Error("browser does not support getters"); if (!h && !k)
  1165. for (var m = null != e, n = void 0 != g, p = Object.getOwnPropertyNames(c), s = 0; s < p.length; s++) {
  1166. var u = p[s];
  1167. if ((c.__lookupGetter__ ? !c.__lookupGetter__(u) : !Object.getOwnPropertyDescriptor(c, u)) && "function" === typeof c[u]) {
  1168. var v = c[u];
  1169. if (m && v === e && (h = u, !n || k)) break;
  1170. if (n && v === g && (k = u, !m || h)) break
  1171. }
  1172. }
  1173. c = c.constructor;
  1174. h && (c.Go || (c.Go = {}), c.Go[h] = d);
  1175. k && (c.Ho || (c.Ho = {}), c.Ho[k] = d)
  1176. };
  1177. f.p = function(c) {
  1178. var d = c.constructor ? new c.constructor : {},
  1179. e;
  1180. for (e in c) {
  1181. var g = c[e];
  1182. d[e] = "object" != typeof g || !g || g instanceof f.v || g instanceof HTMLElement ? g : f.p(g)
  1183. }
  1184. return d
  1185. };
  1186. f = f || {};
  1187. f.U = f.U || {};
  1188. f.PPa = function() {};
  1189. f.Jy = {
  1190. fca: 8,
  1191. wIa: 9,
  1192. N_: 13,
  1193. shift: 16,
  1194. GQa: 17,
  1195. alt: 18,
  1196. pause: 19,
  1197. aQa: 20,
  1198. escape: 27,
  1199. e0a: 33,
  1200. d0a: 34,
  1201. end: 35,
  1202. home: 36,
  1203. left: 37,
  1204. I5a: 38,
  1205. right: 39,
  1206. bRa: 40,
  1207. dXa: 45,
  1208. VKa: 46,
  1209. 0: 48,
  1210. 1: 49,
  1211. 2: 50,
  1212. 3: 51,
  1213. 4: 52,
  1214. 5: 53,
  1215. 6: 54,
  1216. 7: 55,
  1217. 8: 56,
  1218. 9: 57,
  1219. a: 65,
  1220. b: 66,
  1221. G: 67,
  1222. P: 68,
  1223. wm: 69,
  1224. Tn: 70,
  1225. g: 71,
  1226. Vf: 72,
  1227. QH: 73,
  1228. XP: 74,
  1229. YP: 75,
  1230. hQ: 76,
  1231. mQ: 77,
  1232. Xr: 78,
  1233. tQ: 79,
  1234. AQ: 80,
  1235. JQ: 81,
  1236. r: 82,
  1237. ll: 83,
  1238. o3: 84,
  1239. Da: 85,
  1240. ga: 86,
  1241. da: 87,
  1242. x: 88,
  1243. y: 89,
  1244. z: 90,
  1245. v_a: 96,
  1246. w_a: 97,
  1247. x_a: 98,
  1248. y_a: 99,
  1249. z_a: 100,
  1250. A_a: 101,
  1251. B_a: 102,
  1252. C_a: 103,
  1253. D_a: 104,
  1254. E_a: 105,
  1255. "*": 106,
  1256. "+": 107,
  1257. "-": 109,
  1258. numdel: 110,
  1259. "/": 111,
  1260. xRa: 112,
  1261. BRa: 113,
  1262. CRa: 114,
  1263. DRa: 115,
  1264. ERa: 116,
  1265. FRa: 117,
  1266. GRa: 118,
  1267. HRa: 119,
  1268. IRa: 120,
  1269. yRa: 121,
  1270. zRa: 122,
  1271. ARa: 123,
  1272. I_a: 144,
  1273. j2a: 145,
  1274. m2a: 186,
  1275. ",": 186,
  1276. sRa: 187,
  1277. "\x3d": 187,
  1278. ";": 188,
  1279. uQa: 188,
  1280. HQa: 189,
  1281. ".": 190,
  1282. l0a: 190,
  1283. QRa: 191,
  1284. UWa: 192,
  1285. "[": 219,
  1286. P_a: 219,
  1287. "]": 221,
  1288. qQa: 221,
  1289. QPa: 220,
  1290. quote: 222,
  1291. h3: 32
  1292. };
  1293. f.kLa = 0;
  1294. f.NS = 1;
  1295. f.q5 = 2;
  1296. f.lLa = 3;
  1297. f.mLa = 4;
  1298. f.Gla = 5;
  1299. f.gAa = function(c) {
  1300. return 8 < c.length && 137 == c[0] && 80 == c[1] && 78 == c[2] && 71 == c[3] && 13 == c[4] && 10 == c[5] && 26 == c[6] && 10 == c[7] ? f.NS : 2 < c.length && (73 == c[0] && 73 == c[1] || 77 == c[0] && 77 == c[1] || 255 == c[0] && 216 == c[1]) ? f.q5 : f.Gla
  1301. };
  1302. f.aXa = function(c, d) {
  1303. function e() {}
  1304. e.prototype = d.prototype;
  1305. c.MR = d.prototype;
  1306. c.prototype = new e;
  1307. c.prototype.constructor = c
  1308. };
  1309. f.RPa = function(c, d, e) {
  1310. var g = arguments.callee.caller;
  1311. if (g.MR) return ret = g.MR.constructor.apply(c, Array.prototype.slice.call(arguments, 1));
  1312. for (var h = Array.prototype.slice.call(arguments, 2), k = !1, m = c.constructor; m; m = m.MR && m.MR.constructor)
  1313. if (m.prototype[d] === g) k = !0;
  1314. else if (k) return m.prototype[d].apply(c, h);
  1315. if (c[d] === g) return c.constructor.prototype[d].apply(c, h);
  1316. throw Error("cc.base called from a method of one name to a method of a different name");
  1317. };
  1318. f.pMa = function(c, d) {
  1319. this.x = c || 0;
  1320. this.y = d || 0
  1321. };
  1322. function r(c, d) {
  1323. return void 0 == c ? {
  1324. x: 0,
  1325. y: 0
  1326. } : void 0 == d ? {
  1327. x: c.x,
  1328. y: c.y
  1329. } : {
  1330. x: c,
  1331. y: d
  1332. }
  1333. }
  1334. f.I1 = function(c, d) {
  1335. return c && d && c.x === d.x && c.y === d.y
  1336. };
  1337. f.BMa = function(c, d) {
  1338. this.width = c || 0;
  1339. this.height = d || 0
  1340. };
  1341. function t(c, d) {
  1342. return void 0 === c ? {
  1343. width: 0,
  1344. height: 0
  1345. } : void 0 === d ? {
  1346. width: c.width,
  1347. height: c.height
  1348. } : {
  1349. width: c,
  1350. height: d
  1351. }
  1352. }
  1353. f.X4a = function(c, d) {
  1354. return c && d && c.width == d.width && c.height == d.height
  1355. };
  1356. f.Qy = function(c, d, e, g) {
  1357. this.x = c || 0;
  1358. this.y = d || 0;
  1359. this.width = e || 0;
  1360. this.height = g || 0
  1361. };
  1362. function x(c, d, e, g) {
  1363. return void 0 === c ? {
  1364. x: 0,
  1365. y: 0,
  1366. width: 0,
  1367. height: 0
  1368. } : void 0 === d ? {
  1369. x: c.x,
  1370. y: c.y,
  1371. width: c.width,
  1372. height: c.height
  1373. } : {
  1374. x: c,
  1375. y: d,
  1376. width: e,
  1377. height: g
  1378. }
  1379. }
  1380. f.Yfa = function(c, d) {
  1381. return c && d && c.x === d.x && c.y === d.y && c.width === d.width && c.height === d.height
  1382. };
  1383. f.gG = function(c) {
  1384. return c && 0 === c.x && 0 === c.y && 0 === c.width && 0 === c.height
  1385. };
  1386. f.K0a = function(c, d) {
  1387. return c && d ? !(c.x >= d.x || c.y >= d.y || c.x + c.width <= d.x + d.width || c.y + c.height <= d.y + d.height) : !1
  1388. };
  1389. f.Vp = function(c) {
  1390. return c.x + c.width
  1391. };
  1392. f.L0a = function(c) {
  1393. return c.x + c.width / 2
  1394. };
  1395. f.fo = function(c) {
  1396. return c.x
  1397. };
  1398. f.Wp = function(c) {
  1399. return c.y + c.height
  1400. };
  1401. f.M0a = function(c) {
  1402. return c.y + c.height / 2
  1403. };
  1404. f.ho = function(c) {
  1405. return c.y
  1406. };
  1407. f.Bu = function(c, d) {
  1408. return d.x >= f.fo(c) && d.x <= f.Vp(c) && d.y >= f.ho(c) && d.y <= f.Wp(c)
  1409. };
  1410. f.BFa = function(c, d) {
  1411. var e = c.y + c.height,
  1412. g = d.x + d.width,
  1413. h = d.y + d.height;
  1414. return !(c.x + c.width < d.x || g < c.x || e < d.y || h < c.y)
  1415. };
  1416. f.N0a = function(c, d) {
  1417. return !(c.x + c.width < d.x || d.x + d.width < c.x || c.y + c.height < d.y || d.y + d.height < c.y)
  1418. };
  1419. f.zC = function(c, d) {
  1420. var e = x(0, 0, 0, 0);
  1421. e.x = Math.min(c.x, d.x);
  1422. e.y = Math.min(c.y, d.y);
  1423. e.width = Math.max(c.x + c.width, d.x + d.width) - e.x;
  1424. e.height = Math.max(c.y + c.height, d.y + d.height) - e.y;
  1425. return e
  1426. };
  1427. f.AFa = function(c, d) {
  1428. var e = x(Math.max(f.fo(c), f.fo(d)), Math.max(f.ho(c), f.ho(d)), 0, 0);
  1429. e.width = Math.min(f.Vp(c), f.Vp(d)) - f.fo(e);
  1430. e.height = Math.min(f.Wp(c), f.Wp(d)) - f.ho(e);
  1431. return e
  1432. };
  1433. f.pK = f.N.extend({
  1434. maa: null,
  1435. PW: null,
  1436. ctor: function() {
  1437. window.DOMParser ? (this.PW = !0, this.maa = new DOMParser) : this.PW = !1
  1438. },
  1439. parse: function(c) {
  1440. return this.sX(c)
  1441. },
  1442. sX: function(c) {
  1443. var d;
  1444. this.PW ? d = this.maa.parseFromString(c, "text/xml") : (d = new ActiveXObject("Microsoft.XMLDOM"), d.async = "false", d.loadXML(c));
  1445. return d
  1446. }
  1447. });
  1448. f.jna = f.pK.extend({
  1449. parse: function(c) {
  1450. c = this.sX(c).documentElement;
  1451. if ("plist" != c.tagName) throw "Not a plist file!";
  1452. for (var d = null, e = 0, g = c.childNodes.length; e < g && (d = c.childNodes[e], 1 != d.nodeType); e++);
  1453. return this.rX(d)
  1454. },
  1455. rX: function(c) {
  1456. var d = null,
  1457. e = c.tagName;
  1458. if ("dict" == e) d = this.zta(c);
  1459. else if ("array" == e) d = this.yta(c);
  1460. else if ("string" == e)
  1461. if (1 == c.childNodes.length) d = c.firstChild.nodeValue;
  1462. else
  1463. for (d = "", e = 0; e < c.childNodes.length; e++) d += c.childNodes[e].nodeValue;
  1464. else "false" == e ? d = !1 : "true" == e ? d = !0 : "real" ==
  1465. e ? d = parseFloat(c.firstChild.nodeValue) : "integer" == e && (d = parseInt(c.firstChild.nodeValue, 10));
  1466. return d
  1467. },
  1468. yta: function(c) {
  1469. for (var d = [], e = 0, g = c.childNodes.length; e < g; e++) {
  1470. var h = c.childNodes[e];
  1471. 1 == h.nodeType && d.push(this.rX(h))
  1472. }
  1473. return d
  1474. },
  1475. zta: function(c) {
  1476. for (var d = {}, e = null, g = 0, h = c.childNodes.length; g < h; g++) {
  1477. var k = c.childNodes[g];
  1478. 1 == k.nodeType && ("key" == k.tagName ? e = k.firstChild.nodeValue : d[e] = this.rX(k))
  1479. }
  1480. return d
  1481. }
  1482. });
  1483. f.wba = {
  1484. load: function(c, d, e, g) {
  1485. f.L.lQ(c, g)
  1486. }
  1487. };
  1488. f.L.Xp(["txt", "xml", "vsh", "fsh", "atlas"], f.wba);
  1489. f.Qsa = {
  1490. load: function(c, d, e, g) {
  1491. f.L.ifa(c, g)
  1492. }
  1493. };
  1494. f.L.Xp(["json", "ExportJson"], f.Qsa);
  1495. f.rsa = {
  1496. load: function(c, d, e, g) {
  1497. f.L.jj[d] = f.L.eI(c, function(c, e) {
  1498. if (c) return g(c);
  1499. f.nb.$d(d);
  1500. g(null, e)
  1501. })
  1502. }
  1503. };
  1504. f.L.Xp("png jpg bmp jpeg gif ico".split(" "), f.rsa);
  1505. f.iua = {
  1506. load: function(c, d, e, g) {
  1507. f.L.jj[d] = f.L.eI(e.src, function(c, e) {
  1508. if (c) return g(c);
  1509. f.nb.$d(d);
  1510. g(null, e)
  1511. })
  1512. }
  1513. };
  1514. f.L.Xp(["serverImg"], f.iua);
  1515. f.Eta = {
  1516. load: function(c, d, e, g) {
  1517. f.L.lQ(c, function(c, d) {
  1518. if (c) return g(c);
  1519. g(null, f.dFa.parse(d))
  1520. })
  1521. }
  1522. };
  1523. f.L.Xp(["plist"], f.Eta);
  1524. f.vra = {
  1525. Qoa: {
  1526. ".eot": "embedded-opentype",
  1527. ".ttf": "truetype",
  1528. ".woff": "woff",
  1529. ".svg": "svg"
  1530. },
  1531. V$: function(c, d, e) {
  1532. var g = document,
  1533. h = f.path,
  1534. k = this.Qoa,
  1535. m = f.fd("style");
  1536. m.type = "text/css";
  1537. g.body.appendChild(m);
  1538. var n = "@font-face { font-family:" + c + "; src:";
  1539. if (d instanceof Array)
  1540. for (var p = 0, s = d.length; p < s; p++) e = h.zp(d[p]).toLowerCase(), n += "url('" + d[p] + "') format('" + k[e] + "')", n += p == s - 1 ? ";" : ",";
  1541. else n += "url('" + d + "') format('" + k[e] + "');";
  1542. m.textContent += n + "};";
  1543. d = f.fd("div");
  1544. e = d.style;
  1545. e.fontFamily = c;
  1546. d.innerHTML = ".";
  1547. e.position =
  1548. "absolute";
  1549. e.left = "-100px";
  1550. e.top = "-100px";
  1551. g.body.appendChild(d)
  1552. },
  1553. load: function(c, d, e, g) {
  1554. d = e.type;
  1555. c = e.name;
  1556. d = e.a5a;
  1557. "string" == typeof e ? (d = f.path.zp(e), c = f.path.Dwa(e, d), this.V$(c, e, d)) : this.V$(c, d);
  1558. g(null, !0)
  1559. }
  1560. };
  1561. f.L.Xp(["font", "eot", "ttf", "woff", "svg"], f.vra);
  1562. f.uqa = {
  1563. load: function(c, d, e, g) {
  1564. f.L.LDa(c, g)
  1565. }
  1566. };
  1567. window.CocosEngine = f.JS = "Cocos2d-html5 v3.0 RC1";
  1568. f.Ey = 0;
  1569. f.DS = r(0, 0);
  1570. f.Xka = 0.5;
  1571. f.AKa = 1;
  1572. f.LT = 1;
  1573. f.Rma = 0;
  1574. f.n7 = 0;
  1575. f.TT = 0;
  1576. f.GMa = 0;
  1577. f.sMa = 1;
  1578. f.rMa = "-hd";
  1579. f.Hpa = 1;
  1580. f.ys = 0;
  1581. f.yMa = 0;
  1582. f.jma = 0;
  1583. f.ima = 0;
  1584. f.YS = 1;
  1585. f.NKa = f.JS + "-canvas";
  1586. f.SJ = 1;
  1587. f.Zm = 1;
  1588. f.mc = function(c) {
  1589. var d = this == f ? document : this;
  1590. if (c = c instanceof HTMLElement ? c : d.querySelector(c)) c.find = c.find || f.mc, c.A0 = c.A0 || function(c) {
  1591. return this.className.match(RegExp("(\\s|^)" + c + "(\\s|$)"))
  1592. }, c.Qba = c.Qba || function(c) {
  1593. this.A0(c) || (this.className && (this.className += " "), this.className += c);
  1594. return this
  1595. }, c.OFa = c.OFa || function(c) {
  1596. this.A0(c) && (this.className = this.className.replace(c, ""));
  1597. return this
  1598. }, c.remove = c.remove || function() {
  1599. this.parentNode && this.parentNode.removeChild(this);
  1600. return this
  1601. }, c.cx =
  1602. c.cx || function(c) {
  1603. c.appendChild(this);
  1604. return this
  1605. }, c.nFa = c.nFa || function(c) {
  1606. c.childNodes[0] ? c.insertBefore(this, c.childNodes[0]) : c.appendChild(this);
  1607. return this
  1608. }, c.ny = c.ny || function() {
  1609. this.style[f.mc.KIa] = f.mc.translate(this.position) + f.mc.rotate(this.rotation) + f.mc.scale(this.scale) + f.mc.ky(this.ky);
  1610. return this
  1611. }, c.position = c.position || {
  1612. x: 0,
  1613. y: 0
  1614. }, c.rotation = c.rotation || 0, c.scale = c.scale || {
  1615. x: 1,
  1616. y: 1
  1617. }, c.ky = c.ky || {
  1618. x: 0,
  1619. y: 0
  1620. }, c.nJ = function(c, d) {
  1621. this.position.x = c;
  1622. this.position.y = d;
  1623. this.ny()
  1624. }, c.rotate = function(c) {
  1625. this.rotation =
  1626. c;
  1627. this.ny();
  1628. return this
  1629. }, c.resize = function(c, d) {
  1630. this.scale.x = c;
  1631. this.scale.y = d;
  1632. this.ny();
  1633. return this
  1634. }, c.Pha = function(c, d) {
  1635. this.ky.x = c;
  1636. this.ky.y = d;
  1637. this.ny()
  1638. };
  1639. return c
  1640. };
  1641. switch (f.Ed.gx) {
  1642. case f.Ed.jD:
  1643. f.mc.yu = "Moz";
  1644. f.mc.VB = !0;
  1645. break;
  1646. case f.Ed.bS:
  1647. case f.Ed.eS:
  1648. f.mc.yu = "webkit";
  1649. f.mc.VB = !0;
  1650. break;
  1651. case f.Ed.dS:
  1652. f.mc.yu = "O";
  1653. f.mc.VB = !1;
  1654. break;
  1655. case f.Ed.cS:
  1656. f.mc.yu = "ms";
  1657. f.mc.VB = !1;
  1658. break;
  1659. default:
  1660. f.mc.yu = "webkit", f.mc.VB = !0
  1661. }
  1662. f.mc.KIa = f.mc.yu + "Transform";
  1663. f.mc.translate = f.mc.VB ? function(c) {
  1664. return "translate3d(" + c.x + "px, " + c.y + "px, 0) "
  1665. } : function(c) {
  1666. return "translate(" + c.x + "px, " + c.y + "px) "
  1667. };
  1668. f.mc.rotate = f.mc.VB ? function(c) {
  1669. return "rotateZ(" + c + "deg) "
  1670. } : function(c) {
  1671. return "rotate(" + c + "deg) "
  1672. };
  1673. f.mc.scale = function(c) {
  1674. return "scale(" + c.x + ", " + c.y + ") "
  1675. };
  1676. f.mc.ky = function(c) {
  1677. return "skewX(" + -c.x + "deg) skewY(" + c.y + "deg)"
  1678. };
  1679. f.bD = function(c) {
  1680. return f.mc(document.createElement(c))
  1681. };
  1682. f.mc.NRa = function(c) {
  1683. var d = 0,
  1684. e = 0;
  1685. do d += c.offsetLeft, e += c.offsetTop; while (c = c.offsetParent);
  1686. return {
  1687. x: d,
  1688. y: e
  1689. }
  1690. };
  1691. f.wo = -1;
  1692. f.PI = Math.PI;
  1693. f.gv = parseFloat("3.402823466e+38F");
  1694. f.p5 = parseFloat("1.175494351e-38F");
  1695. f.tna = f.PI / 180;
  1696. f.W4 = 180 / f.PI;
  1697. f.oU = 4294967295;
  1698. f.ria = function(c, d, e) {
  1699. if ("object" == typeof e && "undefined" != typeof e.x && "undefined" != typeof e.y) {
  1700. var g = e[c];
  1701. e[c] = e[d];
  1702. e[d] = g
  1703. } else f.log(f.l.ria)
  1704. };
  1705. f.g_a = function(c, d, e) {
  1706. return c + (d - c) * e
  1707. };
  1708. f.jd = function() {
  1709. return 16777215 * Math.random()
  1710. };
  1711. f.uFa = function() {
  1712. return 2 * (Math.random() - 0.5)
  1713. };
  1714. f.U1 = Math.random;
  1715. f.sg = function(c) {
  1716. return c * f.tna
  1717. };
  1718. f.yC = function(c) {
  1719. return c * f.W4
  1720. };
  1721. f.Tfa = function(c) {
  1722. f.log(f.l.Tfa);
  1723. return c * f.W4
  1724. };
  1725. f.mv = Number.MAX_VALUE - 1;
  1726. f.Mc = f.Rma ? 1 : 770;
  1727. f.Lc = 771;
  1728. f.qC = function(c) {
  1729. c.sd && (c.sd.Ff(), c.sd.zj())
  1730. };
  1731. f.nRa = function() {};
  1732. f.QQa = function() {};
  1733. f.el = function() {
  1734. f.bl += 1
  1735. };
  1736. f.aK = 1.192092896E-7;
  1737. f.Uc = f.YS ? function() {
  1738. return f.Q.Vl
  1739. } : function() {
  1740. return 1
  1741. };
  1742. f.eFa = function(c) {
  1743. var d = f.Uc();
  1744. return r(c.x * d, c.y * d)
  1745. };
  1746. f.J1 = function(c) {
  1747. var d = f.Uc();
  1748. return r(c.x / d, c.y / d)
  1749. };
  1750. f.xX = function(c, d) {
  1751. var e = f.Uc();
  1752. d.x = c.x / e;
  1753. d.y = c.y / e
  1754. };
  1755. f.dIa = function(c) {
  1756. var d = f.Uc();
  1757. return t(c.width * d, c.height * d)
  1758. };
  1759. f.eia = function(c) {
  1760. var d = f.Uc();
  1761. return t(c.width / d, c.height / d)
  1762. };
  1763. f.eba = function(c, d) {
  1764. var e = f.Uc();
  1765. d.width = c.width / e;
  1766. d.height = c.height / e
  1767. };
  1768. f.cs = f.YS ? function(c) {
  1769. var d = f.Uc();
  1770. return x(c.x / d, c.y / d, c.width / d, c.height / d)
  1771. } : function(c) {
  1772. return c
  1773. };
  1774. f.FI = f.YS ? function(c) {
  1775. var d = f.Uc();
  1776. return x(c.x * d, c.y * d, c.width * d, c.height * d)
  1777. } : function(c) {
  1778. return c
  1779. };
  1780. f.ONE = 1;
  1781. f.ZERO = 0;
  1782. f.SRC_ALPHA = 770;
  1783. f.SRC_ALPHA_SATURATE = 776;
  1784. f.SRC_COLOR = 768;
  1785. f.DST_ALPHA = 772;
  1786. f.DST_COLOR = 774;
  1787. f.ONE_MINUS_SRC_ALPHA = 771;
  1788. f.ONE_MINUS_SRC_COLOR = 769;
  1789. f.ONE_MINUS_DST_ALPHA = 773;
  1790. f.ONE_MINUS_DST_COLOR = 775;
  1791. f.ONE_MINUS_CONSTANT_ALPHA = 32772;
  1792. f.ONE_MINUS_CONSTANT_COLOR = 32770;
  1793. f.rB = function() {
  1794. if (f.LQ == f.na) {
  1795. var c = f.s.getError();
  1796. c && f.log(CC.Ya.rB, c)
  1797. }
  1798. };
  1799. f.RKa = 0;
  1800. f.PKa = 1;
  1801. f.SKa = 2;
  1802. f.QKa = 3;
  1803. f.OKa = 2;
  1804. f.jNa = 0;
  1805. f.Gh = 1;
  1806. f.HK = 2;
  1807. f.Wy = 4;
  1808. f.tv = f.Gh | f.HK | f.Wy;
  1809. f.oLa = 0;
  1810. f.Oc = 0;
  1811. f.Mi = 1;
  1812. f.$g = 2;
  1813. f.kNa = 3;
  1814. f.rU = 0;
  1815. f.qU = 1;
  1816. f.yE = 2;
  1817. f.vU = 3;
  1818. f.uU = 4;
  1819. f.pU = 5;
  1820. f.sU = 6;
  1821. f.tU = 7;
  1822. f.eNa = 8;
  1823. f.zo = "ShaderPositionTextureColor";
  1824. f.tK = "ShaderPositionTextureColorAlphaTest";
  1825. f.sK = "ShaderPositionColor";
  1826. f.jE = "ShaderPositionTexture";
  1827. f.uK = "ShaderPositionTexture_uColor";
  1828. f.JT = "ShaderPositionTextureA8Color";
  1829. f.KT = "ShaderPosition_uColor";
  1830. f.c7 = "ShaderPositionLengthTextureColor";
  1831. f.Bpa = "CC_PMatrix";
  1832. f.zpa = "CC_MVMatrix";
  1833. f.Apa = "CC_MVPMatrix";
  1834. f.Fpa = "CC_Time";
  1835. f.Epa = "CC_SinTime";
  1836. f.ypa = "CC_CosTime";
  1837. f.Cpa = "CC_Random01";
  1838. f.Dpa = "CC_Texture0";
  1839. f.g8 = "CC_alpha_value";
  1840. f.fD = "a_color";
  1841. f.Wu = "a_position";
  1842. f.vy = "a_texCoord";
  1843. f.Vla = 32;
  1844. f.L4 = 3233828865;
  1845. f.IK = 3233828866;
  1846. f.uma = 8801;
  1847. f.yna = 8802;
  1848. f.Zka = 8803;
  1849. f = f || {};
  1850. f.U = f.U || {};
  1851. f.U.zU = function() {
  1852. f.color = function(c, e, g, h, k, m) {
  1853. return void 0 === c ? new f.Aj(0, 0, 0, 255, k, m) : "string" === typeof c ? (c = f.pea(c), new f.Aj(c.r, c.g, c.b, c.a)) : "object" === typeof c ? new f.Aj(c.r, c.g, c.b, c.a, c.DO, c.offset) : new f.Aj(c, e, g, h, k, m)
  1854. };
  1855. f.Aj = function(c, e, g, h, k, m) {
  1856. this.ag = k || new ArrayBuffer(f.Aj.BYTES_PER_ELEMENT);
  1857. this.hb = m || 0;
  1858. k = this.ag;
  1859. m = this.hb;
  1860. var n = Uint8Array.BYTES_PER_ELEMENT;
  1861. this.PX = new Uint8Array(k, m, 1);
  1862. this.lW = new Uint8Array(k, m + n, 1);
  1863. this.XU = new Uint8Array(k, m + 2 * n, 1);
  1864. this.JU = new Uint8Array(k, m +
  1865. 3 * n, 1);
  1866. this.PX[0] = c || 0;
  1867. this.lW[0] = e || 0;
  1868. this.XU[0] = g || 0;
  1869. this.JU[0] = h || 255;
  1870. void 0 === h && (this.Yw = !0)
  1871. };
  1872. f.Aj.BYTES_PER_ELEMENT = 4;
  1873. var c = f.Aj.prototype;
  1874. c.Zra = function() {
  1875. return this.PX[0]
  1876. };
  1877. c.Aua = function(c) {
  1878. this.PX[0] = 0 > c ? 0 : c
  1879. };
  1880. c.Jra = function() {
  1881. return this.lW[0]
  1882. };
  1883. c.rua = function(c) {
  1884. this.lW[0] = 0 > c ? 0 : c
  1885. };
  1886. c.Cra = function() {
  1887. return this.XU[0]
  1888. };
  1889. c.kua = function(c) {
  1890. this.XU[0] = 0 > c ? 0 : c
  1891. };
  1892. c.zra = function() {
  1893. return this.JU[0]
  1894. };
  1895. c.jua = function(c) {
  1896. this.JU[0] = 0 > c ? 0 : c
  1897. };
  1898. f.d(c, "r", c.Zra, c.Aua);
  1899. f.d(c, "g", c.Jra, c.rua);
  1900. f.d(c, "b", c.Cra,
  1901. c.kua);
  1902. f.d(c, "a", c.zra, c.jua);
  1903. f.he = function(c, e, g, h) {
  1904. this.ag = g || new ArrayBuffer(f.he.BYTES_PER_ELEMENT);
  1905. this.hb = h || 0;
  1906. this.Ww = new Float32Array(this.ag, this.hb, 1);
  1907. this.Xw = new Float32Array(this.ag, this.hb + 4, 1);
  1908. this.Ww[0] = c || 0;
  1909. this.Xw[0] = e || 0
  1910. };
  1911. f.he.BYTES_PER_ELEMENT = 8;
  1912. Object.defineProperties(f.he.prototype, {
  1913. x: {
  1914. get: function() {
  1915. return this.Ww[0]
  1916. },
  1917. set: function(c) {
  1918. this.Ww[0] = c
  1919. },
  1920. enumerable: !0
  1921. },
  1922. y: {
  1923. get: function() {
  1924. return this.Xw[0]
  1925. },
  1926. set: function(c) {
  1927. this.Xw[0] = c
  1928. },
  1929. enumerable: !0
  1930. }
  1931. });
  1932. f.Oe = function(c, e, g, h, k) {
  1933. this.ag =
  1934. h || new ArrayBuffer(f.Oe.BYTES_PER_ELEMENT);
  1935. this.hb = k || 0;
  1936. h = this.ag;
  1937. k = this.hb;
  1938. this.Ww = new Float32Array(h, k, 1);
  1939. this.Ww[0] = c || 0;
  1940. this.Xw = new Float32Array(h, k + Float32Array.BYTES_PER_ELEMENT, 1);
  1941. this.Xw[0] = e || 0;
  1942. this.pZ = new Float32Array(h, k + 2 * Float32Array.BYTES_PER_ELEMENT, 1);
  1943. this.pZ[0] = g || 0
  1944. };
  1945. f.Oe.BYTES_PER_ELEMENT = 12;
  1946. Object.defineProperties(f.Oe.prototype, {
  1947. x: {
  1948. get: function() {
  1949. return this.Ww[0]
  1950. },
  1951. set: function(c) {
  1952. this.Ww[0] = c
  1953. },
  1954. enumerable: !0
  1955. },
  1956. y: {
  1957. get: function() {
  1958. return this.Xw[0]
  1959. },
  1960. set: function(c) {
  1961. this.Xw[0] = c
  1962. },
  1963. enumerable: !0
  1964. },
  1965. z: {
  1966. get: function() {
  1967. return this.pZ[0]
  1968. },
  1969. set: function(c) {
  1970. this.pZ[0] = c
  1971. },
  1972. enumerable: !0
  1973. }
  1974. });
  1975. f.Cs = function(c, e, g, h) {
  1976. this.ag = g || new ArrayBuffer(f.Cs.BYTES_PER_ELEMENT);
  1977. this.hb = h || 0;
  1978. this.VY = new Float32Array(this.ag, this.hb, 1);
  1979. this.cZ = new Float32Array(this.ag, this.hb + 4, 1);
  1980. this.VY[0] = c || 0;
  1981. this.cZ[0] = e || 0
  1982. };
  1983. f.Cs.BYTES_PER_ELEMENT = 8;
  1984. Object.defineProperties(f.Cs.prototype, {
  1985. Da: {
  1986. get: function() {
  1987. return this.VY[0]
  1988. },
  1989. set: function(c) {
  1990. this.VY[0] = c
  1991. },
  1992. enumerable: !0
  1993. },
  1994. ga: {
  1995. get: function() {
  1996. return this.cZ[0]
  1997. },
  1998. set: function(c) {
  1999. this.cZ[0] =
  2000. c
  2001. },
  2002. enumerable: !0
  2003. }
  2004. });
  2005. f.ET = function(c, e, g, h, k, m) {
  2006. this.ag = k || new ArrayBuffer(f.ET.BYTES_PER_ELEMENT);
  2007. this.hb = m || 0;
  2008. k = this.ag;
  2009. m = f.he.BYTES_PER_ELEMENT;
  2010. this.$A = c ? new f.he(c.x, c.y, k, 0) : new f.he(0, 0, k, 0);
  2011. this.eB = e ? new f.he(e.x, e.y, k, m) : new f.he(0, 0, k, m);
  2012. this.iz = g ? new f.he(g.x, g.y, k, 2 * m) : new f.he(0, 0, k, 2 * m);
  2013. this.mz = h ? new f.he(h.x, h.y, k, 3 * m) : new f.he(0, 0, k, 3 * m)
  2014. };
  2015. f.ET.BYTES_PER_ELEMENT = 32;
  2016. f.oK = function(c, e, g, h) {
  2017. this.T = c || new f.Oe(0, 0, 0);
  2018. this.aa = e || new f.Oe(0, 0, 0);
  2019. this.Z = g || new f.Oe(0, 0, 0);
  2020. this.W = h || new f.Oe(0,
  2021. 0, 0)
  2022. };
  2023. Object.defineProperties(f.ET.prototype, {
  2024. Z: {
  2025. get: function() {
  2026. return this.$A
  2027. },
  2028. set: function(c) {
  2029. this.$A.x = c.x;
  2030. this.$A.y = c.y
  2031. },
  2032. enumerable: !0
  2033. },
  2034. W: {
  2035. get: function() {
  2036. return this.eB
  2037. },
  2038. set: function(c) {
  2039. this.eB.x = c.x;
  2040. this.eB.y = c.y
  2041. },
  2042. enumerable: !0
  2043. },
  2044. T: {
  2045. get: function() {
  2046. return this.iz
  2047. },
  2048. set: function(c) {
  2049. this.iz.x = c.x;
  2050. this.iz.y = c.y
  2051. },
  2052. enumerable: !0
  2053. },
  2054. aa: {
  2055. get: function() {
  2056. return this.mz
  2057. },
  2058. set: function(c) {
  2059. this.mz.x = c.x;
  2060. this.mz.y = c.y
  2061. },
  2062. enumerable: !0
  2063. }
  2064. });
  2065. f.Pl = function(c, e, g, h, k) {
  2066. this.ag = h || new ArrayBuffer(f.Pl.BYTES_PER_ELEMENT);
  2067. this.hb = k || 0;
  2068. h = this.ag;
  2069. k = this.hb;
  2070. var m = f.Oe.BYTES_PER_ELEMENT;
  2071. this.ec = c ? new f.Oe(c.x, c.y, c.z, h, k) : new f.Oe(0, 0, 0, h, k);
  2072. this.YE = e ? f.color(e.r, e.g, e.b, e.a, h, k + m) : f.color(0, 0, 0, 0, h, k + m);
  2073. this.Vk = g ? new f.Cs(g.Da, g.ga, h, k + m + f.Aj.BYTES_PER_ELEMENT) : new f.Cs(0, 0, h, k + m + f.Aj.BYTES_PER_ELEMENT)
  2074. };
  2075. f.Pl.BYTES_PER_ELEMENT = 24;
  2076. Object.defineProperties(f.Pl.prototype, {
  2077. k: {
  2078. get: function() {
  2079. return this.ec
  2080. },
  2081. set: function(c) {
  2082. var e = this.ec;
  2083. e.x = c.x;
  2084. e.y = c.y;
  2085. e.z = c.z
  2086. },
  2087. enumerable: !0
  2088. },
  2089. D: {
  2090. get: function() {
  2091. return this.YE
  2092. },
  2093. set: function(c) {
  2094. var e =
  2095. this.YE;
  2096. e.r = c.r;
  2097. e.g = c.g;
  2098. e.b = c.b;
  2099. e.a = c.a
  2100. },
  2101. enumerable: !0
  2102. },
  2103. t: {
  2104. get: function() {
  2105. return this.Vk
  2106. },
  2107. set: function(c) {
  2108. this.Vk.Da = c.Da;
  2109. this.Vk.ga = c.ga
  2110. },
  2111. enumerable: !0
  2112. }
  2113. });
  2114. f.Yc = function(c, e, g, h, k, m) {
  2115. this.ag = k || new ArrayBuffer(f.Yc.BYTES_PER_ELEMENT);
  2116. this.hb = m || 0;
  2117. k = this.ag;
  2118. m = this.hb;
  2119. var n = f.Pl.BYTES_PER_ELEMENT;
  2120. this.$A = c ? new f.Pl(c.k, c.D, c.t, k, m) : new f.Pl(null, null, null, k, m);
  2121. this.iz = e ? new f.Pl(e.k, e.D, e.t, k, m + n) : new f.Pl(null, null, null, k, m + n);
  2122. this.eB = g ? new f.Pl(g.k, g.D, g.t, k, m + 2 * n) : new f.Pl(null, null, null, k, m + 2 * n);
  2123. this.mz = h ? new f.Pl(h.k, h.D, h.t, k, m + 3 * n) : new f.Pl(null, null, null, k, m + 3 * n)
  2124. };
  2125. f.Yc.BYTES_PER_ELEMENT = 96;
  2126. Object.defineProperties(f.Yc.prototype, {
  2127. Z: {
  2128. get: function() {
  2129. return this.$A
  2130. },
  2131. set: function(c) {
  2132. var e = this.$A;
  2133. e.k = c.k;
  2134. e.D = c.D;
  2135. e.t = c.t
  2136. },
  2137. enumerable: !0
  2138. },
  2139. T: {
  2140. get: function() {
  2141. return this.iz
  2142. },
  2143. set: function(c) {
  2144. var e = this.iz;
  2145. e.k = c.k;
  2146. e.D = c.D;
  2147. e.t = c.t
  2148. },
  2149. enumerable: !0
  2150. },
  2151. W: {
  2152. get: function() {
  2153. return this.eB
  2154. },
  2155. set: function(c) {
  2156. var e = this.eB;
  2157. e.k = c.k;
  2158. e.D = c.D;
  2159. e.t = c.t
  2160. },
  2161. enumerable: !0
  2162. },
  2163. aa: {
  2164. get: function() {
  2165. return this.mz
  2166. },
  2167. set: function(c) {
  2168. var e =
  2169. this.mz;
  2170. e.k = c.k;
  2171. e.D = c.D;
  2172. e.t = c.t
  2173. },
  2174. enumerable: !0
  2175. },
  2176. DO: {
  2177. get: function() {
  2178. return this.ag
  2179. },
  2180. enumerable: !0
  2181. }
  2182. });
  2183. f.i8 = function() {
  2184. return new f.Yc
  2185. };
  2186. f.h8 = function(c) {
  2187. if (!c) return f.i8();
  2188. var e = c.Z,
  2189. g = c.T,
  2190. h = c.W;
  2191. c = c.aa;
  2192. return {
  2193. Z: {
  2194. k: {
  2195. x: e.k.x,
  2196. y: e.k.y,
  2197. z: e.k.z
  2198. },
  2199. D: {
  2200. r: e.D.r,
  2201. g: e.D.g,
  2202. b: e.D.b,
  2203. a: e.D.a
  2204. },
  2205. t: {
  2206. Da: e.t.Da,
  2207. ga: e.t.ga
  2208. }
  2209. },
  2210. T: {
  2211. k: {
  2212. x: g.k.x,
  2213. y: g.k.y,
  2214. z: g.k.z
  2215. },
  2216. D: {
  2217. r: g.D.r,
  2218. g: g.D.g,
  2219. b: g.D.b,
  2220. a: g.D.a
  2221. },
  2222. t: {
  2223. Da: g.t.Da,
  2224. ga: g.t.ga
  2225. }
  2226. },
  2227. W: {
  2228. k: {
  2229. x: h.k.x,
  2230. y: h.k.y,
  2231. z: h.k.z
  2232. },
  2233. D: {
  2234. r: h.D.r,
  2235. g: h.D.g,
  2236. b: h.D.b,
  2237. a: h.D.a
  2238. },
  2239. t: {
  2240. Da: h.t.Da,
  2241. ga: h.t.ga
  2242. }
  2243. },
  2244. aa: {
  2245. k: {
  2246. x: c.k.x,
  2247. y: c.k.y,
  2248. z: c.k.z
  2249. },
  2250. D: {
  2251. r: c.D.r,
  2252. g: c.D.g,
  2253. b: c.D.b,
  2254. a: c.D.a
  2255. },
  2256. t: {
  2257. Da: c.t.Da,
  2258. ga: c.t.ga
  2259. }
  2260. }
  2261. }
  2262. };
  2263. f.hNa = function(c) {
  2264. if (!c) return [];
  2265. for (var e = [], g = 0; g < c.length; g++) e.push(f.h8(c[g]));
  2266. return e
  2267. };
  2268. f.Zg = function(c, e, g, h, k) {
  2269. this.ag = h || new ArrayBuffer(f.Zg.BYTES_PER_ELEMENT);
  2270. this.hb = k || 0;
  2271. h = this.ag;
  2272. k = this.hb;
  2273. var m = f.he.BYTES_PER_ELEMENT;
  2274. this.ec = c ? new f.he(c.x, c.y, h, k) : new f.he(0, 0, h, k);
  2275. this.YE = e ? f.color(e.r, e.g, e.b, e.a, h, k + m) : f.color(0, 0, 0, 0, h, k + m);
  2276. this.Vk = g ? new f.Cs(g.Da, g.ga, h, k + m + f.Aj.BYTES_PER_ELEMENT) : new f.Cs(0, 0, h, k + m + f.Aj.BYTES_PER_ELEMENT)
  2277. };
  2278. f.Zg.BYTES_PER_ELEMENT = 20;
  2279. Object.defineProperties(f.Zg.prototype, {
  2280. k: {
  2281. get: function() {
  2282. return this.ec
  2283. },
  2284. set: function(c) {
  2285. this.ec.x = c.x;
  2286. this.ec.y = c.y
  2287. },
  2288. enumerable: !0
  2289. },
  2290. D: {
  2291. get: function() {
  2292. return this.YE
  2293. },
  2294. set: function(c) {
  2295. var e = this.YE;
  2296. e.r = c.r;
  2297. e.g = c.g;
  2298. e.b = c.b;
  2299. e.a = c.a
  2300. },
  2301. enumerable: !0
  2302. },
  2303. t: {
  2304. get: function() {
  2305. return this.Vk
  2306. },
  2307. set: function(c) {
  2308. this.Vk.Da = c.Da;
  2309. this.Vk.ga = c.ga
  2310. },
  2311. enumerable: !0
  2312. }
  2313. });
  2314. f.ge = function(c, e, g, h, k) {
  2315. this.ag = h || new ArrayBuffer(f.ge.BYTES_PER_ELEMENT);
  2316. this.hb = k || 0;
  2317. h = this.ag;
  2318. k = this.hb;
  2319. var m = f.Zg.BYTES_PER_ELEMENT;
  2320. this.t8 = c ? new f.Zg(c.k, c.D, c.t, h, k) : new f.Zg(null, null, null, h, k);
  2321. this.G8 = e ? new f.Zg(e.k, e.D, e.t, h, k + m) : new f.Zg(null, null, null, h, k + m);
  2322. this.Q8 = g ? new f.Zg(g.k, g.D, g.t, h, k + 2 * m) : new f.Zg(null, null, null, h, k + 2 * m)
  2323. };
  2324. f.ge.BYTES_PER_ELEMENT = 60;
  2325. Object.defineProperties(f.ge.prototype, {
  2326. a: {
  2327. get: function() {
  2328. return this.t8
  2329. },
  2330. set: function(c) {
  2331. var e = this.t8;
  2332. e.k = c.k;
  2333. e.D = c.D;
  2334. e.t = c.t
  2335. },
  2336. enumerable: !0
  2337. },
  2338. b: {
  2339. get: function() {
  2340. return this.G8
  2341. },
  2342. set: function(c) {
  2343. var e = this.G8;
  2344. e.k = c.k;
  2345. e.D = c.D;
  2346. e.t = c.t
  2347. },
  2348. enumerable: !0
  2349. },
  2350. G: {
  2351. get: function() {
  2352. return this.Q8
  2353. },
  2354. set: function(c) {
  2355. var e = this.Q8;
  2356. e.k = c.k;
  2357. e.D = c.D;
  2358. e.t = c.t
  2359. },
  2360. enumerable: !0
  2361. }
  2362. })
  2363. };
  2364. f.U.wT = function() {
  2365. var c = f.color;
  2366. c.ksa = function() {
  2367. return c(255, 255, 255)
  2368. };
  2369. c.osa = function() {
  2370. return c(255, 255, 0)
  2371. };
  2372. c.Era = function() {
  2373. return c(0, 0, 255)
  2374. };
  2375. c.Lra = function() {
  2376. return c(0, 255, 0)
  2377. };
  2378. c.$ra = function() {
  2379. return c(255, 0, 0)
  2380. };
  2381. c.Tra = function() {
  2382. return c(255, 0, 255)
  2383. };
  2384. c.Dra = function() {
  2385. return c(0, 0, 0)
  2386. };
  2387. c.Yra = function() {
  2388. return c(255, 127, 0)
  2389. };
  2390. c.Kra = function() {
  2391. return c(166, 166, 166)
  2392. };
  2393. f.d(c, "WHITE", c.ksa);
  2394. f.d(c, "YELLOW", c.osa);
  2395. f.d(c, "BLUE", c.Era);
  2396. f.d(c, "GREEN", c.Lra);
  2397. f.d(c, "RED", c.$ra);
  2398. f.d(c, "MAGENTA", c.Tra);
  2399. f.d(c, "BLACK",
  2400. c.Dra);
  2401. f.d(c, "ORANGE", c.Yra);
  2402. f.d(c, "GRAY", c.Kra)
  2403. };
  2404. f.Aj = function(c, d, e, g) {
  2405. this.r = c || 0;
  2406. this.g = d || 0;
  2407. this.b = e || 0;
  2408. this.a = g || 255
  2409. };
  2410. f.color = function(c, d, e, g) {
  2411. return void 0 === c ? {
  2412. r: 0,
  2413. g: 0,
  2414. b: 0,
  2415. a: 255
  2416. } : "string" === typeof c ? f.pea(c) : "object" === typeof c ? {
  2417. r: c.r,
  2418. g: c.g,
  2419. b: c.b,
  2420. a: c.a || 255
  2421. } : {
  2422. r: c,
  2423. g: d,
  2424. b: e,
  2425. a: g || 255
  2426. }
  2427. };
  2428. f.tQa = function(c, d) {
  2429. return c.r === d.r && c.g === d.g && c.b === d.b
  2430. };
  2431. f.Xia = function() {
  2432. this.timestamp = this.z = this.y = this.x = 0
  2433. };
  2434. f.he = function(c, d) {
  2435. this.x = c || 0;
  2436. this.y = d || 0
  2437. };
  2438. f.Oe = function(c, d, e) {
  2439. this.x = c || 0;
  2440. this.y = d || 0;
  2441. this.z = e || 0
  2442. };
  2443. f.Cs = function(c, d) {
  2444. this.Da = c || 0;
  2445. this.ga = d || 0
  2446. };
  2447. f.Um = function(c, d) {
  2448. this.src = c;
  2449. this.ha = d
  2450. };
  2451. f.VPa = function() {
  2452. return new f.Um(f.ONE, f.ZERO)
  2453. };
  2454. f.pea = function(c) {
  2455. c = c.replace(/^#?/, "0x");
  2456. c = parseInt(c);
  2457. return f.color(c >> 16, (c >> 8) % 256, c % 256)
  2458. };
  2459. f.xp = function(c) {
  2460. var d = c.r.toString(16),
  2461. e = c.g.toString(16),
  2462. g = c.b.toString(16);
  2463. return "#" + (16 > c.r ? "0" + d : d) + (16 > c.g ? "0" + e : e) + (16 > c.b ? "0" + g : g)
  2464. };
  2465. f.wK = 0;
  2466. f.Bo = 1;
  2467. f.q7 = 2;
  2468. f.zE = 0;
  2469. f.wU = 1;
  2470. f.j8 = 2;
  2471. f.uv = f.N.extend({
  2472. kA: null,
  2473. NG: null,
  2474. HU: 0,
  2475. ctor: function() {
  2476. this.kA = {};
  2477. this.NG = {};
  2478. this.HU = 2 << (0 | 10 * Math.random())
  2479. },
  2480. Wpa: function() {
  2481. this.HU++;
  2482. return "key_" + this.HU
  2483. },
  2484. ul: function(c, d) {
  2485. if (null != d) {
  2486. var e = this.Wpa();
  2487. this.kA[e] = d;
  2488. this.NG[e] = c
  2489. }
  2490. },
  2491. Jm: function(c) {
  2492. if (null == c) return null;
  2493. var d = this.kA,
  2494. e;
  2495. for (e in d)
  2496. if (d[e] === c) return this.NG[e];
  2497. return null
  2498. },
  2499. R5a: function(c) {
  2500. return this.Jm(c)
  2501. },
  2502. Z1: function(c) {
  2503. if (null != c) {
  2504. var d = this.kA,
  2505. e;
  2506. for (e in d)
  2507. if (d[e] === c) {
  2508. delete this.NG[e];
  2509. delete d[e];
  2510. break
  2511. }
  2512. }
  2513. },
  2514. q1a: function(c) {
  2515. if (null !=
  2516. c)
  2517. for (var d = 0; d < c.length; d++) this.Z1(c[d])
  2518. },
  2519. jB: function() {
  2520. var c = [],
  2521. d = this.kA,
  2522. e;
  2523. for (e in d) c.push(d[e]);
  2524. return c
  2525. },
  2526. $0a: function() {
  2527. this.kA = {};
  2528. this.NG = {}
  2529. },
  2530. count: function() {
  2531. return this.jB().length
  2532. }
  2533. });
  2534. f.x5 = function() {
  2535. this.fontName = "Arial";
  2536. this.fontSize = 12;
  2537. this.textAlign = f.Bo;
  2538. this.verticalAlign = f.zE;
  2539. this.fillStyle = f.color(255, 255, 255, 255);
  2540. this.boundingHeight = this.boundingWidth = 0;
  2541. this.m3 = !1;
  2542. this.strokeStyle = f.color(255, 255, 255, 255);
  2543. this.lineWidth = 1;
  2544. this.cia = !1;
  2545. this.shadowBlur = this.shadowOffsetY = this.shadowOffsetX = 0;
  2546. this.shadowOpacity = 1
  2547. };
  2548. f.K === f.na && (f.assert("function" === typeof f.U.zU, f.l.Hf, "CCTypesWebGL.js"), f.U.zU(), delete f.U.zU);
  2549. f.assert("function" === typeof f.U.wT, f.l.Hf, "CCTypesPropertyDefine.js");
  2550. f.U.wT();
  2551. delete f.U.wT;
  2552. f.aNa = [];
  2553. f.bNa = {};
  2554. f.HS = f.N.extend({
  2555. Pq: null,
  2556. mi: null,
  2557. Ez: null,
  2558. Bt: null,
  2559. ph: null,
  2560. up: null,
  2561. WX: !1,
  2562. VU: !0,
  2563. Qq: 1,
  2564. kZ: "",
  2565. TX: null,
  2566. ka: 1,
  2567. haa: 1,
  2568. ra: 1,
  2569. iaa: 1,
  2570. aA: 0,
  2571. dX: 5,
  2572. An: null,
  2573. Maa: null,
  2574. Qaa: null,
  2575. Paa: null,
  2576. Naa: null,
  2577. Oaa: null,
  2578. GF: !1,
  2579. BNa: !1,
  2580. ePa: null,
  2581. w$: null,
  2582. x$: null,
  2583. VOa: !1,
  2584. yV: null,
  2585. kt: null,
  2586. iW: 1,
  2587. NK: !1,
  2588. E$: !0,
  2589. ctor: function() {
  2590. var c = document,
  2591. d = f.ts,
  2592. e = f.Fl;
  2593. this.kt = f.container.parentNode === c.body ? c.documentElement : f.container.parentNode;
  2594. this.mi = t(0, 0);
  2595. this.HW();
  2596. var c = f.Sb.width,
  2597. g = f.Sb.height;
  2598. this.Ez = t(c, g);
  2599. this.Bt = t(c, g);
  2600. this.ph = x(0, 0, c, g);
  2601. this.up = x(0,
  2602. 0, c, g);
  2603. this.yV = {
  2604. left: 0,
  2605. top: 0
  2606. };
  2607. this.kZ = "Cocos2dHTML5";
  2608. c = f.Ed;
  2609. this.Rya(c.y1 == c.l6 || c.y1 == c.m6);
  2610. f.qy && f.qy.j(this.up);
  2611. this.Maa = new f.Dj(d.TJ, e.KS);
  2612. this.Qaa = new f.Dj(d.hna, e.SHOW_ALL);
  2613. this.Paa = new f.Dj(d.TJ, e.lT);
  2614. this.Naa = new f.Dj(d.TJ, e.LS);
  2615. this.Oaa = new f.Dj(d.TJ, e.MS);
  2616. this.w$ = f.Sb;
  2617. this.x$ = f.s
  2618. },
  2619. UX: function() {
  2620. var c = this.Bt.width,
  2621. d = this.Bt.height;
  2622. this.TX && (this.HW(), this.TX.call());
  2623. 0 < c && this.u2(c, d, this.An)
  2624. },
  2625. aGa: function(c) {
  2626. c ? this.NK || (this.NK = !0, c = this.UX.bind(this), f.ub(window, "resize", c, !1)) : this.NK &&
  2627. (this.NK = !0, c = this.UX.bind(this), window.removeEventListener("resize", c, !1))
  2628. },
  2629. d4a: function(c) {
  2630. if ("function" == typeof c || null == c) this.TX = c
  2631. },
  2632. HW: function() {
  2633. var c = this.mi;
  2634. c.width = this.kt.clientWidth;
  2635. c.height = this.kt.clientHeight
  2636. },
  2637. sNa: function() {
  2638. var c = this.Bt.width,
  2639. d = this.Bt.height;
  2640. 0 < c && this.u2(c, d, this.An)
  2641. },
  2642. Uua: function() {
  2643. if (this.E$) {
  2644. var c = {
  2645. "user-scalable": "no",
  2646. "maximum-scale": "1.0",
  2647. "initial-scale": "1.0"
  2648. },
  2649. d = document.getElementsByName("viewport"),
  2650. e;
  2651. 0 == d.length ? (d = f.fd("meta"), d.name = "viewport", d.content =
  2652. "", document.head.appendChild(d)) : d = d[0];
  2653. if (f.Ed.Or && f.Ed.gx == f.Ed.jD) d.content = "initial-scale:1";
  2654. else {
  2655. e = d.content;
  2656. for (var g in c) RegExp(g).test(e) || (e += ("" == e ? "" : ",") + g + "\x3d" + c[g]);
  2657. d.content = e
  2658. }
  2659. }
  2660. },
  2661. Waa: function() {
  2662. var c = f.Uc();
  2663. this.ra = this.ka = c
  2664. },
  2665. Iaa: function() {
  2666. this.ka = this.haa;
  2667. this.ra = this.iaa
  2668. },
  2669. tNa: function() {},
  2670. ICa: function() {
  2671. this.GF = !0
  2672. },
  2673. HPa: function(c) {
  2674. this.E$ = c
  2675. },
  2676. Rya: function(c) {
  2677. this.WX = c ? !0 : !1
  2678. },
  2679. TXa: function() {
  2680. return this.WX
  2681. },
  2682. mRa: function(c) {
  2683. this.VU = c ? !0 : !1
  2684. },
  2685. pXa: function() {
  2686. return this.VU
  2687. },
  2688. end: function() {},
  2689. OXa: function() {
  2690. return null != this.w$ && null != this.x$
  2691. },
  2692. m3a: function(c) {
  2693. this.iW = c;
  2694. f.Q.ey(f.Q.mp)
  2695. },
  2696. j5a: function() {},
  2697. r3a: function() {},
  2698. Q2a: function(c, d) {
  2699. this.yV = {
  2700. left: c,
  2701. top: d
  2702. }
  2703. },
  2704. $Sa: function() {
  2705. return this.yV
  2706. },
  2707. Dda: function() {
  2708. return t(this.mi.width, this.mi.height)
  2709. },
  2710. l3a: function(c, d) {
  2711. this.mi.width = c;
  2712. this.mi.height = d;
  2713. this.kt.style.width = c + "px";
  2714. this.kt.style.height = d + "px";
  2715. this.UX();
  2716. f.Q.ey(f.Q.mp)
  2717. },
  2718. fQa: function() {},
  2719. JH: function() {
  2720. return t(this.up.width, this.up.height)
  2721. },
  2722. v0: function() {
  2723. return r(this.up.x, this.up.y)
  2724. },
  2725. ZPa: function() {
  2726. return !0
  2727. },
  2728. CVa: function() {
  2729. return this.An
  2730. },
  2731. DHa: function(c) {
  2732. if (c instanceof f.Dj) this.An = c;
  2733. else {
  2734. var d = f.Dj;
  2735. c === d.KS && (this.An = this.Maa);
  2736. c === d.SHOW_ALL && (this.An = this.Qaa);
  2737. c === d.lT && (this.An = this.Paa);
  2738. c === d.LS && (this.An = this.Naa);
  2739. c === d.MS && (this.An = this.Oaa)
  2740. }
  2741. },
  2742. u2: function(c, d, e) {
  2743. if (isNaN(c) || 0 == c || isNaN(d) || 0 == d) f.log(f.l.kla);
  2744. else {
  2745. this.DHa(e);
  2746. var g = this.An;
  2747. if (g) {
  2748. g.Qx(this);
  2749. var h = this.mi.width,
  2750. k = this.mi.height;
  2751. f.Ed.Or && this.Uua(this.mi.width, this.mi.height);
  2752. this.HW();
  2753. if (e != this.An || c !=
  2754. this.Bt.width || d != this.Bt.height || h != this.mi.width || k != this.mi.height) this.Ez = t(c, d), this.Bt = t(c, d), c = g.apply(this, this.Ez), c.scale && 2 == c.scale.length && (this.ka = c.scale[0], this.ra = c.scale[1]), c.viewport && (c = this.ph = c.viewport, d = this.up, d.width = f.Sb.width / this.ka, d.height = f.Sb.height / this.ra, d.x = -c.x / this.ka, d.y = -c.y / this.ra), c = f.Q, f.gq.width = c.Y.width = this.up.width, f.gq.height = c.Y.height = this.up.height, g.Px(this), f.K == f.na && (c.Az(), c.aha()), this.haa = this.ka, this.iaa = this.ra, f.Rd && f.Rd.aua(), f.qy &&
  2755. f.qy.j(this.up)
  2756. } else f.log(f.l.lla)
  2757. }
  2758. },
  2759. tH: function() {
  2760. return t(this.Ez.width, this.Ez.height)
  2761. },
  2762. ZHa: function(c, d, e, g) {
  2763. var h = this.iW,
  2764. k = this.ka,
  2765. m = this.ra;
  2766. f.s.viewport(c * k * h + this.ph.x * h, d * m * h + this.ph.y * h, e * k * h, g * m * h)
  2767. },
  2768. vR: function(c, d, e, g) {
  2769. var h = this.iW,
  2770. k = this.ka,
  2771. m = this.ra;
  2772. f.s.scissor(c * k * h + this.ph.x * h, d * m * h + this.ph.y * h, e * k * h, g * m * h)
  2773. },
  2774. dDa: function() {
  2775. var c = f.s;
  2776. return c.isEnabled(c.SCISSOR_TEST)
  2777. },
  2778. gBa: function() {
  2779. var c = f.s,
  2780. d = this.ka,
  2781. e = this.ra,
  2782. c = c.getParameter(c.SCISSOR_BOX);
  2783. return x((c[0] - this.ph.x) / d, (c[1] - this.ph.y) /
  2784. e, c[2] / d, c[3] / e)
  2785. },
  2786. S4a: function(c) {
  2787. null != c && 0 < c.length && (this.kZ = c)
  2788. },
  2789. JWa: function() {
  2790. return this.kZ
  2791. },
  2792. KWa: function() {
  2793. return this.ph
  2794. },
  2795. sP: function() {
  2796. return this.ka
  2797. },
  2798. BH: function() {
  2799. return this.ra
  2800. },
  2801. uTa: function() {
  2802. return this.Qq
  2803. },
  2804. m_: function(c, d, e) {
  2805. return {
  2806. x: this.Qq * (c - e.left),
  2807. y: this.Qq * (e.top + e.height - d)
  2808. }
  2809. },
  2810. Tqa: function(c, d) {
  2811. var e = this.ph;
  2812. c.x = (this.Qq * (c.x - d.left) - e.x) / this.ka;
  2813. c.y = (this.Qq * (d.top + d.height - c.y) - e.y) / this.ra
  2814. },
  2815. wL: function(c) {
  2816. for (var d = this.ph, e = this.ka, g = this.ra, h, k, m, n = 0; n < c.length; n++) h = c[n],
  2817. k = h.kh, m = h.kp, h.oY((k.x - d.x) / e, (k.y - d.y) / g), h.NA((m.x - d.x) / e, (m.y - d.y) / g)
  2818. }
  2819. });
  2820. f.HS.rW = function() {
  2821. this.dA || (this.dA = this.dA || new f.HS, this.dA.ICa());
  2822. return this.dA
  2823. };
  2824. f.ts = f.N.extend({
  2825. Qx: function() {},
  2826. apply: function() {},
  2827. Px: function() {},
  2828. sY: function(c, d, e) {
  2829. var g = c.kt;
  2830. f.view.VU && f.Ed.Or && g == document.documentElement && f.screen.xwa(g);
  2831. var g = f.Sb,
  2832. h = f.container;
  2833. h.style.width = g.style.width = d + "px";
  2834. h.style.height = g.style.height = e + "px";
  2835. h = c.Qq = 1;
  2836. c.WX && (h = c.Qq = window.devicePixelRatio || 1);
  2837. g.width = d * h;
  2838. g.height = e * h;
  2839. c = document.body;
  2840. var k;
  2841. c && (k = c.style) && (k.paddingTop = k.paddingTop || "0px", k.paddingRight = k.paddingRight || "0px", k.paddingBottom = k.paddingBottom || "0px", k.paddingLeft = k.paddingLeft ||
  2842. "0px", k.borderTop = k.borderTop || "0px", k.borderRight = k.borderRight || "0px", k.borderBottom = k.borderBottom || "0px", k.borderLeft = k.borderLeft || "0px", k.marginTop = k.marginTop || "0px", k.marginRight = k.marginRight || "0px", k.marginBottom = k.marginBottom || "0px", k.marginLeft = k.marginLeft || "0px")
  2843. },
  2844. Z9: function() {
  2845. document.body.insertBefore(f.container, document.body.firstChild);
  2846. var c = document.body.style;
  2847. c.width = window.innerWidth + "px";
  2848. c.height = window.innerHeight + "px";
  2849. c.overflow = "hidden";
  2850. c = f.container.style;
  2851. c.position = "fixed";
  2852. c.left = c.top = "0px";
  2853. document.body.scrollTop = 0
  2854. }
  2855. });
  2856. f.Fl = f.N.extend({
  2857. VX: {
  2858. scale: [1, 1],
  2859. viewport: null
  2860. },
  2861. OE: function(c, d, e, g, h, k) {
  2862. 2 > Math.abs(c - e) && (e = c);
  2863. 2 > Math.abs(d - g) && (g = d);
  2864. c = x(Math.round((c - e) / 2), Math.round((d - g) / 2), e, g);
  2865. f.K == f.fb && f.s.translate(c.x, c.y + g);
  2866. this.VX.scale = [h, k];
  2867. this.VX.viewport = c;
  2868. return this.VX
  2869. },
  2870. Qx: function() {},
  2871. apply: function() {
  2872. return {
  2873. scale: [1, 1]
  2874. }
  2875. },
  2876. Px: function() {}
  2877. });
  2878. (function() {
  2879. var c = f.ts.extend({
  2880. apply: function(c) {
  2881. this.sY(c, c.mi.width, c.mi.height)
  2882. }
  2883. }),
  2884. d = f.ts.extend({
  2885. apply: function(c, d) {
  2886. var e = c.mi.width,
  2887. g = c.mi.height,
  2888. h = f.container.style,
  2889. u = d.width,
  2890. v = d.height,
  2891. z = e / u,
  2892. A = g / v,
  2893. B, C;
  2894. z < A ? (B = e, C = v * z) : (B = u * A, C = g);
  2895. u = Math.round((e - B) / 2);
  2896. C = Math.round((g - C) / 2);
  2897. this.sY(c, e - 2 * u, g - 2 * C);
  2898. h.marginLeft = u + "px";
  2899. h.marginRight = u + "px";
  2900. h.marginTop = C + "px";
  2901. h.marginBottom = C + "px"
  2902. }
  2903. });
  2904. c.extend({
  2905. Qx: function(c) {
  2906. this._super(c);
  2907. c.kt = document.documentElement
  2908. },
  2909. apply: function(c) {
  2910. this._super(c);
  2911. this.Z9()
  2912. }
  2913. });
  2914. d.extend({
  2915. Qx: function(c) {
  2916. this._super(c);
  2917. c.kt = document.documentElement
  2918. },
  2919. apply: function(c, d) {
  2920. this._super(c, d);
  2921. this.Z9()
  2922. }
  2923. });
  2924. var e = f.ts.extend({
  2925. apply: function(c) {
  2926. this.sY(c, f.Sb.width, f.Sb.height)
  2927. }
  2928. });
  2929. f.ts.TJ = new c;
  2930. f.ts.hna = new d;
  2931. f.ts.jMa = new e;
  2932. var c = f.Fl.extend({
  2933. apply: function(c, d) {
  2934. var e = f.Sb.width,
  2935. g = f.Sb.height;
  2936. return this.OE(e, g, e, g, e / d.width, g / d.height)
  2937. }
  2938. }),
  2939. d = f.Fl.extend({
  2940. apply: function(c, d) {
  2941. var e = f.Sb.width,
  2942. g = f.Sb.height,
  2943. h = d.width,
  2944. u = d.height,
  2945. v = e / h,
  2946. z = g / u,
  2947. A = 0,
  2948. B, C;
  2949. v < z ? (A = v, B = e, C = u * A) : (A = z, B = h * A, C = g);
  2950. return this.OE(e,
  2951. g, B, C, A, A)
  2952. }
  2953. }),
  2954. e = f.Fl.extend({
  2955. apply: function(c, d) {
  2956. var e = f.Sb.width,
  2957. g = f.Sb.height,
  2958. h = d.width,
  2959. u = d.height,
  2960. v = e / h,
  2961. z = g / u,
  2962. A, B, C;
  2963. v < z ? (A = z, B = h * A, C = g) : (A = v, B = e, C = u * A);
  2964. return this.OE(e, g, B, C, A, A)
  2965. }
  2966. }),
  2967. g = f.Fl.extend({
  2968. apply: function(c, d) {
  2969. var e = f.Sb.width,
  2970. g = f.Sb.height,
  2971. h = g / d.height;
  2972. return this.OE(e, g, e, g, h, h)
  2973. },
  2974. Px: function(c) {
  2975. f.Q.Y = c.JH()
  2976. }
  2977. }),
  2978. h = f.Fl.extend({
  2979. apply: function(c, d) {
  2980. var e = f.Sb.width,
  2981. g = f.Sb.height,
  2982. h = e / d.width;
  2983. return this.OE(e, g, e, g, h, h)
  2984. },
  2985. Px: function(c) {
  2986. f.Q.Y = c.JH()
  2987. }
  2988. });
  2989. f.Fl.KS = new c;
  2990. f.Fl.SHOW_ALL = new d;
  2991. f.Fl.lT =
  2992. new e;
  2993. f.Fl.LS = new g;
  2994. f.Fl.MS = new h
  2995. })();
  2996. f.Dj = f.N.extend({
  2997. tL: null,
  2998. uL: null,
  2999. ctor: function(c, d) {
  3000. this.IGa(c);
  3001. this.KGa(d)
  3002. },
  3003. Qx: function(c) {
  3004. this.tL.Qx(c);
  3005. this.uL.Qx(c)
  3006. },
  3007. apply: function(c, d) {
  3008. this.tL.apply(c, d);
  3009. return this.uL.apply(c, d)
  3010. },
  3011. Px: function(c) {
  3012. this.tL.Px(c);
  3013. this.uL.Px(c)
  3014. },
  3015. IGa: function(c) {
  3016. c instanceof f.ts && (this.tL = c)
  3017. },
  3018. KGa: function(c) {
  3019. c instanceof f.Fl && (this.uL = c)
  3020. }
  3021. });
  3022. f.Dj.KS = 0;
  3023. f.Dj.lT = 1;
  3024. f.Dj.SHOW_ALL = 2;
  3025. f.Dj.LS = 3;
  3026. f.Dj.MS = 4;
  3027. f.Dj.Gpa = 5;
  3028. f.screen = {
  3029. TN: !1,
  3030. DX: null,
  3031. SY: "",
  3032. jt: null,
  3033. sra: [
  3034. ["requestFullscreen", "exitFullscreen", "fullscreenchange", "fullscreenEnabled", "fullscreenElement"],
  3035. ["requestFullScreen", "exitFullScreen", "fullScreenchange", "fullScreenEnabled", "fullScreenElement"],
  3036. ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitIsFullScreen", "webkitCurrentFullScreenElement"],
  3037. ["mozRequestFullScreen", "mozCancelFullScreen", "mozfullscreenchange", "mozFullScreen", "mozFullScreenElement"],
  3038. ["msRequestFullscreen",
  3039. "msExitFullscreen", "MSFullscreenChange", "msFullscreenEnabled", "msFullscreenElement"
  3040. ]
  3041. ],
  3042. j: function() {
  3043. this.jt = {};
  3044. var c, d, e = this.sra,
  3045. g;
  3046. c = 0;
  3047. for (l = e.length; c < l; c++)
  3048. if ((d = e[c]) && d[1] in document) {
  3049. c = 0;
  3050. for (g = d.length; c < g; c++) this.jt[e[0][c]] = d[c];
  3051. break
  3052. }
  3053. this.TN = void 0 != this.jt.requestFullscreen;
  3054. this.SY = "ontouchstart" in window ? "touchstart" : "mousedown"
  3055. },
  3056. fullScreen: function() {
  3057. return this.TN && document[this.jt.fullscreenEnabled]
  3058. },
  3059. rga: function(c, d) {
  3060. if (this.TN) {
  3061. c = c || document.documentElement;
  3062. c[this.jt.requestFullscreen]();
  3063. if (d) {
  3064. var e = this.jt.SRa;
  3065. this.DX && document.removeEventListener(e, this.DX);
  3066. this.DX = d;
  3067. f.ub(document, e, d, !1)
  3068. }
  3069. return c[this.jt.requestFullscreen]()
  3070. }
  3071. },
  3072. uRa: function() {
  3073. return this.TN ? document[this.jt.exitFullscreen]() : !0
  3074. },
  3075. xwa: function(c, d) {
  3076. function e() {
  3077. h.rga(c, d);
  3078. g.removeEventListener(h.SY, e)
  3079. }
  3080. c = c || document.body;
  3081. var g = f.Sb || c,
  3082. h = this;
  3083. this.rga(c, d);
  3084. f.ub(g, this.SY, e)
  3085. }
  3086. };
  3087. f.screen.j();
  3088. f.qy = {
  3089. wia: r(0, 0),
  3090. xia: r(0, 0),
  3091. top: r(0, 0),
  3092. KZ: r(0, 0),
  3093. kca: r(0, 0),
  3094. bottom: r(0, 0),
  3095. KO: r(0, 0),
  3096. left: r(0, 0),
  3097. right: r(0, 0),
  3098. width: 0,
  3099. height: 0,
  3100. j: function(c) {
  3101. var d = this.width = c.width,
  3102. e = this.height = c.height,
  3103. g = c.x;
  3104. c = c.y;
  3105. var h = c + e,
  3106. k = g + d;
  3107. this.wia.x = g;
  3108. this.wia.y = h;
  3109. this.xia.x = k;
  3110. this.xia.y = h;
  3111. this.top.x = g + d / 2;
  3112. this.top.y = h;
  3113. this.KZ.x = g;
  3114. this.KZ.y = c;
  3115. this.kca.x = k;
  3116. this.kca.y = c;
  3117. this.bottom.x = g + d / 2;
  3118. this.bottom.y = c;
  3119. this.KO.x = g + d / 2;
  3120. this.KO.y = c + e / 2;
  3121. this.left.x = g;
  3122. this.left.y = c + e / 2;
  3123. this.right.x = k;
  3124. this.right.y = c + e / 2
  3125. }
  3126. };
  3127. f.vpa = -90;
  3128. f.wpa = 90;
  3129. f.xpa = 180;
  3130. f.dNa = 0;
  3131. f.Gea = {
  3132. pA: !1,
  3133. L$: !1,
  3134. qaa: r(0, 0),
  3135. Kta: r(0, 0),
  3136. raa: [],
  3137. EX: 0,
  3138. Of: [],
  3139. TY: {},
  3140. aA: 0,
  3141. dX: 5,
  3142. PK: !1,
  3143. QK: 1 / 30,
  3144. v8: 1,
  3145. vv: 0,
  3146. KU: null,
  3147. OK: null,
  3148. isa: function() {
  3149. for (var c = this.aA, d = 0; d < this.dX; d++) {
  3150. if (!(c & 1)) return this.aA |= 1 << d, d;
  3151. c >>= 1
  3152. }
  3153. return -1
  3154. },
  3155. $ta: function(c) {
  3156. 0 > c || c >= this.dX || (c = ~(1 << c), this.aA &= c)
  3157. },
  3158. mt: null,
  3159. y0: function(c) {
  3160. for (var d, e, g, h = [], k = this.TY, m = 0, n = c.length; m < n; m++) d = c[m], g = d.ni, e = k[g], null == e && (e = this.isa(), -1 == e ? f.log(f.l.JCa, e) : (d = this.Of[e] = d, k[g] = e, h.push(d)));
  3161. 0 < h.length && (this.mt.wL(h), c = new f.Gl(h), c.ft = f.Gl.Dy.WR,
  3162. f.Qa.dispatchEvent(c))
  3163. },
  3164. z0: function(c) {
  3165. for (var d, e, g = [], h = this.Of, k = 0, m = c.length; k < m; k++) d = c[k], e = d.ni, e = this.TY[e], null != e && h[e] && (h[e].oY(d.kh), h[e].NA(d.kp), g.push(h[e]));
  3166. 0 < g.length && (this.mt.wL(g), c = new f.Gl(g), c.ft = f.Gl.Dy.fT, f.Qa.dispatchEvent(c))
  3167. },
  3168. zP: function(c) {
  3169. c = this.Tda(c);
  3170. 0 < c.length && (this.mt.wL(c), c = new f.Gl(c), c.ft = f.Gl.Dy.IS, f.Qa.dispatchEvent(c))
  3171. },
  3172. nea: function(c) {
  3173. c = this.Tda(c);
  3174. 0 < c.length && (this.mt.wL(c), c = new f.Gl(c), c.ft = f.Gl.Dy.kS, f.Qa.dispatchEvent(c))
  3175. },
  3176. Tda: function(c) {
  3177. for (var d,
  3178. e, g, h = [], k = this.Of, m = this.TY, n = 0, p = c.length; n < p; n++) d = c[n], g = d.ni, e = m[g], null != e && k[e] && (k[e].oY(d.kh), k[e].NA(d.kp), h.push(k[e]), this.$ta(e), delete m[g]);
  3179. return h
  3180. },
  3181. Vn: function(c) {
  3182. var d = document.documentElement,
  3183. e = window,
  3184. g = null,
  3185. g = "function" === typeof c.getBoundingClientRect ? c.getBoundingClientRect() : c instanceof HTMLCanvasElement ? {
  3186. left: 0,
  3187. top: 0,
  3188. width: c.width,
  3189. height: c.height
  3190. } : {
  3191. left: 0,
  3192. top: 0,
  3193. width: parseInt(c.style.width),
  3194. height: parseInt(c.style.height)
  3195. };
  3196. return {
  3197. left: g.left + e.pageXOffset - d.clientLeft,
  3198. top: g.top +
  3199. e.pageYOffset - d.clientTop,
  3200. width: g.width,
  3201. height: g.height
  3202. }
  3203. },
  3204. WAa: function(c) {
  3205. for (var d = null, e = this.raa, g = c.ni, h = e.length - 1; 0 <= h; h--)
  3206. if (e[h].ni == g) {
  3207. d = e[h];
  3208. break
  3209. }
  3210. d || (d = c);
  3211. return d
  3212. },
  3213. vHa: function(c) {
  3214. for (var d = !1, e = this.raa, g = c.ni, h = e.length - 1; 0 <= h; h--)
  3215. if (e[h].ni == g) {
  3216. e[h] = c;
  3217. d = !0;
  3218. break
  3219. }
  3220. d || (50 >= e.length ? e.push(c) : (e[this.EX] = c, this.EX = (this.EX + 1) % 50))
  3221. },
  3222. HH: function(c, d, e) {
  3223. var g = this.qaa;
  3224. c = this.mt.m_(c, d, e);
  3225. d = new f.jU(c.x, c.y);
  3226. d.NA(g.x, g.y);
  3227. g.x = c.x;
  3228. g.y = c.y;
  3229. return d
  3230. },
  3231. QB: function(c, d, e) {
  3232. var g = this.Kta;
  3233. this.mt.Tqa(c,
  3234. d);
  3235. d = new f.Gf(e);
  3236. d.bHa(c.x, c.y);
  3237. d.zua(g.x, g.y);
  3238. g.x = c.x;
  3239. g.y = c.y;
  3240. return d
  3241. },
  3242. SB: function(c, d) {
  3243. if (null != c.pageX) return {
  3244. x: c.pageX,
  3245. y: c.pageY
  3246. };
  3247. d.left -= document.body.scrollLeft;
  3248. d.top -= document.body.scrollTop;
  3249. return {
  3250. x: c.clientX,
  3251. y: c.clientY
  3252. }
  3253. },
  3254. wP: function(c, d) {
  3255. for (var e = [], g = this.mt, h, k, m = this.qaa, n = c.changedTouches.length, p = 0; p < n; p++)
  3256. if (h = c.changedTouches[p]) {
  3257. var s;
  3258. s = f.Ed.jD === f.Ed.gx ? g.m_(h.pageX, h.pageY, d) : g.m_(h.clientX, h.clientY, d);
  3259. null != h.identifier ? (h = new f.jU(s.x, s.y, h.identifier), k = this.WAa(h).cf(),
  3260. h.NA(k.x, k.y), this.vHa(h)) : (h = new f.jU(s.x, s.y), h.NA(m.x, m.y));
  3261. m.x = s.x;
  3262. m.y = s.y;
  3263. e.push(h)
  3264. }
  3265. return e
  3266. },
  3267. EFa: function(c) {
  3268. if (!this.L$) {
  3269. var d = this.mt = f.view,
  3270. e = this,
  3271. g = "touches" in f.Ed.$Z;
  3272. "mouse" in f.Ed.$Z && (f.ub(window, "mousedown", function() {
  3273. e.pA = !0
  3274. }, !1), f.ub(window, "mouseup", function(d) {
  3275. var h = e.pA;
  3276. e.pA = !1;
  3277. if (h) {
  3278. var h = e.Vn(c),
  3279. k = e.SB(d, h);
  3280. f.Bu(new f.Qy(h.left, h.top, h.width, h.height), k) || (g || e.zP([e.HH(k.x, k.y, h)]), h = e.QB(k, h, f.Gf.Ol), h.$x(d.button), f.Qa.dispatchEvent(h))
  3281. }
  3282. }, !1), f.ub(c, "mousedown", function(d) {
  3283. e.pA = !0;
  3284. var h = e.Vn(c),
  3285. k = e.SB(d, h);
  3286. g || e.y0([e.HH(k.x, k.y, h)]);
  3287. h = e.QB(k, h, f.Gf.Ym);
  3288. h.$x(d.button);
  3289. f.Qa.dispatchEvent(h);
  3290. d.stopPropagation();
  3291. d.preventDefault();
  3292. c.focus()
  3293. }, !1), f.ub(c, "mouseup", function(d) {
  3294. e.pA = !1;
  3295. var h = e.Vn(c),
  3296. k = e.SB(d, h);
  3297. g || e.zP([e.HH(k.x, k.y, h)]);
  3298. h = e.QB(k, h, f.Gf.Ol);
  3299. h.$x(d.button);
  3300. f.Qa.dispatchEvent(h);
  3301. d.stopPropagation();
  3302. d.preventDefault()
  3303. }, !1), f.ub(c, "mousemove", function(d) {
  3304. var h = e.Vn(c),
  3305. k = e.SB(d, h);
  3306. g || e.z0([e.HH(k.x, k.y, h)]);
  3307. h = e.QB(k, h, f.Gf.c6);
  3308. e.pA ? h.$x(d.button) : h.$x(null);
  3309. f.Qa.dispatchEvent(h);
  3310. d.stopPropagation();
  3311. d.preventDefault()
  3312. }, !1), f.ub(c, "mousewheel", function(d) {
  3313. var g = e.Vn(c),
  3314. h = e.SB(d, g),
  3315. g = e.QB(h, g, f.Gf.IT);
  3316. g.$x(d.button);
  3317. g.Nha(0, d.wheelDelta);
  3318. f.Qa.dispatchEvent(g);
  3319. d.stopPropagation();
  3320. d.preventDefault()
  3321. }, !1), f.ub(c, "DOMMouseScroll", function(d) {
  3322. var g = e.Vn(c),
  3323. h = e.SB(d, g),
  3324. g = e.QB(h, g, f.Gf.IT);
  3325. g.$x(d.button);
  3326. g.Nha(0, -120 * d.detail);
  3327. f.Qa.dispatchEvent(g);
  3328. d.stopPropagation();
  3329. d.preventDefault()
  3330. }, !1));
  3331. if (window.navigator.msPointerEnabled) {
  3332. var h = {
  3333. MSPointerDown: e.y0,
  3334. MSPointerMove: e.z0,
  3335. MSPointerUp: e.zP,
  3336. MSPointerCancel: e.nea
  3337. },
  3338. k;
  3339. for (k in h)(function(d, g) {
  3340. f.ub(c, d, function(d) {
  3341. var h = e.Vn(c);
  3342. h.left -= document.documentElement.scrollLeft;
  3343. h.top -= document.documentElement.scrollTop;
  3344. g.call(e, [e.HH(d.clientX, d.clientY, h)]);
  3345. d.stopPropagation()
  3346. }, !1)
  3347. })(k, h[k])
  3348. }
  3349. g && (f.ub(c, "touchstart", function(d) {
  3350. if (d.changedTouches) {
  3351. var g = e.Vn(c);
  3352. g.left -= document.body.scrollLeft;
  3353. g.top -= document.body.scrollTop;
  3354. e.y0(e.wP(d, g));
  3355. d.stopPropagation();
  3356. d.preventDefault();
  3357. c.focus()
  3358. }
  3359. }, !1), f.ub(c, "touchmove", function(d) {
  3360. if (d.changedTouches) {
  3361. var g =
  3362. e.Vn(c);
  3363. g.left -= document.body.scrollLeft;
  3364. g.top -= document.body.scrollTop;
  3365. e.z0(e.wP(d, g));
  3366. d.stopPropagation();
  3367. d.preventDefault()
  3368. }
  3369. }, !1), f.ub(c, "touchend", function(d) {
  3370. if (d.changedTouches) {
  3371. var g = e.Vn(c);
  3372. g.left -= document.body.scrollLeft;
  3373. g.top -= document.body.scrollTop;
  3374. e.zP(e.wP(d, g));
  3375. d.stopPropagation();
  3376. d.preventDefault()
  3377. }
  3378. }, !1), f.ub(c, "touchcancel", function(g) {
  3379. if (g.changedTouches) {
  3380. var h = e.Vn(c);
  3381. h.left -= document.body.scrollLeft;
  3382. h.top -= document.body.scrollTop;
  3383. d.nea(e.wP(g, h));
  3384. g.stopPropagation();
  3385. g.preventDefault()
  3386. }
  3387. }, !1));
  3388. this.Daa();
  3389. this.Caa();
  3390. this.L$ = !0
  3391. }
  3392. },
  3393. Daa: function() {},
  3394. Caa: function() {},
  3395. update: function(c) {
  3396. this.vv > this.QK && (this.vv -= this.QK, f.Qa.dispatchEvent(new f.xla(this.KU)));
  3397. this.vv += c
  3398. }
  3399. };
  3400. var q = f.Gea;
  3401. q.q2a = function(c) {
  3402. this.PK !== c && (this.PK = c, c = f.Q.Dm(), this.PK ? (this.vv = 0, c.UQ(this)) : (this.vv = 0, c.qJ(this)))
  3403. };
  3404. q.r2a = function(c) {
  3405. this.QK !== c && (this.QK = c)
  3406. };
  3407. q.Daa = function() {
  3408. f.ub(f.Sb, "keydown", function(c) {
  3409. f.Qa.dispatchEvent(new f.o5(c.keyCode, !0));
  3410. c.stopPropagation();
  3411. c.preventDefault()
  3412. }, !1);
  3413. f.ub(f.Sb, "keyup", function(c) {
  3414. f.Qa.dispatchEvent(new f.o5(c.keyCode, !1));
  3415. c.stopPropagation();
  3416. c.preventDefault()
  3417. }, !1)
  3418. };
  3419. q.Caa = function() {
  3420. var c = window;
  3421. this.KU = new f.Xia;
  3422. this.OK = c.DeviceMotionEvent || c.DeviceOrientationEvent;
  3423. f.Ed.gx == f.Ed.Y3 && (this.OK = window.DeviceOrientationEvent);
  3424. f.ub(c, this.OK == c.DeviceMotionEvent ? "devicemotion" : "deviceorientation", this.Rxa.bind(this), !1)
  3425. };
  3426. q.Rxa = function(c) {
  3427. var d = window;
  3428. if (this.PK) {
  3429. var e = this.KU;
  3430. if (this.OK == window.DeviceMotionEvent) {
  3431. var g = c.accelerationIncludingGravity;
  3432. e.x = this.v8 * g.x * 0.1;
  3433. e.y = this.v8 * g.y * 0.1;
  3434. e.z = 0.1 * g.z
  3435. } else e.x = c.gamma / 90 * 0.981, e.y = 0.981 * -(c.beta / 90), e.z = c.alpha / 90 * 0.981;
  3436. e.timestamp = c.timeStamp || Date.now();
  3437. c = e.x;
  3438. d.orientation === f.wpa ? (e.x = -e.y, e.y = c) : d.orientation === f.vpa ? (e.x = e.y, e.y = -c) : d.orientation === f.xpa && (e.x = -e.x, e.y = -e.y)
  3439. }
  3440. };
  3441. delete q;
  3442. f.MJa = function(c, d, e, g, h, k) {
  3443. this.a = c;
  3444. this.b = d;
  3445. this.G = e;
  3446. this.P = g;
  3447. this.pa = h;
  3448. this.qa = k
  3449. };
  3450. f.PJa = function() {
  3451. return {
  3452. a: 1,
  3453. b: 0,
  3454. G: 0,
  3455. P: 1,
  3456. pa: 0,
  3457. qa: 0
  3458. }
  3459. };
  3460. f.lv = function(c, d) {
  3461. return {
  3462. x: d.a * c.x + d.G * c.y + d.pa,
  3463. y: d.b * c.x + d.P * c.y + d.qa
  3464. }
  3465. };
  3466. f.Js = function(c, d, e) {
  3467. return {
  3468. x: e.a * c + e.G * d + e.pa,
  3469. y: e.b * c + e.P * d + e.qa
  3470. }
  3471. };
  3472. f.CMa = function(c, d) {
  3473. return {
  3474. width: d.a * c.width + d.G * c.height,
  3475. height: d.b * c.width + d.P * c.height
  3476. }
  3477. };
  3478. f.QJa = function() {
  3479. return {
  3480. a: 1,
  3481. b: 0,
  3482. G: 0,
  3483. P: 1,
  3484. pa: 0,
  3485. qa: 0
  3486. }
  3487. };
  3488. f.OJa = function() {
  3489. return {
  3490. a: 1,
  3491. b: 0,
  3492. G: 0,
  3493. P: 1,
  3494. pa: 0,
  3495. qa: 0
  3496. }
  3497. };
  3498. f.Ki = function(c, d) {
  3499. var e = f.ho(c),
  3500. g = f.fo(c),
  3501. h = f.Vp(c),
  3502. k = f.Wp(c),
  3503. m = f.Js(g, e, d),
  3504. e = f.Js(h, e, d),
  3505. g = f.Js(g, k, d),
  3506. n = f.Js(h, k, d),
  3507. h = Math.min(m.x, e.x, g.x, n.x),
  3508. k = Math.max(m.x, e.x, g.x, n.x),
  3509. p = Math.min(m.y, e.y, g.y, n.y),
  3510. m = Math.max(m.y, e.y, g.y, n.y);
  3511. return x(h, p, k - h, m - p)
  3512. };
  3513. f.Fo = function(c, d) {
  3514. var e = f.ho(c),
  3515. g = f.fo(c),
  3516. h = f.Vp(c),
  3517. k = f.Wp(c),
  3518. m = f.Js(g, e, d),
  3519. e = f.Js(h, e, d),
  3520. g = f.Js(g, k, d),
  3521. n = f.Js(h, k, d),
  3522. h = Math.min(m.x, e.x, g.x, n.x),
  3523. k = Math.max(m.x, e.x, g.x, n.x),
  3524. p = Math.min(m.y, e.y, g.y, n.y),
  3525. m = Math.max(m.y, e.y, g.y, n.y);
  3526. c.x = h;
  3527. c.y = p;
  3528. c.width = k - h;
  3529. c.height = m - p;
  3530. return c
  3531. };
  3532. f.xJ = function(c, d, e) {
  3533. return {
  3534. a: c.a,
  3535. b: c.b,
  3536. G: c.G,
  3537. P: c.P,
  3538. pa: c.pa + c.a * d + c.G * e,
  3539. qa: c.qa + c.b * d + c.P * e
  3540. }
  3541. };
  3542. f.RJa = function(c, d, e) {
  3543. return {
  3544. a: c.a * d,
  3545. b: c.b * d,
  3546. G: c.G * e,
  3547. P: c.P * e,
  3548. pa: c.pa,
  3549. qa: c.qa
  3550. }
  3551. };
  3552. f.hja = function(c) {
  3553. var d = Math.sin(1.57079633),
  3554. e = Math.cos(1.57079633);
  3555. return {
  3556. a: c.a * e + c.G * d,
  3557. b: c.b * e + c.P * d,
  3558. G: c.G * e - c.a * d,
  3559. P: c.P * e - c.b * d,
  3560. pa: c.pa,
  3561. qa: c.qa
  3562. }
  3563. };
  3564. f.Vg = function(c, d) {
  3565. return {
  3566. a: c.a * d.a + c.b * d.G,
  3567. b: c.a * d.b + c.b * d.P,
  3568. G: c.G * d.a + c.P * d.G,
  3569. P: c.G * d.b + c.P * d.P,
  3570. pa: c.pa * d.a + c.qa * d.G + d.pa,
  3571. qa: c.pa * d.b + c.qa * d.P + d.qa
  3572. }
  3573. };
  3574. f.NJa = function(c, d) {
  3575. return c.a === d.a && c.b === d.b && c.G === d.G && c.P === d.P && c.pa === d.pa && c.qa === d.qa
  3576. };
  3577. f.SR = function(c) {
  3578. var d = 1 / (c.a * c.P - c.b * c.G);
  3579. return {
  3580. a: d * c.P,
  3581. b: -d * c.b,
  3582. G: -d * c.G,
  3583. P: d * c.a,
  3584. pa: d * (c.G * c.qa - c.P * c.pa),
  3585. qa: d * (c.b * c.pa - c.a * c.qa)
  3586. }
  3587. };
  3588. f.y6 = parseFloat("1.192092896e-07F");
  3589. f.B1 = function(c) {
  3590. return r(-c.x, -c.y)
  3591. };
  3592. f.Tp = function(c, d) {
  3593. return r(c.x + d.x, c.y + d.y)
  3594. };
  3595. f.gc = function(c, d) {
  3596. return r(c.x - d.x, c.y - d.y)
  3597. };
  3598. f.Up = function(c, d) {
  3599. return r(c.x * d, c.y * d)
  3600. };
  3601. f.A1 = function(c, d) {
  3602. return f.Up(f.Tp(c, d), 0.5)
  3603. };
  3604. f.wC = function(c, d) {
  3605. return c.x * d.x + c.y * d.y
  3606. };
  3607. f.lEa = function(c, d) {
  3608. return c.x * d.y - c.y * d.x
  3609. };
  3610. f.CQ = function(c) {
  3611. return r(-c.y, c.x)
  3612. };
  3613. f.Z_a = function(c) {
  3614. return r(c.y, -c.x)
  3615. };
  3616. f.Y_a = function(c, d) {
  3617. return f.Up(d, f.wC(c, d) / f.wC(d, d))
  3618. };
  3619. f.$_a = function(c, d) {
  3620. return r(c.x * d.x - c.y * d.y, c.x * d.y + c.y * d.x)
  3621. };
  3622. f.c0a = function(c, d) {
  3623. return r(c.x * d.x + c.y * d.y, c.y * d.x - c.x * d.y)
  3624. };
  3625. f.Kfa = function(c) {
  3626. return f.wC(c, c)
  3627. };
  3628. f.Ifa = function(c, d) {
  3629. return f.Kfa(f.gc(c, d))
  3630. };
  3631. f.ff = function(c) {
  3632. return Math.sqrt(f.Kfa(c))
  3633. };
  3634. f.Hfa = function(c, d) {
  3635. return f.ff(f.gc(c, d))
  3636. };
  3637. f.Af = function(c) {
  3638. return f.Up(c, 1 / f.ff(c))
  3639. };
  3640. f.V_a = function(c) {
  3641. return r(Math.cos(c), Math.sin(c))
  3642. };
  3643. f.oEa = function(c) {
  3644. return Math.atan2(c.y, c.x)
  3645. };
  3646. f.Rf = function(c, d, e) {
  3647. if (d > e) {
  3648. var g = d;
  3649. d = e;
  3650. e = g
  3651. }
  3652. return c < d ? d : c < e ? c : e
  3653. };
  3654. f.Gfa = function(c) {
  3655. var d = r(0, 0),
  3656. e = r(1, 1);
  3657. return r(f.Rf(c.x, d.x, e.x), f.Rf(c.y, d.y, e.y))
  3658. };
  3659. f.Jfa = function() {
  3660. var c = f.Q.Y;
  3661. return r(c.width, c.height)
  3662. };
  3663. f.U_a = function(c, d) {
  3664. return r(d(c.x), d(c.y))
  3665. };
  3666. f.Lfa = function(c, d, e) {
  3667. return f.Tp(f.Up(c, 1 - e), f.Up(d, e))
  3668. };
  3669. f.W_a = function(c, d, e) {
  3670. return c.x - e <= d.x && d.x <= c.x + e && c.y - e <= d.y && d.y <= c.y + e ? !0 : !1
  3671. };
  3672. f.T_a = function(c, d) {
  3673. return r(c.x * d.x, c.y * d.y)
  3674. };
  3675. f.S_a = function(c, d) {
  3676. var e = f.Af(c),
  3677. g = f.Af(d),
  3678. e = Math.atan2(e.x * g.y - e.y * g.x, f.wC(e, g));
  3679. return Math.abs(e) < f.y6 ? 0 : e
  3680. };
  3681. f.R_a = function(c, d) {
  3682. var e = Math.acos(f.wC(f.Af(c), f.Af(d)));
  3683. return Math.abs(e) < f.y6 ? 0 : e
  3684. };
  3685. f.nEa = function(c, d, e) {
  3686. c = f.gc(c, d);
  3687. var g = Math.cos(e);
  3688. e = Math.sin(e);
  3689. var h = c.x;
  3690. c.x = h * g - c.y * e + d.x;
  3691. c.y = h * e + c.y * g + d.y;
  3692. return c
  3693. };
  3694. f.z1 = function(c, d, e, g, h) {
  3695. if (c.x == d.x && c.y == d.y || e.x == g.x && e.y == g.y) return !1;
  3696. var k = d.x - c.x;
  3697. d = d.y - c.y;
  3698. var m = g.x - e.x;
  3699. g = g.y - e.y;
  3700. var n = c.x - e.x;
  3701. c = c.y - e.y;
  3702. e = g * k - m * d;
  3703. h.x = m * c - g * n;
  3704. h.y = k * c - d * n;
  3705. if (0 == e) return 0 == h.x || 0 == h.y ? !0 : !1;
  3706. h.x /= e;
  3707. h.y /= e;
  3708. return !0
  3709. };
  3710. f.b0a = function(c, d, e, g) {
  3711. var h = r(0, 0);
  3712. return f.z1(c, d, e, g, h) && 0 <= h.x && 1 >= h.x && 0 <= h.y && 1 >= h.y ? !0 : !1
  3713. };
  3714. f.X_a = function(c, d, e, g) {
  3715. var h = r(0, 0);
  3716. return f.z1(c, d, e, g, h) ? (e = r(0, 0), e.x = c.x + h.x * (d.x - c.x), e.y = c.y + h.x * (d.y - c.y), e) : r(0, 0)
  3717. };
  3718. f.a0a = function(c, d) {
  3719. return null != c && null != d ? c.x == d.x && c.y == d.y : !1
  3720. };
  3721. f.DQ = function(c) {
  3722. c.x = 0;
  3723. c.y = 0
  3724. };
  3725. f.$r = function(c, d) {
  3726. c.x = d.x;
  3727. c.y = d.y
  3728. };
  3729. f.xC = function(c, d) {
  3730. c.x *= d;
  3731. c.y *= d
  3732. };
  3733. f.Mfa = function(c, d) {
  3734. c.x -= d.x;
  3735. c.y -= d.y
  3736. };
  3737. f.BQ = function(c, d) {
  3738. c.x += d.x;
  3739. c.y += d.y
  3740. };
  3741. f.mEa = function(c) {
  3742. f.xC(c, 1 / Math.sqrt(c.x * c.x + c.y * c.y))
  3743. };
  3744. f.H3 = function(c, d, e, g, h) {
  3745. h += g;
  3746. if (!(1 >= h)) {
  3747. d *= 0.5;
  3748. for (var k, m = h - 1, n = g; n < h; n++) {
  3749. k = 2 * n;
  3750. var p = r(c[2 * n], c[2 * n + 1]),
  3751. s;
  3752. if (0 === n) s = f.CQ(f.Af(f.gc(p, r(c[2 * (n + 1)], c[2 * (n + 1) + 1]))));
  3753. else if (n === m) s = f.CQ(f.Af(f.gc(r(c[2 * (n - 1)], c[2 * (n - 1) + 1]), p)));
  3754. else {
  3755. s = r(c[2 * (n - 1)], c[2 * (n - 1) + 1]);
  3756. var u = r(c[2 * (n + 1)], c[2 * (n + 1) + 1]),
  3757. v = f.Af(f.gc(u, p)),
  3758. z = f.Af(f.gc(s, p)),
  3759. A = Math.acos(f.wC(v, z));
  3760. s = A < f.sg(70) ? f.CQ(f.Af(f.A1(v, z))) : A < f.sg(170) ? f.Af(f.A1(v, z)) : f.CQ(f.Af(f.gc(u, s)))
  3761. }
  3762. s = f.Up(s, d);
  3763. e[2 * k] = p.x + s.x;
  3764. e[2 * k + 1] = p.y + s.y;
  3765. e[2 * (k + 1)] = p.x -
  3766. s.x;
  3767. e[2 * (k + 1) + 1] = p.y - s.y
  3768. }
  3769. for (n = 0 == g ? 0 : g - 1; n < m; n++) k = 2 * n, c = k + 2, d = new f.he(e[2 * k], e[2 * k + 1]), h = new f.he(e[2 * (k + 1)], e[2 * (k + 1) + 1]), k = new f.he(e[2 * c], e[2 * c]), g = new f.he(e[2 * (c + 1)], e[2 * (c + 1) + 1]), d = !f.lJa(d.x, d.y, g.x, g.y, h.x, h.y, k.x, k.y), !d.aI && (0 > d.value || 1 < d.value) && (d.aI = !0), d.aI && (e[2 * c] = g.x, e[2 * c + 1] = g.y, e[2 * (c + 1)] = k.x, e[2 * (c + 1) + 1] = k.y)
  3770. }
  3771. };
  3772. f.lJa = function(c, d, e, g, h, k, m, n) {
  3773. if (c == e && d == g || h == m && k == n) return {
  3774. aI: !1,
  3775. value: 0
  3776. };
  3777. e -= c;
  3778. g -= d;
  3779. h -= c;
  3780. k -= d;
  3781. m -= c;
  3782. n -= d;
  3783. c = Math.sqrt(e * e + g * g);
  3784. e /= c;
  3785. g /= c;
  3786. d = h * e + k * g;
  3787. k = k * e - h * g;
  3788. h = d;
  3789. d = m * e + n * g;
  3790. n = n * e - m * g;
  3791. m = d;
  3792. return k == n ? {
  3793. aI: !1,
  3794. value: 0
  3795. } : {
  3796. aI: !0,
  3797. value: (m + (h - m) * n / (n - k)) / c
  3798. }
  3799. };
  3800. f.S5a = function(c) {
  3801. for (var d = 0, e = c.length; d < e; d++) {
  3802. var g = c[(d + 1) % e];
  3803. if (0 < f.lEa(f.gc(g, c[d]), f.gc(c[(d + 2) % e], g))) return !1
  3804. }
  3805. return !0
  3806. };
  3807. f.zKa = function(c, d) {
  3808. d[2] = d[3] = d[6] = d[7] = d[8] = d[9] = d[11] = d[14] = 0;
  3809. d[10] = d[15] = 1;
  3810. d[0] = c.a;
  3811. d[4] = c.G;
  3812. d[12] = c.pa;
  3813. d[1] = c.b;
  3814. d[5] = c.P;
  3815. d[13] = c.qa
  3816. };
  3817. f.nLa = function(c, d) {
  3818. d.a = c[0];
  3819. d.G = c[4];
  3820. d.pa = c[12];
  3821. d.b = c[1];
  3822. d.P = c[5];
  3823. d.qa = c[13]
  3824. };
  3825. f.jU = f.N.extend({
  3826. kh: null,
  3827. kp: null,
  3828. ni: 0,
  3829. mba: !1,
  3830. wG: null,
  3831. ctor: function(c, d, e) {
  3832. this.kh = r(c || 0, d || 0);
  3833. this.ni = e || 0
  3834. },
  3835. cf: function() {
  3836. return {
  3837. x: this.kh.x,
  3838. y: this.kh.y
  3839. }
  3840. },
  3841. uAa: function() {
  3842. return this.kh.x
  3843. },
  3844. vAa: function() {
  3845. return this.kh.y
  3846. },
  3847. qP: function() {
  3848. return {
  3849. x: this.kp.x,
  3850. y: this.kp.y
  3851. }
  3852. },
  3853. UVa: function() {
  3854. return {
  3855. x: this.wG.x,
  3856. y: this.wG.y
  3857. }
  3858. },
  3859. a0: function() {
  3860. return f.gc(this.kh, this.kp)
  3861. },
  3862. tAa: function() {
  3863. return {
  3864. x: this.kh.x,
  3865. y: this.kh.y
  3866. }
  3867. },
  3868. tVa: function() {
  3869. return {
  3870. x: this.kp.x,
  3871. y: this.kp.y
  3872. }
  3873. },
  3874. VVa: function() {
  3875. return {
  3876. x: this.wG.x,
  3877. y: this.wG.y
  3878. }
  3879. },
  3880. dUa: function() {
  3881. return this.ni
  3882. },
  3883. fAa: function() {
  3884. return this.ni
  3885. },
  3886. B4a: function(c, d, e) {
  3887. this.kp = this.kh;
  3888. this.kh = r(d || 0, e || 0);
  3889. this.ni = c;
  3890. this.mba || (this.wG = r(this.kh), this.mba = !0)
  3891. },
  3892. oY: function(c, d) {
  3893. void 0 === d ? (this.kh.x = c.x, this.kh.y = c.y) : (this.kh.x = c, this.kh.y = d)
  3894. },
  3895. NA: function(c, d) {
  3896. this.kp = void 0 === d ? r(c.x, c.y) : r(c || 0, d || 0)
  3897. }
  3898. });
  3899. f.ve = f.N.extend({
  3900. zc: 0,
  3901. Wv: !1,
  3902. eh: null,
  3903. gY: function(c) {
  3904. this.eh = c
  3905. },
  3906. ctor: function(c) {
  3907. this.zc = c
  3908. },
  3909. IH: function() {
  3910. return this.zc
  3911. },
  3912. stopPropagation: function() {
  3913. this.Wv = !0
  3914. },
  3915. XXa: function() {
  3916. return this.Wv
  3917. },
  3918. jTa: function() {
  3919. return this.eh
  3920. }
  3921. });
  3922. f.ve.BK = 0;
  3923. f.ve.Ky = 1;
  3924. f.ve.ty = 2;
  3925. f.ve.Ny = 3;
  3926. f.ve.iq = 4;
  3927. f.kq = f.ve.extend({
  3928. bW: null,
  3929. Hba: null,
  3930. ctor: function(c) {
  3931. f.ve.prototype.ctor.call(this, f.ve.iq);
  3932. this.bW = c
  3933. },
  3934. setUserData: function(c) {
  3935. this.Hba = c
  3936. },
  3937. getUserData: function() {
  3938. return this.Hba
  3939. },
  3940. PTa: function() {
  3941. return this.bW
  3942. }
  3943. });
  3944. f.Gf = f.ve.extend({
  3945. T9: 0,
  3946. P8: 0,
  3947. Nn: 0,
  3948. hj: 0,
  3949. JX: 0,
  3950. KX: 0,
  3951. Saa: 0,
  3952. Taa: 0,
  3953. ctor: function(c) {
  3954. f.ve.prototype.ctor.call(this, f.ve.Ny);
  3955. this.T9 = c
  3956. },
  3957. Nha: function(c, d) {
  3958. this.Saa = c;
  3959. this.Taa = d
  3960. },
  3961. KVa: function() {
  3962. return this.Saa
  3963. },
  3964. LVa: function() {
  3965. return this.Taa
  3966. },
  3967. bHa: function(c, d) {
  3968. this.Nn = c;
  3969. this.hj = d
  3970. },
  3971. cf: function() {
  3972. return {
  3973. x: this.Nn,
  3974. y: this.hj
  3975. }
  3976. },
  3977. tAa: function() {
  3978. return {
  3979. x: this.Nn,
  3980. y: f.view.Ez.height - this.hj
  3981. }
  3982. },
  3983. zua: function(c, d) {
  3984. this.JX = c;
  3985. this.KX = d
  3986. },
  3987. a0: function() {
  3988. return {
  3989. x: this.Nn - this.JX,
  3990. y: this.hj - this.KX
  3991. }
  3992. },
  3993. sTa: function() {
  3994. return this.Nn -
  3995. this.JX
  3996. },
  3997. tTa: function() {
  3998. return this.hj - this.KX
  3999. },
  4000. $x: function(c) {
  4001. this.P8 = c
  4002. },
  4003. ASa: function() {
  4004. return this.P8
  4005. },
  4006. uAa: function() {
  4007. return this.Nn
  4008. },
  4009. vAa: function() {
  4010. return this.hj
  4011. }
  4012. });
  4013. f.Gf.NONE = 0;
  4014. f.Gf.Ym = 1;
  4015. f.Gf.Ol = 2;
  4016. f.Gf.c6 = 3;
  4017. f.Gf.IT = 4;
  4018. f.Gf.pKa = 0;
  4019. f.Gf.rKa = 2;
  4020. f.Gf.qKa = 1;
  4021. f.Gf.kKa = 3;
  4022. f.Gf.lKa = 4;
  4023. f.Gf.mKa = 5;
  4024. f.Gf.nKa = 6;
  4025. f.Gf.oKa = 7;
  4026. f.Gl = f.ve.extend({
  4027. ft: 0,
  4028. Of: null,
  4029. ctor: function(c) {
  4030. f.ve.prototype.ctor.call(this, f.ve.BK);
  4031. this.Of = c || []
  4032. },
  4033. OTa: function() {
  4034. return this.ft
  4035. },
  4036. BWa: function() {
  4037. return this.Of
  4038. },
  4039. POa: function(c) {
  4040. this.ft = c
  4041. },
  4042. TOa: function(c) {
  4043. this.Of = c
  4044. }
  4045. });
  4046. f.Gl.QLa = 5;
  4047. f.Gl.Dy = {
  4048. WR: 0,
  4049. fT: 1,
  4050. IS: 2,
  4051. kS: 3
  4052. };
  4053. f.Xa = f.N.extend({
  4054. mX: null,
  4055. zc: 0,
  4056. $o: null,
  4057. aj: !1,
  4058. it: 0,
  4059. nf: null,
  4060. Ce: !1,
  4061. fA: !0,
  4062. ctor: function(c, d, e) {
  4063. this.mX = e;
  4064. this.zc = c || 0;
  4065. this.$o = d || ""
  4066. },
  4067. nY: function(c) {
  4068. this.Ce = c
  4069. },
  4070. tOa: function() {
  4071. return this.Ce
  4072. },
  4073. lG: function(c) {
  4074. this.aj = c
  4075. },
  4076. Nsa: function() {
  4077. return this.aj
  4078. },
  4079. lOa: function() {
  4080. return this.zc
  4081. },
  4082. gOa: function() {
  4083. return this.$o
  4084. },
  4085. hY: function(c) {
  4086. this.it = c
  4087. },
  4088. eOa: function() {
  4089. return this.it
  4090. },
  4091. mG: function(c) {
  4092. this.nf = c
  4093. },
  4094. jOa: function() {
  4095. return this.nf
  4096. },
  4097. ju: function() {
  4098. return null != this.mX
  4099. },
  4100. p: function() {
  4101. return null
  4102. },
  4103. Lb: function(c) {
  4104. this.fA =
  4105. c
  4106. },
  4107. isEnabled: function() {
  4108. return this.fA
  4109. },
  4110. OQ: function() {},
  4111. wh: function() {}
  4112. });
  4113. f.Xa.Gpa = 0;
  4114. f.Xa.zs = 1;
  4115. f.Xa.VT = 2;
  4116. f.Xa.Ky = 3;
  4117. f.Xa.Ny = 4;
  4118. f.Xa.ty = 5;
  4119. f.Xa.iq = 6;
  4120. f.AE = f.Xa.extend({
  4121. UF: null,
  4122. ctor: function(c, d) {
  4123. this.UF = d;
  4124. var e = this;
  4125. f.Xa.prototype.ctor.call(this, f.Xa.iq, c, function(c) {
  4126. null != e.UF && e.UF(c)
  4127. })
  4128. },
  4129. ju: function() {
  4130. return f.Xa.prototype.ju.call(this) && null != this.UF
  4131. },
  4132. p: function() {
  4133. return new f.AE(this.$o, this.UF)
  4134. }
  4135. });
  4136. f.AE.create = function(c, d) {
  4137. return new f.AE(c, d)
  4138. };
  4139. f.Is = f.Xa.extend({
  4140. uQ: null,
  4141. xQ: null,
  4142. vQ: null,
  4143. wQ: null,
  4144. ctor: function() {
  4145. var c = this;
  4146. f.Xa.prototype.ctor.call(this, f.Xa.Ny, f.Is.Le, function(d) {
  4147. var e = f.Gf;
  4148. switch (d.T9) {
  4149. case e.Ym:
  4150. c.uQ && c.uQ(d);
  4151. break;
  4152. case e.Ol:
  4153. c.xQ && c.xQ(d);
  4154. break;
  4155. case e.c6:
  4156. c.vQ && c.vQ(d);
  4157. break;
  4158. case e.IT:
  4159. c.wQ && c.wQ(d)
  4160. }
  4161. })
  4162. },
  4163. p: function() {
  4164. var c = new f.Is;
  4165. c.uQ = this.uQ;
  4166. c.xQ = this.xQ;
  4167. c.vQ = this.vQ;
  4168. c.wQ = this.wQ;
  4169. return c
  4170. },
  4171. ju: function() {
  4172. return !0
  4173. }
  4174. });
  4175. f.Is.Le = "__cc_mouse";
  4176. f.Is.create = function() {
  4177. return new f.Is
  4178. };
  4179. f.Eo = f.Xa.extend({
  4180. wz: null,
  4181. QC: !1,
  4182. rc: null,
  4183. hd: null,
  4184. gd: null,
  4185. ef: null,
  4186. ctor: function() {
  4187. f.Xa.prototype.ctor.call(this, f.Xa.zs, f.Eo.Le, null);
  4188. this.wz = []
  4189. },
  4190. p4a: function(c) {
  4191. this.QC = c
  4192. },
  4193. p: function() {
  4194. var c = new f.Eo;
  4195. c.rc = this.rc;
  4196. c.hd = this.hd;
  4197. c.gd = this.gd;
  4198. c.ef = this.ef;
  4199. c.QC = this.QC;
  4200. return c
  4201. },
  4202. ju: function() {
  4203. return this.rc ? !0 : (f.log(f.l.Qpa), !1)
  4204. }
  4205. });
  4206. f.Eo.Le = "__cc_touch_one_by_one";
  4207. f.Eo.create = function() {
  4208. return new f.Eo
  4209. };
  4210. f.Do = f.Xa.extend({
  4211. tI: null,
  4212. wI: null,
  4213. vI: null,
  4214. uI: null,
  4215. ctor: function() {
  4216. f.Xa.prototype.ctor.call(this, f.Xa.VT, f.Do.Le, null)
  4217. },
  4218. p: function() {
  4219. var c = new f.Do;
  4220. c.tI = this.tI;
  4221. c.wI = this.wI;
  4222. c.vI = this.vI;
  4223. c.uI = this.uI;
  4224. return c
  4225. },
  4226. ju: function() {
  4227. return null == this.tI && null == this.wI && null == this.vI && null == this.uI ? (f.log(f.l.Ppa), !1) : !0
  4228. }
  4229. });
  4230. f.Do.Le = "__cc_touch_all_at_once";
  4231. f.Do.create = function() {
  4232. return new f.Do
  4233. };
  4234. f.Xa.create = function(c) {
  4235. f.assert(c && c.event, f.l.zla);
  4236. var d = c.event;
  4237. delete c.event;
  4238. var e = null;
  4239. d === f.Xa.zs ? e = new f.Eo : d === f.Xa.VT ? e = new f.Do : d === f.Xa.Ny ? e = new f.Is : d === f.Xa.iq ? (e = new f.AE(c.aza, c.XZ), delete c.aza, delete c.XZ) : d === f.Xa.Ky ? e = new f.Hs : d === f.Xa.ty && (e = new f.Gs(c.XZ), delete c.XZ);
  4240. for (var g in c) e[g] = c[g];
  4241. return e
  4242. };
  4243. f.sca = function(c) {
  4244. var d, e = c.length,
  4245. g = Array(e);
  4246. for (d = 0; d < e; d += 1) g[d] = c[d];
  4247. return g
  4248. };
  4249. f.Rpa = f.N.extend({
  4250. Lk: null,
  4251. Sk: null,
  4252. kea: 0,
  4253. ctor: function() {
  4254. this.Lk = [];
  4255. this.Sk = []
  4256. },
  4257. size: function() {
  4258. return this.Lk.length + this.Sk.length
  4259. },
  4260. empty: function() {
  4261. return 0 === this.Lk.length && 0 === this.Sk.length
  4262. },
  4263. push: function(c) {
  4264. 0 == c.it ? this.Sk.push(c) : this.Lk.push(c)
  4265. },
  4266. Ywa: function() {
  4267. this.Sk.length = 0
  4268. },
  4269. Xwa: function() {
  4270. this.Lk.length = 0
  4271. },
  4272. clear: function() {
  4273. this.Sk.length = 0;
  4274. this.Lk.length = 0
  4275. },
  4276. UTa: function() {
  4277. return this.Lk
  4278. },
  4279. JVa: function() {
  4280. return this.Sk
  4281. }
  4282. });
  4283. f.LK = function(c) {
  4284. var d = f.ve,
  4285. e = c.zc;
  4286. if (e === d.ty) return f.Gs.Le;
  4287. if (e === d.iq) return c.bW;
  4288. if (e === d.Ky) return f.Hs.Le;
  4289. if (e === d.Ny) return f.Is.Le;
  4290. e === d.BK && f.log(f.l.LK);
  4291. return ""
  4292. };
  4293. f.Qa = {
  4294. ES: 0,
  4295. PJ: 1,
  4296. sD: 2,
  4297. TKa: 3,
  4298. bm: {},
  4299. dG: {},
  4300. cp: {},
  4301. UM: {},
  4302. u$: {},
  4303. aB: [],
  4304. gF: [],
  4305. Tv: 0,
  4306. fA: !1,
  4307. daa: 0,
  4308. Lsa: [f.vf.UJ, f.vf.vD],
  4309. DN: function(c) {
  4310. null != this.cp[c.yb] && this.gF.push(c);
  4311. c = c.re();
  4312. for (var d = 0, e = c.length; d < e; d++) this.DN(c[d])
  4313. },
  4314. as: function(c, d) {
  4315. var e = this.cp[c.yb],
  4316. g, h;
  4317. if (e)
  4318. for (g = 0, h = e.length; g < h; g++) e[g].nY(!0);
  4319. if (!0 === d)
  4320. for (e = c.re(), g = 0, h = e.length; g < h; g++) this.as(e[g], !0)
  4321. },
  4322. Km: function(c, d) {
  4323. var e = this.cp[c.yb],
  4324. g, h;
  4325. if (e)
  4326. for (g = 0, h = e.length; g < h; g++) e[g].nY(!1);
  4327. this.DN(c);
  4328. if (!0 === d)
  4329. for (e = c.re(), g = 0, h = e.length; g < h; g++) this.Km(e[g], !0)
  4330. },
  4331. z8: function(c) {
  4332. 0 === this.Tv ? this.c$(c) : this.aB.push(c)
  4333. },
  4334. c$: function(c) {
  4335. var d = c.$o,
  4336. e = this.bm[d];
  4337. e || (e = new f.Rpa, this.bm[d] = e);
  4338. e.push(c);
  4339. 0 == c.it ? (this.Lt(d, this.sD), d = c.nf, null == d && f.log(f.l.Uya), this.lqa(d, c), d.dd && this.Km(d)) : this.Lt(d, this.PJ)
  4340. },
  4341. wW: function(c) {
  4342. return this.bm[c]
  4343. },
  4344. vva: function() {
  4345. if (0 != this.gF.length) {
  4346. for (var c = this.gF, d, e, g = this.cp, h = 0, k = c.length; h < k; h++)
  4347. if (d = g[c[h].yb])
  4348. for (var m = 0, n = d.length; m < n; m++)(e = d[m]) && this.Lt(e.$o, this.sD);
  4349. this.gF.length = 0
  4350. }
  4351. },
  4352. Eaa: function(c) {
  4353. if (c)
  4354. for (var d,
  4355. e = 0; e < c.length;) d = c[e], d.lG(!1), null != d.nf && (this.m9(d.nf, d), d.mG(null)), 0 === this.Tv ? f.Ld(c, d) : ++e
  4356. },
  4357. xw: function(c) {
  4358. var d = this.bm[c];
  4359. if (d) {
  4360. var e = d.Lk;
  4361. this.Eaa(d.Sk);
  4362. this.Eaa(e);
  4363. delete this.dG[c];
  4364. this.Tv || (d.clear(), delete this.bm[c])
  4365. }
  4366. for (var e = this.aB, g, d = 0; d < e.length;)(g = e[d]) && g.$o == c ? f.Ld(e, g) : ++d
  4367. },
  4368. yY: function(c) {
  4369. var d = this.ES,
  4370. e = this.dG;
  4371. e[c] && (d = e[c]);
  4372. d != this.ES && (e[c] = this.ES, d & this.PJ && this.bva(c), d & this.sD && ((d = f.Q.mg) ? this.dva(c, d) : e[c] = this.sD))
  4373. },
  4374. dva: function(c, d) {
  4375. var e = this.wW(c);
  4376. if (e) {
  4377. var g =
  4378. e.Sk;
  4379. g && 0 !== g.length && (this.daa = 0, this.UM = {}, this.lZ(d, !0), e.Sk.sort(this.ava))
  4380. }
  4381. },
  4382. ava: function(c, d) {
  4383. var e = f.Qa.UM;
  4384. return e[d.nf.yb] - e[c.nf.yb]
  4385. },
  4386. bva: function(c) {
  4387. if (c = this.bm[c]) {
  4388. var d = c.Lk;
  4389. if (d && 0 !== d.length) {
  4390. d.sort(this.cva);
  4391. for (var e = 0, g = d.length; e < g && !(0 <= d[e].it);)++e;
  4392. c.kea = e
  4393. }
  4394. }
  4395. },
  4396. cva: function(c, d) {
  4397. return c.it - d.it
  4398. },
  4399. nX: function(c) {
  4400. if (c = this.bm[c]) {
  4401. var d = c.Lk,
  4402. e = c.Sk,
  4403. g, h;
  4404. if (e)
  4405. for (g = 0; g < e.length;) h = e[g], h.aj ? ++g : f.Ld(e, h);
  4406. if (d)
  4407. for (g = 0; g < d.length;) h = d[g], h.aj ? ++g : f.Ld(d, h);
  4408. e && 0 === e.length && c.Ywa();
  4409. d &&
  4410. 0 === d.length && c.Xwa()
  4411. }
  4412. },
  4413. mO: function(c) {
  4414. var d = this.Tv;
  4415. f.assert(0 < d, f.l.Ala);
  4416. c.zc == f.ve.BK ? (this.nX(f.Eo.Le), this.nX(f.Do.Le)) : this.nX(f.LK(c));
  4417. if (!(1 < d)) {
  4418. f.assert(1 == d, f.l.Bla);
  4419. c = this.bm;
  4420. var d = this.dG,
  4421. e;
  4422. for (e in c) c[e].empty() && (delete d[e], delete c[e]);
  4423. e = this.aB;
  4424. if (0 !== e.length) {
  4425. c = 0;
  4426. for (d = e.length; c < d; c++) this.c$(e[c]);
  4427. this.aB.length = 0
  4428. }
  4429. }
  4430. },
  4431. sta: function(c, d) {
  4432. if (!c.Nsa) return !1;
  4433. var e = d.event,
  4434. g = d.yga;
  4435. e.gY(c.nf);
  4436. var h = !1,
  4437. k, m = e.ft,
  4438. n = f.Gl.Dy;
  4439. m == n.WR ? c.rc && (h = c.rc(g, e)) && c.aj && c.wz.push(g) : 0 < c.wz.length &&
  4440. -1 != (k = c.wz.indexOf(g)) && (h = !0, m === n.fT && c.hd ? c.hd(g, e) : m === n.IS ? (c.gd && c.gd(g, e), c.aj && c.wz.splice(k, 1)) : m === n.kS && (c.ef && c.ef(g, e), c.aj && c.wz.splice(k, 1)));
  4441. return e.Wv ? (f.Qa.mO(e), !0) : h && c.aj && c.QC ? (d.UDa && d.touches.splice(g, 1), !0) : !1
  4442. },
  4443. bra: function(c) {
  4444. this.yY(f.Eo.Le);
  4445. this.yY(f.Do.Le);
  4446. var d = this.wW(f.Eo.Le),
  4447. e = this.wW(f.Do.Le);
  4448. if (null != d || null != e) {
  4449. var g = c.Of,
  4450. h = f.sca(g),
  4451. k = {
  4452. event: c,
  4453. UDa: d && e,
  4454. touches: h,
  4455. yga: null
  4456. };
  4457. if (d)
  4458. for (var m = 0; m < g.length; m++)
  4459. if (k.yga = g[m], this.QV(d, this.sta, k), c.Wv) return;
  4460. if (e && 0 <
  4461. h.length && (this.QV(e, this.uta, {
  4462. event: c,
  4463. touches: h
  4464. }), c.Wv)) return;
  4465. this.mO(c)
  4466. }
  4467. },
  4468. uta: function(c, d) {
  4469. if (!c.aj) return !1;
  4470. var e = f.Gl.Dy,
  4471. g = d.event,
  4472. h = d.touches,
  4473. k = g.ft;
  4474. g.gY(c.nf);
  4475. k == e.WR && c.tI ? c.tI(h, g) : k == e.fT && c.wI ? c.wI(h, g) : k == e.IS && c.vI ? c.vI(h, g) : k == e.kS && c.uI && c.uI(h, g);
  4476. return g.Wv ? (f.Qa.mO(g), !0) : !1
  4477. },
  4478. lqa: function(c, d) {
  4479. var e = this.cp[c.yb];
  4480. e || (e = [], this.cp[c.yb] = e);
  4481. e.push(d)
  4482. },
  4483. m9: function(c, d) {
  4484. var e = this.cp[c.yb];
  4485. e && (f.Ld(e, d), 0 === e.length && delete this.cp[c.yb])
  4486. },
  4487. QV: function(c, d, e) {
  4488. var g = !1,
  4489. h = c.Lk,
  4490. k = c.Sk,
  4491. m = 0,
  4492. n;
  4493. if (h && 0 !== h.length)
  4494. for (; m < c.kea; ++m)
  4495. if (n = h[m], n.isEnabled() && !n.Ce && n.aj && d(n, e)) {
  4496. g = !0;
  4497. break
  4498. }
  4499. if (k && !g)
  4500. for (c = 0; c < k.length; c++)
  4501. if (n = k[c], n.isEnabled() && !n.Ce && n.aj && d(n, e)) {
  4502. g = !0;
  4503. break
  4504. }
  4505. if (h && !g)
  4506. for (; m < h.length && (n = h[m], !n.isEnabled() || n.Ce || !n.aj || !d(n, e)); ++m);
  4507. },
  4508. Lt: function(c, d) {
  4509. var e = this.dG;
  4510. e[c] = null == e[c] ? d : d | e[c]
  4511. },
  4512. lZ: function(c, d) {
  4513. var e = c.re(),
  4514. g = 0,
  4515. h = e.length,
  4516. k = this.u$,
  4517. m = this.cp;
  4518. if (0 < h) {
  4519. for (var n; g < h; g++)
  4520. if ((n = e[g]) && 0 > n.Ya) this.lZ(n, !1);
  4521. else break;
  4522. null != m[c.yb] && (k[c.Uq] || (k[c.Uq] = []), k[c.Uq].push(c.yb));
  4523. for (; g < h; g++)(n = e[g]) && this.lZ(n, !1)
  4524. } else null != m[c.yb] && (k[c.Uq] || (k[c.Uq] = []), k[c.Uq].push(c.yb)); if (d) {
  4525. var e = [],
  4526. p;
  4527. for (p in k) e.push(p);
  4528. e.sort(this.eva);
  4529. p = e.length;
  4530. n = this.UM;
  4531. for (g = 0; g < p; g++)
  4532. for (h = k[e[g]], m = 0; m < h.length; m++) n[h[m]] = ++this.daa;
  4533. this.u$ = {}
  4534. }
  4535. },
  4536. eva: function(c, d) {
  4537. return c - d
  4538. },
  4539. addListener: function(c, d) {
  4540. f.assert(c && d, f.l.Wya);
  4541. if (!(c instanceof f.Xa)) f.assert("number" !== typeof d, f.l.Xya), c = f.Xa.create(c);
  4542. else if (c.aj) {
  4543. f.log(f.l.Yya);
  4544. return
  4545. }
  4546. c.ju() && ("number" == typeof d ? 0 == d ? f.log(f.l.Vya) : (c.mG(null),
  4547. c.hY(d), c.lG(!0), c.nY(!1), this.z8(c)) : (c.mG(d), c.hY(0), c.lG(!0), this.z8(c)))
  4548. },
  4549. sZ: function(c, d) {
  4550. var e = f.AE.create(c, d);
  4551. this.addListener(e, 1);
  4552. return e
  4553. },
  4554. removeListener: function(c) {
  4555. if (null != c) {
  4556. var d, e = this.bm,
  4557. g;
  4558. for (g in e) {
  4559. var h = e[g],
  4560. k = h.Lk;
  4561. (d = this.Gaa(h.Sk, c)) ? this.Lt(c.$o, this.sD): (d = this.Gaa(k, c)) && this.Lt(c.$o, this.PJ);
  4562. h.empty() && (delete this.dG[c.$o], delete e[g]);
  4563. if (d) break
  4564. }
  4565. if (!d)
  4566. for (d = this.aB, e = 0, g = d.length; e < g; e++)
  4567. if (h = d[e], h == c) {
  4568. f.Ld(d, h);
  4569. break
  4570. }
  4571. }
  4572. },
  4573. Gaa: function(c, d) {
  4574. if (null == c) return !1;
  4575. for (var e =
  4576. 0, g = c.length; e < g; e++) {
  4577. var h = c[e];
  4578. if (h == d) return h.lG(!1), null != h.nf && (this.m9(h.nf, h), h.mG(null)), 0 == this.Tv && f.Ld(c, h), !0
  4579. }
  4580. return !1
  4581. },
  4582. mga: function(c, d) {
  4583. if (c instanceof f.v) {
  4584. delete this.UM[c.yb];
  4585. f.Ld(this.gF, c);
  4586. var e = this.cp[c.yb];
  4587. if (e) {
  4588. for (var g = f.sca(e), e = 0; e < g.length; e++) this.removeListener(g[e]);
  4589. g.length = 0;
  4590. g = this.aB;
  4591. for (e = 0; e < g.length;) {
  4592. var h = g[e];
  4593. h.nf == c ? (h.mG(null), h.lG(!1), g.splice(e, 1)) : ++e
  4594. }
  4595. if (!0 === d)
  4596. for (g = c.re(), e = 0, h = g.length; e < h; e++) this.mga(g[e], !0)
  4597. }
  4598. } else c == f.Xa.zs ? this.xw(f.Eo.Le) : c ==
  4599. f.Xa.VT ? this.xw(f.Do.Le) : c == f.Xa.Ny ? this.xw(f.Is.Le) : c == f.Xa.ty ? this.xw(f.Gs.Le) : c == f.Xa.Ky ? this.xw(f.Hs.Le) : f.log(f.l.Zya)
  4600. },
  4601. m1a: function(c) {
  4602. this.xw(c)
  4603. },
  4604. Z0a: function() {
  4605. var c = this.bm,
  4606. d = this.Lsa,
  4607. e;
  4608. for (e in c) - 1 === d.indexOf(e) && this.xw(e)
  4609. },
  4610. Y3a: function(c, d) {
  4611. if (null != c) {
  4612. var e = this.bm,
  4613. g;
  4614. for (g in e) {
  4615. var h = e[g].Lk;
  4616. if (h && -1 != h.indexOf(c)) {
  4617. null != c.nf && f.log(f.l.$ya);
  4618. c.it !== d && (c.hY(d), this.Lt(c.$o, this.PJ));
  4619. break
  4620. }
  4621. }
  4622. }
  4623. },
  4624. Lb: function(c) {
  4625. this.fA = c
  4626. },
  4627. isEnabled: function() {
  4628. return this.fA
  4629. },
  4630. dispatchEvent: function(c) {
  4631. if (this.fA) {
  4632. this.vva();
  4633. this.Tv++;
  4634. if (!c || !c.IH) throw "event is undefined";
  4635. if (c.zc == f.ve.BK) this.bra(c);
  4636. else {
  4637. var d = f.LK(c);
  4638. this.yY(d);
  4639. d = this.bm[d];
  4640. null != d && this.QV(d, this.mta, c);
  4641. this.mO(c)
  4642. }
  4643. this.Tv--
  4644. }
  4645. },
  4646. mta: function(c, d) {
  4647. d.gY(c.nf);
  4648. c.mX(d);
  4649. return d.Wv
  4650. },
  4651. UQa: function(c, d) {
  4652. var e = new f.kq(c);
  4653. e.setUserData(d);
  4654. this.dispatchEvent(e)
  4655. }
  4656. };
  4657. f.xla = f.ve.extend({
  4658. u8: null,
  4659. ctor: function(c) {
  4660. f.ve.prototype.ctor.call(this, f.ve.ty);
  4661. this.u8 = c
  4662. }
  4663. });
  4664. f.o5 = f.ve.extend({
  4665. QW: 0,
  4666. K$: !1,
  4667. ctor: function(c, d) {
  4668. f.ve.prototype.ctor.call(this, f.ve.Ky);
  4669. this.QW = c;
  4670. this.K$ = d
  4671. }
  4672. });
  4673. f.Gs = f.Xa.extend({
  4674. aN: null,
  4675. ctor: function(c) {
  4676. this.aN = c;
  4677. var d = this;
  4678. f.Xa.prototype.ctor.call(this, f.Xa.ty, f.Gs.Le, function(c) {
  4679. d.aN(c.u8, c)
  4680. })
  4681. },
  4682. ju: function() {
  4683. f.assert(this.aN, f.l.Npa);
  4684. return !0
  4685. },
  4686. p: function() {
  4687. return new f.Gs(this.aN)
  4688. }
  4689. });
  4690. f.Gs.Le = "__cc_acceleration";
  4691. f.Gs.create = function(c) {
  4692. return new f.Gs(c)
  4693. };
  4694. f.Hs = f.Xa.extend({
  4695. pI: null,
  4696. qI: null,
  4697. ctor: function() {
  4698. var c = this;
  4699. f.Xa.prototype.ctor.call(this, f.Xa.Ky, f.Hs.Le, function(d) {
  4700. d.K$ ? c.pI && c.pI(d.QW, d) : c.qI && c.qI(d.QW, d)
  4701. })
  4702. },
  4703. p: function() {
  4704. var c = new f.Hs;
  4705. c.pI = this.pI;
  4706. c.qI = this.qI;
  4707. return c
  4708. },
  4709. ju: function() {
  4710. return null == this.pI && null == this.qI ? (f.log(f.l.Opa), !1) : !0
  4711. }
  4712. });
  4713. f.Hs.Le = "__cc_keyboard";
  4714. f.Hs.create = function() {
  4715. return new f.Hs
  4716. };
  4717. f.U.yU = function() {
  4718. var c = f.v.prototype;
  4719. c.UY = null;
  4720. c.uG = null;
  4721. c.EW = null;
  4722. c.Hq = null;
  4723. c.ctor = function() {
  4724. this.IW();
  4725. var c = new f.Ma;
  4726. c.c[2] = c.c[3] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[11] = c.c[14] = 0;
  4727. c.c[10] = c.c[15] = 1;
  4728. this.UY = c;
  4729. this.EW = 0;
  4730. this.uG = new f.Ma
  4731. };
  4732. c.Ha = function() {
  4733. !1 === this.Wk && (this.Wk = this.yM = !0)
  4734. };
  4735. c.I = function() {
  4736. if (this.Na) {
  4737. var c = f.s,
  4738. e, g = f.Md;
  4739. g.stack.push(g.top);
  4740. f.Mp(this.uG, g.top);
  4741. g.top = this.uG;
  4742. var h = this.grid;
  4743. h && h.ah && h.dx();
  4744. this.transform();
  4745. var k = this.i;
  4746. if (k && 0 < k.length) {
  4747. var m = k.length;
  4748. this.kd();
  4749. for (e = 0; e <
  4750. m; e++)
  4751. if (k[e] && 0 > k[e].Ya) k[e].I();
  4752. else break;
  4753. for (this.ma(c); e < m; e++) k[e] && k[e].I()
  4754. } else this.ma(c);
  4755. this.arrivalOrder = 0;
  4756. h && h.ah && h.ax(this);
  4757. g.top = g.stack.pop()
  4758. }
  4759. };
  4760. c.transform = function() {
  4761. var c = this.UY,
  4762. e = f.Md.top,
  4763. g = this.se(),
  4764. h = c.c;
  4765. h[0] = g.a;
  4766. h[4] = g.G;
  4767. h[12] = g.pa;
  4768. h[1] = g.b;
  4769. h[5] = g.P;
  4770. h[13] = g.qa;
  4771. h[14] = this.PG;
  4772. f.Np(e, e, c);
  4773. null == this.Hq || null != this.grid && this.grid.Bi() || (c = this.Qb.x, e = this.Qb.y, 0 !== c || 0 !== e ? (f.LT || (c |= 0, e |= 0), f.bC(c, e), this.Hq.gI(), f.bC(-c, -e)) : this.Hq.gI())
  4774. };
  4775. c.se = c.VM
  4776. };
  4777. f.U.uT = function() {
  4778. var c = f.v.prototype;
  4779. f.d(c, "x", c.Vc, c.ls);
  4780. f.d(c, "y", c.Zd, c.Lu);
  4781. f.d(c, "width", c.lf, c.Uh);
  4782. f.d(c, "height", c.Gg, c.Th);
  4783. f.d(c, "anchorX", c.l$, c.Xe);
  4784. f.d(c, "anchorY", c.m$, c.Ye);
  4785. f.d(c, "skewX", c.Uda, c.XI);
  4786. f.d(c, "skewY", c.Vda, c.YI);
  4787. f.d(c, "zIndex", c.sAa, c.tl);
  4788. f.d(c, "vertexZ", c.MBa, c.XHa);
  4789. f.d(c, "rotation", c.Cx, c.yh);
  4790. f.d(c, "rotationX", c.dBa, c.M2);
  4791. f.d(c, "rotationY", c.eBa, c.N2);
  4792. f.d(c, "scale", c.AH, c.ib);
  4793. f.d(c, "scaleX", c.sP, c.jb);
  4794. f.d(c, "scaleY", c.BH, c.tb);
  4795. f.d(c, "children", c.re);
  4796. f.d(c, "childrenCount",
  4797. c.Y_);
  4798. f.d(c, "parent", c.getParent, c.aq);
  4799. f.d(c, "visible", c.V0, c.za);
  4800. f.d(c, "running", c.cDa);
  4801. f.d(c, "ignoreAnchor", c.YCa, c.Gm);
  4802. f.d(c, "actionManager", c.IB, c.zga);
  4803. f.d(c, "scheduler", c.Dm, c.Mha);
  4804. f.d(c, "shaderProgram", c.m0, c.WI);
  4805. f.d(c, "glServerState", c.Zza, c.TGa)
  4806. };
  4807. f.U.vT = function() {
  4808. var c = f.ja.prototype;
  4809. f.d(c, "opacity", c.vb, c.J);
  4810. f.d(c, "opacityModifyRGB", c.vg, c.ee);
  4811. f.d(c, "cascadeOpacity", c.WH, c.Hu);
  4812. f.d(c, "color", c.$a, c.F);
  4813. f.d(c, "cascadeColor", c.VH, c.Gu)
  4814. };
  4815. f.hK = -1;
  4816. f.TQ = 1;
  4817. f.v = f.N.extend({
  4818. Ya: 0,
  4819. Uq: 0,
  4820. PG: 0,
  4821. bj: 0,
  4822. hm: 0,
  4823. ka: 1,
  4824. ra: 1,
  4825. oa: null,
  4826. og: 0,
  4827. pg: 0,
  4828. i: null,
  4829. Na: !0,
  4830. Eb: null,
  4831. Qb: null,
  4832. m: null,
  4833. dd: !1,
  4834. Yb: null,
  4835. mn: !1,
  4836. tag: f.hK,
  4837. userData: null,
  4838. userObject: null,
  4839. Wk: !0,
  4840. yM: !0,
  4841. Dk: !0,
  4842. Gq: null,
  4843. $Oa: null,
  4844. Pf: null,
  4845. D$: null,
  4846. Sh: !1,
  4847. sd: null,
  4848. arrivalOrder: 0,
  4849. Ql: null,
  4850. nh: null,
  4851. nra: null,
  4852. B$: !1,
  4853. Aq: !1,
  4854. Zy: null,
  4855. Ro: null,
  4856. AM: !1,
  4857. Cn: 0,
  4858. Aw: 0,
  4859. ta: "Node",
  4860. uY: !1,
  4861. nd: "",
  4862. IW: function() {
  4863. this.Eb = r(0, 0);
  4864. this.Qb = r(0, 0);
  4865. this.m = t(0, 0);
  4866. this.oa = r(0, 0);
  4867. this.i = [];
  4868. this.Pf = {
  4869. a: 1,
  4870. b: 0,
  4871. G: 0,
  4872. P: 1,
  4873. pa: 0,
  4874. qa: 0
  4875. };
  4876. var c = f.Q;
  4877. this.Ql = c.IB();
  4878. this.nh = c.Dm();
  4879. this.B$ = !0;
  4880. this.Zy = {
  4881. a: 1,
  4882. b: 0,
  4883. G: 0,
  4884. P: 1,
  4885. pa: 0,
  4886. qa: 0
  4887. };
  4888. f.P4 && (this.Ro = new f.P4(this))
  4889. },
  4890. j: function() {
  4891. !1 === this.B$ && this.IW();
  4892. return !0
  4893. },
  4894. Bk: function(c, d) {
  4895. if (c && 0 !== c.length) {
  4896. var e, g = c.length,
  4897. h;
  4898. e = f.v.Fj;
  4899. switch (d) {
  4900. case e.ba:
  4901. for (e = 0; e < g; e++)(h = c[e]) && h.ba();
  4902. break;
  4903. case e.Ra:
  4904. for (e = 0; e < g; e++)(h = c[e]) && h.Ra();
  4905. break;
  4906. case e.sj:
  4907. for (e = 0; e < g; e++)(h = c[e]) && h.sj();
  4908. break;
  4909. case e.De:
  4910. for (e = 0; e < g; e++)(h = c[e]) && h.De();
  4911. break;
  4912. case e.bi:
  4913. for (e = 0; e < g; e++)(h = c[e]) && h.bi();
  4914. break;
  4915. case e.uh:
  4916. for (e = 0; e < g; e++)(h = c[e]) && h.uh();
  4917. break;
  4918. case e.kd:
  4919. for (e =
  4920. 0; e < g; e++)(h = c[e]) && h.kd();
  4921. break;
  4922. default:
  4923. f.assert(0, f.l.vma)
  4924. }
  4925. }
  4926. },
  4927. Ha: null,
  4928. Wa: function(c) {
  4929. for (var d in c) this[d] = c[d]
  4930. },
  4931. Uda: function() {
  4932. return this.og
  4933. },
  4934. XI: function(c) {
  4935. this.og = c;
  4936. this.Ha()
  4937. },
  4938. Vda: function() {
  4939. return this.pg
  4940. },
  4941. YI: function(c) {
  4942. this.pg = c;
  4943. this.Ha()
  4944. },
  4945. tl: function(c) {
  4946. this.Ya = c;
  4947. this.Yb && this.Yb.BC(this, c);
  4948. f.Qa.DN(this)
  4949. },
  4950. Cw: function(c) {
  4951. this.Ya = c
  4952. },
  4953. sAa: function() {
  4954. return this.Ya
  4955. },
  4956. NWa: function() {
  4957. f.log(f.l.Cma);
  4958. return this.Ya
  4959. },
  4960. T4a: function(c) {
  4961. f.log(f.l.Nma);
  4962. this.tl(c)
  4963. },
  4964. o3a: function(c) {
  4965. this.Uq != c && (this.Uq =
  4966. c, f.Qa.DN(this))
  4967. },
  4968. bUa: function() {
  4969. return this.Uq
  4970. },
  4971. MBa: function() {
  4972. return this.PG
  4973. },
  4974. XHa: function(c) {
  4975. this.PG = c
  4976. },
  4977. Cx: function() {
  4978. this.bj !== this.hm && f.log(f.l.Ama);
  4979. return this.bj
  4980. },
  4981. yh: function(c) {
  4982. this.bj = this.hm = c;
  4983. this.Cn = 0.017453292519943295 * this.bj;
  4984. this.Aw = 0.017453292519943295 * this.hm;
  4985. this.Ha()
  4986. },
  4987. dBa: function() {
  4988. return this.bj
  4989. },
  4990. M2: function(c) {
  4991. this.bj = c;
  4992. this.Cn = 0.017453292519943295 * this.bj;
  4993. this.Ha()
  4994. },
  4995. eBa: function() {
  4996. return this.hm
  4997. },
  4998. N2: function(c) {
  4999. this.hm = c;
  5000. this.Aw = 0.017453292519943295 * this.hm;
  5001. this.Ha()
  5002. },
  5003. AH: function() {
  5004. this.ka !==
  5005. this.ra && f.log(f.l.Bma);
  5006. return this.ka
  5007. },
  5008. ib: function(c, d) {
  5009. this.ka = c;
  5010. this.ra = d || 0 === d ? d : c;
  5011. this.Ha()
  5012. },
  5013. sP: function() {
  5014. return this.ka
  5015. },
  5016. jb: function(c) {
  5017. this.ka = c;
  5018. this.Ha()
  5019. },
  5020. BH: function() {
  5021. return this.ra
  5022. },
  5023. tb: function(c) {
  5024. this.ra = c;
  5025. this.Ha()
  5026. },
  5027. o: function(c, d) {
  5028. var e = this.oa;
  5029. void 0 === d ? (e.x = c.x, e.y = c.y) : (e.x = c, e.y = d);
  5030. this.Ha()
  5031. },
  5032. Od: function() {
  5033. return r(this.oa)
  5034. },
  5035. Vc: function() {
  5036. return this.oa.x
  5037. },
  5038. ls: function(c) {
  5039. this.oa.x = c;
  5040. this.Ha()
  5041. },
  5042. Zd: function() {
  5043. return this.oa.y
  5044. },
  5045. Lu: function(c) {
  5046. this.oa.y = c;
  5047. this.Ha()
  5048. },
  5049. Y_: function() {
  5050. return this.i.length
  5051. },
  5052. re: function() {
  5053. return this.i
  5054. },
  5055. V0: function() {
  5056. return this.Na
  5057. },
  5058. za: function(c) {
  5059. this.Na = c;
  5060. this.Ha()
  5061. },
  5062. bk: function() {
  5063. return this.Eb
  5064. },
  5065. S: function(c, d) {
  5066. var e = this.Eb;
  5067. if (void 0 === d) {
  5068. if (c.x === e.x && c.y === e.y) return;
  5069. e.x = c.x;
  5070. e.y = c.y
  5071. } else {
  5072. if (c === e.x && d === e.y) return;
  5073. e.x = c;
  5074. e.y = d
  5075. }
  5076. var g = this.Qb,
  5077. h = this.m;
  5078. g.x = h.width * e.x;
  5079. g.y = h.height * e.y;
  5080. this.Ha()
  5081. },
  5082. bOa: function() {
  5083. return this.Eb
  5084. },
  5085. Uaa: function(c) {
  5086. var d = c.x;
  5087. c = c.y;
  5088. this.Eb.x !== d && (this.Eb.x = d, this.Qb.x = this.m.width * d);
  5089. this.Eb.y !== c && (this.Eb.y = c, this.Qb.y = this.m.height * c);
  5090. this.Ha()
  5091. },
  5092. l$: function() {
  5093. return this.Eb.x
  5094. },
  5095. Xe: function(c) {
  5096. this.Eb.x !== c && (this.Eb.x = c, this.Qb.x = this.m.width * c, this.Ha())
  5097. },
  5098. m$: function() {
  5099. return this.Eb.y
  5100. },
  5101. Ye: function(c) {
  5102. this.Eb.y !== c && (this.Eb.y = c, this.Qb.y = this.m.height * c, this.Ha())
  5103. },
  5104. Bp: function() {
  5105. return this.Qb
  5106. },
  5107. lf: function() {
  5108. return this.m.width
  5109. },
  5110. Uh: function(c) {
  5111. this.m.width = c;
  5112. this.Qb.x = c * this.Eb.x;
  5113. this.Ha()
  5114. },
  5115. Gg: function() {
  5116. return this.m.height
  5117. },
  5118. Th: function(c) {
  5119. this.m.height = c;
  5120. this.Qb.y = c * this.Eb.y;
  5121. this.Ha()
  5122. },
  5123. e: function() {
  5124. return this.m
  5125. },
  5126. Ga: function(c, d) {
  5127. var e =
  5128. this.m;
  5129. if (void 0 === d) {
  5130. if (c.width === e.width && c.height === e.height) return;
  5131. e.width = c.width;
  5132. e.height = c.height
  5133. } else {
  5134. if (c === e.width && d === e.height) return;
  5135. e.width = c;
  5136. e.height = d
  5137. }
  5138. var g = this.Qb,
  5139. h = this.Eb;
  5140. g.x = e.width * h.x;
  5141. g.y = e.height * h.y;
  5142. this.Ha()
  5143. },
  5144. cDa: function() {
  5145. return this.dd
  5146. },
  5147. getParent: function() {
  5148. return this.Yb
  5149. },
  5150. aq: function(c) {
  5151. this.Yb = c
  5152. },
  5153. YCa: function() {
  5154. return this.mn
  5155. },
  5156. Gm: function(c) {
  5157. c != this.mn && (this.mn = c, this.Ha())
  5158. },
  5159. Em: function() {
  5160. return this.tag
  5161. },
  5162. Nm: function(c) {
  5163. this.tag = c
  5164. },
  5165. gf: function() {
  5166. this.nd
  5167. },
  5168. getName: function() {
  5169. return this.nd
  5170. },
  5171. getUserData: function() {
  5172. return this.userData
  5173. },
  5174. setUserData: function(c) {
  5175. this.userData = c
  5176. },
  5177. JBa: function() {
  5178. return this.userObject
  5179. },
  5180. WHa: function(c) {
  5181. this.userObject != c && (this.userObject = c)
  5182. },
  5183. UUa: function() {
  5184. return this.arrivalOrder
  5185. },
  5186. sha: function(c) {
  5187. this.arrivalOrder = c
  5188. },
  5189. IB: function() {
  5190. this.Ql || (this.Ql = f.Q.IB());
  5191. return this.Ql
  5192. },
  5193. zga: function(c) {
  5194. this.Ql != c && (this.Pm(), this.Ql = c)
  5195. },
  5196. Dm: function() {
  5197. this.nh || (this.nh = f.Q.Dm());
  5198. return this.nh
  5199. },
  5200. Mha: function(c) {
  5201. this.nh != c && (this.pJ(), this.nh = c)
  5202. },
  5203. Ee: function() {
  5204. return f.Fo(x(0,
  5205. 0, this.m.width, this.m.height), this.se())
  5206. },
  5207. De: function() {
  5208. this.Pm();
  5209. this.pJ();
  5210. f.Qa.mga(this);
  5211. this.Bk(this.i, f.v.Fj.De)
  5212. },
  5213. Za: function(c) {
  5214. var d = this.i;
  5215. if (null != d)
  5216. for (var e = 0; e < d.length; e++) {
  5217. var g = d[e];
  5218. if (g && g.tag == c) return g
  5219. }
  5220. return null
  5221. },
  5222. sda: function(c) {
  5223. if (!c) return f.log("Invalid name"), null;
  5224. for (var d = this.i, e = 0, g = d.length; e < g; e++)
  5225. if (d[e].nd == c) return d[e];
  5226. return null
  5227. },
  5228. n: function(c, d, e) {
  5229. f.assert(c, f.l.yma);
  5230. c === this ? f.log(f.l.wma) : null !== c.Yb ? f.log(f.l.xma) : (d = null != d ? d : c.Ya, c.tag = null != e ? e : c.tag, this.Gsa(c,
  5231. d), c.Yb = this, this.Gq && (c.Gq = this.Gq), this.dd && (c.ba(), this.AM && c.sj()))
  5232. },
  5233. Yp: function(c) {
  5234. this.Yb && (null == c && (c = !0), this.Yb.removeChild(this, c))
  5235. },
  5236. QFa: function(c) {
  5237. f.log(f.l.Hma);
  5238. this.Yp(c)
  5239. },
  5240. removeChild: function(c, d) {
  5241. 0 !== this.i.length && (null == d && (d = !0), -1 < this.i.indexOf(c) && this.$qa(c, d), this.Ha())
  5242. },
  5243. te: function(c, d) {
  5244. c === f.hK && f.log(f.l.Fma);
  5245. var e = this.Za(c);
  5246. null == e ? f.log(f.l.Gma, c) : this.removeChild(e, d)
  5247. },
  5248. Cu: function(c) {
  5249. f.log(f.l.Ema);
  5250. this.Cf(c)
  5251. },
  5252. Cf: function(c) {
  5253. var d = this.i;
  5254. if (null != d) {
  5255. null == c && (c = !0);
  5256. for (var e = 0; e < d.length; e++) {
  5257. var g = d[e];
  5258. g && (this.dd && (g.uh(), g.Ra()), c && g.De(), g.parent = null)
  5259. }
  5260. this.i.length = 0
  5261. }
  5262. },
  5263. $qa: function(c, d) {
  5264. this.dd && (c.uh(), c.Ra());
  5265. d && c.De();
  5266. c.parent = null;
  5267. f.Ld(this.i, c)
  5268. },
  5269. Gsa: function(c, d) {
  5270. this.Sh = !0;
  5271. this.i.push(c);
  5272. c.Cw(d)
  5273. },
  5274. BC: function(c, d) {
  5275. f.assert(c, f.l.Ima);
  5276. this.Sh = !0;
  5277. c.arrivalOrder = f.TQ;
  5278. f.TQ++;
  5279. c.Cw(d);
  5280. this.Ha()
  5281. },
  5282. kd: function() {
  5283. if (this.Sh) {
  5284. var c = this.i,
  5285. d = c.length,
  5286. e, g, h;
  5287. for (e = 1; e < d; e++) {
  5288. h = c[e];
  5289. for (g = e - 1; 0 <= g;) {
  5290. if (h.Ya < c[g].Ya) c[g + 1] = c[g];
  5291. else if (h.Ya === c[g].Ya && h.arrivalOrder <
  5292. c[g].arrivalOrder) c[g + 1] = c[g];
  5293. else break;
  5294. g--
  5295. }
  5296. c[g + 1] = h
  5297. }
  5298. this.Sh = !1
  5299. }
  5300. },
  5301. ma: function() {},
  5302. mJ: function() {
  5303. null != this.Yb && (this.Yb.mJ(), this.Yb.transform())
  5304. },
  5305. ba: function() {
  5306. this.AM = !1;
  5307. this.dd = !0;
  5308. this.Bk(this.i, f.v.Fj.ba);
  5309. this.lk()
  5310. },
  5311. sj: function() {
  5312. this.AM = !0;
  5313. this.Bk(this.i, f.v.Fj.sj)
  5314. },
  5315. uh: function() {
  5316. this.Bk(this.i, f.v.Fj.uh)
  5317. },
  5318. Ra: function() {
  5319. this.dd = !1;
  5320. this.pause();
  5321. this.Bk(this.i, f.v.Fj.Ra);
  5322. this.Ro && this.Ro.kk()
  5323. },
  5324. V: function(c) {
  5325. f.assert(c, f.l.Kma);
  5326. this.actionManager.Gva(c, this, !this.dd);
  5327. return c
  5328. },
  5329. Pm: function() {
  5330. this.actionManager &&
  5331. this.actionManager.iga(this)
  5332. },
  5333. hJ: function(c) {
  5334. this.actionManager.hga(c)
  5335. },
  5336. sIa: function(c) {
  5337. c === f.uy ? f.log(f.l.Oma) : this.actionManager.IFa(c, this)
  5338. },
  5339. eP: function(c) {
  5340. return c === f.uy ? (f.log(f.l.zma), null) : this.actionManager.eP(c, this)
  5341. },
  5342. NUa: function() {
  5343. return this.actionManager.YDa(this)
  5344. },
  5345. ds: function() {
  5346. this.xga(0)
  5347. },
  5348. xga: function(c) {
  5349. this.scheduler.UQ(this, c, !this.dd)
  5350. },
  5351. UC: function() {
  5352. this.scheduler.qJ(this)
  5353. },
  5354. Ux: function(c, d, e, g) {
  5355. d = d || 0;
  5356. f.assert(c, f.l.Lma);
  5357. f.assert(0 <= d, f.l.Mma);
  5358. e = null == e ? f.mv : e;
  5359. this.scheduler.g2(this,
  5360. c, d, e, g || 0, !this.dd)
  5361. },
  5362. Y1a: function(c, d) {
  5363. this.Ux(c, 0, 0, d)
  5364. },
  5365. Tu: function(c) {
  5366. c && this.scheduler.A3(this, c)
  5367. },
  5368. pJ: function() {
  5369. this.scheduler.Bia(this)
  5370. },
  5371. K1a: function() {
  5372. f.log(f.l.Jma);
  5373. this.lk()
  5374. },
  5375. lk: function() {
  5376. this.scheduler.Km(this);
  5377. this.actionManager && this.actionManager.Km(this);
  5378. f.Qa.Km(this)
  5379. },
  5380. k0a: function() {
  5381. f.log(f.l.Dma);
  5382. this.pause()
  5383. },
  5384. pause: function() {
  5385. this.scheduler.as(this);
  5386. this.actionManager && this.actionManager.as(this);
  5387. f.Qa.as(this)
  5388. },
  5389. rGa: function(c) {
  5390. this.Zy = c;
  5391. this.Aq = this.Wk = !0
  5392. },
  5393. g0a: function() {
  5394. this.yM &&
  5395. (this.D$ = f.SR(this.se()), this.yM = !1);
  5396. return this.D$
  5397. },
  5398. il: function() {
  5399. for (var c = this.se(), d = this.Yb; null != d; d = d.parent) c = f.Vg(c, d.se());
  5400. return c
  5401. },
  5402. oJa: function() {
  5403. return f.SR(this.il())
  5404. },
  5405. yi: function(c) {
  5406. return f.lv(c, this.oJa())
  5407. },
  5408. um: function(c) {
  5409. c = c || r(0, 0);
  5410. return f.lv(c, this.il())
  5411. },
  5412. gxa: function(c) {
  5413. return f.gc(this.yi(c), this.Qb)
  5414. },
  5415. zQa: function(c) {
  5416. c = c || r(0, 0);
  5417. return this.um(f.Tp(c, this.Qb))
  5418. },
  5419. FNa: function(c) {
  5420. c = this.um(c);
  5421. return f.Q.hxa(c)
  5422. },
  5423. yp: function(c) {
  5424. return this.yi(c.cf())
  5425. },
  5426. AQa: function(c) {
  5427. c = c.cf();
  5428. c =
  5429. f.Q.fxa(c);
  5430. return this.gxa(c)
  5431. },
  5432. update: function(c) {
  5433. this.Ro && !this.Ro.Jea() && this.Ro.I(c)
  5434. },
  5435. bi: function() {
  5436. this.Bk(this.i, f.v.Fj.bi)
  5437. },
  5438. OQ: function() {},
  5439. wh: function() {},
  5440. uda: function(c) {
  5441. return this.Ro.uda(c)
  5442. },
  5443. fu: function(c) {
  5444. this.Ro.add(c)
  5445. },
  5446. k1a: function(c) {
  5447. return this.Ro.remove(c)
  5448. },
  5449. X0a: function() {
  5450. this.Ro.kk()
  5451. },
  5452. grid: null,
  5453. ctor: null,
  5454. I: null,
  5455. transform: null,
  5456. se: null,
  5457. En: function() {
  5458. if (!1 === this.Dk) {
  5459. this.Dk = !0;
  5460. var c = this.Gq;
  5461. c && c != this && c.En()
  5462. }
  5463. },
  5464. fY: function(c) {
  5465. if (this.Gq != c) {
  5466. this.Gq = c;
  5467. for (var d = this.i, e = 0, g = d.length; e <
  5468. g; e++) d[e].fY(c)
  5469. }
  5470. },
  5471. yx: function() {
  5472. this.Hq || (this.Hq = new f.rD);
  5473. return this.Hq
  5474. },
  5475. vH: function() {
  5476. return this.grid
  5477. },
  5478. UGa: function(c) {
  5479. this.grid = c
  5480. },
  5481. m0: function() {
  5482. return this.sd
  5483. },
  5484. WI: function(c) {
  5485. this.sd = c
  5486. },
  5487. Zza: function() {
  5488. return this.EW
  5489. },
  5490. TGa: function(c) {
  5491. this.EW = c
  5492. },
  5493. Dza: function() {
  5494. var c = x(0, 0, this.m.width, this.m.height),
  5495. d = this.il(),
  5496. c = f.Ki(c, this.il());
  5497. if (!this.i) return c;
  5498. for (var e = this.i, g = 0; g < e.length; g++) {
  5499. var h = e[g];
  5500. h && h.Na && (h = h.uF(d)) && (c = f.zC(c, h))
  5501. }
  5502. return c
  5503. },
  5504. uF: function(c) {
  5505. var d = x(0, 0, this.m.width, this.m.height);
  5506. c = null == c ? this.se() : f.Vg(this.se(), c);
  5507. d = f.Ki(d, c);
  5508. if (!this.i) return d;
  5509. for (var e = this.i, g = 0; g < e.length; g++) {
  5510. var h = e[g];
  5511. h && h.Na && (h = h.uF(c)) && (d = f.zC(d, h))
  5512. }
  5513. return d
  5514. },
  5515. VM: function() {
  5516. if (this.Wk) {
  5517. var c = this.oa.x,
  5518. d = this.oa.y,
  5519. e = this.Qb.x,
  5520. g = -e,
  5521. h = this.Qb.y,
  5522. k = -h,
  5523. m = this.ka,
  5524. n = this.ra;
  5525. this.mn && (c += e, d += h);
  5526. var p = 1,
  5527. s = 0,
  5528. u = 1,
  5529. v = 0;
  5530. if (0 !== this.bj || 0 !== this.hm) p = Math.cos(-this.Cn), s = Math.sin(-this.Cn), u = Math.cos(-this.Aw), v = Math.sin(-this.Aw);
  5531. var z = this.og || this.pg;
  5532. z || 0 === e && 0 === h || (c += u * g * m + -s * k * n, d += v * g * m + p * k * n);
  5533. var A =
  5534. this.Pf;
  5535. A.a = u * m;
  5536. A.b = v * m;
  5537. A.G = -s * n;
  5538. A.P = p * n;
  5539. A.pa = c;
  5540. A.qa = d;
  5541. z && (A = f.Vg({
  5542. a: 1,
  5543. b: Math.tan(f.sg(this.pg)),
  5544. G: Math.tan(f.sg(this.og)),
  5545. P: 1,
  5546. pa: 0,
  5547. qa: 0
  5548. }, A), 0 !== e || 0 !== h) && (A = f.xJ(A, g, k));
  5549. this.Aq && (A = f.Vg(A, this.Zy), this.Aq = !1);
  5550. this.Pf = A;
  5551. this.Wk = !1
  5552. }
  5553. return this.Pf
  5554. }
  5555. });
  5556. f.v.create = function() {
  5557. return new f.v
  5558. };
  5559. f.v.Fj = {
  5560. ba: 1,
  5561. Ra: 2,
  5562. De: 3,
  5563. sj: 4,
  5564. bi: 5,
  5565. uh: 6,
  5566. kd: 7
  5567. };
  5568. f.K === f.fb ? (q = f.v.prototype, q.ctor = function() {
  5569. this.IW()
  5570. }, q.Ha = function() {
  5571. this.En();
  5572. !1 === this.Wk && (this.Wk = this.yM = !0)
  5573. }, q.I = function(c) {
  5574. if (this.Na) {
  5575. c = c || f.s;
  5576. var d, e = this.i,
  5577. g;
  5578. c.save();
  5579. this.transform(c);
  5580. var h = e.length;
  5581. if (0 < h) {
  5582. this.kd();
  5583. for (d = 0; d < h; d++)
  5584. if (g = e[d], 0 > g.Ya) g.I(c);
  5585. else break;
  5586. for (this.ma(c); d < h; d++) e[d].I(c)
  5587. } else this.ma(c);
  5588. this.Dk = !1;
  5589. this.arrivalOrder = 0;
  5590. c.restore()
  5591. }
  5592. }, q.transform = function(c) {
  5593. c = c || f.s;
  5594. var d = f.view,
  5595. e = this.se();
  5596. c.transform(e.a, e.G, e.b, e.P, e.pa * d.ka, -e.qa * d.ra)
  5597. }, q.se = function() {
  5598. if (this.Wk) {
  5599. var c =
  5600. this.Pf;
  5601. c.pa = this.oa.x;
  5602. c.qa = this.oa.y;
  5603. var d = 1,
  5604. e = 0;
  5605. this.bj && (d = Math.cos(this.Cn), e = Math.sin(this.Cn));
  5606. c.a = c.P = d;
  5607. c.b = -e;
  5608. c.G = e;
  5609. var g = this.ka,
  5610. h = this.ra,
  5611. k = this.Qb.x,
  5612. m = this.Qb.y,
  5613. n = 1E-6 > g && -1E-6 < g ? 1E-6 : g,
  5614. p = 1E-6 > h && -1E-6 < h ? 1E-6 : h;
  5615. if (this.og || this.pg) {
  5616. var s = Math.tan(-this.og * Math.PI / 180),
  5617. u = Math.tan(-this.pg * Math.PI / 180);
  5618. Infinity === s && (s = 99999999);
  5619. Infinity === u && (u = 99999999);
  5620. var v = m * s * n,
  5621. z = k * u * p;
  5622. c.a = d + -e * u;
  5623. c.b = d * s + -e;
  5624. c.G = e + d * u;
  5625. c.P = e * s + d;
  5626. c.pa += d * v + -e * z;
  5627. c.qa += e * v + d * z
  5628. }
  5629. if (1 !== g || 1 !== h) c.a *= n, c.G *= n, c.b *= p, c.P *= p;
  5630. c.pa += d * -k * n + -e * m * p;
  5631. c.qa -= e * -k * n + d * m * p;
  5632. this.mn && (c.pa += k, c.qa += m);
  5633. this.Aq && (this.Pf = f.Vg(c, this.Zy), this.Aq = !1);
  5634. this.Wk = !1
  5635. }
  5636. return this.Pf
  5637. }, q = null) : (f.assert("function" === typeof f.U.yU, f.l.Hf, "BaseNodesWebGL.js"), f.U.yU(), delete f.U.yU);
  5638. f.assert("function" === typeof f.U.uT, f.l.Hf, "BaseNodesPropertyDefine.js");
  5639. f.U.uT();
  5640. delete f.U.uT;
  5641. f.ja = f.v.extend({
  5642. wb: !0,
  5643. kb: 255,
  5644. Lg: 255,
  5645. Ab: null,
  5646. rd: null,
  5647. dg: !1,
  5648. Dg: !1,
  5649. ctor: function() {
  5650. f.v.prototype.ctor.call(this);
  5651. this.Lg = this.kb = 255;
  5652. this.Ab = f.color(255, 255, 255, 255);
  5653. this.rd = f.color(255, 255, 255, 255);
  5654. this.Dg = this.dg = !1
  5655. },
  5656. Jd: function() {},
  5657. vb: function() {
  5658. return this.Lg
  5659. },
  5660. wda: function() {
  5661. return this.kb
  5662. },
  5663. J: function(c) {
  5664. this.kb = this.Lg = c;
  5665. var d = 255,
  5666. e = this.Yb;
  5667. e && e.wb && e.cascadeOpacity && (d = e.kb);
  5668. this.hc(d);
  5669. this.Ab.a = this.rd.a = c
  5670. },
  5671. hc: function(c) {
  5672. this.kb = this.Lg * c / 255;
  5673. if (this.Dg) {
  5674. c = this.i;
  5675. for (var d = 0; d < c.length; d++) {
  5676. var e =
  5677. c[d];
  5678. e && e.wb && e.hc(this.kb)
  5679. }
  5680. }
  5681. },
  5682. WH: function() {
  5683. return this.Dg
  5684. },
  5685. Hu: function(c) {
  5686. this.Dg !== c && ((this.Dg = c) ? this.Iz() : this.MV())
  5687. },
  5688. Iz: function() {
  5689. var c = 255,
  5690. d = this.Yb;
  5691. d && d.wb && d.cascadeOpacity && (c = d.kb);
  5692. this.hc(c)
  5693. },
  5694. MV: function() {
  5695. this.kb = this.Lg;
  5696. for (var c = this.i, d = 0; d < c.length; d++) {
  5697. var e = c[d];
  5698. e && e.wb && e.hc(255)
  5699. }
  5700. },
  5701. $a: function() {
  5702. var c = this.rd;
  5703. return f.color(c.r, c.g, c.b, c.a)
  5704. },
  5705. ou: function() {
  5706. var c = this.Ab;
  5707. return f.color(c.r, c.g, c.b, c.a)
  5708. },
  5709. F: function(c) {
  5710. var d = this.Ab,
  5711. e = this.rd;
  5712. d.r = e.r = c.r;
  5713. d.g = e.g = c.g;
  5714. d.b = e.b = c.b;
  5715. d = (d = this.Yb) && d.wb && d.cascadeColor ? d.ou() : f.color.WHITE;
  5716. this.Wb(d);
  5717. void 0 === c.a || c.Yw || this.J(c.a)
  5718. },
  5719. Wb: function(c) {
  5720. var d = this.Ab,
  5721. e = this.rd;
  5722. d.r = 0 | e.r * c.r / 255;
  5723. d.g = 0 | e.g * c.g / 255;
  5724. d.b = 0 | e.b * c.b / 255;
  5725. if (this.dg)
  5726. for (c = this.i, e = 0; e < c.length; e++) {
  5727. var g = c[e];
  5728. g && g.wb && g.Wb(d)
  5729. }
  5730. },
  5731. VH: function() {
  5732. return this.dg
  5733. },
  5734. Gu: function(c) {
  5735. this.dg !== c && ((this.dg = c) ? this.Hz() : this.LV())
  5736. },
  5737. Hz: function() {
  5738. var c;
  5739. c = (c = this.Yb) && c.wb && c.cascadeColor ? c.ou() : f.color.WHITE;
  5740. this.Wb(c)
  5741. },
  5742. LV: function() {
  5743. var c = this.Ab,
  5744. d = this.rd;
  5745. c.r = d.r;
  5746. c.g = d.g;
  5747. c.b = d.b;
  5748. for (var c = this.i, d = f.color.WHITE, e = 0; e < c.length; e++) {
  5749. var g = c[e];
  5750. g && g.wb && g.Wb(d)
  5751. }
  5752. },
  5753. n: function(c, d, e) {
  5754. f.v.prototype.n.call(this, c, d, e);
  5755. this.dg && this.Hz();
  5756. this.Dg && this.Iz()
  5757. },
  5758. ee: function() {},
  5759. vg: function() {
  5760. return !1
  5761. }
  5762. });
  5763. f.ja.create = function() {
  5764. var c = new f.ja;
  5765. c.j();
  5766. return c
  5767. };
  5768. f.assert("function" === typeof f.U.vT, f.l.Hf, "BaseNodesPropertyDefine.js");
  5769. f.U.vT();
  5770. delete f.U.vT;
  5771. f.v.bMa = 0;
  5772. f.v.dMa = 1;
  5773. f.v.cMa = 2;
  5774. f.v.eMa = 3;
  5775. f.v.aMa = 4;
  5776. f.hq = f.ja.extend({
  5777. textureAtlas: null,
  5778. quadsToDraw: 0,
  5779. wb: !0,
  5780. jA: 0,
  5781. O$: 0,
  5782. Sj: 0,
  5783. Ti: 0,
  5784. Nq: null,
  5785. Jb: !1,
  5786. B: null,
  5787. pM: !1,
  5788. ta: "AtlasNode",
  5789. ctor: function(c, d, e, g) {
  5790. f.ja.prototype.ctor.call(this);
  5791. this.Nq = f.color.WHITE;
  5792. this.B = {
  5793. src: f.Mc,
  5794. ha: f.Lc
  5795. };
  5796. this.pM = !1;
  5797. void 0 !== g && this.CCa(c, d, e, g)
  5798. },
  5799. VC: function() {
  5800. f.log(f.l.jja)
  5801. },
  5802. $a: function() {
  5803. return this.Jb ? this.Nq : f.ja.prototype.$a.call(this)
  5804. },
  5805. ee: function(c) {
  5806. var d = this.color;
  5807. this.Jb = c;
  5808. this.color = d
  5809. },
  5810. vg: function() {
  5811. return this.Jb
  5812. },
  5813. ck: function() {
  5814. return this.B
  5815. },
  5816. ce: function(c, d) {
  5817. this.B = void 0 ===
  5818. d ? c : {
  5819. src: c,
  5820. ha: d
  5821. }
  5822. },
  5823. U2: function(c) {
  5824. this.textureAtlas = c
  5825. },
  5826. DH: function() {
  5827. return this.textureAtlas
  5828. },
  5829. xVa: function() {
  5830. return this.quadsToDraw
  5831. },
  5832. $3a: function(c) {
  5833. this.quadsToDraw = c
  5834. },
  5835. Vt: null,
  5836. qi: null,
  5837. WY: null,
  5838. XE: null,
  5839. CCa: function(c, d, e, g) {
  5840. if (!c) throw "cc.AtlasNode.initWithTileFile(): title should not be null";
  5841. c = f.nb.vd(c);
  5842. return this.va(c, d, e, g)
  5843. },
  5844. va: null,
  5845. JW: function(c, d, e, g) {
  5846. this.Sj = d;
  5847. this.Ti = e;
  5848. this.Jb = !0;
  5849. this.qi = c;
  5850. if (!this.qi) return f.log(f.l.P3), !1;
  5851. this.Vt = this.qi;
  5852. this.jL();
  5853. this.quadsToDraw = g;
  5854. return !0
  5855. },
  5856. KW: function(c,
  5857. d, e, g) {
  5858. this.Sj = d;
  5859. this.Ti = e;
  5860. this.Nq = f.color.WHITE;
  5861. this.Jb = !0;
  5862. this.B.src = f.Mc;
  5863. this.B.ha = f.Lc;
  5864. d = this.rd;
  5865. this.XE = new Float32Array([d.r / 255, d.g / 255, d.b / 255, this.Lg / 255]);
  5866. this.textureAtlas = new f.wq;
  5867. this.textureAtlas.va(c, g);
  5868. if (!this.textureAtlas) return f.log(f.l.P3), !1;
  5869. this.Yk();
  5870. this.Eba();
  5871. this.jL();
  5872. this.quadsToDraw = g;
  5873. this.shaderProgram = f.xg.be(f.uK);
  5874. this.WY = f.s.getUniformLocation(this.shaderProgram.Bx(), "u_color");
  5875. return !0
  5876. },
  5877. ma: null,
  5878. fn: function(c) {
  5879. c = c || f.s;
  5880. f.qC(this);
  5881. f.Fm(this.B.src, this.B.ha);
  5882. this.WY &&
  5883. this.XE && (c.uniform4fv(this.WY, this.XE), this.textureAtlas.Vca(this.quadsToDraw))
  5884. },
  5885. F: null,
  5886. nua: function(c) {
  5887. var d = this.rd;
  5888. if (d.r != c.r || d.g != c.g || d.b != c.b) {
  5889. d = f.color(c.r, c.g, c.b);
  5890. this.Nq = c;
  5891. if (this.Jb) {
  5892. var e = this.kb;
  5893. d.r = d.r * e / 255;
  5894. d.g = d.g * e / 255;
  5895. d.b = d.b * e / 255
  5896. }
  5897. f.ja.prototype.F.call(this, c);
  5898. this.texture && (c = this.qi.md) && (d = f.nb.vP(c)) && (c = f.HB(c, d, this.rd, x(0, 0, c.width, c.height)), d = new f.Pa, d.sh(c), d.$d(), this.texture = d)
  5899. }
  5900. },
  5901. oua: function(c) {
  5902. var d = f.color(c.r, c.g, c.b);
  5903. this.Nq = c;
  5904. var e = this.kb;
  5905. this.Jb && (d.r = d.r *
  5906. e / 255, d.g = d.g * e / 255, d.b = d.b * e / 255);
  5907. f.ja.prototype.F.call(this, c);
  5908. c = this.Ab;
  5909. this.XE = new Float32Array([c.r / 255, c.g / 255, c.b / 255, e / 255])
  5910. },
  5911. J: function() {},
  5912. lY: function(c) {
  5913. f.ja.prototype.J.call(this, c);
  5914. this.Jb && (this.color = this.Nq)
  5915. },
  5916. mY: function(c) {
  5917. f.ja.prototype.J.call(this, c);
  5918. this.Jb ? this.color = this.Nq : (c = this.Ab, this.XE = new Float32Array([c.r / 255, c.g / 255, c.b / 255, this.kb / 255]))
  5919. },
  5920. sb: null,
  5921. xF: function() {
  5922. return this.Vt
  5923. },
  5924. BW: function() {
  5925. return this.textureAtlas.texture
  5926. },
  5927. ab: null,
  5928. qY: function(c) {
  5929. this.Vt = c
  5930. },
  5931. rY: function(c) {
  5932. this.textureAtlas.texture =
  5933. c;
  5934. this.Yk();
  5935. this.Eba()
  5936. },
  5937. jL: null,
  5938. Bqa: function() {
  5939. var c = this.texture.e();
  5940. this.O$ = 0 | c.height / this.Ti;
  5941. this.jA = 0 | c.width / this.Sj
  5942. },
  5943. Cqa: function() {
  5944. var c = this.texture,
  5945. d = c.e();
  5946. this.pM && (d = c.m);
  5947. this.O$ = 0 | d.height / this.Ti;
  5948. this.jA = 0 | d.width / this.Sj
  5949. },
  5950. Yk: function() {
  5951. this.textureAtlas.texture.Ep() || (this.B.src = f.SRC_ALPHA, this.B.ha = f.ONE_MINUS_SRC_ALPHA)
  5952. },
  5953. Eba: function() {
  5954. this.Jb = this.textureAtlas.texture.Ep()
  5955. },
  5956. iY: function(c) {
  5957. this.pM = c
  5958. }
  5959. });
  5960. q = f.hq.prototype;
  5961. f.K === f.na ? (q.va = q.KW, q.ma = q.fn, q.F = q.oua, q.J = q.mY, q.sb = q.BW, q.ab = q.rY, q.jL = q.Cqa) : (q.va = q.JW, q.ma = f.v.prototype.ma, q.F = q.nua, q.J = q.lY, q.sb = q.xF, q.ab = q.qY, q.jL = q.Bqa);
  5962. f.d(q, "opacity", q.vb, q.J);
  5963. f.d(q, "color", q.$a, q.F);
  5964. f.d(q, "texture", q.sb, q.ab);
  5965. f.hq.create = function(c, d, e, g) {
  5966. return new f.hq(c, d, e, g)
  5967. };
  5968. f.U.EU = function() {
  5969. f.Pa = f.N.extend({
  5970. HOa: !0,
  5971. gp: null,
  5972. kr: 0,
  5973. jr: 0,
  5974. nd: "",
  5975. m: null,
  5976. Pp: 0,
  5977. Qp: 0,
  5978. oM: !1,
  5979. Zz: !1,
  5980. shaderProgram: null,
  5981. ie: !1,
  5982. md: null,
  5983. Wh: null,
  5984. url: null,
  5985. dc: null,
  5986. ctor: function() {
  5987. this.m = t(0, 0);
  5988. this.gp = f.Pa.Ica
  5989. },
  5990. W1: function() {
  5991. this.Wh && f.s.deleteTexture(this.Wh);
  5992. f.L.wh(this.url)
  5993. },
  5994. Nda: function() {
  5995. return this.gp
  5996. },
  5997. h0: function() {
  5998. return this.kr
  5999. },
  6000. g0: function() {
  6001. return this.jr
  6002. },
  6003. getName: function() {
  6004. return this.Wh
  6005. },
  6006. e: function() {
  6007. return t(this.m.width / f.Uc(), this.m.height / f.Uc())
  6008. },
  6009. lf: function() {
  6010. return this.m.width / f.Uc()
  6011. },
  6012. Gg: function() {
  6013. return this.m.height / f.Uc()
  6014. },
  6015. Kza: function() {
  6016. return this.m
  6017. },
  6018. zAa: function() {
  6019. return this.Pp
  6020. },
  6021. eHa: function(c) {
  6022. this.Pp = c
  6023. },
  6024. AAa: function() {
  6025. return this.Qp
  6026. },
  6027. fHa: function(c) {
  6028. this.Qp = c
  6029. },
  6030. m0: function() {
  6031. return this.shaderProgram
  6032. },
  6033. WI: function(c) {
  6034. this.shaderProgram = c
  6035. },
  6036. Ep: function() {
  6037. return this.oM
  6038. },
  6039. YBa: function() {
  6040. return this.Zz
  6041. },
  6042. description: function() {
  6043. return "\x3ccc.Texture2D | Name \x3d " + this.nd + " | Dimensions \x3d " + this.kr + " x " + this.jr + " | Coordinates \x3d (" + this.Pp + ", " + this.Qp + ")\x3e"
  6044. },
  6045. GFa: function() {},
  6046. kDa: function(c) {
  6047. return c
  6048. },
  6049. su: function(c, d, e, g, h) {
  6050. var k = f.Pa,
  6051. m = f.s,
  6052. n = m.RGBA,
  6053. p = m.UNSIGNED_BYTE,
  6054. s = e * f.Pa.p8[d] / 8;
  6055. 0 === s % 8 ? m.pixelStorei(m.UNPACK_ALIGNMENT, 8) : 0 === s % 4 ? m.pixelStorei(m.UNPACK_ALIGNMENT, 4) : 0 === s % 2 ? m.pixelStorei(m.UNPACK_ALIGNMENT, 2) : m.pixelStorei(m.UNPACK_ALIGNMENT, 1);
  6056. this.Wh = m.createTexture();
  6057. f.Ai(this);
  6058. m.texParameteri(m.TEXTURE_2D, m.TEXTURE_MIN_FILTER, m.LINEAR);
  6059. m.texParameteri(m.TEXTURE_2D, m.TEXTURE_MAG_FILTER, m.LINEAR);
  6060. m.texParameteri(m.TEXTURE_2D, m.TEXTURE_WRAP_S, m.CLAMP_TO_EDGE);
  6061. m.texParameteri(m.TEXTURE_2D,
  6062. m.TEXTURE_WRAP_T, m.CLAMP_TO_EDGE);
  6063. switch (d) {
  6064. case k.sq:
  6065. n = m.RGBA;
  6066. break;
  6067. case k.dE:
  6068. n = m.RGB;
  6069. break;
  6070. case k.jK:
  6071. p = m.UNSIGNED_SHORT_4_4_4_4;
  6072. break;
  6073. case k.iK:
  6074. p = m.UNSIGNED_SHORT_5_5_5_1;
  6075. break;
  6076. case k.cE:
  6077. p = m.UNSIGNED_SHORT_5_6_5;
  6078. break;
  6079. case k.nT:
  6080. n = m.LUMINANCE_ALPHA;
  6081. break;
  6082. case k.bE:
  6083. n = m.ALPHA;
  6084. break;
  6085. case k.oT:
  6086. n = m.LUMINANCE;
  6087. break;
  6088. default:
  6089. f.assert(0, f.l.Yoa)
  6090. }
  6091. m.texImage2D(m.TEXTURE_2D, 0, n, e, g, 0, n, p, c);
  6092. this.m.width = h.width;
  6093. this.m.height = h.height;
  6094. this.kr = e;
  6095. this.jr = g;
  6096. this.gp = d;
  6097. this.Pp = h.width / e;
  6098. this.Qp = h.height / g;
  6099. this.Zz =
  6100. this.oM = !1;
  6101. this.shaderProgram = f.xg.be(f.jE);
  6102. return this.ie = !0
  6103. },
  6104. cya: function(c) {
  6105. var d = [0, this.Qp, this.Pp, this.Qp, 0, 0, this.Pp, 0],
  6106. e = this.kr * this.Pp,
  6107. g = this.jr * this.Qp;
  6108. c = [c.x, c.y, 0, e + c.x, c.y, 0, c.x, g + c.y, 0, e + c.x, g + c.y, 0];
  6109. f.wf(f.Gh | f.Wy);
  6110. this.sd.Ff();
  6111. this.sd.dJ();
  6112. f.Ai(this);
  6113. e = f.s;
  6114. e.vertexAttribPointer(f.Oc, 2, e.FLOAT, !1, 0, c);
  6115. e.vertexAttribPointer(f.$g, 2, e.FLOAT, !1, 0, d);
  6116. e.drawArrays(e.TRIANGLE_STRIP, 0, 4)
  6117. },
  6118. fya: function(c) {
  6119. var d = [0, this.Qp, this.Pp, this.Qp, 0, 0, this.Pp, 0];
  6120. c = [c.x, c.y, c.x + c.width, c.y, c.x, c.y + c.height,
  6121. c.x + c.width, c.y + c.height
  6122. ];
  6123. f.wf(f.Gh | f.Wy);
  6124. this.sd.Ff();
  6125. this.sd.dJ();
  6126. f.Ai(this);
  6127. var e = f.s;
  6128. e.vertexAttribPointer(f.Oc, 2, e.FLOAT, !1, 0, c);
  6129. e.vertexAttribPointer(f.$g, 2, e.FLOAT, !1, 0, d);
  6130. e.drawArrays(e.TRIANGLE_STRIP, 0, 4)
  6131. },
  6132. Bea: function(c) {
  6133. if (null == c) return f.log(f.l.apa), !1;
  6134. var d = c.RBa(),
  6135. e = c.aAa(),
  6136. g = f.tB.MF;
  6137. if (d > g || e > g) return f.log(f.l.bpa, d, e, g, g), !1;
  6138. this.ie = !0;
  6139. return this.ysa(c, d, e)
  6140. },
  6141. sh: function(c) {
  6142. c && (this.Wh = f.s.createTexture(), this.md = c)
  6143. },
  6144. cAa: function() {
  6145. return this.md
  6146. },
  6147. ZCa: function() {
  6148. return this.ie
  6149. },
  6150. $d: function() {
  6151. if (f.uN) {
  6152. if (!this.md) {
  6153. var c = f.L.zd(this.url);
  6154. if (!c) return;
  6155. this.sh(c)
  6156. }
  6157. this.md.width && this.md.height && (this.ie = !0, c = f.s, f.Ai(this), c.pixelStorei(c.UNPACK_ALIGNMENT, 4), c.texImage2D(c.TEXTURE_2D, 0, c.RGBA, c.RGBA, c.UNSIGNED_BYTE, this.md), c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR), c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.LINEAR), c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_S, c.CLAMP_TO_EDGE), c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_T, c.CLAMP_TO_EDGE), this.shaderProgram =
  6158. f.xg.be(f.jE), f.Ai(null), c = this.md.height, this.kr = this.m.width = this.md.width, this.jr = this.m.height = c, this.gp = f.Pa.sq, this.Qp = this.Pp = 1, this.Zz = this.oM = !1, this.jf())
  6159. }
  6160. },
  6161. xf: function() {
  6162. f.log(f.l.gpa);
  6163. return null
  6164. },
  6165. sCa: function() {
  6166. f.log(f.l.$oa);
  6167. return !1
  6168. },
  6169. wCa: function() {
  6170. f.log(f.l.dpa);
  6171. return !1
  6172. },
  6173. xCa: function() {
  6174. f.log(f.l.fpa);
  6175. return !1
  6176. },
  6177. PHa: function(c) {
  6178. var d = f.s;
  6179. f.assert(this.kr == f.xs(this.kr) && this.jr == f.xs(this.jr) || c.pJa == d.CLAMP_TO_EDGE && c.qJa == d.CLAMP_TO_EDGE, "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures");
  6180. f.Ai(this);
  6181. d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MIN_FILTER, c.nfa);
  6182. d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MAG_FILTER, c.kfa);
  6183. d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_S, c.pJa);
  6184. d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_T, c.qJa)
  6185. },
  6186. xGa: function() {
  6187. var c = f.s;
  6188. f.Ai(this);
  6189. this.Zz ? c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR_MIPMAP_NEAREST) : c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR);
  6190. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.NEAREST)
  6191. },
  6192. j2: function() {
  6193. var c = f.s;
  6194. f.Ai(this);
  6195. this.Zz ? c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.NEAREST_MIPMAP_NEAREST) : c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.NEAREST);
  6196. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.NEAREST)
  6197. },
  6198. generateMipmap: function() {
  6199. f.assert(this.kr == f.xs(this.kr) && this.jr == f.xs(this.jr), "Mimpap texture only works in POT textures");
  6200. f.Ai(this);
  6201. f.s.generateMipmap(f.s.TEXTURE_2D);
  6202. this.Zz = !0
  6203. },
  6204. vIa: function() {
  6205. return f.Pa.Tpa[this.gp]
  6206. },
  6207. Gwa: function(c) {
  6208. c = c || this.gp;
  6209. var d = f.Pa.p8[c];
  6210. if (null != d) return d;
  6211. f.log(f.l.Xoa,
  6212. c);
  6213. return -1
  6214. },
  6215. ysa: function(c, d, e) {
  6216. var g = f.Pa,
  6217. h = c.getData(),
  6218. k = null,
  6219. k = null,
  6220. m = c.WWa(),
  6221. n = t(c.RBa(), c.aAa()),
  6222. p = g.Ica,
  6223. s = c.uSa();
  6224. m || (8 <= s ? p = g.dE : (f.log(f.l.Uoa), p = g.cE));
  6225. var u = d * e;
  6226. if (p == g.cE)
  6227. if (m)
  6228. for (h = new Uint16Array(d * e), k = c.getData(), s = 0; s < u; ++s) h[s] = (k[s] >> 0 & 255) >> 3 << 11 | (k[s] >> 8 & 255) >> 2 << 5 | (k[s] >> 16 & 255) >> 3 << 0;
  6229. else
  6230. for (h = new Uint16Array(d * e), k = c.getData(), s = 0; s < u; ++s) h[s] = (k[s] & 255) >> 3 << 11 | (k[s] & 255) >> 2 << 5 | (k[s] & 255) >> 3 << 0;
  6231. else if (p == g.jK)
  6232. for (h = new Uint16Array(d * e), k = c.getData(), s = 0; s < u; ++s) h[s] = (k[s] >>
  6233. 0 & 255) >> 4 << 12 | (k[s] >> 8 & 255) >> 4 << 8 | (k[s] >> 16 & 255) >> 4 << 4 | (k[s] >> 24 & 255) >> 4 << 0;
  6234. else if (p == g.iK)
  6235. for (h = new Uint16Array(d * e), k = c.getData(), s = 0; s < u; ++s) h[s] = (k[s] >> 0 & 255) >> 3 << 11 | (k[s] >> 8 & 255) >> 3 << 6 | (k[s] >> 16 & 255) >> 3 << 1 | (k[s] >> 24 & 255) >> 7 << 0;
  6236. else if (p == g.bE)
  6237. for (h = new Uint8Array(d * e), k = c.getData(), s = 0; s < u; ++s) h[s] = k >> 24 & 255;
  6238. if (m && p == g.dE)
  6239. for (k = c.getData(), h = new Uint8Array(d * e * 3), s = 0; s < u; ++s) h[3 * s] = k >> 0 & 255, h[3 * s + 1] = k >> 8 & 255, h[3 * s + 2] = k >> 16 & 255;
  6240. this.su(h, p, d, e, n);
  6241. c.getData();
  6242. this.oM = c.RXa();
  6243. return !0
  6244. },
  6245. oe: function(c,
  6246. d) {
  6247. this.dc || (this.dc = []);
  6248. this.dc.push({
  6249. al: c,
  6250. nj: d
  6251. })
  6252. },
  6253. RFa: function(c) {
  6254. if (this.dc)
  6255. for (var d = this.dc, e = 0; e < d.length; e++) d[e].nj == c && d.splice(e, 1)
  6256. },
  6257. jf: function() {
  6258. if (this.dc) {
  6259. for (var c = this.dc, d = 0, e = c.length; d < e; d++) {
  6260. var g = c[d];
  6261. g.al.call(g.nj, this)
  6262. }
  6263. c.length = 0
  6264. }
  6265. }
  6266. })
  6267. };
  6268. f.U.FU = function() {
  6269. var c = f.wq.prototype;
  6270. c.Dw = function() {
  6271. var c = f.s;
  6272. this.Se[0] = c.createBuffer();
  6273. this.Se[1] = c.createBuffer();
  6274. this.vw = c.createBuffer();
  6275. this.KM()
  6276. };
  6277. c.KM = function() {
  6278. var c = f.s;
  6279. c.bindBuffer(c.ARRAY_BUFFER, this.vw);
  6280. c.bufferData(c.ARRAY_BUFFER, this.kg, c.DYNAMIC_DRAW);
  6281. c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Se[1]);
  6282. c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Tb, c.STATIC_DRAW)
  6283. };
  6284. c.Vca = function(c) {
  6285. var e;
  6286. e = 0;
  6287. if (0 !== c && this.texture && this.texture.ie) {
  6288. var g = f.s;
  6289. f.Ai(this.texture);
  6290. f.wf(f.tv);
  6291. g.bindBuffer(g.ARRAY_BUFFER,
  6292. this.vw);
  6293. this.dirty && g.bufferData(g.ARRAY_BUFFER, this.kg, g.DYNAMIC_DRAW);
  6294. g.vertexAttribPointer(f.Oc, 3, g.FLOAT, !1, 24, 0);
  6295. g.vertexAttribPointer(f.Mi, 4, g.UNSIGNED_BYTE, !0, 24, 12);
  6296. g.vertexAttribPointer(f.$g, 2, g.FLOAT, !1, 24, 16);
  6297. this.dirty && (this.dirty = !1);
  6298. g.bindBuffer(g.ELEMENT_ARRAY_BUFFER, this.Se[1]);
  6299. f.n7 ? g.drawElements(g.TRIANGLE_STRIP, 6 * c, g.UNSIGNED_SHORT, 6 * e * this.Tb.BYTES_PER_ELEMENT) : g.drawElements(g.TRIANGLES, 6 * c, g.UNSIGNED_SHORT, 6 * e * this.Tb.BYTES_PER_ELEMENT);
  6300. f.bl++
  6301. }
  6302. }
  6303. };
  6304. f.U.GU = function() {
  6305. var c = f.nb;
  6306. c.$d = function(c) {
  6307. var e = this.uf;
  6308. f.uN || (e = this.LF);
  6309. var g = e[c];
  6310. g || (g = e[c] = new f.Pa, g.url = c);
  6311. g.$d()
  6312. };
  6313. c.vd = function(c, e, g) {
  6314. f.assert(c, f.l.Woa);
  6315. var h = this.uf;
  6316. f.uN || (h = this.LF);
  6317. var k = h[c] || h[f.L.xv[c]];
  6318. if (k) return e && e.call(g), k;
  6319. f.L.zd(c) || (f.L.V8(c) ? f.L.load(c, function() {
  6320. e && e.call(g)
  6321. }) : f.L.jj[c] = f.L.eI(c, function(g, h) {
  6322. if (g) return e ? e(g) : g;
  6323. f.nb.$d(c);
  6324. e && e(null, h)
  6325. }));
  6326. k = h[c] = new f.Pa;
  6327. k.url = c;
  6328. return k
  6329. };
  6330. delete c
  6331. };
  6332. f.U.CT = function() {
  6333. var c = f.Pa;
  6334. c.oMa = function(c) {
  6335. f.ina = c
  6336. };
  6337. c.sq = 2;
  6338. c.dE = 3;
  6339. c.cE = 4;
  6340. c.bE = 5;
  6341. c.oT = 6;
  6342. c.nT = 7;
  6343. c.jK = 8;
  6344. c.iK = 7;
  6345. c.x6 = 9;
  6346. c.w6 = 10;
  6347. c.Yma = c.sq;
  6348. var d = f.Pa.Tpa = {};
  6349. d[c.sq] = "RGBA8888";
  6350. d[c.dE] = "RGB888";
  6351. d[c.cE] = "RGB565";
  6352. d[c.bE] = "A8";
  6353. d[c.oT] = "I8";
  6354. d[c.nT] = "AI88";
  6355. d[c.jK] = "RGBA4444";
  6356. d[c.iK] = "RGB5A1";
  6357. d[c.x6] = "PVRTC4";
  6358. d[c.w6] = "PVRTC2";
  6359. d = f.Pa.p8 = {};
  6360. d[c.sq] = 32;
  6361. d[c.dE] = 24;
  6362. d[c.cE] = 16;
  6363. d[c.bE] = 8;
  6364. d[c.oT] = 8;
  6365. d[c.nT] = 16;
  6366. d[c.jK] = 16;
  6367. d[c.iK] = 16;
  6368. d[c.x6] = 4;
  6369. d[c.w6] = 3;
  6370. d = f.Pa.prototype;
  6371. f.d(d, "name", d.getName);
  6372. f.d(d, "pixelFormat", d.Nda);
  6373. f.d(d, "pixelsWidth", d.h0);
  6374. f.d(d, "pixelsHeight", d.g0);
  6375. f.d(d, "width", d.lf);
  6376. f.d(d, "height", d.Gg);
  6377. c.Ica = c.Yma
  6378. };
  6379. f.U.DT = function() {
  6380. var c = f.wq.prototype;
  6381. f.d(c, "totalQuads", c.gea);
  6382. f.d(c, "capacity", c.qda);
  6383. f.d(c, "quads", c.Oda, c.Hha)
  6384. };
  6385. f.xJa = 51;
  6386. f.AJa = 19;
  6387. f.CJa = 18;
  6388. f.zJa = 50;
  6389. f.wJa = 34;
  6390. f.uJa = 35;
  6391. f.vJa = 33;
  6392. f.yJa = 49;
  6393. f.BJa = 17;
  6394. f.ina = !1;
  6395. f.K === f.fb ? f.Pa = f.N.extend({
  6396. m: null,
  6397. ie: !1,
  6398. md: null,
  6399. dc: null,
  6400. url: null,
  6401. ctor: function() {
  6402. this.m = t(0, 0);
  6403. this.ie = !1;
  6404. this.md = null
  6405. },
  6406. h0: function() {
  6407. return this.m.width
  6408. },
  6409. g0: function() {
  6410. return this.m.height
  6411. },
  6412. e: function() {
  6413. var c = f.Uc();
  6414. return t(this.m.width / c, this.m.height / c)
  6415. },
  6416. lf: function() {
  6417. return this.m.width / f.Uc()
  6418. },
  6419. Gg: function() {
  6420. return this.m.height / f.Uc()
  6421. },
  6422. Kza: function() {
  6423. return this.m
  6424. },
  6425. sh: function(c) {
  6426. c && (this.md = c)
  6427. },
  6428. cAa: function() {
  6429. return this.md
  6430. },
  6431. ZCa: function() {
  6432. return this.ie
  6433. },
  6434. $d: function() {
  6435. if (!this.ie) {
  6436. if (!this.md) {
  6437. var c =
  6438. f.L.zd(this.url);
  6439. if (!c) return;
  6440. this.sh(c)
  6441. }
  6442. this.ie = !0;
  6443. c = this.md;
  6444. this.m.width = c.width;
  6445. this.m.height = c.height;
  6446. this.jf()
  6447. }
  6448. },
  6449. description: function() {
  6450. return "\x3ccc.Texture2D | width \x3d " + this.m.width + " height " + this.m.height + "\x3e"
  6451. },
  6452. su: function() {
  6453. return !1
  6454. },
  6455. Bea: function() {
  6456. return !1
  6457. },
  6458. xf: function() {
  6459. return !1
  6460. },
  6461. W1: function() {},
  6462. getName: function() {
  6463. return null
  6464. },
  6465. zAa: function() {
  6466. return 1
  6467. },
  6468. eHa: function() {},
  6469. AAa: function() {
  6470. return 1
  6471. },
  6472. fHa: function() {},
  6473. Nda: function() {
  6474. return null
  6475. },
  6476. m0: function() {
  6477. return null
  6478. },
  6479. WI: function() {},
  6480. Ep: function() {
  6481. return !1
  6482. },
  6483. YBa: function() {
  6484. return !1
  6485. },
  6486. GFa: function() {},
  6487. kDa: function(c) {
  6488. return c
  6489. },
  6490. cya: function() {},
  6491. fya: function() {},
  6492. sCa: function() {
  6493. f.log(f.l.Zoa);
  6494. return !1
  6495. },
  6496. wCa: function() {
  6497. f.log(f.l.cpa);
  6498. return !1
  6499. },
  6500. xCa: function() {
  6501. f.log(f.l.epa);
  6502. return !1
  6503. },
  6504. PHa: function() {},
  6505. xGa: function() {},
  6506. j2: function() {},
  6507. generateMipmap: function() {},
  6508. vIa: function() {
  6509. return ""
  6510. },
  6511. Gwa: function() {
  6512. return -1
  6513. },
  6514. oe: function(c, d) {
  6515. this.dc || (this.dc = []);
  6516. this.dc.push({
  6517. al: c,
  6518. nj: d
  6519. })
  6520. },
  6521. RFa: function(c) {
  6522. if (this.dc)
  6523. for (var d = this.dc, e = 0; e < d.length; e++) d[e].nj ==
  6524. c && d.splice(e, 1)
  6525. },
  6526. jf: function() {
  6527. if (this.dc) {
  6528. for (var c = this.dc, d = 0, e = c.length; d < e; d++) {
  6529. var g = c[d];
  6530. g.al.call(g.nj, this)
  6531. }
  6532. c.length = 0
  6533. }
  6534. }
  6535. }) : (f.assert("function" === typeof f.U.EU, f.l.Hf, "TexturesWebGL.js"), f.U.EU(), delete f.U.EU);
  6536. f.assert("function" === typeof f.U.CT, f.l.Hf, "TexturesPropertyDefine.js");
  6537. f.U.CT();
  6538. delete f.U.CT;
  6539. f.nb = {
  6540. uf: {},
  6541. DG: {},
  6542. RY: 0 | 1E3 * Math.random(),
  6543. LF: {},
  6544. Fsa: function() {
  6545. var c, d = this.LF,
  6546. e = this.uf;
  6547. for (c in d) {
  6548. var g = d[c];
  6549. g.$d();
  6550. e[c] = g
  6551. }
  6552. this.LF = {}
  6553. },
  6554. yPa: function() {
  6555. f.log(f.l.BIa)
  6556. },
  6557. mPa: function() {
  6558. f.log(f.l.zIa)
  6559. },
  6560. description: function() {
  6561. return "\x3cTextureCache | Number of textures \x3d " + this.uf.length + "\x3e"
  6562. },
  6563. Ru: function(c) {
  6564. return this.uf[c] || this.uf[f.L.xv[c]]
  6565. },
  6566. mAa: function(c) {
  6567. for (var d in this.uf)
  6568. if (this.uf[d] == c) return d;
  6569. return null
  6570. },
  6571. yra: function() {
  6572. this.RY++;
  6573. return "_textureKey_" + this.RY
  6574. },
  6575. vP: function(c) {
  6576. var d =
  6577. this.mAa(c);
  6578. d || (d = c instanceof HTMLImageElement ? c.src : this.yra());
  6579. this.DG[d] || (this.DG[d] = f.GB(c));
  6580. return this.DG[d]
  6581. },
  6582. xPa: function() {
  6583. f.log(f.l.AIa)
  6584. },
  6585. c1a: function() {
  6586. var c = this.uf,
  6587. d;
  6588. for (d in c) c[d] && c[d].W1();
  6589. this.uf = {}
  6590. },
  6591. z1a: function(c) {
  6592. if (c) {
  6593. var d = this.uf,
  6594. e;
  6595. for (e in d) d[e] == c && (d[e].W1(), delete d[e])
  6596. }
  6597. },
  6598. A1a: function(c) {
  6599. null != c && this.uf[c] && delete this.uf[c]
  6600. },
  6601. Mwa: function(c, d) {
  6602. if (d instanceof f.Pa) this.uf[c] = d;
  6603. else {
  6604. var e = new f.Pa;
  6605. e.sh(d);
  6606. e.$d();
  6607. this.uf[c] = e
  6608. }
  6609. },
  6610. EPa: function(c, d) {
  6611. f.assert(c, f.l.DIa);
  6612. if (d &&
  6613. this.uf[d]) return this.uf[d];
  6614. var e = new f.Pa;
  6615. e.Bea(c);
  6616. null != d && null != e ? this.uf[d] = e : f.log(f.l.CIa);
  6617. return e
  6618. },
  6619. gRa: function() {
  6620. var c = 0,
  6621. d = 0,
  6622. e = this.uf,
  6623. g;
  6624. for (g in e) {
  6625. var h = e[g];
  6626. c++;
  6627. h.md instanceof HTMLImageElement ? f.log(f.l.EIa, g, h.md.src, h.pixelsWidth, h.pixelsHeight) : f.log(f.l.tia, g, h.pixelsWidth, h.pixelsHeight);
  6628. d += h.pixelsWidth * h.pixelsHeight * 4
  6629. }
  6630. e = this.DG;
  6631. for (g in e) {
  6632. var h = e[g],
  6633. k;
  6634. for (k in h) {
  6635. var m = h[k];
  6636. c++;
  6637. f.log(f.l.tia, g, m.width, m.height);
  6638. d += m.width * m.height * 4
  6639. }
  6640. }
  6641. f.log(f.l.FIa, c, d / 1024, (d / 1048576).toFixed(2))
  6642. },
  6643. Vs: function() {
  6644. this.uf = {};
  6645. this.DG = {};
  6646. this.RY = 0 | 1E3 * Math.random();
  6647. this.LF = {}
  6648. }
  6649. };
  6650. f.K === f.fb ? (q = f.nb, q.$d = function(c) {
  6651. var d = this.uf,
  6652. e = d[c];
  6653. e || (e = d[c] = new f.Pa, e.url = c);
  6654. e.$d()
  6655. }, q.vd = function(c, d, e) {
  6656. f.assert(c, f.l.Voa);
  6657. var g = this.uf,
  6658. h = g[c] || g[f.L.xv[c]];
  6659. if (h) return d && d.call(e), h;
  6660. h = g[c] = new f.Pa;
  6661. h.url = c;
  6662. f.L.zd(c) ? h.$d() : f.L.V8(c) ? f.L.load(c, function() {
  6663. d && d.call(e)
  6664. }) : f.L.jj[c] = f.L.eI(c, function(e, g) {
  6665. if (e) return d ? d(e) : e;
  6666. f.nb.$d(c);
  6667. d && d(null, g)
  6668. });
  6669. return h
  6670. }, q = null) : (f.assert("function" === typeof f.U.GU, f.l.Hf, "TexturesWebGL.js"), f.U.GU(), delete f.U.GU);
  6671. f.wq = f.N.extend({
  6672. dirty: !1,
  6673. texture: null,
  6674. Tb: null,
  6675. Se: null,
  6676. cg: 0,
  6677. of: null,
  6678. kg: null,
  6679. vw: null,
  6680. Rk: null,
  6681. ctor: function(c, d) {
  6682. this.Se = [];
  6683. "string" == typeof c ? this.Ge(c, d) : c instanceof f.Pa && this.va(c, d)
  6684. },
  6685. gea: function() {
  6686. return this.Vb
  6687. },
  6688. qda: function() {
  6689. return this.cg
  6690. },
  6691. sb: function() {
  6692. return this.texture
  6693. },
  6694. ab: function(c) {
  6695. this.texture = c
  6696. },
  6697. Sga: function(c) {
  6698. this.dirty = c
  6699. },
  6700. R0: function() {
  6701. return this.dirty
  6702. },
  6703. Oda: function() {
  6704. return this.of
  6705. },
  6706. Hha: function(c) {
  6707. this.of = c
  6708. },
  6709. Uqa: function(c, d) {
  6710. if (c)
  6711. for (var e = 0; e < c.length; e++) this.GN(c[e], d +
  6712. e)
  6713. },
  6714. GN: function(c, d) {
  6715. var e = this.of;
  6716. e[d] ? (e[d].T = c.T, e[d].aa = c.aa, e[d].Z = c.Z, e[d].W = c.W) : e[d] = new f.Yc(c.Z, c.T, c.W, c.aa, this.kg, d * f.Yc.BYTES_PER_ELEMENT)
  6717. },
  6718. description: function() {
  6719. return "\x3ccc.TextureAtlas | totalQuads \x3d" + this.Vb + "\x3e"
  6720. },
  6721. aba: function() {
  6722. if (0 !== this.cg)
  6723. for (var c = this.Tb, d = this.cg, e = 0; e < d; e++) f.n7 ? (c[6 * e + 0] = 4 * e + 0, c[6 * e + 1] = 4 * e + 0, c[6 * e + 2] = 4 * e + 2, c[6 * e + 3] = 4 * e + 1, c[6 * e + 4] = 4 * e + 3, c[6 * e + 5] = 4 * e + 3) : (c[6 * e + 0] = 4 * e + 0, c[6 * e + 1] = 4 * e + 1, c[6 * e + 2] = 4 * e + 2, c[6 * e + 3] = 4 * e + 3, c[6 * e + 4] = 4 * e + 2, c[6 * e + 5] = 4 * e + 1)
  6724. },
  6725. Dw: function() {
  6726. var c =
  6727. f.s;
  6728. this.Se[0] = c.createBuffer();
  6729. this.Se[1] = c.createBuffer();
  6730. this.vw = c.createBuffer();
  6731. this.KM()
  6732. },
  6733. KM: function() {
  6734. var c = f.s;
  6735. c.bindBuffer(c.ARRAY_BUFFER, this.vw);
  6736. c.bufferData(c.ARRAY_BUFFER, this.kg, c.DYNAMIC_DRAW);
  6737. c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Se[1]);
  6738. c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Tb, c.STATIC_DRAW)
  6739. },
  6740. Ge: function(c, d) {
  6741. var e = f.nb.vd(c);
  6742. if (e) return this.va(e, d);
  6743. f.log(f.l.hpa, c);
  6744. return !1
  6745. },
  6746. va: function(c, d) {
  6747. f.assert(c, f.l.ipa);
  6748. this.cg = d |= 0;
  6749. this.Vb = 0;
  6750. this.texture = c;
  6751. this.of = [];
  6752. this.Tb = new Uint16Array(6 *
  6753. d);
  6754. var e = f.Yc.BYTES_PER_ELEMENT;
  6755. this.kg = new ArrayBuffer(e * d);
  6756. this.Rk = new Uint8Array(this.kg);
  6757. if ((!this.of || !this.Tb) && 0 < d) return !1;
  6758. for (var g = this.of, h = 0; h < d; h++) g[h] = new f.Yc(null, null, null, null, this.kg, h * e);
  6759. this.aba();
  6760. this.Dw();
  6761. return this.dirty = !0
  6762. },
  6763. rJ: function(c, d) {
  6764. f.assert(c, f.l.spa);
  6765. f.assert(0 <= d && d < this.cg, f.l.tpa);
  6766. this.Vb = Math.max(d + 1, this.Vb);
  6767. this.GN(c, d);
  6768. this.dirty = !0
  6769. },
  6770. O0: function(c, d) {
  6771. f.assert(d < this.cg, f.l.lpa);
  6772. this.Vb++;
  6773. if (this.Vb > this.cg) f.log(f.l.z7);
  6774. else {
  6775. var e = f.Yc.BYTES_PER_ELEMENT,
  6776. g = d * e,
  6777. h = (this.Vb - 1 - d) * e;
  6778. this.of[this.Vb - 1] = new f.Yc(null, null, null, null, this.kg, (this.Vb - 1) * e);
  6779. this.Rk.set(this.Rk.subarray(g, g + h), g + e);
  6780. this.GN(c, d);
  6781. this.dirty = !0
  6782. }
  6783. },
  6784. lXa: function(c, d, e) {
  6785. e = e || c.length;
  6786. f.assert(d + e <= this.cg, f.l.mpa);
  6787. var g = f.Yc.BYTES_PER_ELEMENT;
  6788. this.Vb += e;
  6789. if (this.Vb > this.cg) f.log(f.l.z7);
  6790. else {
  6791. var h = d * g,
  6792. k = (this.Vb - 1 - d - e) * g,
  6793. m = this.Vb - 1 - e,
  6794. n;
  6795. for (n = 0; n < e; n++) this.of[m + n] = new f.Yc(null, null, null, null, this.kg, (this.Vb - 1) * g);
  6796. this.Rk.set(this.Rk.subarray(h, h + k), h + g * e);
  6797. for (n = 0; n < e; n++) this.GN(c[n],
  6798. d + n);
  6799. this.dirty = !0
  6800. }
  6801. },
  6802. kXa: function(c, d) {
  6803. if (c !== d) {
  6804. f.assert(0 <= d || d < this.Vb, f.l.jpa);
  6805. f.assert(0 <= c || c < this.Vb, f.l.kpa);
  6806. var e = f.Yc.BYTES_PER_ELEMENT,
  6807. g = this.Rk,
  6808. h = g.subarray(c * e, e),
  6809. k;
  6810. c > d ? (k = d * e, g.set(g.subarray(k, k + (c - d) * e), k + e), g.set(h, k)) : (k = (c + 1) * e, g.set(g.subarray(k, k + (d - c) * e), k - e), g.set(h, d * e));
  6811. this.dirty = !0
  6812. }
  6813. },
  6814. oga: function(c) {
  6815. f.assert(c < this.Vb, f.l.qpa);
  6816. var d = f.Yc.BYTES_PER_ELEMENT;
  6817. this.Vb--;
  6818. this.of.length = this.Vb;
  6819. if (c !== this.Vb) {
  6820. var e = (c + 1) * d;
  6821. this.Rk.set(this.Rk.subarray(e, e + (this.Vb - c) * d), e - d)
  6822. }
  6823. this.dirty = !0
  6824. },
  6825. TFa: function(c, d) {
  6826. f.assert(c + d <= this.Vb, f.l.rpa);
  6827. this.Vb -= d;
  6828. if (c !== this.Vb) {
  6829. var e = f.Yc.BYTES_PER_ELEMENT,
  6830. g = (c + d) * e;
  6831. this.Rk.set(this.Rk.subarray(g, g + (this.Vb - c) * e), c * e)
  6832. }
  6833. this.dirty = !0
  6834. },
  6835. AC: function() {
  6836. this.Vb = this.of.length = 0
  6837. },
  6838. Lt: function(c) {
  6839. this.dirty = c
  6840. },
  6841. NQ: function(c) {
  6842. if (c == this.cg) return !0;
  6843. var d = f.Yc.BYTES_PER_ELEMENT,
  6844. e = this.cg;
  6845. this.Vb = Math.min(this.Vb, c);
  6846. var g = this.cg = 0 | c,
  6847. h = this.Vb;
  6848. if (null == this.of)
  6849. for (this.of = [], this.kg = new ArrayBuffer(d * g), this.Rk = new Uint8Array(this.kg), c = 0; c < g; c++) this.of =
  6850. new f.Yc(null, null, null, null, this.kg, c * d);
  6851. else {
  6852. var k, m, n = this.of;
  6853. if (g > e) {
  6854. k = [];
  6855. m = new ArrayBuffer(d * g);
  6856. for (c = 0; c < h; c++) k[c] = new f.Yc(n[c].Z, n[c].T, n[c].W, n[c].aa, m, c * d);
  6857. for (; c < g; c++) k[c] = new f.Yc(null, null, null, null, m, c * d)
  6858. } else
  6859. for (h = Math.max(h, g), k = [], m = new ArrayBuffer(d * g), c = 0; c < h; c++) k[c] = new f.Yc(n[c].Z, n[c].T, n[c].W, n[c].aa, m, c * d);
  6860. this.Rk = new Uint8Array(m);
  6861. this.of = k;
  6862. this.kg = m
  6863. }
  6864. null == this.Tb ? this.Tb = new Uint16Array(6 * g) : g > e ? (d = new Uint16Array(6 * g), d.set(this.Tb, 0), this.Tb = d) : this.Tb = this.Tb.subarray(0,
  6865. 6 * g);
  6866. this.aba();
  6867. this.KM();
  6868. return this.dirty = !0
  6869. },
  6870. rea: function(c) {
  6871. this.Vb += c
  6872. },
  6873. pfa: function(c, d, e) {
  6874. if (void 0 === e) {
  6875. if (e = d, d = this.Vb - c, f.assert(e + (this.Vb - c) <= this.cg, f.l.npa), 0 === d) return
  6876. } else if (f.assert(e + d <= this.Vb, f.l.opa), f.assert(c < this.Vb, f.l.ppa), c == e) return;
  6877. var g = f.Yc.BYTES_PER_ELEMENT,
  6878. h = c * g,
  6879. k = d * g,
  6880. m = this.Rk,
  6881. n = m.subarray(h, h + k),
  6882. p = e * g;
  6883. e < c ? (d = e * g, m.set(m.subarray(d, d + (c - e) * g), d + k)) : (d = (c + d) * g, m.set(m.subarray(d, d + (e - c) * g), h));
  6884. m.set(n, p);
  6885. this.dirty = !0
  6886. },
  6887. bda: function(c, d) {
  6888. for (var e = d * f.Yc.BYTES_PER_ELEMENT,
  6889. g = new Uint8Array(this.kg, c * f.Yc.BYTES_PER_ELEMENT, e), h = 0; h < e; h++) g[h] = 0
  6890. },
  6891. yB: function() {
  6892. this.Vca(this.Vb)
  6893. },
  6894. KOa: function() {
  6895. var c = f.s;
  6896. this.Se && (this.Se[0] && c.deleteBuffer(this.Se[0]), this.Se[1] && c.deleteBuffer(this.Se[1]));
  6897. this.vw && c.deleteBuffer(this.vw)
  6898. }
  6899. });
  6900. q = f.wq.prototype;
  6901. f.d(q, "totalQuads", q.gea);
  6902. f.d(q, "capacity", q.qda);
  6903. f.d(q, "quads", q.Oda, q.Hha);
  6904. f.wq.create = function(c, d) {
  6905. return new f.wq(c, d)
  6906. };
  6907. f.K === f.na && (f.assert("function" === typeof f.U.FU, f.l.Hf, "TexturesWebGL.js"), f.U.FU(), delete f.U.FU);
  6908. f.assert("function" === typeof f.U.DT, f.l.Hf, "TexturesPropertyDefine.js");
  6909. f.U.DT();
  6910. delete f.U.DT;
  6911. f.tq = f.v.extend({
  6912. ta: "Scene",
  6913. ctor: function() {
  6914. f.v.prototype.ctor.call(this);
  6915. this.mn = !0;
  6916. this.S(0.5, 0.5);
  6917. this.Ga(f.Q.Y)
  6918. }
  6919. });
  6920. f.tq.create = function() {
  6921. return new f.tq
  6922. };
  6923. f.eT = f.tq.extend({
  6924. pt: null,
  6925. Q$: 0,
  6926. AV: 0,
  6927. gg: null,
  6928. ta: "LoaderScene",
  6929. j: function() {
  6930. var c = this,
  6931. d = 200,
  6932. e = c.tqa = f.$f.create(f.color(32, 32, 32, 255));
  6933. e.o(f.qy.KZ);
  6934. c.n(e, 0);
  6935. var g = 24,
  6936. h = -d / 2 + 100;
  6937. f.VW && (f.L.eI(f.VW, {
  6938. Q0: !1
  6939. }, function(e, g) {
  6940. d = g.height;
  6941. c.zsa(g, f.qy.KO)
  6942. }), g = 14, h = -d / 2 - 10);
  6943. g = c.gg = f.ia.create("Loading... 0%", "Arial", g);
  6944. g.o(f.Tp(f.qy.KO, r(0, h)));
  6945. g.F(f.color(180, 180, 180));
  6946. e.n(this.gg, 10);
  6947. return !0
  6948. },
  6949. zsa: function(c, d) {
  6950. var e = new f.Pa;
  6951. e.sh(c);
  6952. e.$d();
  6953. e = f.q.create(e);
  6954. e.ib(f.Uc());
  6955. e.x = d.x;
  6956. e.y = d.y;
  6957. this.tqa.n(e, 10)
  6958. },
  6959. ba: function() {
  6960. f.v.prototype.ba.call(this);
  6961. this.Ux(this.lba, 0.3)
  6962. },
  6963. Ra: function() {
  6964. f.v.prototype.Ra.call(this);
  6965. this.gg.wa("Loading... 0%")
  6966. },
  6967. zCa: function(c, d) {
  6968. "string" == typeof c && (c = [c]);
  6969. this.bGa = c || [];
  6970. this.Yh = d
  6971. },
  6972. lba: function() {
  6973. var c = this;
  6974. c.Tu(c.lba);
  6975. var d = c.bGa;
  6976. c.Q$ = d.length;
  6977. c.AV = 0;
  6978. f.L.load(d, function(d, g) {
  6979. c.AV = g
  6980. }, function() {
  6981. c.Yh && c.Yh()
  6982. });
  6983. c.Ux(c.Fba)
  6984. },
  6985. Fba: function() {
  6986. var c = this.AV,
  6987. d = this.Q$,
  6988. e;
  6989. e = Math.min(c / d * 100 | 0, 100);
  6990. this.gg.wa("Loading... " + e + "%");
  6991. c >= d && this.Tu(this.Fba)
  6992. }
  6993. });
  6994. f.eT.K1 = function(c, d) {
  6995. var e = f;
  6996. e.fI || (e.fI = new f.eT, e.fI.j());
  6997. e.fI.zCa(c, d);
  6998. f.Q.f2(e.fI);
  6999. return e.fI
  7000. };
  7001. f.U.bT = function() {
  7002. var c = f.Me.prototype;
  7003. c.gca = function() {};
  7004. c.Aia = function() {};
  7005. c.I = f.v.prototype.I
  7006. };
  7007. f.U.BU = function() {
  7008. var c = f.$f.prototype;
  7009. c.KN = null;
  7010. c.DY = null;
  7011. c.jZ = null;
  7012. c.xV = null;
  7013. c.FY = null;
  7014. c.EY = null;
  7015. c.ctor = function(c, e, g) {
  7016. this.FY = new ArrayBuffer(32);
  7017. this.EY = new ArrayBuffer(16);
  7018. var h = this.FY,
  7019. k = this.EY,
  7020. m = f.he.BYTES_PER_ELEMENT,
  7021. n = f.Aj.BYTES_PER_ELEMENT;
  7022. this.KN = [new f.he(0, 0, h, 0), new f.he(0, 0, h, m), new f.he(0, 0, h, 2 * m), new f.he(0, 0, h, 3 * m)];
  7023. this.DY = [f.color(0, 0, 0, 255, k, 0), f.color(0, 0, 0, 255, k, n), f.color(0, 0, 0, 255, k, 2 * n), f.color(0, 0, 0, 255, k, 3 * n)];
  7024. this.jZ = f.s.createBuffer();
  7025. this.xV = f.s.createBuffer();
  7026. f.ci.prototype.ctor.call(this);
  7027. this.B = new f.Um(f.Mc, f.Lc);
  7028. f.$f.prototype.j.call(this, c, e, g)
  7029. };
  7030. c.Ga = function(c, e) {
  7031. var g = this.KN;
  7032. void 0 === e ? (g[1].x = c.width, g[2].y = c.height, g[3].x = c.width, g[3].y = c.height) : (g[1].x = c, g[2].y = e, g[3].x = c, g[3].y = e);
  7033. this.hV();
  7034. f.Me.prototype.Ga.call(this, c, e)
  7035. };
  7036. c.Uh = function(c) {
  7037. var e = this.KN;
  7038. e[1].x = c;
  7039. e[3].x = c;
  7040. this.hV();
  7041. f.Me.prototype.Uh.call(this, c)
  7042. };
  7043. c.Th = function(c) {
  7044. var e = this.KN;
  7045. e[2].y = c;
  7046. e[3].y = c;
  7047. this.hV();
  7048. f.Me.prototype.Th.call(this, c)
  7049. };
  7050. c.Jd = function() {
  7051. for (var c = this.Ab, e = this.kb, g = this.DY, h = 0; 4 > h; h++) g[h].r =
  7052. c.r, g[h].g = c.g, g[h].b = c.b, g[h].a = e;
  7053. this.N8()
  7054. };
  7055. c.ma = function(c) {
  7056. c = c || f.s;
  7057. f.qC(this);
  7058. f.wf(f.Gh | f.HK);
  7059. c.bindBuffer(c.ARRAY_BUFFER, this.jZ);
  7060. c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0);
  7061. c.bindBuffer(c.ARRAY_BUFFER, this.xV);
  7062. c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, 0, 0);
  7063. f.Fm(this.B.src, this.B.ha);
  7064. c.drawArrays(c.TRIANGLE_STRIP, 0, 4)
  7065. };
  7066. c.hV = function() {
  7067. var c = f.s;
  7068. c.bindBuffer(c.ARRAY_BUFFER, this.jZ);
  7069. c.bufferData(c.ARRAY_BUFFER, this.FY, c.STATIC_DRAW)
  7070. };
  7071. c.N8 = function() {
  7072. var c = f.s;
  7073. c.bindBuffer(c.ARRAY_BUFFER,
  7074. this.xV);
  7075. c.bufferData(c.ARRAY_BUFFER, this.EY, c.STATIC_DRAW)
  7076. }
  7077. };
  7078. f.U.CU = function() {
  7079. var c = f.rq.prototype;
  7080. c.ma = f.$f.prototype.ma;
  7081. c.Jd = function() {
  7082. var c = this.Oi,
  7083. e = f.ff(c);
  7084. if (0 !== e) {
  7085. var g = Math.sqrt(2),
  7086. c = r(c.x / e, c.y / e);
  7087. this.sL && (c = f.Up(c, 1 / (Math.abs(c.x) + Math.abs(c.y)) * g));
  7088. var h = this.kb / 255,
  7089. e = this.Ab,
  7090. k = this.Jf,
  7091. e = {
  7092. r: e.r,
  7093. g: e.g,
  7094. b: e.b,
  7095. a: this.TA * h
  7096. },
  7097. h = {
  7098. r: k.r,
  7099. g: k.g,
  7100. b: k.b,
  7101. a: this.Jz * h
  7102. },
  7103. m = this.DY,
  7104. k = m[0],
  7105. n = m[1],
  7106. p = m[2],
  7107. m = m[3];
  7108. k.r = h.r + (g + c.x + c.y) / (2 * g) * (e.r - h.r);
  7109. k.g = h.g + (g + c.x + c.y) / (2 * g) * (e.g - h.g);
  7110. k.b = h.b + (g + c.x + c.y) / (2 * g) * (e.b - h.b);
  7111. k.a = h.a + (g + c.x + c.y) / (2 * g) * (e.a - h.a);
  7112. n.r = h.r + (g -
  7113. c.x + c.y) / (2 * g) * (e.r - h.r);
  7114. n.g = h.g + (g - c.x + c.y) / (2 * g) * (e.g - h.g);
  7115. n.b = h.b + (g - c.x + c.y) / (2 * g) * (e.b - h.b);
  7116. n.a = h.a + (g - c.x + c.y) / (2 * g) * (e.a - h.a);
  7117. p.r = h.r + (g + c.x - c.y) / (2 * g) * (e.r - h.r);
  7118. p.g = h.g + (g + c.x - c.y) / (2 * g) * (e.g - h.g);
  7119. p.b = h.b + (g + c.x - c.y) / (2 * g) * (e.b - h.b);
  7120. p.a = h.a + (g + c.x - c.y) / (2 * g) * (e.a - h.a);
  7121. m.r = h.r + (g - c.x - c.y) / (2 * g) * (e.r - h.r);
  7122. m.g = h.g + (g - c.x - c.y) / (2 * g) * (e.g - h.g);
  7123. m.b = h.b + (g - c.x - c.y) / (2 * g) * (e.b - h.b);
  7124. m.a = h.a + (g - c.x - c.y) / (2 * g) * (e.a - h.a);
  7125. this.N8()
  7126. }
  7127. }
  7128. };
  7129. f.U.AT = function() {
  7130. var c = f.ci.prototype;
  7131. f.d(c, "opacityModifyRGB", c.vg, c.ee);
  7132. f.d(c, "opacity", c.vb, c.J);
  7133. f.d(c, "cascadeOpacity", c.WH, c.Hu);
  7134. f.d(c, "color", c.$a, c.F);
  7135. f.d(c, "cascadeColor", c.VH, c.Gu)
  7136. };
  7137. f.U.yT = function() {
  7138. var c = f.$f.prototype;
  7139. f.d(c, "width", c.lf, c.Uh);
  7140. f.d(c, "height", c.Gg, c.Th)
  7141. };
  7142. f.U.zT = function() {
  7143. var c = f.rq.prototype;
  7144. f.d(c, "startColor", c.uP, c.Tg);
  7145. f.d(c, "endColor", c.lP, c.Sg);
  7146. f.d(c, "startOpacity", c.qBa, c.Sha);
  7147. f.d(c, "endOpacity", c.Tza, c.Vga);
  7148. f.d(c, "vector", c.KBa, c.DR)
  7149. };
  7150. f.Me = f.v.extend({
  7151. Vv: !1,
  7152. bL: null,
  7153. ta: "Layer",
  7154. ctor: function() {
  7155. var c = f.v.prototype;
  7156. c.ctor.call(this);
  7157. this.mn = !0;
  7158. c.S.call(this, 0.5, 0.5);
  7159. c.Ga.call(this, f.gq)
  7160. },
  7161. gca: null,
  7162. Aia: null,
  7163. uXa: function() {
  7164. return this.Vv
  7165. },
  7166. I: null
  7167. });
  7168. f.Me.create = function() {
  7169. return new f.Me
  7170. };
  7171. if (f.K === f.fb) {
  7172. var ga = f.Me.prototype;
  7173. ga.gca = function() {
  7174. if (!this.Vv) {
  7175. this.Vv = this.Dk = !0;
  7176. this.Gq = this;
  7177. for (var c = this.i, d = 0, e = c.length; d < e; d++) c[d].fY(this);
  7178. this.bL || (this.bL = new f.Bja)
  7179. }
  7180. };
  7181. ga.Aia = function() {
  7182. if (this.Vv) {
  7183. this.Vv = !1;
  7184. this.Dk = !0;
  7185. this.Gq = null;
  7186. for (var c = this.i, d = 0, e = c.length; d < e; d++) c[d].fY(null)
  7187. }
  7188. };
  7189. ga.I = function(c) {
  7190. if (this.Vv) {
  7191. c = c || f.s;
  7192. var d, e = this.i,
  7193. g = e.length;
  7194. if (this.Na && 0 !== g) {
  7195. var h = this.bL;
  7196. c.save();
  7197. this.transform(c);
  7198. if (this.Dk) {
  7199. d = this.oW();
  7200. d.width |= 0;
  7201. d.height |= 0;
  7202. var k = h.Pi;
  7203. h.sga(d.width,
  7204. d.height);
  7205. k.translate(0 - d.x, d.height + d.y);
  7206. var m = h.Bp();
  7207. h.o(m.x + d.x, m.y + d.y);
  7208. this.kd();
  7209. for (d = 0; d < g; d++) e[d].I(k);
  7210. this.Dk = !1
  7211. }
  7212. h.I(c);
  7213. this.arrivalOrder = 0;
  7214. c.restore()
  7215. }
  7216. } else f.v.prototype.I.call(this, c)
  7217. };
  7218. ga.oW = function() {
  7219. var c = null;
  7220. if (!this.i || 0 === this.i.length) return x(0, 0, 10, 10);
  7221. for (var d = this.i, e = 0; e < d.length; e++) {
  7222. var g = d[e];
  7223. g && g.Na && (c ? (g = g.uF()) && (c = f.zC(c, g)) : c = g.uF())
  7224. }
  7225. return c
  7226. };
  7227. ga = null
  7228. } else f.assert("function" === typeof f.U.bT, f.l.Hf, "CCLayerWebGL.js"), f.U.bT(), delete f.U.bT;
  7229. f.ci = f.Me.extend({
  7230. wb: !0,
  7231. kb: 255,
  7232. Lg: 255,
  7233. Ab: null,
  7234. rd: null,
  7235. Dg: !1,
  7236. dg: !1,
  7237. ta: "LayerRGBA",
  7238. ctor: function() {
  7239. f.Me.prototype.ctor.call(this);
  7240. this.Ab = f.color(255, 255, 255, 255);
  7241. this.rd = f.color(255, 255, 255, 255)
  7242. },
  7243. j: function() {
  7244. var c = f.Me.prototype;
  7245. this.mn = !0;
  7246. c.S.call(this, 0.5, 0.5);
  7247. c.Ga.call(this, f.gq);
  7248. this.cascadeColor = this.cascadeOpacity = !1;
  7249. return !0
  7250. },
  7251. vb: function() {
  7252. return this.Lg
  7253. },
  7254. wda: function() {
  7255. return this.kb
  7256. },
  7257. J: function(c) {
  7258. this.kb = this.Lg = c;
  7259. var d = 255,
  7260. e = this.Yb;
  7261. e && e.wb && e.cascadeOpacity && (d = e.kb);
  7262. this.hc(d);
  7263. this.Ab.a =
  7264. this.rd.a = c
  7265. },
  7266. hc: function(c) {
  7267. this.kb = 0 | this.Lg * c / 255;
  7268. if (this.Dg) {
  7269. c = this.i;
  7270. for (var d, e = 0; e < c.length; e++)(d = c[e]) && d.wb && d.hc(this.kb)
  7271. }
  7272. },
  7273. WH: function() {
  7274. return this.Dg
  7275. },
  7276. Hu: function(c) {
  7277. this.Dg !== c && ((this.Dg = c) ? this.Iz() : this.MV())
  7278. },
  7279. Iz: function() {
  7280. var c = 255,
  7281. d = this.Yb;
  7282. d && d.wb && d.cascadeOpacity && (c = d.kb);
  7283. this.hc(c)
  7284. },
  7285. MV: function() {
  7286. this.kb = this.Lg;
  7287. for (var c = this.i, d, e = 0; e < c.length; e++)(d = c[e]) && d.wb && d.hc(255)
  7288. },
  7289. $a: function() {
  7290. var c = this.rd;
  7291. return f.color(c.r, c.g, c.b, c.a)
  7292. },
  7293. ou: function() {
  7294. var c = this.Ab;
  7295. return f.color(c.r,
  7296. c.g, c.b)
  7297. },
  7298. F: function(c) {
  7299. var d = this.Ab,
  7300. e = this.rd;
  7301. d.r = e.r = c.r;
  7302. d.g = e.g = c.g;
  7303. d.b = e.b = c.b;
  7304. d = (d = this.Yb) && d.wb && d.cascadeColor ? d.ou() : f.color.WHITE;
  7305. this.Wb(d);
  7306. void 0 === c.a || c.Yw || this.J(c.a)
  7307. },
  7308. Wb: function(c) {
  7309. var d = this.Ab,
  7310. e = this.rd;
  7311. d.r = 0 | e.r * c.r / 255;
  7312. d.g = 0 | e.g * c.g / 255;
  7313. d.b = 0 | e.b * c.b / 255;
  7314. if (this.dg) {
  7315. c = this.i;
  7316. for (var g = 0; g < c.length; g++)(e = c[g]) && e.wb && e.Wb(d)
  7317. }
  7318. },
  7319. VH: function() {
  7320. return this.dg
  7321. },
  7322. Gu: function(c) {
  7323. this.dg !== c && ((this.dg = c) ? this.Hz() : this.LV())
  7324. },
  7325. Hz: function() {
  7326. var c;
  7327. c = (c = this.Yb) && c.wb && c.cascadeColor ?
  7328. c.ou() : f.color.WHITE;
  7329. this.Wb(c)
  7330. },
  7331. LV: function() {
  7332. var c = this.Ab,
  7333. d = this.rd;
  7334. c.r = d.r;
  7335. c.g = d.g;
  7336. c.b = d.b;
  7337. var c = this.i,
  7338. d = f.color.WHITE,
  7339. e, g;
  7340. for (g = 0; g < c.length; g++)(e = c[g]) && e.wb && e.Wb(d)
  7341. },
  7342. n: function(c, d, e) {
  7343. f.v.prototype.n.call(this, c, d, e);
  7344. this.dg && this.Hz();
  7345. this.Dg && this.Iz()
  7346. },
  7347. ee: function() {},
  7348. vg: function() {
  7349. return !1
  7350. }
  7351. });
  7352. f.assert("function" === typeof f.U.AT, f.l.Hf, "CCLayerPropertyDefine.js");
  7353. f.U.AT();
  7354. delete f.U.AT;
  7355. f.$f = f.ci.extend({
  7356. B: null,
  7357. ta: "LayerColor",
  7358. ck: function() {
  7359. return this.B
  7360. },
  7361. lQa: function(c, d) {
  7362. this.width = c;
  7363. this.height = d
  7364. },
  7365. kQa: function(c) {
  7366. this.width = c
  7367. },
  7368. jQa: function(c) {
  7369. this.height = c
  7370. },
  7371. ee: function() {},
  7372. vg: function() {
  7373. return !1
  7374. },
  7375. F: function(c) {
  7376. f.ci.prototype.F.call(this, c);
  7377. this.Jd()
  7378. },
  7379. J: function(c) {
  7380. f.ci.prototype.J.call(this, c);
  7381. this.Jd()
  7382. },
  7383. gA: !1,
  7384. ctor: null,
  7385. j: function(c, d, e) {
  7386. f.K !== f.fb && (this.shaderProgram = f.xg.be(f.sK));
  7387. var g = f.Q.Y;
  7388. c = c || f.color(0, 0, 0, 255);
  7389. d = void 0 === d ? g.width : d;
  7390. e = void 0 === e ? g.height : e;
  7391. g = this.Ab;
  7392. g.r = c.r;
  7393. g.g = c.g;
  7394. g.b = c.b;
  7395. g = this.rd;
  7396. g.r = c.r;
  7397. g.g = c.g;
  7398. g.b = c.b;
  7399. this.Lg = this.kb = c.a;
  7400. c = f.$f.prototype;
  7401. c.Ga.call(this, d, e);
  7402. c.Jd.call(this);
  7403. return !0
  7404. },
  7405. ce: function(c, d) {
  7406. this.B = void 0 === d ? c : {
  7407. src: c,
  7408. ha: d
  7409. };
  7410. f.K === f.fb && (this.gA = this.B && 1 == this.B.src && 771 == this.B.ha)
  7411. },
  7412. Uh: null,
  7413. Th: null,
  7414. Jd: null,
  7415. Wb: function(c) {
  7416. f.ci.prototype.Wb.call(this, c);
  7417. this.Jd()
  7418. },
  7419. hc: function(c) {
  7420. f.ci.prototype.hc.call(this, c);
  7421. this.Jd()
  7422. },
  7423. ma: null
  7424. });
  7425. f.$f.create = function(c, d, e) {
  7426. return new f.$f(c, d, e)
  7427. };
  7428. f.K === f.fb ? (q = f.$f.prototype, q.ctor = function(c, d, e) {
  7429. f.ci.prototype.ctor.call(this);
  7430. this.B = new f.Um(f.Mc, f.Lc);
  7431. f.$f.prototype.j.call(this, c, d, e)
  7432. }, q.Uh = f.ci.prototype.Uh, q.Th = f.ci.prototype.Th, q.Jd = function() {}, q.ma = function(c) {
  7433. c = c || f.s;
  7434. var d = f.view,
  7435. e = this.Ab;
  7436. c.fillStyle = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b) + "," + this.kb / 255 + ")";
  7437. c.fillRect(0, 0, this.width * d.ka, -this.height * d.ra);
  7438. f.bl++
  7439. }, q.I = function(c) {
  7440. if (this.Vv) {
  7441. c = c || f.s;
  7442. var d, e = this.i,
  7443. g = e.length;
  7444. if (this.Na) {
  7445. var h = this.bL;
  7446. c.save();
  7447. this.transform(c);
  7448. if (this.Dk) {
  7449. d = this.oW();
  7450. d.width |= 0;
  7451. d.height |= 0;
  7452. var k = h.Pi;
  7453. h.sga(d.width, d.height);
  7454. var m = h.Bp(),
  7455. n = this.oa;
  7456. if (this.mn) k.translate(0 - d.x + n.x, d.height + d.y - n.y), h.o(m.x + d.x - n.x, m.y + d.y - n.y);
  7457. else {
  7458. var p = this.Bp(),
  7459. s = n.x - p.x,
  7460. n = n.y - p.y;
  7461. k.translate(0 - d.x + s, d.height + d.y - n);
  7462. h.o(m.x + d.x - s, m.y + d.y - n)
  7463. } if (0 < g) {
  7464. this.kd();
  7465. for (d = 0; d < g; d++)
  7466. if (m = e[d], 0 > m.Ya) m.I(k);
  7467. else break;
  7468. for (this.ma(k); d < g; d++) e[d].I(k)
  7469. } else this.ma(k);
  7470. this.Dk = !1
  7471. }
  7472. h.I(c);
  7473. this.arrivalOrder = 0;
  7474. c.restore()
  7475. }
  7476. } else f.v.prototype.I.call(this, c)
  7477. }, q.oW = function() {
  7478. var c =
  7479. x(0, 0, this.m.width, this.m.height),
  7480. d = this.il(),
  7481. c = f.Ki(c, this.il());
  7482. if (!this.i || 0 === this.i.length) return c;
  7483. for (var e = this.i, g = 0; g < e.length; g++) {
  7484. var h = e[g];
  7485. h && h.Na && (h = h.uF(d), c = f.zC(c, h))
  7486. }
  7487. return c
  7488. }, q = null) : (f.assert("function" === typeof f.U.BU, f.l.Hf, "CCLayerWebGL.js"), f.U.BU(), delete f.U.BU);
  7489. f.assert("function" === typeof f.U.yT, f.l.Hf, "CCLayerPropertyDefine.js");
  7490. f.U.yT();
  7491. delete f.U.yT;
  7492. f.rq = f.$f.extend({
  7493. Ng: null,
  7494. Jf: null,
  7495. TA: 255,
  7496. Jz: 255,
  7497. Oi: null,
  7498. sL: !1,
  7499. Yz: null,
  7500. Xz: null,
  7501. ta: "LayerGradient",
  7502. ctor: function(c, d, e) {
  7503. f.$f.prototype.ctor.call(this);
  7504. this.Ng = f.color(0, 0, 0, 255);
  7505. this.Jf = f.color(0, 0, 0, 255);
  7506. this.Oi = r(0, -1);
  7507. this.Jz = this.TA = 255;
  7508. this.Yz = r(0, 0);
  7509. this.Xz = r(0, 0);
  7510. f.rq.prototype.j.call(this, c, d, e)
  7511. },
  7512. j: function(c, d, e) {
  7513. c = c || f.color(0, 0, 0, 255);
  7514. d = d || f.color(0, 0, 0, 255);
  7515. e = e || r(0, -1);
  7516. var g = this.Ng,
  7517. h = this.Jf;
  7518. g.r = c.r;
  7519. g.g = c.g;
  7520. g.b = c.b;
  7521. this.TA = c.a;
  7522. h.r = d.r;
  7523. h.g = d.g;
  7524. h.b = d.b;
  7525. this.Jz = d.a;
  7526. this.Oi = e;
  7527. this.sL = !0;
  7528. this.Yz =
  7529. r(0, 0);
  7530. this.Xz = r(0, 0);
  7531. f.$f.prototype.j.call(this, f.color(c.r, c.g, c.b, 255));
  7532. f.rq.prototype.Jd.call(this);
  7533. return !0
  7534. },
  7535. Ga: function(c, d) {
  7536. f.$f.prototype.Ga.call(this, c, d);
  7537. this.Jd()
  7538. },
  7539. Uh: function(c) {
  7540. f.$f.prototype.Uh.call(this, c);
  7541. this.Jd()
  7542. },
  7543. Th: function(c) {
  7544. f.$f.prototype.Th.call(this, c);
  7545. this.Jd()
  7546. },
  7547. uP: function() {
  7548. return this.rd
  7549. },
  7550. Tg: function(c) {
  7551. this.color = c
  7552. },
  7553. Sg: function(c) {
  7554. this.Jf = c;
  7555. this.Jd()
  7556. },
  7557. lP: function() {
  7558. return this.Jf
  7559. },
  7560. Sha: function(c) {
  7561. this.TA = c;
  7562. this.Jd()
  7563. },
  7564. qBa: function() {
  7565. return this.TA
  7566. },
  7567. Vga: function(c) {
  7568. this.Jz =
  7569. c;
  7570. this.Jd()
  7571. },
  7572. Tza: function() {
  7573. return this.Jz
  7574. },
  7575. DR: function(c) {
  7576. this.Oi.x = c.x;
  7577. this.Oi.y = c.y;
  7578. this.Jd()
  7579. },
  7580. KBa: function() {
  7581. return r(this.Oi.x, this.Oi.y)
  7582. },
  7583. yXa: function() {
  7584. return this.sL
  7585. },
  7586. N2a: function(c) {
  7587. this.sL = c;
  7588. this.Jd()
  7589. },
  7590. YNa: null,
  7591. Jd: null
  7592. });
  7593. f.rq.create = function(c, d, e) {
  7594. return new f.rq(c, d, e)
  7595. };
  7596. f.K === f.fb ? (q = f.rq.prototype, q.ma = function(c) {
  7597. c = c || f.s;
  7598. this.gA && (c.globalCompositeOperation = "lighter");
  7599. c.save();
  7600. var d = f.view,
  7601. e = this.kb / 255,
  7602. g = this.width * d.ka,
  7603. d = this.height * d.ra,
  7604. h = c.createLinearGradient(this.Yz.x, this.Yz.y, this.Xz.x, this.Xz.y),
  7605. k = this.Ab,
  7606. m = this.Jf;
  7607. h.addColorStop(0, "rgba(" + Math.round(k.r) + "," + Math.round(k.g) + "," + Math.round(k.b) + "," + (this.TA / 255 * e).toFixed(4) + ")");
  7608. h.addColorStop(1, "rgba(" + Math.round(m.r) + "," + Math.round(m.g) + "," + Math.round(m.b) + "," + (this.Jz / 255 * e).toFixed(4) + ")");
  7609. c.fillStyle =
  7610. h;
  7611. c.fillRect(0, 0, g, -d);
  7612. 0 != this.LA && c.rotate(this.MOa);
  7613. c.restore()
  7614. }, q.Jd = function() {
  7615. var c = this.Oi,
  7616. d = 0.5 * this.width,
  7617. e = 0.5 * this.height;
  7618. this.Yz.x = d * -c.x + d;
  7619. this.Yz.y = e * c.y - e;
  7620. this.Xz.x = d * c.x + d;
  7621. this.Xz.y = e * -c.y - e
  7622. }, q = null) : (f.assert("function" === typeof f.U.CU, f.l.Hf, "CCLayerWebGL.js"), f.U.CU(), delete f.U.CU);
  7623. f.assert("function" === typeof f.U.zT, f.l.Hf, "CCLayerPropertyDefine.js");
  7624. f.U.zT();
  7625. delete f.U.zT;
  7626. f.dT = f.Me.extend({
  7627. Nv: 0,
  7628. oi: null,
  7629. ta: "LayerMultiplex",
  7630. ctor: function(c) {
  7631. f.Me.prototype.ctor.call(this);
  7632. c && f.dT.prototype.uCa.call(this, c)
  7633. },
  7634. uCa: function(c) {
  7635. 0 < c.length && null == c[c.length - 1] && f.log(f.l.nma);
  7636. this.oi = c;
  7637. this.Nv = 0;
  7638. this.n(this.oi[this.Nv]);
  7639. return !0
  7640. },
  7641. k5a: function(c) {
  7642. c >= this.oi.length ? f.log(f.l.oma) : (this.removeChild(this.oi[this.Nv], !0), this.Nv = c, this.n(this.oi[c]))
  7643. },
  7644. l5a: function(c) {
  7645. c >= this.oi.length ? f.log(f.l.pma) : (this.removeChild(this.oi[this.Nv], !0), this.oi[this.Nv] = null, this.Nv = c, this.n(this.oi[c]))
  7646. },
  7647. uPa: function(c) {
  7648. c ? this.oi.push(c) : f.log(f.l.mma)
  7649. }
  7650. });
  7651. f.dT.create = function() {
  7652. return new f.dT(arguments)
  7653. };
  7654. f.U.DU = function() {
  7655. var c = f.q.prototype;
  7656. c.BY = function(c) {
  7657. this.Ha(!0);
  7658. this.sc(c.$h(), c.lg, c.Jg);
  7659. this.jf()
  7660. };
  7661. c.ee = function(c) {
  7662. this.Jb !== c && (this.Jb = c, this.oo())
  7663. };
  7664. c.hc = function(c) {
  7665. f.ja.prototype.hc.call(this, c);
  7666. this.oo()
  7667. };
  7668. c.ctor = function(c, e, g) {
  7669. f.ja.prototype.ctor.call(this);
  7670. this.Nt = !1;
  7671. this.od = r(0, 0);
  7672. this.Ln = r(0, 0);
  7673. this.B = {
  7674. src: f.Mc,
  7675. ha: f.Lc
  7676. };
  7677. this.Ta = x(0, 0, 0, 0);
  7678. this.Vd = new f.Yc;
  7679. this.oN = f.s.createBuffer();
  7680. this.Ba = this.Yi = !0;
  7681. this.iba(c, e, g)
  7682. };
  7683. c.ce = function(c, e) {
  7684. var g = this.B;
  7685. void 0 === e ? (g.src = c.src, g.ha = c.ha) :
  7686. (g.src = c, g.ha = e)
  7687. };
  7688. c.j = function() {
  7689. if (0 < arguments.length) return this.Ge(arguments[0], arguments[1]);
  7690. f.ja.prototype.j.call(this);
  7691. this.dirty = this.zn = !1;
  7692. this.Jb = !0;
  7693. this.B.src = f.Mc;
  7694. this.B.ha = f.Lc;
  7695. this.texture = null;
  7696. this.Ba = !0;
  7697. this.Fb = this.Hb = !1;
  7698. this.anchorY = this.anchorX = 0.5;
  7699. this.od.x = 0;
  7700. this.od.y = 0;
  7701. this.Yo = !1;
  7702. var c = {
  7703. r: 255,
  7704. g: 255,
  7705. b: 255,
  7706. a: 255
  7707. };
  7708. this.Vd.T.D = c;
  7709. this.Vd.aa.D = c;
  7710. this.Vd.Z.D = c;
  7711. this.Vd.W.D = c;
  7712. this.Yi = !0;
  7713. this.sc(x(0, 0, 0, 0), !1, t(0, 0));
  7714. return !0
  7715. };
  7716. c.va = function(c, e, g) {
  7717. f.assert(0 != arguments.length, f.l.woa);
  7718. g = g || !1;
  7719. if (!f.ja.prototype.j.call(this)) return !1;
  7720. this.Aa = null;
  7721. this.dirty = this.zn = !1;
  7722. this.Jb = !0;
  7723. this.B.src = f.Mc;
  7724. this.B.ha = f.Lc;
  7725. this.Fb = this.Hb = !1;
  7726. this.anchorY = this.anchorX = 0.5;
  7727. this.od.x = 0;
  7728. this.od.y = 0;
  7729. this.Yo = !1;
  7730. var h = f.color(255, 255, 255, 255),
  7731. k = this.Vd;
  7732. k.T.D = h;
  7733. k.aa.D = h;
  7734. k.Z.D = h;
  7735. k.W.D = h;
  7736. this.Ba = h = c.ie;
  7737. if (!h) return this.pf = g || !1, e && (h = this.Ta, h.x = e.x, h.y = e.y, h.width = e.width, h.height = e.height), c.oe(this.WN, this), !0;
  7738. e || (e = x(0, 0, c.width, c.height));
  7739. c && (g ? (h = e.x + e.height, k = e.y + e.width) : (h = e.x + e.width, k = e.y +
  7740. e.height), h > c.width && f.error(f.l.HT, c.url), k > c.height && f.error(f.l.GT, c.url));
  7741. this.texture = c;
  7742. this.sc(e, g);
  7743. this.batchNode = null;
  7744. return this.Yi = !0
  7745. };
  7746. c.WN = function(c) {
  7747. if (!this.Ba) {
  7748. this.Ba = !0;
  7749. var e = this.Ta;
  7750. e ? f.gG(e) && (e.width = c.width, e.height = c.height) : e = x(0, 0, c.width, c.height);
  7751. this.texture = c;
  7752. this.sc(e, this.pf);
  7753. this.batchNode = this.Aa;
  7754. this.Yi = !0;
  7755. this.jf()
  7756. }
  7757. };
  7758. c.sc = function(c, e, g) {
  7759. this.pf = e || !1;
  7760. this.Ga(g || c);
  7761. this.c3(c);
  7762. this.Yaa(c);
  7763. c = this.Ln;
  7764. this.Fb && (c.x = -c.x);
  7765. this.Hb && (c.y = -c.y);
  7766. var h = this.Ta;
  7767. this.od.x = c.x +
  7768. (this.m.width - h.width) / 2;
  7769. this.od.y = c.y + (this.m.height - h.height) / 2;
  7770. if (this.Aa) this.dirty = !0;
  7771. else {
  7772. c = 0 + this.od.x;
  7773. e = 0 + this.od.y;
  7774. g = c + h.width;
  7775. var h = e + h.height,
  7776. k = this.Vd;
  7777. k.T.k = {
  7778. x: c,
  7779. y: e,
  7780. z: 0
  7781. };
  7782. k.aa.k = {
  7783. x: g,
  7784. y: e,
  7785. z: 0
  7786. };
  7787. k.Z.k = {
  7788. x: c,
  7789. y: h,
  7790. z: 0
  7791. };
  7792. k.W.k = {
  7793. x: g,
  7794. y: h,
  7795. z: 0
  7796. };
  7797. this.Yi = !0
  7798. }
  7799. };
  7800. c.bi = function() {
  7801. if (this.dirty) {
  7802. var c = this.Vd,
  7803. e = this.Yb;
  7804. if (!this.Na || e && e != this.Aa && e.Nt) c.aa.k = {
  7805. x: 0,
  7806. y: 0,
  7807. z: 0
  7808. }, c.Z.k = {
  7809. x: 0,
  7810. y: 0,
  7811. z: 0
  7812. }, c.W.k = {
  7813. x: 0,
  7814. y: 0,
  7815. z: 0
  7816. }, c.T.k = {
  7817. x: 0,
  7818. y: 0,
  7819. z: 0
  7820. }, this.Nt = !0;
  7821. else {
  7822. this.Nt = !1;
  7823. var g = this.Sw = e && e != this.Aa ? f.Vg(this.se(), e.Sw) :
  7824. this.se(),
  7825. h = this.Ta,
  7826. e = this.od.x,
  7827. k = this.od.y,
  7828. m = e + h.width,
  7829. n = k + h.height,
  7830. p = g.pa,
  7831. s = g.qa,
  7832. u = g.a,
  7833. v = g.b,
  7834. z = g.P,
  7835. A = -g.G,
  7836. g = e * u - k * A + p,
  7837. h = e * v + k * z + s,
  7838. B = m * u - k * A + p,
  7839. k = m * v + k * z + s,
  7840. C = m * u - n * A + p,
  7841. m = m * v + n * z + s,
  7842. p = e * u - n * A + p,
  7843. e = e * v + n * z + s,
  7844. n = this.PG;
  7845. f.LT || (g |= 0, h |= 0, B |= 0, k |= 0, C |= 0, m |= 0, p |= 0, e |= 0);
  7846. c.T.k = {
  7847. x: g,
  7848. y: h,
  7849. z: n
  7850. };
  7851. c.aa.k = {
  7852. x: B,
  7853. y: k,
  7854. z: n
  7855. };
  7856. c.Z.k = {
  7857. x: p,
  7858. y: e,
  7859. z: n
  7860. };
  7861. c.W.k = {
  7862. x: C,
  7863. y: m,
  7864. z: n
  7865. }
  7866. }
  7867. this.textureAtlas.rJ(c, this.atlasIndex);
  7868. this.dirty = this.zn = !1
  7869. }
  7870. this.Yo && this.Bk(this.i, f.v.Fj.bi);
  7871. f.ys && f.If.Sf([r(this.Vd.T.k.x, this.Vd.T.k.y), r(this.Vd.aa.k.x,
  7872. this.Vd.aa.k.y), r(this.Vd.W.k.x, this.Vd.W.k.y), r(this.Vd.Z.k.x, this.Vd.Z.k.y)], 4, !0)
  7873. };
  7874. c.n = function(c, e, g) {
  7875. f.assert(c, f.l.noa);
  7876. null == e && (e = c.Ya);
  7877. null == g && (g = c.tag);
  7878. if (this.Aa) {
  7879. if (!(c instanceof f.q)) {
  7880. f.log(f.l.loa);
  7881. return
  7882. }
  7883. c.texture.Wh !== this.textureAtlas.texture.Wh && f.log(f.l.moa);
  7884. this.Aa.appendChild(c);
  7885. this.Sh || this.pY()
  7886. }
  7887. f.ja.prototype.n.call(this, c, e, g);
  7888. this.Yo = !0
  7889. };
  7890. c.J = function(c) {
  7891. f.ja.prototype.J.call(this, c);
  7892. this.oo()
  7893. };
  7894. c.F = function(c) {
  7895. f.ja.prototype.F.call(this, c);
  7896. this.oo()
  7897. };
  7898. c.Wb = function(c) {
  7899. f.ja.prototype.Wb.call(this,
  7900. c);
  7901. this.oo()
  7902. };
  7903. c.Dd = function(c) {
  7904. var e = this;
  7905. "string" == typeof c && (c = f.Je.Ca(c), f.assert(c, f.l.Foa));
  7906. e.Ha(!0);
  7907. var g = c.hb;
  7908. e.Ln.x = g.x;
  7909. e.Ln.y = g.y;
  7910. g = c.sb();
  7911. c.Ba || (e.Ba = !1, c.oe(function(c) {
  7912. e.Ba = !0;
  7913. var d = c.sb();
  7914. d != e.fa && (e.texture = d);
  7915. e.sc(c.$h(), c.lg, c.Jg);
  7916. e.jf()
  7917. }, e));
  7918. g != e.fa && (e.texture = g);
  7919. e.pf = c.lg;
  7920. e.sc(c.$h(), e.pf, c.Jg)
  7921. };
  7922. c.Kea = function(c) {
  7923. return f.Yfa(c.$h(), this.Ta) && c.sb().getName() == this.fa.getName() && f.I1(c.hb, this.Ln)
  7924. };
  7925. c.is = function(c) {
  7926. if (this.Aa = c) this.Sw = {
  7927. a: 1,
  7928. b: 0,
  7929. G: 0,
  7930. P: 1,
  7931. pa: 0,
  7932. qa: 0
  7933. }, this.textureAtlas =
  7934. this.Aa.textureAtlas;
  7935. else {
  7936. this.atlasIndex = f.q.XS;
  7937. this.textureAtlas = null;
  7938. this.dirty = this.zn = !1;
  7939. c = this.od.x;
  7940. var e = this.od.y,
  7941. g = c + this.Ta.width,
  7942. h = e + this.Ta.height,
  7943. k = this.Vd;
  7944. k.T.k = {
  7945. x: c,
  7946. y: e,
  7947. z: 0
  7948. };
  7949. k.aa.k = {
  7950. x: g,
  7951. y: e,
  7952. z: 0
  7953. };
  7954. k.Z.k = {
  7955. x: c,
  7956. y: h,
  7957. z: 0
  7958. };
  7959. k.W.k = {
  7960. x: g,
  7961. y: h,
  7962. z: 0
  7963. };
  7964. this.Yi = !0
  7965. }
  7966. };
  7967. c.ab = function(c) {
  7968. c && "string" === typeof c ? (c = f.nb.vd(c), this.ab(c), c = c.e(), this.sc(x(0, 0, c.width, c.height))) : (f.assert(!c || c instanceof f.Pa, f.l.Hoa), this.Aa && this.Aa.texture != c ? f.log(f.l.Goa) : (this.shaderProgram = c ? f.xg.be(f.zo) : f.xg.be(f.sK),
  7969. this.Aa || this.fa == c || (this.fa = c, this.Yk())))
  7970. };
  7971. c.ma = function() {
  7972. if (this.Ba) {
  7973. var c = f.s,
  7974. e = this.fa;
  7975. e ? e.ie && (this.sd.Ff(), this.sd.zj(), f.Fm(this.B.src, this.B.ha), f.w0(0, e), f.wf(f.tv), c.bindBuffer(c.ARRAY_BUFFER, this.oN), this.Yi && (c.bufferData(c.ARRAY_BUFFER, this.Vd.DO, c.DYNAMIC_DRAW), this.Yi = !1), c.vertexAttribPointer(0, 3, c.FLOAT, !1, 24, 0), c.vertexAttribPointer(1, 4, c.UNSIGNED_BYTE, !0, 24, 12), c.vertexAttribPointer(2, 2, c.FLOAT, !1, 24, 16), c.drawArrays(c.TRIANGLE_STRIP, 0, 4)) : (this.sd.Ff(), this.sd.zj(), f.Fm(this.B.src,
  7976. this.B.ha), f.Ai(null), f.wf(f.Gh | f.HK), c.bindBuffer(c.ARRAY_BUFFER, this.oN), this.Yi && (f.s.bufferData(f.s.ARRAY_BUFFER, this.Vd.DO, f.s.STATIC_DRAW), this.Yi = !1), c.vertexAttribPointer(f.Oc, 3, c.FLOAT, !1, 24, 0), c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, 24, 12), c.drawArrays(c.TRIANGLE_STRIP, 0, 4));
  7977. f.bl++;
  7978. if (0 !== f.ys || this.uY) 1 === f.ys || this.uY ? (c = this.Vd, f.If.Sf([r(c.Z.k.x, c.Z.k.y), r(c.T.k.x, c.T.k.y), r(c.aa.k.x, c.aa.k.y), r(c.W.k.x, c.W.k.y)], 4, !0)) : 2 === f.ys && (c = this.EH(), e = this.od, f.If.Sf([r(e.x, e.y), r(e.x +
  7979. c.width, e.y), r(e.x + c.width, e.y + c.height), r(e.x, e.y + c.height)], 4, !0))
  7980. }
  7981. };
  7982. delete c
  7983. };
  7984. f.U.BT = function() {
  7985. var c = f.q.prototype;
  7986. f.d(c, "opacityModifyRGB", c.vg, c.ee);
  7987. f.d(c, "opacity", c.vb, c.J);
  7988. f.d(c, "color", c.$a, c.F);
  7989. f.d(c, "flippedX", c.XH, c.Pd);
  7990. f.d(c, "flippedY", c.YH, c.Yf);
  7991. f.d(c, "offsetX", c.Vra);
  7992. f.d(c, "offsetY", c.Wra);
  7993. f.d(c, "texture", c.sb, c.ab);
  7994. f.d(c, "textureRectRotated", c.eDa);
  7995. f.d(c, "batchNode", c.LB, c.is);
  7996. f.d(c, "quad", c.$Aa)
  7997. };
  7998. f.GB = function(c) {
  7999. function d() {
  8000. var d = f.GB,
  8001. g = c.width,
  8002. m = c.height;
  8003. e[0].width = g;
  8004. e[0].height = m;
  8005. e[1].width = g;
  8006. e[1].height = m;
  8007. e[2].width = g;
  8008. e[2].height = m;
  8009. e[3].width = g;
  8010. e[3].height = m;
  8011. d.canvas.width = g;
  8012. d.canvas.height = m;
  8013. var n = d.canvas.getContext("2d");
  8014. n.drawImage(c, 0, 0);
  8015. d.p3.width = g;
  8016. d.p3.height = m;
  8017. for (var n = n.getImageData(0, 0, g, m).data, p = 0; 4 > p; p++) {
  8018. var s = e[p].getContext("2d");
  8019. s.getImageData(0, 0, g, m).data;
  8020. d.sia.drawImage(c, 0, 0);
  8021. for (var u = d.sia.getImageData(0, 0, g, m), v = u.data, z = 0; z < n.length; z += 4) v[z] = 0 === p ? n[z] : 0, v[z +
  8022. 1] = 1 === p ? n[z + 1] : 0, v[z + 2] = 2 === p ? n[z + 2] : 0, v[z + 3] = n[z + 3];
  8023. s.putImageData(u, 0, 0)
  8024. }
  8025. c.onload = null
  8026. }
  8027. if (c.pca) return c.pca;
  8028. var e = [f.fd("canvas"), f.fd("canvas"), f.fd("canvas"), f.fd("canvas")];
  8029. try {
  8030. d()
  8031. } catch (g) {
  8032. c.onload = d
  8033. }
  8034. return c.pca = e
  8035. };
  8036. f.GB.canvas = f.fd("canvas");
  8037. f.GB.p3 = f.fd("canvas");
  8038. f.GB.sia = f.GB.p3.getContext("2d");
  8039. f.URa = function(c, d, e) {
  8040. e || (e = x(0, 0, c.width, c.height), e = f.cs(e));
  8041. var g = f.fd("canvas"),
  8042. h = g.getContext("2d");
  8043. g.width != e.width && (g.width = e.width);
  8044. g.height != e.height && (g.height = e.height);
  8045. h.save();
  8046. h.drawImage(c, e.x, e.y, e.width, e.height, 0, 0, e.width, e.height);
  8047. h.globalCompositeOperation = "source-in";
  8048. h.globalAlpha = d.a / 255;
  8049. h.fillStyle = "rgb(" + d.r + "," + d.g + "," + d.b + ")";
  8050. h.fillRect(0, 0, e.width, e.height);
  8051. h.restore();
  8052. return g
  8053. };
  8054. f.HB = function(c, d, e, g, h) {
  8055. g || (g = x(0, 0, c.width, c.height));
  8056. c = e.r / 255;
  8057. var k = e.g / 255;
  8058. e = e.b / 255;
  8059. var m = Math.min(g.width, d[0].width),
  8060. n = Math.min(g.height, d[0].height),
  8061. p;
  8062. h ? (p = h.getContext("2d"), p.clearRect(0, 0, m, n)) : (h = f.fd("canvas"), h.width = m, h.height = n, p = h.getContext("2d"));
  8063. p.save();
  8064. p.globalCompositeOperation = "lighter";
  8065. var s = p.globalAlpha;
  8066. 0 < c && (p.globalAlpha = c * s, p.drawImage(d[0], g.x, g.y, m, n, 0, 0, m, n));
  8067. 0 < k && (p.globalAlpha = k * s, p.drawImage(d[1], g.x, g.y, m, n, 0, 0, m, n));
  8068. 0 < e && (p.globalAlpha = e * s, p.drawImage(d[2], g.x,
  8069. g.y, m, n, 0, 0, m, n));
  8070. 1 > c + k + e && (p.globalAlpha = s, p.drawImage(d[3], g.x, g.y, m, n, 0, 0, m, n));
  8071. p.restore();
  8072. return h
  8073. };
  8074. f.t_ = function(c, d) {
  8075. if (!c) return null;
  8076. if (!d) return c;
  8077. var e = f.fd("canvas");
  8078. e.width = d.width;
  8079. e.height = d.height;
  8080. var g = e.getContext("2d");
  8081. g.translate(e.width / 2, e.height / 2);
  8082. g.rotate(-1.5707963267948966);
  8083. g.drawImage(c, d.x, d.y, d.height, d.width, -d.height / 2, -d.width / 2, d.height, d.width);
  8084. return e
  8085. };
  8086. f.q = f.ja.extend({
  8087. wb: !0,
  8088. dirty: !1,
  8089. atlasIndex: 0,
  8090. textureAtlas: null,
  8091. Aa: null,
  8092. zn: null,
  8093. Yo: null,
  8094. Nt: !1,
  8095. Sw: null,
  8096. B: null,
  8097. fa: null,
  8098. Ta: null,
  8099. pf: !1,
  8100. od: null,
  8101. Ln: null,
  8102. Jb: !1,
  8103. Fb: !1,
  8104. Hb: !1,
  8105. Ba: !1,
  8106. dc: null,
  8107. fX: null,
  8108. ta: "Sprite",
  8109. RC: function() {
  8110. return this.Ba
  8111. },
  8112. oe: function(c, d) {
  8113. this.dc || (this.dc = []);
  8114. this.dc.push({
  8115. al: c,
  8116. nj: d
  8117. })
  8118. },
  8119. jf: function() {
  8120. if (this.dc) {
  8121. for (var c = this.dc, d = 0, e = c.length; d < e; d++) {
  8122. var g = c[d];
  8123. g.al.call(g.nj, this)
  8124. }
  8125. c.length = 0
  8126. }
  8127. },
  8128. R0: function() {
  8129. return this.dirty
  8130. },
  8131. Sga: function(c) {
  8132. this.dirty = c
  8133. },
  8134. eDa: function() {
  8135. return this.pf
  8136. },
  8137. KB: function() {
  8138. return this.atlasIndex
  8139. },
  8140. k2: function(c) {
  8141. this.atlasIndex = c
  8142. },
  8143. EH: function() {
  8144. return x(this.Ta.x, this.Ta.y, this.Ta.width, this.Ta.height)
  8145. },
  8146. DH: function() {
  8147. return this.textureAtlas
  8148. },
  8149. U2: function(c) {
  8150. this.textureAtlas = c
  8151. },
  8152. SUa: function() {
  8153. return this.od
  8154. },
  8155. Vra: function() {
  8156. return this.od.x
  8157. },
  8158. Wra: function() {
  8159. return this.od.y
  8160. },
  8161. ck: function() {
  8162. return this.B
  8163. },
  8164. pj: function(c) {
  8165. f.assert(c, f.l.toa);
  8166. c.Ba || (this.Ba = !1, c.oe(this.BY, this));
  8167. var d = f.K === f.fb ? !1 : c.lg,
  8168. d = this.va(c.sb(), c.$h(), d);
  8169. this.Dd(c);
  8170. return d
  8171. },
  8172. BY: null,
  8173. hl: function(c) {
  8174. f.assert(c, f.l.uoa);
  8175. var d = f.Je.Ca(c);
  8176. f.assert(d, c + f.l.voa);
  8177. return this.pj(d)
  8178. },
  8179. O5a: function(c) {
  8180. this.textureAtlas = c.textureAtlas;
  8181. this.Aa = c
  8182. },
  8183. c3: function(c) {
  8184. this.Ta.x = c.x;
  8185. this.Ta.y = c.y;
  8186. this.Ta.width = c.width;
  8187. this.Ta.height = c.height
  8188. },
  8189. kd: function() {
  8190. if (this.Sh) {
  8191. var c = this.i,
  8192. d = c.length,
  8193. e, g, h;
  8194. for (e = 1; e < d; e++) {
  8195. h = c[e];
  8196. for (g = e - 1; 0 <= g;) {
  8197. if (h.Ya < c[g].Ya) c[g + 1] = c[g];
  8198. else if (h.Ya === c[g].Ya && h.arrivalOrder < c[g].arrivalOrder) c[g + 1] = c[g];
  8199. else break;
  8200. g--
  8201. }
  8202. c[g + 1] = h
  8203. }
  8204. this.Aa && this.Bk(c, f.v.Fj.kd);
  8205. this.Sh = !1
  8206. }
  8207. },
  8208. BC: function(c, d) {
  8209. f.assert(c, f.l.Aoa); - 1 === this.i.indexOf(c) ? f.log(f.l.zoa) : d !== c.zIndex && (this.Aa && !this.Sh && (this.pY(), this.Aa.pga(!0)), f.v.prototype.BC.call(this, c, d))
  8210. },
  8211. removeChild: function(c, d) {
  8212. this.Aa && this.Aa.Rx(c);
  8213. f.v.prototype.removeChild.call(this, c, d)
  8214. },
  8215. Cf: function(c) {
  8216. var d = this.i,
  8217. e = this.Aa;
  8218. if (e && null != d)
  8219. for (var g = 0, h = d.length; g < h; g++) e.Rx(d[g]);
  8220. f.v.prototype.Cf.call(this, c);
  8221. this.Yo = !1
  8222. },
  8223. Tga: function(c) {
  8224. this.dirty = this.zn = c;
  8225. c = this.i;
  8226. for (var d, e = c ? c.length : 0, g = 0; g < e; g++) d = c[g], d instanceof f.q &&
  8227. d.Tga(!0)
  8228. },
  8229. Ha: function(c) {
  8230. f.v.prototype.Ha.call(this);
  8231. c || !this.Aa || this.zn || (this.Yo ? this.Tga(!0) : this.dirty = this.zn = !0)
  8232. },
  8233. Gm: function(c) {
  8234. this.Aa ? f.log(f.l.roa) : f.v.prototype.Gm.call(this, c)
  8235. },
  8236. Pd: function(c) {
  8237. this.Fb != c && (this.Fb = c, this.sc(this.Ta, this.pf, this.m), this.Ha(!0))
  8238. },
  8239. Yf: function(c) {
  8240. this.Hb != c && (this.Hb = c, this.sc(this.Ta, this.pf, this.m), this.Ha(!0))
  8241. },
  8242. XH: function() {
  8243. return this.Fb
  8244. },
  8245. YH: function() {
  8246. return this.Hb
  8247. },
  8248. ee: null,
  8249. vg: function() {
  8250. return this.Jb
  8251. },
  8252. hc: null,
  8253. Z2a: function(c, d) {
  8254. f.assert(c, f.l.Eoa);
  8255. var e = f.WG.cl(c);
  8256. e ? (e = e.Ph[d]) ? this.Dd(e.Ca()) : f.log(f.l.Doa) : f.log(f.l.Coa)
  8257. },
  8258. LB: function() {
  8259. return this.Aa
  8260. },
  8261. pY: function() {
  8262. if (!this.Sh) {
  8263. this.Sh = !0;
  8264. for (var c = this.Yb; c && c != this.Aa;) c.pY(), c = c.parent
  8265. }
  8266. },
  8267. sb: function() {
  8268. return this.fa
  8269. },
  8270. Vd: null,
  8271. oN: null,
  8272. Yi: !1,
  8273. rL: !1,
  8274. gA: !1,
  8275. qi: null,
  8276. YA: null,
  8277. VV: null,
  8278. ctor: null,
  8279. iba: function(c, d, e) {
  8280. if (void 0 === c) f.q.prototype.j.call(this);
  8281. else if ("string" === typeof c) "#" === c[0] ? (c = f.Je.Ca(c.substr(1, c.length - 1)), this.pj(c)) : f.q.prototype.j.call(this, c, d);
  8282. else if ("object" === typeof c)
  8283. if (c instanceof f.Pa) this.va(c, d, e);
  8284. else if (c instanceof f.Li) this.pj(c);
  8285. else if (c instanceof HTMLImageElement || c instanceof HTMLCanvasElement) d = new f.Pa, d.sh(c), d.$d(), this.va(d)
  8286. },
  8287. $Aa: function() {
  8288. return this.Vd
  8289. },
  8290. ce: null,
  8291. j: null,
  8292. Ge: function(c, d) {
  8293. f.assert(c, f.l.soa);
  8294. var e = f.nb.Ru(c);
  8295. if (e) {
  8296. if (!d) {
  8297. var g = e.e();
  8298. d = x(0, 0, g.width, g.height)
  8299. }
  8300. return this.va(e, d)
  8301. }
  8302. e = f.nb.vd(c);
  8303. return this.va(e, d || x(0, 0, e.m.width, e.m.height))
  8304. },
  8305. va: null,
  8306. WN: null,
  8307. sc: null,
  8308. bi: null,
  8309. n: null,
  8310. oo: function() {
  8311. var c = this.Ab,
  8312. d = this.kb,
  8313. c = {
  8314. r: c.r,
  8315. g: c.g,
  8316. b: c.b,
  8317. a: d
  8318. };
  8319. this.Jb && (c.r *= d / 255, c.g *= d / 255, c.b *= d / 255);
  8320. d = this.Vd;
  8321. d.T.D = c;
  8322. d.aa.D = c;
  8323. d.Z.D = c;
  8324. d.W.D = c;
  8325. this.Aa && (this.atlasIndex != f.q.XS ? this.textureAtlas.rJ(d, this.atlasIndex) : this.dirty = !0);
  8326. this.Yi = !0
  8327. },
  8328. J: null,
  8329. F: null,
  8330. Wb: null,
  8331. Dd: null,
  8332. NGa: function(c) {
  8333. f.log(f.l.Boa);
  8334. this.Dd(c)
  8335. },
  8336. Kea: null,
  8337. Wxa: function() {
  8338. return f.Li.create(this.fa, f.FI(this.Ta), this.pf, f.eFa(this.Ln), f.dIa(this.m))
  8339. },
  8340. is: null,
  8341. ab: null,
  8342. Yk: function() {
  8343. this.Aa ? f.log(f.l.koa) : this.fa && this.fa.Ep() ? (this.B.src = f.Mc, this.B.ha = f.Lc, this.opacityModifyRGB = !0) : (this.B.src =
  8344. f.SRC_ALPHA, this.B.ha = f.ONE_MINUS_SRC_ALPHA, this.opacityModifyRGB = !1)
  8345. },
  8346. Us: function() {
  8347. var c, d = this.fa,
  8348. e = this.YA;
  8349. d && e.$C && this.qi && (c = d.md) && (d = f.nb.vP(this.qi.md)) && (this.rL = !0, c instanceof HTMLCanvasElement && !this.pf && !this.fX ? f.HB(c, d, this.Ab, e, c) : (c = f.HB(c, d, this.Ab, e), d = new f.Pa, d.sh(c), d.$d(), this.texture = d))
  8350. },
  8351. Yaa: function(c) {
  8352. c = f.FI(c);
  8353. var d = this.Aa ? this.textureAtlas.texture : this.fa;
  8354. if (d) {
  8355. var e = d.pixelsWidth,
  8356. g = d.pixelsHeight,
  8357. h, k = this.Vd;
  8358. this.pf ? (f.Ey ? (d = (2 * c.x + 1) / (2 * e), e = d + (2 * c.height - 2) / (2 * e),
  8359. h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.width - 2) / (2 * g)) : (d = c.x / e, e = (c.x + c.height) / e, h = c.y / g, c = (c.y + c.width) / g), this.Fb && (g = h, h = c, c = g), this.Hb && (g = d, d = e, e = g), k.T.t.Da = d, k.T.t.ga = h, k.aa.t.Da = d, k.aa.t.ga = c, k.Z.t.Da = e, k.Z.t.ga = h, k.W.t.Da = e, k.W.t.ga = c) : (f.Ey ? (d = (2 * c.x + 1) / (2 * e), e = d + (2 * c.width - 2) / (2 * e), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.height - 2) / (2 * g)) : (d = c.x / e, e = (c.x + c.width) / e, h = c.y / g, c = (c.y + c.height) / g), this.Fb && (g = d, d = e, e = g), this.Hb && (g = h, h = c, c = g), k.T.t.Da = d, k.T.t.ga = c, k.aa.t.Da = e, k.aa.t.ga = c, k.Z.t.Da = d, k.Z.t.ga = h, k.W.t.Da =
  8360. e, k.W.t.ga = h);
  8361. this.Yi = !0
  8362. }
  8363. },
  8364. ma: null
  8365. });
  8366. f.q.create = function(c, d, e) {
  8367. return new f.q(c, d, e)
  8368. };
  8369. f.q.XS = -1;
  8370. f.K === f.fb ? (q = f.q.prototype, q.BY = function(c) {
  8371. this.Ha(!0);
  8372. this.sc(c.$h(), c.lg, c.Jg);
  8373. c = this.color;
  8374. 255 === c.r && 255 === c.g && 255 === c.b || this.Us();
  8375. this.jf()
  8376. }, q.ee = function(c) {
  8377. this.Jb !== c && (this.Jb = c, this.Ha(!0))
  8378. }, q.hc = function(c) {
  8379. f.ja.prototype.hc.call(this, c);
  8380. this.En()
  8381. }, q.ctor = function(c, d, e) {
  8382. f.ja.prototype.ctor.call(this);
  8383. this.Nt = !1;
  8384. this.od = r(0, 0);
  8385. this.Ln = r(0, 0);
  8386. this.B = {
  8387. src: f.Mc,
  8388. ha: f.Lc
  8389. };
  8390. this.Ta = x(0, 0, 0, 0);
  8391. this.fX = !1;
  8392. this.Ba = !0;
  8393. this.YA = {
  8394. x: 0,
  8395. y: 0,
  8396. width: 0,
  8397. height: 0,
  8398. $C: !1
  8399. };
  8400. this.VV = t(0, 0);
  8401. this.iba(c, d, e)
  8402. }, q.ce =
  8403. function(c, d) {
  8404. var e = this.B;
  8405. void 0 === d ? (e.src = c.src, e.ha = c.ha) : (e.src = c, e.ha = d);
  8406. this.gA = e && (e.src == f.SRC_ALPHA && e.ha == f.ONE || e.src == f.ONE && e.ha == f.ONE)
  8407. }, q.j = function() {
  8408. if (0 < arguments.length) return this.Ge(arguments[0], arguments[1]);
  8409. f.ja.prototype.j.call(this);
  8410. this.dirty = this.zn = !1;
  8411. this.Jb = !0;
  8412. this.B.src = f.Mc;
  8413. this.B.ha = f.Lc;
  8414. this.texture = null;
  8415. this.Ba = !0;
  8416. this.Fb = this.Hb = !1;
  8417. this.anchorY = this.anchorX = 0.5;
  8418. this.od.x = 0;
  8419. this.od.y = 0;
  8420. this.Yo = !1;
  8421. this.sc(x(0, 0, 0, 0), !1, t(0, 0));
  8422. return !0
  8423. }, q.va = function(c, d, e) {
  8424. f.assert(0 !=
  8425. arguments.length, f.l.Lja);
  8426. if ((e = e || !1) && c.ie) {
  8427. var g = c.md,
  8428. g = f.t_(g, d),
  8429. h = new f.Pa;
  8430. h.sh(g);
  8431. h.$d();
  8432. c = h;
  8433. this.Ta = x(0, 0, d.width, d.height)
  8434. }
  8435. if (!f.ja.prototype.j.call(this)) return !1;
  8436. this.Aa = null;
  8437. this.dirty = this.zn = !1;
  8438. this.Jb = !0;
  8439. this.B.src = f.Mc;
  8440. this.B.ha = f.Lc;
  8441. this.Fb = this.Hb = !1;
  8442. this.anchorY = this.anchorX = 0.5;
  8443. this.od.x = 0;
  8444. this.od.y = 0;
  8445. this.Yo = !1;
  8446. this.Ba = g = c.ie;
  8447. if (!g) return this.pf = e, d && (this.Ta.x = d.x, this.Ta.y = d.y, this.Ta.width = d.width, this.Ta.height = d.height), c.oe(this.WN, this), !0;
  8448. d || (d = x(0, 0, c.width, c.height));
  8449. c && (g = d.y + d.height, d.x + d.width > c.width && f.error(f.l.HT, c.url), g > c.height && f.error(f.l.GT, c.url));
  8450. this.texture = this.qi = c;
  8451. this.sc(d, e);
  8452. this.batchNode = null;
  8453. return !0
  8454. }, q.WN = function(c) {
  8455. if (!this.Ba) {
  8456. this.Ba = !0;
  8457. var d = this.Ta;
  8458. d ? f.gG(d) && (d.width = c.width, d.height = c.height) : d = x(0, 0, c.width, c.height);
  8459. this.texture = this.qi = c;
  8460. this.sc(d, this.pf);
  8461. this.batchNode = this.Aa;
  8462. this.jf()
  8463. }
  8464. }, q.sc = function(c, d, e) {
  8465. this.pf = d || !1;
  8466. this.Ga(e || c);
  8467. this.c3(c);
  8468. d = this.YA;
  8469. e = f.Uc();
  8470. d.x = 0 | c.x * e;
  8471. d.y = 0 | c.y * e;
  8472. d.width = 0 | c.width * e;
  8473. d.height = 0 |
  8474. c.height * e;
  8475. d.$C = !(0 === d.width || 0 === d.height || 0 > d.x || 0 > d.y);
  8476. c = this.Ln;
  8477. this.Fb && (c.x = -c.x);
  8478. this.Hb && (c.y = -c.y);
  8479. this.od.x = c.x + (this.m.width - this.Ta.width) / 2;
  8480. this.od.y = c.y + (this.m.height - this.Ta.height) / 2;
  8481. this.Aa && (this.dirty = !0)
  8482. }, q.bi = function() {
  8483. if (this.dirty) {
  8484. var c = this.Yb;
  8485. !this.Na || c && c != this.Aa && c.Nt ? this.Nt = !0 : (this.Nt = !1, this.Sw = c && c != this.Aa ? f.Vg(this.se(), c.Sw) : this.se());
  8486. this.dirty = this.zn = !1
  8487. }
  8488. this.Yo && this.Bk(this.i, f.v.Fj.bi)
  8489. }, q.n = function(c, d, e) {
  8490. f.assert(c, f.l.Jja);
  8491. null == d && (d = c.Ya);
  8492. null ==
  8493. e && (e = c.tag);
  8494. f.ja.prototype.n.call(this, c, d, e);
  8495. this.Yo = !0
  8496. }, q.J = function(c) {
  8497. f.ja.prototype.J.call(this, c);
  8498. this.En()
  8499. }, q.F = function(c) {
  8500. var d = this.color;
  8501. if (d.r !== c.r || d.g !== c.g || d.b !== c.b) f.ja.prototype.F.call(this, c), this.Us(), this.En()
  8502. }, q.Wb = function(c) {
  8503. var d = this.color;
  8504. f.ja.prototype.Wb.call(this, c);
  8505. c = this.Ab;
  8506. if (d.r !== c.r || d.g !== c.g || d.b !== c.b) this.Us(), this.En()
  8507. }, q.Dd = function(c) {
  8508. var d = this;
  8509. "string" == typeof c && (c = f.Je.Ca(c), f.assert(c, f.l.Oja));
  8510. d.Ha(!0);
  8511. var e = c.hb;
  8512. d.Ln.x = e.x;
  8513. d.Ln.y = e.y;
  8514. d.pf = c.lg;
  8515. var e = c.sb(),
  8516. g = c.Ba;
  8517. g || (d.Ba = !1, c.oe(function(c) {
  8518. d.Ba = !0;
  8519. var e = c.sb();
  8520. e != d.fa && (d.texture = e);
  8521. d.sc(c.$h(), c.lg, c.Jg);
  8522. d.jf()
  8523. }, d));
  8524. e != d.fa && (d.texture = e);
  8525. d.pf && (d.qi = e);
  8526. d.sc(c.$h(), d.pf, c.Jg);
  8527. d.rL = !1;
  8528. g && (c = d.color, 255 === c.r && 255 === c.g && 255 === c.b || d.Us())
  8529. }, q.Kea = function(c) {
  8530. return c.sb() != this.fa ? !1 : f.Yfa(c.$h(), this.Ta)
  8531. }, q.is = function(c) {
  8532. (this.Aa = c) ? (this.Sw = {
  8533. a: 1,
  8534. b: 0,
  8535. G: 0,
  8536. P: 1,
  8537. pa: 0,
  8538. qa: 0
  8539. }, this.textureAtlas = this.Aa.textureAtlas) : (this.atlasIndex = f.q.XS, this.textureAtlas = null, this.dirty = this.zn = !1)
  8540. }, q.ab =
  8541. function(c) {
  8542. c && "string" === typeof c ? (c = f.nb.vd(c), this.ab(c), c = c.e(), this.sc(x(0, 0, c.width, c.height))) : (f.assert(!c || c instanceof f.Pa, f.l.Pja), this.fa != c && (c && c.md instanceof HTMLImageElement && (this.qi = c), this.fa = c))
  8543. }, q.ma = function(c) {
  8544. if (this.Ba) {
  8545. c = c || f.s;
  8546. this.gA && (c.globalCompositeOperation = "lighter");
  8547. var d = f.view.ka,
  8548. e = f.view.ra;
  8549. c.globalAlpha = this.kb / 255;
  8550. var g = this.Ta,
  8551. h = this.m,
  8552. k = this.od,
  8553. m = this.VV,
  8554. n = 0 | k.x,
  8555. p = -k.y - g.height,
  8556. s = this.YA;
  8557. m.width = g.width * d;
  8558. m.height = g.height * e;
  8559. if (this.Fb || this.Hb) c.save(),
  8560. this.Fb && (n = -k.x - g.width, c.scale(-1, 1)), this.Hb && (p = k.y, c.scale(1, -1));
  8561. n *= d;
  8562. p *= e;
  8563. this.fa && s.$C ? (h = this.fa.md, this.rL ? c.drawImage(h, 0, 0, s.width, s.height, n, p, m.width, m.height) : c.drawImage(h, s.x, s.y, s.width, s.height, n, p, m.width, m.height)) : !this.fa && s.$C && (m = this.color, c.fillStyle = "rgba(" + m.r + "," + m.g + "," + m.b + ",1)", c.fillRect(n, p, h.width * d, h.height * e));
  8564. 1 === f.ys || this.uY ? (c.strokeStyle = "rgba(0,255,0,1)", n /= d, p = -(p / e), f.If.Sf([r(n, p), r(n + g.width, p), r(n + g.width, p - g.height), r(n, p - g.height)], 4, !0)) : 2 === f.ys &&
  8565. (c.strokeStyle = "rgba(0,255,0,1)", d = this.Ta, p = -p, f.If.Sf([r(n, p), r(n + d.width, p), r(n + d.width, p - d.height), r(n, p - d.height)], 4, !0));
  8566. (this.Fb || this.Hb) && c.restore();
  8567. f.bl++
  8568. }
  8569. }, delete q) : (f.assert("function" === typeof f.U.DU, f.l.Hf, "SpritesWebGL.js"), f.U.DU(), delete f.U.DU);
  8570. f.assert("function" === typeof f.U.BT, f.l.Hf, "SpritesPropertyDefine.js");
  8571. f.U.BT();
  8572. delete f.U.BT;
  8573. f.CS = 29;
  8574. f.Fh = f.v.extend({
  8575. textureAtlas: null,
  8576. B: null,
  8577. fh: null,
  8578. ta: "SpriteBatchNode",
  8579. Xva: function(c, d, e) {
  8580. f.assert(c, f.l.eoa);
  8581. if (!(c instanceof f.q)) return f.log(f.l.doa), null;
  8582. c.atlasIndex = d;
  8583. var g = 0,
  8584. h = this.fh;
  8585. if (h && 0 < h.length)
  8586. for (var k = 0; k < h.length; k++) {
  8587. var m = h[k];
  8588. m && m.atlasIndex >= d && ++g
  8589. }
  8590. h.splice(g, 0, c);
  8591. f.v.prototype.n.call(this, c, d, e);
  8592. this.pga(!1);
  8593. return this
  8594. },
  8595. DH: function() {
  8596. return this.textureAtlas
  8597. },
  8598. U2: function(c) {
  8599. c != this.textureAtlas && (this.textureAtlas = c)
  8600. },
  8601. Oza: function() {
  8602. return this.fh
  8603. },
  8604. Ge: function(c, d) {
  8605. var e =
  8606. f.nb.Ru(c);
  8607. e || (e = f.nb.vd(c));
  8608. return this.va(e, d)
  8609. },
  8610. En: function() {
  8611. this.Dk = !0
  8612. },
  8613. j: function(c, d) {
  8614. var e = f.nb.Ru(c);
  8615. e || (e = f.nb.vd(c));
  8616. return this.va(e, d)
  8617. },
  8618. IP: function() {
  8619. var c = this.textureAtlas.capacity,
  8620. d = Math.floor(4 * (c + 1) / 3);
  8621. f.log(f.l.foa, c, d);
  8622. this.textureAtlas.NQ(d) || f.log(f.l.goa)
  8623. },
  8624. NFa: function(c, d) {
  8625. this.removeChild(this.i[c], d)
  8626. },
  8627. Xfa: function(c, d) {
  8628. var e = c.children;
  8629. if (e && 0 < e.length)
  8630. for (var g = 0; g < e.length; g++) {
  8631. var h = e[g];
  8632. h && 0 > h.zIndex && (d = this.Xfa(h, d))
  8633. }!c == this && (c.atlasIndex = d, d++);
  8634. if (e && 0 < e.length)
  8635. for (g =
  8636. 0; g < e.length; g++)(h = e[g]) && 0 <= h.zIndex && (d = this.Xfa(h, d));
  8637. return d
  8638. },
  8639. B0: function(c) {
  8640. var d = c.children;
  8641. return d && 0 != d.length ? this.B0(d[d.length - 1]) : c.atlasIndex
  8642. },
  8643. QDa: function(c) {
  8644. var d = c.children;
  8645. return d && 0 != d.length ? this.QDa(d[d.length - 1]) : c.atlasIndex
  8646. },
  8647. swa: function(c, d) {
  8648. var e = c.parent,
  8649. g = e.children,
  8650. h = g.indexOf(c),
  8651. k = null;
  8652. 0 < h && h < f.oU && (k = g[h - 1]);
  8653. return e == this ? 0 == h ? 0 : this.B0(k) + 1 : 0 == h ? 0 > d ? e.atlasIndex : e.atlasIndex + 1 : 0 > k.zIndex && 0 > d || 0 <= k.zIndex && 0 <= d ? this.B0(k) + 1 : e.atlasIndex + 1
  8654. },
  8655. pga: function(c) {
  8656. this.Sh =
  8657. c
  8658. },
  8659. ce: function(c, d) {
  8660. this.B = void 0 === d ? c : {
  8661. src: c,
  8662. ha: d
  8663. }
  8664. },
  8665. ck: function() {
  8666. return this.B
  8667. },
  8668. BC: function(c, d) {
  8669. f.assert(c, f.l.joa); - 1 === this.i.indexOf(c) ? f.log(f.l.ioa) : d !== c.zIndex && (f.v.prototype.BC.call(this, c, d), this.Ha())
  8670. },
  8671. removeChild: function(c, d) {
  8672. null != c && (-1 === this.i.indexOf(c) ? f.log(f.l.hoa) : (this.Rx(c), f.v.prototype.removeChild.call(this, c, d)))
  8673. },
  8674. bta: null,
  8675. Vt: null,
  8676. dPa: !1,
  8677. qi: null,
  8678. ctor: null,
  8679. aF: function(c, d) {
  8680. f.v.prototype.ctor.call(this);
  8681. var e;
  8682. d = d || f.CS;
  8683. "string" == typeof c ? (e = f.nb.Ru(c)) || (e = f.nb.vd(c)) :
  8684. c instanceof f.Pa && (e = c);
  8685. e && this.va(e, d)
  8686. },
  8687. bF: function(c, d) {
  8688. f.v.prototype.ctor.call(this);
  8689. this.bta = new f.Ma;
  8690. var e;
  8691. d = d || f.CS;
  8692. "string" == typeof c ? (e = f.nb.Ru(c)) || (e = f.nb.vd(c)) : c instanceof f.Pa && (e = c);
  8693. e && this.va(e, d)
  8694. },
  8695. Hia: null,
  8696. zva: function(c, d) {
  8697. f.assert(c, f.l.Qja);
  8698. c instanceof f.q ? (c.batchNode = this, c.atlasIndex = d, c.dirty = !0, c.bi()) : f.log(f.l.lS)
  8699. },
  8700. Ava: function(c, d) {
  8701. f.assert(c, f.l.lS);
  8702. if (c instanceof f.q) {
  8703. for (var e = this.textureAtlas.capacity; d >= e || e == this.textureAtlas.totalQuads;) this.IP();
  8704. c.batchNode =
  8705. this;
  8706. c.atlasIndex = d;
  8707. c.dirty = !0;
  8708. c.bi()
  8709. } else f.log(f.l.lS)
  8710. },
  8711. Tt: function(c, d) {
  8712. var e = this.fh,
  8713. g = this.textureAtlas,
  8714. h = g.quads,
  8715. k = e[c],
  8716. m = f.h8(h[c]);
  8717. e[d].atlasIndex = c;
  8718. e[c] = e[d];
  8719. g.rJ(h[d], c);
  8720. e[d] = k;
  8721. g.rJ(m, d)
  8722. },
  8723. QP: null,
  8724. Isa: function(c, d) {
  8725. f.assert(c, f.l.Nja);
  8726. c instanceof f.q ? (c.batchNode = this, c.atlasIndex = d, c.dirty = !0, c.bi(), this.i.splice(d, 0, c)) : f.log(f.l.Mja)
  8727. },
  8728. Jsa: function(c, d) {
  8729. f.assert(c, f.l.yoa);
  8730. if (c instanceof f.q) {
  8731. for (var e = this.textureAtlas; d >= e.capacity || e.capacity === e.totalQuads;) this.IP();
  8732. c.batchNode =
  8733. this;
  8734. c.atlasIndex = d;
  8735. e.O0(c.quad, d);
  8736. c.dirty = !0;
  8737. c.bi()
  8738. } else f.log(f.l.xoa)
  8739. },
  8740. Bba: function(c, d) {
  8741. var e = 0,
  8742. g = c.children;
  8743. g && (e = g.length);
  8744. var h = 0;
  8745. if (0 === e) h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.Tt(h, d), d++;
  8746. else {
  8747. h = !0;
  8748. 0 <= g[0].zIndex && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.Tt(h, d), d++, h = !1);
  8749. for (e = 0; e < g.length; e++) {
  8750. var k = g[e];
  8751. h && 0 <= k.zIndex && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.Tt(h, d), d++, h = !1);
  8752. d = this.Bba(k, d)
  8753. }
  8754. h && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder =
  8755. 0, h != d && this.Tt(h, d), d++)
  8756. }
  8757. return d
  8758. },
  8759. Yk: function() {
  8760. this.textureAtlas.texture.Ep() || (this.B.src = f.SRC_ALPHA, this.B.ha = f.ONE_MINUS_SRC_ALPHA)
  8761. },
  8762. va: null,
  8763. JW: function(c) {
  8764. this.i = [];
  8765. this.fh = [];
  8766. this.B = new f.Um(f.Mc, f.Lc);
  8767. this.Vt = this.qi = c;
  8768. return !0
  8769. },
  8770. KW: function(c, d) {
  8771. this.i = [];
  8772. this.fh = [];
  8773. this.B = new f.Um(f.Mc, f.Lc);
  8774. d = d || f.CS;
  8775. this.textureAtlas = new f.wq;
  8776. this.textureAtlas.va(c, d);
  8777. this.Yk();
  8778. this.shaderProgram = f.xg.be(f.zo);
  8779. return !0
  8780. },
  8781. N0: function(c, d) {
  8782. c.batchNode = this;
  8783. c.atlasIndex = d;
  8784. c.dirty = !0;
  8785. var e = this.textureAtlas;
  8786. e.totalQuads >= e.capacity && this.IP();
  8787. e.O0(c.quad, d);
  8788. this.fh.splice(d, 0, c);
  8789. var e = d + 1,
  8790. g = this.fh;
  8791. if (g && 0 < g.length)
  8792. for (; e < g.length; e++) g[e].atlasIndex++;
  8793. var g = c.children,
  8794. h;
  8795. if (g)
  8796. for (e = 0, l = g.length || 0; e < l; e++)(h = g[e]) && this.N0(h, this.swa(h, h.zIndex))
  8797. },
  8798. appendChild: null,
  8799. gqa: function(c) {
  8800. this.Sh = !0;
  8801. c.batchNode = this;
  8802. c.dirty = !0;
  8803. this.fh.push(c);
  8804. c.atlasIndex = this.fh.length - 1;
  8805. c = c.children;
  8806. for (var d = 0, e = c.length || 0; d < e; d++) this.appendChild(c[d])
  8807. },
  8808. hqa: function(c) {
  8809. this.Sh = !0;
  8810. c.batchNode = this;
  8811. c.dirty = !0;
  8812. this.fh.push(c);
  8813. var d = this.fh.length - 1;
  8814. c.atlasIndex = d;
  8815. var e = this.textureAtlas;
  8816. e.totalQuads == e.capacity && this.IP();
  8817. e.O0(c.quad, d);
  8818. c = c.children;
  8819. d = 0;
  8820. for (e = c.length || 0; d < e; d++) this.appendChild(c[d])
  8821. },
  8822. Rx: null,
  8823. Xta: function(c) {
  8824. c.batchNode = null;
  8825. var d = this.fh,
  8826. e = d.indexOf(c);
  8827. if (-1 != e) {
  8828. d.splice(e, 1);
  8829. for (var g = d.length; e < g; ++e) d[e].atlasIndex--
  8830. }
  8831. if (c = c.children)
  8832. for (d = 0, e = c.length || 0; d < e; d++) c[d] && this.Rx(c[d])
  8833. },
  8834. Yta: function(c) {
  8835. this.textureAtlas.oga(c.atlasIndex);
  8836. c.batchNode = null;
  8837. var d = this.fh,
  8838. e = d.indexOf(c);
  8839. if (-1 != e) {
  8840. d.splice(e,
  8841. 1);
  8842. for (var g = d.length; e < g; ++e) d[e].atlasIndex--
  8843. }
  8844. if (c = c.children)
  8845. for (d = 0, e = c.length || 0; d < e; d++) c[d] && this.Rx(c[d])
  8846. },
  8847. sb: null,
  8848. xF: function() {
  8849. return this.Vt
  8850. },
  8851. BW: function() {
  8852. return this.textureAtlas.texture
  8853. },
  8854. ab: null,
  8855. qY: function(c) {
  8856. this.Vt = c;
  8857. for (var d = this.i, e = 0; e < d.length; e++) d[e].texture = c
  8858. },
  8859. rY: function(c) {
  8860. this.textureAtlas.texture = c;
  8861. this.Yk()
  8862. },
  8863. I: null,
  8864. Br: function(c) {
  8865. var d = c || f.s;
  8866. if (this.Na) {
  8867. d.save();
  8868. this.transform(c);
  8869. var e = this.i;
  8870. if (e)
  8871. for (this.kd(), c = 0; c < e.length; c++) e[c] && e[c].I(d);
  8872. d.restore()
  8873. }
  8874. },
  8875. Uw: function(c) {
  8876. c =
  8877. c || f.s;
  8878. if (this.Na) {
  8879. f.Rr();
  8880. var d = this.grid;
  8881. d && d.Bi() && (d.dx(), this.mJ());
  8882. this.kd();
  8883. this.transform(c);
  8884. this.ma(c);
  8885. d && d.Bi() && d.ax(this);
  8886. f.Qr();
  8887. this.arrivalOrder = 0
  8888. }
  8889. },
  8890. n: null,
  8891. LU: function(c, d, e) {
  8892. f.assert(null != c, f.l.Kja);
  8893. c instanceof f.q ? (d = null == d ? c.zIndex : d, e = null == e ? c.tag : e, f.v.prototype.n.call(this, c, d, e), this.appendChild(c), this.Ha()) : f.log(f.l.Ija)
  8894. },
  8895. cqa: function(c, d, e) {
  8896. f.assert(null != c, f.l.qoa);
  8897. c instanceof f.q ? c.texture != this.textureAtlas.texture ? f.log(f.l.poa) : (d = null == d ? c.zIndex : d, e = null == e ? c.tag :
  8898. e, f.v.prototype.n.call(this, c, d, e), this.appendChild(c), this.Ha()) : f.log(f.l.ooa)
  8899. },
  8900. Cf: null,
  8901. Uta: function(c) {
  8902. var d = this.fh;
  8903. if (d && 0 < d.length)
  8904. for (var e = 0, g = d.length; e < g; e++) d[e] && (d[e].batchNode = null);
  8905. f.v.prototype.Cf.call(this, c);
  8906. this.fh.length = 0
  8907. },
  8908. Vta: function(c) {
  8909. var d = this.fh;
  8910. if (d && 0 < d.length)
  8911. for (var e = 0, g = d.length; e < g; e++) d[e] && (d[e].batchNode = null);
  8912. f.v.prototype.Cf.call(this, c);
  8913. this.fh.length = 0;
  8914. this.textureAtlas.AC()
  8915. },
  8916. kd: null,
  8917. Zua: function() {
  8918. if (this.Sh) {
  8919. var c, d = 0,
  8920. e = this.i,
  8921. g = e.length,
  8922. h;
  8923. for (c = 1; c < g; c++) {
  8924. var k =
  8925. e[c],
  8926. d = c - 1;
  8927. for (h = e[d]; 0 <= d && (k.Ya < h.Ya || k.Ya == h.Ya && k.arrivalOrder < h.arrivalOrder);) e[d + 1] = h, d -= 1, h = e[d];
  8928. e[d + 1] = k
  8929. }
  8930. 0 < e.length && this.Bk(e, f.v.Fj.kd);
  8931. this.Sh = !1
  8932. }
  8933. },
  8934. $ua: function() {
  8935. if (this.Sh) {
  8936. var c = this.i,
  8937. d, e = 0,
  8938. g = c.length,
  8939. h;
  8940. for (d = 1; d < g; d++) {
  8941. var k = c[d],
  8942. e = d - 1;
  8943. for (h = c[e]; 0 <= e && (k.Ya < h.Ya || k.Ya == h.Ya && k.arrivalOrder < h.arrivalOrder);) c[e + 1] = h, e -= 1, h = c[e];
  8944. c[e + 1] = k
  8945. }
  8946. if (0 < c.length)
  8947. for (this.Bk(c, f.v.Fj.kd), d = e = 0; d < c.length; d++) e = this.Bba(c[d], e);
  8948. this.Sh = !1
  8949. }
  8950. },
  8951. ma: null,
  8952. fn: function() {
  8953. 0 !== this.textureAtlas.totalQuads &&
  8954. (this.sd.Ff(), this.sd.zj(), this.Bk(this.i, f.v.Fj.bi), f.Fm(this.B.src, this.B.ha), this.textureAtlas.yB())
  8955. }
  8956. });
  8957. q = f.Fh.prototype;
  8958. f.K === f.na ? (q.ctor = q.bF, q.Hia = q.Ava, q.QP = q.Jsa, q.va = q.KW, q.appendChild = q.hqa, q.Rx = q.Yta, q.sb = q.BW, q.ab = q.rY, q.I = q.Uw, q.n = q.cqa, q.Cf = q.Vta, q.kd = q.$ua, q.ma = q.fn) : (q.ctor = q.aF, q.Hia = q.zva, q.QP = q.Isa, q.va = q.JW, q.appendChild = q.gqa, q.Rx = q.Xta, q.sb = q.xF, q.ab = q.qY, q.I = q.Br, q.Cf = q.Uta, q.n = q.LU, q.kd = q.Zua, q.ma = f.v.prototype.ma);
  8959. f.d(q, "texture", q.sb, q.ab);
  8960. f.d(q, "descendants", q.Oza);
  8961. f.Fh.create = function(c, d) {
  8962. return new f.Fh(c, d)
  8963. };
  8964. f.Bja = f.q.extend({
  8965. gi: null,
  8966. Pi: null,
  8967. ctor: function() {
  8968. f.q.prototype.ctor.call(this);
  8969. var c = document.createElement("canvas");
  8970. c.width = c.height = 10;
  8971. this.gi = c;
  8972. this.Pi = c.getContext("2d");
  8973. var d = new f.Pa;
  8974. d.sh(c);
  8975. d.$d();
  8976. this.ab(d)
  8977. },
  8978. HSa: function() {
  8979. return this.Pi
  8980. },
  8981. GSa: function() {
  8982. return this.gi
  8983. },
  8984. sga: function(c, d) {
  8985. void 0 === d && (d = c.height, c = c.width);
  8986. var e = this.gi;
  8987. e.width = c;
  8988. e.height = d;
  8989. this.sb().$d();
  8990. this.sc(x(0, 0, c, d), !1)
  8991. }
  8992. });
  8993. f.El = f.N.extend({
  8994. pr: null,
  8995. Nh: 0,
  8996. fB: null,
  8997. ctor: function(c, d, e) {
  8998. this.pr = c || null;
  8999. this.Nh = d || 0;
  9000. this.fB = e || null
  9001. },
  9002. p: function() {
  9003. var c = new f.El;
  9004. c.pj(this.pr.p(), this.Nh, this.fB);
  9005. return c
  9006. },
  9007. PO: function() {
  9008. return f.p(this)
  9009. },
  9010. copy: function() {
  9011. var c = new f.El;
  9012. c.pj(this.pr.p(), this.Nh, this.fB);
  9013. return c
  9014. },
  9015. pj: function(c, d, e) {
  9016. this.pr = c;
  9017. this.Nh = d;
  9018. this.fB = e;
  9019. return !0
  9020. },
  9021. Ca: function() {
  9022. return this.pr
  9023. },
  9024. Dd: function(c) {
  9025. this.pr = c
  9026. },
  9027. qTa: function() {
  9028. return this.Nh
  9029. },
  9030. Y2a: function(c) {
  9031. this.Nh = c
  9032. },
  9033. GWa: function() {
  9034. return this.fB
  9035. },
  9036. Q4a: function(c) {
  9037. this.fB =
  9038. c
  9039. }
  9040. });
  9041. f.El.create = function(c, d, e) {
  9042. return new f.El(c, d, e)
  9043. };
  9044. f.Yu = f.N.extend({
  9045. Ph: null,
  9046. br: 0,
  9047. yw: !1,
  9048. C: 0,
  9049. Nh: 0,
  9050. sp: 0,
  9051. ctor: function(c, d, e) {
  9052. this.Ph = [];
  9053. if (void 0 === c) this.Fea(null, 0);
  9054. else {
  9055. var g = c[0];
  9056. g && (g instanceof f.Li ? this.Fea(c, d, e) : g instanceof f.El && this.JP(c, d, e))
  9057. }
  9058. },
  9059. $Ta: function() {
  9060. return this.Ph
  9061. },
  9062. n3a: function(c) {
  9063. this.Ph = c
  9064. },
  9065. vZ: function(c) {
  9066. var d = new f.El;
  9067. d.pj(c, 1, null);
  9068. this.Ph.push(d);
  9069. this.sp++
  9070. },
  9071. APa: function(c) {
  9072. c = f.nb.vd(c);
  9073. var d = x(0, 0, 0, 0);
  9074. d.width = c.width;
  9075. d.height = c.height;
  9076. c = f.Li.create(c, d);
  9077. this.vZ(c)
  9078. },
  9079. BPa: function(c, d) {
  9080. var e = f.Li.create(c, d);
  9081. this.vZ(e)
  9082. },
  9083. JP: function(c,
  9084. d, e) {
  9085. f.mB(c, f.El);
  9086. this.Nh = d;
  9087. this.br = void 0 === e ? 1 : e;
  9088. this.sp = 0;
  9089. d = this.Ph;
  9090. for (e = d.length = 0; e < c.length; e++) {
  9091. var g = c[e];
  9092. d.push(g);
  9093. this.sp += g.Nh
  9094. }
  9095. return !0
  9096. },
  9097. p: function() {
  9098. var c = new f.Yu;
  9099. c.JP(this.a9(), this.Nh, this.br);
  9100. c.uR(this.yw);
  9101. return c
  9102. },
  9103. PO: function() {
  9104. var c = new f.Yu;
  9105. c.JP(this.a9(), this.Nh, this.br);
  9106. c.uR(this.yw);
  9107. return c
  9108. },
  9109. a9: function() {
  9110. for (var c = [], d = 0; d < this.Ph.length; d++) c.push(this.Ph[d].p());
  9111. return c
  9112. },
  9113. copy: function() {
  9114. return this.PO(null)
  9115. },
  9116. zUa: function() {
  9117. return this.br
  9118. },
  9119. D3a: function(c) {
  9120. this.br = c
  9121. },
  9122. uR: function(c) {
  9123. this.yw =
  9124. c
  9125. },
  9126. DVa: function() {
  9127. return this.yw
  9128. },
  9129. pu: function() {
  9130. return this.sp * this.Nh
  9131. },
  9132. pTa: function() {
  9133. return this.Nh
  9134. },
  9135. X2a: function(c) {
  9136. this.Nh = c
  9137. },
  9138. tWa: function() {
  9139. return this.sp
  9140. },
  9141. Fea: function(c, d, e) {
  9142. f.mB(c, f.Li);
  9143. this.br = void 0 === e ? 1 : e;
  9144. this.Nh = d || 0;
  9145. this.sp = 0;
  9146. d = this.Ph;
  9147. d.length = 0;
  9148. if (c) {
  9149. for (e = 0; e < c.length; e++) {
  9150. var g = c[e],
  9151. h = new f.El;
  9152. h.pj(g, 1, null);
  9153. d.push(h)
  9154. }
  9155. this.sp += c.length
  9156. }
  9157. return !0
  9158. },
  9159. OQ: function() {},
  9160. wh: function() {}
  9161. });
  9162. f.Yu.create = function(c, d, e) {
  9163. return new f.Yu(c, d, e)
  9164. };
  9165. f.WG = {
  9166. $y: {},
  9167. TG: function(c, d) {
  9168. this.$y[d] = c
  9169. },
  9170. d1a: function(c) {
  9171. c && this.$y[c] && delete this.$y[c]
  9172. },
  9173. cl: function(c) {
  9174. return this.$y[c] ? this.$y[c] : null
  9175. },
  9176. bqa: function(c, d) {
  9177. var e = c.animations;
  9178. if (e) {
  9179. var g = 1,
  9180. h = c.properties;
  9181. if (h)
  9182. for (var g = null != h.format ? parseInt(h.format) : g, h = h.spritesheets, k = f.Je, m = f.path, n = 0; n < h.length; n++) k.vp(m.pB(d, h[n]));
  9183. switch (g) {
  9184. case 1:
  9185. this.Cta(e);
  9186. break;
  9187. case 2:
  9188. this.Dta(e);
  9189. break;
  9190. default:
  9191. f.log(f.l.fwa)
  9192. }
  9193. } else f.log(f.l.ewa)
  9194. },
  9195. Hva: function(c) {
  9196. f.assert(c, f.l.nwa);
  9197. var d = f.L.zd(c);
  9198. d ? this.bqa(d,
  9199. c) : f.log(f.l.mwa)
  9200. },
  9201. Cta: function(c) {
  9202. var d = f.Je,
  9203. e;
  9204. for (e in c) {
  9205. var g = c[e],
  9206. h = g.frames,
  9207. g = parseFloat(g.delay) || 0,
  9208. k = null;
  9209. if (h) {
  9210. for (var k = [], m = 0; m < h.length; m++) {
  9211. var n = d.Ca(h[m]);
  9212. if (n) {
  9213. var p = new f.El;
  9214. p.pj(n, 1, null);
  9215. k.push(p)
  9216. } else f.log(f.l.hwa, e, h[m])
  9217. }
  9218. 0 === k.length ? f.log(f.l.iwa, e) : (k.length != h.length && f.log(f.l.jwa, e), k = f.Yu.create(k, g, 1), f.WG.TG(k, e))
  9219. } else f.log(f.l.gwa, e)
  9220. }
  9221. },
  9222. Dta: function(c) {
  9223. var d = f.Je,
  9224. e;
  9225. for (e in c) {
  9226. var g = c[e],
  9227. h = parseInt(g.loops),
  9228. h = g.loop ? f.mv : isNaN(h) ? 1 : h,
  9229. k = g.restoreOriginalFrame && !0 == g.restoreOriginalFrame ?
  9230. !0 : !1,
  9231. m = g.frames;
  9232. if (m) {
  9233. for (var n = [], p = 0; p < m.length; p++) {
  9234. var s = m[p],
  9235. u = s.spriteframe,
  9236. v = d.Ca(u);
  9237. if (v) {
  9238. var u = parseFloat(s.delayUnits) || 0,
  9239. s = s.notification,
  9240. z = new f.El;
  9241. z.pj(v, u, s);
  9242. n.push(z)
  9243. } else f.log(f.l.lwa, e, u)
  9244. }
  9245. g = parseFloat(g.delayPerUnit) || 0;
  9246. m = new f.Yu;
  9247. m.JP(n, g, h);
  9248. m.uR(k);
  9249. f.WG.TG(m, e)
  9250. } else f.log(f.l.kwa, e)
  9251. }
  9252. },
  9253. Vs: function() {
  9254. this.$y = {}
  9255. }
  9256. };
  9257. f.Li = f.N.extend({
  9258. hb: null,
  9259. Jg: null,
  9260. $i: null,
  9261. lg: !1,
  9262. Ta: null,
  9263. Pk: null,
  9264. Qk: null,
  9265. fa: null,
  9266. XA: "",
  9267. Ba: !1,
  9268. XL: null,
  9269. ctor: function(c, d, e, g, h) {
  9270. this.hb = r(0, 0);
  9271. this.Pk = r(0, 0);
  9272. this.Jg = t(0, 0);
  9273. this.lg = !1;
  9274. this.Qk = t(0, 0);
  9275. this.XA = "";
  9276. this.fa = null;
  9277. this.Ba = !1;
  9278. void 0 !== c && void 0 !== d && (void 0 === e || void 0 === g || void 0 === h ? this.va(c, d) : this.va(c, d, e, g, h))
  9279. },
  9280. RC: function() {
  9281. return this.Ba
  9282. },
  9283. oe: function(c, d) {
  9284. null == this.XL && (this.XL = []);
  9285. this.XL.push({
  9286. al: c,
  9287. nj: d
  9288. })
  9289. },
  9290. jf: function() {
  9291. var c = this.XL;
  9292. if (c) {
  9293. for (var d = 0, e = c.length; d < e; d++) {
  9294. var g = c[d];
  9295. g.al.call(g.nj, this)
  9296. }
  9297. c.length = 0
  9298. }
  9299. },
  9300. bBa: function() {
  9301. var c = this.$i;
  9302. return x(c.x, c.y, c.width, c.height)
  9303. },
  9304. c4a: function(c) {
  9305. this.$i || (this.$i = x(0, 0, 0, 0));
  9306. this.$i.x = c.x;
  9307. this.$i.y = c.y;
  9308. this.$i.width = c.width;
  9309. this.$i.height = c.height;
  9310. this.Ta = f.cs(c)
  9311. },
  9312. UXa: function() {
  9313. return this.lg
  9314. },
  9315. g4a: function(c) {
  9316. this.lg = c
  9317. },
  9318. $h: function() {
  9319. var c = this.Ta;
  9320. return x(c.x, c.y, c.width, c.height)
  9321. },
  9322. Iha: function(c) {
  9323. this.Ta || (this.Ta = x(0, 0, 0, 0));
  9324. this.Ta.x = c.x;
  9325. this.Ta.y = c.y;
  9326. this.Ta.width = c.width;
  9327. this.Ta.height = c.height;
  9328. this.$i = f.FI(this.Ta)
  9329. },
  9330. RUa: function() {
  9331. return this.Pk
  9332. },
  9333. L3a: function(c) {
  9334. this.Pk.x = c.x;
  9335. this.Pk.y = c.y;
  9336. f.xX(this.Pk, this.hb)
  9337. },
  9338. WUa: function() {
  9339. return this.Qk
  9340. },
  9341. O3a: function(c) {
  9342. this.Qk.width = c.width;
  9343. this.Qk.height = c.height
  9344. },
  9345. QAa: function() {
  9346. return this.Jg
  9347. },
  9348. N3a: function(c) {
  9349. this.Jg.width = c.width;
  9350. this.Jg.height = c.height
  9351. },
  9352. sb: function() {
  9353. if (this.fa) return this.fa;
  9354. if ("" !== this.XA) {
  9355. var c = f.nb.vd(this.XA);
  9356. c && (this.Ba = c.ie);
  9357. return c
  9358. }
  9359. return null
  9360. },
  9361. ab: function(c) {
  9362. if (this.fa != c) {
  9363. var d = c.ie;
  9364. this.Ba = d;
  9365. this.fa = c;
  9366. d || c.oe(function(c) {
  9367. this.Ba = !0;
  9368. if (this.lg &&
  9369. f.K === f.fb) {
  9370. var d = c.md,
  9371. d = f.t_(d, this.$h()),
  9372. h = new f.Pa;
  9373. h.sh(d);
  9374. h.$d();
  9375. this.ab(h);
  9376. d = this.$h();
  9377. this.Iha(x(0, 0, d.width, d.height))
  9378. }
  9379. d = this.Ta;
  9380. 0 === d.width && 0 === d.height && (d = c.width, c = c.height, this.Ta.width = d, this.Ta.height = c, this.$i = f.FI(this.Ta), this.Qk.width = this.$i.width, this.Qk.height = this.$i.height, this.Jg.width = d, this.Jg.height = c);
  9381. this.jf()
  9382. }, this)
  9383. }
  9384. },
  9385. Kda: function() {
  9386. return this.hb
  9387. },
  9388. nR: function(c) {
  9389. this.hb.x = c.x;
  9390. this.hb.y = c.y
  9391. },
  9392. p: function() {
  9393. var c = new f.Li;
  9394. c.va(this.XA, this.$i, this.lg, this.Pk, this.Qk);
  9395. c.ab(this.fa);
  9396. return c
  9397. },
  9398. PO: function() {
  9399. var c = new f.Li;
  9400. c.va(this.XA, this.$i, this.lg, this.Pk, this.Qk);
  9401. c.ab(this.fa);
  9402. return c
  9403. },
  9404. copy: function() {
  9405. return this.PO()
  9406. },
  9407. va: function(c, d, e, g, h) {
  9408. 2 === arguments.length && (d = f.FI(d));
  9409. g = g || r(0, 0);
  9410. h = h || d;
  9411. e = e || !1;
  9412. "string" == typeof c ? (this.fa = null, this.XA = c) : c instanceof f.Pa && this.ab(c);
  9413. if (c = this.sb()) {
  9414. var k, m;
  9415. e ? (k = d.x + d.height, m = d.y + d.width) : (k = d.x + d.width, m = d.y + d.height);
  9416. k > c.width && f.error(f.l.HT, c.url);
  9417. m > c.height && f.error(f.l.GT, c.url)
  9418. }
  9419. this.$i = d;
  9420. this.Ta = f.cs(d);
  9421. this.Pk.x = g.x;
  9422. this.Pk.y =
  9423. g.y;
  9424. f.xX(g, this.hb);
  9425. this.Qk.width = h.width;
  9426. this.Qk.height = h.height;
  9427. f.eba(h, this.Jg);
  9428. this.lg = e;
  9429. return !0
  9430. }
  9431. });
  9432. f.Li.create = function(c, d, e, g, h) {
  9433. return new f.Li(c, d, e, g, h)
  9434. };
  9435. f.Li.aOa = function(c, d, e, g, h) {
  9436. var k = new f.Li;
  9437. k.fa = c;
  9438. k.$i = d;
  9439. k.Ta = f.cs(d);
  9440. k.Pk.x = g.x;
  9441. k.Pk.y = g.y;
  9442. f.xX(k.Pk, k.hb);
  9443. k.Qk.width = h.width;
  9444. k.Qk.height = h.height;
  9445. f.eba(k.Qk, k.Jg);
  9446. k.lg = e;
  9447. return k
  9448. };
  9449. f.Je = {
  9450. q8: /^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/,
  9451. Mpa: /^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/,
  9452. Fn: {},
  9453. qr: {},
  9454. Rz: {},
  9455. Baa: function(c) {
  9456. return (c = this.Mpa.exec(c)) ? x(parseFloat(c[1]), parseFloat(c[2]), parseFloat(c[3]), parseFloat(c[4])) : x(0, 0, 0, 0)
  9457. },
  9458. paa: function(c) {
  9459. return (c = this.q8.exec(c)) ? r(parseFloat(c[1]), parseFloat(c[2])) : r(0, 0)
  9460. },
  9461. vY: function(c) {
  9462. return (c = this.q8.exec(c)) ? t(parseFloat(c[1]), parseFloat(c[2])) :
  9463. t(0, 0)
  9464. },
  9465. Ira: function(c) {
  9466. var d = f.L.zd(c);
  9467. f.assert(d, f.l.lIa, c);
  9468. f.L.wh(c);
  9469. if (d.bA) return this.Rz[c] = d;
  9470. var e = d.frames,
  9471. g = d.metadata || d.meta,
  9472. d = {},
  9473. h = {},
  9474. k = 0;
  9475. g && (k = g.format, k = 1 >= k.length ? parseInt(k) : k, h.eCa = g.textureFileName || g.textureFileName || g.image);
  9476. for (var m in e) {
  9477. var n = e[m];
  9478. if (n) {
  9479. g = {};
  9480. if (0 == k) {
  9481. g.rect = x(n.x, n.y, n.width, n.height);
  9482. g.SQ = !1;
  9483. g.offset = r(n.offsetX, n.offsetY);
  9484. var p = n.originalWidth,
  9485. n = n.originalHeight;
  9486. p && n || f.log(f.l.kIa);
  9487. p = Math.abs(p);
  9488. n = Math.abs(n);
  9489. g.size = t(p, n)
  9490. } else if (1 == k || 2 == k) g.rect = this.Baa(n.frame),
  9491. g.SQ = n.rotated || !1, g.offset = this.paa(n.offset), g.size = this.vY(n.sourceSize);
  9492. else if (3 == k) {
  9493. var p = this.vY(n.spriteSize),
  9494. s = this.Baa(n.textureRect);
  9495. p && (s = x(s.x, s.y, p.width, p.height));
  9496. g.rect = s;
  9497. g.SQ = n.textureRotated || !1;
  9498. g.offset = this.paa(n.spriteOffset);
  9499. g.size = this.vY(n.spriteSourceSize);
  9500. g.Zva = n.aliases
  9501. } else p = n.frame, s = n.sourceSize, m = n.filename || m, g.rect = x(p.x, p.y, p.w, p.h), g.SQ = n.rotated || !1, g.offset = r(0, 0), g.size = t(s.w, s.h);
  9502. d[m] = g
  9503. }
  9504. }
  9505. return this.Rz[c] = {
  9506. bA: !0,
  9507. frames: d,
  9508. RDa: h
  9509. }
  9510. },
  9511. vp: function(c, d) {
  9512. f.assert(c,
  9513. f.l.nIa);
  9514. var e = this.Rz[c] || f.L.zd(c);
  9515. if (e && e.frames) {
  9516. var g = this.Rz[c] || this.Ira(c),
  9517. e = g.frames,
  9518. g = g.RDa;
  9519. d ? d instanceof f.Pa || ("string" == typeof d ? d = f.nb.vd(d) : f.assert(0, f.l.oIa)) : d = f.nb.vd(f.path.pB(c, g.eCa || ".png"));
  9520. var g = this.qr,
  9521. h = this.Fn,
  9522. k;
  9523. for (k in e) {
  9524. var m = e[k],
  9525. n = h[k];
  9526. if (!n) {
  9527. n = f.Li.create(d, m.rect, m.SQ, m.offset, m.size);
  9528. if (m = m.Zva)
  9529. for (var p = 0, s = m.length; p < s; p++) {
  9530. var u = m[p];
  9531. g[u] && f.log(f.l.mIa, u);
  9532. g[u] = k
  9533. }
  9534. f.K === f.fb && n.lg && n.sb().ie && (m = n.sb().md, m = f.t_(m, n.bBa()), p = new f.Pa, p.sh(m), p.$d(), n.ab(p),
  9535. m = n.Ta, n.Iha(x(0, 0, m.width, m.height)));
  9536. h[k] = n
  9537. }
  9538. }
  9539. }
  9540. },
  9541. CNa: function(c) {
  9542. c = c.frames;
  9543. for (var d in c) this.Fn[d] && f.log(f.l.jIa, d)
  9544. },
  9545. vZ: function(c, d) {
  9546. this.Fn[d] = c
  9547. },
  9548. w1a: function() {
  9549. this.Fn = {};
  9550. this.qr = {}
  9551. },
  9552. v1a: function(c) {
  9553. c && (this.qr[c] && delete this.qr[c], this.Fn[c] && delete this.Fn[c])
  9554. },
  9555. VFa: function(c) {
  9556. var d = this.Fn,
  9557. e = this.qr;
  9558. if (c = this.Rz[c]) {
  9559. c = c.frames;
  9560. for (var g in c)
  9561. if (d[g]) {
  9562. delete d[g];
  9563. for (var h in e) e[h] == g && delete e[h]
  9564. }
  9565. }
  9566. },
  9567. x1a: function(c) {
  9568. var d = this.Fn,
  9569. e = this.qr,
  9570. g;
  9571. for (g in d) {
  9572. var h = d[g];
  9573. if (h && h.sb() == c) {
  9574. delete d[g];
  9575. for (var k in e) e[k] == g && delete e[k]
  9576. }
  9577. }
  9578. },
  9579. Ca: function(c) {
  9580. var d = this.Fn[c];
  9581. if (!d) {
  9582. var e = this.qr[c];
  9583. e && ((d = this.Fn[e.toString()]) || delete this.qr[c])
  9584. }
  9585. d || f.log(f.l.pIa, c);
  9586. return d
  9587. },
  9588. Vs: function() {
  9589. this.Fn = {};
  9590. this.qr = {};
  9591. this.Rz = {}
  9592. }
  9593. };
  9594. f.tB = {
  9595. gLa: 0,
  9596. AMa: 1,
  9597. INT: 2,
  9598. UKa: 3,
  9599. eKa: 4,
  9600. MF: 0,
  9601. Zsa: 0,
  9602. OY: !1,
  9603. UN: !1,
  9604. MY: !1,
  9605. NY: !1,
  9606. PY: !1,
  9607. zOa: 0,
  9608. cX: 0,
  9609. KK: "",
  9610. MG: {},
  9611. bA: !1,
  9612. FF: function() {
  9613. var c = this.MG;
  9614. c["cocos2d.x.version"] = f.JS;
  9615. c["cocos2d.x.compiled_with_profiler"] = !1;
  9616. c["cocos2d.x.compiled_with_gl_state_cache"] = f.Zm;
  9617. this.bA = !0
  9618. },
  9619. FUa: function() {
  9620. return this.MF
  9621. },
  9622. EUa: function() {
  9623. return this.Zsa
  9624. },
  9625. GUa: function() {
  9626. return this.cX
  9627. },
  9628. f5a: function() {
  9629. return this.UN
  9630. },
  9631. g5a: function() {
  9632. return this.OY
  9633. },
  9634. e5a: function() {
  9635. return !1
  9636. },
  9637. h5a: function() {
  9638. return !1
  9639. },
  9640. b5a: function() {
  9641. return !1
  9642. },
  9643. c5a: function() {
  9644. return this.MY
  9645. },
  9646. d5a: function() {
  9647. return this.NY
  9648. },
  9649. i5a: function() {
  9650. return this.PY
  9651. },
  9652. qB: function(c) {
  9653. return -1 < this.KK.indexOf(c)
  9654. },
  9655. Uf: function(c, d) {
  9656. this.bA || this.FF();
  9657. var e = this.MG;
  9658. return e[c] ? e[c] : d
  9659. },
  9660. ue: function(c, d) {
  9661. this.MG[c] = d
  9662. },
  9663. kya: function() {
  9664. 0 === f.Zm && (f.log(""), f.log(f.l.$wa), f.log(""))
  9665. },
  9666. rza: function() {
  9667. if (f.K !== f.fb) {
  9668. this.bA || this.FF();
  9669. var c = f.s,
  9670. d = this.MG;
  9671. d["gl.vendor"] = c.getParameter(c.VENDOR);
  9672. d["gl.renderer"] = c.getParameter(c.RENDERER);
  9673. d["gl.version"] = c.getParameter(c.VERSION);
  9674. this.KK = "";
  9675. for (var e = c.getSupportedExtensions(),
  9676. g = 0; g < e.length; g++) this.KK += e[g] + " ";
  9677. this.MF = c.getParameter(c.MAX_TEXTURE_SIZE);
  9678. d["gl.max_texture_size"] = this.MF;
  9679. this.cX = c.getParameter(c.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
  9680. d["gl.max_texture_units"] = this.cX;
  9681. this.OY = this.qB("GL_IMG_texture_compression_pvrtc");
  9682. d["gl.supports_PVRTC"] = this.OY;
  9683. this.UN = !1;
  9684. d["gl.supports_NPOT"] = this.UN;
  9685. this.MY = this.qB("GL_IMG_texture_format_BGRA888");
  9686. d["gl.supports_BGRA8888"] = this.MY;
  9687. this.NY = this.qB("GL_EXT_discard_framebuffer");
  9688. d["gl.supports_discard_framebuffer"] = this.NY;
  9689. this.PY = this.qB("vertex_array_object");
  9690. d["gl.supports_vertex_array_object"] = this.PY;
  9691. f.rB()
  9692. }
  9693. },
  9694. m_a: function(c) {
  9695. this.bA || this.FF();
  9696. var d = f.L.zd(c);
  9697. if (!d) throw "Please load the resource first : " + c;
  9698. f.assert(d, f.l.bxa, c);
  9699. if (d = d.data)
  9700. for (var e in d) this.MG[e] = d[e];
  9701. else f.log(f.l.axa, c)
  9702. }
  9703. };
  9704. f.U.FS = function() {
  9705. f.WKa = f.N.extend({
  9706. L5a: function() {}
  9707. });
  9708. var c = f.ic.prototype;
  9709. c.ey = function(c) {
  9710. var e = this.Y;
  9711. this.Zha();
  9712. var g = this.vn,
  9713. h = g.ph.x / g.ka,
  9714. g = g.ph.y / g.ra;
  9715. switch (c) {
  9716. case f.ic.ena:
  9717. f.Lp(f.nq);
  9718. f.$B();
  9719. h = new f.Ma;
  9720. f.$0(h, 0, e.width, 0, e.height, -1024, 1024);
  9721. f.aC(h);
  9722. f.Lp(f.mq);
  9723. f.$B();
  9724. break;
  9725. case f.ic.K6:
  9726. var k = this.MH(),
  9727. m = new f.Ma,
  9728. n = new f.Ma;
  9729. f.Lp(f.nq);
  9730. f.$B();
  9731. f.sDa(m, e.width / e.height, 2 * k);
  9732. f.aC(m);
  9733. f.Lp(f.mq);
  9734. f.$B();
  9735. k = f.cC(null, -h + e.width / 2, -g + e.height / 2, k);
  9736. f.Sea(n, k, f.cC(null, -h + e.width / 2, -g + e.height / 2, 0),
  9737. f.cC(null, 0, 1, 0));
  9738. f.aC(n);
  9739. break;
  9740. case f.ic.fna:
  9741. break;
  9742. default:
  9743. f.log(f.l.cla)
  9744. }
  9745. this.mp = c;
  9746. f.Qa.dispatchEvent(this.YL);
  9747. f.yha()
  9748. };
  9749. c.Rga = function(c) {
  9750. var e = f.s;
  9751. c ? (e.clearDepth(1), e.enable(e.DEPTH_TEST), e.depthFunc(e.LEQUAL)) : e.disable(e.DEPTH_TEST)
  9752. };
  9753. c.B2 = function(c) {
  9754. this.Y.width = f.Sb.width;
  9755. this.Y.height = f.Sb.height;
  9756. this.vn = c || f.view;
  9757. c = f.tB;
  9758. c.rza();
  9759. c.kya();
  9760. this.Az();
  9761. this.aha();
  9762. f.Qa && f.Qa.Lb(!0)
  9763. };
  9764. c.Vs = function() {
  9765. var c = f.s;
  9766. c.clear(c.COLOR_BUFFER_BIT | c.DEPTH_BUFFER_BIT)
  9767. };
  9768. c.fV = function() {
  9769. f.Rr()
  9770. };
  9771. c.NU = function() {
  9772. f.Qr()
  9773. };
  9774. c.Az = function() {
  9775. if (!f.an) this.Wqa();
  9776. else if (null != f.ic.d$ && !1 != f.ic.d$) {
  9777. var c = new f.Pa;
  9778. c.sh(f.ic.Qz);
  9779. c.$d();
  9780. var e = f.view.tH().height / 320;
  9781. 0 === e && (e = this.Y.height / 320);
  9782. var g = new f.an;
  9783. g.iY(!0);
  9784. g.xf("00.0", c, 12, 32, ".");
  9785. g.scale = e;
  9786. this.yk = g;
  9787. g = new f.an;
  9788. g.iY(!0);
  9789. g.xf("0.000", c, 12, 32, ".");
  9790. g.scale = e;
  9791. this.zk = g;
  9792. g = new f.an;
  9793. g.iY(!0);
  9794. g.xf("000", c, 12, 32, ".");
  9795. g.scale = e;
  9796. this.Jk = g;
  9797. c = f.DS;
  9798. this.Jk.o(c.x, 34 * e + c.y);
  9799. this.zk.o(c.x, 17 * e + c.y);
  9800. this.yk.o(c)
  9801. }
  9802. };
  9803. c.Wqa = function() {
  9804. var c = 0,
  9805. c = this.Y.width > this.Y.height ? 0 | this.Y.height /
  9806. 320 * 24 : 0 | this.Y.width / 320 * 24;
  9807. this.yk = f.ia.create("000.0", "Arial", c);
  9808. this.zk = f.ia.create("0.000", "Arial", c);
  9809. this.Jk = f.ia.create("0000", "Arial", c);
  9810. c = f.DS;
  9811. this.Jk.o(this.Jk.width / 2 + c.x, 5 * this.Jk.height / 2 + c.y);
  9812. this.zk.o(this.zk.width / 2 + c.x, 3 * this.zk.height / 2 + c.y);
  9813. this.yk.o(this.yk.width / 2 + c.x, this.yk.height / 2 + c.y)
  9814. };
  9815. c.fxa = function(c) {
  9816. var e = new f.Ma;
  9817. f.y5(e);
  9818. var g = new f.Ma;
  9819. f.rDa(g, e);
  9820. var h = this.vn.tH(),
  9821. k = new f.cd;
  9822. f.bfa(k, new f.cd(2 * c.x / h.width - 1, 1 - 2 * c.y / h.height, e.c[14] / e.c[15]), g);
  9823. return r(k.x, k.y)
  9824. };
  9825. c.hxa =
  9826. function(c) {
  9827. var e = new f.Ma;
  9828. f.y5(e);
  9829. var g = new f.cd;
  9830. f.bfa(g, new f.cd(c.x, c.y, 0), e);
  9831. c = this.vn.tH();
  9832. return r(c.width * (0.5 * g.x + 0.5), c.height * (0.5 * -g.y + 0.5))
  9833. };
  9834. c.JH = function() {
  9835. return this.vn.JH()
  9836. };
  9837. c.v0 = function() {
  9838. return this.vn.v0()
  9839. };
  9840. c.MH = function() {
  9841. return this.Y.height / 1.1566
  9842. };
  9843. c.Zha = function() {
  9844. var c = this.vn;
  9845. if (c) {
  9846. var e = this.Y;
  9847. c.ZHa(-c.ph.x / c.ka, -c.ph.y / c.ra, e.width, e.height)
  9848. }
  9849. };
  9850. c.TUa = function() {
  9851. return this.vn
  9852. };
  9853. c.wVa = function() {
  9854. return this.mp
  9855. };
  9856. c.tGa = function() {
  9857. f.Fm(f.Mc, f.Lc)
  9858. };
  9859. c.aha = function() {
  9860. this.tGa();
  9861. this.Rga(!1);
  9862. this.ey(this.mp);
  9863. f.s.clearColor(0, 0, 0, 1)
  9864. }
  9865. };
  9866. f.bl = 0;
  9867. f.y5 = function(c) {
  9868. var d = new f.Ma;
  9869. f.ZP(f.nq, d);
  9870. var e = new f.Ma;
  9871. f.ZP(f.mq, e);
  9872. f.Np(c, d, e)
  9873. };
  9874. f.ic = f.N.extend({
  9875. vOa: !1,
  9876. PF: !1,
  9877. Ce: !1,
  9878. nN: !1,
  9879. Jt: !1,
  9880. EE: 0,
  9881. lX: 0,
  9882. mp: 0,
  9883. Xy: 0,
  9884. Vl: 1,
  9885. jF: !1,
  9886. $s: 0,
  9887. hW: 0,
  9888. yk: null,
  9889. zk: null,
  9890. Jk: null,
  9891. Y: null,
  9892. rt: null,
  9893. bp: null,
  9894. YM: null,
  9895. vn: null,
  9896. pp: null,
  9897. OX: null,
  9898. mg: null,
  9899. Ph: 0,
  9900. aO: 0,
  9901. bY: 0,
  9902. XNa: null,
  9903. nh: null,
  9904. Ql: null,
  9905. YL: null,
  9906. ZV: null,
  9907. aW: null,
  9908. $V: null,
  9909. ctor: function() {
  9910. var c = this;
  9911. c.rt = Date.now();
  9912. f.Qa.sZ(f.vf.vD, function() {
  9913. c.rt = Date.now()
  9914. })
  9915. },
  9916. j: function() {
  9917. this.lX = this.EE = 1 / f.Lxa;
  9918. this.pp = [];
  9919. this.mp = f.ic.gna;
  9920. this.OX = null;
  9921. this.hW = this.Xy = 0;
  9922. this.jF = !1;
  9923. this.aO = this.Ph = 0;
  9924. this.rt = Date.now();
  9925. this.nN = this.Ce = !1;
  9926. this.Y =
  9927. t(0, 0);
  9928. this.vn = null;
  9929. this.Vl = 1;
  9930. this.nh = new f.Uy;
  9931. this.Ql = f.M3 ? new f.M3 : null;
  9932. this.nh.UQ(this.Ql, f.Uy.kK, !1);
  9933. this.ZV = new f.kq(f.ic.mla);
  9934. this.ZV.setUserData(this);
  9935. this.aW = new f.kq(f.ic.ola);
  9936. this.aW.setUserData(this);
  9937. this.$V = new f.kq(f.ic.nla);
  9938. this.$V.setUserData(this);
  9939. this.YL = new f.kq(f.ic.tla);
  9940. this.YL.setUserData(this);
  9941. return !0
  9942. },
  9943. Nwa: function() {
  9944. var c = Date.now();
  9945. this.PF ? (this.$s = 0, this.PF = !1) : this.$s = (c - this.rt) / 1E3;
  9946. 0 < f.vf.kj[f.vf.Vm.iH] && 0.2 < this.$s && (this.$s = 1 / 60);
  9947. this.rt = c
  9948. },
  9949. iya: function() {
  9950. this.Nwa();
  9951. this.Ce || (this.nh.update(this.$s), f.Qa.dispatchEvent(this.$V));
  9952. this.Vs();
  9953. this.bp && this.lHa();
  9954. this.fV && this.fV();
  9955. this.mg && (this.mg.I(), f.Qa.dispatchEvent(this.aW));
  9956. this.YM && this.YM.I();
  9957. this.jF && this.Yua();
  9958. this.NU && this.NU();
  9959. f.Qa.dispatchEvent(this.ZV);
  9960. this.aO++;
  9961. this.jF && this.Aqa()
  9962. },
  9963. fV: null,
  9964. NU: null,
  9965. end: function() {
  9966. this.nN = !0
  9967. },
  9968. ZSa: function() {
  9969. return this.Vl
  9970. },
  9971. MUa: function() {
  9972. return this.YM
  9973. },
  9974. LWa: function() {
  9975. return this.Y
  9976. },
  9977. KH: function() {
  9978. return t(this.Y.width * this.Vl, this.Y.height * this.Vl)
  9979. },
  9980. pause: function() {
  9981. this.Ce ||
  9982. (this.lX = this.EE, this.Cga(0.25), this.Ce = !0)
  9983. },
  9984. s0a: function() {
  9985. f.assert(this.mg, f.l.$ka);
  9986. this.pp.pop();
  9987. var c = this.pp.length;
  9988. 0 == c ? this.end() : (this.Jt = !0, this.bp = this.pp[c - 1])
  9989. },
  9990. qFa: function() {
  9991. f.WG.Vs();
  9992. f.Je.Vs();
  9993. f.nb.Vs()
  9994. },
  9995. rFa: function() {
  9996. this.Dm().pJ();
  9997. f.Qa && f.Qa.Lb(!1);
  9998. this.mg && (this.mg.uh(), this.mg.Ra(), this.mg.De());
  9999. this.bp = this.mg = null;
  10000. this.pp.length = 0;
  10001. this.nia();
  10002. this.qFa();
  10003. f.rB()
  10004. },
  10005. tFa: function(c) {
  10006. f.assert(c, f.l.Z4);
  10007. this.Jt = !1;
  10008. this.pp.push(c);
  10009. this.bp = c
  10010. },
  10011. f2: function(c) {
  10012. f.assert(c, f.l.Z4);
  10013. if (this.mg) {
  10014. var d =
  10015. this.pp.length;
  10016. 0 === d ? (this.Jt = !0, this.pp[d] = c) : (this.Jt = !0, this.pp[d - 1] = c);
  10017. this.bp = c
  10018. } else this.tFa(c), this.kia()
  10019. },
  10020. lk: function() {
  10021. this.Ce && (this.Cga(this.lX), (this.rt = Date.now()) || f.log(f.l.bla), this.Ce = !1, this.$s = 0)
  10022. },
  10023. P2a: function(c) {
  10024. c != this.Vl && (this.Vl = c, this.Az())
  10025. },
  10026. W2a: function() {},
  10027. H3a: function(c) {
  10028. this.PF = c
  10029. },
  10030. lHa: function() {
  10031. var c = !1,
  10032. d = !1;
  10033. f.xb && (c = this.mg ? this.mg instanceof f.xb : !1, d = this.bp ? this.bp instanceof f.xb : !1);
  10034. if (!d) {
  10035. if (d = this.mg) d.uh(), d.Ra();
  10036. this.Jt && d && d.De()
  10037. }
  10038. this.mg = this.bp;
  10039. this.bp = null;
  10040. c || null == this.mg || (this.mg.ba(), this.mg.sj())
  10041. },
  10042. J3a: function(c) {
  10043. this.YM = c
  10044. },
  10045. NB: function() {
  10046. return this.OX
  10047. },
  10048. $p: function(c) {
  10049. this.OX = c
  10050. },
  10051. Yua: function() {
  10052. this.Ph++;
  10053. this.Xy += this.$s;
  10054. this.yk && this.zk && this.Jk ? (this.Xy > f.Xka && (this.zk.string = this.bY.toFixed(3), this.hW = this.Ph / this.Xy, this.Xy = this.Ph = 0, this.yk.string = this.hW.toFixed(1), this.Jk.string = (0 | f.bl).toString()), this.yk.I(), this.zk.I(), this.Jk.I()) : this.Az();
  10055. f.bl = 0
  10056. },
  10057. VXa: function() {
  10058. return this.Jt
  10059. },
  10060. HVa: function() {
  10061. return this.mg
  10062. },
  10063. cSa: function() {
  10064. return this.EE
  10065. },
  10066. AXa: function() {
  10067. return this.jF
  10068. },
  10069. OGa: function(c) {
  10070. this.jF = c
  10071. },
  10072. MVa: function() {
  10073. return this.bY
  10074. },
  10075. LXa: function() {
  10076. return this.PF
  10077. },
  10078. QXa: function() {
  10079. return this.Ce
  10080. },
  10081. uWa: function() {
  10082. return this.aO
  10083. },
  10084. t0a: function() {
  10085. this.fFa(1)
  10086. },
  10087. fFa: function(c) {
  10088. f.assert(this.mg, f.l.ala);
  10089. var d = this.pp,
  10090. e = d.length;
  10091. if (0 == e) this.end();
  10092. else if (!(c > e)) {
  10093. for (; e > c;) {
  10094. var g = d.pop();
  10095. g.running && (g.uh(), g.Ra());
  10096. g.De();
  10097. e--
  10098. }
  10099. this.bp = d[d.length - 1];
  10100. this.Jt = !1
  10101. }
  10102. },
  10103. Dm: function() {
  10104. return this.nh
  10105. },
  10106. Mha: function(c) {
  10107. this.nh != c && (this.nh = c)
  10108. },
  10109. IB: function() {
  10110. return this.Ql
  10111. },
  10112. zga: function(c) {
  10113. this.Ql != c && (this.Ql = c)
  10114. },
  10115. rTa: function() {
  10116. return this.$s
  10117. },
  10118. Az: null,
  10119. Aqa: function() {
  10120. this.bY = (Date.now() - this.rt) / 1E3
  10121. }
  10122. });
  10123. f.ic.tla = "director_projection_changed";
  10124. f.ic.mla = "director_after_draw";
  10125. f.ic.ola = "director_after_visit";
  10126. f.ic.nla = "director_after_update";
  10127. f.dla = f.ic.extend({
  10128. SP: !1,
  10129. kia: function() {
  10130. this.PF = !0;
  10131. this.SP = !1
  10132. },
  10133. lfa: function() {
  10134. this.nN ? (this.nN = !1, this.rFa()) : this.SP || this.iya()
  10135. },
  10136. nia: function() {
  10137. this.SP = !0
  10138. },
  10139. Cga: function(c) {
  10140. this.EE = c;
  10141. this.SP || (this.nia(), this.kia())
  10142. }
  10143. });
  10144. f.ic.d3 = null;
  10145. f.ic.eda = !0;
  10146. f.ic.rW = function() {
  10147. f.ic.eda && (f.ic.eda = !1, f.ic.d3 = new f.dla, f.ic.d3.j());
  10148. return f.ic.d3
  10149. };
  10150. f.Lxa = 60;
  10151. f.ic.ena = 0;
  10152. f.ic.K6 = 1;
  10153. f.ic.fna = 3;
  10154. f.ic.gna = f.ic.K6;
  10155. f.K === f.fb ? (q = f.ic.prototype, q.ey = function(c) {
  10156. this.mp = c;
  10157. f.Qa.dispatchEvent(this.YL)
  10158. }, q.Rga = function() {}, q.B2 = function(c) {
  10159. this.Y.width = f.Sb.width;
  10160. this.Y.height = f.Sb.height;
  10161. this.vn = c || f.view;
  10162. f.Qa && f.Qa.Lb(!0)
  10163. }, q.Vs = function() {
  10164. var c = this.vn.ph;
  10165. f.s.clearRect(-c.x, c.y, c.width, -c.height)
  10166. }, q.Az = function() {
  10167. var c = 0,
  10168. c = this.Y.width > this.Y.height ? 0 | this.Y.height / 320 * 24 : 0 | this.Y.width / 320 * 24;
  10169. this.yk = f.ia.create("000.0", "Arial", c);
  10170. this.zk = f.ia.create("0.000", "Arial", c);
  10171. this.Jk = f.ia.create("0000", "Arial", c);
  10172. c = f.DS;
  10173. this.Jk.o(this.Jk.width / 2 + c.x, 5 * this.Jk.height / 2 + c.y);
  10174. this.zk.o(this.zk.width / 2 + c.x, 3 * this.zk.height / 2 + c.y);
  10175. this.yk.o(this.yk.width / 2 + c.x, this.yk.height / 2 + c.y)
  10176. }, q.JH = function() {
  10177. return this.Y
  10178. }, q.v0 = function() {
  10179. return r(0, 0)
  10180. }) : (f.ic.Qz = new Image, f.ub(f.ic.Qz, "load", function() {
  10181. f.ic.d$ = !0
  10182. }), f.Qz && (f.ic.Qz.src = f.Qz), f.assert("function" === typeof f.U.FS, f.l.Hf, "CCDirectorWebGL.js"), f.U.FS(), delete f.U.FS);
  10183. f.rD = f.N.extend({
  10184. mF: null,
  10185. nF: null,
  10186. oF: null,
  10187. tz: null,
  10188. uz: null,
  10189. vz: null,
  10190. IG: null,
  10191. JG: null,
  10192. KG: null,
  10193. Ec: null,
  10194. JM: null,
  10195. ctor: function() {
  10196. this.JM = new f.Ma;
  10197. this.restore()
  10198. },
  10199. description: function() {
  10200. return "\x3cCCCamera | center \x3d(" + this.tz + "," + this.uz + "," + this.vz + ")\x3e"
  10201. },
  10202. Sga: function(c) {
  10203. this.Ec = c
  10204. },
  10205. R0: function() {
  10206. return this.Ec
  10207. },
  10208. restore: function() {
  10209. this.mF = this.nF = 0;
  10210. this.oF = f.rD.MH();
  10211. this.IG = this.tz = this.uz = this.vz = 0;
  10212. this.JG = 1;
  10213. this.KG = 0;
  10214. f.Ex(this.JM);
  10215. this.Ec = !1
  10216. },
  10217. gI: function() {
  10218. if (this.Ec) {
  10219. var c = new f.cd,
  10220. d = new f.cd,
  10221. e = new f.cd;
  10222. f.cC(c, this.mF, this.nF, this.oF);
  10223. f.cC(d, this.tz, this.uz, this.vz);
  10224. f.cC(e, this.IG, this.JG, this.KG);
  10225. f.Sea(this.JM, c, d, e);
  10226. this.Ec = !1
  10227. }
  10228. f.aC(this.JM)
  10229. },
  10230. c3a: function(c, d, e) {
  10231. this.Zga(c, d, e)
  10232. },
  10233. Zga: function(c, d, e) {
  10234. this.mF = c;
  10235. this.nF = d;
  10236. this.oF = e;
  10237. this.Ec = !0
  10238. },
  10239. H2a: function(c, d, e) {
  10240. this.EGa(c, d, e)
  10241. },
  10242. EGa: function(c, d, e) {
  10243. this.tz = c;
  10244. this.uz = d;
  10245. this.vz = e;
  10246. this.Ec = !0
  10247. },
  10248. P4a: function(c, d, e) {
  10249. this.VHa(c, d, e)
  10250. },
  10251. VHa: function(c, d, e) {
  10252. this.IG = c;
  10253. this.JG = d;
  10254. this.KG = e;
  10255. this.Ec = !0
  10256. },
  10257. RTa: function() {
  10258. return {
  10259. x: this.mF,
  10260. y: this.nF,
  10261. z: this.oF
  10262. }
  10263. },
  10264. Bda: function() {
  10265. return {
  10266. x: this.mF,
  10267. y: this.nF,
  10268. z: this.oF
  10269. }
  10270. },
  10271. QSa: function() {
  10272. return {
  10273. x: this.tz,
  10274. y: this.uz,
  10275. z: this.vz
  10276. }
  10277. },
  10278. rda: function() {
  10279. return {
  10280. x: this.tz,
  10281. y: this.uz,
  10282. z: this.vz
  10283. }
  10284. },
  10285. FWa: function() {
  10286. return {
  10287. x: this.IG,
  10288. y: this.JG,
  10289. z: this.KG
  10290. }
  10291. },
  10292. IBa: function() {
  10293. return {
  10294. x: this.IG,
  10295. y: this.JG,
  10296. z: this.KG
  10297. }
  10298. },
  10299. pNa: function() {}
  10300. });
  10301. f.rD.MH = function() {
  10302. return f.aK
  10303. };
  10304. f.mMa = f.kK + 1;
  10305. f.mB = function(c, d) {
  10306. if (c && 0 < c.length)
  10307. for (var e = 0; e < c.length; e++)
  10308. if (!(c[e] instanceof d)) return f.log(f.l.mB), !1;
  10309. return !0
  10310. };
  10311. f.Ld = function(c, d) {
  10312. for (var e = 0, g = c.length; e < g; e++)
  10313. if (c[e] == d) {
  10314. c.splice(e, 1);
  10315. break
  10316. }
  10317. };
  10318. f.OPa = function(c, d) {
  10319. for (var e = 0, g = d.length; e < g; e++) f.Ld(c, d[e])
  10320. };
  10321. f.NPa = function(c, d, e) {
  10322. c.splice.apply(c, [e, 0].concat(d));
  10323. return c
  10324. };
  10325. f.Z5 = function(c, d, e) {
  10326. this.next = null;
  10327. this.target = c;
  10328. this.oFa = d;
  10329. this.paused = e;
  10330. this.nQ = !1
  10331. };
  10332. f.E5 = function(c, d, e) {
  10333. this.list = c;
  10334. this.tx = d;
  10335. this.target = e;
  10336. this.DP = null
  10337. };
  10338. f.Pla = function(c, d) {
  10339. this.eq = null;
  10340. this.target = c;
  10341. this.SC = 0;
  10342. this.hH = this.gH = null;
  10343. this.paused = d;
  10344. this.DP = null
  10345. };
  10346. f.B7 = f.N.extend({
  10347. pt: 0,
  10348. bg: null,
  10349. ad: null,
  10350. Fc: 0,
  10351. Raa: !1,
  10352. rO: !1,
  10353. ZA: 0,
  10354. SX: 0,
  10355. DL: 0,
  10356. jUa: function() {
  10357. return this.pt
  10358. },
  10359. setInterval: function(c) {
  10360. this.pt = c
  10361. },
  10362. JSa: function() {
  10363. return this.bg
  10364. },
  10365. ctor: function(c, d, e, g, h) {
  10366. this.ad = c;
  10367. this.bg = d;
  10368. this.Fc = -1;
  10369. this.pt = e || 0;
  10370. this.DL = h || 0;
  10371. this.rO = 0 < this.DL;
  10372. this.SX = null == g ? f.mv : g;
  10373. this.Raa = this.SX == f.mv
  10374. },
  10375. SV: function() {
  10376. if ("string" == typeof this.bg) this.ad[this.bg](this.Fc);
  10377. else this.bg.call(this.ad, this.Fc)
  10378. },
  10379. update: function(c) {
  10380. if (-1 == this.Fc) this.ZA = this.Fc = 0;
  10381. else {
  10382. var d = this.ad,
  10383. e = this.bg;
  10384. this.Fc +=
  10385. c;
  10386. this.Raa && !this.rO ? this.Fc >= this.pt && (d && e && this.SV(), this.Fc = 0) : (this.rO ? this.Fc >= this.DL && (d && e && this.SV(), this.Fc -= this.DL, this.ZA += 1, this.rO = !1) : this.Fc >= this.pt && (d && e && this.SV(), this.Fc = 0, this.ZA += 1), this.ZA > this.SX && f.Q.Dm().A3(d, e))
  10387. }
  10388. }
  10389. });
  10390. f.Uy = f.N.extend({
  10391. Wt: 1,
  10392. Tw: null,
  10393. Wq: null,
  10394. UK: null,
  10395. Vq: null,
  10396. wNa: null,
  10397. eh: null,
  10398. So: !1,
  10399. kO: !1,
  10400. ctor: function() {
  10401. this.Wt = 1;
  10402. this.Tw = [
  10403. [],
  10404. [],
  10405. []
  10406. ];
  10407. this.Wq = {};
  10408. this.UK = [];
  10409. this.Vq = {};
  10410. this.FE = [];
  10411. this.eh = null;
  10412. this.kO = this.So = !1
  10413. },
  10414. RX: function(c) {
  10415. delete this.Vq[c.target.yb];
  10416. f.Ld(this.FE, c);
  10417. c.B7 = null;
  10418. c.target = null
  10419. },
  10420. Haa: function(c) {
  10421. if (c = this.Wq[c.target.yb]) f.Ld(c.list, c.tx), delete this.Wq[c.target.yb], f.Ld(this.UK, c), c.tx = null, c.target = null
  10422. },
  10423. taa: function(c, d, e, g) {
  10424. g = new f.Z5(d, e, g);
  10425. if (c) {
  10426. for (var h = c.length - 1, k = 0; k <= h && !(e < c[k].oFa); k++);
  10427. c.splice(k, 0, g)
  10428. } else c = [], c.push(g);
  10429. e = new f.E5(c, g, d);
  10430. this.UK.push(e);
  10431. this.Wq[d.yb] = e;
  10432. return c
  10433. },
  10434. iqa: function(c, d, e) {
  10435. e = new f.Z5(d, 0, e);
  10436. c.push(e);
  10437. c = new f.E5(c, e, d);
  10438. this.UK.push(c);
  10439. this.Wq[d.yb] = c
  10440. },
  10441. RHa: function(c) {
  10442. this.Wt = c
  10443. },
  10444. pWa: function() {
  10445. return this.Wt
  10446. },
  10447. update: function(c) {
  10448. var d = this.Tw,
  10449. e = this.FE,
  10450. g, h, k;
  10451. this.kO = !0;
  10452. 1 != this.Wt && (c *= this.Wt);
  10453. h = 0;
  10454. for (k = d.length; h < k && 0 <= h; h++)
  10455. for (var m = this.Tw[h], n = 0, p = m.length; n < p; n++) g = m[n], g.paused || g.nQ || g.target.update(c);
  10456. h = 0;
  10457. for (k = e.length; h < k; h++) {
  10458. g = e[h];
  10459. if (!g) break;
  10460. this.eh = g;
  10461. this.So = !1;
  10462. if (!g.paused)
  10463. for (g.SC = 0; g.SC < g.eq.length; g.SC++) g.gH = g.eq[g.SC], g.hH = !1, g.gH.update(c), g.gH = null;
  10464. this.So && 0 == g.eq.length && (this.RX(g), h--)
  10465. }
  10466. h = 0;
  10467. for (k = d.length; h < k; h++)
  10468. for (m = this.Tw[h], n = 0, p = m.length; n < p;) {
  10469. g = m[n];
  10470. if (!g) break;
  10471. g.nQ ? this.Haa(g) : n++
  10472. }
  10473. this.kO = !1;
  10474. this.eh = null
  10475. },
  10476. g2: function(c, d, e, g, h, k) {
  10477. f.assert(d, f.l.Wna);
  10478. f.assert(c, f.l.Xna);
  10479. e = e || 0;
  10480. g = null == g ? f.mv : g;
  10481. h = h || 0;
  10482. k = k || !1;
  10483. var m = this.Vq[c.yb];
  10484. m || (m = new f.Pla(c, k), this.FE.push(m), this.Vq[c.yb] = m);
  10485. if (null == m.eq) m.eq = [];
  10486. else
  10487. for (var n =
  10488. 0; n < m.eq.length; n++)
  10489. if (k = m.eq[n], d == k.bg) {
  10490. f.log(f.l.Vna, k.pt.toFixed(4), e.toFixed(4));
  10491. k.pt = e;
  10492. return
  10493. }
  10494. k = new f.B7(c, d, e, g, h);
  10495. m.eq.push(k)
  10496. },
  10497. UQ: function(c, d, e) {
  10498. if (null !== c) {
  10499. var g = this.Tw,
  10500. h = this.Wq[c.yb];
  10501. h ? h.tx.nQ = !1 : 0 == d ? this.iqa(g[1], c, e) : 0 > d ? g[0] = this.taa(g[0], c, d, e) : g[2] = this.taa(g[2], c, d, e)
  10502. }
  10503. },
  10504. A3: function(c, d) {
  10505. if (null != c && null != d) {
  10506. var e = this.Vq[c.yb];
  10507. if (e)
  10508. for (var g = e.eq, h = 0, k = g.length; h < k; h++) {
  10509. var m = g[h];
  10510. if (d == m.bg) {
  10511. m != e.gH || e.hH || (e.hH = !0);
  10512. g.splice(h, 1);
  10513. e.SC >= h && e.SC--;
  10514. 0 == g.length && (this.eh == e ? this.So = !0 : this.RX(e));
  10515. break
  10516. }
  10517. }
  10518. }
  10519. },
  10520. qJ: function(c) {
  10521. null != c && (c = this.Wq[c.yb], null != c && (this.kO ? c.tx.nQ = !0 : this.Haa(c.tx)))
  10522. },
  10523. Bia: function(c) {
  10524. if (null != c) {
  10525. var d = this.Vq[c.yb];
  10526. if (d) {
  10527. var e = d.eq;
  10528. !d.hH && 0 <= e.indexOf(d.gH) && (d.hH = !0);
  10529. e.length = 0;
  10530. this.eh == d ? this.So = !0 : this.RX(d)
  10531. }
  10532. this.qJ(c)
  10533. }
  10534. },
  10535. pJ: function() {
  10536. this.QIa(f.Uy.kK)
  10537. },
  10538. QIa: function(c) {
  10539. for (var d = this.FE, e = this.Tw, g = 0, h = d.length; g < h; g++) this.Bia(d[g].target);
  10540. for (g = 2; 0 <= g; g--)
  10541. if (!(1 == g && 0 < c || 0 == g && 0 <= c))
  10542. for (var d = e[g], h = 0, k = d.length; h < k; h++) this.qJ(d[h].target)
  10543. },
  10544. i0a: function() {
  10545. return this.XEa(f.Uy.kK)
  10546. },
  10547. XEa: function() {
  10548. for (var c = [], d, e = this.FE, g = this.Tw, h = 0, k = e.length; h < k; h++)
  10549. if (d = e[h]) d.paused = !0, c.push(d.target);
  10550. h = 0;
  10551. for (k = g.length; h < k; h++)
  10552. for (var e = g[h], m = 0, n = e.length; m < n; m++)
  10553. if (d = e[m]) d.paused = !0, c.push(d.target);
  10554. return c
  10555. },
  10556. cGa: function(c) {
  10557. if (c)
  10558. for (var d = 0; d < c.length; d++) this.Km(c[d])
  10559. },
  10560. as: function(c) {
  10561. f.assert(c, f.l.Tna);
  10562. var d = this.Vq[c.yb];
  10563. d && (d.paused = !0);
  10564. (c = this.Wq[c.yb]) && (c.tx.paused = !0)
  10565. },
  10566. Km: function(c) {
  10567. f.assert(c, f.l.Una);
  10568. var d = this.Vq[c.yb];
  10569. d && (d.paused = !1);
  10570. (c = this.Wq[c.yb]) && (c.tx.paused = !1)
  10571. },
  10572. YXa: function(c) {
  10573. f.assert(c, f.l.Sna);
  10574. return (c = this.Vq[c.yb]) ? c.paused : !1
  10575. }
  10576. });
  10577. f.Uy.kK = -2147483648;
  10578. f.v6 = 2 * Math.PI;
  10579. f.a5 = f.N.extend({
  10580. jV: [],
  10581. s: null,
  10582. ctor: function(c) {
  10583. this.s = c
  10584. },
  10585. C_: function(c, d) {
  10586. d || (d = 1);
  10587. var e = f.view.ka,
  10588. g = r(c.x * e, c.y * f.view.ra);
  10589. this.s.beginPath();
  10590. this.s.arc(g.x, -g.y, d * e, 0, 2 * Math.PI, !1);
  10591. this.s.closePath();
  10592. this.s.fill()
  10593. },
  10594. gya: function(c, d, e) {
  10595. if (null != c) {
  10596. e || (e = 1);
  10597. d = this.s;
  10598. var g = f.view.ka,
  10599. h = f.view.ra;
  10600. d.beginPath();
  10601. for (var k = 0, m = c.length; k < m; k++) d.arc(c[k].x * g, -c[k].y * h, e * g, 0, 2 * Math.PI, !1);
  10602. d.closePath();
  10603. d.fill()
  10604. }
  10605. },
  10606. Sn: function(c, d) {
  10607. var e = this.s,
  10608. g = f.view.ka,
  10609. h = f.view.ra;
  10610. e.beginPath();
  10611. e.moveTo(c.x * g, -c.y * h);
  10612. e.lineTo(d.x * g, -d.y * h);
  10613. e.closePath();
  10614. e.stroke()
  10615. },
  10616. E_: function(c, d) {
  10617. this.Sn(r(c.x, c.y), r(d.x, c.y));
  10618. this.Sn(r(d.x, c.y), r(d.x, d.y));
  10619. this.Sn(r(d.x, d.y), r(c.x, d.y));
  10620. this.Sn(r(c.x, d.y), r(c.x, c.y))
  10621. },
  10622. H_: function(c, d, e) {
  10623. this.G_([c, r(d.x, c.y), d, r(c.x, d.y)], 4, e)
  10624. },
  10625. Sf: function(c, d, e, g) {
  10626. g = g || !1;
  10627. if (null != c) {
  10628. if (3 > c.length) throw Error("Polygon's point must greater than 2");
  10629. var h = c[0];
  10630. d = this.s;
  10631. var k = f.view.ka,
  10632. m = f.view.ra;
  10633. d.beginPath();
  10634. d.moveTo(h.x * k, -h.y * m);
  10635. for (var h = 1, n = c.length; h < n; h++) d.lineTo(c[h].x * k, -c[h].y * m);
  10636. e && d.closePath();
  10637. g ? d.fill() : d.stroke()
  10638. }
  10639. },
  10640. G_: function(c, d, e) {
  10641. this.wj(e.r, e.g, e.b, e.a);
  10642. this.Sf(c, d, !0, !0)
  10643. },
  10644. y_: function(c, d, e, g, h) {
  10645. h = h || !1;
  10646. g = this.s;
  10647. var k = f.view.ka,
  10648. m = f.view.ra;
  10649. g.beginPath();
  10650. g.arc(0 | c.x * k, 0 | -(c.y * m), d * k, -e, -(e - 2 * Math.PI), !1);
  10651. h && g.lineTo(0 | c.x * k, 0 | -(c.y * m));
  10652. g.stroke()
  10653. },
  10654. D_: function(c, d, e, g) {
  10655. for (var h = this.jV, k = h.length = 0, m = 0; m < g; m++) h.push(r(Math.pow(1 - k, 2) * c.x + 2 * (1 - k) * k * d.x + k * k * e.x, Math.pow(1 - k, 2) * c.y + 2 * (1 - k) * k * d.y + k * k * e.y)), k += 1 / g;
  10656. h.push(r(e.x, e.y));
  10657. this.Sf(h, g + 1, !1, !1)
  10658. },
  10659. z_: function(c,
  10660. d, e, g, h) {
  10661. for (var k = this.jV, m = k.length = 0, n = 0; n < h; n++) k.push(r(Math.pow(1 - m, 3) * c.x + 3 * Math.pow(1 - m, 2) * m * d.x + 3 * (1 - m) * m * m * e.x + m * m * m * g.x, Math.pow(1 - m, 3) * c.y + 3 * Math.pow(1 - m, 2) * m * d.y + 3 * (1 - m) * m * m * e.y + m * m * m * g.y)), m += 1 / h;
  10662. k.push(r(g.x, g.y));
  10663. this.Sf(k, h + 1, !1, !1)
  10664. },
  10665. x_: function(c, d) {
  10666. this.px(c, 0.5, d)
  10667. },
  10668. px: function(c, d, e) {
  10669. f.s.strokeStyle = "rgba(255,255,255,1)";
  10670. var g = this.jV;
  10671. g.length = 0;
  10672. for (var h, k, m = 1 / c.length, n = 0; n < e + 1; n++) k = n / e, 1 == k ? (h = c.length - 1, k = 1) : (h = 0 | k / m, k = (k - m * h) / m), h = f.Mka(f.tg(c, h - 1), f.tg(c, h - 0), f.tg(c, h + 1),
  10673. f.tg(c, h + 2), d, k), g.push(h);
  10674. this.Sf(g, e + 1, !1, !1)
  10675. },
  10676. drawImage: function(c, d, e, g, h) {
  10677. switch (arguments.length) {
  10678. case 2:
  10679. this.s.drawImage(c, d.x, -(d.y + c.height));
  10680. break;
  10681. case 3:
  10682. this.s.drawImage(c, d.x, -(d.y + e.height), e.width, e.height);
  10683. break;
  10684. case 5:
  10685. this.s.drawImage(c, d.x, d.y, e.width, e.height, g.x, -(g.y + h.height), h.width, h.height);
  10686. break;
  10687. default:
  10688. throw Error("Argument must be non-nil");
  10689. }
  10690. },
  10691. jya: function(c, d, e) {
  10692. c = c || this.s;
  10693. d *= f.view.ka;
  10694. e = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b);
  10695. c.fillStyle = e + ",1)";
  10696. var g = d / 10;
  10697. c.beginPath();
  10698. c.moveTo(-d, d);
  10699. c.lineTo(0, g);
  10700. c.lineTo(d, d);
  10701. c.lineTo(g, 0);
  10702. c.lineTo(d, -d);
  10703. c.lineTo(0, -g);
  10704. c.lineTo(-d, -d);
  10705. c.lineTo(-g, 0);
  10706. c.lineTo(-d, d);
  10707. c.closePath();
  10708. c.fill();
  10709. var h = c.createRadialGradient(0, 0, g, 0, 0, d);
  10710. h.addColorStop(0, e + ", 1)");
  10711. h.addColorStop(0.3, e + ", 0.8)");
  10712. h.addColorStop(1, e + ", 0.0)");
  10713. c.fillStyle = h;
  10714. c.beginPath();
  10715. c.arc(0, 0, d - g, 0, f.v6, !1);
  10716. c.closePath();
  10717. c.fill()
  10718. },
  10719. dya: function(c, d, e) {
  10720. c = c || this.s;
  10721. d *= f.view.ka;
  10722. e = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b);
  10723. var g = c.createRadialGradient(0, 0, d / 10, 0, 0, d);
  10724. g.addColorStop(0,
  10725. e + ", 1)");
  10726. g.addColorStop(0.3, e + ", 0.8)");
  10727. g.addColorStop(0.6, e + ", 0.4)");
  10728. g.addColorStop(1, e + ", 0.0)");
  10729. c.fillStyle = g;
  10730. c.beginPath();
  10731. c.arc(0, 0, d, 0, f.v6, !1);
  10732. c.closePath();
  10733. c.fill()
  10734. },
  10735. fillText: function(c, d, e) {
  10736. this.s.fillText(c, d, -e)
  10737. },
  10738. wj: function(c, d, e, g) {
  10739. this.s.fillStyle = "rgba(" + c + "," + d + "," + e + "," + g / 255 + ")";
  10740. this.s.strokeStyle = "rgba(" + c + "," + d + "," + e + "," + g / 255 + ")"
  10741. },
  10742. C2: function() {},
  10743. Ju: function(c) {
  10744. this.s.lineWidth = c * f.view.ka
  10745. }
  10746. });
  10747. f.gla = f.N.extend({
  10748. s: null,
  10749. GF: !1,
  10750. Ze: null,
  10751. Qo: -1,
  10752. Kj: null,
  10753. zX: -1,
  10754. yX: -1,
  10755. ctor: function(c) {
  10756. null == c && (c = f.s);
  10757. if (!c instanceof WebGLRenderingContext) throw "Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext";
  10758. this.s = c;
  10759. this.Kj = new Float32Array([1, 1, 1, 1])
  10760. },
  10761. Sr: function() {
  10762. this.GF || (this.Ze = f.xg.be(f.KT), this.Qo = this.s.getUniformLocation(this.Ze.Bx(), "u_color"), this.zX = this.s.getUniformLocation(this.Ze.Bx(), "u_pointSize"), this.GF = !0)
  10763. },
  10764. eRa: function() {
  10765. this.GF = !1
  10766. },
  10767. C_: function(c) {
  10768. this.Sr();
  10769. var d =
  10770. this.s;
  10771. this.Ze.Ff();
  10772. this.Ze.zj();
  10773. f.wf(f.Gh);
  10774. d.uniform4fv(this.Qo, this.Kj);
  10775. this.Ze.bJ(this.zX, this.yX);
  10776. var e = d.createBuffer();
  10777. d.bindBuffer(d.ARRAY_BUFFER, e);
  10778. d.bufferData(d.ARRAY_BUFFER, new Float32Array([c.x, c.y]), d.STATIC_DRAW);
  10779. d.vertexAttribPointer(f.Oc, 2, d.FLOAT, !1, 0, 0);
  10780. d.drawArrays(d.POINTS, 0, 1);
  10781. d.deleteBuffer(e);
  10782. f.el()
  10783. },
  10784. gya: function(c) {
  10785. if (c && 0 != c.length) {
  10786. this.Sr();
  10787. var d = this.s;
  10788. this.Ze.Ff();
  10789. this.Ze.zj();
  10790. f.wf(f.Gh);
  10791. d.uniform4fv(this.Qo, this.Kj);
  10792. this.Ze.bJ(this.zX, this.yX);
  10793. var e = d.createBuffer();
  10794. d.bindBuffer(d.ARRAY_BUFFER, e);
  10795. d.bufferData(d.ARRAY_BUFFER, this.kN(c), d.STATIC_DRAW);
  10796. d.vertexAttribPointer(f.Oc, 2, d.FLOAT, !1, 0, 0);
  10797. d.drawArrays(d.POINTS, 0, c.length);
  10798. d.deleteBuffer(e);
  10799. f.el()
  10800. }
  10801. },
  10802. kN: function(c) {
  10803. for (var d = new Float32Array(2 * c.length), e = 0; e < c.length; e++) d[2 * e] = c[e].x, d[2 * e + 1] = c[e].y;
  10804. return d
  10805. },
  10806. Sn: function(c, d) {
  10807. this.Sr();
  10808. var e = this.s;
  10809. this.Ze.Ff();
  10810. this.Ze.zj();
  10811. f.wf(f.Gh);
  10812. e.uniform4fv(this.Qo, this.Kj);
  10813. var g = e.createBuffer();
  10814. e.bindBuffer(e.ARRAY_BUFFER, g);
  10815. e.bufferData(e.ARRAY_BUFFER, this.kN([c,
  10816. d
  10817. ]), e.STATIC_DRAW);
  10818. e.vertexAttribPointer(f.Oc, 2, e.FLOAT, !1, 0, 0);
  10819. e.drawArrays(e.LINES, 0, 2);
  10820. e.deleteBuffer(g);
  10821. f.el()
  10822. },
  10823. E_: function(c, d) {
  10824. this.Sn(r(c.x, c.y), r(d.x, c.y));
  10825. this.Sn(r(d.x, c.y), r(d.x, d.y));
  10826. this.Sn(r(d.x, d.y), r(c.x, d.y));
  10827. this.Sn(r(c.x, d.y), r(c.x, c.y))
  10828. },
  10829. H_: function(c, d, e) {
  10830. this.G_([c, r(d.x, c.y), d, r(c.x, d.y)], 4, e)
  10831. },
  10832. Sf: function(c, d, e) {
  10833. this.Sr();
  10834. d = this.s;
  10835. this.Ze.Ff();
  10836. this.Ze.zj();
  10837. f.wf(f.Gh);
  10838. d.uniform4fv(this.Qo, this.Kj);
  10839. var g = d.createBuffer();
  10840. d.bindBuffer(d.ARRAY_BUFFER, g);
  10841. d.bufferData(d.ARRAY_BUFFER,
  10842. this.kN(c), d.STATIC_DRAW);
  10843. d.vertexAttribPointer(f.Oc, 2, d.FLOAT, !1, 0, 0);
  10844. e ? d.drawArrays(d.LINE_LOOP, 0, c.length) : d.drawArrays(d.LINE_STRIP, 0, c.length);
  10845. d.deleteBuffer(g);
  10846. f.el()
  10847. },
  10848. G_: function(c, d, e) {
  10849. this.Sr();
  10850. e && this.wj(e.r, e.g, e.b, e.a);
  10851. d = this.s;
  10852. this.Ze.Ff();
  10853. this.Ze.zj();
  10854. f.wf(f.Gh);
  10855. d.uniform4fv(this.Qo, this.Kj);
  10856. e = d.createBuffer();
  10857. d.bindBuffer(d.ARRAY_BUFFER, e);
  10858. d.bufferData(d.ARRAY_BUFFER, this.kN(c), d.STATIC_DRAW);
  10859. d.vertexAttribPointer(f.Oc, 2, d.FLOAT, !1, 0, 0);
  10860. d.drawArrays(d.TRIANGLE_FAN, 0, c.length);
  10861. d.deleteBuffer(e);
  10862. f.el()
  10863. },
  10864. y_: function(c, d, e, g, h) {
  10865. this.Sr();
  10866. var k = 1;
  10867. h && k++;
  10868. var m = 2 * Math.PI / g;
  10869. if (h = new Float32Array(2 * (g + 2))) {
  10870. for (var n = 0; n <= g; n++) {
  10871. var p = n * m,
  10872. s = d * Math.sin(p + e) + c.y;
  10873. h[2 * n] = d * Math.cos(p + e) + c.x;
  10874. h[2 * n + 1] = s
  10875. }
  10876. h[2 * (g + 1)] = c.x;
  10877. h[2 * (g + 1) + 1] = c.y;
  10878. c = this.s;
  10879. this.Ze.Ff();
  10880. this.Ze.zj();
  10881. f.wf(f.Gh);
  10882. c.uniform4fv(this.Qo, this.Kj);
  10883. d = c.createBuffer();
  10884. c.bindBuffer(c.ARRAY_BUFFER, d);
  10885. c.bufferData(c.ARRAY_BUFFER, h, c.STATIC_DRAW);
  10886. c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0);
  10887. c.drawArrays(c.LINE_STRIP, 0, g + k);
  10888. c.deleteBuffer(d);
  10889. f.el()
  10890. }
  10891. },
  10892. D_: function(c, d, e, g) {
  10893. this.Sr();
  10894. for (var h = new Float32Array(2 * (g + 1)), k = 0, m = 0; m < g; m++) h[2 * m] = Math.pow(1 - k, 2) * c.x + 2 * (1 - k) * k * d.x + k * k * e.x, h[2 * m + 1] = Math.pow(1 - k, 2) * c.y + 2 * (1 - k) * k * d.y + k * k * e.y, k += 1 / g;
  10895. h[2 * g] = e.x;
  10896. h[2 * g + 1] = e.y;
  10897. c = this.s;
  10898. this.Ze.Ff();
  10899. this.Ze.zj();
  10900. f.wf(f.Gh);
  10901. c.uniform4fv(this.Qo, this.Kj);
  10902. d = c.createBuffer();
  10903. c.bindBuffer(c.ARRAY_BUFFER, d);
  10904. c.bufferData(c.ARRAY_BUFFER, h, c.STATIC_DRAW);
  10905. c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0);
  10906. c.drawArrays(c.LINE_STRIP, 0, g + 1);
  10907. c.deleteBuffer(d);
  10908. f.el()
  10909. },
  10910. z_: function(c,
  10911. d, e, g, h) {
  10912. this.Sr();
  10913. for (var k = new Float32Array(2 * (h + 1)), m = 0, n = 0; n < h; n++) k[2 * n] = Math.pow(1 - m, 3) * c.x + 3 * Math.pow(1 - m, 2) * m * d.x + 3 * (1 - m) * m * m * e.x + m * m * m * g.x, k[2 * n + 1] = Math.pow(1 - m, 3) * c.y + 3 * Math.pow(1 - m, 2) * m * d.y + 3 * (1 - m) * m * m * e.y + m * m * m * g.y, m += 1 / h;
  10914. k[2 * h] = g.x;
  10915. k[2 * h + 1] = g.y;
  10916. c = this.s;
  10917. this.Ze.Ff();
  10918. this.Ze.zj();
  10919. f.wf(f.Gh);
  10920. c.uniform4fv(this.Qo, this.Kj);
  10921. d = c.createBuffer();
  10922. c.bindBuffer(c.ARRAY_BUFFER, d);
  10923. c.bufferData(c.ARRAY_BUFFER, k, c.STATIC_DRAW);
  10924. c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0);
  10925. c.drawArrays(c.LINE_STRIP, 0,
  10926. h + 1);
  10927. c.deleteBuffer(d);
  10928. f.el()
  10929. },
  10930. x_: function(c, d) {
  10931. this.px(c, 0.5, d)
  10932. },
  10933. px: function(c, d, e) {
  10934. this.Sr();
  10935. for (var g = new Float32Array(2 * (e + 1)), h, k, m = 1 / c.length, n = 0; n < e + 1; n++) k = n / e, 1 == k ? (h = c.length - 1, k = 1) : (h = 0 | k / m, k = (k - m * h) / m), h = f.Mka(f.tg(c, h - 1), f.tg(c, h), f.tg(c, h + 1), f.tg(c, h + 2), d, k), g[2 * n] = h.x, g[2 * n + 1] = h.y;
  10936. c = this.s;
  10937. this.Ze.Ff();
  10938. this.Ze.zj();
  10939. f.wf(f.Gh);
  10940. c.uniform4fv(this.Qo, this.Kj);
  10941. d = c.createBuffer();
  10942. c.bindBuffer(c.ARRAY_BUFFER, d);
  10943. c.bufferData(c.ARRAY_BUFFER, g, c.STATIC_DRAW);
  10944. c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0);
  10945. c.drawArrays(c.LINE_STRIP, 0, e + 1);
  10946. c.deleteBuffer(d);
  10947. f.el()
  10948. },
  10949. wj: function(c, d, e, g) {
  10950. this.Kj[0] = c / 255;
  10951. this.Kj[1] = d / 255;
  10952. this.Kj[2] = e / 255;
  10953. this.Kj[3] = g / 255
  10954. },
  10955. C2: function(c) {
  10956. this.yX = c * f.Uc()
  10957. },
  10958. Ju: function(c) {
  10959. this.s.lineWidth && this.s.lineWidth(c)
  10960. }
  10961. });
  10962. f.U.AU = function() {
  10963. var c = f.ia.prototype;
  10964. c.F = f.q.prototype.F;
  10965. c.Wj = function() {
  10966. this.Hc = !0;
  10967. var c = this.Iw,
  10968. e = this.Jw;
  10969. this.IN = "rgba(128,128,128," + this.nr + ")";
  10970. this.aM = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b) + ", 1)";
  10971. this.ON = "rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + ", 1)"
  10972. };
  10973. c.Wb = f.q.prototype.Wb;
  10974. c.J = f.q.prototype.J;
  10975. c.hc = f.q.prototype.hc;
  10976. c.I0 = function(c, e) {
  10977. if (!f.q.prototype.j.call(this)) return !1;
  10978. this.shaderProgram = f.xg.be(f.ia.Vpa);
  10979. this.aZ(e, !1);
  10980. this.string = c;
  10981. return !0
  10982. };
  10983. c.iR = function(c) {
  10984. var e = this.Jw;
  10985. if (e.r != c.r ||
  10986. e.g != c.g || e.b != c.b) e.r = c.r, e.g = c.g, e.b = c.b, this.Wj(), this.Hc = !0
  10987. };
  10988. c.ma = function(c) {
  10989. if (this.td && "" != this.td) {
  10990. c = c || f.s;
  10991. var e = this.fa;
  10992. e && e.ie && (this.sd.Ff(), this.sd.zj(), f.Fm(this.B.src, this.B.ha), f.Ai(e), f.wf(f.tv), c.bindBuffer(c.ARRAY_BUFFER, this.oN), this.Yi && (c.bufferData(c.ARRAY_BUFFER, this.Vd.DO, c.STATIC_DRAW), this.Yi = !1), c.vertexAttribPointer(f.Oc, 3, c.FLOAT, !1, 24, 0), c.vertexAttribPointer(f.$g, 2, c.FLOAT, !1, 24, 16), c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, 24, 12), c.drawArrays(c.TRIANGLE_STRIP,
  10993. 0, 4));
  10994. if (1 === f.ys) c = this.Vd, f.If.Sf([r(c.Z.k.x, c.Z.k.y), r(c.T.k.x, c.T.k.y), r(c.aa.k.x, c.aa.k.y), r(c.W.k.x, c.W.k.y)], 4, !0);
  10995. else if (2 === f.ys) {
  10996. c = this.EH().ea;
  10997. var e = this.offsetX,
  10998. g = this.offsetY;
  10999. f.If.Sf([r(e, g), r(e + c.width, g), r(e + c.width, g + c.height), r(e, g + c.height)], 4, !0)
  11000. }
  11001. f.bl++
  11002. }
  11003. };
  11004. c.sc = f.q.prototype.sc
  11005. };
  11006. f.U.xT = function() {
  11007. var c = f.ia.prototype;
  11008. f.d(c, "color", c.$a, c.F);
  11009. f.d(c, "opacity", c.vb, c.J);
  11010. f.d(c, "string", c.qc, c.wa);
  11011. f.d(c, "textAlign", c.bAa, c.jR);
  11012. f.d(c, "verticalAlign", c.NBa, c.ER);
  11013. f.d(c, "fontSize", c.Un, c.Qd);
  11014. f.d(c, "fontName", c.Cp, c.de);
  11015. f.d(c, "font", c.Qv, c.mr);
  11016. f.d(c, "boundingWidth", c.vF, c.CN);
  11017. f.d(c, "boundingHeight", c.pW, c.BN);
  11018. f.d(c, "fillStyle", c.Hra, c.iR);
  11019. f.d(c, "strokeStyle", c.gsa, c.Qua);
  11020. f.d(c, "lineWidth", c.Sra, c.xua);
  11021. f.d(c, "shadowOffsetX", c.csa, c.Gua);
  11022. f.d(c, "shadowOffsetY", c.dsa, c.Hua);
  11023. f.d(c, "shadowOpacity",
  11024. c.esa, c.Iua);
  11025. f.d(c, "shadowBlur", c.bsa, c.Fua)
  11026. };
  11027. f.ia = f.q.extend({
  11028. ze: null,
  11029. Xo: f.Bo,
  11030. tp: f.zE,
  11031. Rc: null,
  11032. Sc: 0,
  11033. td: "",
  11034. qX: null,
  11035. hA: !1,
  11036. jn: null,
  11037. Mg: !1,
  11038. oh: null,
  11039. nr: 0,
  11040. Mt: 0,
  11041. IN: null,
  11042. om: !1,
  11043. Iw: null,
  11044. sr: 0,
  11045. ON: null,
  11046. Jw: null,
  11047. aM: null,
  11048. JY: 0,
  11049. KY: 0,
  11050. Hc: !1,
  11051. EM: null,
  11052. FM: null,
  11053. S$: null,
  11054. ta: "LabelTTF",
  11055. ctor: function(c, d, e, g, h, k) {
  11056. f.q.prototype.ctor.call(this);
  11057. this.ze = t(0, 0);
  11058. this.Xo = f.wK;
  11059. this.tp = f.zE;
  11060. this.Jb = !1;
  11061. this.jn = "";
  11062. this.Rc = "Arial";
  11063. this.Mg = this.hA = !1;
  11064. this.oh = r(0, 0);
  11065. this.Mt = this.nr = 0;
  11066. this.IN = "rgba(128, 128, 128, 0.5)";
  11067. this.om = !1;
  11068. this.Iw = f.color(255, 255, 255, 255);
  11069. this.sr = 0;
  11070. this.ON = "";
  11071. this.Jw =
  11072. f.color(255, 255, 255, 255);
  11073. this.aM = "rgba(255,255,255,1)";
  11074. this.KY = this.JY = 0;
  11075. this.Hc = !1;
  11076. this.S$ = [];
  11077. this.Wj();
  11078. d && d instanceof f.x5 ? this.I0(c, d) : f.ia.prototype.xf.call(this, c, d, e, g, h, k)
  11079. },
  11080. j: function() {
  11081. return this.xf(" ", this.Rc, this.Sc)
  11082. },
  11083. $sa: function() {
  11084. this.sW().font = this.jn
  11085. },
  11086. NF: function(c) {
  11087. return this.sW().measureText(c).width
  11088. },
  11089. Eqa: function(c, d) {
  11090. var e = this.NF(c),
  11091. g = Math.floor(c.length * d / e),
  11092. h = c.indexOf("\n");
  11093. if (0.8 * g >= h && 0 < h) return h + 1;
  11094. if (e < d) return c.length;
  11095. for (var e = !1, h = d + 1, k = -1, m = g, n, p = f.ia.Gqa, s = f.ia.bua,
  11096. u = f.ia.Dqa, v = c.substr(g); n = p.exec(v);) {
  11097. m += n[0].length;
  11098. h = this.NF(c.substr(0, m));
  11099. if ("\n" == n[2] && h < d) {
  11100. e = !0;
  11101. k = m;
  11102. break
  11103. }
  11104. if (h > d) {
  11105. -1 != k && (e = !0);
  11106. break
  11107. }
  11108. k = m;
  11109. v = c.substr(m)
  11110. }
  11111. if (e) return k;
  11112. v = c.substr(0, g);
  11113. for (k = g; n = s.exec(v);)
  11114. if (k = n[1].length, v = n[1], h = this.NF(v), h < d) {
  11115. u.test(n[2]) && k++;
  11116. break
  11117. }
  11118. return k || 1
  11119. },
  11120. description: function() {
  11121. return "\x3ccc.LabelTTF | FontName \x3d" + this.Rc + " FontSize \x3d " + this.Sc.toFixed(1) + "\x3e"
  11122. },
  11123. F: null,
  11124. Wj: null,
  11125. Wb: null,
  11126. J: null,
  11127. hc: null,
  11128. K5a: function(c) {
  11129. f.ja.prototype.hc.call(this, c);
  11130. this.Wj()
  11131. },
  11132. qc: function() {
  11133. return this.td
  11134. },
  11135. bAa: function() {
  11136. return this.Xo
  11137. },
  11138. NBa: function() {
  11139. return this.tp
  11140. },
  11141. Pza: function() {
  11142. return t(this.ze.width, this.ze.height)
  11143. },
  11144. Un: function() {
  11145. return this.Sc
  11146. },
  11147. Cp: function() {
  11148. return this.Rc
  11149. },
  11150. xf: function(c, d, e, g, h, k) {
  11151. c = c ? c + "" : "";
  11152. e = e || 16;
  11153. g = g || t(0, e);
  11154. h = h || f.wK;
  11155. k = k || f.zE;
  11156. this.Jb = !1;
  11157. this.ze = t(g.width, g.height);
  11158. this.Rc = d || "Arial";
  11159. this.Xo = h;
  11160. this.tp = k;
  11161. this.Sc = e;
  11162. this.jn = this.Sc + "px '" + d + "'";
  11163. this.Vo = f.ia.BE(d, this.Sc);
  11164. this.string = c;
  11165. this.Wj();
  11166. this.qO();
  11167. this.Hc = !1;
  11168. return !0
  11169. },
  11170. I0: null,
  11171. s4a: function(c) {
  11172. c &&
  11173. this.aZ(c, !0)
  11174. },
  11175. hWa: function() {
  11176. return this.Ita(!1)
  11177. },
  11178. L_: function(c, d, e, g) {
  11179. e = e || 0.5;
  11180. !1 === this.Mg && (this.Mg = !0);
  11181. var h = this.oh;
  11182. if (h && h.x != c || h.hj != d) h.x = c, h.y = d;
  11183. this.nr != e && (this.nr = e);
  11184. this.Wj();
  11185. this.Mt != g && (this.Mt = g);
  11186. this.Hc = !0
  11187. },
  11188. csa: function() {
  11189. return this.oh.x
  11190. },
  11191. Gua: function(c) {
  11192. !1 === this.Mg && (this.Mg = !0);
  11193. this.oh.x != c && (this.oh.x = c, this.Hc = !0)
  11194. },
  11195. dsa: function() {
  11196. return this.oh.hj
  11197. },
  11198. Hua: function(c) {
  11199. !1 === this.Mg && (this.Mg = !0);
  11200. this.oh.hj != c && (this.oh.hj = c, this.Hc = !0)
  11201. },
  11202. kOa: function() {
  11203. return r(this.oh.x, this.oh.y)
  11204. },
  11205. SOa: function(c) {
  11206. !1 === this.Mg && (this.Mg = !0);
  11207. if (this.oh.x != c.x || this.oh.y != c.y) this.oh.x = c.x, this.oh.y = c.y, this.Hc = !0
  11208. },
  11209. esa: function() {
  11210. return this.nr
  11211. },
  11212. Iua: function(c) {
  11213. !1 === this.Mg && (this.Mg = !0);
  11214. this.nr != c && (this.nr = c, this.Wj(), this.Hc = !0)
  11215. },
  11216. bsa: function() {
  11217. return this.Mt
  11218. },
  11219. Fua: function(c) {
  11220. !1 === this.Mg && (this.Mg = !0);
  11221. this.Mt != c && (this.Mt = c, this.Hc = !0)
  11222. },
  11223. SQa: function() {
  11224. this.Mg && (this.Mg = !1, this.Hc = !0)
  11225. },
  11226. Sya: function(c, d) {
  11227. !1 === this.om && (this.om = !0);
  11228. var e = this.Iw;
  11229. if (e.r !== c.r || e.g !== c.g || e.b !== c.b) e.r = c.r, e.g =
  11230. c.g, e.b = c.b, this.Wj();
  11231. this.sr !== d && (this.sr = d || 0);
  11232. this.Hc = !0
  11233. },
  11234. gsa: function() {
  11235. return this.Iw
  11236. },
  11237. Qua: function(c) {
  11238. !1 === this.om && (this.om = !0);
  11239. var d = this.Iw;
  11240. if (d.r !== c.r || d.g !== c.g || d.b !== c.b) d.r = c.r, d.g = c.g, d.b = c.b, this.Wj(), this.Hc = !0
  11241. },
  11242. Sra: function() {
  11243. return this.sr
  11244. },
  11245. xua: function(c) {
  11246. !1 === this.om && (this.om = !0);
  11247. this.sr !== c && (this.sr = c || 0, this.Hc = !0)
  11248. },
  11249. TQa: function() {
  11250. this.om && (this.om = !1, this.Hc = !0)
  11251. },
  11252. iR: null,
  11253. Hra: function() {
  11254. return this.Jw
  11255. },
  11256. aZ: function(c, d) {
  11257. c.PRa ? (this.ze.width = c.boundingWidth, this.ze.height =
  11258. c.boundingHeight) : (this.ze.width = 0, this.ze.height = 0);
  11259. this.Xo = c.textAlign;
  11260. this.tp = c.verticalAlign;
  11261. this.Rc = c.fontName;
  11262. this.Sc = c.fontSize || 12;
  11263. this.jn = this.Sc + "px '" + this.Rc + "'";
  11264. this.Vo = f.ia.BE(this.Rc, this.Sc);
  11265. c.cia && this.L_(c.shadowOffsetX, c.shadowOffsetY, c.shadowOpacity, c.shadowBlur);
  11266. c.m3 && this.Sya(c.strokeStyle, c.lineWidth);
  11267. this.iR(c.fillStyle);
  11268. d && this.qO()
  11269. },
  11270. Ita: function(c) {
  11271. var d = new f.x5;
  11272. c ? (d.fontSize = this.Sc, d.boundingWidth = f.Uc() * this.ze.width, d.boundingHeight = f.Uc() * this.ze.height) : (d.fontSize =
  11273. this.Sc, d.boundingWidth = this.ze.width, d.boundingHeight = this.ze.height);
  11274. d.fontName = this.Rc;
  11275. d.textAlign = this.Xo;
  11276. d.verticalAlign = this.tp;
  11277. if (this.om) {
  11278. d.m3 = !0;
  11279. var e = this.Iw;
  11280. d.strokeStyle = f.color(e.r, e.g, e.b);
  11281. d.lineWidth = this.sr
  11282. } else d.m3 = !1;
  11283. this.Mg ? (d.cia = !0, d.shadowBlur = this.Mt, d.shadowOpacity = this.nr, d.shadowOffsetX = (c ? f.Uc() : 1) * this.oh.x, d.shadowOffsetY = (c ? f.Uc() : 1) * this.oh.y) : d.Mg = !1;
  11284. c = this.Jw;
  11285. d.fillStyle = f.color(c.r, c.g, c.b);
  11286. return d
  11287. },
  11288. Vo: 18,
  11289. wa: function(c) {
  11290. c = String(c);
  11291. this.qX != c && (this.qX = c + "", this.oO(),
  11292. this.Hc = !0)
  11293. },
  11294. oO: function() {
  11295. this.td = this.qX
  11296. },
  11297. jR: function(c) {
  11298. c !== this.Xo && (this.Xo = c, this.Hc = !0)
  11299. },
  11300. ER: function(c) {
  11301. c != this.tp && (this.tp = c, this.Hc = !0)
  11302. },
  11303. gR: function(c) {
  11304. if (c.width != this.ze.width || c.height != this.ze.height) this.ze = c, this.oO(), this.Hc = !0
  11305. },
  11306. vF: function() {
  11307. return this.ze.width
  11308. },
  11309. CN: function(c) {
  11310. c != this.ze.width && (this.ze.width = c, this.oO(), this.Hc = !0)
  11311. },
  11312. pW: function() {
  11313. return this.ze.height
  11314. },
  11315. BN: function(c) {
  11316. c != this.ze.height && (this.ze.height = c, this.oO(), this.Hc = !0)
  11317. },
  11318. Qd: function(c) {
  11319. this.Sc !== c && (this.Sc =
  11320. c, this.jn = c + "px '" + this.Rc + "'", this.Vo = f.ia.BE(this.Rc, c), this.Hc = !0)
  11321. },
  11322. de: function(c) {
  11323. this.Rc && this.Rc != c && (this.Rc = c, this.jn = this.Sc + "px '" + c + "'", this.Vo = f.ia.BE(c, this.Sc), this.Hc = !0)
  11324. },
  11325. Qv: function() {
  11326. return this.jn
  11327. },
  11328. mr: function(c) {
  11329. var d = f.ia.eM.exec(c);
  11330. d && (this.Sc = parseInt(d[1]), this.Rc = d[2], this.jn = c, this.Vo = f.ia.BE(this.Rc, this.Sc), this.Hc = !0)
  11331. },
  11332. gra: function(c) {
  11333. if (c) {
  11334. var d = this.JY,
  11335. e = this.KY,
  11336. g = this.m.height - e,
  11337. h = this.tp,
  11338. k = this.Xo,
  11339. m = this.Vo,
  11340. n = this.sr;
  11341. c.setTransform(1, 0, 0, 1, 0 + 0.5 * d, g + 0.5 * e);
  11342. c.font !=
  11343. this.jn && (c.font = this.jn);
  11344. c.fillStyle = this.aM;
  11345. var p = e = 0,
  11346. s = this.om;
  11347. s && (c.lineWidth = 2 * n, c.strokeStyle = this.ON);
  11348. this.Mg && (n = this.oh, c.shadowColor = this.IN, c.shadowOffsetX = n.x, c.shadowOffsetY = -n.y, c.shadowBlur = this.Mt);
  11349. c.textBaseline = f.ia.kva[h];
  11350. c.textAlign = f.ia.jva[k];
  11351. d = this.m.width - d;
  11352. e = k === f.q7 ? e + d : k === f.Bo ? e + d / 2 : e + 0;
  11353. if (this.hA)
  11354. for (k = this.rr.length, h === f.j8 ? p = m + g - m * k : h === f.wU && (p = m / 2 + (g - m * k) / 2), h = 0; h < k; h++) d = this.rr[h], n = -g + m * h + p, s && c.strokeText(d, e, n), c.fillText(d, e, n);
  11355. else h !== f.j8 && (p = h === f.zE ? p -
  11356. g : p - 0.5 * g), s && c.strokeText(this.td, e, p), c.fillText(this.td, e, p)
  11357. }
  11358. },
  11359. sW: function() {
  11360. if (this.FM) return this.FM;
  11361. if (!this.EM) {
  11362. var c = f.fd("canvas"),
  11363. d = new f.Pa;
  11364. d.sh(c);
  11365. this.texture = d;
  11366. this.EM = c
  11367. }
  11368. return this.FM = this.EM.getContext("2d")
  11369. },
  11370. pO: function() {
  11371. var c = this.ze.width,
  11372. d, e, g = this.S$;
  11373. g.length = 0;
  11374. this.hA = !1;
  11375. this.$sa();
  11376. if (0 !== c) {
  11377. var h = this.td;
  11378. this.rr = [];
  11379. d = 0;
  11380. for (e = this.td.length; d < e;) {
  11381. var k = this.Eqa(h.substr(d), c);
  11382. this.rr.push(h.substr(d, k));
  11383. d += k
  11384. }
  11385. } else
  11386. for (this.rr = this.td.split("\n"), d = 0, e = this.rr.length; d < e; d++) g.push(this.NF(this.rr[d]));
  11387. 0 < this.rr.length && (this.hA = !0);
  11388. e = d = 0;
  11389. this.om && (d = e = 2 * this.sr);
  11390. this.Mg && (h = this.oh, d += 2 * Math.abs(h.x), e += 2 * Math.abs(h.y));
  11391. c = 0 === c ? this.hA ? t(0 | Math.max.apply(Math, g) + d, 0 | this.Vo * this.rr.length + e) : t(0 | this.NF(this.td) + d, 0 | this.Vo + e) : 0 === this.ze.height ? this.hA ? t(0 | c + d, 0 | this.Vo * this.rr.length + e) : t(0 | c + d, 0 | this.Vo + e) : t(0 | c + d, 0 | this.ze.height + e);
  11392. this.Ga(c);
  11393. this.JY = d;
  11394. this.KY = e;
  11395. g = this.Eb;
  11396. this.Qb.x = 0.5 * d + (c.width - d) * g.x;
  11397. this.Qb.y = 0.5 * e + (c.height - e) * g.y
  11398. },
  11399. e: function() {
  11400. this.Hc && this.pO();
  11401. return f.q.prototype.e.call(this)
  11402. },
  11403. lf: function() {
  11404. this.Hc && this.pO();
  11405. return f.q.prototype.lf.call(this)
  11406. },
  11407. Gg: function() {
  11408. this.Hc && this.pO();
  11409. return f.q.prototype.Gg.call(this)
  11410. },
  11411. qO: function() {
  11412. var c = this.sW(),
  11413. d = this.EM,
  11414. e = this.m;
  11415. if (0 === this.td.length) return d.width = 1, d.height = e.height, this.sc(x(0, 0, 1, e.height)), !0;
  11416. c.font = this.jn;
  11417. this.pO();
  11418. var g = e.width,
  11419. e = e.height,
  11420. h = d.width == g && d.height == e;
  11421. d.width = g;
  11422. d.height = e;
  11423. h && c.clearRect(0, 0, g, e);
  11424. this.gra(c);
  11425. this.fa && this.fa.$d();
  11426. this.sc(x(0, 0, g, e));
  11427. return !0
  11428. },
  11429. I: function(c) {
  11430. this.td && "" != this.td && (this.Hc &&
  11431. (this.Hc = !1, this.qO()), f.q.prototype.I.call(this, c || f.s))
  11432. },
  11433. ma: null,
  11434. Yaa: function(c) {
  11435. var d = this.Aa ? this.textureAtlas.texture : this.fa;
  11436. if (d) {
  11437. var e = d.pixelsWidth,
  11438. g = d.pixelsHeight,
  11439. h, k = this.Vd;
  11440. this.pf ? (f.Ey ? (d = (2 * c.x + 1) / (2 * e), e = d + (2 * c.height - 2) / (2 * e), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.width - 2) / (2 * g)) : (d = c.x / e, e = (c.x + c.height) / e, h = c.y / g, c = (c.y + c.width) / g), this.Fb && (g = h, h = c, c = g), this.Hb && (g = d, d = e, e = g), k.T.t.Da = d, k.T.t.ga = h, k.aa.t.Da = d, k.aa.t.ga = c, k.Z.t.Da = e, k.Z.t.ga = h, k.W.t.Da = e, k.W.t.ga = c) : (f.Ey ? (d = (2 * c.x + 1) / (2 *
  11441. e), e = d + (2 * c.width - 2) / (2 * e), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.height - 2) / (2 * g)) : (d = c.x / e, e = (c.x + c.width) / e, h = c.y / g, c = (c.y + c.height) / g), this.Fb && (g = d, d = e, e = g), this.Hb && (g = h, h = c, c = g), k.T.t.Da = d, k.T.t.ga = c, k.aa.t.Da = e, k.aa.t.ga = c, k.Z.t.Da = d, k.Z.t.ga = h, k.W.t.Da = e, k.W.t.ga = h);
  11442. this.Yi = !0
  11443. }
  11444. }
  11445. });
  11446. f.K === f.fb ? (q = f.ia.prototype, q.F = function(c) {
  11447. f.ja.prototype.F.call(this, c);
  11448. this.Wj()
  11449. }, q.Wj = function() {
  11450. this.Hc = !0;
  11451. var c = this.Ab,
  11452. d = this.kb,
  11453. e = this.Iw,
  11454. g = this.Jw;
  11455. this.IN = "rgba(" + (0 | 0.5 * c.r) + "," + (0 | 0.5 * c.g) + "," + (0 | 0.5 * c.b) + "," + this.nr + ")";
  11456. this.aM = "rgba(" + (0 | c.r / 255 * g.r) + "," + (0 | c.g / 255 * g.g) + "," + (0 | c.b / 255 * g.b) + ", " + d / 255 + ")";
  11457. this.ON = "rgba(" + (0 | c.r / 255 * e.r) + "," + (0 | c.g / 255 * e.g) + "," + (0 | c.b / 255 * e.b) + ", " + d / 255 + ")"
  11458. }, q.Wb = function(c) {
  11459. f.ja.prototype.Wb.call(this, c);
  11460. this.Wj()
  11461. }, q.J = function(c) {
  11462. this.Ib !== c && (f.q.prototype.J.call(this,
  11463. c), this.Wj(), this.Hc = !0)
  11464. }, q.hc = f.q.prototype.hc, q.I0 = function(c, d) {
  11465. this.aZ(d, !1);
  11466. this.string = c;
  11467. return !0
  11468. }, q.iR = function(c) {
  11469. var d = this.Jw;
  11470. if (d.r != c.r || d.g != c.g || d.b != c.b) d.r = c.r, d.g = c.g, d.b = c.b, this.Wj(), this.Hc = !0
  11471. }, q.ma = f.q.prototype.ma, q.sc = function(c, d, e) {
  11472. this.pf = d || !1;
  11473. this.Ga(e || c);
  11474. this.c3(c);
  11475. d = this.YA;
  11476. d.x = c.x;
  11477. d.y = c.y;
  11478. d.width = c.width;
  11479. d.height = c.height;
  11480. d.$C = !(0 === d.width || 0 === d.height || 0 > d.x || 0 > d.y);
  11481. c = this.Ln;
  11482. this.Fb && (c.x = -c.x);
  11483. this.Hb && (c.y = -c.y);
  11484. this.od.x = c.x + (this.m.width - this.Ta.width) / 2;
  11485. this.od.y =
  11486. c.y + (this.m.height - this.Ta.height) / 2;
  11487. this.Aa && (this.dirty = !0)
  11488. }, q = null) : (f.assert("function" === typeof f.U.AU, f.l.Hf, "LabelTTFWebGL.js"), f.U.AU(), delete f.U.AU);
  11489. f.assert("function" === typeof f.U.xT, f.l.Hf, "LabelTTFPropertyDefine.js");
  11490. f.U.xT();
  11491. delete f.U.xT;
  11492. f.ia.jva = ["left", "center", "right"];
  11493. f.ia.kva = ["top", "middle", "bottom"];
  11494. f.ia.Gqa = /(.+?)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/;
  11495. f.ia.bua = /(.*)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/;
  11496. f.ia.Dqa = /[\s\-\/\\\:]/;
  11497. f.ia.eM = /^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/;
  11498. f.ia.create = function(c, d, e, g, h, k) {
  11499. return new f.ia(c, d, e, g, h, k)
  11500. };
  11501. f.ia.Vpa = f.Hpa ? f.zo : f.JT;
  11502. f.ia.Ks = f.fd("div");
  11503. f.ia.Ks.style.fontFamily = "Arial";
  11504. f.ia.Ks.style.position = "absolute";
  11505. f.ia.Ks.style.left = "-100px";
  11506. f.ia.Ks.style.top = "-100px";
  11507. f.ia.Ks.style.lineHeight = "normal";
  11508. document.body ? document.body.appendChild(f.ia.Ks) : f.ub(window, "load", function() {
  11509. this.removeEventListener("load", arguments.callee, !1);
  11510. document.body.appendChild(f.ia.Ks)
  11511. }, !1);
  11512. f.ia.BE = function(c, d) {
  11513. var e = f.ia.r8[c + "." + d];
  11514. if (0 < e) return e;
  11515. var g = f.ia.Ks;
  11516. g.innerHTML = "ajghl~!";
  11517. g.style.fontFamily = c;
  11518. g.style.fontSize = d + "px";
  11519. e = g.clientHeight;
  11520. f.ia.r8[c + "." + d] = e;
  11521. g.innerHTML = "";
  11522. return e
  11523. };
  11524. f.ia.r8 = {};
  11525. f.Ola = f.N.extend({
  11526. bf: null,
  11527. target: null,
  11528. Zw: 0,
  11529. $j: null,
  11530. mx: !1,
  11531. paused: !1,
  11532. DP: null,
  11533. ctor: function() {
  11534. this.bf = [];
  11535. this.target = null;
  11536. this.Zw = 0;
  11537. this.$j = null;
  11538. this.paused = this.mx = !1;
  11539. this.DP = null
  11540. }
  11541. });
  11542. f.M3 = f.N.extend({
  11543. ln: null,
  11544. bz: null,
  11545. eh: null,
  11546. So: !1,
  11547. OOa: function(c, d) {
  11548. for (var e = 0; e < c.length; e++)
  11549. if (d == c[e].target) return c[e];
  11550. return null
  11551. },
  11552. ctor: function() {
  11553. this.ln = {};
  11554. this.bz = [];
  11555. this.eh = null;
  11556. this.So = !1
  11557. },
  11558. Gva: function(c, d, e) {
  11559. if (!c) throw "cc.ActionManager.addAction(): action must be non-null";
  11560. if (!d) throw "cc.ActionManager.addAction(): action must be non-null";
  11561. var g = this.ln[d.yb];
  11562. g || (g = new f.Ola, g.paused = e, g.target = d, this.ln[d.yb] = g, this.bz.push(g));
  11563. this.aqa(g);
  11564. g.bf.push(c);
  11565. c.R(d)
  11566. },
  11567. V0a: function() {
  11568. for (var c =
  11569. this.bz, d = 0; d < c.length; d++) {
  11570. var e = c[d];
  11571. e && this.iga(e.target, !0)
  11572. }
  11573. },
  11574. iga: function(c, d) {
  11575. if (null != c) {
  11576. var e = this.ln[c.yb];
  11577. e && (-1 === e.bf.indexOf(e.$j) || e.mx || (e.mx = !0), e.bf.length = 0, this.eh != e || d ? this.HV(e) : this.So = !0)
  11578. }
  11579. },
  11580. hga: function(c) {
  11581. if (null != c) {
  11582. var d = this.ln[c.originalTarget.yb];
  11583. if (d)
  11584. for (var e = 0; e < d.bf.length; e++) {
  11585. if (d.bf[e] == c) {
  11586. d.bf.splice(e, 1);
  11587. break
  11588. }
  11589. } else f.log(f.l.aja)
  11590. }
  11591. },
  11592. IFa: function(c, d) {
  11593. c == f.uy && f.log(f.l.N3);
  11594. f.assert(d, f.l.N3);
  11595. var e = this.ln[d.yb];
  11596. if (e)
  11597. for (var g = e.bf.length, h = 0; h < g; ++h) {
  11598. var k = e.bf[h];
  11599. if (k && k.Em() === c && k.originalTarget == d) {
  11600. this.Tta(h, e);
  11601. break
  11602. }
  11603. }
  11604. },
  11605. eP: function(c, d) {
  11606. c == f.uy && f.log(f.l.Zia);
  11607. var e = this.ln[d.yb];
  11608. if (e) {
  11609. if (null != e.bf)
  11610. for (var g = 0; g < e.bf.length; ++g) {
  11611. var h = e.bf[g];
  11612. if (h && h.Em() === c) return h
  11613. }
  11614. f.log(f.l.$ia, c)
  11615. }
  11616. return null
  11617. },
  11618. YDa: function(c) {
  11619. return (c = this.ln[c.yb]) ? c.bf ? c.bf.length : 0 : 0
  11620. },
  11621. as: function(c) {
  11622. (c = this.ln[c.yb]) && (c.paused = !0)
  11623. },
  11624. Km: function(c) {
  11625. (c = this.ln[c.yb]) && (c.paused = !1)
  11626. },
  11627. h0a: function() {
  11628. for (var c = [], d = this.bz, e = 0; e < d.length; e++) {
  11629. var g = d[e];
  11630. g && !g.paused && (g.paused = !0, c.push(g.target))
  11631. }
  11632. return c
  11633. },
  11634. cGa: function(c) {
  11635. if (c)
  11636. for (var d = 0; d < c.length; d++) c[d] && this.Km(c[d])
  11637. },
  11638. A0a: function() {
  11639. f.Q.Dm().qJ(this)
  11640. },
  11641. Tta: function(c, d) {
  11642. d.bf[c] != d.$j || d.mx || (d.mx = !0);
  11643. d.bf.splice(c, 1);
  11644. d.Zw >= c && d.Zw--;
  11645. 0 == d.bf.length && (this.eh == d ? this.So = !0 : this.HV(d))
  11646. },
  11647. HV: function(c) {
  11648. c && (delete this.ln[c.target.yb], f.Ld(this.bz, c), c.bf = null, c.target = null)
  11649. },
  11650. aqa: function(c) {
  11651. null == c.bf && (c.bf = [])
  11652. },
  11653. update: function(c) {
  11654. for (var d = this.bz, e, g = 0; g < d.length; g++) {
  11655. e = this.eh = d[g];
  11656. if (!e.paused)
  11657. for (e.Zw = 0; e.Zw < e.bf.length; e.Zw++)
  11658. if (e.$j = e.bf[e.Zw],
  11659. e.$j) {
  11660. e.mx = !1;
  11661. e.$j.step(c * (e.$j.tG ? e.$j.ti : 1));
  11662. if (e.mx) e.$j = null;
  11663. else if (e.$j.gk()) {
  11664. e.$j.stop();
  11665. var h = e.$j;
  11666. e.$j = null;
  11667. this.hga(h)
  11668. }
  11669. e.$j = null
  11670. }
  11671. this.So && 0 === e.bf.length && this.HV(e)
  11672. }
  11673. }
  11674. });
  11675. f.FZa = Number;
  11676. f.vYa = Number;
  11677. f.wYa = Number;
  11678. f.Ly = 0;
  11679. f.My = 1;
  11680. f.a1 = 3.141592;
  11681. f.vDa = 0.017453;
  11682. f.wDa = 57.295779;
  11683. f.Bb = 0.015625;
  11684. f.yf = function(c) {
  11685. return c * c
  11686. };
  11687. f.bI = function(c) {
  11688. return c * f.vDa
  11689. };
  11690. f.AZa = function(c) {
  11691. return c * f.wDa
  11692. };
  11693. f.bQ = function(c, d) {
  11694. return c < d ? c : d
  11695. };
  11696. f.aQ = function(c, d) {
  11697. return c > d ? c : d
  11698. };
  11699. f.uYa = function(c, d) {
  11700. return c + f.Bb > d && c - f.Bb < d
  11701. };
  11702. f.ao = function() {
  11703. this.y = this.x = 0
  11704. };
  11705. f.JZa = function(c, d, e) {
  11706. c.x = d;
  11707. c.y = e;
  11708. return c
  11709. };
  11710. f.dQ = function(c) {
  11711. return Math.sqrt(f.yf(c.x) + f.yf(c.y))
  11712. };
  11713. f.KZa = function(c) {
  11714. return f.yf(c.x) + f.yf(c.y)
  11715. };
  11716. f.CDa = function(c, d) {
  11717. var e = 1 / f.dQ(d),
  11718. g = new f.ao;
  11719. g.x = d.x * e;
  11720. g.y = d.y * e;
  11721. c.x = g.x;
  11722. c.y = g.y
  11723. };
  11724. f.GZa = function(c, d, e) {
  11725. c.x = d.x + e.x;
  11726. c.y = d.y + e.y;
  11727. return c
  11728. };
  11729. f.IZa = function(c, d) {
  11730. return c.x * d.x + c.y * d.y
  11731. };
  11732. f.eQ = function(c, d, e) {
  11733. c.x = d.x - e.x;
  11734. c.y = d.y - e.y;
  11735. return c
  11736. };
  11737. f.MZa = function(c, d, e) {
  11738. var g = new f.ao;
  11739. g.x = d.x * e.c[0] + d.y * e.c[3] + e.c[6];
  11740. g.y = d.x * e.c[1] + d.y * e.c[4] + e.c[7];
  11741. c.x = g.x;
  11742. c.y = g.y;
  11743. return c
  11744. };
  11745. f.NZa = function() {
  11746. return null
  11747. };
  11748. f.LZa = function(c, d, e) {
  11749. c.x = d.x * e;
  11750. c.y = d.y * e;
  11751. return c
  11752. };
  11753. f.HZa = function(c, d) {
  11754. return c.x < d.x + f.Bb && c.x > d.x - f.Bb && c.y < d.y + f.Bb && c.y > d.y - f.Bb
  11755. };
  11756. f.cd = function(c, d, e) {
  11757. this.x = c || 0;
  11758. this.y = d || 0;
  11759. this.z = e || 0
  11760. };
  11761. f.cC = function(c, d, e, g) {
  11762. if (!c) return new f.cd(d, e, g);
  11763. c.x = d;
  11764. c.y = e;
  11765. c.z = g;
  11766. return c
  11767. };
  11768. f.$ea = function(c) {
  11769. return Math.sqrt(f.yf(c.x) + f.yf(c.y) + f.yf(c.z))
  11770. };
  11771. f.afa = function(c) {
  11772. return f.yf(c.x) + f.yf(c.y) + f.yf(c.z)
  11773. };
  11774. f.hk = function(c, d) {
  11775. var e = 1 / f.$ea(d);
  11776. c.x = d.x * e;
  11777. c.y = d.y * e;
  11778. c.z = d.z * e
  11779. };
  11780. f.vu = function(c, d, e) {
  11781. c.x = d.y * e.z - d.z * e.y;
  11782. c.y = d.z * e.x - d.x * e.z;
  11783. c.z = d.x * e.y - d.y * e.x
  11784. };
  11785. f.c1 = function(c, d) {
  11786. return c.x * d.x + c.y * d.y + c.z * d.z
  11787. };
  11788. f.Zea = function(c, d, e) {
  11789. c.x = d.x + e.x;
  11790. c.y = d.y + e.y;
  11791. c.z = d.z + e.z
  11792. };
  11793. f.e1 = function(c, d, e) {
  11794. c.x = d.x - e.x;
  11795. c.y = d.y - e.y;
  11796. c.z = d.z - e.z
  11797. };
  11798. f.SZa = function(c, d, e) {
  11799. c.x = d.x * e.c[0] + d.y * e.c[4] + d.z * e.c[8] + e.c[12];
  11800. c.y = d.x * e.c[1] + d.y * e.c[5] + d.z * e.c[9] + e.c[13];
  11801. c.z = d.x * e.c[2] + d.y * e.c[6] + d.z * e.c[10] + e.c[14];
  11802. return c
  11803. };
  11804. f.TZa = function(c, d, e) {
  11805. c.x = d.x * e.c[0] + d.y * e.c[4] + d.z * e.c[8];
  11806. c.y = d.x * e.c[1] + d.y * e.c[5] + d.z * e.c[9];
  11807. c.z = d.x * e.c[2] + d.y * e.c[6] + d.z * e.c[10];
  11808. return c
  11809. };
  11810. f.bfa = function(c, d, e) {
  11811. var g = new f.cfa,
  11812. h = new f.cfa;
  11813. f.DDa(h, d.x, d.y, d.z);
  11814. f.dfa(g, h, e);
  11815. c.x = g.x / g.da;
  11816. c.y = g.y / g.da;
  11817. c.z = g.z / g.da
  11818. };
  11819. f.d1 = function(c, d, e) {
  11820. c.x = d.x * e;
  11821. c.y = d.y * e;
  11822. c.z = d.z * e;
  11823. return c
  11824. };
  11825. f.OZa = function(c, d) {
  11826. return c.x < d.x + f.Bb && c.x > d.x - f.Bb && c.y < d.y + f.Bb && c.y > d.y - f.Bb && c.z < d.z + f.Bb && c.z > d.z - f.Bb ? 1 : 0
  11827. };
  11828. f.PZa = function(c, d, e) {
  11829. d = new f.cd(d.x - e.c[12], d.y - e.c[13], d.z - e.c[14]);
  11830. c.x = d.x * e.c[0] + d.y * e.c[1] + d.z * e.c[2];
  11831. c.y = d.x * e.c[4] + d.y * e.c[5] + d.z * e.c[6];
  11832. c.z = d.x * e.c[8] + d.y * e.c[9] + d.z * e.c[10];
  11833. return c
  11834. };
  11835. f.QZa = function(c, d, e) {
  11836. c.x = d.x * e.c[0] + d.y * e.c[1] + d.z * e.c[2];
  11837. c.y = d.x * e.c[4] + d.y * e.c[5] + d.z * e.c[6];
  11838. c.z = d.x * e.c[8] + d.y * e.c[9] + d.z * e.c[10];
  11839. return c
  11840. };
  11841. f.cI = function(c, d) {
  11842. c != d && (c.x = d.x, c.y = d.y, c.z = d.z)
  11843. };
  11844. f.UZa = function(c) {
  11845. c.x = 0;
  11846. c.y = 0;
  11847. c.z = 0;
  11848. return c
  11849. };
  11850. f.RZa = function(c) {
  11851. if (!c) return null;
  11852. var d = new Float32Array(3);
  11853. d[0] = c.x;
  11854. d[1] = c.y;
  11855. d[2] = c.z;
  11856. return d
  11857. };
  11858. f.cfa = function() {
  11859. this.da = this.z = this.y = this.x = 0
  11860. };
  11861. f.DDa = function(c, d, e, g) {
  11862. c.x = d;
  11863. c.y = e;
  11864. c.z = g;
  11865. c.da = 1
  11866. };
  11867. f.VZa = function(c, d, e) {
  11868. c.x = d.x + e.x;
  11869. c.y = d.y + e.y;
  11870. c.z = d.z + e.z;
  11871. c.da = d.da + e.da;
  11872. return c
  11873. };
  11874. f.YZa = function(c, d) {
  11875. return c.x * d.x + c.y * d.y + c.z * d.z + c.da * d.da
  11876. };
  11877. f.EDa = function(c) {
  11878. return Math.sqrt(f.yf(c.x) + f.yf(c.y) + f.yf(c.z) + f.yf(c.da))
  11879. };
  11880. f.ZZa = function(c) {
  11881. return f.yf(c.x) + f.yf(c.y) + f.yf(c.z) + f.yf(c.da)
  11882. };
  11883. f.$Za = function(c) {
  11884. return c
  11885. };
  11886. f.FDa = function(c, d) {
  11887. var e = 1 / f.EDa(d);
  11888. c.x *= e;
  11889. c.y *= e;
  11890. c.z *= e;
  11891. c.da *= e
  11892. };
  11893. f.a_a = function(c, d, e) {
  11894. f.FDa(c, d);
  11895. c.x *= e;
  11896. c.y *= e;
  11897. c.z *= e;
  11898. c.da *= e;
  11899. return c
  11900. };
  11901. f.b_a = function(c, d, e) {
  11902. c.x = d.x - e.x;
  11903. c.y = d.y - e.y;
  11904. c.z = d.z - e.z;
  11905. c.da = d.da - e.da;
  11906. return c
  11907. };
  11908. f.dfa = function(c, d, e) {
  11909. c.x = d.x * e.c[0] + d.y * e.c[4] + d.z * e.c[8] + d.da * e.c[12];
  11910. c.y = d.x * e.c[1] + d.y * e.c[5] + d.z * e.c[9] + d.da * e.c[13];
  11911. c.z = d.x * e.c[2] + d.y * e.c[6] + d.z * e.c[10] + d.da * e.c[14];
  11912. c.da = d.x * e.c[3] + d.y * e.c[7] + d.z * e.c[11] + d.da * e.c[15]
  11913. };
  11914. f.d_a = function(c, d, e, g, h, k) {
  11915. for (var m = 0; m < k;) f.dfa(c + m * d, e + m * g, h), ++m;
  11916. return c
  11917. };
  11918. f.WZa = function(c, d) {
  11919. return c.x < d.x + f.Bb && c.x > d.x - f.Bb && c.y < d.y + f.Bb && c.y > d.y - f.Bb && c.z < d.z + f.Bb && c.z > d.z - f.Bb && c.da < d.da + f.Bb && c.da > d.da - f.Bb
  11920. };
  11921. f.XZa = function(c, d) {
  11922. if (c == d) return f.log("destVec and srcVec are same object"), c;
  11923. c.x = d.x;
  11924. c.y = d.y;
  11925. c.z = d.z;
  11926. c.da = d.da;
  11927. return c
  11928. };
  11929. f.c_a = function(c) {
  11930. if (!c) return null;
  11931. var d = new Float32Array(4);
  11932. d[0] = c.x;
  11933. d[1] = c.y;
  11934. d[2] = c.z;
  11935. d[3] = c.da;
  11936. return d
  11937. };
  11938. f.BZa = function(c) {
  11939. this.start = c || new f.ao;
  11940. this.start = c || new f.ao
  11941. };
  11942. f.CZa = function(c, d, e, g, h) {
  11943. c.start.x = d;
  11944. c.start.y = e;
  11945. c.dir.x = g;
  11946. c.dir.y = h
  11947. };
  11948. f.b1 = function(c, d, e, g) {
  11949. var h = c.start.x,
  11950. k = c.start.y,
  11951. m = c.start.x + c.dir.x;
  11952. c = c.start.y + c.dir.y;
  11953. var n = d.x,
  11954. p = d.y,
  11955. s = e.x,
  11956. u = e.y,
  11957. v = (u - p) * (m - h) - (s - n) * (c - k);
  11958. if (v > -f.Bb && v < f.Bb) return f.Ly;
  11959. p = ((s - n) * (k - p) - (u - p) * (h - n)) / v;
  11960. n = h + p * (m - h);
  11961. p = k + p * (c - k);
  11962. if (n < f.bQ(d.x, e.x) - f.Bb || n > f.aQ(d.x, e.x) + f.Bb || p < f.bQ(d.y, e.y) - f.Bb || p > f.aQ(d.y, e.y) + f.Bb || n < f.bQ(h, m) - f.Bb || n > f.aQ(h, m) + f.Bb || p < f.bQ(k, c) - f.Bb || p > f.aQ(k, c) + f.Bb) return f.Ly;
  11963. g.x = n;
  11964. g.y = p;
  11965. return f.My
  11966. };
  11967. f.WZ = function(c, d, e) {
  11968. var g = new f.ao;
  11969. f.eQ(g, d, c);
  11970. e.x = -g.y;
  11971. e.y = g.x;
  11972. f.CDa(e, e)
  11973. };
  11974. f.EZa = function(c, d, e, g, h, k) {
  11975. var m = new f.ao,
  11976. n = new f.ao,
  11977. p = new f.ao,
  11978. s = 1E4,
  11979. u = f.Ly,
  11980. v;
  11981. f.b1(c, d, e, m) && (v = new f.ao, u = f.My, v = f.dQ(f.eQ(v, m, c.start)), v < s && (n.x = m.x, n.y = m.y, s = v, f.WZ(d, e, p)));
  11982. f.b1(c, e, g, m) && (v = new f.ao, u = f.My, v = f.dQ(f.eQ(v, m, c.start)), v < s && (n.x = m.x, n.y = m.y, s = v, f.WZ(e, g, p)));
  11983. f.b1(c, g, d, m) && (v = new f.ao, u = f.My, v = f.dQ(f.eQ(v, m, c.start)), v < s && (n.x = m.x, n.y = m.y, f.WZ(g, d, p)));
  11984. u && (h.x = n.x, h.y = n.y, k && (k.x = p.x, k.y = p.y));
  11985. return u
  11986. };
  11987. f.DZa = function() {
  11988. f.log("cc.kmRay2IntersectCircle() has not been implemented.")
  11989. };
  11990. var Float32Array = Float32Array || Array;
  11991. f.$P = function() {
  11992. this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0])
  11993. };
  11994. f.EYa = function(c, d) {
  11995. for (var e = 0; 9 > e; e++) c.c[e] = d;
  11996. return c
  11997. };
  11998. f.oDa = function(c, d) {
  11999. c.c[0] = d.c[4] * d.c[8] - d.c[5] * d.c[7];
  12000. c.c[1] = d.c[2] * d.c[7] - d.c[1] * d.c[8];
  12001. c.c[2] = d.c[1] * d.c[5] - d.c[2] * d.c[4];
  12002. c.c[3] = d.c[5] * d.c[6] - d.c[3] * d.c[8];
  12003. c.c[4] = d.c[0] * d.c[8] - d.c[2] * d.c[6];
  12004. c.c[5] = d.c[2] * d.c[3] - d.c[0] * d.c[5];
  12005. c.c[6] = d.c[3] * d.c[7] - d.c[4] * d.c[6];
  12006. c.c[8] = d.c[0] * d.c[4] - d.c[1] * d.c[3]
  12007. };
  12008. f.Rea = function(c) {
  12009. c.c[1] = c.c[2] = c.c[3] = c.c[5] = c.c[6] = c.c[7] = 0;
  12010. c.c[0] = c.c[4] = c.c[8] = 1
  12011. };
  12012. f.FYa = function(c, d, e) {
  12013. var g = new f.$P;
  12014. if (0 === d) return null;
  12015. d = 1 / d;
  12016. f.oDa(g, e);
  12017. f.pDa(c, g, d);
  12018. return c
  12019. };
  12020. f.$P.GW = new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]);
  12021. f.GYa = function(c) {
  12022. for (var d = 0; 9 > d; d++)
  12023. if (f.$P.GW[d] !== c.c[d]) return !1;
  12024. return !0
  12025. };
  12026. f.RYa = function(c, d) {
  12027. var e, g;
  12028. for (e = 0; 3 > e; ++e)
  12029. for (g = 0; 3 > g; ++g) c.c[3 * e + g] = d.c[3 * g + e];
  12030. return c
  12031. };
  12032. f.DYa = function(c) {
  12033. var d;
  12034. d = c.c[0] * c.c[4] * c.c[8] + c.c[1] * c.c[5] * c.c[6] + c.c[2] * c.c[3] * c.c[7];
  12035. return d -= c.c[2] * c.c[4] * c.c[6] + c.c[0] * c.c[5] * c.c[7] + c.c[1] * c.c[3] * c.c[8]
  12036. };
  12037. f.HYa = function(c, d, e) {
  12038. d = d.c;
  12039. e = e.c;
  12040. c.c[0] = d[0] * e[0] + d[3] * e[1] + d[6] * e[2];
  12041. c.c[1] = d[1] * e[0] + d[4] * e[1] + d[7] * e[2];
  12042. c.c[2] = d[2] * e[0] + d[5] * e[1] + d[8] * e[2];
  12043. c.c[3] = d[0] * e[3] + d[3] * e[4] + d[6] * e[5];
  12044. c.c[4] = d[1] * e[3] + d[4] * e[4] + d[7] * e[5];
  12045. c.c[5] = d[2] * e[3] + d[5] * e[4] + d[8] * e[5];
  12046. c.c[6] = d[0] * e[6] + d[3] * e[7] + d[6] * e[8];
  12047. c.c[7] = d[1] * e[6] + d[4] * e[7] + d[7] * e[8];
  12048. c.c[8] = d[2] * e[6] + d[5] * e[7] + d[8] * e[8];
  12049. return c
  12050. };
  12051. f.pDa = function(c, d, e) {
  12052. for (var g = 0; 9 > g; g++) c.c[g] = d.c[g] * e
  12053. };
  12054. f.JYa = function(c, d, e) {
  12055. var g = Math.cos(e);
  12056. e = Math.sin(e);
  12057. c.c[0] = g + d.x * d.x * (1 - g);
  12058. c.c[1] = d.z * e + d.y * d.x * (1 - g);
  12059. c.c[2] = -d.y * e + d.z * d.x * (1 - g);
  12060. c.c[3] = -d.z * e + d.x * d.y * (1 - g);
  12061. c.c[4] = g + d.y * d.y * (1 - g);
  12062. c.c[5] = d.x * e + d.z * d.y * (1 - g);
  12063. c.c[6] = d.y * e + d.x * d.z * (1 - g);
  12064. c.c[7] = -d.x * e + d.y * d.z * (1 - g);
  12065. c.c[8] = g + d.z * d.z * (1 - g);
  12066. return c
  12067. };
  12068. f.CYa = function(c, d) {
  12069. if (c == d) return f.log("cc.kmMat3Assign(): pOut equals pIn"), c;
  12070. for (var e = 0; 9 > e; e++) c.c[e] = d.c[e];
  12071. return c
  12072. };
  12073. f.BYa = function(c, d) {
  12074. if (c == d) return !0;
  12075. for (var e = 0; 9 > e; ++e)
  12076. if (!(c.c[e] + f.Bb > d.c[e] && c.c[e] - f.Bb < d.c[e])) return !1;
  12077. return !0
  12078. };
  12079. f.MYa = function(c, d) {
  12080. c.c[0] = 1;
  12081. c.c[1] = 0;
  12082. c.c[2] = 0;
  12083. c.c[3] = 0;
  12084. c.c[4] = Math.cos(d);
  12085. c.c[5] = Math.sin(d);
  12086. c.c[6] = 0;
  12087. c.c[7] = -Math.sin(d);
  12088. c.c[8] = Math.cos(d);
  12089. return c
  12090. };
  12091. f.NYa = function(c, d) {
  12092. c.c[0] = Math.cos(d);
  12093. c.c[1] = 0;
  12094. c.c[2] = -Math.sin(d);
  12095. c.c[3] = 0;
  12096. c.c[4] = 1;
  12097. c.c[5] = 0;
  12098. c.c[6] = Math.sin(d);
  12099. c.c[7] = 0;
  12100. c.c[8] = Math.cos(d);
  12101. return c
  12102. };
  12103. f.OYa = function(c, d) {
  12104. c.c[0] = Math.cos(d);
  12105. c.c[1] = -Math.sin(d);
  12106. c.c[2] = 0;
  12107. c.c[3] = Math.sin(d);
  12108. c.c[4] = Math.cos(d);
  12109. c.c[5] = 0;
  12110. c.c[6] = 0;
  12111. c.c[7] = 0;
  12112. c.c[8] = 1;
  12113. return c
  12114. };
  12115. f.IYa = function(c, d) {
  12116. c.c[0] = Math.cos(d);
  12117. c.c[1] = Math.sin(d);
  12118. c.c[2] = 0;
  12119. c.c[3] = -Math.sin(d);
  12120. c.c[4] = Math.cos(d);
  12121. c.c[5] = 0;
  12122. c.c[6] = 0;
  12123. c.c[7] = 0;
  12124. c.c[8] = 1;
  12125. return c
  12126. };
  12127. f.PYa = function(c, d, e) {
  12128. f.Rea(c);
  12129. c.c[0] = d;
  12130. c.c[4] = e;
  12131. return c
  12132. };
  12133. f.QYa = function(c, d, e) {
  12134. f.Rea(c);
  12135. c.c[6] = d;
  12136. c.c[7] = e;
  12137. return c
  12138. };
  12139. f.KYa = function(c, d) {
  12140. if (!d || !c) return null;
  12141. c.c[0] = 1 - 2 * (d.y * d.y + d.z * d.z);
  12142. c.c[1] = 2 * (d.x * d.y - d.da * d.z);
  12143. c.c[2] = 2 * (d.x * d.z + d.da * d.y);
  12144. c.c[3] = 2 * (d.x * d.y + d.da * d.z);
  12145. c.c[4] = 1 - 2 * (d.x * d.x + d.z * d.z);
  12146. c.c[5] = 2 * (d.y * d.z - d.da * d.x);
  12147. c.c[6] = 2 * (d.x * d.z - d.da * d.y);
  12148. c.c[7] = 2 * (d.y * d.z + d.da * d.x);
  12149. c.c[8] = 1 - 2 * (d.x * d.x + d.y * d.y);
  12150. return c
  12151. };
  12152. f.LYa = function(c, d, e) {
  12153. f.Xea(void 0, e);
  12154. f.Yea(void 0, c);
  12155. return c
  12156. };
  12157. f.Ma = function() {
  12158. this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
  12159. };
  12160. f.UYa = function(c, d) {
  12161. c.c[0] = c.c[1] = c.c[2] = c.c[3] = c.c[4] = c.c[5] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[10] = c.c[11] = c.c[12] = c.c[13] = c.c[14] = c.c[15] = d
  12162. };
  12163. f.Ex = function(c) {
  12164. c.c[1] = c.c[2] = c.c[3] = c.c[4] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[11] = c.c[12] = c.c[13] = c.c[14] = 0;
  12165. c.c[0] = c.c[5] = c.c[10] = c.c[15] = 1
  12166. };
  12167. f.Ma.Mk = function(c, d, e) {
  12168. return c.c[d + 4 * e]
  12169. };
  12170. f.Ma.Kt = function(c, d, e, g) {
  12171. c.c[d + 4 * e] = g
  12172. };
  12173. f.Ma.Tt = function(c, d, e, g, h) {
  12174. var k = f.Ma.Mk(c, d, e);
  12175. f.Ma.Kt(c, d, e, f.Ma.Mk(c, g, h));
  12176. f.Ma.Kt(c, g, h, k)
  12177. };
  12178. f.Ma.xra = function(c, d) {
  12179. var e, g = 0,
  12180. h = 0,
  12181. k, m, n, p = [0, 0, 0, 0],
  12182. s = [0, 0, 0, 0],
  12183. u = [0, 0, 0, 0];
  12184. for (e = 0; 4 > e; e++) {
  12185. for (k = n = 0; 4 > k; k++)
  12186. if (1 != u[k])
  12187. for (m = 0; 4 > m; m++) 0 == u[m] && Math.abs(f.Ma.Mk(c, k, m)) >= n && (n = Math.abs(f.Ma.Mk(c, k, m)), h = k, g = m);
  12188. ++u[g];
  12189. if (h != g) {
  12190. for (k = 0; 4 > k; k++) f.Ma.Tt(c, h, k, g, k);
  12191. for (k = 0; 4 > k; k++) f.Ma.Tt(d, h, k, g, k)
  12192. }
  12193. s[e] = h;
  12194. p[e] = g;
  12195. if (0 == f.Ma.Mk(c, g, g)) return f.Ly;
  12196. m = 1 / f.Ma.Mk(c, g, g);
  12197. f.Ma.Kt(c, g, g, 1);
  12198. for (k = 0; 4 > k; k++) f.Ma.Kt(c, g, k, f.Ma.Mk(c, g, k) * m);
  12199. for (k = 0; 4 > k; k++) f.Ma.Kt(d, g, k, f.Ma.Mk(d, g, k) * m);
  12200. for (m = 0; 4 > m; m++)
  12201. if (m !=
  12202. g) {
  12203. n = f.Ma.Mk(c, m, g);
  12204. f.Ma.Kt(c, m, g, 0);
  12205. for (k = 0; 4 > k; k++) f.Ma.Kt(c, m, k, f.Ma.Mk(c, m, k) - f.Ma.Mk(c, g, k) * n);
  12206. for (k = 0; 4 > k; k++) f.Ma.Kt(d, m, k, f.Ma.Mk(c, m, k) - f.Ma.Mk(d, g, k) * n)
  12207. }
  12208. }
  12209. for (k = 3; 0 <= k; k--)
  12210. if (s[k] != p[k])
  12211. for (m = 0; 4 > m; m++) f.Ma.Tt(c, m, s[k], m, p[k]);
  12212. return f.My
  12213. };
  12214. f.Ma.GW = new Float32Array([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]);
  12215. f.rDa = function(c, d) {
  12216. var e = new f.Ma,
  12217. g = new f.Ma;
  12218. f.Mp(e, d);
  12219. f.Ex(g);
  12220. f.Ma.xra(e, g) != f.Ly && f.Mp(c, e)
  12221. };
  12222. f.YYa = function(c) {
  12223. for (var d = 0; 16 > d; d++)
  12224. if (f.Ma.GW[d] != c.c[d]) return !1;
  12225. return !0
  12226. };
  12227. f.fZa = function(c, d) {
  12228. var e, g, h = c.c,
  12229. k = d.c;
  12230. for (g = 0; 4 > g; ++g)
  12231. for (e = 0; 4 > e; ++e) h[4 * g + e] = k[4 * e + g];
  12232. return c
  12233. };
  12234. f.Np = function(c, d, e) {
  12235. c = c.c;
  12236. var g = d.c[0],
  12237. h = d.c[1],
  12238. k = d.c[2],
  12239. m = d.c[3],
  12240. n = d.c[4],
  12241. p = d.c[5],
  12242. s = d.c[6],
  12243. u = d.c[7],
  12244. v = d.c[8],
  12245. z = d.c[9],
  12246. A = d.c[10],
  12247. B = d.c[11],
  12248. C = d.c[12],
  12249. G = d.c[13],
  12250. L = d.c[14];
  12251. d = d.c[15];
  12252. var O = e.c[0],
  12253. R = e.c[1],
  12254. M = e.c[2],
  12255. K = e.c[3],
  12256. P = e.c[4],
  12257. I = e.c[5],
  12258. J = e.c[6],
  12259. V = e.c[7],
  12260. ma = e.c[8],
  12261. W = e.c[9],
  12262. fa = e.c[10],
  12263. ta = e.c[11],
  12264. Y = e.c[12],
  12265. wa = e.c[13],
  12266. Z = e.c[14];
  12267. e = e.c[15];
  12268. c[0] = O * g + R * n + M * v + K * C;
  12269. c[1] = O * h + R * p + M * z + K * G;
  12270. c[2] = O * k + R * s + M * A + K * L;
  12271. c[3] = O * m + R * u + M * B + K * d;
  12272. c[4] = P * g + I * n + J * v + V * C;
  12273. c[5] = P * h + I * p + J * z + V * G;
  12274. c[6] = P * k + I * s + J * A + V * L;
  12275. c[7] = P * m + I * u + J *
  12276. B + V * d;
  12277. c[8] = ma * g + W * n + fa * v + ta * C;
  12278. c[9] = ma * h + W * p + fa * z + ta * G;
  12279. c[10] = ma * k + W * s + fa * A + ta * L;
  12280. c[11] = ma * m + W * u + fa * B + ta * d;
  12281. c[12] = Y * g + wa * n + Z * v + e * C;
  12282. c[13] = Y * h + wa * p + Z * z + e * G;
  12283. c[14] = Y * k + wa * s + Z * A + e * L;
  12284. c[15] = Y * m + wa * u + Z * B + e * d
  12285. };
  12286. f.yAa = function() {
  12287. var c = f.Au.top.c,
  12288. d = f.Wr.top.c,
  12289. e = new Float32Array(16);
  12290. e[0] = c[0] * d[0] + c[4] * d[1] + c[8] * d[2] + c[12] * d[3];
  12291. e[1] = c[1] * d[0] + c[5] * d[1] + c[9] * d[2] + c[13] * d[3];
  12292. e[2] = c[2] * d[0] + c[6] * d[1] + c[10] * d[2] + c[14] * d[3];
  12293. e[3] = c[3] * d[0] + c[7] * d[1] + c[11] * d[2] + c[15] * d[3];
  12294. e[4] = c[0] * d[4] + c[4] * d[5] + c[8] * d[6] + c[12] * d[7];
  12295. e[5] = c[1] * d[4] + c[5] * d[5] + c[9] * d[6] + c[13] * d[7];
  12296. e[6] = c[2] * d[4] + c[6] * d[5] + c[10] * d[6] + c[14] * d[7];
  12297. e[7] = c[3] * d[4] + c[7] * d[5] + c[11] * d[6] + c[15] * d[7];
  12298. e[8] = c[0] * d[8] + c[4] * d[9] + c[8] * d[10] + c[12] * d[11];
  12299. e[9] = c[1] * d[8] +
  12300. c[5] * d[9] + c[9] * d[10] + c[13] * d[11];
  12301. e[10] = c[2] * d[8] + c[6] * d[9] + c[10] * d[10] + c[14] * d[11];
  12302. e[11] = c[3] * d[8] + c[7] * d[9] + c[11] * d[10] + c[15] * d[11];
  12303. e[12] = c[0] * d[12] + c[4] * d[13] + c[8] * d[14] + c[12] * d[15];
  12304. e[13] = c[1] * d[12] + c[5] * d[13] + c[9] * d[14] + c[13] * d[15];
  12305. e[14] = c[2] * d[12] + c[6] * d[13] + c[10] * d[14] + c[14] * d[15];
  12306. e[15] = c[3] * d[12] + c[7] * d[13] + c[11] * d[14] + c[15] * d[15];
  12307. return e
  12308. };
  12309. f.DUa = function(c, d, e) {
  12310. c = c.c;
  12311. d = d.c;
  12312. var g = e.c;
  12313. g[0] = c[0] * d[0] + c[4] * d[1] + c[8] * d[2] + c[12] * d[3];
  12314. g[1] = c[1] * d[0] + c[5] * d[1] + c[9] * d[2] + c[13] * d[3];
  12315. g[2] = c[2] * d[0] + c[6] * d[1] + c[10] * d[2] + c[14] * d[3];
  12316. g[3] = c[3] * d[0] + c[7] * d[1] + c[11] * d[2] + c[15] * d[3];
  12317. g[4] = c[0] * d[4] + c[4] * d[5] + c[8] * d[6] + c[12] * d[7];
  12318. g[5] = c[1] * d[4] + c[5] * d[5] + c[9] * d[6] + c[13] * d[7];
  12319. g[6] = c[2] * d[4] + c[6] * d[5] + c[10] * d[6] + c[14] * d[7];
  12320. g[7] = c[3] * d[4] + c[7] * d[5] + c[11] * d[6] + c[15] * d[7];
  12321. g[8] = c[0] * d[8] + c[4] * d[9] + c[8] * d[10] + c[12] * d[11];
  12322. g[9] = c[1] * d[8] + c[5] * d[9] + c[9] * d[10] + c[13] *
  12323. d[11];
  12324. g[10] = c[2] * d[8] + c[6] * d[9] + c[10] * d[10] + c[14] * d[11];
  12325. g[11] = c[3] * d[8] + c[7] * d[9] + c[11] * d[10] + c[15] * d[11];
  12326. g[12] = c[0] * d[12] + c[4] * d[13] + c[8] * d[14] + c[12] * d[15];
  12327. g[13] = c[1] * d[12] + c[5] * d[13] + c[9] * d[14] + c[13] * d[15];
  12328. g[14] = c[2] * d[12] + c[6] * d[13] + c[10] * d[14] + c[14] * d[15];
  12329. g[15] = c[3] * d[12] + c[7] * d[13] + c[11] * d[14] + c[15] * d[15];
  12330. return e.c
  12331. };
  12332. f.Mp = function(c, d) {
  12333. if (c == d) f.log("cc.kmMat4Assign(): pOut equals pIn");
  12334. else {
  12335. var e = c.c,
  12336. g = d.c;
  12337. e[0] = g[0];
  12338. e[1] = g[1];
  12339. e[2] = g[2];
  12340. e[3] = g[3];
  12341. e[4] = g[4];
  12342. e[5] = g[5];
  12343. e[6] = g[6];
  12344. e[7] = g[7];
  12345. e[8] = g[8];
  12346. e[9] = g[9];
  12347. e[10] = g[10];
  12348. e[11] = g[11];
  12349. e[12] = g[12];
  12350. e[13] = g[13];
  12351. e[14] = g[14];
  12352. e[15] = g[15]
  12353. }
  12354. };
  12355. f.SYa = function(c, d) {
  12356. if (c == d) return f.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."), !0;
  12357. for (var e = 0; 16 > e; e++)
  12358. if (!(c.c[e] + f.Bb > d.c[e] && c.c[e] - f.Bb < d.c[e])) return !1;
  12359. return !0
  12360. };
  12361. f.cZa = function(c, d) {
  12362. c.c[0] = 1;
  12363. c.c[1] = 0;
  12364. c.c[2] = 0;
  12365. c.c[3] = 0;
  12366. c.c[4] = 0;
  12367. c.c[5] = Math.cos(d);
  12368. c.c[6] = Math.sin(d);
  12369. c.c[7] = 0;
  12370. c.c[8] = 0;
  12371. c.c[9] = -Math.sin(d);
  12372. c.c[10] = Math.cos(d);
  12373. c.c[11] = 0;
  12374. c.c[12] = 0;
  12375. c.c[13] = 0;
  12376. c.c[14] = 0;
  12377. c.c[15] = 1;
  12378. return c
  12379. };
  12380. f.dZa = function(c, d) {
  12381. c.c[0] = Math.cos(d);
  12382. c.c[1] = 0;
  12383. c.c[2] = -Math.sin(d);
  12384. c.c[3] = 0;
  12385. c.c[4] = 0;
  12386. c.c[5] = 1;
  12387. c.c[6] = 0;
  12388. c.c[7] = 0;
  12389. c.c[8] = Math.sin(d);
  12390. c.c[9] = 0;
  12391. c.c[10] = Math.cos(d);
  12392. c.c[11] = 0;
  12393. c.c[12] = 0;
  12394. c.c[13] = 0;
  12395. c.c[14] = 0;
  12396. c.c[15] = 1;
  12397. return c
  12398. };
  12399. f.eZa = function(c, d) {
  12400. c.c[0] = Math.cos(d);
  12401. c.c[1] = Math.sin(d);
  12402. c.c[2] = 0;
  12403. c.c[3] = 0;
  12404. c.c[4] = -Math.sin(d);
  12405. c.c[5] = Math.cos(d);
  12406. c.c[6] = 0;
  12407. c.c[7] = 0;
  12408. c.c[8] = 0;
  12409. c.c[9] = 0;
  12410. c.c[10] = 1;
  12411. c.c[11] = 0;
  12412. c.c[12] = 0;
  12413. c.c[13] = 0;
  12414. c.c[14] = 0;
  12415. c.c[15] = 1;
  12416. return c
  12417. };
  12418. f.ZYa = function(c, d, e, g) {
  12419. var h = Math.cos(d);
  12420. d = Math.sin(d);
  12421. var k = Math.cos(e);
  12422. e = Math.sin(e);
  12423. var m = Math.cos(g);
  12424. g = Math.sin(g);
  12425. var n = d * e,
  12426. p = h * e;
  12427. c.c[0] = k * m;
  12428. c.c[4] = k * g;
  12429. c.c[8] = -e;
  12430. c.c[1] = n * m - h * g;
  12431. c.c[5] = n * g + h * m;
  12432. c.c[9] = d * k;
  12433. c.c[2] = p * m + d * g;
  12434. c.c[6] = p * g - d * m;
  12435. c.c[10] = h * k;
  12436. c.c[3] = c.c[7] = c.c[11] = 0;
  12437. c.c[15] = 1;
  12438. return c
  12439. };
  12440. f.$Ya = function(c, d) {
  12441. c.c[0] = 1 - 2 * (d.y * d.y + d.z * d.z);
  12442. c.c[1] = 2 * (d.x * d.y + d.z * d.da);
  12443. c.c[2] = 2 * (d.x * d.z - d.y * d.da);
  12444. c.c[3] = 0;
  12445. c.c[4] = 2 * (d.x * d.y - d.z * d.da);
  12446. c.c[5] = 1 - 2 * (d.x * d.x + d.z * d.z);
  12447. c.c[6] = 2 * (d.z * d.y + d.x * d.da);
  12448. c.c[7] = 0;
  12449. c.c[8] = 2 * (d.x * d.z + d.y * d.da);
  12450. c.c[9] = 2 * (d.y * d.z - d.x * d.da);
  12451. c.c[10] = 1 - 2 * (d.x * d.x + d.y * d.y);
  12452. c.c[11] = 0;
  12453. c.c[12] = 0;
  12454. c.c[13] = 0;
  12455. c.c[14] = 0;
  12456. c.c[15] = 1;
  12457. return c
  12458. };
  12459. f.bZa = function(c, d, e) {
  12460. c.c[0] = d.c[0];
  12461. c.c[1] = d.c[1];
  12462. c.c[2] = d.c[2];
  12463. c.c[3] = 0;
  12464. c.c[4] = d.c[3];
  12465. c.c[5] = d.c[4];
  12466. c.c[6] = d.c[5];
  12467. c.c[7] = 0;
  12468. c.c[8] = d.c[6];
  12469. c.c[9] = d.c[7];
  12470. c.c[10] = d.c[8];
  12471. c.c[11] = 0;
  12472. c.c[12] = e.x;
  12473. c.c[13] = e.y;
  12474. c.c[14] = e.z;
  12475. c.c[15] = 1;
  12476. return c
  12477. };
  12478. f.uDa = function(c, d, e, g) {
  12479. c.c[0] = d;
  12480. c.c[5] = e;
  12481. c.c[10] = g;
  12482. c.c[15] = 1;
  12483. c.c[1] = c.c[2] = c.c[3] = c.c[4] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[11] = c.c[12] = c.c[13] = c.c[14] = 0
  12484. };
  12485. f.Tea = function(c, d, e, g) {
  12486. c.c[0] = c.c[5] = c.c[10] = c.c[15] = 1;
  12487. c.c[1] = c.c[2] = c.c[3] = c.c[4] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[11] = 0;
  12488. c.c[12] = d;
  12489. c.c[13] = e;
  12490. c.c[14] = g
  12491. };
  12492. f.XYa = function(c, d) {
  12493. c.x = d.c[4];
  12494. c.y = d.c[5];
  12495. c.z = d.c[6];
  12496. f.hk(c, c);
  12497. return c
  12498. };
  12499. f.WYa = function(c, d) {
  12500. c.x = d.c[0];
  12501. c.y = d.c[1];
  12502. c.z = d.c[2];
  12503. f.hk(c, c);
  12504. return c
  12505. };
  12506. f.VYa = function(c, d) {
  12507. c.x = d.c[8];
  12508. c.y = d.c[9];
  12509. c.z = d.c[10];
  12510. f.hk(c, c);
  12511. return c
  12512. };
  12513. f.sDa = function(c, d, e) {
  12514. var g = f.bI(30),
  12515. h = e - 0.1,
  12516. k = Math.sin(g);
  12517. 0 != h && 0 != k && 0 != d && (g = Math.cos(g) / k, f.Ex(c), c.c[0] = g / d, c.c[5] = g, c.c[10] = -(e + 0.1) / h, c.c[11] = -1, c.c[14] = -0.2 * e / h, c.c[15] = 0)
  12518. };
  12519. f.$0 = function(c, d, e, g, h, k, m) {
  12520. f.Ex(c);
  12521. c.c[0] = 2 / (e - d);
  12522. c.c[5] = 2 / (h - g);
  12523. c.c[10] = -2 / (m - k);
  12524. c.c[12] = -((e + d) / (e - d));
  12525. c.c[13] = -((h + g) / (h - g));
  12526. c.c[14] = -((m + k) / (m - k))
  12527. };
  12528. f.Sea = function(c, d, e, g) {
  12529. var h = new f.cd,
  12530. k = new f.cd,
  12531. m = new f.cd,
  12532. n = new f.cd,
  12533. p = new f.Ma;
  12534. f.e1(h, e, d);
  12535. f.hk(h, h);
  12536. f.cI(k, g);
  12537. f.hk(k, k);
  12538. f.vu(m, h, k);
  12539. f.hk(m, m);
  12540. f.vu(n, m, h);
  12541. f.hk(m, m);
  12542. f.Ex(c);
  12543. c.c[0] = m.x;
  12544. c.c[4] = m.y;
  12545. c.c[8] = m.z;
  12546. c.c[1] = n.x;
  12547. c.c[5] = n.y;
  12548. c.c[9] = n.z;
  12549. c.c[2] = -h.x;
  12550. c.c[6] = -h.y;
  12551. c.c[10] = -h.z;
  12552. f.Tea(p, -d.x, -d.y, -d.z);
  12553. f.Np(c, c, p)
  12554. };
  12555. f.tDa = function(c, d, e) {
  12556. var g = Math.cos(e);
  12557. e = Math.sin(e);
  12558. var h = new f.cd;
  12559. f.hk(h, d);
  12560. c.c[0] = g + h.x * h.x * (1 - g);
  12561. c.c[1] = h.z * e + h.y * h.x * (1 - g);
  12562. c.c[2] = -h.y * e + h.z * h.x * (1 - g);
  12563. c.c[3] = 0;
  12564. c.c[4] = -h.z * e + h.x * h.y * (1 - g);
  12565. c.c[5] = g + h.y * h.y * (1 - g);
  12566. c.c[6] = h.x * e + h.z * h.y * (1 - g);
  12567. c.c[7] = 0;
  12568. c.c[8] = h.y * e + h.x * h.z * (1 - g);
  12569. c.c[9] = -h.x * e + h.y * h.z * (1 - g);
  12570. c.c[10] = g + h.z * h.z * (1 - g);
  12571. c.c[11] = 0;
  12572. c.c[12] = 0;
  12573. c.c[13] = 0;
  12574. c.c[14] = 0;
  12575. c.c[15] = 1
  12576. };
  12577. f.qDa = function(c, d) {
  12578. c.c[0] = d.c[0];
  12579. c.c[1] = d.c[1];
  12580. c.c[2] = d.c[2];
  12581. c.c[3] = d.c[4];
  12582. c.c[4] = d.c[5];
  12583. c.c[5] = d.c[6];
  12584. c.c[6] = d.c[8];
  12585. c.c[7] = d.c[9];
  12586. c.c[8] = d.c[10]
  12587. };
  12588. f.TYa = function(c, d, e) {
  12589. switch (e) {
  12590. case f.fma:
  12591. c.a = d.c[3] - d.c[0];
  12592. c.b = d.c[7] - d.c[4];
  12593. c.G = d.c[11] - d.c[8];
  12594. c.P = d.c[15] - d.c[12];
  12595. break;
  12596. case f.dma:
  12597. c.a = d.c[3] + d.c[0];
  12598. c.b = d.c[7] + d.c[4];
  12599. c.G = d.c[11] + d.c[8];
  12600. c.P = d.c[15] + d.c[12];
  12601. break;
  12602. case f.bma:
  12603. c.a = d.c[3] + d.c[1];
  12604. c.b = d.c[7] + d.c[5];
  12605. c.G = d.c[11] + d.c[9];
  12606. c.P = d.c[15] + d.c[13];
  12607. break;
  12608. case f.gma:
  12609. c.a = d.c[3] - d.c[1];
  12610. c.b = d.c[7] - d.c[5];
  12611. c.G = d.c[11] - d.c[9];
  12612. c.P = d.c[15] - d.c[13];
  12613. break;
  12614. case f.cma:
  12615. c.a = d.c[3] - d.c[2];
  12616. c.b = d.c[7] - d.c[6];
  12617. c.G = d.c[11] - d.c[10];
  12618. c.P = d.c[15] - d.c[14];
  12619. break;
  12620. case f.ema:
  12621. c.a =
  12622. d.c[3] + d.c[2];
  12623. c.b = d.c[7] + d.c[6];
  12624. c.G = d.c[11] + d.c[10];
  12625. c.P = d.c[15] + d.c[14];
  12626. break;
  12627. default:
  12628. f.log("cc.kmMat4ExtractPlane(): Invalid plane index")
  12629. }
  12630. d = Math.sqrt(c.a * c.a + c.b * c.b + c.G * c.G);
  12631. c.a /= d;
  12632. c.b /= d;
  12633. c.G /= d;
  12634. c.P /= d;
  12635. return c
  12636. };
  12637. f.aZa = function(c, d, e) {
  12638. d = new ha;
  12639. var g = new f.$P;
  12640. f.qDa(g, e);
  12641. f.Xea(d, g);
  12642. f.Yea(d, c);
  12643. return c
  12644. };
  12645. f.dma = 0;
  12646. f.fma = 1;
  12647. f.bma = 2;
  12648. f.gma = 3;
  12649. f.ema = 4;
  12650. f.cma = 5;
  12651. f.gZa = function(c, d, e, g) {
  12652. this.a = c || 0;
  12653. this.b = d || 0;
  12654. this.G = e || 0;
  12655. this.P = g || 0
  12656. };
  12657. f.ana = 0;
  12658. f.$ma = 1;
  12659. f.bna = 2;
  12660. f.iZa = function(c, d) {
  12661. return c.a * d.x + c.b * d.y + c.G * d.z + c.P * d.da
  12662. };
  12663. f.jZa = function(c, d) {
  12664. return c.a * d.x + c.b * d.y + c.G * d.z + c.P
  12665. };
  12666. f.kZa = function(c, d) {
  12667. return c.a * d.x + c.b * d.y + c.G * d.z
  12668. };
  12669. f.lZa = function(c, d, e) {
  12670. c.a = e.x;
  12671. c.b = e.y;
  12672. c.G = e.z;
  12673. c.P = -f.c1(e, d);
  12674. return c
  12675. };
  12676. f.mZa = function(c, d, e, g) {
  12677. var h = new f.cd,
  12678. k = new f.cd,
  12679. m = new f.cd;
  12680. f.e1(k, e, d);
  12681. f.e1(m, g, d);
  12682. f.vu(h, k, m);
  12683. f.hk(h, h);
  12684. c.a = h.x;
  12685. c.b = h.y;
  12686. c.G = h.z;
  12687. c.P = f.c1(f.d1(h, h, -1), d);
  12688. return c
  12689. };
  12690. f.nZa = function() {
  12691. throw "cc.kmPlaneIntersectLine() hasn't been implemented.";
  12692. };
  12693. f.oZa = function(c, d) {
  12694. var e = new f.cd;
  12695. e.x = d.a;
  12696. e.y = d.b;
  12697. e.z = d.G;
  12698. var g = 1 / f.$ea(e);
  12699. f.hk(e, e);
  12700. c.a = e.x;
  12701. c.b = e.y;
  12702. c.G = e.z;
  12703. c.P = d.P * g;
  12704. return c
  12705. };
  12706. f.pZa = function() {
  12707. f.log("cc.kmPlaneScale() has not been implemented.")
  12708. };
  12709. f.hZa = function(c, d) {
  12710. var e = c.a * d.x + c.b * d.y + c.G * d.z + c.P;
  12711. return 0.001 < e ? f.ana : -0.001 > e ? f.$ma : f.bna
  12712. };
  12713. function ha() {
  12714. this.da = this.z = this.y = this.x = 0
  12715. }
  12716. f.yDa = function(c, d) {
  12717. c.x = -d.x;
  12718. c.y = -d.y;
  12719. c.z = -d.z;
  12720. c.da = d.da;
  12721. return c
  12722. };
  12723. f.zDa = function(c, d) {
  12724. return c.da * d.da + c.x * d.x + c.y * d.y + c.z * d.z
  12725. };
  12726. f.rZa = function(c) {
  12727. return c
  12728. };
  12729. f.ADa = function(c) {
  12730. c.x = 0;
  12731. c.y = 0;
  12732. c.z = 0;
  12733. c.da = 1
  12734. };
  12735. f.sZa = function(c, d) {
  12736. var e = f.Uea(d),
  12737. g = new ha;
  12738. if (Math.abs(e) > f.Bb) return c.x = 0, c.y = 0, c.z = 0, c.da = 0, c;
  12739. f.cQ(c, f.yDa(g, d), 1 / e);
  12740. return c
  12741. };
  12742. f.tZa = function(c) {
  12743. return 0 == c.x && 0 == c.y && 0 == c.z && 1 == c.da
  12744. };
  12745. f.Uea = function(c) {
  12746. return Math.sqrt(f.BDa(c))
  12747. };
  12748. f.BDa = function(c) {
  12749. return c.x * c.x + c.y * c.y + c.z * c.z + c.da * c.da
  12750. };
  12751. f.uZa = function(c) {
  12752. return c
  12753. };
  12754. f.vZa = function(c, d, e) {
  12755. c.da = d.da * e.da - d.x * e.x - d.y * e.y - d.z * e.z;
  12756. c.x = d.da * e.x + d.x * e.da + d.y * e.z - d.z * e.y;
  12757. c.y = d.da * e.y + d.y * e.da + d.z * e.x - d.x * e.z;
  12758. c.z = d.da * e.z + d.z * e.da + d.x * e.y - d.y * e.x;
  12759. return c
  12760. };
  12761. f.Vea = function(c, d) {
  12762. var e = f.Uea(d);
  12763. if (Math.abs(e) <= f.Bb) throw "cc.kmQuaternionNormalize(): pIn is an invalid value";
  12764. f.cQ(c, d, 1 / e)
  12765. };
  12766. f.Wea = function(c, d) {
  12767. var e = 0.5 * f.a1,
  12768. g = Math.sin(e);
  12769. c.da = Math.cos(e);
  12770. c.x = d.x * g;
  12771. c.y = d.y * g;
  12772. c.z = d.z * g
  12773. };
  12774. f.Xea = function(c, d) {
  12775. var e, g, h, k;
  12776. e = [];
  12777. g = k = 0;
  12778. if (d) {
  12779. e[0] = d.c[0];
  12780. e[1] = d.c[3];
  12781. e[2] = d.c[6];
  12782. e[4] = d.c[1];
  12783. e[5] = d.c[4];
  12784. e[6] = d.c[7];
  12785. e[8] = d.c[2];
  12786. e[9] = d.c[5];
  12787. e[10] = d.c[8];
  12788. e[15] = 1;
  12789. var m = e[0];
  12790. g = m[0] + m[5] + m[10] + 1;
  12791. g > f.Bb ? (k = 2 * Math.sqrt(g), e = (m[9] - m[6]) / k, g = (m[2] - m[8]) / k, h = (m[4] - m[1]) / k, k *= 0.25) : m[0] > m[5] && m[0] > m[10] ? (k = 2 * Math.sqrt(1 + m[0] - m[5] - m[10]), e = 0.25 * k, g = (m[4] + m[1]) / k, h = (m[2] + m[8]) / k, k = (m[9] - m[6]) / k) : m[5] > m[10] ? (k = 2 * Math.sqrt(1 + m[5] - m[0] - m[10]), e = (m[4] + m[1]) / k, g = 0.25 * k, h = (m[9] + m[6]) / k, k = (m[2] - m[8]) / k) : (k = 2 *
  12792. Math.sqrt(1 + m[10] - m[0] - m[5]), e = (m[2] + m[8]) / k, g = (m[9] + m[6]) / k, h = 0.25 * k, k = (m[4] - m[1]) / k);
  12793. c.x = e;
  12794. c.y = g;
  12795. c.z = h;
  12796. c.da = k
  12797. }
  12798. };
  12799. f.yZa = function(c, d, e, g) {
  12800. var h, k, m, n, p;
  12801. h = f.bI(e) / 2;
  12802. k = f.bI(d) / 2;
  12803. m = f.bI(g) / 2;
  12804. g = Math.cos(h);
  12805. d = Math.cos(k);
  12806. e = Math.cos(m);
  12807. h = Math.sin(h);
  12808. k = Math.sin(k);
  12809. m = Math.sin(m);
  12810. n = d * e;
  12811. p = k * m;
  12812. c.da = g * n + h * p;
  12813. c.x = h * n - g * p;
  12814. c.y = g * k * e + h * d * m;
  12815. c.z = g * d * m - h * k * e;
  12816. f.Vea(c, c);
  12817. return c
  12818. };
  12819. f.zZa = function(c, d, e, g) {
  12820. if (d.x == e.x && d.y == e.y && d.z == e.z && d.da == e.da) return c.x = d.x, c.y = d.y, c.z = d.z, c.da = d.da, c;
  12821. var h = f.zDa(d, e),
  12822. k = Math.acos(h),
  12823. h = Math.sqrt(1 - f.yf(h)),
  12824. m = Math.sin(g * k) / h,
  12825. n = new ha,
  12826. p = new ha;
  12827. f.cQ(n, d, Math.sin((1 - g) * k) / h);
  12828. f.cQ(p, e, m);
  12829. f.xDa(c, n, p);
  12830. return c
  12831. };
  12832. f.Yea = function(c, d) {
  12833. var e;
  12834. e = Math.sqrt(f.yf(c.x) + f.yf(c.y) + f.yf(c.z));
  12835. e > -f.Bb && e < f.Bb || e < 2 * f.a1 + f.Bb && e > 2 * f.a1 - f.Bb ? (d.x = 0, d.y = 0, d.z = 1) : (d.x = c.x / e, d.y = c.y / e, d.z = c.z / e, f.hk(d, d))
  12836. };
  12837. f.cQ = function(c, d, e) {
  12838. c.x = d.x * e;
  12839. c.y = d.y * e;
  12840. c.z = d.z * e;
  12841. c.da = d.da * e
  12842. };
  12843. f.qZa = function(c, d) {
  12844. c.x = d.x;
  12845. c.y = d.y;
  12846. c.z = d.z;
  12847. c.da = d.da;
  12848. return c
  12849. };
  12850. f.xDa = function(c, d, e) {
  12851. c.x = d.x + e.x;
  12852. c.y = d.y + e.y;
  12853. c.z = d.z + e.z;
  12854. c.da = d.da + e.da
  12855. };
  12856. f.xZa = function(c, d, e, g) {
  12857. var h = new f.cd,
  12858. k = new f.cd;
  12859. f.cI(h, d);
  12860. f.cI(k, e);
  12861. f.hk(h, h);
  12862. f.hk(k, k);
  12863. e = f.c1(h, k);
  12864. if (1 <= e) return f.ADa(c), c; - 0.999999 > e ? Math.abs(f.afa(g)) < f.Bb ? f.Wea(c, g) : (h = new f.cd, k = new f.cd, k.x = 1, k.y = 0, k.z = 0, f.vu(h, k, d), Math.abs(f.afa(h)) < f.Bb && (k = new f.cd, k.x = 0, k.y = 1, k.z = 0, f.vu(h, k, d)), f.hk(h, h), f.Wea(c, h)) : (d = Math.sqrt(2 * (1 + e)), g = 1 / d, e = new f.cd, f.vu(e, h, k), c.x = e.x * g, c.y = e.y * g, c.z = e.z * g, c.da = 0.5 * d, f.Vea(c, c));
  12865. return c
  12866. };
  12867. f.wZa = function(c, d, e) {
  12868. var g = new f.cd,
  12869. h = new f.cd,
  12870. k = new f.cd;
  12871. k.x = d.x;
  12872. k.y = d.y;
  12873. k.z = d.z;
  12874. f.vu(g, k, e);
  12875. f.vu(h, k, g);
  12876. f.d1(g, g, 2 * d.da);
  12877. f.d1(h, h, 2);
  12878. f.Zea(c, e, g);
  12879. f.Zea(c, c, h);
  12880. return c
  12881. };
  12882. f.qYa = function(c, d) {
  12883. this.min = c || new f.cd;
  12884. this.max = d || new f.cd
  12885. };
  12886. f.sYa = function(c, d) {
  12887. return c.x >= d.min.x && c.x <= d.max.x && c.y >= d.min.y && c.y <= d.max.y && c.z >= d.min.z && c.z <= d.max.z ? f.My : f.Ly
  12888. };
  12889. f.rYa = function(c, d) {
  12890. f.cI(c.min, d.min);
  12891. f.cI(c.max, d.max);
  12892. return c
  12893. };
  12894. f.tYa = function() {
  12895. f.log("cc.kmAABBScale hasn't been supported.")
  12896. };
  12897. f.fQ = function(c, d, e, g) {
  12898. this.top = e;
  12899. this.stack = g
  12900. };
  12901. f.fQ.uLa = 30;
  12902. f.f1 = function(c) {
  12903. c.stack = [];
  12904. c.top = null
  12905. };
  12906. f.gQ = function(c, d) {
  12907. c.stack.push(c.top);
  12908. c.top = new f.Ma;
  12909. f.Mp(c.top, d)
  12910. };
  12911. f.e_a = function(c) {
  12912. c.top = c.stack.pop()
  12913. };
  12914. f.g1 = function(c) {
  12915. c.stack = null;
  12916. c.top = null
  12917. };
  12918. f.mq = 5888;
  12919. f.nq = 5889;
  12920. f.H5 = 5890;
  12921. f.Wr = new f.fQ;
  12922. f.Au = new f.fQ;
  12923. f.jJ = new f.fQ;
  12924. f.Md = null;
  12925. f.M0 = !1;
  12926. f.IDa = function() {
  12927. if (!f.M0) {
  12928. var c = new f.Ma;
  12929. f.f1(f.Wr);
  12930. f.f1(f.Au);
  12931. f.f1(f.jJ);
  12932. f.Md = f.Wr;
  12933. f.M0 = !0;
  12934. f.Ex(c);
  12935. f.gQ(f.Wr, c);
  12936. f.gQ(f.Au, c);
  12937. f.gQ(f.jJ, c)
  12938. }
  12939. };
  12940. f.IDa();
  12941. f.nDa = function() {
  12942. f.g1(f.Wr);
  12943. f.g1(f.Au);
  12944. f.g1(f.jJ);
  12945. f.M0 = !1;
  12946. f.Md = null
  12947. };
  12948. f.Rr = function() {
  12949. f.gQ(f.Md, f.Md.top)
  12950. };
  12951. f.yYa = function(c) {
  12952. f.Md.stack.push(f.Md.top);
  12953. f.Mp(c, f.Md.top);
  12954. f.Md.top = c
  12955. };
  12956. f.Qr = function() {
  12957. f.Md.top = f.Md.stack.pop()
  12958. };
  12959. f.Lp = function(c) {
  12960. switch (c) {
  12961. case f.mq:
  12962. f.Md = f.Wr;
  12963. break;
  12964. case f.nq:
  12965. f.Md = f.Au;
  12966. break;
  12967. case f.H5:
  12968. f.Md = f.jJ;
  12969. break;
  12970. default:
  12971. throw "Invalid matrix mode specified";
  12972. }
  12973. };
  12974. f.$B = function() {
  12975. f.Ex(f.Md.top)
  12976. };
  12977. f.xYa = function(c) {
  12978. f.Mp(f.Md.top, c)
  12979. };
  12980. f.aC = function(c) {
  12981. f.Np(f.Md.top, f.Md.top, c)
  12982. };
  12983. f.bC = function(c, d) {
  12984. var e = new f.Ma;
  12985. f.Tea(e, c, d, 0);
  12986. f.Np(f.Md.top, f.Md.top, e)
  12987. };
  12988. f.zYa = function(c, d, e, g) {
  12989. d = new f.cd(d, e, g);
  12990. e = new f.Ma;
  12991. f.tDa(e, d, f.bI(c));
  12992. f.Np(f.Md.top, f.Md.top, e)
  12993. };
  12994. f.AYa = function(c, d, e) {
  12995. var g = new f.Ma;
  12996. f.uDa(g, c, d, e);
  12997. f.Np(f.Md.top, f.Md.top, g)
  12998. };
  12999. f.ZP = function(c, d) {
  13000. switch (c) {
  13001. case f.mq:
  13002. f.Mp(d, f.Wr.top);
  13003. break;
  13004. case f.nq:
  13005. f.Mp(d, f.Au.top);
  13006. break;
  13007. case f.H5:
  13008. f.Mp(d, f.jJ.top);
  13009. break;
  13010. default:
  13011. throw "Invalid matrix mode specified";
  13012. }
  13013. };
  13014. f.Lna = "precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n}\n";
  13015. f.Mna = "attribute vec4 a_position;\nuniform vec4 u_color;\nuniform float u_pointSize;\nvarying lowp vec4 v_fragmentColor; \nvoid main(void) \n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n gl_PointSize \x3d u_pointSize; \n v_fragmentColor \x3d u_color; \n}";
  13016. f.zna = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n} ";
  13017. f.Cna = "attribute vec4 a_position;\nattribute vec4 a_color;\nvarying lowp vec4 v_fragmentColor;\nvoid main()\n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n}";
  13018. f.Ana = "// #extension GL_OES_standard_derivatives : enable\nvarying mediump vec4 v_color;\nvarying mediump vec2 v_texcoord;\nvoid main()\t\n{ \n// #if defined GL_OES_standard_derivatives\t\n// gl_FragColor \x3d v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord)); \n// #else\t\ngl_FragColor \x3d v_color * step(0.0, 1.0 - length(v_texcoord)); \n// #endif \n}";
  13019. f.Bna = "attribute mediump vec4 a_position; \nattribute mediump vec2 a_texcoord; \nattribute mediump vec4 a_color;\t\nvarying mediump vec4 v_color; \nvarying mediump vec2 v_texcoord;\t\nvoid main() \n{ \n v_color \x3d a_color;//vec4(a_color.rgb * a_color.a, a_color.a); \n v_texcoord \x3d a_texcoord; \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n}";
  13020. f.Hna = "precision lowp float; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord); \n}";
  13021. f.Kna = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}";
  13022. f.Ina = "precision lowp float; \nuniform vec4 u_color; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord) * u_color; \n}";
  13023. f.Jna = "attribute vec4 a_position;\nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}";
  13024. f.Dna = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d vec4( v_fragmentColor.rgb, \n v_fragmentColor.a * texture2D(CC_Texture0, v_texCoord).a \n ); \n}";
  13025. f.Ena = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}";
  13026. f.Gna = "precision lowp float;\nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor * texture2D(CC_Texture0, v_texCoord); \n}";
  13027. f.d7 = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}";
  13028. f.Fna = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nuniform float CC_alpha_value; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(CC_Texture0, v_texCoord); \n // mimic: glAlphaFunc(GL_GREATER) \n //pass if ( incoming_pixel \x3e\x3d CC_alpha_value ) \x3d\x3e fail if incoming_pixel \x3c CC_alpha_value \n if ( texColor.a \x3c\x3d CC_alpha_value ) \n discard; \n gl_FragColor \x3d texColor * v_fragmentColor; \n}";
  13029. f.wMa = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D u_texture; \nuniform sampler2D u_mask; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(u_texture, v_texCoord); \n vec4 maskColor \x3d texture2D(u_mask, v_texCoord); \n vec4 finalColor \x3d vec4(texColor.r, texColor.g, texColor.b, maskColor.a * texColor.a); \n gl_FragColor \x3d v_fragmentColor * finalColor; \n}";
  13030. f.xg = {
  13031. aU: 0,
  13032. bU: 1,
  13033. ZT: 2,
  13034. $T: 3,
  13035. dU: 4,
  13036. cU: 5,
  13037. eU: 6,
  13038. x7: 7,
  13039. VMa: 8,
  13040. Kg: {},
  13041. FF: function() {
  13042. this.NDa();
  13043. return !0
  13044. },
  13045. Vi: function(c, d) {
  13046. switch (d) {
  13047. case this.aU:
  13048. c.Kp(f.d7, f.Gna);
  13049. c.Pg(f.Wu, f.Oc);
  13050. c.Pg(f.fD, f.Mi);
  13051. c.Pg(f.vy, f.$g);
  13052. break;
  13053. case this.bU:
  13054. c.Kp(f.d7, f.Fna);
  13055. c.Pg(f.Wu, f.Oc);
  13056. c.Pg(f.fD, f.Mi);
  13057. c.Pg(f.vy, f.$g);
  13058. break;
  13059. case this.ZT:
  13060. c.Kp(f.Cna, f.zna);
  13061. c.Pg(f.Wu, f.Oc);
  13062. c.Pg(f.fD, f.Mi);
  13063. break;
  13064. case this.$T:
  13065. c.Kp(f.Kna, f.Hna);
  13066. c.Pg(f.Wu, f.Oc);
  13067. c.Pg(f.vy, f.$g);
  13068. break;
  13069. case this.dU:
  13070. c.Kp(f.Jna, f.Ina);
  13071. c.Pg(f.Wu, f.Oc);
  13072. c.Pg(f.vy, f.$g);
  13073. break;
  13074. case this.cU:
  13075. c.Kp(f.Ena,
  13076. f.Dna);
  13077. c.Pg(f.Wu, f.Oc);
  13078. c.Pg(f.fD, f.Mi);
  13079. c.Pg(f.vy, f.$g);
  13080. break;
  13081. case this.eU:
  13082. c.Kp(f.Mna, f.Lna);
  13083. c.Pg("aVertex", f.Oc);
  13084. break;
  13085. case this.x7:
  13086. c.Kp(f.Bna, f.Ana);
  13087. c.Pg(f.Wu, f.Oc);
  13088. c.Pg(f.vy, f.$g);
  13089. c.Pg(f.fD, f.Mi);
  13090. break;
  13091. default:
  13092. f.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type");
  13093. return
  13094. }
  13095. c.link();
  13096. c.hJa()
  13097. },
  13098. NDa: function() {
  13099. var c = new f.vo;
  13100. this.Vi(c, this.aU);
  13101. this.Kg[f.zo] = c;
  13102. this.Kg.ShaderPositionTextureColor = c;
  13103. c = new f.vo;
  13104. this.Vi(c, this.bU);
  13105. this.Kg[f.tK] = c;
  13106. this.Kg.ShaderPositionTextureColorAlphaTest = c;
  13107. c = new f.vo;
  13108. this.Vi(c, this.ZT);
  13109. this.Kg[f.sK] = c;
  13110. this.Kg.ShaderPositionColor = c;
  13111. c = new f.vo;
  13112. this.Vi(c, this.$T);
  13113. this.Kg[f.jE] = c;
  13114. this.Kg.ShaderPositionTexture = c;
  13115. c = new f.vo;
  13116. this.Vi(c, this.dU);
  13117. this.Kg[f.uK] = c;
  13118. this.Kg.ShaderPositionTextureUColor = c;
  13119. c = new f.vo;
  13120. this.Vi(c, this.cU);
  13121. this.Kg[f.JT] = c;
  13122. this.Kg.ShaderPositionTextureA8Color = c;
  13123. c = new f.vo;
  13124. this.Vi(c, this.eU);
  13125. this.Kg[f.KT] = c;
  13126. this.Kg.ShaderPositionUColor = c;
  13127. c = new f.vo;
  13128. this.Vi(c, this.x7);
  13129. this.Kg[f.c7] = c;
  13130. this.Kg.ShaderPositionLengthTextureColor = c
  13131. },
  13132. T0a: function() {
  13133. var c =
  13134. this.be(f.zo);
  13135. c.reset();
  13136. this.Vi(c, this.aU);
  13137. c = this.be(f.tK);
  13138. c.reset();
  13139. this.Vi(c, this.bU);
  13140. c = this.be(f.sK);
  13141. c.reset();
  13142. this.Vi(c, this.ZT);
  13143. c = this.be(f.jE);
  13144. c.reset();
  13145. this.Vi(c, this.$T);
  13146. c = this.be(f.uK);
  13147. c.reset();
  13148. this.Vi(c, this.dU);
  13149. c = this.be(f.JT);
  13150. c.reset();
  13151. this.Vi(c, this.cU);
  13152. c = this.be(f.KT);
  13153. c.reset();
  13154. this.Vi(c, this.eU)
  13155. },
  13156. be: function(c) {
  13157. return this.Kg[c]
  13158. },
  13159. Bx: function(c) {
  13160. return this.Kg[c]
  13161. },
  13162. zPa: function(c, d) {
  13163. this.Kg[d] = c
  13164. }
  13165. };
  13166. f.Qla = function() {
  13167. this.location = this.value = void 0;
  13168. this.DP = {}
  13169. };
  13170. f.vo = f.N.extend({
  13171. Sa: null,
  13172. qd: null,
  13173. Xj: null,
  13174. Yl: null,
  13175. ed: null,
  13176. kn: null,
  13177. Iba: !1,
  13178. gj: function(c, d) {
  13179. if (null == c) return !1;
  13180. for (var e = !0, g = null, h = 0; h < this.kn.length; h++) this.kn[h].location == c && (g = this.kn[h]);
  13181. g ? g.value == d ? e = !1 : g.value = d : (g = new f.Qla, g.location = c, g.value = d, this.kn.push(g));
  13182. return e
  13183. },
  13184. UNa: function() {
  13185. return "\x3cCCGLProgram \x3d " + this.toString() + " | Program \x3d " + this.qd.toString() + ", VertexShader \x3d " + this.Xj.toString() + ", FragmentShader \x3d " + this.Yl.toString() + "\x3e"
  13186. },
  13187. Y8: function(c, d, e) {
  13188. if (!e ||
  13189. !c) return !1;
  13190. this.Sa.shaderSource(c, "precision highp float; \nuniform mat4 CC_PMatrix; \nuniform mat4 CC_MVMatrix; \nuniform mat4 CC_MVPMatrix; \nuniform vec4 CC_Time; \nuniform vec4 CC_SinTime; \nuniform vec4 CC_CosTime; \nuniform vec4 CC_Random01; \n//CC INCLUDES END \n" + e);
  13191. this.Sa.compileShader(c);
  13192. e = this.Sa.getShaderParameter(c, this.Sa.COMPILE_STATUS);
  13193. e || (f.log("cocos2d: ERROR: Failed to compile shader:\n" + this.Sa.getShaderSource(c)),
  13194. d == this.Sa.VERTEX_SHADER ? f.log("cocos2d: \n" + this.mJa()) : f.log("cocos2d: \n" + this.nza()));
  13195. return 1 == e
  13196. },
  13197. ctor: function(c, d, e) {
  13198. this.ed = [];
  13199. this.kn = [];
  13200. this.Sa = e || f.s;
  13201. c && d && this.j(c, d)
  13202. },
  13203. OQa: function() {
  13204. this.kn = this.ed = this.Yl = this.Xj = null;
  13205. this.Sa.deleteProgram(this.qd)
  13206. },
  13207. Kp: function(c, d) {
  13208. var e = this.Sa;
  13209. this.qd = e.createProgram();
  13210. this.Yl = this.Xj = null;
  13211. c && (this.Xj = e.createShader(e.VERTEX_SHADER), this.Y8(this.Xj, e.VERTEX_SHADER, c) || f.log("cocos2d: ERROR: Failed to compile vertex shader"));
  13212. d && (this.Yl = e.createShader(e.FRAGMENT_SHADER),
  13213. this.Y8(this.Yl, e.FRAGMENT_SHADER, d) || f.log("cocos2d: ERROR: Failed to compile fragment shader"));
  13214. this.Xj && e.attachShader(this.qd, this.Xj);
  13215. f.rB();
  13216. this.Yl && e.attachShader(this.qd, this.Yl);
  13217. this.kn.length = 0;
  13218. f.rB();
  13219. return !0
  13220. },
  13221. xf: function(c, d) {
  13222. return this.Kp(c, d)
  13223. },
  13224. HCa: function(c, d) {
  13225. var e = f.L.zd(c);
  13226. if (!e) throw "Please load the resource firset : " + c;
  13227. var g = f.L.zd(d);
  13228. if (!g) throw "Please load the resource firset : " + d;
  13229. return this.Kp(e, g)
  13230. },
  13231. j: function(c, d) {
  13232. return this.HCa(c, d)
  13233. },
  13234. Pg: function(c, d) {
  13235. this.Sa.bindAttribLocation(this.qd,
  13236. d, c)
  13237. },
  13238. link: function() {
  13239. if (!this.qd) return f.log("cc.GLProgram.link(): Cannot link invalid program"), !1;
  13240. this.Sa.linkProgram(this.qd);
  13241. this.Xj && this.Sa.deleteShader(this.Xj);
  13242. this.Yl && this.Sa.deleteShader(this.Yl);
  13243. this.Yl = this.Xj = null;
  13244. return f.vf.kj[f.vf.Vm.iH] && !this.Sa.getProgramParameter(this.qd, this.Sa.LINK_STATUS) ? (f.log("cocos2d: ERROR: Failed to link program: " + this.Sa.getProgramInfoLog(this.qd)), f.TBa(this.qd), this.qd = null, !1) : !0
  13245. },
  13246. Ff: function() {
  13247. f.x0(this.qd)
  13248. },
  13249. hJa: function() {
  13250. this.ed[f.rU] = this.Sa.getUniformLocation(this.qd,
  13251. f.Bpa);
  13252. this.ed[f.qU] = this.Sa.getUniformLocation(this.qd, f.zpa);
  13253. this.ed[f.yE] = this.Sa.getUniformLocation(this.qd, f.Apa);
  13254. this.ed[f.vU] = this.Sa.getUniformLocation(this.qd, f.Fpa);
  13255. this.ed[f.uU] = this.Sa.getUniformLocation(this.qd, f.Epa);
  13256. this.ed[f.pU] = this.Sa.getUniformLocation(this.qd, f.ypa);
  13257. this.Iba = null != this.ed[f.vU] || null != this.ed[f.uU] || null != this.ed[f.pU];
  13258. this.ed[f.sU] = this.Sa.getUniformLocation(this.qd, f.Cpa);
  13259. this.ed[f.tU] = this.Sa.getUniformLocation(this.qd, f.Dpa);
  13260. this.Ff();
  13261. this.Yha(this.ed[f.tU],
  13262. 0)
  13263. },
  13264. CWa: function(c) {
  13265. if (!c) throw "cc.GLProgram.getUniformLocationForName(): uniform name should be non-null";
  13266. if (!this.qd) throw "cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized";
  13267. return this.Sa.getUniformLocation(this.qd, c)
  13268. },
  13269. DWa: function() {
  13270. return this.ed[f.yE]
  13271. },
  13272. EWa: function() {
  13273. return this.ed[f.tU]
  13274. },
  13275. Yha: function(c, d) {
  13276. this.gj(c, d) && this.Sa.uniform1i(c, d)
  13277. },
  13278. H4a: function(c, d, e) {
  13279. this.gj(c, [d, e]) && this.Sa.uniform2i(c, d, e)
  13280. },
  13281. K4a: function(c,
  13282. d, e, g) {
  13283. this.gj(c, [d, e, g]) && this.Sa.uniform3i(c, d, e, g)
  13284. },
  13285. N4a: function(c, d, e, g, h) {
  13286. this.gj(c, [d, e, g, h]) && this.Sa.uniform4i(c, d, e, g, h)
  13287. },
  13288. I4a: function(c, d) {
  13289. this.gj(c, d) && this.Sa.uniform2iv(c, d)
  13290. },
  13291. L4a: function(c, d) {
  13292. this.gj(c, d) && this.Sa.uniform3iv(c, d)
  13293. },
  13294. O4a: function(c, d) {
  13295. this.gj(c, d) && this.Sa.uniform4iv(c, d)
  13296. },
  13297. F4a: function(c, d) {
  13298. this.Yha(c, d)
  13299. },
  13300. bJ: function(c, d) {
  13301. this.gj(c, d) && this.Sa.uniform1f(c, d)
  13302. },
  13303. THa: function(c, d, e) {
  13304. this.gj(c, [d, e]) && this.Sa.uniform2f(c, d, e)
  13305. },
  13306. UHa: function(c, d, e, g) {
  13307. this.gj(c, [d, e, g]) && this.Sa.uniform3f(c,
  13308. d, e, g)
  13309. },
  13310. cJ: function(c, d, e, g, h) {
  13311. this.gj(c, [d, e, g, h]) && this.Sa.uniform4f(c, d, e, g, h)
  13312. },
  13313. G4a: function(c, d) {
  13314. this.gj(c, d) && this.Sa.uniform2fv(c, d)
  13315. },
  13316. J4a: function(c, d) {
  13317. this.gj(c, d) && this.Sa.uniform3fv(c, d)
  13318. },
  13319. M4a: function(c, d) {
  13320. this.gj(c, d) && this.Sa.uniform4fv(c, d)
  13321. },
  13322. a3: function(c, d) {
  13323. this.gj(c, d) && this.Sa.uniformMatrix4fv(c, !1, d)
  13324. },
  13325. E4a: function() {
  13326. if (!(2 > arguments.length)) switch (arguments.length) {
  13327. case 2:
  13328. this.bJ(arguments[0], arguments[1]);
  13329. break;
  13330. case 3:
  13331. this.THa(arguments[0], arguments[1], arguments[2]);
  13332. break;
  13333. case 4:
  13334. this.UHa(arguments[0],
  13335. arguments[1], arguments[2], arguments[3]);
  13336. break;
  13337. case 5:
  13338. this.cJ(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4])
  13339. }
  13340. },
  13341. dJ: function() {
  13342. var c = new f.Ma,
  13343. d = new f.Ma,
  13344. e = new f.Ma;
  13345. f.ZP(f.nq, c);
  13346. f.ZP(f.mq, d);
  13347. f.Np(e, c, d);
  13348. this.a3(this.ed[f.rU], c.c, 1);
  13349. this.a3(this.ed[f.qU], d.c, 1);
  13350. this.a3(this.ed[f.yE], e.c, 1);
  13351. this.Iba && (c = f.Q, c = c.aO * c.EE, this.cJ(this.ed[f.vU], c / 10, c, 2 * c, 4 * c), this.cJ(this.ed[f.uU], c / 8, c / 4, c / 2, Math.sin(c)), this.cJ(this.ed[f.pU], c / 8, c / 4, c / 2, Math.cos(c))); - 1 != this.ed[f.sU] && this.cJ(this.ed[f.sU],
  13352. Math.random(), Math.random(), Math.random(), Math.random())
  13353. },
  13354. C4a: function() {
  13355. this.Sa.uniformMatrix4fv(this.ed[f.yE], !1, f.yAa())
  13356. },
  13357. D4a: function(c) {
  13358. f.Np(c, f.Au.top, f.Wr.top);
  13359. this.Sa.uniformMatrix4fv(this.ed[f.yE], !1, c.c)
  13360. },
  13361. zj: function() {
  13362. this.Sa.uniformMatrix4fv(this.ed[f.qU], !1, f.Wr.top.c);
  13363. this.Sa.uniformMatrix4fv(this.ed[f.rU], !1, f.Au.top.c)
  13364. },
  13365. mJa: function() {
  13366. return this.Sa.getShaderInfoLog(this.Xj)
  13367. },
  13368. IWa: function() {
  13369. return this.Sa.getShaderInfoLog(this.Xj)
  13370. },
  13371. ZTa: function() {
  13372. return this.Sa.getShaderInfoLog(this.Xj)
  13373. },
  13374. nza: function() {
  13375. return this.Sa.getShaderInfoLog(this.Yl)
  13376. },
  13377. v0a: function() {
  13378. return this.Sa.getProgramInfoLog(this.qd)
  13379. },
  13380. vVa: function() {
  13381. return this.Sa.getProgramInfoLog(this.qd)
  13382. },
  13383. reset: function() {
  13384. this.Yl = this.Xj = null;
  13385. this.ed.length = 0;
  13386. this.Sa.deleteProgram(this.qd);
  13387. this.qd = null;
  13388. for (var c = 0; c < this.kn.length; c++) this.kn[c].value = null, this.kn[c] = null;
  13389. this.kn.length = 0
  13390. },
  13391. Bx: function() {
  13392. return this.qd
  13393. },
  13394. OQ: function() {},
  13395. wh: function() {}
  13396. });
  13397. f.vo.create = function(c, d) {
  13398. return new f.vo(c, d)
  13399. };
  13400. f.e9 = -1;
  13401. f.eZ = !1;
  13402. f.dZ = !1;
  13403. f.fZ = !1;
  13404. f.Zm && (f.rma = 16, f.dF = -1, f.cF = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], f.kz = -1, f.jz = -1, f.Spa = 0, f.TT && (f.xba = 0));
  13405. f.TWa = function() {
  13406. f.nDa();
  13407. f.e9 = -1;
  13408. f.eZ = !1;
  13409. f.dZ = !1;
  13410. f.fZ = !1;
  13411. if (f.Zm) {
  13412. f.dF = -1;
  13413. for (var c = 0; c < f.rma; c++) f.cF[c] = -1;
  13414. f.kz = -1;
  13415. f.jz = -1;
  13416. f.Spa = 0
  13417. }
  13418. };
  13419. f.x0 = function(c) {
  13420. c !== f.dF && (f.dF = c, f.s.useProgram(c))
  13421. };
  13422. f.Zm || (f.x0 = function(c) {
  13423. f.s.useProgram(c)
  13424. });
  13425. f.TBa = function(c) {
  13426. f.Zm && c === f.dF && (f.dF = -1);
  13427. gl.deleteProgram(c)
  13428. };
  13429. f.Fm = function(c, d) {
  13430. if (c !== f.kz || d !== f.jz) f.kz = c, f.jz = d, f.bR(c, d)
  13431. };
  13432. f.bR = function(c, d) {
  13433. var e = f.s;
  13434. c === e.ONE && d === e.ZERO ? e.disable(e.BLEND) : (e.enable(e.BLEND), f.s.blendFunc(c, d))
  13435. };
  13436. f.iea = function(c, d) {
  13437. if (c !== f.kz || d !== f.jz) {
  13438. f.kz = c;
  13439. f.jz = d;
  13440. var e = f.s;
  13441. c === e.ONE && d === e.ZERO ? e.disable(e.BLEND) : (e.enable(e.BLEND), e.blendFuncSeparate(e.SRC_ALPHA, d, c, d))
  13442. }
  13443. };
  13444. f.Zm || (f.Fm = f.bR);
  13445. f.QWa = function() {
  13446. var c = f.s;
  13447. c.blendEquation(c.FUNC_ADD);
  13448. f.Zm ? f.bR(f.kz, f.jz) : f.bR(c.Mc, c.Lc)
  13449. };
  13450. f.yha = function() {
  13451. f.e9 = -1
  13452. };
  13453. f.wf = function(c) {
  13454. var d = f.s,
  13455. e = c & f.Gh;
  13456. e !== f.eZ && (e ? d.enableVertexAttribArray(f.Oc) : d.disableVertexAttribArray(f.Oc), f.eZ = e);
  13457. e = c & f.HK;
  13458. e !== f.dZ && (e ? d.enableVertexAttribArray(f.Mi) : d.disableVertexAttribArray(f.Mi), f.dZ = e);
  13459. c &= f.Wy;
  13460. c !== f.fZ && (c ? d.enableVertexAttribArray(f.$g) : d.disableVertexAttribArray(f.$g), f.fZ = c)
  13461. };
  13462. f.Ai = function(c) {
  13463. f.w0(0, c)
  13464. };
  13465. f.w0 = function(c, d) {
  13466. if (f.cF[c] != d) {
  13467. f.cF[c] = d;
  13468. var e = f.s;
  13469. e.activeTexture(e.TEXTURE0 + c);
  13470. d ? e.bindTexture(e.TEXTURE_2D, d.Wh) : e.bindTexture(e.TEXTURE_2D, null)
  13471. }
  13472. };
  13473. f.Zm || (f.w0 = function(c, d) {
  13474. var e = f.s;
  13475. e.activeTexture(e.TEXTURE0 + c);
  13476. d ? e.bindTexture(e.TEXTURE_2D, d.Wh) : e.bindTexture(e.TEXTURE_2D, null)
  13477. });
  13478. f.RWa = function(c) {
  13479. f.UBa(c)
  13480. };
  13481. f.UBa = function(c) {
  13482. f.Zm && c == f.cF[0] && (f.cF[0] = -1);
  13483. f.s.deleteTexture(c)
  13484. };
  13485. f.PWa = function(c) {
  13486. f.TT && f.Zm && f.xba != c && (f.xba = c)
  13487. };
  13488. f.SWa = function() {};
  13489. f.pLa = 0;
  13490. f.qLa = 1;
  13491. f.rLa = 2;
  13492. f.xs = function(c) {
  13493. c -= 1;
  13494. c |= c >> 1;
  13495. c |= c >> 2;
  13496. c |= c >> 4;
  13497. c |= c >> 8;
  13498. return (c | c >> 16) + 1
  13499. };
  13500. f.nv = f.v.extend({
  13501. sprite: null,
  13502. LO: 0,
  13503. f_: 0,
  13504. YG: !1,
  13505. gi: null,
  13506. Pi: null,
  13507. $L: 0,
  13508. fF: 0,
  13509. ep: 0,
  13510. fa: null,
  13511. EG: null,
  13512. qva: null,
  13513. gp: f.Pa.sq,
  13514. Kq: null,
  13515. g_: 0,
  13516. uV: null,
  13517. ta: "RenderTexture",
  13518. ctor: null,
  13519. aF: function(c, d, e, g) {
  13520. f.v.prototype.ctor.call(this);
  13521. this.Kq = f.color(255, 255, 255, 255);
  13522. this.uV = "rgba(255,255,255,1)";
  13523. this.gi = f.fd("canvas");
  13524. this.Pi = this.gi.getContext("2d");
  13525. this.anchorY = this.anchorX = 0;
  13526. void 0 !== c && void 0 !== d && (e = e || f.Pa.sq, this.PP(c, d, e, g || 0))
  13527. },
  13528. bF: function(c, d, e, g) {
  13529. f.v.prototype.ctor.call(this);
  13530. this.Kq = f.color(0, 0, 0, 0);
  13531. void 0 !==
  13532. c && void 0 !== d && (e = e || f.Pa.sq, this.PP(c, d, e, g || 0))
  13533. },
  13534. De: null,
  13535. Hqa: function() {
  13536. f.v.prototype.Ra.call(this);
  13537. this.gi = this.Pi = null
  13538. },
  13539. Iqa: function() {
  13540. f.v.prototype.Ra.call(this);
  13541. this.EG = null;
  13542. var c = f.s;
  13543. c.deleteFramebuffer(this.$L);
  13544. this.fF && c.deleteRenderbuffer(this.fF);
  13545. this.qva = null
  13546. },
  13547. o0: function() {
  13548. return this.sprite
  13549. },
  13550. xR: function(c) {
  13551. this.sprite = c
  13552. },
  13553. PP: null,
  13554. Dsa: function(c, d) {
  13555. var e = this.gi,
  13556. g = f.Uc();
  13557. e.width = 0 | c * g;
  13558. e.height = 0 | d * g;
  13559. this.Pi.translate(0, e.height);
  13560. g = new f.Pa;
  13561. g.sh(e);
  13562. g.$d();
  13563. this.sprite = f.q.create(g);
  13564. return !0
  13565. },
  13566. Esa: function(c, d, e, g) {
  13567. e == f.Pa.bE && f.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;");
  13568. var h = f.s,
  13569. k = f.Uc();
  13570. c = 0 | c * k;
  13571. d = 0 | d * k;
  13572. this.ep = h.getParameter(h.FRAMEBUFFER_BINDING);
  13573. var m;
  13574. f.tB.UN ? (k = c, m = d) : (k = f.xs(c), m = f.xs(d));
  13575. for (var n = new Uint8Array(k * m * 4), p = 0; p < k * m * 4; p++) n[p] = 0;
  13576. this.gp = e;
  13577. this.fa = new f.Pa;
  13578. if (!this.fa) return !1;
  13579. p = this.fa;
  13580. p.su(n, this.gp, k, m, t(c, d));
  13581. e = h.getParameter(h.RENDERBUFFER_BINDING);
  13582. if (f.tB.qB("GL_QCOM")) {
  13583. this.EG = new f.Pa;
  13584. if (!this.EG) return !1;
  13585. this.EG.su(n, this.gp, k, m, t(c, d))
  13586. }
  13587. this.$L = h.createFramebuffer();
  13588. h.bindFramebuffer(h.FRAMEBUFFER, this.$L);
  13589. h.framebufferTexture2D(h.FRAMEBUFFER, h.COLOR_ATTACHMENT0, h.TEXTURE_2D, p.Wh, 0);
  13590. 0 != g && (this.fF = h.createRenderbuffer(), h.bindRenderbuffer(h.RENDERBUFFER, this.fF), h.renderbufferStorage(h.RENDERBUFFER, g, k, m), h.framebufferRenderbuffer(h.FRAMEBUFFER, h.DEPTH_ATTACHMENT, h.RENDERBUFFER, this.fF));
  13591. h.checkFramebufferStatus(h.FRAMEBUFFER) !== h.FRAMEBUFFER_COMPLETE && f.log("Could not attach texture to the framebuffer");
  13592. p.j2();
  13593. c = this.sprite = f.q.create(p);
  13594. c.scaleY = -1;
  13595. c.ce(h.ONE, h.ONE_MINUS_SRC_ALPHA);
  13596. h.bindRenderbuffer(h.RENDERBUFFER, e);
  13597. h.bindFramebuffer(h.FRAMEBUFFER, this.ep);
  13598. this.YG = !1;
  13599. this.n(c);
  13600. return !0
  13601. },
  13602. Qn: null,
  13603. pqa: function() {
  13604. f.s = this.Pi;
  13605. f.view.Waa()
  13606. },
  13607. qqa: function() {
  13608. f.Lp(f.nq);
  13609. f.Rr();
  13610. f.Lp(f.mq);
  13611. f.Rr();
  13612. var c = f.Q;
  13613. c.ey(c.mp);
  13614. var d = this.fa.m,
  13615. e = f.Q.KH(),
  13616. c = e.width / d.width,
  13617. e = e.height / d.height,
  13618. g = f.s;
  13619. g.viewport(0, 0, d.width, d.height);
  13620. d = new f.Ma;
  13621. f.$0(d, -1 / c, 1 / c, -1 / e, 1 / e, -1, 1);
  13622. f.aC(d);
  13623. this.ep = g.getParameter(g.FRAMEBUFFER_BINDING);
  13624. g.bindFramebuffer(g.FRAMEBUFFER, this.$L);
  13625. f.tB.qB("GL_QCOM") && (g.framebufferTexture2D(g.FRAMEBUFFER, g.COLOR_ATTACHMENT0, g.TEXTURE_2D, this.EG.Wh, 0), g.clear(g.COLOR_BUFFER_BIT | g.DEPTH_BUFFER_BIT), g.framebufferTexture2D(g.FRAMEBUFFER, g.COLOR_ATTACHMENT0, g.TEXTURE_2D, this.fa.Wh, 0))
  13626. },
  13627. Fwa: function(c, d, e, g, h, k) {
  13628. var m = f.s;
  13629. h = h || m.COLOR_BUFFER_BIT;
  13630. k = k || m.COLOR_BUFFER_BIT | m.DEPTH_BUFFER_BIT;
  13631. this.gV(c, d, e, g, h, k, m.COLOR_BUFFER_BIT | m.DEPTH_BUFFER_BIT | m.STENCIL_BUFFER_BIT)
  13632. },
  13633. gV: null,
  13634. rqa: function(c, d, e, g) {
  13635. this.Qn();
  13636. c = c || 0;
  13637. d = d || 0;
  13638. e = e || 0;
  13639. g = isNaN(g) ? 1 : g;
  13640. var h = this.Pi,
  13641. k = this.gi;
  13642. h.save();
  13643. h.fillStyle = "rgba(" + (0 | c) + "," + (0 | d) + "," + (0 | e) + "," + g / 255 + ")";
  13644. h.clearRect(0, 0, k.width, -k.height);
  13645. h.fillRect(0, 0, k.width, -k.height);
  13646. h.restore()
  13647. },
  13648. sqa: function(c, d, e, g, h, k, m) {
  13649. this.Qn();
  13650. var n = f.s,
  13651. p = [0, 0, 0, 0],
  13652. s = 0,
  13653. u = 0;
  13654. m & n.COLOR_BUFFER_BIT && (p = n.getParameter(n.COLOR_CLEAR_VALUE), n.clearColor(c, d, e, g));
  13655. m & n.DEPTH_BUFFER_BIT && (s = n.getParameter(n.DEPTH_CLEAR_VALUE), n.clearDepth(h));
  13656. m & n.STENCIL_BUFFER_BIT && (u = n.getParameter(n.STENCIL_CLEAR_VALUE),
  13657. n.clearStencil(k));
  13658. n.clear(m);
  13659. m & n.COLOR_BUFFER_BIT && n.clearColor(p[0], p[1], p[2], p[3]);
  13660. m & n.DEPTH_BUFFER_BIT && n.clearDepth(s);
  13661. m & n.STENCIL_BUFFER_BIT && n.clearStencil(u)
  13662. },
  13663. end: null,
  13664. lra: function() {
  13665. f.s = f.Ysa;
  13666. f.view.Iaa()
  13667. },
  13668. mra: function() {
  13669. var c = f.s,
  13670. d = f.Q;
  13671. c.bindFramebuffer(c.FRAMEBUFFER, this.ep);
  13672. d.Zha();
  13673. f.Lp(f.nq);
  13674. f.Qr();
  13675. f.Lp(f.mq);
  13676. f.Qr()
  13677. },
  13678. clear: function(c, d, e, g) {
  13679. this.Fwa(c, d, e, g);
  13680. this.end()
  13681. },
  13682. clearRect: null,
  13683. Lqa: function(c, d, e, g) {
  13684. this.Pi.clearRect(c, d, e, -g)
  13685. },
  13686. Mqa: function() {},
  13687. clearDepth: null,
  13688. Jqa: function() {
  13689. f.log("clearDepth isn't supported on Cocos2d-Html5")
  13690. },
  13691. Kqa: function(c) {
  13692. this.Qn();
  13693. var d = f.s,
  13694. e = d.getParameter(d.DEPTH_CLEAR_VALUE);
  13695. d.clearDepth(c);
  13696. d.clear(d.DEPTH_BUFFER_BIT);
  13697. d.clearDepth(e);
  13698. this.end()
  13699. },
  13700. clearStencil: null,
  13701. Nqa: function() {
  13702. f.log("clearDepth isn't supported on Cocos2d-Html5")
  13703. },
  13704. Oqa: function(c) {
  13705. var d = f.s,
  13706. e = d.getParameter(d.STENCIL_CLEAR_VALUE);
  13707. d.clearStencil(c);
  13708. d.clear(d.STENCIL_BUFFER_BIT);
  13709. d.clearStencil(e)
  13710. },
  13711. I: null,
  13712. Br: function(c) {
  13713. this.Na && (c = c || f.s, c.save(), this.ma(c), this.transform(c), this.sprite.I(), c.restore(), this.arrivalOrder = 0)
  13714. },
  13715. Uw: function(c) {
  13716. if (this.Na) {
  13717. f.Rr();
  13718. var d = this.grid;
  13719. d && d.Bi() && (d.dx(), this.mJ());
  13720. this.transform(c);
  13721. this.sprite.I();
  13722. this.ma(c);
  13723. d && d.Bi() && d.ax(this);
  13724. f.Qr();
  13725. this.arrivalOrder = 0
  13726. }
  13727. },
  13728. ma: null,
  13729. Rq: function(c) {
  13730. c = c || f.s;
  13731. if (this.YG) {
  13732. this.Qn();
  13733. if (this.LO) {
  13734. var d = this.gi;
  13735. c.save();
  13736. c.fillStyle = this.uV;
  13737. c.clearRect(0, 0, d.width, -d.height);
  13738. c.fillRect(0, 0, d.width, -d.height);
  13739. c.restore()
  13740. }
  13741. this.kd();
  13742. c = this.i;
  13743. for (var d = c.length, e = this.sprite, g = 0; g < d; g++) {
  13744. var h = c[g];
  13745. h != e && h.I()
  13746. }
  13747. this.end()
  13748. }
  13749. },
  13750. fn: function() {
  13751. var c = f.s;
  13752. if (this.YG) {
  13753. this.Qn();
  13754. var d = this.LO;
  13755. if (d) {
  13756. var e = [0, 0, 0, 0],
  13757. g = 0,
  13758. h = 0;
  13759. d & c.COLOR_BUFFER_BIT && (e = c.getParameter(c.COLOR_CLEAR_VALUE), c.clearColor(this.Kq.r / 255, this.Kq.g / 255, this.Kq.b / 255, this.Kq.a / 255));
  13760. d & c.DEPTH_BUFFER_BIT && (g = c.getParameter(c.DEPTH_CLEAR_VALUE), c.clearDepth(this.f_));
  13761. d & c.STENCIL_BUFFER_BIT && (h = c.getParameter(c.STENCIL_CLEAR_VALUE), c.clearStencil(this.g_));
  13762. c.clear(d);
  13763. d & c.COLOR_BUFFER_BIT && c.clearColor(e[0], e[1], e[2], e[3]);
  13764. d & c.DEPTH_BUFFER_BIT && c.clearDepth(g);
  13765. d & c.STENCIL_BUFFER_BIT && c.clearStencil(h)
  13766. }
  13767. this.kd();
  13768. c = this.i;
  13769. for (d = 0; d < c.length; d++) e =
  13770. c[d], e != this.sprite && e.I();
  13771. this.end()
  13772. }
  13773. },
  13774. q_a: function() {
  13775. f.log("saveToFile isn't supported on cocos2d-html5");
  13776. return null
  13777. },
  13778. BOa: function(c, d, e, g, h) {
  13779. for (var k = 0; k < h; k++) c[d + k] = e[g + k]
  13780. },
  13781. U1a: function() {
  13782. f.log("saveToFile isn't supported on Cocos2d-Html5")
  13783. },
  13784. i_a: function() {
  13785. f.log("listenToBackground isn't supported on Cocos2d-Html5")
  13786. },
  13787. j_a: function() {
  13788. f.log("listenToForeground isn't supported on Cocos2d-Html5")
  13789. },
  13790. USa: function() {
  13791. return this.LO
  13792. },
  13793. J2a: function(c) {
  13794. this.LO = c
  13795. },
  13796. Hza: function() {
  13797. return this.Kq
  13798. },
  13799. t2: null,
  13800. lua: function(c) {
  13801. var d =
  13802. this.Kq;
  13803. d.r = c.r;
  13804. d.g = c.g;
  13805. d.b = c.b;
  13806. d.a = c.a;
  13807. this.uV = "rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + "," + c.a / 255 + ")"
  13808. },
  13809. mua: function(c) {
  13810. var d = this.Kq;
  13811. d.r = c.r;
  13812. d.g = c.g;
  13813. d.b = c.b;
  13814. d.a = c.a
  13815. },
  13816. TSa: function() {
  13817. return this.f_
  13818. },
  13819. I2a: function(c) {
  13820. this.f_ = c
  13821. },
  13822. VSa: function() {
  13823. return this.g_
  13824. },
  13825. K2a: function(c) {
  13826. this.g_ = c
  13827. },
  13828. oXa: function() {
  13829. return this.YG
  13830. },
  13831. x2a: function(c) {
  13832. this.YG = c
  13833. }
  13834. });
  13835. q = f.nv.prototype;
  13836. f.K == f.na ? (q.ctor = q.bF, q.De = q.Iqa, q.PP = q.Esa, q.Qn = q.qqa, q.gV = q.sqa, q.end = q.mra, q.clearRect = q.Mqa, q.clearDepth = q.Kqa, q.clearStencil = q.Oqa, q.I = q.Uw, q.ma = q.fn, q.t2 = q.mua) : (q.ctor = q.aF, q.De = q.Hqa, q.PP = q.Dsa, q.Qn = q.pqa, q.gV = q.rqa, q.end = q.lra, q.clearRect = q.Lqa, q.clearDepth = q.Jqa, q.clearStencil = q.Nqa, q.I = q.Br, q.ma = q.Rq, q.t2 = q.lua);
  13837. f.d(q, "clearColorVal", q.Hza, q.t2);
  13838. f.nv.create = function(c, d, e, g) {
  13839. return new f.nv(c, d, e, g)
  13840. };
  13841. f.an = f.hq.extend({
  13842. td: null,
  13843. YW: null,
  13844. Ba: !1,
  13845. dc: null,
  13846. ta: "LabelAtlas",
  13847. ctor: function(c, d, e, g, h) {
  13848. f.hq.prototype.ctor.call(this);
  13849. d && f.an.prototype.xf.call(this, c, d, e, g, h)
  13850. },
  13851. RC: function() {
  13852. return this.Ba
  13853. },
  13854. oe: function(c, d) {
  13855. this.dc || (this.dc = []);
  13856. this.dc.push({
  13857. al: c,
  13858. nj: d
  13859. })
  13860. },
  13861. jf: function() {
  13862. if (this.dc) {
  13863. this.Ba = !0;
  13864. for (var c = this.dc, d = 0, e = c.length; d < e; d++) {
  13865. var g = c[d];
  13866. g.al.call(g.nj, this)
  13867. }
  13868. c.length = 0
  13869. }
  13870. },
  13871. xf: function(c, d, e, g, h) {
  13872. var k = c + "",
  13873. m, n;
  13874. if (void 0 === e) {
  13875. e = f.L.zd(d);
  13876. if (1 !== parseInt(e.version, 10)) return f.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"), !1;
  13877. d = f.path.pB(d, e.textureFilename);
  13878. g = f.Uc();
  13879. m = parseInt(e.itemWidth, 10) / g;
  13880. n = parseInt(e.itemHeight, 10) / g;
  13881. e = String.fromCharCode(parseInt(e.firstChar, 10))
  13882. } else m = e || 0, n = g || 0, e = h || " ";
  13883. var p = null,
  13884. p = d instanceof f.Pa ? d : f.nb.vd(d);
  13885. (this.Ba = d = p.ie) || p.oe(function() {
  13886. this.va(p, m, n, k.length);
  13887. this.string = k;
  13888. this.jf()
  13889. }, this);
  13890. return this.va(p, m, n, k.length) ? (this.YW = e, this.string = k, !0) : !1
  13891. },
  13892. F: function(c) {
  13893. f.hq.prototype.F.call(this, c);
  13894. this.VC()
  13895. },
  13896. qc: function() {
  13897. return this.td
  13898. },
  13899. ma: function(c) {
  13900. f.hq.prototype.ma.call(this,
  13901. c);
  13902. f.ima && (c = this.size, f.If.Sf([r(0, 0), r(c.width, 0), r(c.width, c.height), r(0, c.height)], 4, !0))
  13903. },
  13904. LU: function(c, d, e) {
  13905. c.Tsa = !0;
  13906. f.ja.prototype.n.call(this, c, d, e)
  13907. },
  13908. VC: null,
  13909. rva: function() {
  13910. for (var c = this.td || "", d = c.length, e = this.texture, g = this.Sj, h = this.Ti, k = 0; k < d; k++) {
  13911. var m = c.charCodeAt(k) - this.YW.charCodeAt(0),
  13912. m = x(parseInt(m % this.jA, 10) * g, parseInt(m / this.jA, 10) * h, g, h),
  13913. n = c.charCodeAt(k),
  13914. p = this.Za(k);
  13915. p ? 32 == n ? (p.j(), p.sc(x(0, 0, 10, 10), !1, t(0, 0))) : (p.va(e, m), p.visible = !0, p.opacity = this.kb) : (p = new f.q, 32 == n ?
  13916. (p.j(), p.sc(x(0, 0, 10, 10), !1, t(0, 0))) : p.va(e, m), f.ja.prototype.n.call(this, p, 0, k));
  13917. p.o(k * g + g / 2, h / 2)
  13918. }
  13919. },
  13920. sva: function() {
  13921. var c = this.td,
  13922. d = c.length,
  13923. e = this.textureAtlas,
  13924. g = e.texture,
  13925. h = g.pixelsWidth,
  13926. g = g.pixelsHeight,
  13927. k = this.Sj,
  13928. m = this.Ti;
  13929. this.pM || (k = this.Sj * f.Uc(), m = this.Ti * f.Uc());
  13930. d > e.cg && f.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length");
  13931. for (var n = e.quads, p = this.Ab, p = {
  13932. r: p.r,
  13933. g: p.g,
  13934. b: p.b,
  13935. a: this.kb
  13936. }, s = this.Sj, u = 0; u < d; u++) {
  13937. var v = c.charCodeAt(u) - this.YW.charCodeAt(0),
  13938. z = v % this.jA,
  13939. A = 0 | v / this.jA,
  13940. B;
  13941. f.Ey ? (z = (2 * z * k + 1) / (2 * h), v = z + (2 * k - 2) / (2 * h), A = (2 * A * m + 1) / (2 * g), B = A + (2 * m - 2) / (2 * g)) : (z = z * k / h, v = z + k / h, A = A * m / g, B = A + m / g);
  13942. var C = n[u],
  13943. G = C.Z,
  13944. L = C.W,
  13945. O = C.T,
  13946. C = C.aa;
  13947. G.t.Da = z;
  13948. G.t.ga = A;
  13949. L.t.Da = v;
  13950. L.t.ga = A;
  13951. O.t.Da = z;
  13952. O.t.ga = B;
  13953. C.t.Da = v;
  13954. C.t.ga = B;
  13955. O.k.x = u * s;
  13956. O.k.y = 0;
  13957. O.k.z = 0;
  13958. C.k.x = u * s + s;
  13959. C.k.y = 0;
  13960. C.k.z = 0;
  13961. G.k.x = u * s;
  13962. G.k.y = this.Ti;
  13963. G.k.z = 0;
  13964. L.k.x = u * s + s;
  13965. L.k.y = this.Ti;
  13966. L.k.z = 0;
  13967. G.D = p;
  13968. L.D = p;
  13969. O.D = p;
  13970. C.D = p
  13971. }
  13972. 0 < d && (e.dirty = !0, c = e.totalQuads, d > c && e.rea(d - c))
  13973. },
  13974. wa: null,
  13975. Nua: function(c) {
  13976. c = String(c);
  13977. var d = c.length;
  13978. this.td = c;
  13979. this.width = d * this.Sj;
  13980. this.height =
  13981. this.Ti;
  13982. if (this.i) {
  13983. c = this.i;
  13984. for (var d = c.length, e = 0; e < d; e++) {
  13985. var g = c[e];
  13986. g && !g.Tsa && (g.visible = !1)
  13987. }
  13988. }
  13989. this.VC();
  13990. this.quadsToDraw = d
  13991. },
  13992. Pua: function(c) {
  13993. c = String(c);
  13994. var d = c.length;
  13995. d > this.textureAtlas.totalQuads && this.textureAtlas.NQ(d);
  13996. this.td = c;
  13997. this.width = d * this.Sj;
  13998. this.height = this.Ti;
  13999. this.VC();
  14000. this.quadsToDraw = d
  14001. },
  14002. J: null,
  14003. lY: function(c) {
  14004. if (this.kb !== c) {
  14005. f.hq.prototype.J.call(this, c);
  14006. for (var d = this.i, e = 0, g = d.length; e < g; e++) d[e] && (d[e].opacity = c)
  14007. }
  14008. },
  14009. mY: function(c) {
  14010. this.Ib !== c && f.hq.prototype.J.call(this, c)
  14011. }
  14012. });
  14013. q = f.an.prototype;
  14014. f.K === f.na ? (q.VC = q.sva, q.wa = q.Pua, q.J = q.mY) : (q.VC = q.rva, q.wa = q.Nua, q.J = q.lY, q.n = q.LU);
  14015. f.d(q, "opacity", q.vb, q.J);
  14016. f.d(q, "string", q.qc, q.wa);
  14017. f.an.create = function(c, d, e, g, h) {
  14018. return new f.an(c, d, e, g, h)
  14019. };
  14020. f.BLa = -1;
  14021. f.qq = f.Fh.extend({
  14022. wb: !0,
  14023. Jb: !1,
  14024. td: "",
  14025. Fk: null,
  14026. qF: "",
  14027. cA: "",
  14028. CE: f.Bo,
  14029. RG: -1,
  14030. R$: !1,
  14031. qM: null,
  14032. Laa: null,
  14033. kb: 255,
  14034. Lg: 255,
  14035. Ab: null,
  14036. rd: null,
  14037. dg: !0,
  14038. Dg: !0,
  14039. Ba: !1,
  14040. dc: null,
  14041. ta: "LabelBMFont",
  14042. Xaa: function(c, d) {
  14043. d ? this.cA = c : this.td = c;
  14044. var e = this.i;
  14045. if (e)
  14046. for (var g = 0; g < e.length; g++) {
  14047. var h = e[g];
  14048. h && h.za(!1)
  14049. }
  14050. this.Ba && (this.QO(), d && this.Bl())
  14051. },
  14052. ctor: function(c, d, e, g, h) {
  14053. f.Fh.prototype.ctor.call(this);
  14054. this.qM = r(0, 0);
  14055. this.Ab = f.color(255, 255, 255, 255);
  14056. this.rd = f.color(255, 255, 255, 255);
  14057. this.Laa = [];
  14058. this.xf(c, d, e, g, h)
  14059. },
  14060. RC: function() {
  14061. return this.Ba
  14062. },
  14063. oe: function(c,
  14064. d) {
  14065. this.dc || (this.dc = []);
  14066. this.dc.push({
  14067. al: c,
  14068. nj: d
  14069. })
  14070. },
  14071. jf: function() {
  14072. if (this.dc) {
  14073. for (var c = this.dc, d = 0, e = c.length; d < e; d++) {
  14074. var g = c[d];
  14075. g.al.call(g.nj, this)
  14076. }
  14077. c.length = 0
  14078. }
  14079. },
  14080. ma: function(c) {
  14081. f.Fh.prototype.ma.call(this, c);
  14082. if (f.jma) {
  14083. c = this.e();
  14084. var d = r(0 | -this.Qb.x, 0 | -this.Qb.y);
  14085. c = [r(d.x, d.y), r(d.x + c.width, d.y), r(d.x + c.width, d.y + c.height), r(d.x, d.y + c.height)];
  14086. f.If.wj(0, 255, 0, 255);
  14087. f.If.Sf(c, 4, !0)
  14088. }
  14089. },
  14090. F: function(c) {
  14091. var d = this.Ab,
  14092. e = this.rd;
  14093. if (e.r != c.r || e.g != c.g || e.b != c.b || e.a != c.a) d.r = e.r = c.r, d.g = e.g = c.g, d.b = e.b = c.b,
  14094. this.Ba && this.dg && (d = f.color.WHITE, (e = this.Yb) && e.wb && e.cascadeColor && (d = e.ou()), this.Wb(d)), void 0 === c.a || c.Yw || this.J(c.a)
  14095. },
  14096. vg: function() {
  14097. return this.Jb
  14098. },
  14099. ee: function(c) {
  14100. this.Jb = c;
  14101. if (c = this.i)
  14102. for (var d = 0; d < c.length; d++) {
  14103. var e = c[d];
  14104. e && e.wb && (e.opacityModifyRGB = this.Jb)
  14105. }
  14106. },
  14107. vb: function() {
  14108. return this.Lg
  14109. },
  14110. wda: function() {
  14111. return this.kb
  14112. },
  14113. J: function(c) {
  14114. this.kb = this.Lg = c;
  14115. if (this.Dg) {
  14116. var d = 255,
  14117. e = this.Yb;
  14118. e && e.wb && e.cascadeOpacity && (d = e.kb);
  14119. this.hc(d)
  14120. }
  14121. this.Ab.a = this.rd.a = c
  14122. },
  14123. hc: function(c) {
  14124. this.kb = this.Lg * c / 255;
  14125. c = this.i;
  14126. for (var d = 0; d < c.length; d++) {
  14127. var e = c[d];
  14128. f.K == f.na ? e.hc(this.kb) : (f.ja.prototype.hc.call(e, this.kb), e.Ha())
  14129. }
  14130. this.Us()
  14131. },
  14132. WH: function() {
  14133. return !1
  14134. },
  14135. Hu: function(c) {
  14136. this.Dg = c
  14137. },
  14138. $a: function() {
  14139. var c = this.rd;
  14140. return f.color(c.r, c.g, c.b, c.a)
  14141. },
  14142. ou: function() {
  14143. return this.Ab
  14144. },
  14145. Wb: function(c) {
  14146. var d = this.Ab,
  14147. e = this.rd;
  14148. d.r = e.r * c.r / 255;
  14149. d.g = e.g * c.g / 255;
  14150. d.b = e.b * c.b / 255;
  14151. c = this.i;
  14152. for (d = 0; d < c.length; d++) e = c[d], f.K == f.na ? e.Wb(this.Ab) : (f.ja.prototype.Wb.call(e, this.Ab), e.Ha());
  14153. this.Us()
  14154. },
  14155. Us: function() {
  14156. if (f.K != f.na) {
  14157. var c,
  14158. d = this.texture;
  14159. d && 0 < d.width && (c = d.md) && (d = f.nb.vP(this.qi.md)) && (c instanceof HTMLCanvasElement && !this.pf ? f.HB(c, d, this.Ab, null, c) : (c = f.HB(c, d, this.Ab), d = new f.Pa, d.sh(c), d.$d(), this.texture = d))
  14160. }
  14161. },
  14162. VH: function() {
  14163. return !1
  14164. },
  14165. Gu: function(c) {
  14166. this.dg = c
  14167. },
  14168. j: function() {
  14169. return this.xf(null, null, null, null, null)
  14170. },
  14171. xf: function(c, d, e, g, h) {
  14172. c = c || "";
  14173. this.Fk && f.log("cc.LabelBMFont.initWithString(): re-init is no longer supported");
  14174. if (d) {
  14175. var k = f.L.zd(d);
  14176. if (!k) return f.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"), !1;
  14177. this.Fk = k;
  14178. this.qF = d;
  14179. d = f.nb.vd(k.dca);
  14180. (this.Ba = k = d.ie) || d.oe(function(c) {
  14181. this.Ba = !0;
  14182. this.va(c, this.cA.length);
  14183. this.wa(this.cA, !0);
  14184. this.jf()
  14185. }, this)
  14186. } else d = new f.Pa, k = new Image, d.sh(k), this.Ba = !1;
  14187. return this.va(d, c.length) ? (this.CE = g || f.wK, this.qM = h || r(0, 0), this.RG = null == e ? -1 : e, this.kb = this.Lg = 255, this.Ab = f.color(255, 255, 255, 255), this.rd = f.color(255, 255, 255, 255), this.dg = this.Dg = !0, this.m.width = 0, this.m.height = 0, this.S(0.5, 0.5), f.K === f.na && (e = this.textureAtlas.texture, this.Jb = e.Ep(), g = this.Laa = new f.q,
  14188. g.va(e, x(0, 0, 0, 0), !1), g.batchNode = this), this.wa(c, !0), !0) : !1
  14189. },
  14190. QO: function() {
  14191. var c = f.K,
  14192. d = c === f.fb ? this.texture : this.textureAtlas.texture,
  14193. e = 0,
  14194. g = t(0, 0),
  14195. h = 0,
  14196. k = 1,
  14197. m = this.td,
  14198. n = m ? m.length : 0;
  14199. if (0 !== n) {
  14200. var p, s = this.Fk,
  14201. u = s.lDa,
  14202. v = s.j_,
  14203. z = s.iza;
  14204. for (p = 0; p < n - 1; p++) 10 == m.charCodeAt(p) && k++;
  14205. var A = v * k,
  14206. k = -(v - v * k),
  14207. B = -1;
  14208. for (p = 0; p < n; p++)
  14209. if (v = m.charCodeAt(p), 0 != v)
  14210. if (10 === v) e = 0, k -= s.j_;
  14211. else {
  14212. var C = u[B << 16 | v & 65535] || 0,
  14213. G = z[v];
  14214. if (G) {
  14215. var L = x(G.rect.x, G.rect.y, G.rect.width, G.rect.height),
  14216. L = f.cs(L);
  14217. L.x += this.qM.x;
  14218. L.y += this.qM.y;
  14219. (B = this.Za(p)) ? 32 === v && c === f.fb ? B.sc(L, !1, t(0, 0)) : (B.sc(L, !1), B.visible = !0): (B = new f.q, 32 === v && c === f.fb && (L = x(0, 0, 0, 0)), B.va(d, L, !1), B.fX = !0, this.n(B, 0, p));
  14220. B.opacityModifyRGB = this.Jb;
  14221. f.K == f.na ? (B.Wb(this.Ab), B.hc(this.kb)) : (f.ja.prototype.Wb.call(B, this.Ab), f.ja.prototype.hc.call(B, this.kb), B.Ha());
  14222. L = r(e + G.Pia + 0.5 * G.rect.width + C, k + (s.j_ - G.Qia) - 0.5 * L.height * f.Uc());
  14223. B.o(f.J1(L));
  14224. e += G.rJa + C;
  14225. B = v;
  14226. h < e && (h = e)
  14227. } else f.log("cocos2d: LabelBMFont: character not found " + m[p])
  14228. }
  14229. g.width = h;
  14230. g.height = A;
  14231. this.Ga(f.eia(g))
  14232. }
  14233. },
  14234. N5a: function(c) {
  14235. var d = this.i;
  14236. if (d)
  14237. for (var e = 0, g = d.length; e < g; e++) {
  14238. var h = d[e];
  14239. h && (h.visible = !1)
  14240. }
  14241. this.Fk && this.QO();
  14242. c || this.Bl()
  14243. },
  14244. qc: function() {
  14245. return this.cA
  14246. },
  14247. wa: function(c, d) {
  14248. c = String(c);
  14249. null == d && (d = !0);
  14250. if (null == c || "string" != typeof c) c += "";
  14251. this.cA = c;
  14252. this.Xaa(c, d)
  14253. },
  14254. Oua: function(c) {
  14255. this.wa(c, !1)
  14256. },
  14257. G2a: function(c) {
  14258. this.wa(c, !0)
  14259. },
  14260. Bl: function() {
  14261. this.string = this.cA;
  14262. if (0 < this.RG) {
  14263. for (var c = this.td.length, d = [], e = [], g = 1, h = 0, k = !1, m = !1, n = -1, p = -1, s = 0, u, v = 0, z = this.i.length; v < z; v++) {
  14264. for (var A = 0; !(u = this.Za(v + s +
  14265. A));) A++;
  14266. s += A;
  14267. if (h >= c) break;
  14268. var B = this.td[h];
  14269. m || (p = this.vW(u), m = !0);
  14270. k || (n = p, k = !0);
  14271. if (10 == B.charCodeAt(0)) {
  14272. e.push("\n");
  14273. d = d.concat(e);
  14274. e.length = 0;
  14275. k = m = !1;
  14276. n = p = -1;
  14277. v--;
  14278. s -= A;
  14279. g++;
  14280. if (h >= c) break;
  14281. p || (p = this.vW(u), m = !0);
  14282. n || (n = p, k = !0);
  14283. h++
  14284. } else if (f.W0(B)) e.push(B), d = d.concat(e), e.length = 0, m = !1, p = -1, h++;
  14285. else if (this.Rra(u) - n > this.RG)
  14286. if (this.R$) {
  14287. f.Lia(e);
  14288. e.push("\n");
  14289. d = d.concat(e);
  14290. e.length = 0;
  14291. k = m = !1;
  14292. n = p = -1;
  14293. g++;
  14294. if (h >= c) break;
  14295. p || (p = this.vW(u), m = !0);
  14296. n || (n = p, k = !0);
  14297. v--
  14298. } else e.push(B), -1 != d.lastIndexOf(" ") ? f.Lia(d) : d = [], 0 < d.length && d.push("\n"), g++, k = !1, n = -1, h++;
  14299. else e.push(B), h++
  14300. }
  14301. d = d.concat(e);
  14302. v = d.length;
  14303. u = "";
  14304. for (h = 0; h < v; ++h) u += d[h];
  14305. u += String.fromCharCode(0);
  14306. this.Xaa(u, !1)
  14307. }
  14308. if (this.CE != f.wK)
  14309. for (d = h = 0, c = this.td.length, e = [], g = 0; g < c; g++)
  14310. if (10 == this.td[g].charCodeAt(0) || 0 == this.td[g].charCodeAt(0))
  14311. if (v = 0, k = e.length, 0 == k) d++;
  14312. else {
  14313. if (u = h + k - 1 + d, !(0 > u) && (v = this.Za(u), null != v)) {
  14314. v = v.Vc() + v.lf() / 2;
  14315. m = 0;
  14316. switch (this.CE) {
  14317. case f.Bo:
  14318. m = this.width / 2 - v / 2;
  14319. break;
  14320. case f.q7:
  14321. m = this.width - v
  14322. }
  14323. if (0 != m)
  14324. for (v = 0; v < k; v++)(u = h + v + d, 0 > u || !(u = this.Za(u))) ||
  14325. (u.x += m);
  14326. h += k;
  14327. d++;
  14328. e.length = 0
  14329. }
  14330. } else e.push(this.td[h])
  14331. },
  14332. sGa: function(c) {
  14333. this.CE = c;
  14334. this.Bl()
  14335. },
  14336. Ara: function() {
  14337. return this.CE
  14338. },
  14339. BGa: function(c) {
  14340. this.RG = c;
  14341. this.Bl()
  14342. },
  14343. vF: function() {
  14344. return this.RG
  14345. },
  14346. B3a: function(c) {
  14347. this.R$ = c;
  14348. this.Bl()
  14349. },
  14350. ib: function(c, d) {
  14351. f.v.prototype.ib.call(this, c, d);
  14352. this.Bl()
  14353. },
  14354. jb: function(c) {
  14355. f.v.prototype.jb.call(this, c);
  14356. this.Bl()
  14357. },
  14358. tb: function(c) {
  14359. f.v.prototype.tb.call(this, c);
  14360. this.Bl()
  14361. },
  14362. GC: function(c) {
  14363. if (null != c && c != this.qF) {
  14364. var d = f.L.zd(c);
  14365. d ? (this.qF = c, this.Fk = d, c = f.nb.vd(d.dca), this.Ba =
  14366. d = c.ie, this.texture = c, f.K === f.fb && (this.qi = this.texture), d ? this.QO() : c.oe(function(c) {
  14367. this.Ba = !0;
  14368. this.texture = c;
  14369. this.QO();
  14370. this.Us();
  14371. this.Bl();
  14372. this.jf()
  14373. }, this)) : f.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file")
  14374. }
  14375. },
  14376. WTa: function() {
  14377. return this.qF
  14378. },
  14379. S: function(c, d) {
  14380. f.v.prototype.S.call(this, c, d);
  14381. this.Bl()
  14382. },
  14383. Uaa: function(c) {
  14384. f.v.prototype.Uaa.call(this, c);
  14385. this.Bl()
  14386. },
  14387. Xe: function(c) {
  14388. f.v.prototype.Xe.call(this, c);
  14389. this.Bl()
  14390. },
  14391. Ye: function(c) {
  14392. f.v.prototype.Ye.call(this, c);
  14393. this.Bl()
  14394. },
  14395. yNa: function() {},
  14396. uOa: function(c, d) {
  14397. var e = 0;
  14398. if (this.Rqa.mDa) {
  14399. var g = this.Rqa.mDa[(c << 16 | d & 65535).toString()];
  14400. g && (e = g.JPa)
  14401. }
  14402. return e
  14403. },
  14404. vW: function(c) {
  14405. return c.Vc() * this.ka - c.lf() * this.ka * c.Eb.x
  14406. },
  14407. Rra: function(c) {
  14408. return c.Vc() * this.ka + c.lf() * this.ka * c.Eb.x
  14409. }
  14410. });
  14411. q = f.qq.prototype;
  14412. f.d(q, "opacityModifyRGB", q.vg, q.ee);
  14413. f.d(q, "opacity", q.vb, q.J);
  14414. f.d(q, "cascadeOpacity", q.WH, q.Hu);
  14415. f.d(q, "color", q.$a, q.F);
  14416. f.d(q, "cascadeColor", q.VH, q.Gu);
  14417. f.d(q, "string", q.qc, q.Oua);
  14418. f.d(q, "boundingWidth", q.vF, q.BGa);
  14419. f.d(q, "textAlign", q.Ara, q.sGa);
  14420. f.qq.create = function(c, d, e, g, h) {
  14421. return new f.qq(c, d, e, g, h)
  14422. };
  14423. f.W0 = function(c) {
  14424. c = c.charCodeAt(0);
  14425. return 9 <= c && 13 >= c || 32 == c || 133 == c || 160 == c || 5760 == c || 8192 <= c && 8202 >= c || 8232 == c || 8233 == c || 8239 == c || 8287 == c || 12288 == c
  14426. };
  14427. f.Lia = function(c) {
  14428. var d = c.length;
  14429. if (!(0 >= d) && (d -= 1, f.W0(c[d]))) {
  14430. for (var e = d - 1; 0 <= e; --e)
  14431. if (f.W0(c[e])) d = e;
  14432. else break;
  14433. f.kJa(c, d)
  14434. }
  14435. };
  14436. f.kJa = function(c, d) {
  14437. var e = c.length;
  14438. d >= e || 0 > d || c.splice(d, e)
  14439. };
  14440. f.ura = {
  14441. Sla: /info [^\n]*(\n|$)/gi,
  14442. Tja: /common [^\n]*(\n|$)/gi,
  14443. Xma: /page [^\n]*(\n|$)/gi,
  14444. Sja: /char [^\n]*(\n|$)/gi,
  14445. $la: /kerning [^\n]*(\n|$)/gi,
  14446. Ula: /\w+=[^ \r\n]+/gi,
  14447. Tla: /^[\-]?\d+$/,
  14448. YF: function(c) {
  14449. c = c.match(this.Ula);
  14450. var d = {};
  14451. if (c)
  14452. for (var e = 0, g = c.length; e < g; e++) {
  14453. var h = c[e],
  14454. k = h.indexOf("\x3d"),
  14455. m = h.substring(0, k),
  14456. h = h.substring(k + 1);
  14457. h.match(this.Tla) ? h = parseInt(h) : '"' == h[0] && (h = h.substring(1, h.length - 1));
  14458. d[m] = h
  14459. }
  14460. return d
  14461. },
  14462. rEa: function(c, d) {
  14463. var e = {};
  14464. this.YF(c.match(this.Sla)[0]);
  14465. var g = this.YF(c.match(this.Tja)[0]);
  14466. e.j_ = g.lineHeight;
  14467. if (f.K === f.na) {
  14468. var h = f.tB.MF;
  14469. (g.scaleW > h.width || g.scaleH > h.height) && f.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported")
  14470. }
  14471. 1 !== g.pages && f.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page");
  14472. g = this.YF(c.match(this.Xma)[0]);
  14473. 0 !== g.id && f.log("cc.LabelBMFont._parseImageFileName() : file could not be found");
  14474. e.dca = f.path.pB(d, g.file);
  14475. for (var k = c.match(this.Sja), m = e.iza = {}, g = 0, h = k.length; g < h; g++) {
  14476. var n = this.YF(k[g]);
  14477. m[n.id] = {
  14478. rect: {
  14479. x: n.x,
  14480. y: n.y,
  14481. width: n.width,
  14482. height: n.height
  14483. },
  14484. Pia: n.xoffset,
  14485. Qia: n.yoffset,
  14486. rJa: n.xadvance
  14487. }
  14488. }
  14489. k = e.lDa = {};
  14490. if (m = c.match(this.$la))
  14491. for (g = 0, h = m.length; g < h; g++) n = this.YF(m[g]), k[n.first << 16 | n.second & 65535] = n.amount;
  14492. return e
  14493. },
  14494. load: function(c, d, e, g) {
  14495. var h = this;
  14496. f.L.lQ(c, function(c, e) {
  14497. if (c) return g(c);
  14498. g(null, h.rEa(e, d))
  14499. })
  14500. }
  14501. };
  14502. f.L.Xp(["fnt"], f.ura);
  14503. f.g6 = f.ja.extend({
  14504. texture: null,
  14505. DB: !1,
  14506. dq: !1,
  14507. B: null,
  14508. AG: 0,
  14509. dW: 0,
  14510. ew: 0,
  14511. bX: 0,
  14512. zt: 0,
  14513. LX: 0,
  14514. BX: null,
  14515. AX: null,
  14516. ec: null,
  14517. yz: null,
  14518. Vk: null,
  14519. rg: null,
  14520. zz: null,
  14521. VA: null,
  14522. ta: "MotionStreak",
  14523. ctor: function(c, d, e, g, h) {
  14524. f.ja.prototype.ctor.call(this);
  14525. this.em = r(0, 0);
  14526. this.B = new f.Um(f.SRC_ALPHA, f.ONE_MINUS_SRC_ALPHA);
  14527. this.gZ = f.s.createBuffer();
  14528. this.dq = this.DB = !1;
  14529. this.texture = null;
  14530. this.LX = this.zt = this.bX = this.ew = this.dW = this.AG = 0;
  14531. this.VA = this.zz = this.rg = this.Vk = this.yz = this.ec = this.AX = this.BX = null;
  14532. void 0 !== h && this.tCa(c, d, e, g, h)
  14533. },
  14534. sb: function() {
  14535. return this.texture
  14536. },
  14537. ab: function(c) {
  14538. this.texture != c && (this.texture = c)
  14539. },
  14540. ck: function() {
  14541. return this.B
  14542. },
  14543. ce: function(c, d) {
  14544. void 0 === d ? this.B = c : (this.B.src = c, this.B.ha = d)
  14545. },
  14546. vb: function() {
  14547. f.log("cc.MotionStreak.getOpacity has not been supported.");
  14548. return 0
  14549. },
  14550. J: function() {
  14551. f.log("cc.MotionStreak.setOpacity has not been supported.")
  14552. },
  14553. ee: function() {},
  14554. vg: function() {
  14555. return !1
  14556. },
  14557. Ra: function() {
  14558. f.v.prototype.Ra.call(this);
  14559. this.rg && f.s.deleteBuffer(this.rg);
  14560. this.VA && f.s.deleteBuffer(this.VA);
  14561. this.zz && f.s.deleteBuffer(this.zz)
  14562. },
  14563. CXa: function() {
  14564. return this.DB
  14565. },
  14566. d3a: function(c) {
  14567. this.DB = c
  14568. },
  14569. WXa: function() {
  14570. return this.dq
  14571. },
  14572. l4a: function(c) {
  14573. this.dq = c
  14574. },
  14575. tCa: function(c, d, e, g, h) {
  14576. if (!h) throw "cc.MotionStreak.initWithFade(): Invalid filename or texture";
  14577. "string" === typeof h && (h = f.nb.vd(h));
  14578. f.v.prototype.o.call(this, r(0, 0));
  14579. this.anchorY = this.anchorX = 0;
  14580. this.ignoreAnchor = !0;
  14581. this.dq = !1;
  14582. this.DB = !0;
  14583. this.ew = -1 == d ? e / 5 : d;
  14584. this.ew *= this.ew;
  14585. this.AG = e;
  14586. this.dW = 1 / c;
  14587. c = (0 | 60 * c) + 2;
  14588. this.zt = 0;
  14589. this.AX = new Float32Array(c);
  14590. this.BX = new Float32Array(2 * c);
  14591. this.ec = new Float32Array(4 * c);
  14592. this.Vk =
  14593. new Float32Array(4 * c);
  14594. this.yz = new Uint8Array(8 * c);
  14595. this.bX = c;
  14596. c = f.s;
  14597. this.rg = c.createBuffer();
  14598. this.VA = c.createBuffer();
  14599. this.zz = c.createBuffer();
  14600. this.B.src = c.SRC_ALPHA;
  14601. this.B.ha = c.ONE_MINUS_SRC_ALPHA;
  14602. this.shaderProgram = f.xg.be(f.zo);
  14603. this.texture = h;
  14604. this.color = g;
  14605. this.ds();
  14606. c.bindBuffer(c.ARRAY_BUFFER, this.rg);
  14607. c.bufferData(c.ARRAY_BUFFER, this.ec, c.DYNAMIC_DRAW);
  14608. c.bindBuffer(c.ARRAY_BUFFER, this.VA);
  14609. c.bufferData(c.ARRAY_BUFFER, this.Vk, c.DYNAMIC_DRAW);
  14610. c.bindBuffer(c.ARRAY_BUFFER, this.zz);
  14611. c.bufferData(c.ARRAY_BUFFER,
  14612. this.yz, c.DYNAMIC_DRAW);
  14613. return !0
  14614. },
  14615. A5a: function(c) {
  14616. this.color = c;
  14617. for (var d = this.yz, e = 0, g = 2 * this.zt; e < g; e++) d[4 * e] = c.r, d[4 * e + 1] = c.g, d[4 * e + 2] = c.b
  14618. },
  14619. reset: function() {
  14620. this.zt = 0
  14621. },
  14622. o: function(c, d) {
  14623. this.dq = !0;
  14624. void 0 === d ? (this.em.x = c.x, this.em.y = c.y) : (this.em.x = c, this.em.y = d)
  14625. },
  14626. Vc: function() {
  14627. return this.em.x
  14628. },
  14629. ls: function(c) {
  14630. this.em.x = c;
  14631. this.dq || (this.dq = !0)
  14632. },
  14633. Zd: function() {
  14634. return this.em.y
  14635. },
  14636. Lu: function(c) {
  14637. this.em.y = c;
  14638. this.dq || (this.dq = !0)
  14639. },
  14640. ma: function(c) {
  14641. 1 >= this.zt || !this.texture || !this.texture.ie || (c = c || f.s, f.qC(this),
  14642. f.wf(f.tv), f.Fm(this.B.src, this.B.ha), f.Ai(this.texture), c.bindBuffer(c.ARRAY_BUFFER, this.rg), c.bufferData(c.ARRAY_BUFFER, this.ec, c.DYNAMIC_DRAW), c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0), c.bindBuffer(c.ARRAY_BUFFER, this.VA), c.bufferData(c.ARRAY_BUFFER, this.Vk, c.DYNAMIC_DRAW), c.vertexAttribPointer(f.$g, 2, c.FLOAT, !1, 0, 0), c.bindBuffer(c.ARRAY_BUFFER, this.zz), c.bufferData(c.ARRAY_BUFFER, this.yz, c.DYNAMIC_DRAW), c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, 0, 0), c.drawArrays(c.TRIANGLE_STRIP, 0, 2 *
  14643. this.zt), f.bl++)
  14644. },
  14645. update: function(c) {
  14646. if (this.dq) {
  14647. c *= this.dW;
  14648. var d, e, g, h, k = 0,
  14649. m = this.zt,
  14650. n = this.AX,
  14651. p = this.BX,
  14652. s = this.ec,
  14653. u = this.yz;
  14654. for (g = 0; g < m; g++) n[g] -= c, 0 >= n[g] ? k++ : (d = g - k, 0 < k ? (n[d] = n[g], p[2 * d] = p[2 * g], p[2 * d + 1] = p[2 * g + 1], h = 2 * g, e = 2 * d, s[2 * e] = s[2 * h], s[2 * e + 1] = s[2 * h + 1], s[2 * (e + 1)] = s[2 * (h + 1)], s[2 * (e + 1) + 1] = s[2 * (h + 1) + 1], h *= 4, e *= 4, u[e + 0] = u[h + 0], u[e + 1] = u[h + 1], u[e + 2] = u[h + 2], u[e + 4] = u[h + 4], u[e + 5] = u[h + 5], u[e + 6] = u[h + 6]) : e = 8 * d, d = 255 * n[d], u[e + 3] = d, u[e + 7] = d);
  14655. m -= k;
  14656. g = !0;
  14657. m >= this.bX ? g = !1 : 0 < m && (c = 1 == m ? !1 : f.Ifa(r(p[2 * (m - 2)], p[2 *
  14658. (m - 2) + 1]), this.em) < 2 * this.ew, f.Ifa(r(p[2 * (m - 1)], p[2 * (m - 1) + 1]), this.em) < this.ew || c) && (g = !1);
  14659. g && (p[2 * m] = this.em.x, p[2 * m + 1] = this.em.y, n[m] = 1, g = 8 * m, n = this.Ab, u[g] = n.r, u[g + 1] = n.g, u[g + 2] = n.b, u[g + 4] = n.r, u[g + 5] = n.g, u[g + 6] = n.b, u[g + 3] = 255, u[g + 7] = 255, 0 < m && this.DB && (1 < m ? f.H3(p, this.AG, this.ec, m, 1) : f.H3(p, this.AG, this.ec, 0, 2)), m++);
  14660. this.DB || f.H3(p, this.AG, this.ec, 0, m);
  14661. if (m && this.LX != m) {
  14662. p = 1 / m;
  14663. u = this.Vk;
  14664. for (g = 0; g < m; g++) u[4 * g] = 0, u[4 * g + 1] = p * g, u[2 * (2 * g + 1)] = 1, u[2 * (2 * g + 1) + 1] = p * g;
  14665. this.LX = m
  14666. }
  14667. this.zt = m
  14668. }
  14669. }
  14670. });
  14671. f.g6.create = function(c, d, e, g, h) {
  14672. return new f.g6(c, d, e, g, h)
  14673. };
  14674. f.mT = f.v.extend({
  14675. grid: null,
  14676. ad: null,
  14677. vH: function() {
  14678. return this.grid
  14679. },
  14680. UGa: function(c) {
  14681. this.grid = c
  14682. },
  14683. ZI: function(c) {
  14684. this.ad = c
  14685. },
  14686. n: function(c, d, e) {
  14687. f.v.prototype.n.call(this, c, d, e);
  14688. c && !this.ad && (this.ad = c)
  14689. },
  14690. I: function() {
  14691. if (this.Na) {
  14692. var c = f.K == f.na,
  14693. d = this.grid;
  14694. c && d && d.ah && d.dx();
  14695. this.transform();
  14696. var e = this.i;
  14697. if (e && 0 < e.length) {
  14698. var g = e.length;
  14699. this.kd();
  14700. for (i = 0; i < g; i++) {
  14701. var h = e[i];
  14702. h && h.I()
  14703. }
  14704. }
  14705. c && d && d.ah && d.ax(this.ad)
  14706. }
  14707. },
  14708. pva: function() {
  14709. var c = this.UY,
  14710. d = f.Md.top,
  14711. e = this.se(),
  14712. g = c.c;
  14713. g[0] = e.a;
  14714. g[4] = e.G;
  14715. g[12] = e.pa;
  14716. g[1] =
  14717. e.b;
  14718. g[5] = e.P;
  14719. g[13] = e.qa;
  14720. g[14] = this.PG;
  14721. f.Np(d, d, c);
  14722. null == this.Hq || this.grid && this.grid.Bi() || (c = this.Qb.x, d = this.Qb.y, 0 !== c || 0 !== d ? (f.LT || (c |= 0, d |= 0), f.bC(c, d), this.Hq.gI(), f.bC(-c, -d)) : this.Hq.gI())
  14723. }
  14724. });
  14725. q = f.mT.prototype;
  14726. f.K === f.na && (q.transform = q.pva);
  14727. f.d(q, "target", null, q.ZI);
  14728. f.mT.create = function() {
  14729. return new f.mT
  14730. };
  14731. f.Q5a = function() {
  14732. return {
  14733. x: 0,
  14734. y: 0
  14735. }
  14736. };
  14737. f.Uu = function(c, d) {
  14738. return {
  14739. x: c,
  14740. y: d
  14741. }
  14742. };
  14743. f.Ji = function(c, d) {
  14744. return f.Uu(c.x + d.x, c.y + d.y)
  14745. };
  14746. f.Ke = function(c, d) {
  14747. return f.Uu(c.x - d.x, c.y - d.y)
  14748. };
  14749. f.Ug = function(c, d) {
  14750. return f.Uu(c.x * d, c.y * d)
  14751. };
  14752. f.ZC = function(c) {
  14753. return f.Uu(-c.y, c.x)
  14754. };
  14755. f.Dl = function(c) {
  14756. return f.Uu(-c.x, -c.y)
  14757. };
  14758. f.Mia = function(c, d) {
  14759. return c.x * d.x + c.y * d.y
  14760. };
  14761. f.P5a = function(c) {
  14762. return f.Uu(Math.cos(c), Math.sin(c))
  14763. };
  14764. f.tJ = function(c) {
  14765. c = f.Af(r(c.x, c.y));
  14766. return f.Uu(c.x, c.y)
  14767. };
  14768. f.Ni = function(c) {
  14769. return f.Uu(c.x, c.y)
  14770. };
  14771. f.Pb = function(c) {
  14772. return {
  14773. Da: c.x,
  14774. ga: c.y
  14775. }
  14776. };
  14777. f.ela = f.v.extend({
  14778. cc: null,
  14779. B: null,
  14780. ig: 1,
  14781. Oj: null,
  14782. ta: "DrawNodeCanvas",
  14783. ctor: function() {
  14784. f.v.prototype.ctor.call(this);
  14785. this.cc = [];
  14786. this.Oj = f.color(255, 255, 255, 255);
  14787. this.B = new f.Um(f.Mc, f.Lc);
  14788. this.j()
  14789. },
  14790. ck: function() {
  14791. return this.B
  14792. },
  14793. ce: function(c, d) {
  14794. void 0 === d ? (this.B.src = c.src, this.B.ha = c.ha) : (this.B.src = c, this.B.ha = d)
  14795. },
  14796. Ju: function(c) {
  14797. this.ig = c
  14798. },
  14799. rAa: function() {
  14800. return this.ig
  14801. },
  14802. wj: function(c) {
  14803. var d = this.Oj;
  14804. d.r = c.r;
  14805. d.g = c.g;
  14806. d.b = c.b;
  14807. d.a = null == c.a ? 255 : c.a
  14808. },
  14809. rh: function() {
  14810. return f.color(this.Oj.r, this.Oj.g, this.Oj.b,
  14811. this.Oj.a)
  14812. },
  14813. E_: function(c, d, e, g, h) {
  14814. g = g || this.ig;
  14815. h = h || this.rh();
  14816. null == h.a && (h.a = 255);
  14817. c = [c, r(d.x, c.y), d, r(c.x, d.y)];
  14818. d = new f.Fs(f.Yg.Bs);
  14819. d.zg = c;
  14820. d.lineWidth = g;
  14821. d.Tr = h;
  14822. d.TP = !0;
  14823. d.tu = !0;
  14824. d.lineCap = "butt";
  14825. if (d.fillColor = e) null == e.a && (e.a = 255), d.S0 = !0;
  14826. this.cc.push(d)
  14827. },
  14828. y_: function(c, d, e, g, h, k, m) {
  14829. k = k || this.ig;
  14830. m = m || this.rh();
  14831. null == m.a && (m.a = 255);
  14832. for (var n = 2 * Math.PI / g, p = [], s = 0; s <= g; s++) {
  14833. var u = s * n;
  14834. p.push(r(d * Math.cos(u + e) + c.x, d * Math.sin(u + e) + c.y))
  14835. }
  14836. h && p.push(r(c.x, c.y));
  14837. c = new f.Fs(f.Yg.Bs);
  14838. c.zg = p;
  14839. c.lineWidth = k;
  14840. c.Tr =
  14841. m;
  14842. c.TP = !0;
  14843. c.tu = !0;
  14844. this.cc.push(c)
  14845. },
  14846. D_: function(c, d, e, g, h, k) {
  14847. h = h || this.ig;
  14848. k = k || this.rh();
  14849. null == k.a && (k.a = 255);
  14850. for (var m = [], n = 0, p = 0; p < g; p++) m.push(r(Math.pow(1 - n, 2) * c.x + 2 * (1 - n) * n * d.x + n * n * e.x, Math.pow(1 - n, 2) * c.y + 2 * (1 - n) * n * d.y + n * n * e.y)), n += 1 / g;
  14851. m.push(r(e.x, e.y));
  14852. c = new f.Fs(f.Yg.Bs);
  14853. c.zg = m;
  14854. c.lineWidth = h;
  14855. c.Tr = k;
  14856. c.tu = !0;
  14857. c.lineCap = "round";
  14858. this.cc.push(c)
  14859. },
  14860. z_: function(c, d, e, g, h, k, m) {
  14861. k = k || this.ig;
  14862. m = m || this.rh();
  14863. null == m.a && (m.a = 255);
  14864. for (var n = [], p = 0, s = 0; s < h; s++) n.push(r(Math.pow(1 - p, 3) * c.x + 3 * Math.pow(1 - p, 2) *
  14865. p * d.x + 3 * (1 - p) * p * p * e.x + p * p * p * g.x, Math.pow(1 - p, 3) * c.y + 3 * Math.pow(1 - p, 2) * p * d.y + 3 * (1 - p) * p * p * e.y + p * p * p * g.y)), p += 1 / h;
  14866. n.push(r(g.x, g.y));
  14867. c = new f.Fs(f.Yg.Bs);
  14868. c.zg = n;
  14869. c.lineWidth = k;
  14870. c.Tr = m;
  14871. c.tu = !0;
  14872. c.lineCap = "round";
  14873. this.cc.push(c)
  14874. },
  14875. x_: function(c, d, e, g) {
  14876. this.px(c, 0.5, d, e, g)
  14877. },
  14878. px: function(c, d, e, g, h) {
  14879. g = g || this.ig;
  14880. h = h || this.rh();
  14881. null == h.a && (h.a = 255);
  14882. for (var k = [], m, n, p = 1 / c.length, s = 0; s < e + 1; s++) n = s / e, 1 == n ? (m = c.length - 1, n = 1) : (m = 0 | n / p, n = (n - p * m) / p), m = f.a_(f.tg(c, m - 1), f.tg(c, m - 0), f.tg(c, m + 1), f.tg(c, m + 2), d, n), k.push(m);
  14883. c = new f.Fs(f.Yg.Bs);
  14884. c.zg = k;
  14885. c.lineWidth = g;
  14886. c.Tr = h;
  14887. c.tu = !0;
  14888. c.lineCap = "round";
  14889. this.cc.push(c)
  14890. },
  14891. A_: function(c, d, e) {
  14892. e = e || this.rh();
  14893. null == e.a && (e.a = 255);
  14894. var g = new f.Fs(f.Yg.w7);
  14895. g.zg = [c];
  14896. g.lineWidth = d;
  14897. g.fillColor = e;
  14898. this.cc.push(g)
  14899. },
  14900. eya: function(c, d, e) {
  14901. if (c && 0 != c.length) {
  14902. e = e || this.rh();
  14903. null == e.a && (e.a = 255);
  14904. for (var g = 0, h = c.length; g < h; g++) this.A_(c[g], d, e)
  14905. }
  14906. },
  14907. F_: function(c, d, e, g) {
  14908. e = e || this.ig;
  14909. g = g || this.rh();
  14910. null == g.a && (g.a = 255);
  14911. var h = new f.Fs(f.Yg.Bs);
  14912. h.zg = [c, d];
  14913. h.lineWidth = 2 * e;
  14914. h.Tr = g;
  14915. h.tu = !0;
  14916. h.lineCap = "round";
  14917. this.cc.push(h)
  14918. },
  14919. hya: function(c, d, e, g) {
  14920. e = e || this.ig;
  14921. g = g || this.rh();
  14922. null == g.a && (g.a = 255);
  14923. var h = new f.Fs(f.Yg.Bs);
  14924. h.zg = c;
  14925. h.fillColor = d;
  14926. h.lineWidth = e;
  14927. h.Tr = g;
  14928. h.TP = !0;
  14929. h.tu = !0;
  14930. h.lineCap = "round";
  14931. d && (h.S0 = !0);
  14932. this.cc.push(h)
  14933. },
  14934. Sf: function(c, d, e, g) {
  14935. for (var h = [], k = 0; k < c.length; k++) h.push(r(c[k].x, c[k].y));
  14936. return this.hya(h, d, e, g)
  14937. },
  14938. ma: function(c) {
  14939. c = c || f.s;
  14940. this.B && this.B.src == f.SRC_ALPHA && this.B.ha == f.ONE && (c.globalCompositeOperation = "lighter");
  14941. for (var d = 0; d < this.cc.length; d++) {
  14942. var e = this.cc[d];
  14943. switch (e.type) {
  14944. case f.Yg.w7:
  14945. this.dra(c,
  14946. e);
  14947. break;
  14948. case f.Yg.Soa:
  14949. this.fra(c, e);
  14950. break;
  14951. case f.Yg.Bs:
  14952. this.era(c, e)
  14953. }
  14954. }
  14955. },
  14956. dra: function(c, d) {
  14957. var e = d.fillColor,
  14958. g = d.zg[0],
  14959. h = d.lineWidth,
  14960. k = f.view.ka,
  14961. m = f.view.ra;
  14962. c.fillStyle = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b) + "," + e.a / 255 + ")";
  14963. c.beginPath();
  14964. c.arc(g.x * k, -g.y * m, h * k, 0, 2 * Math.PI, !1);
  14965. c.closePath();
  14966. c.fill()
  14967. },
  14968. fra: function(c, d) {
  14969. var e = d.Tr,
  14970. g = d.zg[0],
  14971. h = d.zg[1],
  14972. k = d.lineWidth,
  14973. m = d.lineCap,
  14974. n = f.view.ka,
  14975. p = f.view.ra;
  14976. c.strokeStyle = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b) + "," + e.a / 255 + ")";
  14977. c.lineWidth = k * n;
  14978. c.beginPath();
  14979. c.lineCap = m;
  14980. c.moveTo(g.x * n, -g.y * p);
  14981. c.lineTo(h.x * n, -h.y * p);
  14982. c.stroke()
  14983. },
  14984. era: function(c, d) {
  14985. var e = d.zg,
  14986. g = d.lineCap,
  14987. h = d.fillColor,
  14988. k = d.lineWidth,
  14989. m = d.Tr,
  14990. n = d.TP,
  14991. p = d.S0,
  14992. s = d.tu;
  14993. if (null != e) {
  14994. var u = e[0],
  14995. v = f.view.ka,
  14996. z = f.view.ra;
  14997. c.lineCap = g;
  14998. h && (c.fillStyle = "rgba(" + (0 | h.r) + "," + (0 | h.g) + "," + (0 | h.b) + "," + h.a / 255 + ")");
  14999. k && (c.lineWidth = k * v);
  15000. m && (c.strokeStyle = "rgba(" + (0 | m.r) + "," + (0 | m.g) + "," + (0 | m.b) + "," + m.a / 255 + ")");
  15001. c.beginPath();
  15002. c.moveTo(u.x * v, -u.y * z);
  15003. g = 1;
  15004. for (h = e.length; g < h; g++) c.lineTo(e[g].x * v, -e[g].y * z);
  15005. n && c.closePath();
  15006. p && c.fill();
  15007. s && c.stroke()
  15008. }
  15009. },
  15010. clear: function() {
  15011. this.cc.length = 0
  15012. }
  15013. });
  15014. f.fla = f.v.extend({
  15015. nz: 0,
  15016. cc: null,
  15017. zr: null,
  15018. tba: null,
  15019. sba: null,
  15020. ig: 1,
  15021. Oj: null,
  15022. B: null,
  15023. Ec: !1,
  15024. ta: "DrawNodeWebGL",
  15025. ck: function() {
  15026. return this.B
  15027. },
  15028. ce: function(c, d) {
  15029. void 0 === d ? (this.B.src = c.src, this.B.ha = c.ha) : (this.B.src = c, this.B.ha = d)
  15030. },
  15031. ctor: function() {
  15032. f.v.prototype.ctor.call(this);
  15033. this.cc = [];
  15034. this.B = new f.Um(f.Mc, f.Lc);
  15035. this.Oj = f.color(255, 255, 255, 255);
  15036. this.j()
  15037. },
  15038. j: function() {
  15039. return f.v.prototype.j.call(this) ? (this.shaderProgram = f.xg.be(f.c7), this.lF(64), this.tba = f.s.createBuffer(), this.Ec = !0) : !1
  15040. },
  15041. Ju: function(c) {
  15042. this.ig =
  15043. c
  15044. },
  15045. rAa: function() {
  15046. return this.ig
  15047. },
  15048. wj: function(c) {
  15049. var d = this.Oj;
  15050. d.r = c.r;
  15051. d.g = c.g;
  15052. d.b = c.b;
  15053. d.a = c.a
  15054. },
  15055. rh: function() {
  15056. return f.color(this.Oj.r, this.Oj.g, this.Oj.b, this.Oj.a)
  15057. },
  15058. E_: function(c, d, e, g, h) {
  15059. g = g || this.ig;
  15060. h = h || this.rh();
  15061. null == h.a && (h.a = 255);
  15062. c = [c, r(d.x, c.y), d, r(c.x, d.y)];
  15063. null == e ? this.OL(c, g, h, !0) : this.Sf(c, e, g, h)
  15064. },
  15065. y_: function(c, d, e, g, h, k, m) {
  15066. k = k || this.ig;
  15067. m = m || this.rh();
  15068. null == m.a && (m.a = 255);
  15069. var n = 2 * Math.PI / g,
  15070. p = [],
  15071. s;
  15072. for (s = 0; s <= g; s++) {
  15073. var u = s * n;
  15074. p.push(r(d * Math.cos(u + e) + c.x, d * Math.sin(u + e) + c.y))
  15075. }
  15076. h && p.push(r(c.x,
  15077. c.y));
  15078. k *= 0.5;
  15079. s = 0;
  15080. for (c = p.length; s < c - 1; s++) this.F_(p[s], p[s + 1], k, m)
  15081. },
  15082. D_: function(c, d, e, g, h, k) {
  15083. h = h || this.ig;
  15084. k = k || this.rh();
  15085. null == k.a && (k.a = 255);
  15086. for (var m = [], n = 0, p = 0; p < g; p++) m.push(r(Math.pow(1 - n, 2) * c.x + 2 * (1 - n) * n * d.x + n * n * e.x, Math.pow(1 - n, 2) * c.y + 2 * (1 - n) * n * d.y + n * n * e.y)), n += 1 / g;
  15087. m.push(r(e.x, e.y));
  15088. this.OL(m, h, k, !1)
  15089. },
  15090. z_: function(c, d, e, g, h, k, m) {
  15091. k = k || this.ig;
  15092. m = m || this.rh();
  15093. null == m.a && (m.a = 255);
  15094. for (var n = [], p = 0, s = 0; s < h; s++) n.push(r(Math.pow(1 - p, 3) * c.x + 3 * Math.pow(1 - p, 2) * p * d.x + 3 * (1 - p) * p * p * e.x + p * p * p * g.x, Math.pow(1 -
  15095. p, 3) * c.y + 3 * Math.pow(1 - p, 2) * p * d.y + 3 * (1 - p) * p * p * e.y + p * p * p * g.y)), p += 1 / h;
  15096. n.push(r(g.x, g.y));
  15097. this.OL(n, k, m, !1)
  15098. },
  15099. x_: function(c, d, e, g) {
  15100. this.px(c, 0.5, d, e, g)
  15101. },
  15102. px: function(c, d, e, g, h) {
  15103. g = g || this.ig;
  15104. h = h || this.rh();
  15105. null == h.a && (h.a = 255);
  15106. for (var k = [], m, n, p = 1 / c.length, s = 0; s < e + 1; s++) n = s / e, 1 == n ? (m = c.length - 1, n = 1) : (m = 0 | n / p, n = (n - p * m) / p), m = f.a_(f.tg(c, m - 1), f.tg(c, m - 0), f.tg(c, m + 1), f.tg(c, m + 2), d, n), k.push(m);
  15107. g *= 0.5;
  15108. c = 0;
  15109. for (d = k.length; c < d - 1; c++) this.F_(k[c], k[c + 1], g, h)
  15110. },
  15111. Ht: function() {
  15112. var c = f.s;
  15113. f.wf(f.tv);
  15114. c.bindBuffer(c.ARRAY_BUFFER,
  15115. this.tba);
  15116. this.Ec && (c.bufferData(c.ARRAY_BUFFER, this.zr, c.STREAM_DRAW), this.Ec = !1);
  15117. var d = f.Zg.BYTES_PER_ELEMENT;
  15118. c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, d, 0);
  15119. c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, d, 8);
  15120. c.vertexAttribPointer(f.$g, 2, c.FLOAT, !1, d, 12);
  15121. c.drawArrays(c.TRIANGLES, 0, 3 * this.cc.length);
  15122. f.el()
  15123. },
  15124. lF: function(c) {
  15125. var d = this.cc;
  15126. if (d.length + c > this.nz) {
  15127. var e = f.ge.BYTES_PER_ELEMENT;
  15128. this.nz += Math.max(this.nz, c);
  15129. if (null == d || 0 === d.length) this.cc = [], this.zr = new ArrayBuffer(e * this.nz), this.sba = new Uint8Array(this.zr);
  15130. else {
  15131. c = [];
  15132. for (var g = new ArrayBuffer(e * this.nz), h = 0; h < d.length; h++) c[h] = new f.ge(d[h].a, d[h].b, d[h].G, g, h * e);
  15133. this.sba = new Uint8Array(g);
  15134. this.zr = g;
  15135. this.cc = c
  15136. }
  15137. }
  15138. },
  15139. ma: function() {
  15140. f.Fm(this.B.src, this.B.ha);
  15141. this.sd.Ff();
  15142. this.sd.dJ();
  15143. this.Ht()
  15144. },
  15145. A_: function(c, d, e) {
  15146. e = e || this.rh();
  15147. null == e.a && (e.a = 255);
  15148. var g = {
  15149. r: 0 | e.r,
  15150. g: 0 | e.g,
  15151. b: 0 | e.b,
  15152. a: 0 | e.a
  15153. };
  15154. e = {
  15155. k: {
  15156. x: c.x - d,
  15157. y: c.y - d
  15158. },
  15159. D: g,
  15160. t: {
  15161. Da: -1,
  15162. ga: -1
  15163. }
  15164. };
  15165. var h = {
  15166. k: {
  15167. x: c.x - d,
  15168. y: c.y + d
  15169. },
  15170. D: g,
  15171. t: {
  15172. Da: -1,
  15173. ga: 1
  15174. }
  15175. },
  15176. k = {
  15177. k: {
  15178. x: c.x + d,
  15179. y: c.y + d
  15180. },
  15181. D: g,
  15182. t: {
  15183. Da: 1,
  15184. ga: 1
  15185. }
  15186. };
  15187. c = {
  15188. k: {
  15189. x: c.x + d,
  15190. y: c.y - d
  15191. },
  15192. D: g,
  15193. t: {
  15194. Da: 1,
  15195. ga: -1
  15196. }
  15197. };
  15198. this.lF(6);
  15199. this.cc.push(new f.ge(e, h, k, this.zr, this.cc.length * f.ge.BYTES_PER_ELEMENT));
  15200. this.cc.push(new f.ge(e, k, c, this.zr, this.cc.length * f.ge.BYTES_PER_ELEMENT));
  15201. this.Ec = !0
  15202. },
  15203. eya: function(c, d, e) {
  15204. if (c && 0 != c.length) {
  15205. e = e || this.rh();
  15206. null == e.a && (e.a = 255);
  15207. for (var g = 0, h = c.length; g < h; g++) this.A_(c[g], d, e)
  15208. }
  15209. },
  15210. F_: function(c, d, e, g) {
  15211. g = g || this.rh();
  15212. null == g.a && (g.a = 255);
  15213. e = e || 0.5 * this.ig;
  15214. this.lF(18);
  15215. g = {
  15216. r: 0 | g.r,
  15217. g: 0 | g.g,
  15218. b: 0 | g.b,
  15219. a: 0 | g.a
  15220. };
  15221. var h = f.Ni(c);
  15222. d = f.Ni(d);
  15223. c = f.tJ(f.ZC(f.Ke(d, h)));
  15224. var k = f.ZC(c),
  15225. m = f.Ug(c, e);
  15226. e = f.Ug(k,
  15227. e);
  15228. var n = f.Ji(d, f.Ke(m, e)),
  15229. p = f.Ke(d, m),
  15230. s = f.Ji(d, m),
  15231. u = f.Ke(h, m),
  15232. v = f.Ji(h, m),
  15233. z = f.Ke(h, f.Ke(m, e)),
  15234. h = f.Ji(h, f.Ji(m, e)),
  15235. A = f.ge.BYTES_PER_ELEMENT,
  15236. B = this.zr,
  15237. C = this.cc;
  15238. C.push(new f.ge({
  15239. k: f.Ke(d, f.Ji(m, e)),
  15240. D: g,
  15241. t: f.Pb(f.Dl(f.Ji(c, k)))
  15242. }, {
  15243. k: n,
  15244. D: g,
  15245. t: f.Pb(f.Ke(c, k))
  15246. }, {
  15247. k: p,
  15248. D: g,
  15249. t: f.Pb(f.Dl(c))
  15250. }, B, C.length * A));
  15251. C.push(new f.ge({
  15252. k: s,
  15253. D: g,
  15254. t: f.Pb(c)
  15255. }, {
  15256. k: n,
  15257. D: g,
  15258. t: f.Pb(f.Ke(c, k))
  15259. }, {
  15260. k: p,
  15261. D: g,
  15262. t: f.Pb(f.Dl(c))
  15263. }, B, C.length * A));
  15264. C.push(new f.ge({
  15265. k: s,
  15266. D: g,
  15267. t: f.Pb(c)
  15268. }, {
  15269. k: u,
  15270. D: g,
  15271. t: f.Pb(f.Dl(c))
  15272. }, {
  15273. k: p,
  15274. D: g,
  15275. t: f.Pb(f.Dl(c))
  15276. }, B, C.length * A));
  15277. C.push(new f.ge({
  15278. k: s,
  15279. D: g,
  15280. t: f.Pb(c)
  15281. }, {
  15282. k: u,
  15283. D: g,
  15284. t: f.Pb(f.Dl(c))
  15285. }, {
  15286. k: v,
  15287. D: g,
  15288. t: f.Pb(c)
  15289. }, B, C.length * A));
  15290. C.push(new f.ge({
  15291. k: z,
  15292. D: g,
  15293. t: f.Pb(f.Ke(k, c))
  15294. }, {
  15295. k: u,
  15296. D: g,
  15297. t: f.Pb(f.Dl(c))
  15298. }, {
  15299. k: v,
  15300. D: g,
  15301. t: f.Pb(c)
  15302. }, B, C.length * A));
  15303. C.push(new f.ge({
  15304. k: z,
  15305. D: g,
  15306. t: f.Pb(f.Ke(k, c))
  15307. }, {
  15308. k: h,
  15309. D: g,
  15310. t: f.Pb(f.Ji(c, k))
  15311. }, {
  15312. k: v,
  15313. D: g,
  15314. t: f.Pb(c)
  15315. }, B, C.length * A));
  15316. this.Ec = !0
  15317. },
  15318. Sf: function(c, d, e, g) {
  15319. if (null == d) this.OL(c, e, g, !0);
  15320. else {
  15321. null == d.a && (d.a = 255);
  15322. null == g.a && (g.a = 255);
  15323. e = e || this.ig;
  15324. e *= 0.5;
  15325. d = {
  15326. r: 0 | d.r,
  15327. g: 0 | d.g,
  15328. b: 0 | d.b,
  15329. a: 0 | d.a
  15330. };
  15331. g = {
  15332. r: 0 | g.r,
  15333. g: 0 | g.g,
  15334. b: 0 | g.b,
  15335. a: 0 | g.a
  15336. };
  15337. var h = [],
  15338. k, m, n, p, s = c.length;
  15339. for (k = 0; k < s; k++) {
  15340. m = f.Ni(c[(k - 1 + s) % s]);
  15341. n = f.Ni(c[k]);
  15342. p = f.Ni(c[(k + 1) % s]);
  15343. var u = f.tJ(f.ZC(f.Ke(n, m)));
  15344. n = f.tJ(f.ZC(f.Ke(p, n)));
  15345. h[k] = {
  15346. offset: f.Ug(f.Ji(u, n), 1 / (f.Mia(u, n) + 1)),
  15347. Xr: n
  15348. }
  15349. }
  15350. u = 0 < e;
  15351. this.lF(3 * (3 * s - 2));
  15352. var v = f.ge.BYTES_PER_ELEMENT,
  15353. z = this.zr,
  15354. A = this.cc,
  15355. B = !1 == u ? 0.5 : 0;
  15356. for (k = 0; k < s - 2; k++) m = f.Ke(f.Ni(c[0]), f.Ug(h[0].offset, B)), n = f.Ke(f.Ni(c[k + 1]), f.Ug(h[k + 1].offset, B)), p = f.Ke(f.Ni(c[k + 2]), f.Ug(h[k + 2].offset, B)), A.push(new f.ge({
  15357. k: m,
  15358. D: d,
  15359. t: f.Pb({
  15360. x: 0,
  15361. y: 0
  15362. })
  15363. }, {
  15364. k: n,
  15365. D: d,
  15366. t: f.Pb({
  15367. x: 0,
  15368. y: 0
  15369. })
  15370. }, {
  15371. k: p,
  15372. D: d,
  15373. t: f.Pb({
  15374. x: 0,
  15375. y: 0
  15376. })
  15377. }, z, A.length * v));
  15378. for (k = 0; k < s; k++) {
  15379. B = (k + 1) % s;
  15380. m = f.Ni(c[k]);
  15381. n = f.Ni(c[B]);
  15382. p = h[k].Xr;
  15383. var C = h[k].offset,
  15384. G = h[B].offset,
  15385. B = u ? f.Ke(m, f.Ug(C, e)) : f.Ke(m, f.Ug(C, 0.5)),
  15386. L = u ? f.Ke(n, f.Ug(G, e)) : f.Ke(n, f.Ug(G, 0.5));
  15387. m = u ? f.Ji(m, f.Ug(C, e)) : f.Ji(m, f.Ug(C, 0.5));
  15388. n = u ? f.Ji(n, f.Ug(G, e)) : f.Ji(n, f.Ug(G, 0.5));
  15389. u ? (A.push(new f.ge({
  15390. k: B,
  15391. D: g,
  15392. t: f.Pb(f.Dl(p))
  15393. }, {
  15394. k: L,
  15395. D: g,
  15396. t: f.Pb(f.Dl(p))
  15397. }, {
  15398. k: n,
  15399. D: g,
  15400. t: f.Pb(p)
  15401. }, z, A.length * v)), A.push(new f.ge({
  15402. k: B,
  15403. D: g,
  15404. t: f.Pb(f.Dl(p))
  15405. }, {
  15406. k: m,
  15407. D: g,
  15408. t: f.Pb(p)
  15409. }, {
  15410. k: n,
  15411. D: g,
  15412. t: f.Pb(p)
  15413. },
  15414. z, A.length * v))) : (A.push(new f.ge({
  15415. k: B,
  15416. D: d,
  15417. t: f.Pb({
  15418. x: 0,
  15419. y: 0
  15420. })
  15421. }, {
  15422. k: L,
  15423. D: d,
  15424. t: f.Pb({
  15425. x: 0,
  15426. y: 0
  15427. })
  15428. }, {
  15429. k: n,
  15430. D: d,
  15431. t: f.Pb(p)
  15432. }, z, A.length * v)), A.push(new f.ge({
  15433. k: B,
  15434. D: d,
  15435. t: f.Pb({
  15436. x: 0,
  15437. y: 0
  15438. })
  15439. }, {
  15440. k: m,
  15441. D: d,
  15442. t: f.Pb(p)
  15443. }, {
  15444. k: n,
  15445. D: d,
  15446. t: f.Pb(p)
  15447. }, z, A.length * v)))
  15448. }
  15449. this.Ec = !0
  15450. }
  15451. },
  15452. OL: function(c, d, e, g) {
  15453. d = d || this.ig;
  15454. e = e || this.Oj;
  15455. null == e.a && (e.a = 255);
  15456. d *= 0.5;
  15457. if (!(0 >= d)) {
  15458. e = {
  15459. r: 0 | e.r,
  15460. g: 0 | e.g,
  15461. b: 0 | e.b,
  15462. a: 0 | e.a
  15463. };
  15464. var h = [],
  15465. k, m, n, p, s = c.length;
  15466. for (k = 0; k < s; k++) {
  15467. m = f.Ni(c[(k - 1 + s) % s]);
  15468. n = f.Ni(c[k]);
  15469. p = f.Ni(c[(k + 1) % s]);
  15470. var u = f.tJ(f.ZC(f.Ke(n, m)));
  15471. n = f.tJ(f.ZC(f.Ke(p,
  15472. n)));
  15473. h[k] = {
  15474. offset: f.Ug(f.Ji(u, n), 1 / (f.Mia(u, n) + 1)),
  15475. Xr: n
  15476. }
  15477. }
  15478. this.lF(3 * (3 * s - 2));
  15479. p = f.ge.BYTES_PER_ELEMENT;
  15480. var u = this.zr,
  15481. v = this.cc;
  15482. g = g ? s : s - 1;
  15483. for (k = 0; k < g; k++) {
  15484. var z = (k + 1) % s;
  15485. m = f.Ni(c[k]);
  15486. n = f.Ni(c[z]);
  15487. var A = h[k].Xr,
  15488. B = h[k].offset,
  15489. z = h[z].offset,
  15490. C = f.Ke(m, f.Ug(B, d));
  15491. m = f.Ji(m, f.Ug(B, d));
  15492. B = f.Ji(n, f.Ug(z, d));
  15493. v.push(new f.ge({
  15494. k: C,
  15495. D: e,
  15496. t: f.Pb(f.Dl(A))
  15497. }, {
  15498. k: f.Ke(n, f.Ug(z, d)),
  15499. D: e,
  15500. t: f.Pb(f.Dl(A))
  15501. }, {
  15502. k: B,
  15503. D: e,
  15504. t: f.Pb(A)
  15505. }, u, v.length * p));
  15506. v.push(new f.ge({
  15507. k: C,
  15508. D: e,
  15509. t: f.Pb(f.Dl(A))
  15510. }, {
  15511. k: m,
  15512. D: e,
  15513. t: f.Pb(A)
  15514. }, {
  15515. k: B,
  15516. D: e,
  15517. t: f.Pb(A)
  15518. }, u, v.length *
  15519. p))
  15520. }
  15521. this.Ec = !0
  15522. }
  15523. },
  15524. clear: function() {
  15525. this.cc.length = 0;
  15526. this.Ec = !0
  15527. }
  15528. });
  15529. f.Yg = f.K == f.na ? f.fla : f.ela;
  15530. f.Yg.create = function() {
  15531. return new f.Yg
  15532. };
  15533. f.Fs = function(c) {
  15534. this.type = c;
  15535. this.fillColor = this.zg = null;
  15536. this.lineWidth = 0;
  15537. this.Tr = null;
  15538. this.lineCap = "butt";
  15539. this.tu = this.S0 = this.TP = !1
  15540. };
  15541. f.Yg.w7 = 0;
  15542. f.Yg.Soa = 1;
  15543. f.Yg.Bs = 2;
  15544. f.ly = -1;
  15545. f.wha = function(c, d) {
  15546. c.shaderProgram = d;
  15547. var e = c.children;
  15548. if (e)
  15549. for (var g = 0; g < e.length; g++) f.wha(e[g], d)
  15550. };
  15551. f.Wc = f.v.extend({
  15552. bx: 0,
  15553. Xn: !1,
  15554. Wd: null,
  15555. BF: !1,
  15556. ctor: function(c) {
  15557. f.v.prototype.ctor.call(this);
  15558. this.Wd = null;
  15559. this.bx = 0;
  15560. this.Xn = !1;
  15561. f.Wc.prototype.j.call(this, c || null)
  15562. },
  15563. j: null,
  15564. ta: "ClippingNode",
  15565. xsa: function(c) {
  15566. this.Wd = c;
  15567. this.bx = 1;
  15568. this.Xn = !1;
  15569. f.Wc.tM = !0;
  15570. f.Wc.tM && (f.ly = f.s.getParameter(f.s.STENCIL_BITS), 0 >= f.ly && f.log("Stencil buffer is not enabled."), f.Wc.tM = !1);
  15571. return !0
  15572. },
  15573. wsa: function(c) {
  15574. this.Wd = c;
  15575. this.bx = 1;
  15576. this.Xn = !1
  15577. },
  15578. ba: function() {
  15579. f.v.prototype.ba.call(this);
  15580. this.Wd.ba()
  15581. },
  15582. sj: function() {
  15583. f.v.prototype.sj.call(this);
  15584. this.Wd.sj()
  15585. },
  15586. uh: function() {
  15587. this.Wd.uh();
  15588. f.v.prototype.uh.call(this)
  15589. },
  15590. Ra: function() {
  15591. this.Wd.Ra();
  15592. f.v.prototype.Ra.call(this)
  15593. },
  15594. I: null,
  15595. Uw: function(c) {
  15596. var d = c || f.s;
  15597. if (1 > f.ly) f.v.prototype.I.call(this, c);
  15598. else if (this.Wd && this.Wd.visible)
  15599. if (f.Wc.rn = -1, f.Wc.rn + 1 == f.ly) f.Wc.Vw = !0, f.Wc.Vw && (f.log("Nesting more than " + f.ly + "stencils is not supported. Everything will be drawn without stencil for this node and its childs."), f.Wc.Vw = !1), f.v.prototype.I.call(this, c);
  15600. else {
  15601. f.Wc.rn++;
  15602. var e = 1 << f.Wc.rn,
  15603. g = e | e - 1,
  15604. h = d.isEnabled(d.STENCIL_TEST),
  15605. k = d.getParameter(d.STENCIL_WRITEMASK),
  15606. m = d.getParameter(d.STENCIL_FUNC),
  15607. n = d.getParameter(d.STENCIL_REF),
  15608. p = d.getParameter(d.STENCIL_VALUE_MASK),
  15609. s = d.getParameter(d.STENCIL_FAIL),
  15610. u = d.getParameter(d.STENCIL_PASS_DEPTH_FAIL),
  15611. v = d.getParameter(d.STENCIL_PASS_DEPTH_PASS);
  15612. d.enable(d.STENCIL_TEST);
  15613. d.stencilMask(e);
  15614. var z = d.getParameter(d.DEPTH_WRITEMASK);
  15615. d.depthMask(!1);
  15616. d.stencilFunc(d.NEVER, e, e);
  15617. d.stencilOp(this.Xn ? d.REPLACE : d.ZERO, d.KEEP, d.KEEP);
  15618. f.If.H_(r(0, 0), f.Jfa(), f.color(255, 255, 255, 255));
  15619. d.stencilFunc(d.NEVER,
  15620. e, e);
  15621. d.stencilOp(this.Xn ? d.ZERO : d.REPLACE, d.KEEP, d.KEEP);
  15622. if (1 > this.bx) {
  15623. var e = f.xg.be(f.tK),
  15624. A = d.getUniformLocation(e.Bx(), f.g8);
  15625. f.x0(e.Bx());
  15626. e.bJ(A, this.bx);
  15627. f.wha(this.Wd, e)
  15628. }
  15629. f.Rr();
  15630. this.transform();
  15631. this.Wd.I();
  15632. f.Qr();
  15633. d.depthMask(z);
  15634. d.stencilFunc(d.EQUAL, g, g);
  15635. d.stencilOp(d.KEEP, d.KEEP, d.KEEP);
  15636. f.v.prototype.I.call(this, c);
  15637. d.stencilFunc(m, n, p);
  15638. d.stencilOp(s, u, v);
  15639. d.stencilMask(k);
  15640. h || d.disable(d.STENCIL_TEST);
  15641. f.Wc.rn--
  15642. } else this.Xn && f.v.prototype.I.call(this, c)
  15643. },
  15644. Br: function(c) {
  15645. if (this.Wd && this.Wd.visible) {
  15646. c =
  15647. c || f.s;
  15648. var d = c.canvas;
  15649. if (this.Hv() || this.Wd instanceof f.q) {
  15650. var e = f.Wc.AW();
  15651. e.width = d.width;
  15652. e.height = d.height;
  15653. e.getContext("2d").drawImage(d, 0, 0);
  15654. c.save();
  15655. f.v.prototype.I.call(this, c);
  15656. c.globalCompositeOperation = this.Xn ? "destination-out" : "destination-in";
  15657. this.transform(c);
  15658. this.Wd.I();
  15659. c.restore();
  15660. c.save();
  15661. c.setTransform(1, 0, 0, 1, 0, 0);
  15662. c.globalCompositeOperation = "destination-over";
  15663. c.drawImage(e, 0, 0)
  15664. } else {
  15665. var e = this.i,
  15666. g;
  15667. c.save();
  15668. this.transform(c);
  15669. this.Wd.I(c);
  15670. this.Xn && (c.save(), c.setTransform(1, 0, 0, 1, 0,
  15671. 0), c.moveTo(0, 0), c.lineTo(0, d.height), c.lineTo(d.width, d.height), c.lineTo(d.width, 0), c.lineTo(0, 0), c.restore());
  15672. c.clip();
  15673. this.Hv(!0);
  15674. var h = e.length;
  15675. if (0 < h) {
  15676. this.kd();
  15677. for (d = 0; d < h; d++)
  15678. if (g = e[d], 0 > g.Ya) g.I(c);
  15679. else break;
  15680. for (this.ma(c); d < h; d++) e[d].I(c)
  15681. } else this.ma(c);
  15682. this.Hv(!1)
  15683. }
  15684. c.restore()
  15685. } else this.Xn && f.v.prototype.I.call(this, c)
  15686. },
  15687. sBa: function() {
  15688. return this.Wd
  15689. },
  15690. yR: null,
  15691. Mua: function(c) {
  15692. this.Wd = c
  15693. },
  15694. Lua: function(c) {
  15695. this.Wd = c;
  15696. var d = f.s;
  15697. !(c instanceof f.q) && c instanceof f.Yg && (c.ma = function() {
  15698. var e = f.view.ka,
  15699. g = f.view.ra;
  15700. d.beginPath();
  15701. for (var h = 0; h < c.cc.length; h++) {
  15702. var k = c.cc[h].zg,
  15703. m = k[0];
  15704. d.moveTo(m.x * e, -m.y * g);
  15705. for (var m = 1, n = k.length; m < n; m++) d.lineTo(k[m].x * e, -k[m].y * g)
  15706. }
  15707. })
  15708. },
  15709. XRa: function() {
  15710. return this.bx
  15711. },
  15712. s2a: function(c) {
  15713. this.bx = c
  15714. },
  15715. HXa: function() {
  15716. return this.Xn
  15717. },
  15718. v3a: function(c) {
  15719. this.Xn = c
  15720. },
  15721. Hv: function(c) {
  15722. if (!0 === c || !1 === c) f.Wc.prototype.BF = c;
  15723. return f.Wc.prototype.BF
  15724. }
  15725. });
  15726. q = f.Wc.prototype;
  15727. f.K === f.na ? (q.j = q.xsa, q.I = q.Uw, q.yR = q.Mua) : (q.j = q.wsa, q.I = q.Br, q.yR = q.Lua);
  15728. f.d(q, "stencil", q.sBa, q.yR);
  15729. f.Wc.tM = null;
  15730. f.Wc.Vw = null;
  15731. f.Wc.rn = null;
  15732. f.Wc.qG = null;
  15733. f.Wc.AW = function() {
  15734. return f.Wc.qG || (f.Wc.qG = document.createElement("canvas"))
  15735. };
  15736. f.Wc.create = function(c) {
  15737. return new f.Wc(c)
  15738. };
  15739. f.Hy = f.N.extend({
  15740. ah: !1,
  15741. np: 0,
  15742. ya: null,
  15743. fa: null,
  15744. nm: null,
  15745. Wz: null,
  15746. Xv: !1,
  15747. sd: null,
  15748. KV: 0,
  15749. Ec: !1,
  15750. ctor: function(c, d, e) {
  15751. f.tV();
  15752. this.ah = !1;
  15753. this.np = 0;
  15754. this.fa = this.ya = null;
  15755. this.nm = r(0, 0);
  15756. this.Wz = null;
  15757. this.Xv = !1;
  15758. this.sd = null;
  15759. this.KV = 0;
  15760. this.Ec = !1;
  15761. void 0 !== c && this.Jp(c, d, e)
  15762. },
  15763. Bi: function() {
  15764. return this.ah
  15765. },
  15766. setActive: function(c) {
  15767. this.ah = c;
  15768. c || (c = f.Q, c.ey(c.mp))
  15769. },
  15770. EVa: function() {
  15771. return this.np
  15772. },
  15773. FHa: function(c) {
  15774. this.np = c
  15775. },
  15776. $za: function() {
  15777. return t(this.ya.width, this.ya.height)
  15778. },
  15779. p3a: function(c) {
  15780. this.ya.width = parseInt(c.width);
  15781. this.ya.height = parseInt(c.height)
  15782. },
  15783. q0: function() {
  15784. return r(this.nm.x, this.nm.y)
  15785. },
  15786. m4a: function(c) {
  15787. this.nm.x = c.x;
  15788. this.nm.y = c.y
  15789. },
  15790. ZXa: function() {
  15791. return this.Xv
  15792. },
  15793. t4a: function(c) {
  15794. this.Xv != c && (this.Xv = c, this.JO())
  15795. },
  15796. Jp: function(c, d, e) {
  15797. if (!d) {
  15798. var g = f.Q.KH(),
  15799. h = f.xs(g.width),
  15800. k = f.xs(g.height),
  15801. m = new Uint8Array(h * k * 4);
  15802. if (!m) return f.log("cocos2d: CCGrid: not enough memory."), !1;
  15803. d = new f.Pa;
  15804. d.su(m, f.Pa.sq, h, k, g);
  15805. if (!d) return f.log("cocos2d: CCGrid: error creating texture"), !1
  15806. }
  15807. this.ah = !1;
  15808. this.np = 0;
  15809. this.ya = c;
  15810. this.fa =
  15811. d;
  15812. this.Xv = e || !1;
  15813. this.nm.x = this.fa.width / c.width;
  15814. this.nm.y = this.fa.height / c.height;
  15815. this.Wz = new f.Lla;
  15816. if (!this.Wz) return !1;
  15817. this.Wz.WBa(this.fa);
  15818. this.sd = f.xg.be(f.jE);
  15819. this.JO();
  15820. return !0
  15821. },
  15822. dx: function() {
  15823. this.KV = f.Q.mp;
  15824. this.qGa();
  15825. this.Wz.Ewa(this.fa)
  15826. },
  15827. ax: function(c) {
  15828. this.Wz.Yva(this.fa);
  15829. f.Q.ey(this.KV);
  15830. if (c.yx().R0()) {
  15831. var d = c.Bp();
  15832. f.bC(d.x, d.y);
  15833. c.yx().gI();
  15834. f.bC(-d.x, -d.y)
  15835. }
  15836. f.Ai(this.fa);
  15837. this.JZ()
  15838. },
  15839. JZ: function() {
  15840. f.log("cc.GridBase.blit(): Shall be overridden in subclass.")
  15841. },
  15842. PQ: function() {
  15843. f.log("cc.GridBase.reuse(): Shall be overridden in subclass.")
  15844. },
  15845. JO: function() {
  15846. f.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.")
  15847. },
  15848. qGa: function() {
  15849. var c = f.Q.KH();
  15850. f.s.viewport(0, 0, c.width, c.height);
  15851. f.Lp(f.nq);
  15852. f.$B();
  15853. var d = new f.Ma;
  15854. f.$0(d, 0, c.width, 0, c.height, -1, 1);
  15855. f.aC(d);
  15856. f.Lp(f.mq);
  15857. f.$B();
  15858. f.yha()
  15859. }
  15860. });
  15861. f.Hy.create = function(c, d, e) {
  15862. return new f.Hy(c, d, e)
  15863. };
  15864. f.SS = f.Hy.extend({
  15865. pm: null,
  15866. ec: null,
  15867. hr: null,
  15868. Tb: null,
  15869. Uk: null,
  15870. rg: null,
  15871. Nk: null,
  15872. ctor: function(c, d, e) {
  15873. f.Hy.prototype.ctor.call(this);
  15874. this.Nk = this.rg = this.Uk = this.Tb = this.hr = this.ec = this.pm = null;
  15875. void 0 !== c && this.Jp(c, d, e)
  15876. },
  15877. Oia: function(c) {
  15878. c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.Grid3D.vertex() : Numbers must be integers");
  15879. c = 0 | 3 * (c.x * (this.ya.height + 1) + c.y);
  15880. var d = this.ec;
  15881. return new f.Oe(d[c], d[c + 1], d[c + 2])
  15882. },
  15883. zf: function(c) {
  15884. c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.Grid3D.originalVertex() : Numbers must be integers");
  15885. c = 0 | 3 * (c.x * (this.ya.height + 1) + c.y);
  15886. var d = this.hr;
  15887. return new f.Oe(d[c], d[c + 1], d[c + 2])
  15888. },
  15889. Ah: function(c, d) {
  15890. c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.Grid3D.setVertex() : Numbers must be integers");
  15891. var e = 0 | 3 * (c.x * (this.ya.height + 1) + c.y),
  15892. g = this.ec;
  15893. g[e] = d.x;
  15894. g[e + 1] = d.y;
  15895. g[e + 2] = d.z;
  15896. this.Ec = !0
  15897. },
  15898. JZ: function() {
  15899. var c = this.ya.width * this.ya.height;
  15900. f.wf(f.Gh | f.Wy);
  15901. this.sd.Ff();
  15902. this.sd.dJ();
  15903. var d = f.s,
  15904. e = this.Ec;
  15905. d.bindBuffer(d.ARRAY_BUFFER, this.rg);
  15906. e && d.bufferData(d.ARRAY_BUFFER, this.ec, d.DYNAMIC_DRAW);
  15907. d.vertexAttribPointer(f.Oc,
  15908. 3, d.FLOAT, !1, 0, 0);
  15909. d.bindBuffer(d.ARRAY_BUFFER, this.Uk);
  15910. e && d.bufferData(d.ARRAY_BUFFER, this.pm, d.DYNAMIC_DRAW);
  15911. d.vertexAttribPointer(f.$g, 2, d.FLOAT, !1, 0, 0);
  15912. d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Nk);
  15913. e && d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Tb, d.STATIC_DRAW);
  15914. d.drawElements(d.TRIANGLES, 6 * c, d.UNSIGNED_SHORT, 0);
  15915. e && (this.Ec = !1);
  15916. f.el()
  15917. },
  15918. PQ: function() {
  15919. if (0 < this.np) {
  15920. for (var c = this.hr, d = this.ec, e = 0, g = this.ec.length; e < g; e++) c[e] = d[e];
  15921. --this.np
  15922. }
  15923. },
  15924. JO: function() {
  15925. var c = f.s,
  15926. d = this.fa.pixelsWidth,
  15927. e = this.fa.pixelsHeight,
  15928. g = this.fa.m.height,
  15929. h = this.ya,
  15930. k = (h.width + 1) * (h.height + 1);
  15931. this.ec = new Float32Array(3 * k);
  15932. this.pm = new Float32Array(2 * k);
  15933. this.Tb = new Uint16Array(h.width * h.height * 6);
  15934. this.rg && c.deleteBuffer(this.rg);
  15935. this.rg = c.createBuffer();
  15936. this.Uk && c.deleteBuffer(this.Uk);
  15937. this.Uk = c.createBuffer();
  15938. this.Nk && c.deleteBuffer(this.Nk);
  15939. this.Nk = c.createBuffer();
  15940. for (var m, n, p = this.Tb, s = this.pm, u = this.Xv, v = this.ec, k = 0; k < h.width; ++k)
  15941. for (m = 0; m < h.height; ++m) {
  15942. var z = m * h.width + k;
  15943. n = k * this.nm.x;
  15944. var A = n + this.nm.x,
  15945. B = m * this.nm.y,
  15946. C = B + this.nm.y,
  15947. G = k * (h.height + 1) + m,
  15948. L = (k + 1) * (h.height + 1) + m,
  15949. O = (k + 1) * (h.height + 1) + (m + 1),
  15950. R = k * (h.height + 1) + (m + 1);
  15951. p[6 * z] = G;
  15952. p[6 * z + 1] = L;
  15953. p[6 * z + 2] = R;
  15954. p[6 * z + 3] = L;
  15955. p[6 * z + 4] = O;
  15956. p[6 * z + 5] = R;
  15957. var z = [3 * G, 3 * L, 3 * O, 3 * R],
  15958. M = [{
  15959. x: n,
  15960. y: B,
  15961. z: 0
  15962. }, {
  15963. x: A,
  15964. y: B,
  15965. z: 0
  15966. }, {
  15967. x: A,
  15968. y: C,
  15969. z: 0
  15970. }, {
  15971. x: n,
  15972. y: C,
  15973. z: 0
  15974. }],
  15975. G = [2 * G, 2 * L, 2 * O, 2 * R],
  15976. A = [r(n, B), r(A, B), r(A, C), r(n, C)];
  15977. for (n = 0; 4 > n; ++n) v[z[n]] = M[n].x, v[z[n] + 1] = M[n].y, v[z[n] + 2] = M[n].z, s[G[n]] = A[n].x / d, s[G[n] + 1] = u ? (g - A[n].y) / e : A[n].y / e
  15978. }
  15979. this.hr = new Float32Array(this.ec);
  15980. c.bindBuffer(c.ARRAY_BUFFER, this.rg);
  15981. c.bufferData(c.ARRAY_BUFFER,
  15982. this.ec, c.DYNAMIC_DRAW);
  15983. c.bindBuffer(c.ARRAY_BUFFER, this.Uk);
  15984. c.bufferData(c.ARRAY_BUFFER, this.pm, c.DYNAMIC_DRAW);
  15985. c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Nk);
  15986. c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Tb, c.STATIC_DRAW);
  15987. this.Ec = !0
  15988. }
  15989. });
  15990. f.SS.create = function(c, d, e) {
  15991. return new f.SS(c, d, e)
  15992. };
  15993. f.iU = f.Hy.extend({
  15994. pm: null,
  15995. ec: null,
  15996. hr: null,
  15997. Tb: null,
  15998. Uk: null,
  15999. rg: null,
  16000. Nk: null,
  16001. ctor: function(c, d, e) {
  16002. f.Hy.prototype.ctor.call(this);
  16003. this.Nk = this.rg = this.Uk = this.Tb = this.hr = this.ec = this.pm = null;
  16004. void 0 !== c && this.Jp(c, d, e)
  16005. },
  16006. uia: function(c) {
  16007. c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.TiledGrid3D.tile() : Numbers must be integers");
  16008. c = 12 * (this.ya.height * c.x + c.y);
  16009. var d = this.ec;
  16010. return new f.oK(new f.Oe(d[c], d[c + 1], d[c + 2]), new f.Oe(d[c + 3], d[c + 4], d[c + 5]), new f.Oe(d[c + 6], d[c + 7], d[c + 8]), new f.Oe(d[c + 9], d[c + 10], d[c + 11]))
  16011. },
  16012. kl: function(c) {
  16013. c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.TiledGrid3D.originalTile() : Numbers must be integers");
  16014. c = 12 * (this.ya.height * c.x + c.y);
  16015. var d = this.hr;
  16016. return new f.oK(new f.Oe(d[c], d[c + 1], d[c + 2]), new f.Oe(d[c + 3], d[c + 4], d[c + 5]), new f.Oe(d[c + 6], d[c + 7], d[c + 8]), new f.Oe(d[c + 9], d[c + 10], d[c + 11]))
  16017. },
  16018. yj: function(c, d) {
  16019. c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.TiledGrid3D.setTile() : Numbers must be integers");
  16020. var e = 12 * (this.ya.height * c.x + c.y),
  16021. g = this.ec;
  16022. g[e] = d.T.x;
  16023. g[e + 1] = d.T.y;
  16024. g[e + 2] = d.T.z;
  16025. g[e + 3] = d.aa.x;
  16026. g[e +
  16027. 4] = d.aa.y;
  16028. g[e + 5] = d.aa.z;
  16029. g[e + 6] = d.Z.x;
  16030. g[e + 7] = d.Z.y;
  16031. g[e + 8] = d.Z.z;
  16032. g[e + 9] = d.W.x;
  16033. g[e + 10] = d.W.y;
  16034. g[e + 11] = d.W.z;
  16035. this.Ec = !0
  16036. },
  16037. JZ: function() {
  16038. var c = this.ya.width * this.ya.height;
  16039. this.sd.Ff();
  16040. this.sd.dJ();
  16041. var d = f.s,
  16042. e = this.Ec;
  16043. f.wf(f.Gh | f.Wy);
  16044. d.bindBuffer(d.ARRAY_BUFFER, this.rg);
  16045. e && d.bufferData(d.ARRAY_BUFFER, this.ec, d.DYNAMIC_DRAW);
  16046. d.vertexAttribPointer(f.Oc, 3, d.FLOAT, !1, 0, this.ec);
  16047. d.bindBuffer(d.ARRAY_BUFFER, this.Uk);
  16048. e && d.bufferData(d.ARRAY_BUFFER, this.pm, d.DYNAMIC_DRAW);
  16049. d.vertexAttribPointer(f.$g, 2, d.FLOAT, !1,
  16050. 0, this.pm);
  16051. d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Nk);
  16052. e && d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Tb, d.STATIC_DRAW);
  16053. d.drawElements(d.TRIANGLES, 6 * c, d.UNSIGNED_SHORT, 0);
  16054. e && (this.Ec = !1);
  16055. f.el()
  16056. },
  16057. PQ: function() {
  16058. if (0 < this.np) {
  16059. for (var c = this.ec, d = this.hr, e = 0; e < c.length; e++) d[e] = c[e];
  16060. --this.np
  16061. }
  16062. },
  16063. JO: function() {
  16064. var c = this.fa.pixelsWidth,
  16065. d = this.fa.pixelsHeight,
  16066. e = this.fa.m.height,
  16067. g = this.ya,
  16068. h = g.width * g.height;
  16069. this.ec = new Float32Array(12 * h);
  16070. this.pm = new Float32Array(8 * h);
  16071. this.Tb = new Uint16Array(6 * h);
  16072. var k = f.s;
  16073. this.rg && k.deleteBuffer(this.rg);
  16074. this.rg = k.createBuffer();
  16075. this.Uk && k.deleteBuffer(this.Uk);
  16076. this.Uk = k.createBuffer();
  16077. this.Nk && k.deleteBuffer(this.Nk);
  16078. this.Nk = k.createBuffer();
  16079. var m, n, p = 0,
  16080. s = this.nm,
  16081. u = this.ec,
  16082. v = this.pm,
  16083. z = this.Xv;
  16084. for (m = 0; m < g.width; m++)
  16085. for (n = 0; n < g.height; n++) {
  16086. var A = m * s.x,
  16087. B = A + s.x,
  16088. C = n * s.y,
  16089. G = C + s.y;
  16090. u[12 * p] = A;
  16091. u[12 * p + 1] = C;
  16092. u[12 * p + 2] = 0;
  16093. u[12 * p + 3] = B;
  16094. u[12 * p + 4] = C;
  16095. u[12 * p + 5] = 0;
  16096. u[12 * p + 6] = A;
  16097. u[12 * p + 7] = G;
  16098. u[12 * p + 8] = 0;
  16099. u[12 * p + 9] = B;
  16100. u[12 * p + 10] = G;
  16101. u[12 * p + 11] = 0;
  16102. var L = C,
  16103. O = G;
  16104. z && (L = e - C, O = e - G);
  16105. v[8 * p] = A / c;
  16106. v[8 * p + 1] =
  16107. L / d;
  16108. v[8 * p + 2] = B / c;
  16109. v[8 * p + 3] = L / d;
  16110. v[8 * p + 4] = A / c;
  16111. v[8 * p + 5] = O / d;
  16112. v[8 * p + 6] = B / c;
  16113. v[8 * p + 7] = O / d;
  16114. p++
  16115. }
  16116. c = this.Tb;
  16117. for (m = 0; m < h; m++) c[6 * m + 0] = 4 * m + 0, c[6 * m + 1] = 4 * m + 1, c[6 * m + 2] = 4 * m + 2, c[6 * m + 3] = 4 * m + 1, c[6 * m + 4] = 4 * m + 2, c[6 * m + 5] = 4 * m + 3;
  16118. this.hr = new Float32Array(this.ec);
  16119. k.bindBuffer(k.ARRAY_BUFFER, this.rg);
  16120. k.bufferData(k.ARRAY_BUFFER, this.ec, k.DYNAMIC_DRAW);
  16121. k.bindBuffer(k.ARRAY_BUFFER, this.Uk);
  16122. k.bufferData(k.ARRAY_BUFFER, this.pm, k.DYNAMIC_DRAW);
  16123. k.bindBuffer(k.ELEMENT_ARRAY_BUFFER, this.Nk);
  16124. k.bufferData(k.ELEMENT_ARRAY_BUFFER, this.Tb,
  16125. k.DYNAMIC_DRAW);
  16126. this.Ec = !0
  16127. }
  16128. });
  16129. f.iU.create = function(c, d, e) {
  16130. return new f.iU(c, d, e)
  16131. };
  16132. f.Lla = f.N.extend({
  16133. JK: null,
  16134. ep: null,
  16135. eaa: null,
  16136. Vz: null,
  16137. ctor: function() {
  16138. f.tV();
  16139. this.Vz = f.s;
  16140. this.eaa = [0, 0, 0, 0];
  16141. this.ep = null;
  16142. this.JK = this.Vz.createFramebuffer()
  16143. },
  16144. WBa: function(c) {
  16145. var d = this.Vz;
  16146. this.ep = d.getParameter(d.FRAMEBUFFER_BINDING);
  16147. d.bindFramebuffer(d.FRAMEBUFFER, this.JK);
  16148. d.framebufferTexture2D(d.FRAMEBUFFER, d.COLOR_ATTACHMENT0, d.TEXTURE_2D, c.Wh, 0);
  16149. d.checkFramebufferStatus(d.FRAMEBUFFER) != d.FRAMEBUFFER_COMPLETE && f.log("Frame Grabber: could not attach texture to frmaebuffer");
  16150. d.bindFramebuffer(d.FRAMEBUFFER,
  16151. this.ep)
  16152. },
  16153. Ewa: function() {
  16154. var c = this.Vz;
  16155. this.ep = c.getParameter(c.FRAMEBUFFER_BINDING);
  16156. c.bindFramebuffer(c.FRAMEBUFFER, this.JK);
  16157. this.eaa = c.getParameter(c.COLOR_CLEAR_VALUE);
  16158. c.clearColor(0, 0, 0, 0);
  16159. c.clear(c.COLOR_BUFFER_BIT | c.DEPTH_BUFFER_BIT)
  16160. },
  16161. Yva: function() {
  16162. var c = this.Vz;
  16163. c.bindFramebuffer(c.FRAMEBUFFER, this.ep);
  16164. c.colorMask(!0, !0, !0, !0)
  16165. },
  16166. MQa: function() {
  16167. this.Vz.deleteFramebuffer(this.JK)
  16168. }
  16169. });
  16170. f.uy = -1;
  16171. f.Ag = f.N.extend({
  16172. originalTarget: null,
  16173. target: null,
  16174. tag: f.uy,
  16175. ctor: function() {
  16176. this.target = this.originalTarget = null;
  16177. this.tag = f.uy
  16178. },
  16179. copy: function() {
  16180. f.log("copy is deprecated. Please use clone instead.");
  16181. return this.p()
  16182. },
  16183. p: function() {
  16184. var c = new f.Ag;
  16185. c.originalTarget = null;
  16186. c.target = null;
  16187. c.tag = this.tag;
  16188. return c
  16189. },
  16190. gk: function() {
  16191. return !0
  16192. },
  16193. R: function(c) {
  16194. this.target = this.originalTarget = c
  16195. },
  16196. stop: function() {
  16197. this.target = null
  16198. },
  16199. step: function() {
  16200. f.log("[Action step]. override me")
  16201. },
  16202. update: function() {
  16203. f.log("[Action update]. override me")
  16204. },
  16205. bea: function() {
  16206. return this.target
  16207. },
  16208. ZI: function(c) {
  16209. this.target = c
  16210. },
  16211. XUa: function() {
  16212. return this.originalTarget
  16213. },
  16214. P3a: function(c) {
  16215. this.originalTarget = c
  16216. },
  16217. Em: function() {
  16218. return this.tag
  16219. },
  16220. Nm: function(c) {
  16221. this.tag = c
  16222. },
  16223. OQ: function() {},
  16224. wh: function() {}
  16225. });
  16226. f.Ag.create = function() {
  16227. return new f.Ag
  16228. };
  16229. f.lq = f.Ag.extend({
  16230. C: 0,
  16231. ctor: function() {
  16232. f.Ag.prototype.ctor.call(this);
  16233. this.C = 0
  16234. },
  16235. pu: function() {
  16236. return this.C * (this.ne || 1)
  16237. },
  16238. Ei: function(c) {
  16239. this.C = c
  16240. },
  16241. reverse: function() {
  16242. f.log("cocos2d: FiniteTimeAction#reverse: Implement me");
  16243. return null
  16244. },
  16245. p: function() {
  16246. return new f.lq
  16247. }
  16248. });
  16249. f.lE = f.Ag.extend({
  16250. ti: 0,
  16251. Gc: null,
  16252. ctor: function(c, d) {
  16253. f.Ag.prototype.ctor.call(this);
  16254. this.ti = 0;
  16255. this.Gc = null;
  16256. c && this.Fa(c, d)
  16257. },
  16258. tP: function() {
  16259. return this.ti
  16260. },
  16261. Hi: function(c) {
  16262. this.ti = c
  16263. },
  16264. Fa: function(c, d) {
  16265. if (!c) throw "cc.Speed.initWithAction(): action must be non nil";
  16266. this.Gc = c;
  16267. this.ti = d;
  16268. return !0
  16269. },
  16270. p: function() {
  16271. var c = new f.lE;
  16272. c.Fa(this.Gc.p(), this.ti);
  16273. return c
  16274. },
  16275. R: function(c) {
  16276. f.Ag.prototype.R.call(this, c);
  16277. this.Gc.R(c)
  16278. },
  16279. stop: function() {
  16280. this.Gc.stop();
  16281. f.Ag.prototype.stop.call(this)
  16282. },
  16283. step: function(c) {
  16284. this.Gc.step(c *
  16285. this.ti)
  16286. },
  16287. gk: function() {
  16288. return this.Gc.gk()
  16289. },
  16290. reverse: function() {
  16291. return f.lE.create(this.Gc.reverse(), this.ti)
  16292. },
  16293. cha: function(c) {
  16294. this.Gc != c && (this.Gc = c)
  16295. },
  16296. c0: function() {
  16297. return this.Gc
  16298. }
  16299. });
  16300. f.lE.create = function(c, d) {
  16301. return new f.lE(c, d)
  16302. };
  16303. f.cK = f.Ag.extend({
  16304. Oz: null,
  16305. lz: !1,
  16306. hL: !1,
  16307. nM: null,
  16308. rF: null,
  16309. Fx: 0,
  16310. Tx: 0,
  16311. my: 0,
  16312. fx: 0,
  16313. oZ: null,
  16314. ctor: function(c, d) {
  16315. f.Ag.prototype.ctor.call(this);
  16316. this.Oz = null;
  16317. this.hL = this.lz = !1;
  16318. this.rF = this.nM = null;
  16319. this.fx = this.my = this.Tx = this.Fx = 0;
  16320. this.oZ = x(0, 0, 0, 0);
  16321. c && (d ? this.YB(c, d) : this.YB(c))
  16322. },
  16323. p: function() {
  16324. var c = new f.cK,
  16325. d = this.oZ;
  16326. c.YB(this.Oz, new f.Qy(d.x, d.y, d.width, d.height));
  16327. return c
  16328. },
  16329. xXa: function() {
  16330. return this.lz
  16331. },
  16332. F2a: function(c) {
  16333. this.lz = c
  16334. },
  16335. YB: function(c, d) {
  16336. if (!c) throw "cc.Follow.initWithAction(): followedNode must be non nil";
  16337. d = d || x(0, 0, 0, 0);
  16338. this.Oz = c;
  16339. this.oZ = d;
  16340. this.lz = !f.gG(d);
  16341. this.hL = !1;
  16342. var e = f.Q.Y;
  16343. this.rF = r(e.width, e.height);
  16344. this.nM = f.Up(this.rF, 0.5);
  16345. this.lz && (this.Fx = -(d.x + d.width - this.rF.x), this.Tx = -d.x, this.my = -d.y, this.fx = -(d.y + d.height - this.rF.y), this.Tx < this.Fx && (this.Tx = this.Fx = (this.Fx + this.Tx) / 2), this.my < this.fx && (this.my = this.fx = (this.my + this.fx) / 2), this.my == this.fx && this.Fx == this.Tx && (this.hL = !0));
  16346. return !0
  16347. },
  16348. step: function() {
  16349. var c = this.Oz.x,
  16350. d = this.Oz.y,
  16351. c = this.nM.x - c,
  16352. d = this.nM.y - d;
  16353. this.lz ? this.hL || this.target.o(f.Rf(c,
  16354. this.Fx, this.Tx), f.Rf(d, this.fx, this.my)) : this.target.o(c, d)
  16355. },
  16356. gk: function() {
  16357. return !this.Oz.running
  16358. },
  16359. stop: function() {
  16360. this.target = null;
  16361. f.Ag.prototype.stop.call(this)
  16362. }
  16363. });
  16364. f.cK.create = function(c, d) {
  16365. return new f.cK(c, d)
  16366. };
  16367. f.M = f.lq.extend({
  16368. Fc: 0,
  16369. dM: !1,
  16370. Xl: null,
  16371. ne: 1,
  16372. hG: !1,
  16373. IA: !1,
  16374. ti: 1,
  16375. tG: !1,
  16376. ctor: function(c) {
  16377. this.ne = this.ti = 1;
  16378. this.hG = !1;
  16379. this.MAX_VALUE = 2;
  16380. this.tG = this.IA = !1;
  16381. f.lq.prototype.ctor.call(this);
  16382. void 0 !== c && this.f(c)
  16383. },
  16384. HTa: function() {
  16385. return this.Fc
  16386. },
  16387. f: function(c) {
  16388. this.C = 0 === c ? f.aK : c;
  16389. this.Fc = 0;
  16390. return this.dM = !0
  16391. },
  16392. gk: function() {
  16393. return this.Fc >= this.C
  16394. },
  16395. zb: function(c) {
  16396. c.hG = this.hG;
  16397. c.ti = this.ti;
  16398. c.ne = this.ne;
  16399. c.Xl = this.Xl;
  16400. c.tG = this.tG;
  16401. c.IA = this.IA
  16402. },
  16403. si: function(c) {
  16404. if (this.Xl) {
  16405. c.Xl = [];
  16406. for (var d = 0; d < this.Xl.length; d++) c.Xl.push(this.Xl[d].reverse())
  16407. }
  16408. },
  16409. p: function() {
  16410. var c = new f.M(this.C);
  16411. this.zb(c);
  16412. return c
  16413. },
  16414. sa: function(c) {
  16415. this.Xl ? this.Xl.length = 0 : this.Xl = [];
  16416. for (var d = 0; d < arguments.length; d++) this.Xl.push(arguments[d]);
  16417. return this
  16418. },
  16419. Eg: function(c) {
  16420. var d = this.Xl;
  16421. if (!d || 0 === d.length) return c;
  16422. for (var e = 0, g = d.length; e < g; e++) c = d[e].sa(c);
  16423. return c
  16424. },
  16425. step: function(c) {
  16426. this.dM ? (this.dM = !1, this.Fc = 0) : this.Fc += c;
  16427. c = this.Fc / (1.192092896E-7 < this.C ? this.C : 1.192092896E-7);
  16428. c = 1 > c ? c : 1;
  16429. this.update(0 < c ? c : 0);
  16430. this.IA && 1 < this.ne && this.gk() && (this.hG || this.ne--, this.R(this.target),
  16431. this.step(this.Fc - this.C))
  16432. },
  16433. R: function(c) {
  16434. f.Ag.prototype.R.call(this, c);
  16435. this.Fc = 0;
  16436. this.dM = !0
  16437. },
  16438. reverse: function() {
  16439. f.log("cc.IntervalAction: reverse not implemented.");
  16440. return null
  16441. },
  16442. Wx: function() {
  16443. f.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.")
  16444. },
  16445. vx: function() {
  16446. f.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass.");
  16447. return 0
  16448. },
  16449. speed: function(c) {
  16450. if (0 >= c) return f.log("The speed parameter error"), this;
  16451. this.tG = !0;
  16452. this.ti *= c;
  16453. return this
  16454. },
  16455. tP: function() {
  16456. return this.ti
  16457. },
  16458. Hi: function(c) {
  16459. this.ti = c;
  16460. return this
  16461. },
  16462. repeat: function(c) {
  16463. c = Math.round(c);
  16464. if (isNaN(c) || 1 > c) return f.log("The repeat parameter error"), this;
  16465. this.IA = !0;
  16466. this.ne *= c;
  16467. return this
  16468. },
  16469. ZFa: function() {
  16470. this.IA = !0;
  16471. this.ne = this.MAX_VALUE;
  16472. this.hG = !0;
  16473. return this
  16474. }
  16475. });
  16476. f.M.create = function(c) {
  16477. return new f.M(c)
  16478. };
  16479. f.X = f.M.extend({
  16480. Io: null,
  16481. jba: null,
  16482. KF: 0,
  16483. ctor: function(c) {
  16484. f.M.prototype.ctor.call(this);
  16485. this.Io = [];
  16486. var d = c instanceof Array ? c : arguments,
  16487. e = d.length - 1;
  16488. 0 <= e && null == d[e] && f.log("parameters should not be ending with null in Javascript");
  16489. if (0 <= e) {
  16490. for (var g = d[0], h = 1; h < e; h++) d[h] && (g = f.X.yq(g, d[h]));
  16491. this.Dx(g, d[e])
  16492. }
  16493. },
  16494. Dx: function(c, d) {
  16495. if (!c || !d) throw "cc.Sequence.initWithTwoActions(): arguments must all be non nil";
  16496. this.f(c.C + d.C);
  16497. this.Io[0] = c;
  16498. this.Io[1] = d;
  16499. return !0
  16500. },
  16501. p: function() {
  16502. var c = new f.X;
  16503. this.zb(c);
  16504. c.Dx(this.Io[0].p(),
  16505. this.Io[1].p());
  16506. return c
  16507. },
  16508. R: function(c) {
  16509. f.M.prototype.R.call(this, c);
  16510. this.jba = this.Io[0].C / this.C;
  16511. this.KF = -1
  16512. },
  16513. stop: function() {
  16514. -1 !== this.KF && this.Io[this.KF].stop();
  16515. f.Ag.prototype.stop.call(this)
  16516. },
  16517. update: function(c) {
  16518. c = this.Eg(c);
  16519. var d = 0,
  16520. e = this.jba,
  16521. g = this.Io,
  16522. h = this.KF;
  16523. c < e ? (c = 0 !== e ? c / e : 1, 0 === d && 1 === h && (g[1].update(0), g[1].stop())) : (d = 1, c = 1 === e ? 1 : (c - e) / (1 - e), -1 === h && (g[0].R(this.target), g[0].update(1), g[0].stop()), h || (g[0].update(1), g[0].stop()));
  16524. h === d && g[d].gk() || (h !== d && g[d].R(this.target), g[d].update(c),
  16525. this.KF = d)
  16526. },
  16527. reverse: function() {
  16528. var c = f.X.yq(this.Io[1].reverse(), this.Io[0].reverse());
  16529. this.zb(c);
  16530. this.si(c);
  16531. return c
  16532. }
  16533. });
  16534. f.X.create = function(c) {
  16535. var d = c instanceof Array ? c : arguments;
  16536. 0 < d.length && null == d[d.length - 1] && f.log("parameters should not be ending with null in Javascript");
  16537. for (var e = d[0], g = 1; g < d.length; g++) d[g] && (e = f.X.yq(e, d[g]));
  16538. return e
  16539. };
  16540. f.X.yq = function(c, d) {
  16541. var e = new f.X;
  16542. e.Dx(c, d);
  16543. return e
  16544. };
  16545. f.gE = f.M.extend({
  16546. ne: 0,
  16547. au: 0,
  16548. gX: 0,
  16549. x8: !1,
  16550. Gc: null,
  16551. ctor: function(c, d) {
  16552. f.M.prototype.ctor.call(this);
  16553. void 0 !== d && this.Fa(c, d)
  16554. },
  16555. Fa: function(c, d) {
  16556. return this.f(c.C * d) ? (this.ne = d, this.Gc = c, c instanceof f.Ch && (this.x8 = !0, this.ne -= 1), this.au = 0, !0) : !1
  16557. },
  16558. p: function() {
  16559. var c = new f.gE;
  16560. this.zb(c);
  16561. c.Fa(this.Gc.p(), this.ne);
  16562. return c
  16563. },
  16564. R: function(c) {
  16565. this.au = 0;
  16566. this.gX = this.Gc.C / this.C;
  16567. f.M.prototype.R.call(this, c);
  16568. this.Gc.R(c)
  16569. },
  16570. stop: function() {
  16571. this.Gc.stop();
  16572. f.Ag.prototype.stop.call(this)
  16573. },
  16574. update: function(c) {
  16575. c = this.Eg(c);
  16576. var d = this.Gc,
  16577. e = this.C,
  16578. g = this.ne,
  16579. h = this.gX;
  16580. if (c >= h) {
  16581. for (; c > h && this.au < g;) d.update(1), this.au++, d.stop(), d.R(this.target), this.gX = h += d.C / e;
  16582. 1 <= c && this.au < g && this.au++;
  16583. this.x8 || (this.au === g ? (d.update(1), d.stop()) : d.update(c - (h - d.C / e)))
  16584. } else d.update(c * g % 1)
  16585. },
  16586. gk: function() {
  16587. return this.au == this.ne
  16588. },
  16589. reverse: function() {
  16590. var c = f.gE.create(this.Gc.reverse(), this.ne);
  16591. this.zb(c);
  16592. this.si(c);
  16593. return c
  16594. },
  16595. cha: function(c) {
  16596. this.Gc != c && (this.Gc = c)
  16597. },
  16598. c0: function() {
  16599. return this.Gc
  16600. }
  16601. });
  16602. f.gE.create = function(c, d) {
  16603. return new f.gE(c, d)
  16604. };
  16605. f.hE = f.M.extend({
  16606. Gc: null,
  16607. ctor: function(c) {
  16608. f.M.prototype.ctor.call(this);
  16609. this.Gc = null;
  16610. c && this.Fa(c)
  16611. },
  16612. Fa: function(c) {
  16613. if (!c) throw "cc.RepeatForever.initWithAction(): action must be non null";
  16614. this.Gc = c;
  16615. return !0
  16616. },
  16617. p: function() {
  16618. var c = new f.hE;
  16619. this.zb(c);
  16620. c.Fa(this.Gc.p());
  16621. return c
  16622. },
  16623. R: function(c) {
  16624. f.M.prototype.R.call(this, c);
  16625. this.Gc.R(c)
  16626. },
  16627. step: function(c) {
  16628. var d = this.Gc;
  16629. d.step(c);
  16630. d.gk() && (d.R(this.target), d.step(d.Fc - d.C))
  16631. },
  16632. gk: function() {
  16633. return !1
  16634. },
  16635. reverse: function() {
  16636. var c = f.hE.create(this.Gc.reverse());
  16637. this.zb(c);
  16638. this.si(c);
  16639. return c
  16640. },
  16641. cha: function(c) {
  16642. this.Gc != c && (this.Gc = c)
  16643. },
  16644. c0: function() {
  16645. return this.Gc
  16646. }
  16647. });
  16648. f.hE.create = function(c) {
  16649. return new f.hE(c)
  16650. };
  16651. f.fe = f.M.extend({
  16652. gr: null,
  16653. Ar: null,
  16654. ctor: function(c) {
  16655. f.M.prototype.ctor.call(this);
  16656. this.Ar = this.gr = null;
  16657. var d = c instanceof Array ? c : arguments,
  16658. e = d.length - 1;
  16659. 0 <= e && null == d[e] && f.log("parameters should not be ending with null in Javascript");
  16660. if (0 <= e) {
  16661. for (var g = d[0], h = 1; h < e; h++) d[h] && (g = f.fe.yq(g, d[h]));
  16662. this.Dx(g, d[e])
  16663. }
  16664. },
  16665. Dx: function(c, d) {
  16666. if (!c || !d) throw "cc.Spawn.initWithTwoActions(): arguments must all be non null";
  16667. var e = !1,
  16668. g = c.C,
  16669. h = d.C;
  16670. this.f(Math.max(g, h)) && (this.gr = c, this.Ar = d, g > h ? this.Ar = f.X.yq(d, f.Nb.create(g -
  16671. h)) : g < h && (this.gr = f.X.yq(c, f.Nb.create(h - g))), e = !0);
  16672. return e
  16673. },
  16674. p: function() {
  16675. var c = new f.fe;
  16676. this.zb(c);
  16677. c.Dx(this.gr.p(), this.Ar.p());
  16678. return c
  16679. },
  16680. R: function(c) {
  16681. f.M.prototype.R.call(this, c);
  16682. this.gr.R(c);
  16683. this.Ar.R(c)
  16684. },
  16685. stop: function() {
  16686. this.gr.stop();
  16687. this.Ar.stop();
  16688. f.Ag.prototype.stop.call(this)
  16689. },
  16690. update: function(c) {
  16691. c = this.Eg(c);
  16692. this.gr && this.gr.update(c);
  16693. this.Ar && this.Ar.update(c)
  16694. },
  16695. reverse: function() {
  16696. var c = f.fe.yq(this.gr.reverse(), this.Ar.reverse());
  16697. this.zb(c);
  16698. this.si(c);
  16699. return c
  16700. }
  16701. });
  16702. f.fe.create = function(c) {
  16703. var d = c instanceof Array ? c : arguments;
  16704. 0 < d.length && null == d[d.length - 1] && f.log("parameters should not be ending with null in Javascript");
  16705. for (var e = d[0], g = 1; g < d.length; g++) null != d[g] && (e = f.fe.yq(e, d[g]));
  16706. return e
  16707. };
  16708. f.fe.yq = function(c, d) {
  16709. var e = new f.fe;
  16710. e.Dx(c, d);
  16711. return e
  16712. };
  16713. f.pv = f.M.extend({
  16714. PL: 0,
  16715. vG: 0,
  16716. k9: 0,
  16717. WV: 0,
  16718. SA: 0,
  16719. l9: 0,
  16720. ctor: function(c, d, e) {
  16721. f.M.prototype.ctor.call(this);
  16722. void 0 !== d && this.f(c, d, e)
  16723. },
  16724. f: function(c, d, e) {
  16725. return f.M.prototype.f.call(this, c) ? (this.PL = d || 0, this.WV = e || this.PL, !0) : !1
  16726. },
  16727. p: function() {
  16728. var c = new f.pv;
  16729. this.zb(c);
  16730. c.f(this.C, this.PL, this.WV);
  16731. return c
  16732. },
  16733. R: function(c) {
  16734. f.M.prototype.R.call(this, c);
  16735. var d = c.rotationX % 360,
  16736. e = this.PL - d;
  16737. 180 < e && (e -= 360); - 180 > e && (e += 360);
  16738. this.vG = d;
  16739. this.k9 = e;
  16740. this.SA = c.rotationY % 360;
  16741. c = this.WV - this.SA;
  16742. 180 < c && (c -= 360); - 180 > c && (c += 360);
  16743. this.l9 = c
  16744. },
  16745. reverse: function() {
  16746. f.log("cc.RotateTo.reverse(): it should be overridden in subclass.")
  16747. },
  16748. update: function(c) {
  16749. c = this.Eg(c);
  16750. this.target && (this.target.rotationX = this.vG + this.k9 * c, this.target.rotationY = this.SA + this.l9 * c)
  16751. }
  16752. });
  16753. f.pv.create = function(c, d, e) {
  16754. return new f.pv(c, d, e)
  16755. };
  16756. f.Ry = f.M.extend({
  16757. bn: 0,
  16758. vG: 0,
  16759. SK: 0,
  16760. SA: 0,
  16761. ctor: function(c, d, e) {
  16762. f.M.prototype.ctor.call(this);
  16763. void 0 !== d && this.f(c, d, e)
  16764. },
  16765. f: function(c, d, e) {
  16766. return f.M.prototype.f.call(this, c) ? (this.bn = d || 0, this.SK = e || this.bn, !0) : !1
  16767. },
  16768. p: function() {
  16769. var c = new f.Ry;
  16770. this.zb(c);
  16771. c.f(this.C, this.bn, this.SK);
  16772. return c
  16773. },
  16774. R: function(c) {
  16775. f.M.prototype.R.call(this, c);
  16776. this.vG = c.rotationX;
  16777. this.SA = c.rotationY
  16778. },
  16779. update: function(c) {
  16780. c = this.Eg(c);
  16781. this.target && (this.target.rotationX = this.vG + this.bn * c, this.target.rotationY = this.SA + this.SK * c)
  16782. },
  16783. reverse: function() {
  16784. var c =
  16785. f.Ry.create(this.C, -this.bn, -this.SK);
  16786. this.zb(c);
  16787. this.si(c);
  16788. return c
  16789. }
  16790. });
  16791. f.Ry.create = function(c, d, e) {
  16792. var g = new f.Ry;
  16793. g.f(c, d, e);
  16794. return g
  16795. };
  16796. f.vk = f.M.extend({
  16797. ip: null,
  16798. tf: null,
  16799. Kf: null,
  16800. ctor: function(c, d, e) {
  16801. f.M.prototype.ctor.call(this);
  16802. this.ip = r(0, 0);
  16803. this.tf = r(0, 0);
  16804. this.Kf = r(0, 0);
  16805. void 0 !== d && this.f(c, d, e)
  16806. },
  16807. f: function(c, d, e) {
  16808. return f.M.prototype.f.call(this, c) ? (void 0 !== d.x && (e = d.y, d = d.x), this.ip.x = d, this.ip.y = e, !0) : !1
  16809. },
  16810. p: function() {
  16811. var c = new f.vk;
  16812. this.zb(c);
  16813. c.f(this.C, this.ip);
  16814. return c
  16815. },
  16816. R: function(c) {
  16817. f.M.prototype.R.call(this, c);
  16818. var d = c.Vc();
  16819. c = c.Zd();
  16820. this.Kf.x = d;
  16821. this.Kf.y = c;
  16822. this.tf.x = d;
  16823. this.tf.y = c
  16824. },
  16825. update: function(c) {
  16826. c = this.Eg(c);
  16827. if (this.target) {
  16828. var d =
  16829. this.ip.x * c;
  16830. c *= this.ip.y;
  16831. var e = this.tf;
  16832. if (f.SJ) {
  16833. var g = this.target.Zd(),
  16834. h = this.Kf;
  16835. e.x = e.x + this.target.Vc() - h.x;
  16836. e.y = e.y + g - h.y;
  16837. d += e.x;
  16838. c += e.y;
  16839. h.x = d;
  16840. h.y = c;
  16841. this.target.o(d, c)
  16842. } else this.target.o(e.x + d, e.y + c)
  16843. }
  16844. },
  16845. reverse: function() {
  16846. var c = f.vk.create(this.C, r(-this.ip.x, -this.ip.y));
  16847. this.zb(c);
  16848. this.si(c);
  16849. return c
  16850. }
  16851. });
  16852. f.vk.create = function(c, d, e) {
  16853. return new f.vk(c, d, e)
  16854. };
  16855. f.Dc = f.vk.extend({
  16856. Kk: null,
  16857. ctor: function(c, d, e) {
  16858. f.vk.prototype.ctor.call(this);
  16859. this.Kk = r(0, 0);
  16860. void 0 !== d && this.f(c, d, e)
  16861. },
  16862. f: function(c, d, e) {
  16863. return f.vk.prototype.f.call(this, c, d, e) ? (void 0 !== d.x && (e = d.y, d = d.x), this.Kk.x = d, this.Kk.y = e, !0) : !1
  16864. },
  16865. p: function() {
  16866. var c = new f.Dc;
  16867. this.zb(c);
  16868. c.f(this.C, this.Kk);
  16869. return c
  16870. },
  16871. R: function(c) {
  16872. f.vk.prototype.R.call(this, c);
  16873. this.ip.x = this.Kk.x - c.Vc();
  16874. this.ip.y = this.Kk.y - c.Zd()
  16875. }
  16876. });
  16877. f.Dc.create = function(c, d, e) {
  16878. return new f.Dc(c, d, e)
  16879. };
  16880. f.uq = f.M.extend({
  16881. og: 0,
  16882. pg: 0,
  16883. LN: 0,
  16884. MN: 0,
  16885. VL: 0,
  16886. WL: 0,
  16887. Mj: 0,
  16888. Nj: 0,
  16889. ctor: function(c, d, e) {
  16890. f.M.prototype.ctor.call(this);
  16891. void 0 !== e && this.f(c, d, e)
  16892. },
  16893. f: function(c, d, e) {
  16894. var g = !1;
  16895. f.M.prototype.f.call(this, c) && (this.VL = d, this.WL = e, g = !0);
  16896. return g
  16897. },
  16898. p: function() {
  16899. var c = new f.uq;
  16900. this.zb(c);
  16901. c.f(this.C, this.VL, this.WL);
  16902. return c
  16903. },
  16904. R: function(c) {
  16905. f.M.prototype.R.call(this, c);
  16906. this.LN = c.skewX % 180;
  16907. this.Mj = this.VL - this.LN;
  16908. 180 < this.Mj && (this.Mj -= 360); - 180 > this.Mj && (this.Mj += 360);
  16909. this.MN = c.skewY % 360;
  16910. this.Nj = this.WL - this.MN;
  16911. 180 < this.Nj &&
  16912. (this.Nj -= 360); - 180 > this.Nj && (this.Nj += 360)
  16913. },
  16914. update: function(c) {
  16915. c = this.Eg(c);
  16916. this.target.skewX = this.LN + this.Mj * c;
  16917. this.target.skewY = this.MN + this.Nj * c
  16918. }
  16919. });
  16920. f.uq.create = function(c, d, e) {
  16921. return new f.uq(c, d, e)
  16922. };
  16923. f.kE = f.uq.extend({
  16924. ctor: function(c, d, e) {
  16925. f.uq.prototype.ctor.call(this);
  16926. void 0 !== e && this.f(c, d, e)
  16927. },
  16928. f: function(c, d, e) {
  16929. var g = !1;
  16930. f.uq.prototype.f.call(this, c, d, e) && (this.og = d, this.pg = e, g = !0);
  16931. return g
  16932. },
  16933. p: function() {
  16934. var c = new f.kE;
  16935. this.zb(c);
  16936. c.f(this.C, this.og, this.pg);
  16937. return c
  16938. },
  16939. R: function(c) {
  16940. f.uq.prototype.R.call(this, c);
  16941. this.Mj = this.og;
  16942. this.Nj = this.pg;
  16943. this.VL = this.LN + this.Mj;
  16944. this.WL = this.MN + this.Nj
  16945. },
  16946. reverse: function() {
  16947. var c = f.kE.create(this.C, -this.og, -this.pg);
  16948. this.zb(c);
  16949. this.si(c);
  16950. return c
  16951. }
  16952. });
  16953. f.kE.create = function(c, d, e) {
  16954. var g = new f.kE;
  16955. g && g.f(c, d, e);
  16956. return g
  16957. };
  16958. f.xo = f.M.extend({
  16959. tf: null,
  16960. To: null,
  16961. CF: 0,
  16962. Zq: 0,
  16963. Kf: null,
  16964. ctor: function(c, d, e, g, h) {
  16965. f.M.prototype.ctor.call(this);
  16966. this.tf = r(0, 0);
  16967. this.Kf = r(0, 0);
  16968. this.To = r(0, 0);
  16969. void 0 !== g && this.f(c, d, e, g, h)
  16970. },
  16971. f: function(c, d, e, g, h) {
  16972. return f.M.prototype.f.call(this, c) ? (void 0 === h && (h = g, g = e, e = d.y, d = d.x), this.To.x = d, this.To.y = e, this.CF = g, this.Zq = h, !0) : !1
  16973. },
  16974. p: function() {
  16975. var c = new f.xo;
  16976. this.zb(c);
  16977. c.f(this.C, this.To, this.CF, this.Zq);
  16978. return c
  16979. },
  16980. R: function(c) {
  16981. f.M.prototype.R.call(this, c);
  16982. var d = c.Vc();
  16983. c = c.Zd();
  16984. this.Kf.x = d;
  16985. this.Kf.y = c;
  16986. this.tf.x = d;
  16987. this.tf.y = c
  16988. },
  16989. update: function(c) {
  16990. c = this.Eg(c);
  16991. if (this.target) {
  16992. var d = c * this.Zq % 1,
  16993. d = 4 * this.CF * d * (1 - d),
  16994. d = d + this.To.y * c;
  16995. c *= this.To.x;
  16996. var e = this.tf;
  16997. if (f.SJ) {
  16998. var g = this.target.Zd(),
  16999. h = this.Kf;
  17000. e.x = e.x + this.target.Vc() - h.x;
  17001. e.y = e.y + g - h.y;
  17002. c += e.x;
  17003. d += e.y;
  17004. h.x = c;
  17005. h.y = d;
  17006. this.target.o(c, d)
  17007. } else this.target.o(e.x + c, e.y + d)
  17008. }
  17009. },
  17010. reverse: function() {
  17011. var c = f.xo.create(this.C, r(-this.To.x, -this.To.y), this.CF, this.Zq);
  17012. this.zb(c);
  17013. this.si(c);
  17014. return c
  17015. }
  17016. });
  17017. f.xo.create = function(c, d, e, g, h) {
  17018. return new f.xo(c, d, e, g, h)
  17019. };
  17020. f.dK = f.xo.extend({
  17021. Kk: null,
  17022. ctor: function(c, d, e, g, h) {
  17023. f.xo.prototype.ctor.call(this);
  17024. this.Kk = r(0, 0);
  17025. void 0 !== g && this.f(c, d, e, g, h)
  17026. },
  17027. f: function(c, d, e, g, h) {
  17028. return f.xo.prototype.f.call(this, c, d, e, g, h) ? (void 0 === h && (e = d.y, d = d.x), this.Kk.x = d, this.Kk.y = e, !0) : !1
  17029. },
  17030. R: function(c) {
  17031. f.xo.prototype.R.call(this, c);
  17032. this.To.x = this.Kk.x - this.tf.x;
  17033. this.To.y = this.Kk.y - this.tf.y
  17034. },
  17035. p: function() {
  17036. var c = new f.dK;
  17037. this.zb(c);
  17038. c.f(this.C, this.Kk, this.CF, this.Zq);
  17039. return c
  17040. }
  17041. });
  17042. f.dK.create = function(c, d, e, g, h) {
  17043. return new f.dK(c, d, e, g, h)
  17044. };
  17045. f.hca = function(c, d, e, g) {
  17046. return 0 * Math.pow(1 - g, 3) + 3 * g * Math.pow(1 - g, 2) * c + 3 * Math.pow(g, 2) * (1 - g) * d + Math.pow(g, 3) * e
  17047. };
  17048. f.qs = f.M.extend({
  17049. Fk: null,
  17050. tf: null,
  17051. Kf: null,
  17052. ctor: function(c, d) {
  17053. f.M.prototype.ctor.call(this);
  17054. this.Fk = [];
  17055. this.tf = r(0, 0);
  17056. this.Kf = r(0, 0);
  17057. d && this.f(c, d)
  17058. },
  17059. f: function(c, d) {
  17060. return f.M.prototype.f.call(this, c) ? (this.Fk = d, !0) : !1
  17061. },
  17062. p: function() {
  17063. var c = new f.qs;
  17064. this.zb(c);
  17065. for (var d = [], e = 0; e < this.Fk.length; e++) {
  17066. var g = this.Fk[e];
  17067. d.push(r(g.x, g.y))
  17068. }
  17069. c.f(this.C, d);
  17070. return c
  17071. },
  17072. R: function(c) {
  17073. f.M.prototype.R.call(this, c);
  17074. var d = c.Vc();
  17075. c = c.Zd();
  17076. this.Kf.x = d;
  17077. this.Kf.y = c;
  17078. this.tf.x = d;
  17079. this.tf.y = c
  17080. },
  17081. update: function(c) {
  17082. c = this.Eg(c);
  17083. if (this.target) {
  17084. var d = this.Fk,
  17085. e = f.hca(d[0].x, d[1].x, d[2].x, c);
  17086. c = f.hca(d[0].y, d[1].y, d[2].y, c);
  17087. d = this.tf;
  17088. if (f.SJ) {
  17089. var g = this.target.Zd(),
  17090. h = this.Kf;
  17091. d.x = d.x + this.target.Vc() - h.x;
  17092. d.y = d.y + g - h.y;
  17093. e += d.x;
  17094. c += d.y;
  17095. h.x = e;
  17096. h.y = c;
  17097. this.target.o(e, c)
  17098. } else this.target.o(d.x + e, d.y + c)
  17099. }
  17100. },
  17101. reverse: function() {
  17102. var c = this.Fk,
  17103. c = f.qs.create(this.C, [f.Tp(c[1], f.B1(c[2])), f.Tp(c[0], f.B1(c[2])), f.B1(c[2])]);
  17104. this.zb(c);
  17105. this.si(c);
  17106. return c
  17107. }
  17108. });
  17109. f.qs.create = function(c, d) {
  17110. return new f.qs(c, d)
  17111. };
  17112. f.zJ = f.qs.extend({
  17113. $N: null,
  17114. ctor: function(c, d) {
  17115. f.qs.prototype.ctor.call(this);
  17116. this.$N = [];
  17117. d && this.f(c, d)
  17118. },
  17119. f: function(c, d) {
  17120. return f.M.prototype.f.call(this, c) ? (this.$N = d, !0) : !1
  17121. },
  17122. p: function() {
  17123. var c = new f.zJ;
  17124. this.zb(c);
  17125. c.f(this.C, this.$N);
  17126. return c
  17127. },
  17128. R: function(c) {
  17129. f.qs.prototype.R.call(this, c);
  17130. c = this.tf;
  17131. var d = this.$N,
  17132. e = this.Fk;
  17133. e[0] = f.gc(d[0], c);
  17134. e[1] = f.gc(d[1], c);
  17135. e[2] = f.gc(d[2], c)
  17136. }
  17137. });
  17138. f.zJ.create = function(c, d) {
  17139. return new f.zJ(c, d)
  17140. };
  17141. f.Db = f.M.extend({
  17142. ka: 1,
  17143. ra: 1,
  17144. xG: 1,
  17145. yG: 1,
  17146. Kz: 0,
  17147. Lz: 0,
  17148. Mj: 0,
  17149. Nj: 0,
  17150. ctor: function(c, d, e) {
  17151. f.M.prototype.ctor.call(this);
  17152. void 0 !== d && this.f(c, d, e)
  17153. },
  17154. f: function(c, d, e) {
  17155. return f.M.prototype.f.call(this, c) ? (this.Kz = d, this.Lz = null != e ? e : d, !0) : !1
  17156. },
  17157. p: function() {
  17158. var c = new f.Db;
  17159. this.zb(c);
  17160. c.f(this.C, this.Kz, this.Lz);
  17161. return c
  17162. },
  17163. R: function(c) {
  17164. f.M.prototype.R.call(this, c);
  17165. this.xG = c.scaleX;
  17166. this.yG = c.scaleY;
  17167. this.Mj = this.Kz - this.xG;
  17168. this.Nj = this.Lz - this.yG
  17169. },
  17170. update: function(c) {
  17171. c = this.Eg(c);
  17172. this.target && (this.target.scaleX = this.xG +
  17173. this.Mj * c, this.target.scaleY = this.yG + this.Nj * c)
  17174. }
  17175. });
  17176. f.Db.create = function(c, d, e) {
  17177. var g = new f.Db;
  17178. g.f(c, d, e);
  17179. return g
  17180. };
  17181. f.Ty = f.Db.extend({
  17182. R: function(c) {
  17183. f.Db.prototype.R.call(this, c);
  17184. this.Mj = this.xG * this.Kz - this.xG;
  17185. this.Nj = this.yG * this.Lz - this.yG
  17186. },
  17187. reverse: function() {
  17188. var c = f.Ty.create(this.C, 1 / this.Kz, 1 / this.Lz);
  17189. this.zb(c);
  17190. this.si(c);
  17191. return c
  17192. },
  17193. p: function() {
  17194. var c = new f.Ty;
  17195. this.zb(c);
  17196. c.f(this.C, this.Kz, this.Lz);
  17197. return c
  17198. }
  17199. });
  17200. f.Ty.create = function(c, d, e) {
  17201. return new f.Ty(c, d, e)
  17202. };
  17203. f.kD = f.M.extend({
  17204. ne: 0,
  17205. jaa: !1,
  17206. ctor: function(c, d) {
  17207. f.M.prototype.ctor.call(this);
  17208. void 0 !== d && this.f(c, d)
  17209. },
  17210. f: function(c, d) {
  17211. return f.M.prototype.f.call(this, c) ? (this.ne = d, !0) : !1
  17212. },
  17213. p: function() {
  17214. var c = new f.kD;
  17215. this.zb(c);
  17216. c.f(this.C, this.ne);
  17217. return c
  17218. },
  17219. update: function(c) {
  17220. c = this.Eg(c);
  17221. if (this.target && !this.gk()) {
  17222. var d = 1 / this.ne;
  17223. this.target.visible = c % d > d / 2
  17224. }
  17225. },
  17226. R: function(c) {
  17227. f.M.prototype.R.call(this, c);
  17228. this.jaa = c.visible
  17229. },
  17230. stop: function() {
  17231. this.target.visible = this.jaa;
  17232. f.M.prototype.stop.call(this)
  17233. },
  17234. reverse: function() {
  17235. var c =
  17236. f.kD.create(this.C, this.ne);
  17237. this.zb(c);
  17238. this.si(c);
  17239. return c
  17240. }
  17241. });
  17242. f.kD.create = function(c, d) {
  17243. var e = new f.kD;
  17244. e.f(c, d);
  17245. return e
  17246. };
  17247. f.Xc = f.M.extend({
  17248. bB: 0,
  17249. hM: 0,
  17250. ctor: function(c, d) {
  17251. f.M.prototype.ctor.call(this);
  17252. void 0 !== d && this.f(c, d)
  17253. },
  17254. f: function(c, d) {
  17255. return f.M.prototype.f.call(this, c) ? (this.bB = d, !0) : !1
  17256. },
  17257. p: function() {
  17258. var c = new f.Xc;
  17259. this.zb(c);
  17260. c.f(this.C, this.bB);
  17261. return c
  17262. },
  17263. update: function(c) {
  17264. c = this.Eg(c);
  17265. if (this.target.wb) {
  17266. var d = void 0 !== this.hM ? this.hM : 255;
  17267. this.target.opacity = d + (this.bB - d) * c
  17268. }
  17269. },
  17270. R: function(c) {
  17271. f.M.prototype.R.call(this, c);
  17272. this.target.wb && (this.hM = c.opacity)
  17273. }
  17274. });
  17275. f.Xc.create = function(c, d) {
  17276. return new f.Xc(c, d)
  17277. };
  17278. f.Fy = f.Xc.extend({
  17279. YX: null,
  17280. reverse: function() {
  17281. var c = new f.Gy;
  17282. c.f(this.C, 0);
  17283. this.zb(c);
  17284. this.si(c);
  17285. return c
  17286. },
  17287. p: function() {
  17288. var c = new f.Fy;
  17289. this.zb(c);
  17290. c.f(this.C, this.bB);
  17291. return c
  17292. },
  17293. R: function(c) {
  17294. this.YX && (this.bB = this.YX.hM);
  17295. f.Xc.prototype.R.call(this, c)
  17296. }
  17297. });
  17298. f.Fy.create = function(c) {
  17299. return new f.Fy(c, 255)
  17300. };
  17301. f.Gy = f.Xc.extend({
  17302. reverse: function() {
  17303. var c = new f.Fy;
  17304. c.YX = this;
  17305. c.f(this.C, 255);
  17306. this.zb(c);
  17307. this.si(c);
  17308. return c
  17309. },
  17310. p: function() {
  17311. var c = new f.Gy;
  17312. this.zb(c);
  17313. c.f(this.C, this.bB);
  17314. return c
  17315. }
  17316. });
  17317. f.Gy.create = function(c) {
  17318. var d = new f.Gy;
  17319. d.f(c, 0);
  17320. return d
  17321. };
  17322. f.Vy = f.M.extend({
  17323. Nf: null,
  17324. Tc: null,
  17325. ctor: function(c, d, e, g) {
  17326. f.M.prototype.ctor.call(this);
  17327. this.Nf = f.color(0, 0, 0);
  17328. this.Tc = f.color(0, 0, 0);
  17329. void 0 !== g && this.f(c, d, e, g)
  17330. },
  17331. f: function(c, d, e, g) {
  17332. return f.M.prototype.f.call(this, c) ? (this.Nf = f.color(d, e, g), !0) : !1
  17333. },
  17334. p: function() {
  17335. var c = new f.Vy;
  17336. this.zb(c);
  17337. var d = this.Nf;
  17338. c.f(this.C, d.r, d.g, d.b);
  17339. return c
  17340. },
  17341. R: function(c) {
  17342. f.M.prototype.R.call(this, c);
  17343. this.target.wb && (this.Tc = this.target.color)
  17344. },
  17345. update: function(c) {
  17346. c = this.Eg(c);
  17347. var d = this.Tc,
  17348. e = this.Nf;
  17349. d && this.target.wb && (this.target.color =
  17350. f.color(d.r + (e.r - d.r) * c, d.g + (e.g - d.g) * c, d.b + (e.b - d.b) * c))
  17351. }
  17352. });
  17353. f.Vy.create = function(c, d, e, g) {
  17354. return new f.Vy(c, d, e, g)
  17355. };
  17356. f.tE = f.M.extend({
  17357. GL: 0,
  17358. FL: 0,
  17359. EL: 0,
  17360. g$: 0,
  17361. f$: 0,
  17362. e$: 0,
  17363. ctor: function(c, d, e, g) {
  17364. f.M.prototype.ctor.call(this);
  17365. void 0 !== g && this.f(c, d, e, g)
  17366. },
  17367. f: function(c, d, e, g) {
  17368. return f.M.prototype.f.call(this, c) ? (this.GL = d, this.FL = e, this.EL = g, !0) : !1
  17369. },
  17370. p: function() {
  17371. var c = new f.tE;
  17372. this.zb(c);
  17373. c.f(this.C, this.GL, this.FL, this.EL);
  17374. return c
  17375. },
  17376. R: function(c) {
  17377. f.M.prototype.R.call(this, c);
  17378. c.wb && (c = c.color, this.g$ = c.r, this.f$ = c.g, this.e$ = c.b)
  17379. },
  17380. update: function(c) {
  17381. c = this.Eg(c);
  17382. this.target.wb && (this.target.color = f.color(this.g$ + this.GL * c, this.f$ +
  17383. this.FL * c, this.e$ + this.EL * c))
  17384. },
  17385. reverse: function() {
  17386. var c = f.tE.create(this.C, -this.GL, -this.FL, -this.EL);
  17387. this.zb(c);
  17388. this.si(c);
  17389. return c
  17390. }
  17391. });
  17392. f.tE.create = function(c, d, e, g) {
  17393. return new f.tE(c, d, e, g)
  17394. };
  17395. f.Nb = f.M.extend({
  17396. update: function() {},
  17397. reverse: function() {
  17398. var c = f.Nb.create(this.C);
  17399. this.zb(c);
  17400. this.si(c);
  17401. return c
  17402. },
  17403. p: function() {
  17404. var c = new f.Nb;
  17405. this.zb(c);
  17406. c.f(this.C);
  17407. return c
  17408. }
  17409. });
  17410. f.Nb.create = function(c) {
  17411. return new f.Nb(c)
  17412. };
  17413. f.ov = f.M.extend({
  17414. ir: null,
  17415. ctor: function(c) {
  17416. f.M.prototype.ctor.call(this);
  17417. this.ir = null;
  17418. c && this.Fa(c)
  17419. },
  17420. Fa: function(c) {
  17421. if (!c) throw "cc.ReverseTime.initWithAction(): action must be non null";
  17422. if (c == this.ir) throw "cc.ReverseTime.initWithAction(): the action was already passed in.";
  17423. return f.M.prototype.f.call(this, c.C) ? (this.ir = c, !0) : !1
  17424. },
  17425. p: function() {
  17426. var c = new f.ov;
  17427. this.zb(c);
  17428. c.Fa(this.ir.p());
  17429. return c
  17430. },
  17431. R: function(c) {
  17432. f.M.prototype.R.call(this, c);
  17433. this.ir.R(c)
  17434. },
  17435. update: function(c) {
  17436. c = this.Eg(c);
  17437. this.ir && this.ir.update(1 -
  17438. c)
  17439. },
  17440. reverse: function() {
  17441. return this.ir.p()
  17442. },
  17443. stop: function() {
  17444. this.ir.stop();
  17445. f.Ag.prototype.stop.call(this)
  17446. }
  17447. });
  17448. f.ov.create = function(c) {
  17449. return new f.ov(c)
  17450. };
  17451. f.gD = f.M.extend({
  17452. Ls: null,
  17453. QF: 0,
  17454. pX: null,
  17455. ZL: 0,
  17456. AY: null,
  17457. ctor: function(c) {
  17458. f.M.prototype.ctor.call(this);
  17459. this.AY = [];
  17460. c && this.wea(c)
  17461. },
  17462. cl: function() {
  17463. return this.Ls
  17464. },
  17465. Xx: function(c) {
  17466. this.Ls = c
  17467. },
  17468. wea: function(c) {
  17469. if (!c) throw "cc.Animate.initWithAnimation(): animation must be non-NULL";
  17470. var d = c.pu();
  17471. if (this.f(d * c.br)) {
  17472. this.QF = 0;
  17473. this.Xx(c);
  17474. this.pX = null;
  17475. this.ZL = 0;
  17476. var e = this.AY,
  17477. g = e.length = 0,
  17478. h = d / c.sp;
  17479. c = c.Ph;
  17480. f.mB(c, f.El);
  17481. for (var k = 0; k < c.length; k++) {
  17482. var m = g * h / d,
  17483. g = g + c[k].Nh;
  17484. e.push(m)
  17485. }
  17486. return !0
  17487. }
  17488. return !1
  17489. },
  17490. p: function() {
  17491. var c =
  17492. new f.gD;
  17493. this.zb(c);
  17494. c.wea(this.Ls.p());
  17495. return c
  17496. },
  17497. R: function(c) {
  17498. f.M.prototype.R.call(this, c);
  17499. this.Ls.yw && (this.pX = c.Wxa());
  17500. this.ZL = this.QF = 0
  17501. },
  17502. update: function(c) {
  17503. c = this.Eg(c);
  17504. 1 > c && (c *= this.Ls.br, (0 | c) > this.ZL && (this.QF = 0, this.ZL++), c %= 1);
  17505. for (var d = this.Ls.Ph, e = d.length, g = this.AY, h = this.QF; h < e; h++)
  17506. if (g[h] <= c) this.target.Dd(d[h].Ca()), this.QF = h + 1;
  17507. else break
  17508. },
  17509. reverse: function() {
  17510. var c = this.Ls,
  17511. d = c.Ph,
  17512. e = [];
  17513. f.mB(d, f.El);
  17514. if (0 < d.length)
  17515. for (var g = d.length - 1; 0 <= g; g--) {
  17516. var h = d[g];
  17517. if (!h) break;
  17518. e.push(h.p())
  17519. }
  17520. d = f.Yu.create(e,
  17521. c.Nh, c.br);
  17522. d.uR(c.yw);
  17523. c = f.gD.create(d);
  17524. this.zb(c);
  17525. this.si(c);
  17526. return c
  17527. },
  17528. stop: function() {
  17529. this.Ls.yw && this.target && this.target.Dd(this.pX);
  17530. f.Ag.prototype.stop.call(this)
  17531. }
  17532. });
  17533. f.gD.create = function(c) {
  17534. return new f.gD(c)
  17535. };
  17536. f.FK = f.M.extend({
  17537. Qe: null,
  17538. Pz: null,
  17539. ctor: function(c, d) {
  17540. f.M.prototype.ctor.call(this);
  17541. d && this.YB(c, d)
  17542. },
  17543. YB: function(c, d) {
  17544. return this.f(d.C) ? (this.Pz = c, this.Qe = d, !0) : !1
  17545. },
  17546. p: function() {
  17547. var c = new f.FK;
  17548. this.zb(c);
  17549. c.YB(this.Pz, this.Qe.p());
  17550. return c
  17551. },
  17552. R: function(c) {
  17553. f.M.prototype.R.call(this, c);
  17554. this.Qe.R(this.Pz)
  17555. },
  17556. stop: function() {
  17557. this.Qe.stop()
  17558. },
  17559. update: function(c) {
  17560. c = this.Eg(c);
  17561. this.Qe.update(c)
  17562. },
  17563. YTa: function() {
  17564. return this.Pz
  17565. },
  17566. i3a: function(c) {
  17567. this.Pz != c && (this.Pz = c)
  17568. }
  17569. });
  17570. f.FK.create = function(c, d) {
  17571. return new f.FK(c, d)
  17572. };
  17573. f.Ch = f.lq.extend({
  17574. gk: function() {
  17575. return !0
  17576. },
  17577. step: function() {
  17578. this.update(1)
  17579. },
  17580. update: function() {},
  17581. reverse: function() {
  17582. return this.p()
  17583. },
  17584. p: function() {
  17585. return new f.Ch
  17586. }
  17587. });
  17588. f.Ej = f.Ch.extend({
  17589. update: function() {
  17590. this.target.visible = !0
  17591. },
  17592. reverse: function() {
  17593. return f.Hl.create()
  17594. },
  17595. p: function() {
  17596. return new f.Ej
  17597. }
  17598. });
  17599. f.Ej.create = function() {
  17600. return new f.Ej
  17601. };
  17602. f.Hl = f.Ch.extend({
  17603. update: function() {
  17604. this.target.visible = !1
  17605. },
  17606. reverse: function() {
  17607. return f.Ej.create()
  17608. },
  17609. p: function() {
  17610. return new f.Hl
  17611. }
  17612. });
  17613. f.Hl.create = function() {
  17614. return new f.Hl
  17615. };
  17616. f.uE = f.Ch.extend({
  17617. update: function() {
  17618. this.target.visible = !this.target.visible
  17619. },
  17620. reverse: function() {
  17621. return new f.uE
  17622. },
  17623. p: function() {
  17624. return new f.uE
  17625. }
  17626. });
  17627. f.uE.create = function() {
  17628. return new f.uE
  17629. };
  17630. f.fE = f.Ch.extend({
  17631. zM: !0,
  17632. ctor: function(c) {
  17633. f.lq.prototype.ctor.call(this);
  17634. void 0 !== c && this.j(c)
  17635. },
  17636. update: function() {
  17637. this.target.Yp(this.zM)
  17638. },
  17639. j: function(c) {
  17640. this.zM = c;
  17641. return !0
  17642. },
  17643. reverse: function() {
  17644. return new f.fE(this.zM)
  17645. },
  17646. p: function() {
  17647. return new f.fE(this.zM)
  17648. }
  17649. });
  17650. f.fE.create = function(c) {
  17651. return new f.fE(c)
  17652. };
  17653. f.YD = f.Ch.extend({
  17654. Fb: !1,
  17655. ctor: function(c) {
  17656. f.lq.prototype.ctor.call(this);
  17657. this.Fb = !1;
  17658. void 0 !== c && this.zea(c)
  17659. },
  17660. zea: function(c) {
  17661. this.Fb = c;
  17662. return !0
  17663. },
  17664. update: function() {
  17665. this.target.flippedX = this.Fb
  17666. },
  17667. reverse: function() {
  17668. return f.YD.create(!this.Fb)
  17669. },
  17670. p: function() {
  17671. var c = new f.YD;
  17672. c.zea(this.Fb);
  17673. return c
  17674. }
  17675. });
  17676. f.YD.create = function(c) {
  17677. return new f.YD(c)
  17678. };
  17679. f.ZD = f.Ch.extend({
  17680. Hb: !1,
  17681. ctor: function(c) {
  17682. f.lq.prototype.ctor.call(this);
  17683. this.Hb = !1;
  17684. void 0 !== c && this.Aea(c)
  17685. },
  17686. Aea: function(c) {
  17687. this.Hb = c;
  17688. return !0
  17689. },
  17690. update: function() {
  17691. this.target.flippedY = this.Hb
  17692. },
  17693. reverse: function() {
  17694. return f.ZD.create(!this.Hb)
  17695. },
  17696. p: function() {
  17697. var c = new f.ZD;
  17698. c.Aea(this.Hb);
  17699. return c
  17700. }
  17701. });
  17702. f.ZD.create = function(c) {
  17703. return new f.ZD(c)
  17704. };
  17705. f.nK = f.Ch.extend({
  17706. Nn: 0,
  17707. hj: 0,
  17708. ctor: function(c, d) {
  17709. f.lq.prototype.ctor.call(this);
  17710. this.hj = this.Nn = 0;
  17711. void 0 !== c && (void 0 !== c.x && (d = c.y, c = c.x), this.Eea(c, d))
  17712. },
  17713. Eea: function(c, d) {
  17714. this.Nn = c;
  17715. this.hj = d;
  17716. return !0
  17717. },
  17718. update: function() {
  17719. this.target.o(this.Nn, this.hj)
  17720. },
  17721. p: function() {
  17722. var c = new f.nK;
  17723. c.Eea(this.Nn, this.hj);
  17724. return c
  17725. }
  17726. });
  17727. f.nK.create = function(c, d) {
  17728. return new f.nK(c, d)
  17729. };
  17730. f.ua = f.Ch.extend({
  17731. jm: null,
  17732. Rs: null,
  17733. sF: null,
  17734. Mh: null,
  17735. ctor: function(c, d, e) {
  17736. f.lq.prototype.ctor.call(this);
  17737. void 0 !== c && (void 0 === d ? this.MP(c) : this.MP(c, d, e))
  17738. },
  17739. MP: function(c, d, e) {
  17740. d ? (this.Mh = e, this.Rs = c, this.jm = d) : c && (this.sF = c);
  17741. return !0
  17742. },
  17743. execute: function() {
  17744. null != this.Rs ? this.Rs.call(this.jm, this.target, this.Mh) : this.sF && this.sF.call(null, this.target)
  17745. },
  17746. update: function() {
  17747. this.execute()
  17748. },
  17749. eWa: function() {
  17750. return this.jm
  17751. },
  17752. r4a: function(c) {
  17753. c != this.jm && (this.jm && (this.jm = null), this.jm = c)
  17754. },
  17755. p: function() {
  17756. var c = new f.ua;
  17757. this.jm ? c.MP(this.Rs, this.jm, this.Mh) : this.sF && c.MP(this.sF);
  17758. return c
  17759. }
  17760. });
  17761. f.ua.create = function(c, d, e) {
  17762. return new f.ua(c, d, e)
  17763. };
  17764. f.RR = f.M.extend({
  17765. mV: 0,
  17766. nV: 0,
  17767. oV: 0,
  17768. U9: 0,
  17769. V9: 0,
  17770. W9: 0,
  17771. yba: 0,
  17772. zba: 0,
  17773. Aba: 0,
  17774. ctor: function() {
  17775. f.M.prototype.ctor.call(this);
  17776. this.Aba = this.zba = this.yba = this.W9 = this.V9 = this.U9 = this.oV = this.nV = this.mV = 0
  17777. },
  17778. R: function(c) {
  17779. f.M.prototype.R.call(this, c);
  17780. c = c.yx();
  17781. var d = c.rda();
  17782. this.mV = d.x;
  17783. this.nV = d.y;
  17784. this.oV = d.z;
  17785. d = c.Bda();
  17786. this.U9 = d.x;
  17787. this.V9 = d.y;
  17788. this.W9 = d.z;
  17789. c = c.IBa();
  17790. this.yba = c.x;
  17791. this.zba = c.y;
  17792. this.Aba = c.z
  17793. },
  17794. p: function() {
  17795. return new f.RR
  17796. },
  17797. reverse: function() {
  17798. return f.ov.create(this)
  17799. }
  17800. });
  17801. f.di = f.RR.extend({
  17802. Zi: 0,
  17803. IV: 0,
  17804. DE: 0,
  17805. h9: 0,
  17806. bn: 0,
  17807. g9: 0,
  17808. xaa: 0,
  17809. vaa: 0,
  17810. waa: 0,
  17811. uaa: 0,
  17812. ctor: function(c, d, e, g, h, k, m) {
  17813. f.RR.prototype.ctor.call(this);
  17814. void 0 !== m && this.f(c, d, e, g, h, k, m)
  17815. },
  17816. f: function(c, d, e, g, h, k, m) {
  17817. return f.M.prototype.f.call(this, c) ? (this.Zi = d, this.IV = e, this.DE = g, this.h9 = h, this.bn = k, this.g9 = m, this.vaa = f.sg(h), this.uaa = f.sg(m), !0) : !1
  17818. },
  17819. hIa: function() {
  17820. var c = this.target.yx(),
  17821. d = c.Bda(),
  17822. e = c.rda(),
  17823. c = d.x - e.x,
  17824. g = d.y - e.y,
  17825. d = d.z - e.z,
  17826. e = Math.sqrt(Math.pow(c, 2) + Math.pow(g, 2) + Math.pow(d, 2)),
  17827. h = Math.sqrt(Math.pow(c, 2) +
  17828. Math.pow(g, 2));
  17829. 0 === h && (h = f.aK);
  17830. 0 === e && (e = f.aK);
  17831. return {
  17832. WDa: e / f.rD.MH(),
  17833. sJa: Math.acos(d / e),
  17834. azimuth: 0 > c ? Math.PI - Math.asin(g / h) : Math.asin(g / h)
  17835. }
  17836. },
  17837. R: function(c) {
  17838. f.M.prototype.R.call(this, c);
  17839. c = this.hIa();
  17840. isNaN(this.Zi) && (this.Zi = c.WDa);
  17841. isNaN(this.DE) && (this.DE = f.yC(c.sJa));
  17842. isNaN(this.bn) && (this.bn = f.yC(c.azimuth));
  17843. this.xaa = f.sg(this.DE);
  17844. this.waa = f.sg(this.bn)
  17845. },
  17846. p: function() {
  17847. var c = new f.di;
  17848. c.f(this.C, this.Zi, this.IV, this.DE, this.h9, this.bn, this.g9);
  17849. return c
  17850. },
  17851. update: function(c) {
  17852. c = this.Eg(c);
  17853. var d = (this.Zi +
  17854. this.IV * c) * f.rD.MH(),
  17855. e = this.xaa + this.vaa * c,
  17856. g = this.waa + this.uaa * c;
  17857. c = Math.sin(e) * Math.cos(g) * d + this.mV;
  17858. g = Math.sin(e) * Math.sin(g) * d + this.nV;
  17859. d = Math.cos(e) * d + this.oV;
  17860. this.target.yx().Zga(c, g, d)
  17861. }
  17862. });
  17863. f.di.create = function(c, d, e, g, h, k, m) {
  17864. return new f.di(c, d, e, g, h, k, m)
  17865. };
  17866. f.ac = f.M.extend({
  17867. H: null,
  17868. ctor: function(c) {
  17869. f.M.prototype.ctor.call(this);
  17870. c && this.Fa(c)
  17871. },
  17872. Fa: function(c) {
  17873. if (!c) throw "cc.ActionEase.initWithAction(): action must be non nil";
  17874. return this.f(c.pu()) ? (this.H = c, !0) : !1
  17875. },
  17876. p: function() {
  17877. var c = new f.ac;
  17878. c.Fa(this.H.p());
  17879. return c
  17880. },
  17881. R: function(c) {
  17882. f.M.prototype.R.call(this, c);
  17883. this.H.R(this.target)
  17884. },
  17885. stop: function() {
  17886. this.H.stop();
  17887. f.M.prototype.stop.call(this)
  17888. },
  17889. update: function(c) {
  17890. this.H.update(c)
  17891. },
  17892. reverse: function() {
  17893. return f.ac.create(this.H.reverse())
  17894. },
  17895. c0: function() {
  17896. return this.H
  17897. }
  17898. });
  17899. f.ac.create = function(c) {
  17900. return new f.ac(c)
  17901. };
  17902. f.fv = f.ac.extend({
  17903. je: 0,
  17904. ctor: function(c, d) {
  17905. f.ac.prototype.ctor.call(this);
  17906. void 0 !== d && this.Fa(c, d)
  17907. },
  17908. a4a: function(c) {
  17909. this.je = c
  17910. },
  17911. yVa: function() {
  17912. return this.je
  17913. },
  17914. Fa: function(c, d) {
  17915. return f.ac.prototype.Fa.call(this, c) ? (this.je = d, !0) : !1
  17916. },
  17917. p: function() {
  17918. var c = new f.fv;
  17919. c.Fa(this.H.p(), this.je);
  17920. return c
  17921. },
  17922. reverse: function() {
  17923. return f.fv.create(this.H.reverse(), 1 / this.je)
  17924. }
  17925. });
  17926. f.fv.create = function(c, d) {
  17927. return new f.fv(c, d)
  17928. };
  17929. f.MD = f.fv.extend({
  17930. update: function(c) {
  17931. this.H.update(Math.pow(c, this.je))
  17932. },
  17933. reverse: function() {
  17934. return f.MD.create(this.H.reverse(), 1 / this.je)
  17935. },
  17936. p: function() {
  17937. var c = new f.MD;
  17938. c.Fa(this.H.p(), this.je);
  17939. return c
  17940. }
  17941. });
  17942. f.MD.create = function(c, d) {
  17943. return new f.MD(c, d)
  17944. };
  17945. f.Bya = function(c) {
  17946. return {
  17947. je: c,
  17948. sa: function(c) {
  17949. return Math.pow(c, this.je)
  17950. },
  17951. reverse: function() {
  17952. return f.Bya(1 / this.je)
  17953. }
  17954. }
  17955. };
  17956. f.vs = f.fv.extend({
  17957. update: function(c) {
  17958. this.H.update(Math.pow(c, 1 / this.je))
  17959. },
  17960. reverse: function() {
  17961. return f.vs.create(this.H.reverse(), 1 / this.je)
  17962. },
  17963. p: function() {
  17964. var c = new f.vs;
  17965. c.Fa(this.H.p(), this.je);
  17966. return c
  17967. }
  17968. });
  17969. f.vs.create = function(c, d) {
  17970. return new f.vs(c, d)
  17971. };
  17972. f.Dya = function(c) {
  17973. return {
  17974. je: c,
  17975. sa: function(c) {
  17976. return Math.pow(c, 1 / this.je)
  17977. },
  17978. reverse: function() {
  17979. return f.Dya(1 / this.je)
  17980. }
  17981. }
  17982. };
  17983. f.Cy = f.fv.extend({
  17984. update: function(c) {
  17985. c *= 2;
  17986. 1 > c ? this.H.update(0.5 * Math.pow(c, this.je)) : this.H.update(1 - 0.5 * Math.pow(2 - c, this.je))
  17987. },
  17988. p: function() {
  17989. var c = new f.Cy;
  17990. c.Fa(this.H.p(), this.je);
  17991. return c
  17992. },
  17993. reverse: function() {
  17994. return f.Cy.create(this.H.reverse(), this.je)
  17995. }
  17996. });
  17997. f.Cy.create = function(c, d) {
  17998. return new f.Cy(c, d)
  17999. };
  18000. f.Cya = function(c) {
  18001. return {
  18002. je: c,
  18003. sa: function(c) {
  18004. c *= 2;
  18005. return 1 > c ? 0.5 * Math.pow(c, this.je) : 1 - 0.5 * Math.pow(2 - c, this.je)
  18006. },
  18007. reverse: function() {
  18008. return f.Cya(this.je)
  18009. }
  18010. }
  18011. };
  18012. f.VJ = f.ac.extend({
  18013. update: function(c) {
  18014. this.H.update(0 === c ? 0 : Math.pow(2, 10 * (c - 1)))
  18015. },
  18016. reverse: function() {
  18017. return f.XJ.create(this.H.reverse())
  18018. },
  18019. p: function() {
  18020. var c = new f.VJ;
  18021. c.Fa(this.H.p());
  18022. return c
  18023. }
  18024. });
  18025. f.VJ.create = function(c) {
  18026. return new f.VJ(c)
  18027. };
  18028. f.D9 = {
  18029. sa: function(c) {
  18030. return 0 === c ? 0 : Math.pow(2, 10 * (c - 1))
  18031. },
  18032. reverse: function() {
  18033. return f.F9
  18034. }
  18035. };
  18036. f.yya = function() {
  18037. return f.D9
  18038. };
  18039. f.XJ = f.ac.extend({
  18040. update: function(c) {
  18041. this.H.update(1 == c ? 1 : -Math.pow(2, -10 * c) + 1)
  18042. },
  18043. reverse: function() {
  18044. return f.VJ.create(this.H.reverse())
  18045. },
  18046. p: function() {
  18047. var c = new f.XJ;
  18048. c.Fa(this.H.p());
  18049. return c
  18050. }
  18051. });
  18052. f.XJ.create = function(c) {
  18053. return new f.XJ(c)
  18054. };
  18055. f.F9 = {
  18056. sa: function(c) {
  18057. return 1 == c ? 1 : -Math.pow(2, -10 * c) + 1
  18058. },
  18059. reverse: function() {
  18060. return f.D9
  18061. }
  18062. };
  18063. f.Aya = function() {
  18064. return f.F9
  18065. };
  18066. f.WJ = f.ac.extend({
  18067. update: function(c) {
  18068. 1 != c && 0 !== c && (c *= 2, c = 1 > c ? 0.5 * Math.pow(2, 10 * (c - 1)) : 0.5 * (-Math.pow(2, -10 * (c - 1)) + 2));
  18069. this.H.update(c)
  18070. },
  18071. reverse: function() {
  18072. return f.WJ.create(this.H.reverse())
  18073. },
  18074. p: function() {
  18075. var c = new f.WJ;
  18076. c.Fa(this.H.p());
  18077. return c
  18078. }
  18079. });
  18080. f.WJ.create = function(c) {
  18081. return new f.WJ(c)
  18082. };
  18083. f.E9 = {
  18084. sa: function(c) {
  18085. return 1 !== c && 0 !== c ? (c *= 2, 1 > c ? 0.5 * Math.pow(2, 10 * (c - 1)) : 0.5 * (-Math.pow(2, -10 * (c - 1)) + 2)) : c
  18086. },
  18087. reverse: function() {
  18088. return f.E9
  18089. }
  18090. };
  18091. f.zya = function() {
  18092. return f.E9
  18093. };
  18094. f.YJ = f.ac.extend({
  18095. update: function(c) {
  18096. c = 0 === c || 1 === c ? c : -1 * Math.cos(c * Math.PI / 2) + 1;
  18097. this.H.update(c)
  18098. },
  18099. reverse: function() {
  18100. return f.$J.create(this.H.reverse())
  18101. },
  18102. p: function() {
  18103. var c = new f.YJ;
  18104. c.Fa(this.H.p());
  18105. return c
  18106. }
  18107. });
  18108. f.YJ.create = function(c) {
  18109. return new f.YJ(c)
  18110. };
  18111. f.P9 = {
  18112. sa: function(c) {
  18113. return 0 === c || 1 === c ? c : -1 * Math.cos(c * Math.PI / 2) + 1
  18114. },
  18115. reverse: function() {
  18116. return f.R9
  18117. }
  18118. };
  18119. f.Nya = function() {
  18120. return f.P9
  18121. };
  18122. f.$J = f.ac.extend({
  18123. update: function(c) {
  18124. c = 0 === c || 1 === c ? c : Math.sin(c * Math.PI / 2);
  18125. this.H.update(c)
  18126. },
  18127. reverse: function() {
  18128. return f.YJ.create(this.H.reverse())
  18129. },
  18130. p: function() {
  18131. var c = new f.$J;
  18132. c.Fa(this.H.p());
  18133. return c
  18134. }
  18135. });
  18136. f.$J.create = function(c) {
  18137. return new f.$J(c)
  18138. };
  18139. f.R9 = {
  18140. sa: function(c) {
  18141. return 0 === c || 1 == c ? c : Math.sin(c * Math.PI / 2)
  18142. },
  18143. reverse: function() {
  18144. return f.P9
  18145. }
  18146. };
  18147. f.Pya = function() {
  18148. return f.R9
  18149. };
  18150. f.ZJ = f.ac.extend({
  18151. update: function(c) {
  18152. c = 0 === c || 1 === c ? c : -0.5 * (Math.cos(Math.PI * c) - 1);
  18153. this.H.update(c)
  18154. },
  18155. p: function() {
  18156. var c = new f.ZJ;
  18157. c.Fa(this.H.p());
  18158. return c
  18159. },
  18160. reverse: function() {
  18161. return f.ZJ.create(this.H.reverse())
  18162. }
  18163. });
  18164. f.ZJ.create = function(c) {
  18165. return new f.ZJ(c)
  18166. };
  18167. f.Q9 = {
  18168. sa: function(c) {
  18169. return 0 === c || 1 === c ? c : -0.5 * (Math.cos(Math.PI * c) - 1)
  18170. },
  18171. reverse: function() {
  18172. return f.Q9
  18173. }
  18174. };
  18175. f.Oya = function() {
  18176. return f.Q9
  18177. };
  18178. f.By = f.ac.extend({
  18179. pd: 0.3,
  18180. ctor: function(c, d) {
  18181. f.ac.prototype.ctor.call(this);
  18182. c && this.Fa(c, d)
  18183. },
  18184. mVa: function() {
  18185. return this.pd
  18186. },
  18187. V3a: function(c) {
  18188. this.pd = c
  18189. },
  18190. Fa: function(c, d) {
  18191. f.ac.prototype.Fa.call(this, c);
  18192. this.pd = null == d ? 0.3 : d;
  18193. return !0
  18194. },
  18195. reverse: function() {
  18196. f.log("cc.EaseElastic.reverse(): it should be overridden in subclass.");
  18197. return null
  18198. },
  18199. p: function() {
  18200. var c = new f.By;
  18201. c.Fa(this.H.p(), this.pd);
  18202. return c
  18203. }
  18204. });
  18205. f.By.create = function(c, d) {
  18206. return new f.By(c, d)
  18207. };
  18208. f.JD = f.By.extend({
  18209. update: function(c) {
  18210. var d = 0;
  18211. 0 === c || 1 === c ? d = c : (d = this.pd / 4, c -= 1, d = -Math.pow(2, 10 * c) * Math.sin((c - d) * Math.PI * 2 / this.pd));
  18212. this.H.update(d)
  18213. },
  18214. reverse: function() {
  18215. return f.LD.create(this.H.reverse(), this.pd)
  18216. },
  18217. p: function() {
  18218. var c = new f.JD;
  18219. c.Fa(this.H.p(), this.pd);
  18220. return c
  18221. }
  18222. });
  18223. f.JD.create = function(c, d) {
  18224. return new f.JD(c, d)
  18225. };
  18226. f.B9 = {
  18227. sa: function(c) {
  18228. if (0 === c || 1 === c) return c;
  18229. c -= 1;
  18230. return -Math.pow(2, 10 * c) * Math.sin((c - 0.075) * Math.PI * 2 / 0.3)
  18231. },
  18232. reverse: function() {
  18233. return f.C9
  18234. }
  18235. };
  18236. f.Xca = function(c) {
  18237. return c && 0.3 !== c ? {
  18238. pd: c,
  18239. sa: function(c) {
  18240. if (0 === c || 1 === c) return c;
  18241. c -= 1;
  18242. return -Math.pow(2, 10 * c) * Math.sin((c - this.pd / 4) * Math.PI * 2 / this.pd)
  18243. },
  18244. reverse: function() {
  18245. return f.Zca(this.pd)
  18246. }
  18247. } : f.B9
  18248. };
  18249. f.LD = f.By.extend({
  18250. update: function(c) {
  18251. var d = 0,
  18252. d = 0 === c || 1 == c ? c : Math.pow(2, -10 * c) * Math.sin((c - this.pd / 4) * Math.PI * 2 / this.pd) + 1;
  18253. this.H.update(d)
  18254. },
  18255. reverse: function() {
  18256. return f.JD.create(this.H.reverse(), this.pd)
  18257. },
  18258. p: function() {
  18259. var c = new f.LD;
  18260. c.Fa(this.H.p(), this.pd);
  18261. return c
  18262. }
  18263. });
  18264. f.LD.create = function(c, d) {
  18265. return new f.LD(c, d)
  18266. };
  18267. f.C9 = {
  18268. sa: function(c) {
  18269. return 0 === c || 1 === c ? c : Math.pow(2, -10 * c) * Math.sin((c - 0.075) * Math.PI * 2 / 0.3) + 1
  18270. },
  18271. reverse: function() {
  18272. return f.B9
  18273. }
  18274. };
  18275. f.Zca = function(c) {
  18276. return c && 0.3 !== c ? {
  18277. pd: c,
  18278. sa: function(c) {
  18279. return 0 === c || 1 === c ? c : Math.pow(2, -10 * c) * Math.sin((c - this.pd / 4) * Math.PI * 2 / this.pd) + 1
  18280. },
  18281. reverse: function() {
  18282. return f.Xca(this.pd)
  18283. }
  18284. } : f.C9
  18285. };
  18286. f.KD = f.By.extend({
  18287. update: function(c) {
  18288. var d = 0,
  18289. d = this.pd;
  18290. if (0 === c || 1 == c) d = c;
  18291. else {
  18292. d || (d = this.pd = 0.3 * 1.5);
  18293. var e = d / 4;
  18294. c = 2 * c - 1;
  18295. d = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin((c - e) * Math.PI * 2 / d) : Math.pow(2, -10 * c) * Math.sin((c - e) * Math.PI * 2 / d) * 0.5 + 1
  18296. }
  18297. this.H.update(d)
  18298. },
  18299. reverse: function() {
  18300. return f.KD.create(this.H.reverse(), this.pd)
  18301. },
  18302. p: function() {
  18303. var c = new f.KD;
  18304. c.Fa(this.H.p(), this.pd);
  18305. return c
  18306. }
  18307. });
  18308. f.KD.create = function(c, d) {
  18309. return new f.KD(c, d)
  18310. };
  18311. f.Yca = function(c) {
  18312. return {
  18313. pd: c || 0.3,
  18314. sa: function(c) {
  18315. var e = 0,
  18316. e = this.pd;
  18317. if (0 === c || 1 === c) e = c;
  18318. else {
  18319. e || (e = this.pd = 0.3 * 1.5);
  18320. var g = e / 4;
  18321. c = 2 * c - 1;
  18322. e = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin((c - g) * Math.PI * 2 / e) : Math.pow(2, -10 * c) * Math.sin((c - g) * Math.PI * 2 / e) * 0.5 + 1
  18323. }
  18324. return e
  18325. },
  18326. reverse: function() {
  18327. return f.Yca(this.pd)
  18328. }
  18329. }
  18330. };
  18331. f.ev = f.ac.extend({
  18332. Er: function(c) {
  18333. if (c < 1 / 2.75) return 7.5625 * c * c;
  18334. if (c < 2 / 2.75) return c -= 1.5 / 2.75, 7.5625 * c * c + 0.75;
  18335. if (c < 2.5 / 2.75) return c -= 2.25 / 2.75, 7.5625 * c * c + 0.9375;
  18336. c -= 2.625 / 2.75;
  18337. return 7.5625 * c * c + 0.984375
  18338. },
  18339. p: function() {
  18340. var c = new f.ev;
  18341. c.Fa(this.H.p());
  18342. return c
  18343. },
  18344. reverse: function() {
  18345. return f.ev.create(this.H.reverse())
  18346. }
  18347. });
  18348. f.ev.create = function(c) {
  18349. return new f.ev(c)
  18350. };
  18351. f.AD = f.ev.extend({
  18352. update: function(c) {
  18353. this.H.update(1 - this.Er(1 - c))
  18354. },
  18355. reverse: function() {
  18356. return f.CD.create(this.H.reverse())
  18357. },
  18358. p: function() {
  18359. var c = new f.AD;
  18360. c.Fa(this.H.p());
  18361. return c
  18362. }
  18363. });
  18364. f.AD.create = function(c) {
  18365. return new f.AD(c)
  18366. };
  18367. f.gL = function(c) {
  18368. if (c < 1 / 2.75) return 7.5625 * c * c;
  18369. if (c < 2 / 2.75) return c -= 1.5 / 2.75, 7.5625 * c * c + 0.75;
  18370. if (c < 2.5 / 2.75) return c -= 2.25 / 2.75, 7.5625 * c * c + 0.9375;
  18371. c -= 2.625 / 2.75;
  18372. return 7.5625 * c * c + 0.984375
  18373. };
  18374. f.s9 = {
  18375. sa: function(c) {
  18376. return 1 - f.gL(1 - c)
  18377. },
  18378. reverse: function() {
  18379. return f.u9
  18380. }
  18381. };
  18382. f.pya = function() {
  18383. return f.s9
  18384. };
  18385. f.CD = f.ev.extend({
  18386. update: function(c) {
  18387. this.H.update(this.Er(c))
  18388. },
  18389. reverse: function() {
  18390. return f.AD.create(this.H.reverse())
  18391. },
  18392. p: function() {
  18393. var c = new f.CD;
  18394. c.Fa(this.H.p());
  18395. return c
  18396. }
  18397. });
  18398. f.CD.create = function(c) {
  18399. return new f.CD(c)
  18400. };
  18401. f.u9 = {
  18402. sa: function(c) {
  18403. return f.gL(c)
  18404. },
  18405. reverse: function() {
  18406. return f.s9
  18407. }
  18408. };
  18409. f.rya = function() {
  18410. return f.u9
  18411. };
  18412. f.BD = f.ev.extend({
  18413. update: function(c) {
  18414. var d = 0,
  18415. d = 0.5 > c ? 0.5 * (1 - this.Er(1 - 2 * c)) : 0.5 * this.Er(2 * c - 1) + 0.5;
  18416. this.H.update(d)
  18417. },
  18418. p: function() {
  18419. var c = new f.BD;
  18420. c.Fa(this.H.p());
  18421. return c
  18422. },
  18423. reverse: function() {
  18424. return f.BD.create(this.H.reverse())
  18425. }
  18426. });
  18427. f.BD.create = function(c) {
  18428. return new f.BD(c)
  18429. };
  18430. f.t9 = {
  18431. sa: function(c) {
  18432. return c = 0.5 > c ? 0.5 * (1 - f.gL(1 - 2 * c)) : 0.5 * f.gL(2 * c - 1) + 0.5
  18433. },
  18434. reverse: function() {
  18435. return f.t9
  18436. }
  18437. };
  18438. f.qya = function() {
  18439. return f.t9
  18440. };
  18441. f.wD = f.ac.extend({
  18442. update: function(c) {
  18443. this.H.update(0 === c || 1 == c ? c : c * c * (2.70158 * c - 1.70158))
  18444. },
  18445. reverse: function() {
  18446. return f.yD.create(this.H.reverse())
  18447. },
  18448. p: function() {
  18449. var c = new f.wD;
  18450. c.Fa(this.H.p());
  18451. return c
  18452. }
  18453. });
  18454. f.wD.create = function(c) {
  18455. return new f.wD(c)
  18456. };
  18457. f.p9 = {
  18458. sa: function(c) {
  18459. return 0 === c || 1 === c ? c : c * c * (2.70158 * c - 1.70158)
  18460. },
  18461. reverse: function() {
  18462. return f.r9
  18463. }
  18464. };
  18465. f.lya = function() {
  18466. return f.p9
  18467. };
  18468. f.yD = f.ac.extend({
  18469. update: function(c) {
  18470. c -= 1;
  18471. this.H.update(c * c * (2.70158 * c + 1.70158) + 1)
  18472. },
  18473. reverse: function() {
  18474. return f.wD.create(this.H.reverse())
  18475. },
  18476. p: function() {
  18477. var c = new f.yD;
  18478. c.Fa(this.H.p());
  18479. return c
  18480. }
  18481. });
  18482. f.yD.create = function(c) {
  18483. return new f.yD(c)
  18484. };
  18485. f.r9 = {
  18486. sa: function(c) {
  18487. c -= 1;
  18488. return c * c * (2.70158 * c + 1.70158) + 1
  18489. },
  18490. reverse: function() {
  18491. return f.p9
  18492. }
  18493. };
  18494. f.nya = function() {
  18495. return f.r9
  18496. };
  18497. f.xD = f.ac.extend({
  18498. update: function(c) {
  18499. c *= 2;
  18500. 1 > c ? this.H.update(c * c * (3.5949095 * c - 2.5949095) / 2) : (c -= 2, this.H.update(c * c * (3.5949095 * c + 2.5949095) / 2 + 1))
  18501. },
  18502. p: function() {
  18503. var c = new f.xD;
  18504. c.Fa(this.H.p());
  18505. return c
  18506. },
  18507. reverse: function() {
  18508. return f.xD.create(this.H.reverse())
  18509. }
  18510. });
  18511. f.xD.create = function(c) {
  18512. return new f.xD(c)
  18513. };
  18514. f.q9 = {
  18515. sa: function(c) {
  18516. c *= 2;
  18517. if (1 > c) return c * c * (3.5949095 * c - 2.5949095) / 2;
  18518. c -= 2;
  18519. return c * c * (3.5949095 * c + 2.5949095) / 2 + 1
  18520. },
  18521. reverse: function() {
  18522. return f.q9
  18523. }
  18524. };
  18525. f.mya = function() {
  18526. return f.q9
  18527. };
  18528. f.zD = f.ac.extend({
  18529. cN: null,
  18530. dN: null,
  18531. eN: null,
  18532. fN: null,
  18533. ctor: function(c) {
  18534. f.ac.prototype.ctor.call(this, c)
  18535. },
  18536. mb: function(c, d, e, g, h) {
  18537. return Math.pow(1 - h, 3) * c + 3 * h * Math.pow(1 - h, 2) * d + 3 * Math.pow(h, 2) * (1 - h) * e + Math.pow(h, 3) * g
  18538. },
  18539. update: function(c) {
  18540. this.H.update(this.mb(this.cN, this.dN, this.eN, this.fN, c))
  18541. },
  18542. p: function() {
  18543. var c = new f.zD;
  18544. c.Fa(this.H.p());
  18545. c.Fga(this.cN, this.dN, this.eN, this.fN);
  18546. return c
  18547. },
  18548. reverse: function() {
  18549. var c = f.zD.create(this.H.reverse());
  18550. c.Fga(this.fN, this.eN, this.dN, this.cN);
  18551. return c
  18552. },
  18553. Fga: function(c,
  18554. d, e, g) {
  18555. this.cN = c || 0;
  18556. this.dN = d || 0;
  18557. this.eN = e || 0;
  18558. this.fN = g || 0
  18559. }
  18560. });
  18561. f.zD.create = function(c) {
  18562. return new f.zD(c)
  18563. };
  18564. f.oya = function(c, d, e, g) {
  18565. return {
  18566. sa: function(h) {
  18567. return f.zD.prototype.mb(c, d, e, g, h)
  18568. },
  18569. reverse: function() {
  18570. return f.oya(g, e, d, c)
  18571. }
  18572. }
  18573. };
  18574. f.ND = f.ac.extend({
  18575. mb: function(c) {
  18576. return Math.pow(c, 2)
  18577. },
  18578. update: function(c) {
  18579. this.H.update(this.mb(c))
  18580. },
  18581. p: function() {
  18582. var c = new f.ND;
  18583. c.Fa(this.H.p());
  18584. return c
  18585. },
  18586. reverse: function() {
  18587. return f.ND.create(this.H.reverse())
  18588. }
  18589. });
  18590. f.ND.create = function(c) {
  18591. return new f.ND(c)
  18592. };
  18593. f.G9 = {
  18594. sa: f.ND.prototype.mb,
  18595. reverse: function() {
  18596. return f.G9
  18597. }
  18598. };
  18599. f.Eya = function() {
  18600. return f.G9
  18601. };
  18602. f.PD = f.ac.extend({
  18603. mb: function(c) {
  18604. return -c * (c - 2)
  18605. },
  18606. update: function(c) {
  18607. this.H.update(this.mb(c))
  18608. },
  18609. p: function() {
  18610. var c = new f.PD;
  18611. c.Fa();
  18612. return c
  18613. },
  18614. reverse: function() {
  18615. return f.PD.create(this.H.reverse())
  18616. }
  18617. });
  18618. f.PD.create = function(c) {
  18619. return new f.PD(c)
  18620. };
  18621. f.I9 = {
  18622. sa: f.PD.prototype.mb,
  18623. reverse: function() {
  18624. return f.I9
  18625. }
  18626. };
  18627. f.Gya = function() {
  18628. return f.I9
  18629. };
  18630. f.OD = f.ac.extend({
  18631. mb: function(c) {
  18632. var d = c;
  18633. c *= 2;
  18634. 1 > c ? d = c * c * 0.5 : (--c, d = -0.5 * (c * (c - 2) - 1));
  18635. return d
  18636. },
  18637. update: function(c) {
  18638. this.H.update(this.mb(c))
  18639. },
  18640. p: function() {
  18641. var c = new f.OD;
  18642. c.Fa(this.H.p());
  18643. return c
  18644. },
  18645. reverse: function() {
  18646. return f.OD.create(this.H.reverse())
  18647. }
  18648. });
  18649. f.OD.create = function(c) {
  18650. return new f.OD(c)
  18651. };
  18652. f.H9 = {
  18653. sa: f.OD.prototype.mb,
  18654. reverse: function() {
  18655. return f.H9
  18656. }
  18657. };
  18658. f.Fya = function() {
  18659. return f.H9
  18660. };
  18661. f.QD = f.ac.extend({
  18662. mb: function(c) {
  18663. return c * c * c * c
  18664. },
  18665. update: function(c) {
  18666. this.H.update(this.mb(c))
  18667. },
  18668. p: function() {
  18669. var c = new f.QD;
  18670. c.Fa(this.H.p());
  18671. return c
  18672. },
  18673. reverse: function() {
  18674. return f.QD.create(this.H.reverse())
  18675. }
  18676. });
  18677. f.QD.create = function(c) {
  18678. return new f.QD(c)
  18679. };
  18680. f.J9 = {
  18681. sa: f.QD.prototype.mb,
  18682. reverse: function() {
  18683. return f.J9
  18684. }
  18685. };
  18686. f.Hya = function() {
  18687. return f.J9
  18688. };
  18689. f.SD = f.ac.extend({
  18690. mb: function(c) {
  18691. c -= 1;
  18692. return -(c * c * c * c - 1)
  18693. },
  18694. update: function(c) {
  18695. this.H.update(this.mb(c))
  18696. },
  18697. p: function() {
  18698. var c = new f.SD;
  18699. c.Fa(this.H.p());
  18700. return c
  18701. },
  18702. reverse: function() {
  18703. return f.SD.create(this.H.reverse())
  18704. }
  18705. });
  18706. f.SD.create = function(c) {
  18707. return new f.SD(c)
  18708. };
  18709. f.L9 = {
  18710. sa: f.SD.prototype.mb,
  18711. reverse: function() {
  18712. return f.L9
  18713. }
  18714. };
  18715. f.Jya = function() {
  18716. return f.L9
  18717. };
  18718. f.RD = f.ac.extend({
  18719. mb: function(c) {
  18720. c *= 2;
  18721. if (1 > c) return 0.5 * c * c * c * c;
  18722. c -= 2;
  18723. return -0.5 * (c * c * c * c - 2)
  18724. },
  18725. update: function(c) {
  18726. this.H.update(this.mb(c))
  18727. },
  18728. p: function() {
  18729. var c = new f.RD;
  18730. c.Fa(this.H.p());
  18731. return c
  18732. },
  18733. reverse: function() {
  18734. return f.RD.create(this.H.reverse())
  18735. }
  18736. });
  18737. f.RD.create = function(c) {
  18738. return new f.RD(c)
  18739. };
  18740. f.K9 = {
  18741. sa: f.RD.prototype.mb,
  18742. reverse: function() {
  18743. return f.K9
  18744. }
  18745. };
  18746. f.Iya = function() {
  18747. return f.K9
  18748. };
  18749. f.TD = f.ac.extend({
  18750. mb: function(c) {
  18751. return c * c * c * c * c
  18752. },
  18753. update: function(c) {
  18754. this.H.update(this.mb(c))
  18755. },
  18756. p: function() {
  18757. var c = new f.TD;
  18758. c.Fa(this.H.p());
  18759. return c
  18760. },
  18761. reverse: function() {
  18762. return f.TD.create(this.H.reverse())
  18763. }
  18764. });
  18765. f.TD.create = function(c) {
  18766. return new f.TD(c)
  18767. };
  18768. f.M9 = {
  18769. sa: f.TD.prototype.mb,
  18770. reverse: function() {
  18771. return f.M9
  18772. }
  18773. };
  18774. f.Kya = function() {
  18775. return f.M9
  18776. };
  18777. f.VD = f.ac.extend({
  18778. mb: function(c) {
  18779. c -= 1;
  18780. return c * c * c * c * c + 1
  18781. },
  18782. update: function(c) {
  18783. this.H.update(this.mb(c))
  18784. },
  18785. p: function() {
  18786. var c = new f.VD;
  18787. c.Fa(this.H.p());
  18788. return c
  18789. },
  18790. reverse: function() {
  18791. return f.VD.create(this.H.reverse())
  18792. }
  18793. });
  18794. f.VD.create = function(c) {
  18795. return new f.VD(c)
  18796. };
  18797. f.O9 = {
  18798. sa: f.VD.prototype.mb,
  18799. reverse: function() {
  18800. return f.O9
  18801. }
  18802. };
  18803. f.Mya = function() {
  18804. return f.O9
  18805. };
  18806. f.UD = f.ac.extend({
  18807. mb: function(c) {
  18808. c *= 2;
  18809. if (1 > c) return 0.5 * c * c * c * c * c;
  18810. c -= 2;
  18811. return 0.5 * (c * c * c * c * c + 2)
  18812. },
  18813. update: function(c) {
  18814. this.H.update(this.mb(c))
  18815. },
  18816. p: function() {
  18817. var c = new f.UD;
  18818. c.Fa(this.H.p());
  18819. return c
  18820. },
  18821. reverse: function() {
  18822. return f.UD.create(this.H.reverse())
  18823. }
  18824. });
  18825. f.UD.create = function(c) {
  18826. return new f.UD(c)
  18827. };
  18828. f.N9 = {
  18829. sa: f.UD.prototype.mb,
  18830. reverse: function() {
  18831. return f.N9
  18832. }
  18833. };
  18834. f.Lya = function() {
  18835. return f.N9
  18836. };
  18837. f.DD = f.ac.extend({
  18838. mb: function(c) {
  18839. return -1 * (Math.sqrt(1 - c * c) - 1)
  18840. },
  18841. update: function(c) {
  18842. this.H.update(this.mb(c))
  18843. },
  18844. p: function() {
  18845. var c = new f.DD;
  18846. c.Fa(this.H.p());
  18847. return c
  18848. },
  18849. reverse: function() {
  18850. return f.DD.create(this.H.reverse())
  18851. }
  18852. });
  18853. f.DD.create = function(c) {
  18854. return new f.DD(c)
  18855. };
  18856. f.v9 = {
  18857. sa: f.DD.prototype.mb,
  18858. reverse: function() {
  18859. return f.v9
  18860. }
  18861. };
  18862. f.sya = function() {
  18863. return f.v9
  18864. };
  18865. f.FD = f.ac.extend({
  18866. mb: function(c) {
  18867. c -= 1;
  18868. return Math.sqrt(1 - c * c)
  18869. },
  18870. update: function(c) {
  18871. this.H.update(this.mb(c))
  18872. },
  18873. p: function() {
  18874. var c = new f.FD;
  18875. c.Fa(this.H.p());
  18876. return c
  18877. },
  18878. reverse: function() {
  18879. return f.FD.create(this.H.reverse())
  18880. }
  18881. });
  18882. f.FD.create = function(c) {
  18883. return new f.FD(c)
  18884. };
  18885. f.x9 = {
  18886. sa: f.FD.prototype.mb,
  18887. reverse: function() {
  18888. return f.x9
  18889. }
  18890. };
  18891. f.uya = function() {
  18892. return f.x9
  18893. };
  18894. f.ED = f.ac.extend({
  18895. mb: function(c) {
  18896. c *= 2;
  18897. if (1 > c) return -0.5 * (Math.sqrt(1 - c * c) - 1);
  18898. c -= 2;
  18899. return 0.5 * (Math.sqrt(1 - c * c) + 1)
  18900. },
  18901. update: function(c) {
  18902. this.H.update(this.mb(c))
  18903. },
  18904. p: function() {
  18905. var c = new f.ED;
  18906. c.Fa(this.H.p());
  18907. return c
  18908. },
  18909. reverse: function() {
  18910. return f.ED.create(this.H.reverse())
  18911. }
  18912. });
  18913. f.ED.create = function(c) {
  18914. return new f.ED(c)
  18915. };
  18916. f.w9 = {
  18917. sa: f.ED.prototype.mb,
  18918. reverse: function() {
  18919. return f.w9
  18920. }
  18921. };
  18922. f.tya = function() {
  18923. return f.w9
  18924. };
  18925. f.GD = f.ac.extend({
  18926. mb: function(c) {
  18927. return c * c * c
  18928. },
  18929. update: function(c) {
  18930. this.H.update(this.mb(c))
  18931. },
  18932. p: function() {
  18933. var c = new f.GD;
  18934. c.Fa(this.H.p());
  18935. return c
  18936. },
  18937. reverse: function() {
  18938. return f.GD.create(this.H.reverse())
  18939. }
  18940. });
  18941. f.GD.create = function(c) {
  18942. return new f.GD(c)
  18943. };
  18944. f.y9 = {
  18945. sa: f.GD.prototype.mb,
  18946. reverse: function() {
  18947. return f.y9
  18948. }
  18949. };
  18950. f.vya = function() {
  18951. return f.y9
  18952. };
  18953. f.ID = f.ac.extend({
  18954. mb: function(c) {
  18955. c -= 1;
  18956. return c * c * c + 1
  18957. },
  18958. update: function(c) {
  18959. this.H.update(this.mb(c))
  18960. },
  18961. p: function() {
  18962. var c = new f.ID;
  18963. c.Fa(this.H.p());
  18964. return c
  18965. },
  18966. reverse: function() {
  18967. return f.ID.create(this.H.reverse())
  18968. }
  18969. });
  18970. f.ID.create = function(c) {
  18971. return new f.ID(c)
  18972. };
  18973. f.A9 = {
  18974. sa: f.ID.prototype.mb,
  18975. reverse: function() {
  18976. return f.A9
  18977. }
  18978. };
  18979. f.xya = function() {
  18980. return f.A9
  18981. };
  18982. f.HD = f.ac.extend({
  18983. mb: function(c) {
  18984. c *= 2;
  18985. if (1 > c) return 0.5 * c * c * c;
  18986. c -= 2;
  18987. return 0.5 * (c * c * c + 2)
  18988. },
  18989. update: function(c) {
  18990. this.H.update(this.mb(c))
  18991. },
  18992. p: function() {
  18993. var c = new f.HD;
  18994. c.Fa(this.H.p());
  18995. return c
  18996. },
  18997. reverse: function() {
  18998. return f.HD.create(this.H.reverse())
  18999. }
  19000. });
  19001. f.HD.create = function(c) {
  19002. return new f.HD(c)
  19003. };
  19004. f.z9 = {
  19005. sa: f.HD.prototype.mb,
  19006. reverse: function() {
  19007. return f.z9
  19008. }
  19009. };
  19010. f.wya = function() {
  19011. return f.z9
  19012. };
  19013. f.a_ = function(c, d, e, g, h, k) {
  19014. var m = k * k,
  19015. n = m * k,
  19016. p = (1 - h) / 2;
  19017. h = p * (-n + 2 * m - k);
  19018. var s = p * (-n + m) + (2 * n - 3 * m + 1);
  19019. k = p * (n - 2 * m + k) + (-2 * n + 3 * m);
  19020. m = p * (n - m);
  19021. return r(c.x * h + d.x * s + e.x * k + g.x * m, c.y * h + d.y * s + e.y * k + g.y * m)
  19022. };
  19023. f.wga = function(c) {
  19024. for (var d = [], e = c.length - 1; 0 <= e; e--) d.push(r(c[e].x, c[e].y));
  19025. return d
  19026. };
  19027. f.OO = function(c) {
  19028. for (var d = [], e = 0; e < c.length; e++) d.push(r(c[e].x, c[e].y));
  19029. return d
  19030. };
  19031. f.tg = function(c, d) {
  19032. var e = Math.min(c.length - 1, Math.max(d, 0));
  19033. return c[e]
  19034. };
  19035. f.L1a = function(c) {
  19036. for (var d = c.length, e = 0 | d / 2, g = 0; g < e; ++g) {
  19037. var h = c[g];
  19038. c[g] = c[d - g - 1];
  19039. c[d - g - 1] = h
  19040. }
  19041. };
  19042. f.Wm = f.M.extend({
  19043. xn: null,
  19044. i9: 0,
  19045. UA: 0,
  19046. Kf: null,
  19047. w8: null,
  19048. ctor: function(c, d, e) {
  19049. f.M.prototype.ctor.call(this);
  19050. this.xn = [];
  19051. void 0 !== e && this.f(c, d, e)
  19052. },
  19053. f: function(c, d, e) {
  19054. if (!d || 0 == d.length) throw "Invalid configuration. It must at least have one control point";
  19055. return f.M.prototype.f.call(this, c) ? (this.tHa(d), this.UA = e, !0) : !1
  19056. },
  19057. p: function() {
  19058. var c = new f.Wm;
  19059. c.f(this.C, f.OO(this.xn), this.UA);
  19060. return c
  19061. },
  19062. R: function(c) {
  19063. f.M.prototype.R.call(this, c);
  19064. this.i9 = 1 / (this.xn.length - 1);
  19065. this.Kf = r(this.target.Vc(), this.target.Zd());
  19066. this.w8 = r(0, 0)
  19067. },
  19068. update: function(c) {
  19069. c = this.Eg(c);
  19070. var d, e = this.xn;
  19071. if (1 == c) d = e.length - 1, c = 1;
  19072. else {
  19073. var g = this.i9;
  19074. d = 0 | c / g;
  19075. c = (c - g * d) / g
  19076. }
  19077. d = f.a_(f.tg(e, d - 1), f.tg(e, d - 0), f.tg(e, d + 1), f.tg(e, d + 2), this.UA, c);
  19078. f.SJ && (e = this.target.Vc() - this.Kf.x, c = this.target.Zd() - this.Kf.y, 0 != e || 0 != c) && (g = this.w8, e = g.x + e, c = g.y + c, g.x = e, g.y = c, d.x += e, d.y += c);
  19079. this.Gia(d)
  19080. },
  19081. reverse: function() {
  19082. var c = f.wga(this.xn);
  19083. return f.Wm.create(this.C, c, this.UA)
  19084. },
  19085. Gia: function(c) {
  19086. this.target.o(c);
  19087. this.Kf = c
  19088. },
  19089. oVa: function() {
  19090. return this.xn
  19091. },
  19092. tHa: function(c) {
  19093. this.xn =
  19094. c
  19095. }
  19096. });
  19097. f.Wm.create = function(c, d, e) {
  19098. return new f.Wm(c, d, e)
  19099. };
  19100. f.bv = f.Wm.extend({
  19101. tf: null,
  19102. ctor: function(c, d, e) {
  19103. f.Wm.prototype.ctor.call(this);
  19104. this.tf = r(0, 0);
  19105. void 0 !== e && this.f(c, d, e)
  19106. },
  19107. R: function(c) {
  19108. f.Wm.prototype.R.call(this, c);
  19109. this.tf.x = c.Vc();
  19110. this.tf.y = c.Zd()
  19111. },
  19112. reverse: function() {
  19113. for (var c = this.xn.slice(), d, e = c[0], g = 1; g < c.length; ++g) d = c[g], c[g] = f.gc(d, e), e = d;
  19114. c = f.wga(c);
  19115. e = c[c.length - 1];
  19116. c.pop();
  19117. e.x = -e.x;
  19118. e.y = -e.y;
  19119. c.unshift(e);
  19120. for (g = 1; g < c.length; ++g) d = c[g], d.x = -d.x, d.y = -d.y, d.x += e.x, d.y += e.y, e = c[g] = d;
  19121. return f.bv.create(this.C, c, this.UA)
  19122. },
  19123. Gia: function(c) {
  19124. var d = this.tf,
  19125. e = c.x + d.x;
  19126. c = c.y + d.y;
  19127. this.Kf.x = e;
  19128. this.Kf.y = c;
  19129. this.target.o(e, c)
  19130. },
  19131. p: function() {
  19132. var c = new f.bv;
  19133. c.f(this.C, f.OO(this.xn), this.UA);
  19134. return c
  19135. }
  19136. });
  19137. f.bv.create = function(c, d, e) {
  19138. return new f.bv(c, d, e)
  19139. };
  19140. f.IJ = f.Wm.extend({
  19141. ctor: function(c, d) {
  19142. d && this.f(c, d)
  19143. },
  19144. f: function(c, d) {
  19145. return f.Wm.prototype.f.call(this, c, d, 0.5)
  19146. },
  19147. p: function() {
  19148. var c = new f.IJ;
  19149. c.f(this.C, f.OO(this.xn));
  19150. return c
  19151. }
  19152. });
  19153. f.IJ.create = function(c, d) {
  19154. return new f.IJ(c, d)
  19155. };
  19156. f.HJ = f.bv.extend({
  19157. ctor: function(c, d) {
  19158. f.bv.prototype.ctor.call(this);
  19159. d && this.f(c, d)
  19160. },
  19161. f: function(c, d) {
  19162. return f.Wm.prototype.f.call(this, c, d, 0.5)
  19163. },
  19164. p: function() {
  19165. var c = new f.HJ;
  19166. c.f(this.C, f.OO(this.xn));
  19167. return c
  19168. }
  19169. });
  19170. f.HJ.create = function(c, d) {
  19171. return new f.HJ(c, d)
  19172. };
  19173. f.LJa = f.N.extend({
  19174. D3: function() {}
  19175. });
  19176. f.Xu = f.M.extend({
  19177. key: "",
  19178. dP: 0,
  19179. lJ: 0,
  19180. xB: 0,
  19181. ctor: function(c, d, e, g) {
  19182. f.M.prototype.ctor.call(this);
  19183. this.key = "";
  19184. void 0 !== g && this.f(c, d, e, g)
  19185. },
  19186. f: function(c, d, e, g) {
  19187. return f.M.prototype.f.call(this, c) ? (this.key = d, this.lJ = g, this.dP = e, !0) : !1
  19188. },
  19189. R: function(c) {
  19190. if (!c || !c.D3) throw "cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function";
  19191. f.M.prototype.R.call(this, c);
  19192. this.xB = this.lJ - this.dP
  19193. },
  19194. update: function(c) {
  19195. this.target.D3(this.lJ - this.xB * (1 - c), this.key)
  19196. },
  19197. reverse: function() {
  19198. return f.Xu.create(this.duration,
  19199. this.key, this.lJ, this.dP)
  19200. },
  19201. p: function() {
  19202. var c = new f.Xu;
  19203. c.f(this.C, this.key, this.dP, this.lJ);
  19204. return c
  19205. }
  19206. });
  19207. f.Xu.create = function(c, d, e, g) {
  19208. var h = new f.Xu;
  19209. return h.f(c, d, e, g) ? h : null
  19210. };
  19211. f.action = f.Ag.create;
  19212. f.speed = f.lE.create;
  19213. f.ORa = f.cK.create;
  19214. f.Q_a = f.di.create;
  19215. f.cQa = f.Wm.create;
  19216. f.bQa = f.bv.create;
  19217. f.eQa = f.IJ.create;
  19218. f.dQa = f.HJ.create;
  19219. f.show = f.Ej.create;
  19220. f.YWa = f.Hl.create;
  19221. f.B5a = f.uE.create;
  19222. f.t1a = f.fE.create;
  19223. f.gda = f.YD.create;
  19224. f.hda = f.ZD.create;
  19225. f.n0a = f.nK.create;
  19226. f.YPa = f.ua.create;
  19227. f.hPa = f.M.create;
  19228. f.p2a = f.X.create;
  19229. f.repeat = f.gE.create;
  19230. f.ZFa = f.hE.create;
  19231. f.$4a = f.fe.create;
  19232. f.R1a = f.pv.create;
  19233. f.Q1a = f.Ry.create;
  19234. f.moveBy = f.vk.create;
  19235. f.moveTo = f.Dc.create;
  19236. f.Z4a = f.uq.create;
  19237. f.Y4a = f.kE.create;
  19238. f.dYa = f.xo.create;
  19239. f.eYa = f.dK.create;
  19240. f.SPa = f.qs.create;
  19241. f.TPa = f.zJ.create;
  19242. f.W1a = f.Db.create;
  19243. f.V1a = f.Ty.create;
  19244. f.blink = f.kD.create;
  19245. f.LRa = f.Xc.create;
  19246. f.JRa = f.Fy.create;
  19247. f.KRa = f.Gy.create;
  19248. f.z5a = f.Vy.create;
  19249. f.y5a = f.tE.create;
  19250. f.IQa = f.Nb.create;
  19251. f.M1a = f.ov.create;
  19252. f.KPa = f.gD.create;
  19253. f.r5a = f.FK.create;
  19254. f.iPa = f.Xu.create;
  19255. f.we = f.M.extend({
  19256. ya: null,
  19257. ctor: function(c, d) {
  19258. f.tV();
  19259. f.M.prototype.ctor.call(this);
  19260. this.ya = t(0, 0);
  19261. d && this.f(c, d)
  19262. },
  19263. p: function() {
  19264. var c = new f.we,
  19265. d = this.ya;
  19266. c.f(this.C, t(d.width, d.height));
  19267. return c
  19268. },
  19269. R: function(c) {
  19270. f.M.prototype.R.call(this, c);
  19271. var d = this.vH(),
  19272. e = this.target;
  19273. (c = e.grid) && 0 < c.np ? (d = c.$za(), c.Bi() && d.width == this.ya.width && d.height == this.ya.height && c.PQ()) : (c && c.Bi() && c.setActive(!1), e.grid = d, e.grid.setActive(!0))
  19274. },
  19275. reverse: function() {
  19276. return f.ov.create(this)
  19277. },
  19278. f: function(c, d) {
  19279. return f.M.prototype.f.call(this,
  19280. c) ? (this.ya.width = d.width, this.ya.height = d.height, !0) : !1
  19281. },
  19282. vH: function() {
  19283. f.log("cc.GridAction.getGrid(): it should be overridden in subclass.")
  19284. }
  19285. });
  19286. f.we.create = function(c, d) {
  19287. return new f.we(c, d)
  19288. };
  19289. f.Zf = f.we.extend({
  19290. vH: function() {
  19291. return f.SS.create(this.ya)
  19292. },
  19293. Oia: function(c) {
  19294. return this.target.grid.Oia(c)
  19295. },
  19296. zf: function(c) {
  19297. return this.target.grid.zf(c)
  19298. },
  19299. Ah: function(c, d) {
  19300. this.target.grid.Ah(c, d)
  19301. }
  19302. });
  19303. f.Zf.create = function(c, d) {
  19304. return new f.Zf(c, d)
  19305. };
  19306. f.Ne = f.we.extend({
  19307. uia: function(c) {
  19308. return this.target.grid.uia(c)
  19309. },
  19310. kl: function(c) {
  19311. return this.target.grid.kl(c)
  19312. },
  19313. yj: function(c, d) {
  19314. this.target.grid.yj(c, d)
  19315. },
  19316. vH: function() {
  19317. return f.iU.create(this.ya)
  19318. }
  19319. });
  19320. f.Ne.create = function(c, d) {
  19321. return new f.Ne(c, d)
  19322. };
  19323. f.qv = f.Ch.extend({
  19324. R: function(c) {
  19325. f.Ch.prototype.R.call(this, c);
  19326. (c = this.target.grid) && c.Bi() && c.setActive(!1)
  19327. }
  19328. });
  19329. f.qv.create = function() {
  19330. return new f.qv
  19331. };
  19332. f.Y6 = f.Ch.extend({
  19333. ne: null,
  19334. ctor: function(c) {
  19335. f.Ch.prototype.ctor.call(this);
  19336. void 0 !== c && this.ECa(c)
  19337. },
  19338. ECa: function(c) {
  19339. this.ne = c;
  19340. return !0
  19341. },
  19342. R: function(c) {
  19343. f.Ch.prototype.R.call(this, c);
  19344. this.target.grid && this.target.grid.Bi() && this.target.grid.FHa(this.target.grid.np + this.ne)
  19345. }
  19346. });
  19347. f.Y6.create = function(c) {
  19348. return new f.Y6(c)
  19349. };
  19350. f.l8 = f.Zf.extend({
  19351. Zj: 0,
  19352. oc: 0,
  19353. pc: 0,
  19354. ctor: function(c, d, e, g) {
  19355. f.we.prototype.ctor.call(this);
  19356. void 0 !== g && this.f(c, d, e, g)
  19357. },
  19358. JB: function() {
  19359. return this.oc
  19360. },
  19361. DC: function(c) {
  19362. this.oc = c
  19363. },
  19364. vx: function() {
  19365. return this.pc
  19366. },
  19367. Wx: function(c) {
  19368. this.pc = c
  19369. },
  19370. f: function(c, d, e, g) {
  19371. return f.Zf.prototype.f.call(this, c, d) ? (this.Zj = e, this.oc = g, this.pc = 1, !0) : !1
  19372. },
  19373. update: function(c) {
  19374. for (var d = this.ya, e = this.oc, g = r(0, 0), h = this.pc, k = this.Zj, m = 0; m < d.width + 1; ++m)
  19375. for (var n = 0; n < d.height + 1; ++n) {
  19376. g.x = m;
  19377. g.y = n;
  19378. var p = this.zf(g);
  19379. p.z += Math.sin(Math.PI *
  19380. c * k * 2 + 0.01 * (p.y + p.x)) * e * h;
  19381. this.Ah(g, p)
  19382. }
  19383. }
  19384. });
  19385. f.l8.create = function(c, d, e, g) {
  19386. return new f.l8(c, d, e, g)
  19387. };
  19388. f.QS = f.Zf.extend({
  19389. ctor: function(c) {
  19390. void 0 !== c ? f.we.prototype.ctor.call(this, c, t(1, 1)) : f.we.prototype.ctor.call(this)
  19391. },
  19392. f: function(c) {
  19393. return f.Zf.prototype.f.call(this, c, t(1, 1))
  19394. },
  19395. Jp: function(c, d) {
  19396. return 1 != c.width || 1 != c.height ? (f.log("Grid size must be (1,1)"), !1) : f.Zf.prototype.f.call(this, d, c)
  19397. },
  19398. update: function(c) {
  19399. var d = Math.PI * c;
  19400. c = Math.sin(d);
  19401. var e = Math.cos(d / 2),
  19402. d = new f.Oe,
  19403. g = r(0, 0);
  19404. g.x = g.y = 1;
  19405. var h = this.zf(g);
  19406. g.x = g.y = 0;
  19407. var g = this.zf(g),
  19408. k = h.x,
  19409. m = g.x,
  19410. n, p;
  19411. k > m ? (h = r(0, 0), g = r(0, 1), n = r(1, 0), p = r(1, 1)) : (n = r(0,
  19412. 0), p = r(0, 1), h = r(1, 0), g = r(1, 1), k = m);
  19413. d.x = k - k * e;
  19414. d.z = Math.abs(parseFloat(k * c / 4));
  19415. c = this.zf(h);
  19416. c.x = d.x;
  19417. c.z += d.z;
  19418. this.Ah(h, c);
  19419. c = this.zf(g);
  19420. c.x = d.x;
  19421. c.z += d.z;
  19422. this.Ah(g, c);
  19423. c = this.zf(n);
  19424. c.x -= d.x;
  19425. c.z -= d.z;
  19426. this.Ah(n, c);
  19427. c = this.zf(p);
  19428. c.x -= d.x;
  19429. c.z -= d.z;
  19430. this.Ah(p, c)
  19431. }
  19432. });
  19433. f.QS.create = function(c) {
  19434. return new f.QS(c)
  19435. };
  19436. f.w5 = f.QS.extend({
  19437. ctor: function(c) {
  19438. void 0 !== c ? f.we.prototype.ctor.call(this, c, t(1, 1)) : f.we.prototype.ctor.call(this)
  19439. },
  19440. update: function(c) {
  19441. var d = Math.PI * c;
  19442. c = Math.sin(d);
  19443. var e = Math.cos(d / 2),
  19444. d = new f.Oe,
  19445. g = r(0, 0);
  19446. g.x = g.y = 1;
  19447. var h = this.zf(g);
  19448. g.x = g.y = 0;
  19449. var g = this.zf(g),
  19450. k = h.y,
  19451. m = g.y,
  19452. n, p;
  19453. k > m ? (h = r(0, 0), g = r(0, 1), n = r(1, 0), p = r(1, 1)) : (g = r(0, 0), h = r(0, 1), p = r(1, 0), n = r(1, 1), k = m);
  19454. d.y = k - k * e;
  19455. d.z = Math.abs(parseFloat(k * c) / 4);
  19456. c = this.zf(h);
  19457. c.y = d.y;
  19458. c.z += d.z;
  19459. this.Ah(h, c);
  19460. c = this.zf(g);
  19461. c.y -= d.y;
  19462. c.z -= d.z;
  19463. this.Ah(g, c);
  19464. c = this.zf(n);
  19465. c.y = d.y;
  19466. c.z += d.z;
  19467. this.Ah(n, c);
  19468. c = this.zf(p);
  19469. c.y -= d.y;
  19470. c.z -= d.z;
  19471. this.Ah(p, c)
  19472. }
  19473. });
  19474. f.w5.create = function(c) {
  19475. return new f.w5(c)
  19476. };
  19477. f.X5 = f.Zf.extend({
  19478. oa: null,
  19479. Zi: 0,
  19480. GM: 0,
  19481. Qqa: !1,
  19482. Ec: !1,
  19483. ctor: function(c, d, e, g) {
  19484. f.we.prototype.ctor.call(this);
  19485. this.oa = r(0, 0);
  19486. void 0 !== g && this.f(c, d, e, g)
  19487. },
  19488. vUa: function() {
  19489. return this.GM
  19490. },
  19491. A3a: function(c) {
  19492. this.GM = c
  19493. },
  19494. O2a: function(c) {
  19495. this.Qqa = c
  19496. },
  19497. Od: function() {
  19498. return this.oa
  19499. },
  19500. o: function(c) {
  19501. f.I1(c, this.oa) || (this.oa.x = c.x, this.oa.y = c.y, this.Ec = !0)
  19502. },
  19503. f: function(c, d, e, g) {
  19504. return f.Zf.prototype.f.call(this, c, d) ? (this.o(e), this.Zi = g, this.GM = 0.7, this.Ec = !0) : !1
  19505. },
  19506. update: function() {
  19507. if (this.Ec) {
  19508. for (var c = this.ya.width, d = this.ya.height,
  19509. e = this.Zi, g = this.GM, h = r(0, 0), k = r(0, 0), m, n, p, s = 0; s < c + 1; ++s)
  19510. for (var u = 0; u < d + 1; ++u) h.x = s, h.y = u, m = this.zf(h), k.x = this.oa.x - m.x, k.y = this.oa.y - m.y, n = f.ff(k), n < e && (n = e - n, n /= e, 0 == n && (n = 0.001), n = Math.log(n) * g, p = Math.exp(n) * e, n = f.ff(k), 0 < n && (k.x /= n, k.y /= n, k.x *= p, k.y *= p, m.z += f.ff(k) * g)), this.Ah(h, m);
  19511. this.Ec = !1
  19512. }
  19513. }
  19514. });
  19515. f.X5.create = function(c, d, e, g) {
  19516. return new f.X5(c, d, e, g)
  19517. };
  19518. f.Z6 = f.Zf.extend({
  19519. oa: null,
  19520. Zi: 0,
  19521. Zj: 0,
  19522. oc: 0,
  19523. pc: 0,
  19524. ctor: function(c, d, e, g, h, k) {
  19525. f.we.prototype.ctor.call(this);
  19526. this.oa = r(0, 0);
  19527. void 0 !== k && this.f(c, d, e, g, h, k)
  19528. },
  19529. Od: function() {
  19530. return this.oa
  19531. },
  19532. o: function(c) {
  19533. this.oa.x = c.x;
  19534. this.oa.y = c.y
  19535. },
  19536. JB: function() {
  19537. return this.oc
  19538. },
  19539. DC: function(c) {
  19540. this.oc = c
  19541. },
  19542. vx: function() {
  19543. return this.pc
  19544. },
  19545. Wx: function(c) {
  19546. this.pc = c
  19547. },
  19548. f: function(c, d, e, g, h, k) {
  19549. return f.Zf.prototype.f.call(this, c, d) ? (this.o(e), this.Zi = g, this.Zj = h, this.oc = k, this.pc = 1, !0) : !1
  19550. },
  19551. update: function(c) {
  19552. for (var d = this.ya.width,
  19553. e = this.ya.height, g = r(0, 0), h = this.Zi, k = this.Zj, m = this.oc, n = this.pc, p, s, u = r(0, 0), v = 0; v < d + 1; ++v)
  19554. for (var z = 0; z < e + 1; ++z) g.x = v, g.y = z, p = this.zf(g), u.x = this.oa.x - p.x, u.y = this.oa.y - p.y, s = f.ff(u), s < h && (s = h - s, p.z += Math.sin(c * Math.PI * k * 2 + 0.1 * s) * m * n * Math.pow(s / h, 2)), this.Ah(g, p)
  19555. }
  19556. });
  19557. f.Z6.create = function(c, d, e, g, h, k) {
  19558. return new f.Z6(c, d, e, g, h, k)
  19559. };
  19560. f.h7 = f.Zf.extend({
  19561. Gt: 0,
  19562. pG: !1,
  19563. ctor: function(c, d, e, g) {
  19564. f.we.prototype.ctor.call(this);
  19565. void 0 !== g && this.f(c, d, e, g)
  19566. },
  19567. f: function(c, d, e, g) {
  19568. return f.Zf.prototype.f.call(this, c, d) ? (this.Gt = e, this.pG = g, !0) : !1
  19569. },
  19570. update: function() {
  19571. for (var c = this.ya.width, d = this.ya.height, e = this.Gt, g = this.pG, h = r(0, 0), k, m = 0; m < c + 1; ++m)
  19572. for (var n = 0; n < d + 1; ++n) h.x = m, h.y = n, k = this.zf(h), k.x += f.jd() % (2 * e) - e, k.y += f.jd() % (2 * e) - e, g && (k.z += f.jd() % (2 * e) - e), this.Ah(h, k)
  19573. }
  19574. });
  19575. f.h7.create = function(c, d, e, g) {
  19576. return new f.h7(c, d, e, g)
  19577. };
  19578. f.Y5 = f.Zf.extend({
  19579. Zj: 0,
  19580. oc: 0,
  19581. pc: 0,
  19582. ctor: function(c, d, e, g) {
  19583. f.we.prototype.ctor.call(this);
  19584. void 0 !== g && this.f(c, d, e, g)
  19585. },
  19586. JB: function() {
  19587. return this.oc
  19588. },
  19589. DC: function(c) {
  19590. this.oc = c
  19591. },
  19592. vx: function() {
  19593. return this.pc
  19594. },
  19595. Wx: function(c) {
  19596. this.pc = c
  19597. },
  19598. f: function(c, d, e, g) {
  19599. return f.Zf.prototype.f.call(this, c, d) ? (this.Zj = e, this.oc = g, this.pc = 1, !0) : !1
  19600. },
  19601. update: function(c) {
  19602. for (var d = this.ya.width, e = this.ya.height, g = r(0, 0), h = this.Zj, k = this.oc, m = this.pc, n, p = 1; p < d; ++p)
  19603. for (var s = 1; s < e; ++s) g.x = p, g.y = s, n = this.zf(g), n.x += Math.sin(c * Math.PI *
  19604. h * 2 + 0.01 * n.x) * k * m, n.y += Math.sin(c * Math.PI * h * 2 + 0.01 * n.y) * k * m, this.Ah(g, n)
  19605. }
  19606. });
  19607. f.Y5.create = function(c, d, e, g) {
  19608. return new f.Y5(c, d, e, g)
  19609. };
  19610. f.k8 = f.Zf.extend({
  19611. Zj: 0,
  19612. oc: 0,
  19613. pc: 0,
  19614. Kba: !1,
  19615. z$: !1,
  19616. ctor: function(c, d, e, g, h, k) {
  19617. f.we.prototype.ctor.call(this);
  19618. void 0 !== k && this.f(c, d, e, g, h, k)
  19619. },
  19620. JB: function() {
  19621. return this.oc
  19622. },
  19623. DC: function(c) {
  19624. this.oc = c
  19625. },
  19626. vx: function() {
  19627. return this.pc
  19628. },
  19629. Wx: function(c) {
  19630. this.pc = c
  19631. },
  19632. f: function(c, d, e, g, h, k) {
  19633. return f.Zf.prototype.f.call(this, c, d) ? (this.Zj = e, this.oc = g, this.pc = 1, this.z$ = h, this.Kba = k, !0) : !1
  19634. },
  19635. update: function(c) {
  19636. for (var d = this.ya.width, e = this.ya.height, g = r(0, 0), h = this.Kba, k = this.z$, m = this.Zj, n = this.oc, p = this.pc, s, u = 0; u < d +
  19637. 1; ++u)
  19638. for (var v = 0; v < e + 1; ++v) g.x = u, g.y = v, s = this.zf(g), h && (s.x += Math.sin(c * Math.PI * m * 2 + 0.01 * s.y) * n * p), k && (s.y += Math.sin(c * Math.PI * m * 2 + 0.01 * s.x) * n * p), this.Ah(g, s)
  19639. }
  19640. });
  19641. f.k8.create = function(c, d, e, g, h, k) {
  19642. return new f.k8(c, d, e, g, h, k)
  19643. };
  19644. f.f8 = f.Zf.extend({
  19645. oa: null,
  19646. vba: 0,
  19647. oc: 0,
  19648. pc: 0,
  19649. ctor: function(c, d, e, g, h) {
  19650. f.we.prototype.ctor.call(this);
  19651. this.oa = r(0, 0);
  19652. void 0 !== h && this.f(c, d, e, g, h)
  19653. },
  19654. Od: function() {
  19655. return this.oa
  19656. },
  19657. o: function(c) {
  19658. this.oa.x = c.x;
  19659. this.oa.y = c.y
  19660. },
  19661. JB: function() {
  19662. return this.oc
  19663. },
  19664. DC: function(c) {
  19665. this.oc = c
  19666. },
  19667. vx: function() {
  19668. return this.pc
  19669. },
  19670. Wx: function(c) {
  19671. this.pc = c
  19672. },
  19673. f: function(c, d, e, g, h) {
  19674. return f.Zf.prototype.f.call(this, c, d) ? (this.o(e), this.vba = g, this.oc = h, this.pc = 1, !0) : !1
  19675. },
  19676. update: function(c) {
  19677. for (var d = this.oa, e = this.ya.width, g = this.ya.height,
  19678. h = r(0, 0), k = 0.1 * this.oc * this.pc, m = this.vba, n, p, s, u = r(0, 0), v = 0; v < e + 1; ++v)
  19679. for (var z = 0; z < g + 1; ++z) h.x = v, h.y = z, n = this.zf(h), u.x = v - e / 2, u.y = z - g / 2, p = f.ff(u) * Math.cos(Math.PI / 2 + c * Math.PI * m * 2) * k, s = Math.sin(p) * (n.y - d.y) + Math.cos(p) * (n.x - d.x), p = Math.cos(p) * (n.y - d.y) - Math.sin(p) * (n.x - d.x), n.x = d.x + s, n.y = d.y + p, this.Ah(h, n)
  19680. }
  19681. });
  19682. f.f8.create = function(c, d, e, g, h) {
  19683. return new f.f8(c, d, e, g, h)
  19684. };
  19685. f.i7 = f.Ne.extend({
  19686. Gt: 0,
  19687. pG: !1,
  19688. ctor: function(c, d, e, g) {
  19689. f.we.prototype.ctor.call(this);
  19690. void 0 !== g && this.f(c, d, e, g)
  19691. },
  19692. f: function(c, d, e, g) {
  19693. return f.Ne.prototype.f.call(this, c, d) ? (this.Gt = e, this.pG = g, !0) : !1
  19694. },
  19695. update: function() {
  19696. for (var c = this.ya, d = this.Gt, e = r(0, 0), g = 0; g < c.width; ++g)
  19697. for (var h = 0; h < c.height; ++h) {
  19698. e.x = g;
  19699. e.y = h;
  19700. var k = this.kl(e);
  19701. k.T.x += f.jd() % (2 * d) - d;
  19702. k.aa.x += f.jd() % (2 * d) - d;
  19703. k.Z.x += f.jd() % (2 * d) - d;
  19704. k.W.x += f.jd() % (2 * d) - d;
  19705. k.T.y += f.jd() % (2 * d) - d;
  19706. k.aa.y += f.jd() % (2 * d) - d;
  19707. k.Z.y += f.jd() % (2 * d) - d;
  19708. k.W.y += f.jd() % (2 *
  19709. d) - d;
  19710. this.pG && (k.T.z += f.jd() % (2 * d) - d, k.aa.z += f.jd() % (2 * d) - d, k.Z.z += f.jd() % (2 * d) - d, k.W.z += f.jd() % (2 * d) - d);
  19711. this.yj(e, k)
  19712. }
  19713. }
  19714. });
  19715. f.i7.create = function(c, d, e, g) {
  19716. return new f.i7(c, d, e, g)
  19717. };
  19718. f.j7 = f.Ne.extend({
  19719. Gt: 0,
  19720. oX: !1,
  19721. dba: !1,
  19722. ctor: function(c, d, e, g) {
  19723. f.we.prototype.ctor.call(this);
  19724. void 0 !== g && this.f(c, d, e, g)
  19725. },
  19726. f: function(c, d, e, g) {
  19727. return f.Ne.prototype.f.call(this, c, d) ? (this.oX = !1, this.Gt = e, this.dba = g, !0) : !1
  19728. },
  19729. update: function() {
  19730. if (!1 === this.oX) {
  19731. for (var c = this.ya, d = this.Gt, e, g = r(0, 0), h = 0; h < c.width; ++h)
  19732. for (var k = 0; k < c.height; ++k) g.x = h, g.y = k, e = this.kl(g), e.T.x += f.jd() % (2 * d) - d, e.aa.x += f.jd() % (2 * d) - d, e.Z.x += f.jd() % (2 * d) - d, e.W.x += f.jd() % (2 * d) - d, e.T.y += f.jd() % (2 * d) - d, e.aa.y += f.jd() % (2 * d) - d, e.Z.y +=
  19733. f.jd() % (2 * d) - d, e.W.y += f.jd() % (2 * d) - d, this.dba && (e.T.z += f.jd() % (2 * d) - d, e.aa.z += f.jd() % (2 * d) - d, e.Z.z += f.jd() % (2 * d) - d, e.W.z += f.jd() % (2 * d) - d), this.yj(g, e);
  19734. this.oX = !0
  19735. }
  19736. }
  19737. });
  19738. f.j7.create = function(c, d, e, g) {
  19739. return new f.j7(c, d, e, g)
  19740. };
  19741. function ia() {
  19742. this.position = r(0, 0);
  19743. this.qIa = r(0, 0);
  19744. this.xB = r(0, 0)
  19745. }
  19746. f.k7 = f.Ne.extend({
  19747. cY: 0,
  19748. wr: 0,
  19749. qp: null,
  19750. ej: null,
  19751. ctor: function(c, d, e) {
  19752. f.we.prototype.ctor.call(this);
  19753. this.qp = [];
  19754. this.ej = [];
  19755. void 0 !== e && this.f(c, d, e)
  19756. },
  19757. f: function(c, d, e) {
  19758. return f.Ne.prototype.f.call(this, c, d) ? (this.cY = e, this.qp.length = 0, this.ej.length = 0, !0) : !1
  19759. },
  19760. e3: function(c, d) {
  19761. for (var e = d - 1; 0 <= e; e--) {
  19762. var g = 0 | f.jd() % (e + 1),
  19763. h = c[e];
  19764. c[e] = c[g];
  19765. c[g] = h
  19766. }
  19767. },
  19768. a0: function(c) {
  19769. var d = this.ya,
  19770. e = c.width * d.height + c.height;
  19771. return t(this.qp[e] / d.height - c.width, this.qp[e] % d.height - c.height)
  19772. },
  19773. ZEa: function(c, d) {
  19774. var e = this.kl(c),
  19775. g = this.target.grid.q0(),
  19776. h = d.position;
  19777. e.T.x += h.x * g.x;
  19778. e.T.y += h.y * g.y;
  19779. e.aa.x += h.x * g.x;
  19780. e.aa.y += h.y * g.y;
  19781. e.Z.x += h.x * g.x;
  19782. e.Z.y += h.y * g.y;
  19783. e.W.x += h.x * g.x;
  19784. e.W.y += h.y * g.y;
  19785. this.yj(c, e)
  19786. },
  19787. R: function(c) {
  19788. f.Ne.prototype.R.call(this, c);
  19789. c = this.ya;
  19790. this.wr = c.width * c.height;
  19791. for (var d = this.qp, e = d.length = 0; e < this.wr; ++e) d[e] = e;
  19792. this.e3(d, this.wr);
  19793. for (var d = this.ej, e = d.length = 0, g = t(0, 0), h = 0; h < c.width; ++h)
  19794. for (var k = 0; k < c.height; ++k) d[e] = new ia, d[e].position = r(h, k), d[e].qIa = r(h, k), g.width = h, g.height = k, d[e].xB = this.a0(g), ++e
  19795. },
  19796. update: function(c) {
  19797. for (var d = 0, e = this.ya, g = this.ej, h, k = r(0, 0), m = 0; m < e.width; ++m)
  19798. for (var n = 0; n < e.height; ++n) k.x = m, k.y = n, h = g[d], h.position.x = h.xB.width * c, h.position.y = h.xB.height * c, this.ZEa(k, h), ++d
  19799. }
  19800. });
  19801. f.k7.create = function(c, d, e) {
  19802. return new f.k7(c, d, e)
  19803. };
  19804. f.XD = f.Ne.extend({
  19805. NR: function(c, d) {
  19806. var e = this.ya.width * d,
  19807. g = this.ya.height * d;
  19808. return 0 == e + g ? 1 : Math.pow((c.width + c.height) / (e + g), 6)
  19809. },
  19810. v3: function(c) {
  19811. this.yj(c, this.kl(c))
  19812. },
  19813. u3: function(c) {
  19814. this.yj(c, new f.oK)
  19815. },
  19816. yia: function(c, d) {
  19817. var e = this.kl(c),
  19818. g = this.target.grid.q0();
  19819. e.T.x += g.x / 2 * (1 - d);
  19820. e.T.y += g.y / 2 * (1 - d);
  19821. e.aa.x -= g.x / 2 * (1 - d);
  19822. e.aa.y += g.y / 2 * (1 - d);
  19823. e.Z.x += g.x / 2 * (1 - d);
  19824. e.Z.y -= g.y / 2 * (1 - d);
  19825. e.W.x -= g.x / 2 * (1 - d);
  19826. e.W.y -= g.y / 2 * (1 - d);
  19827. this.yj(c, e)
  19828. },
  19829. update: function(c) {
  19830. for (var d = this.ya, e = r(0, 0), g = t(0, 0), h, k = 0; k < d.width; ++k)
  19831. for (var m =
  19832. 0; m < d.height; ++m) e.x = k, e.y = m, g.width = k, g.height = m, h = this.NR(g, c), 0 == h ? this.u3(e) : 1 > h ? this.yia(e, h) : this.v3(e)
  19833. }
  19834. });
  19835. f.XD.create = function(c, d) {
  19836. return new f.XD(c, d)
  19837. };
  19838. f.OS = f.XD.extend({
  19839. NR: function(c, d) {
  19840. return 0 == c.width + c.height ? 1 : Math.pow((this.ya.width * (1 - d) + this.ya.height * (1 - d)) / (c.width + c.height), 6)
  19841. }
  19842. });
  19843. f.OS.create = function(c, d) {
  19844. return new f.OS(c, d)
  19845. };
  19846. f.bK = f.XD.extend({
  19847. NR: function(c, d) {
  19848. var e = this.ya.height * d;
  19849. return 0 == e ? 1 : Math.pow(c.height / e, 6)
  19850. },
  19851. yia: function(c, d) {
  19852. var e = this.kl(c),
  19853. g = this.target.grid.q0();
  19854. e.T.y += g.y / 2 * (1 - d);
  19855. e.aa.y += g.y / 2 * (1 - d);
  19856. e.Z.y -= g.y / 2 * (1 - d);
  19857. e.W.y -= g.y / 2 * (1 - d);
  19858. this.yj(c, e)
  19859. }
  19860. });
  19861. f.bK.create = function(c, d) {
  19862. return new f.bK(c, d)
  19863. };
  19864. f.PS = f.bK.extend({
  19865. NR: function(c, d) {
  19866. return 0 == c.height ? 1 : Math.pow(this.ya.height * (1 - d) / c.height, 6)
  19867. }
  19868. });
  19869. f.PS.create = function(c, d) {
  19870. return new f.PS(c, d)
  19871. };
  19872. f.mU = f.Ne.extend({
  19873. cY: null,
  19874. wr: 0,
  19875. qp: null,
  19876. ctor: function(c, d, e) {
  19877. f.we.prototype.ctor.call(this);
  19878. this.qp = [];
  19879. void 0 !== d && this.f(c, d, e)
  19880. },
  19881. f: function(c, d, e) {
  19882. return f.Ne.prototype.f.call(this, c, d) ? (this.cY = e || 0, this.qp.length = 0, !0) : !1
  19883. },
  19884. e3: function(c, d) {
  19885. for (var e = d - 1; 0 <= e; e--) {
  19886. var g = 0 | f.jd() % (e + 1),
  19887. h = c[e];
  19888. c[e] = c[g];
  19889. c[g] = h
  19890. }
  19891. },
  19892. v3: function(c) {
  19893. this.yj(c, this.kl(c))
  19894. },
  19895. u3: function(c) {
  19896. this.yj(c, new f.oK)
  19897. },
  19898. R: function(c) {
  19899. f.Ne.prototype.R.call(this, c);
  19900. this.wr = this.ya.width * this.ya.height;
  19901. c = this.qp;
  19902. for (var d = c.length = 0; d <
  19903. this.wr; ++d) c[d] = d;
  19904. this.e3(c, this.wr)
  19905. },
  19906. update: function(c) {
  19907. c = 0 | c * this.wr;
  19908. for (var d = this.ya, e, g = r(0, 0), h = this.qp, k = 0; k < this.wr; k++) e = h[k], g.x = 0 | e / d.height, g.y = e % (0 | d.height), k < c ? this.u3(g) : this.v3(g)
  19909. }
  19910. });
  19911. f.mU.create = function(c, d, e) {
  19912. return new f.mU(c, d, e)
  19913. };
  19914. f.m8 = f.Ne.extend({
  19915. Zj: 0,
  19916. oc: 0,
  19917. pc: 0,
  19918. ctor: function(c, d, e, g) {
  19919. f.we.prototype.ctor.call(this);
  19920. void 0 !== g && this.f(c, d, e, g)
  19921. },
  19922. JB: function() {
  19923. return this.oc
  19924. },
  19925. DC: function(c) {
  19926. this.oc = c
  19927. },
  19928. vx: function() {
  19929. return this.pc
  19930. },
  19931. Wx: function(c) {
  19932. this.pc = c
  19933. },
  19934. f: function(c, d, e, g) {
  19935. return f.Ne.prototype.f.call(this, c, d) ? (this.Zj = e, this.oc = g, this.pc = 1, !0) : !1
  19936. },
  19937. update: function(c) {
  19938. for (var d = this.ya, e = this.Zj, g = this.oc, h = this.pc, k = r(0, 0), m, n = 0; n < d.width; n++)
  19939. for (var p = 0; p < d.height; p++) k.x = n, k.y = p, m = this.kl(k), m.T.z = Math.sin(c * Math.PI * e *
  19940. 2 + 0.01 * (m.T.y + m.T.x)) * g * h, m.aa.z = m.T.z, m.Z.z = m.T.z, m.W.z = m.T.z, this.yj(k, m)
  19941. }
  19942. });
  19943. f.m8.create = function(c, d, e, g) {
  19944. return new f.m8(c, d, e, g)
  19945. };
  19946. f.G5 = f.Ne.extend({
  19947. Zq: 0,
  19948. oc: 0,
  19949. pc: 0,
  19950. ctor: function(c, d, e, g) {
  19951. f.we.prototype.ctor.call(this);
  19952. void 0 !== g && this.f(c, d, e, g)
  19953. },
  19954. JB: function() {
  19955. return this.oc
  19956. },
  19957. DC: function(c) {
  19958. this.oc = c
  19959. },
  19960. vx: function() {
  19961. return this.pc
  19962. },
  19963. Wx: function(c) {
  19964. this.pc = c
  19965. },
  19966. f: function(c, d, e, g) {
  19967. return f.Ne.prototype.f.call(this, c, d) ? (this.Zq = e, this.oc = g, this.pc = 1, !0) : !1
  19968. },
  19969. update: function(c) {
  19970. var d = Math.sin(Math.PI * c * this.Zq * 2) * this.oc * this.pc;
  19971. c = Math.sin(Math.PI * (c * this.Zq * 2 + 1)) * this.oc * this.pc;
  19972. for (var e = this.ya, g = this.target.grid, h, k = r(0, 0), m = 0; m <
  19973. e.width; m++)
  19974. for (var n = 0; n < e.height; n++) k.x = m, k.y = n, h = g.kl(k), 0 == (m + n) % 2 ? (h.T.z += d, h.aa.z += d, h.Z.z += d, h.W.z += d) : (h.T.z += c, h.aa.z += c, h.Z.z += c, h.W.z += c), g.yj(k, h)
  19975. }
  19976. });
  19977. f.G5.create = function(c, d, e, g) {
  19978. return new f.G5(c, d, e, g)
  19979. };
  19980. f.QT = f.Ne.extend({
  19981. dua: 0,
  19982. SG: null,
  19983. ctor: function(c, d) {
  19984. f.we.prototype.ctor.call(this);
  19985. void 0 !== d && this.f(c, d)
  19986. },
  19987. f: function(c, d) {
  19988. this.dua = d;
  19989. return f.Ne.prototype.f.call(this, c, t(1, d))
  19990. },
  19991. update: function(c) {
  19992. for (var d = this.ya, e = this.SG.width, g, h, k = r(0, 0), m = 0; m < d.height; ++m) k.y = m, g = this.kl(k), h = 1, 0 == m % 2 && (h = -1), g.T.x += h * e * c, g.aa.x += h * e * c, g.Z.x += h * e * c, g.W.x += h * e * c, this.yj(k, g)
  19993. },
  19994. R: function(c) {
  19995. f.Ne.prototype.R.call(this, c);
  19996. this.SG = f.Q.KH()
  19997. }
  19998. });
  19999. f.QT.create = function(c, d) {
  20000. return new f.QT(c, d)
  20001. };
  20002. f.PT = f.Ne.extend({
  20003. Pqa: 0,
  20004. SG: null,
  20005. ctor: function(c, d) {
  20006. f.we.prototype.ctor.call(this);
  20007. void 0 !== d && this.f(c, d)
  20008. },
  20009. f: function(c, d) {
  20010. this.Pqa = d;
  20011. return f.Ne.prototype.f.call(this, c, t(d, 1))
  20012. },
  20013. update: function(c) {
  20014. for (var d = this.ya.width, e = this.SG.height, g, h, k = r(0, 0), m = 0; m < d; ++m) k.x = m, g = this.kl(k), h = 1, 0 == m % 2 && (h = -1), g.T.y += h * e * c, g.aa.y += h * e * c, g.Z.y += h * e * c, g.W.y += h * e * c, this.yj(k, g)
  20015. },
  20016. R: function(c) {
  20017. f.Ne.prototype.R.call(this, c);
  20018. this.SG = f.Q.KH()
  20019. }
  20020. });
  20021. f.PT.create = function(c, d) {
  20022. return new f.PT(c, d)
  20023. };
  20024. f.lK = f.Zf.extend({
  20025. update: function(c) {
  20026. var d = Math.max(0, c - 0.25),
  20027. d = -100 - d * d * 500,
  20028. e = +Math.PI / 2 + -Math.PI / 2 * Math.sqrt(c);
  20029. c = Math.sin(e);
  20030. for (var e = Math.cos(e), g = this.ya, h = r(0, 0), k = 0; k <= g.width; ++k)
  20031. for (var m = 0; m <= g.height; ++m) {
  20032. h.x = k;
  20033. h.y = m;
  20034. var n = this.zf(h),
  20035. p = Math.sqrt(n.x * n.x + (n.y - d) * (n.y - d)),
  20036. s = p * c,
  20037. u = Math.asin(n.x / p) / c,
  20038. v = Math.cos(u);
  20039. n.x = u <= Math.PI ? s * Math.sin(u) : 0;
  20040. n.y = p + d - s * (1 - v) * c;
  20041. n.z = s * (1 - v) * e / 7;
  20042. 0.5 > n.z && (n.z = 0.5);
  20043. this.Ah(h, n)
  20044. }
  20045. }
  20046. });
  20047. f.lK.create = function(c, d) {
  20048. return new f.lK(c, d)
  20049. };
  20050. f.bc = f.ja.extend({
  20051. zc: null,
  20052. fp: 0,
  20053. le: null,
  20054. tn: null,
  20055. Bv: null,
  20056. mh: !1,
  20057. ta: "ProgressTimer",
  20058. CAa: function() {
  20059. return r(this.tn.x, this.tn.y)
  20060. },
  20061. hHa: function(c) {
  20062. this.tn = f.Gfa(c)
  20063. },
  20064. Bza: function() {
  20065. return r(this.Bv.x, this.Bv.y)
  20066. },
  20067. AGa: function(c) {
  20068. this.Bv = f.Gfa(c)
  20069. },
  20070. IH: function() {
  20071. return this.zc
  20072. },
  20073. SAa: function() {
  20074. return this.fp
  20075. },
  20076. o0: function() {
  20077. return this.le
  20078. },
  20079. tha: function(c) {
  20080. this.fp != c && (this.fp = f.Rf(c, 0, 100), this.$Y())
  20081. },
  20082. ee: function() {},
  20083. vg: function() {
  20084. return !1
  20085. },
  20086. bDa: function() {
  20087. return this.mh
  20088. },
  20089. iV: function(c) {
  20090. if (c < f.bc.o7) {
  20091. var d = f.bc.Joa;
  20092. return this.mh ? r(d >> 7 - (c << 1) & 1, d >> 7 - ((c << 1) + 1) & 1) : r(d >> (c << 1) + 1 & 1, d >> (c << 1) & 1)
  20093. }
  20094. return r(0, 0)
  20095. },
  20096. bN: null,
  20097. Gw: 270,
  20098. YV: 270,
  20099. Zi: 0,
  20100. BV: !1,
  20101. dV: null,
  20102. Og: 0,
  20103. af: null,
  20104. Yj: null,
  20105. gZ: null,
  20106. OG: !1,
  20107. ctor: null,
  20108. aF: function() {
  20109. f.ja.prototype.ctor.call(this);
  20110. this.zc = f.bc.Co;
  20111. this.fp = 0;
  20112. this.tn = r(0, 0);
  20113. this.Bv = r(0, 0);
  20114. this.mh = !1;
  20115. this.le = null;
  20116. this.bN = r(0, 0);
  20117. this.YV = this.Gw = 270;
  20118. this.Zi = 0;
  20119. this.BV = !1;
  20120. this.dV = x(0, 0, 0, 0)
  20121. },
  20122. bF: function() {
  20123. f.ja.prototype.ctor.call(this);
  20124. this.zc = f.bc.Co;
  20125. this.fp = 0;
  20126. this.tn = r(0, 0);
  20127. this.Bv = r(0, 0);
  20128. this.mh = !1;
  20129. this.le =
  20130. null;
  20131. this.gZ = f.s.createBuffer();
  20132. this.Og = 0;
  20133. this.Yj = this.af = null;
  20134. this.OG = !1
  20135. },
  20136. F: function(c) {
  20137. this.le.color = c;
  20138. this.Jd()
  20139. },
  20140. J: function(c) {
  20141. this.le.opacity = c;
  20142. this.Jd()
  20143. },
  20144. $a: function() {
  20145. return this.le.color
  20146. },
  20147. vb: function() {
  20148. return this.le.opacity
  20149. },
  20150. Kha: null,
  20151. Dua: function(c) {
  20152. this.mh !== c && (this.mh = c)
  20153. },
  20154. Eua: function(c) {
  20155. this.mh !== c && (this.mh = c, this.Yj = this.af = null, this.Og = 0)
  20156. },
  20157. xR: null,
  20158. Jua: function(c) {
  20159. this.le != c && (this.le = c, this.width = this.le.width, this.height = this.le.height)
  20160. },
  20161. Kua: function(c) {
  20162. c && this.le != c && (this.le = c, this.width =
  20163. c.width, this.height = c.height, this.af && (this.Yj = this.af = null, this.Og = 0))
  20164. },
  20165. aJ: null,
  20166. Sua: function(c) {
  20167. c !== this.zc && (this.zc = c)
  20168. },
  20169. Tua: function(c) {
  20170. c !== this.zc && (this.af && (this.Yj = this.af = null, this.Og = 0), this.zc = c)
  20171. },
  20172. I2: null,
  20173. Bua: function(c) {
  20174. this.mh !== c && (this.mh = c)
  20175. },
  20176. Cua: function(c) {
  20177. this.mh !== c && (this.mh = c, this.Yj = this.af = null, this.Og = 0)
  20178. },
  20179. ui: function(c) {
  20180. var d = this.le;
  20181. if (!d) return {
  20182. Da: 0,
  20183. ga: 0
  20184. };
  20185. var e = d.quad,
  20186. g = r(e.T.t.Da, e.T.t.ga),
  20187. e = r(e.W.t.Da, e.W.t.ga);
  20188. d.textureRectRotated && (d = c.x, c.x = c.y, c.y = d);
  20189. return {
  20190. Da: g.x * (1 -
  20191. c.x) + e.x * c.x,
  20192. ga: g.y * (1 - c.y) + e.y * c.y
  20193. }
  20194. },
  20195. wi: function(c) {
  20196. if (!this.le) return {
  20197. x: 0,
  20198. y: 0
  20199. };
  20200. var d = this.le.quad,
  20201. e = r(d.T.k.x, d.T.k.y),
  20202. d = r(d.W.k.x, d.W.k.y);
  20203. return {
  20204. x: e.x * (1 - c.x) + d.x * c.x,
  20205. y: e.y * (1 - c.y) + d.y * c.y
  20206. }
  20207. },
  20208. H0: null,
  20209. Bsa: function(c) {
  20210. this.percentage = 0;
  20211. this.anchorY = this.anchorX = 0.5;
  20212. this.zc = f.bc.Co;
  20213. this.mh = !1;
  20214. this.midPoint = r(0.5, 0.5);
  20215. this.barChangeRate = r(1, 1);
  20216. this.sprite = c;
  20217. return !0
  20218. },
  20219. Csa: function(c) {
  20220. this.percentage = 0;
  20221. this.Yj = this.af = null;
  20222. this.Og = 0;
  20223. this.anchorY = this.anchorX = 0.5;
  20224. this.zc = f.bc.Co;
  20225. this.mh = !1;
  20226. this.midPoint =
  20227. r(0.5, 0.5);
  20228. this.barChangeRate = r(1, 1);
  20229. this.sprite = c;
  20230. this.shaderProgram = f.xg.be(f.zo);
  20231. return !0
  20232. },
  20233. ma: null,
  20234. Rq: function(c) {
  20235. c = c || f.s;
  20236. var d = this.le;
  20237. d.gA && (c.globalCompositeOperation = "lighter");
  20238. var e = f.view.ka,
  20239. g = f.view.ra;
  20240. c.globalAlpha = d.kb / 255;
  20241. var h = d.Ta,
  20242. k = d.m,
  20243. m = d.od,
  20244. n = d.VV,
  20245. p = 0 | m.x,
  20246. s = -m.y - h.height,
  20247. u = d.YA;
  20248. n.width = h.width * e;
  20249. n.height = h.height * g;
  20250. c.save();
  20251. d.Fb && (p = -m.x - h.width, c.scale(-1, 1));
  20252. d.Hb && (s = m.y, c.scale(1, -1));
  20253. p *= e;
  20254. s *= g;
  20255. this.zc == f.bc.sv ? (h = this.dV, c.beginPath(), c.rect(h.x * e, h.y * g, h.width * e, h.height * g),
  20256. c.clip(), c.closePath()) : this.zc == f.bc.Co && (h = this.bN.x * e, m = this.bN.y * g, c.beginPath(), c.arc(h, m, this.Zi * g, Math.PI / 180 * this.Gw, Math.PI / 180 * this.YV, this.BV), c.lineTo(h, m), c.clip(), c.closePath());
  20257. d.fa && u.$C ? (e = d.fa.md, this.rL ? c.drawImage(e, 0, 0, u.width, u.height, p, s, n.width, n.height) : c.drawImage(e, u.x, u.y, u.width, u.height, p, s, n.width, n.height)) : 0 !== k.width && (n = this.color, c.fillStyle = "rgba(" + n.r + "," + n.g + "," + n.b + ",1)", c.fillRect(p, s, k.width * e, k.height * g));
  20258. c.restore();
  20259. f.el()
  20260. },
  20261. fn: function(c) {
  20262. c = c || f.s;
  20263. if (this.af &&
  20264. this.le) {
  20265. f.qC(this);
  20266. var d = this.le.ck();
  20267. f.Fm(d.src, d.ha);
  20268. f.wf(f.tv);
  20269. f.Ai(this.le.texture);
  20270. c.bindBuffer(c.ARRAY_BUFFER, this.gZ);
  20271. this.OG && (c.bufferData(c.ARRAY_BUFFER, this.Yj, c.DYNAMIC_DRAW), this.OG = !1);
  20272. d = f.Zg.BYTES_PER_ELEMENT;
  20273. c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, d, 0);
  20274. c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, d, 8);
  20275. c.vertexAttribPointer(f.$g, 2, c.FLOAT, !1, d, 12);
  20276. this.zc === f.bc.Co ? c.drawArrays(c.TRIANGLE_FAN, 0, this.Og) : this.zc == f.bc.sv && (this.mh ? (c.drawArrays(c.TRIANGLE_STRIP, 0, this.Og / 2), c.drawArrays(c.TRIANGLE_STRIP,
  20277. 4, this.Og / 2), f.bl++) : c.drawArrays(c.TRIANGLE_STRIP, 0, this.Og));
  20278. f.bl++
  20279. }
  20280. },
  20281. Bva: function() {
  20282. if (this.le) {
  20283. var c, d = this.tn;
  20284. c = this.fp / 100;
  20285. var e = r(d.x, 1),
  20286. g = f.nEa(e, d, 2 * f.PI * (this.mh ? c : 1 - c)),
  20287. h = 0;
  20288. if (0 == c) g = e, h = 0;
  20289. else if (1 == c) g = e, h = 4;
  20290. else {
  20291. var k = f.gv,
  20292. m = f.bc.o7;
  20293. for (c = 0; c <= m; ++c) {
  20294. var n = this.iV(c % m),
  20295. p = this.iV((c + (m - 1)) % m);
  20296. 0 == c ? p = f.Lfa(n, p, 1 - d.x) : 4 == c && (n = f.Lfa(n, p, 1 - d.x));
  20297. var s = r(0, 0);
  20298. f.z1(n, p, d, g, s) && (0 != c && 4 != c || 0 <= s.x && 1 >= s.x) && 0 <= s.y && s.y < k && (k = s.y, h = c)
  20299. }
  20300. g = f.Tp(d, f.Up(f.gc(g, d), k))
  20301. }
  20302. k = !0;
  20303. this.Og != h + 3 && (k = !1, this.Yj =
  20304. this.af = null, this.Og = 0);
  20305. if (!this.af) {
  20306. m = this.Og = h + 3;
  20307. n = f.Zg.BYTES_PER_ELEMENT;
  20308. this.Yj = new ArrayBuffer(m * n);
  20309. p = [];
  20310. for (c = 0; c < m; c++) p[c] = new f.Zg(null, null, null, this.Yj, c * n);
  20311. this.af = p;
  20312. if (!this.af) {
  20313. f.log("cc.ProgressTimer._updateRadial() : Not enough memory");
  20314. return
  20315. }
  20316. }
  20317. this.Jd();
  20318. m = this.af;
  20319. if (!k)
  20320. for (m[0].t = this.ui(d), m[0].k = this.wi(d), m[1].t = this.ui(e), m[1].k = this.wi(e), c = 0; c < h; c++) d = this.iV(c), m[c + 2].t = this.ui(d), m[c + 2].k = this.wi(d);
  20321. m[this.Og - 1].t = this.ui(g);
  20322. m[this.Og - 1].k = this.wi(g)
  20323. }
  20324. },
  20325. tva: function() {
  20326. if (this.le) {
  20327. var c,
  20328. d = this.fp / 100,
  20329. e = this.Bv,
  20330. e = f.Up(r(1 - e.x + d * e.x, 1 - e.y + d * e.y), 0.5),
  20331. d = f.gc(this.tn, e),
  20332. e = f.Tp(this.tn, e);
  20333. 0 > d.x && (e.x += -d.x, d.x = 0);
  20334. 1 < e.x && (d.x -= e.x - 1, e.x = 1);
  20335. 0 > d.y && (e.y += -d.y, d.y = 0);
  20336. 1 < e.y && (d.y -= e.y - 1, e.y = 1);
  20337. if (this.mh) {
  20338. if (!this.af) {
  20339. this.Og = 8;
  20340. var g = f.Zg.BYTES_PER_ELEMENT;
  20341. this.Yj = new ArrayBuffer(8 * g);
  20342. var h = [];
  20343. for (c = 0; 8 > c; c++) h[c] = new f.Zg(null, null, null, this.Yj, c * g);
  20344. h[0].t = this.ui(r(0, 1));
  20345. h[0].k = this.wi(r(0, 1));
  20346. h[1].t = this.ui(r(0, 0));
  20347. h[1].k = this.wi(r(0, 0));
  20348. h[6].t = this.ui(r(1, 1));
  20349. h[6].k = this.wi(r(1, 1));
  20350. h[7].t =
  20351. this.ui(r(1, 0));
  20352. h[7].k = this.wi(r(1, 0));
  20353. this.af = h
  20354. }
  20355. c = this.af;
  20356. c[2].t = this.ui(r(d.x, e.y));
  20357. c[2].k = this.wi(r(d.x, e.y));
  20358. c[3].t = this.ui(r(d.x, d.y));
  20359. c[3].k = this.wi(r(d.x, d.y));
  20360. c[4].t = this.ui(r(e.x, e.y));
  20361. c[4].k = this.wi(r(e.x, e.y));
  20362. c[5].t = this.ui(r(e.x, d.y));
  20363. c[5].k = this.wi(r(e.x, d.y))
  20364. } else {
  20365. if (!this.af)
  20366. for (this.Og = 4, g = f.Zg.BYTES_PER_ELEMENT, this.Yj = new ArrayBuffer(4 * g), this.af = [], c = 0; 4 > c; c++) this.af[c] = new f.Zg(null, null, null, this.Yj, c * g);
  20367. c = this.af;
  20368. c[0].t = this.ui(r(d.x, e.y));
  20369. c[0].k = this.wi(r(d.x, e.y));
  20370. c[1].t =
  20371. this.ui(r(d.x, d.y));
  20372. c[1].k = this.wi(r(d.x, d.y));
  20373. c[2].t = this.ui(r(e.x, e.y));
  20374. c[2].k = this.wi(r(e.x, e.y));
  20375. c[3].t = this.ui(r(e.x, d.y));
  20376. c[3].k = this.wi(r(e.x, d.y))
  20377. }
  20378. this.Jd()
  20379. }
  20380. },
  20381. Jd: function() {
  20382. if (this.le && this.af) {
  20383. for (var c = this.le.quad.Z.D, d = this.af, e = 0, g = this.Og; e < g; ++e) d[e].D = c;
  20384. this.OG = !0
  20385. }
  20386. },
  20387. $Y: null,
  20388. xva: function() {
  20389. var c = this.le,
  20390. d = c.width,
  20391. e = c.height,
  20392. g = this.tn;
  20393. if (this.zc == f.bc.Co) {
  20394. this.Zi = Math.round(Math.sqrt(d * d + e * e));
  20395. var h, k = !1,
  20396. m = this.bN;
  20397. m.x = d * g.x;
  20398. m.y = -e * g.y;
  20399. this.mh ? (h = 270, g = 270 - 3.6 * this.fp) : (g = -90, h = -90 + 3.6 *
  20400. this.fp);
  20401. c.Fb && (m.x -= 2 * d * this.tn.x, g = -g - 180, h = -h - 180, k = !k);
  20402. c.Hb && (m.y += 2 * e * this.tn.y, k = !k, g = -g, h = -h);
  20403. this.Gw = g;
  20404. this.YV = h;
  20405. this.BV = k
  20406. } else {
  20407. h = this.Bv;
  20408. m = this.fp / 100;
  20409. k = this.dV;
  20410. h = t(d * (1 - h.x), e * (1 - h.y));
  20411. var m = t((d - h.width) * m, (e - h.height) * m),
  20412. m = t(h.width + m.width, h.height + m.height),
  20413. n = r(d * g.x, e * g.y);
  20414. h = n.x - m.width / 2;
  20415. 0.5 < g.x && m.width / 2 >= d - n.x && (h = d - m.width);
  20416. d = n.y - m.height / 2;
  20417. 0.5 < g.y && m.height / 2 >= e - n.y && (d = e - m.height);
  20418. k.x = 0;
  20419. e = 1;
  20420. c.Fb && (k.x -= m.width, e = -1);
  20421. 0 < h && (k.x += h * e);
  20422. k.y = 0;
  20423. e = 1;
  20424. c.Hb && (k.y += m.height, e = -1);
  20425. 0 < d && (k.y -=
  20426. d * e);
  20427. k.width = m.width;
  20428. k.height = -m.height
  20429. }
  20430. },
  20431. yva: function() {
  20432. var c = this.zc;
  20433. c === f.bc.Co ? this.Bva() : c === f.bc.sv && this.tva();
  20434. this.OG = !0
  20435. }
  20436. });
  20437. q = f.bc.prototype;
  20438. f.K == f.na ? (q.ctor = q.bF, q.Kha = q.Eua, q.xR = q.Kua, q.aJ = q.Tua, q.I2 = q.Cua, q.H0 = q.Csa, q.ma = q.fn, q.$Y = q.yva) : (q.ctor = q.aF, q.Kha = q.Dua, q.xR = q.Jua, q.aJ = q.Sua, q.I2 = q.Bua, q.H0 = q.Bsa, q.ma = q.Rq, q.$Y = f.bc.prototype.xva);
  20439. f.d(q, "midPoint", q.CAa, q.hHa);
  20440. f.d(q, "barChangeRate", q.Bza, q.AGa);
  20441. f.d(q, "type", q.IH, q.aJ);
  20442. f.d(q, "percentage", q.SAa, q.tha);
  20443. f.d(q, "sprite", q.o0, q.xR);
  20444. f.d(q, "reverseDir", q.bDa, q.I2);
  20445. f.bc.create = function(c) {
  20446. var d = new f.bc;
  20447. return d.H0(c) ? d : null
  20448. };
  20449. f.bc.o7 = 4;
  20450. f.bc.Joa = 75;
  20451. f.bc.Co = 0;
  20452. f.bc.sv = 1;
  20453. f.tT = f.M.extend({
  20454. Nf: 0,
  20455. Tc: 0,
  20456. ctor: function(c, d) {
  20457. f.M.prototype.ctor.call(this);
  20458. this.Tc = this.Nf = 0;
  20459. void 0 !== d && this.f(c, d)
  20460. },
  20461. f: function(c, d) {
  20462. return f.M.prototype.f.call(this, c) ? (this.Nf = d, !0) : !1
  20463. },
  20464. p: function() {
  20465. var c = new f.tT;
  20466. c.f(this.C, this.Nf);
  20467. return c
  20468. },
  20469. reverse: function() {
  20470. f.log("cc.ProgressTo.reverse(): reverse hasn't been supported.");
  20471. return null
  20472. },
  20473. R: function(c) {
  20474. f.M.prototype.R.call(this, c);
  20475. this.Tc = c.percentage;
  20476. 100 == this.Tc && (this.Tc = 0)
  20477. },
  20478. update: function(c) {
  20479. this.target instanceof f.bc && (this.target.percentage =
  20480. this.Tc + (this.Nf - this.Tc) * c)
  20481. }
  20482. });
  20483. f.tT.create = function(c, d) {
  20484. return new f.tT(c, d)
  20485. };
  20486. f.eE = f.M.extend({
  20487. Nf: 0,
  20488. Tc: 0,
  20489. ctor: function(c, d, e) {
  20490. f.M.prototype.ctor.call(this);
  20491. this.Tc = this.Nf = 0;
  20492. void 0 !== e && this.f(c, d, e)
  20493. },
  20494. f: function(c, d, e) {
  20495. return f.M.prototype.f.call(this, c) ? (this.Nf = e, this.Tc = d, !0) : !1
  20496. },
  20497. p: function() {
  20498. var c = new f.eE;
  20499. c.f(this.C, this.Tc, this.Nf);
  20500. return c
  20501. },
  20502. reverse: function() {
  20503. return f.eE.create(this.C, this.Nf, this.Tc)
  20504. },
  20505. R: function(c) {
  20506. f.M.prototype.R.call(this, c)
  20507. },
  20508. update: function(c) {
  20509. this.target instanceof f.bc && (this.target.percentage = this.Tc + (this.Nf - this.Tc) * c)
  20510. }
  20511. });
  20512. f.eE.create = function(c, d, e) {
  20513. return new f.eE(c, d, e)
  20514. };
  20515. f.iE = 4208917214;
  20516. f.cNa = f.N.extend({
  20517. ak: function() {}
  20518. });
  20519. f.TMa = 0;
  20520. f.As = 1;
  20521. f.DK = 0;
  20522. f.SMa = 1;
  20523. f.xb = f.tq.extend({
  20524. lb: null,
  20525. uc: null,
  20526. C: null,
  20527. on: !1,
  20528. M$: !1,
  20529. ta: "TransitionScene",
  20530. ctor: function(c, d) {
  20531. f.tq.prototype.ctor.call(this);
  20532. void 0 !== c && void 0 !== d && this.f(c, d)
  20533. },
  20534. Vaa: function() {
  20535. this.Tu(this.Vaa);
  20536. var c = f.Q;
  20537. this.M$ = c.Jt;
  20538. c.f2(this.lb);
  20539. f.Qa.Lb(!0);
  20540. this.uc.visible = !0
  20541. },
  20542. op: function() {
  20543. this.on = !0
  20544. },
  20545. ma: function() {
  20546. this.on ? (this.uc.I(), this.lb.I()) : (this.lb.I(), this.uc.I())
  20547. },
  20548. ba: function() {
  20549. f.v.prototype.ba.call(this);
  20550. f.Qa.Lb(!1);
  20551. this.uc.uh();
  20552. this.lb.ba()
  20553. },
  20554. Ra: function() {
  20555. f.v.prototype.Ra.call(this);
  20556. f.Qa.Lb(!0);
  20557. this.uc.Ra();
  20558. this.lb.sj()
  20559. },
  20560. De: function() {
  20561. f.v.prototype.De.call(this);
  20562. this.M$ && this.uc.De()
  20563. },
  20564. f: function(c, d) {
  20565. if (!d) throw "cc.TransitionScene.initWithDuration(): Argument scene must be non-nil";
  20566. if (this.j()) {
  20567. this.C = c;
  20568. this.Wa({
  20569. x: 0,
  20570. y: 0,
  20571. anchorX: 0,
  20572. anchorY: 0
  20573. });
  20574. this.lb = d;
  20575. this.uc = f.Q.mg;
  20576. this.uc || (this.uc = f.tq.create(), this.uc.j());
  20577. if (this.lb == this.uc) throw "cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene";
  20578. this.op();
  20579. return !0
  20580. }
  20581. return !1
  20582. },
  20583. finish: function() {
  20584. this.lb.Wa({
  20585. visible: !0,
  20586. x: 0,
  20587. y: 0,
  20588. scale: 1,
  20589. rotation: 0
  20590. });
  20591. f.K === f.na && this.lb.yx().restore();
  20592. this.uc.Wa({
  20593. visible: !1,
  20594. x: 0,
  20595. y: 0,
  20596. scale: 1,
  20597. rotation: 0
  20598. });
  20599. f.K === f.na && this.uc.yx().restore();
  20600. this.Ux(this.Vaa, 0)
  20601. },
  20602. EP: function() {
  20603. this.lb.visible = !0;
  20604. this.uc.visible = !1
  20605. }
  20606. });
  20607. f.xb.create = function(c, d) {
  20608. return new f.xb(c, d)
  20609. };
  20610. f.Es = f.xb.extend({
  20611. mw: 0,
  20612. f: function(c, d, e) {
  20613. f.xb.prototype.f.call(this, c, d) && (this.mw = e);
  20614. return !0
  20615. }
  20616. });
  20617. f.Es.create = function(c, d, e) {
  20618. var g = new f.Es;
  20619. g.f(c, d, e);
  20620. return g
  20621. };
  20622. f.V7 = f.xb.extend({
  20623. ba: function() {
  20624. f.xb.prototype.ba.call(this);
  20625. this.lb.Wa({
  20626. scale: 0.001,
  20627. anchorX: 0.5,
  20628. anchorY: 0.5
  20629. });
  20630. this.uc.Wa({
  20631. scale: 1,
  20632. anchorX: 0.5,
  20633. anchorY: 0.5
  20634. });
  20635. var c = f.X.create(f.fe.create(f.Ty.create(this.C / 2, 0.001), f.Ry.create(this.C / 2, 720)), f.Nb.create(this.C / 2));
  20636. this.uc.V(c);
  20637. this.lb.V(f.X.create(c.reverse(), f.ua.create(this.finish, this)))
  20638. }
  20639. });
  20640. f.V7.create = function(c, d) {
  20641. var e = new f.V7;
  20642. return null != e && e.f(c, d) ? e : null
  20643. };
  20644. f.K7 = f.xb.extend({
  20645. ba: function() {
  20646. f.xb.prototype.ba.call(this);
  20647. var c = f.Q.Y;
  20648. this.lb.Wa({
  20649. scale: 0.5,
  20650. x: c.width,
  20651. y: 0,
  20652. anchorX: 0.5,
  20653. anchorY: 0.5
  20654. });
  20655. this.uc.anchorX = 0.5;
  20656. this.uc.anchorY = 0.5;
  20657. var d = f.xo.create(this.C / 4, r(-c.width, 0), c.width / 4, 2),
  20658. e = f.Db.create(this.C / 4, 1),
  20659. c = f.Db.create(this.C / 4, 0.5),
  20660. c = f.X.create(c, d),
  20661. d = f.X.create(d, e),
  20662. e = f.Nb.create(this.C / 2);
  20663. this.uc.V(c);
  20664. this.lb.V(f.X.create(e, d, f.ua.create(this.finish, this)))
  20665. }
  20666. });
  20667. f.K7.create = function(c, d) {
  20668. var e = new f.K7;
  20669. return null != e && e.f(c, d) ? e : null
  20670. };
  20671. f.wE = f.xb.extend({
  20672. ba: function() {
  20673. f.xb.prototype.ba.call(this);
  20674. this.Mr();
  20675. var c = this.action();
  20676. this.lb.V(f.X.create(this.ak(c), f.ua.create(this.finish, this)))
  20677. },
  20678. Mr: function() {
  20679. this.lb.o(-f.Q.Y.width, 0)
  20680. },
  20681. action: function() {
  20682. return f.Dc.create(this.C, r(0, 0))
  20683. },
  20684. ak: function(c) {
  20685. return f.vs.create(c, 2)
  20686. }
  20687. });
  20688. f.wE.create = function(c, d) {
  20689. var e = new f.wE;
  20690. return null != e && e.f(c, d) ? e : null
  20691. };
  20692. f.M7 = f.wE.extend({
  20693. Mr: function() {
  20694. this.lb.o(f.Q.Y.width, 0)
  20695. }
  20696. });
  20697. f.M7.create = function(c, d) {
  20698. var e = new f.M7;
  20699. return null != e && e.f(c, d) ? e : null
  20700. };
  20701. f.N7 = f.wE.extend({
  20702. Mr: function() {
  20703. this.lb.o(0, f.Q.Y.height)
  20704. }
  20705. });
  20706. f.N7.create = function(c, d) {
  20707. var e = new f.N7;
  20708. return null != e && e.f(c, d) ? e : null
  20709. };
  20710. f.L7 = f.wE.extend({
  20711. Mr: function() {
  20712. this.lb.o(0, -f.Q.Y.height)
  20713. }
  20714. });
  20715. f.L7.create = function(c, d) {
  20716. var e = new f.L7;
  20717. return null != e && e.f(c, d) ? e : null
  20718. };
  20719. f.ps = 0.5;
  20720. f.xE = f.xb.extend({
  20721. op: function() {
  20722. this.on = !1
  20723. },
  20724. ba: function() {
  20725. f.xb.prototype.ba.call(this);
  20726. this.Mr();
  20727. var c = this.action(),
  20728. d = this.action(),
  20729. c = this.ak(c),
  20730. d = f.X.create(this.ak(d), f.ua.create(this.finish, this));
  20731. this.lb.V(c);
  20732. this.uc.V(d)
  20733. },
  20734. Mr: function() {
  20735. this.lb.o(-f.Q.Y.width + f.ps, 0)
  20736. },
  20737. action: function() {
  20738. return f.vk.create(this.C, r(f.Q.Y.width - f.ps, 0))
  20739. },
  20740. ak: function(c) {
  20741. return f.vs.create(c, 2)
  20742. }
  20743. });
  20744. f.xE.create = function(c, d) {
  20745. var e = new f.xE;
  20746. return null != e && e.f(c, d) ? e : null
  20747. };
  20748. f.Y7 = f.xE.extend({
  20749. op: function() {
  20750. this.on = !0
  20751. },
  20752. Mr: function() {
  20753. this.lb.o(f.Q.Y.width - f.ps, 0)
  20754. },
  20755. action: function() {
  20756. return f.vk.create(this.C, r(-(f.Q.Y.width - f.ps), 0))
  20757. }
  20758. });
  20759. f.Y7.create = function(c, d) {
  20760. var e = new f.Y7;
  20761. return null != e && e.f(c, d) ? e : null
  20762. };
  20763. f.X7 = f.xE.extend({
  20764. op: function() {
  20765. this.on = !1
  20766. },
  20767. Mr: function() {
  20768. this.lb.o(0, f.Q.Y.height - f.ps)
  20769. },
  20770. action: function() {
  20771. return f.vk.create(this.C, r(0, -(f.Q.Y.height - f.ps)))
  20772. }
  20773. });
  20774. f.X7.create = function(c, d) {
  20775. var e = new f.X7;
  20776. return null != e && e.f(c, d) ? e : null
  20777. };
  20778. f.Z7 = f.xE.extend({
  20779. op: function() {
  20780. this.on = !0
  20781. },
  20782. Mr: function() {
  20783. this.lb.o(0, -(f.Q.Y.height - f.ps))
  20784. },
  20785. action: function() {
  20786. return f.vk.create(this.C, r(0, f.Q.Y.height - f.ps))
  20787. }
  20788. });
  20789. f.Z7.create = function(c, d) {
  20790. var e = new f.Z7;
  20791. return null != e && e.f(c, d) ? e : null
  20792. };
  20793. f.W7 = f.xb.extend({
  20794. ba: function() {
  20795. f.xb.prototype.ba.call(this);
  20796. this.lb.Wa({
  20797. scale: 0.001,
  20798. anchorX: 2 / 3,
  20799. anchorY: 0.5
  20800. });
  20801. this.uc.Wa({
  20802. scale: 1,
  20803. anchorX: 1 / 3,
  20804. anchorY: 0.5
  20805. });
  20806. var c = f.Db.create(this.C, 0.01),
  20807. d = f.Db.create(this.C, 1);
  20808. this.lb.V(this.ak(d));
  20809. this.uc.V(f.X.create(this.ak(c), f.ua.create(this.finish, this)))
  20810. },
  20811. ak: function(c) {
  20812. return f.vs.create(c, 2)
  20813. }
  20814. });
  20815. f.W7.create = function(c, d) {
  20816. var e = new f.W7;
  20817. return null != e && e.f(c, d) ? e : null
  20818. };
  20819. f.I7 = f.Es.extend({
  20820. ba: function() {
  20821. f.xb.prototype.ba.call(this);
  20822. var c, d;
  20823. this.lb.visible = !1;
  20824. var e;
  20825. this.mw === f.As ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90);
  20826. c = f.X.create(f.Nb.create(this.C / 2), f.Ej.create(), f.di.create(this.C / 2, 1, 0, e, c, 0, 0), f.ua.create(this.finish, this));
  20827. d = f.X.create(f.di.create(this.C / 2, 1, 0, 0, d, 0, 0), f.Hl.create(), f.Nb.create(this.C / 2));
  20828. this.lb.V(c);
  20829. this.uc.V(d)
  20830. }
  20831. });
  20832. f.I7.create = function(c, d, e) {
  20833. null == e && (e = f.As);
  20834. var g = new f.I7;
  20835. g.f(c, d, e);
  20836. return g
  20837. };
  20838. f.J7 = f.Es.extend({
  20839. ba: function() {
  20840. f.xb.prototype.ba.call(this);
  20841. var c, d;
  20842. this.lb.visible = !1;
  20843. var e;
  20844. this.mw == f.DK ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90);
  20845. c = f.X.create(f.Nb.create(this.C / 2), f.Ej.create(), f.di.create(this.C / 2, 1, 0, e, c, 90, 0), f.ua.create(this.finish, this));
  20846. d = f.X.create(f.di.create(this.C / 2, 1, 0, 0, d, 90, 0), f.Hl.create(), f.Nb.create(this.C / 2));
  20847. this.lb.V(c);
  20848. this.uc.V(d)
  20849. }
  20850. });
  20851. f.J7.create = function(c, d, e) {
  20852. null == e && (e = f.DK);
  20853. var g = new f.J7;
  20854. g.f(c, d, e);
  20855. return g
  20856. };
  20857. f.H7 = f.Es.extend({
  20858. ba: function() {
  20859. f.xb.prototype.ba.call(this);
  20860. var c, d;
  20861. this.lb.visible = !1;
  20862. var e;
  20863. this.mw === f.As ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90);
  20864. c = f.X.create(f.Nb.create(this.C / 2), f.Ej.create(), f.di.create(this.C / 2, 1, 0, e, c, -45, 0), f.ua.create(this.finish, this));
  20865. d = f.X.create(f.di.create(this.C / 2, 1, 0, 0, d, 45, 0), f.Hl.create(), f.Nb.create(this.C / 2));
  20866. this.lb.V(c);
  20867. this.uc.V(d)
  20868. }
  20869. });
  20870. f.H7.create = function(c, d, e) {
  20871. null == e && (e = f.As);
  20872. var g = new f.H7;
  20873. g.f(c, d, e);
  20874. return g
  20875. };
  20876. f.d8 = f.Es.extend({
  20877. ba: function() {
  20878. f.xb.prototype.ba.call(this);
  20879. var c, d;
  20880. this.lb.visible = !1;
  20881. var e;
  20882. this.mw === f.As ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90);
  20883. c = f.X.create(f.Nb.create(this.C / 2), f.fe.create(f.di.create(this.C / 2, 1, 0, e, c, 0, 0), f.Db.create(this.C / 2, 1), f.Ej.create()), f.ua.create(this.finish, this));
  20884. d = f.X.create(f.fe.create(f.di.create(this.C / 2, 1, 0, 0, d, 0, 0), f.Db.create(this.C / 2, 0.5)), f.Hl.create(), f.Nb.create(this.C / 2));
  20885. this.lb.scale = 0.5;
  20886. this.lb.V(c);
  20887. this.uc.V(d)
  20888. }
  20889. });
  20890. f.d8.create = function(c, d, e) {
  20891. null == e && (e = f.As);
  20892. var g = new f.d8;
  20893. g.f(c, d, e);
  20894. return g
  20895. };
  20896. f.e8 = f.Es.extend({
  20897. ba: function() {
  20898. f.xb.prototype.ba.call(this);
  20899. var c, d;
  20900. this.lb.visible = !1;
  20901. var e;
  20902. this.mw === f.DK ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90);
  20903. c = f.X.create(f.Nb.create(this.C / 2), f.fe.create(f.di.create(this.C / 2, 1, 0, e, c, 90, 0), f.Db.create(this.C / 2, 1), f.Ej.create()), f.ua.create(this.finish, this));
  20904. d = f.X.create(f.fe.create(f.di.create(this.C / 2, 1, 0, 0, d, 90, 0), f.Db.create(this.C / 2, 0.5)), f.Hl.create(), f.Nb.create(this.C / 2));
  20905. this.lb.scale = 0.5;
  20906. this.lb.V(c);
  20907. this.uc.V(d)
  20908. }
  20909. });
  20910. f.e8.create = function(c, d, e) {
  20911. null == e && (e = f.DK);
  20912. var g = new f.e8;
  20913. g.f(c, d, e);
  20914. return g
  20915. };
  20916. f.c8 = f.Es.extend({
  20917. ba: function() {
  20918. f.xb.prototype.ba.call(this);
  20919. var c, d;
  20920. this.lb.visible = !1;
  20921. var e;
  20922. this.mw === f.As ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90);
  20923. c = f.X.create(f.Nb.create(this.C / 2), f.fe.create(f.di.create(this.C / 2, 1, 0, e, c, -45, 0), f.Db.create(this.C / 2, 1), f.Ej.create()), f.Ej.create(), f.ua.create(this.finish, this));
  20924. d = f.X.create(f.fe.create(f.di.create(this.C / 2, 1, 0, 0, d, 45, 0), f.Db.create(this.C / 2, 0.5)), f.Hl.create(), f.Nb.create(this.C / 2));
  20925. this.lb.scale = 0.5;
  20926. this.lb.V(c);
  20927. this.uc.V(d)
  20928. }
  20929. });
  20930. f.c8.create = function(c, d, e) {
  20931. null == e && (e = f.As);
  20932. var g = new f.c8;
  20933. g.f(c, d, e);
  20934. return g
  20935. };
  20936. f.D7 = f.xb.extend({
  20937. Ea: null,
  20938. ctor: function() {
  20939. f.xb.prototype.ctor.call(this);
  20940. this.Ea = f.color()
  20941. },
  20942. ba: function() {
  20943. f.xb.prototype.ba.call(this);
  20944. var c = f.$f.create(this.Ea);
  20945. this.lb.visible = !1;
  20946. this.n(c, 2, f.iE);
  20947. var c = this.Za(f.iE),
  20948. d = f.X.create(f.Fy.create(this.C / 2), f.ua.create(this.EP, this), f.Gy.create(this.C / 2), f.ua.create(this.finish, this));
  20949. c.V(d)
  20950. },
  20951. Ra: function() {
  20952. f.xb.prototype.Ra.call(this);
  20953. this.te(f.iE, !1)
  20954. },
  20955. f: function(c, d, e) {
  20956. e = e || f.color.BLACK;
  20957. f.xb.prototype.f.call(this, c, d) && (this.Ea.r = e.r, this.Ea.g = e.g, this.Ea.b =
  20958. e.b, this.Ea.a = 0);
  20959. return !0
  20960. }
  20961. });
  20962. f.D7.create = function(c, d, e) {
  20963. var g = new f.D7;
  20964. g.f(c, d, e);
  20965. return g
  20966. };
  20967. f.C7 = f.xb.extend({
  20968. ba: function() {
  20969. f.xb.prototype.ba.call(this);
  20970. var c = f.color(0, 0, 0, 0),
  20971. d = f.Q.Y,
  20972. c = f.$f.create(c),
  20973. e = f.nv.create(d.width, d.height);
  20974. if (null != e) {
  20975. e.sprite.anchorX = 0.5;
  20976. e.sprite.anchorY = 0.5;
  20977. e.Wa({
  20978. x: d.width / 2,
  20979. y: d.height / 2,
  20980. anchorX: 0.5,
  20981. anchorY: 0.5
  20982. });
  20983. e.Qn();
  20984. this.lb.I();
  20985. e.end();
  20986. var g = f.nv.create(d.width, d.height);
  20987. g.o(d.width / 2, d.height / 2);
  20988. g.sprite.anchorX = g.anchorX = 0.5;
  20989. g.sprite.anchorY = g.anchorY = 0.5;
  20990. g.Qn();
  20991. this.uc.I();
  20992. g.end();
  20993. e.sprite.ce(f.ONE, f.ONE);
  20994. g.sprite.ce(f.SRC_ALPHA, f.ONE_MINUS_SRC_ALPHA);
  20995. c.n(e);
  20996. c.n(g);
  20997. e.sprite.opacity = 255;
  20998. g.sprite.opacity = 255;
  20999. d = f.X.create(f.Xc.create(this.C, 0), f.ua.create(this.EP, this), f.ua.create(this.finish, this));
  21000. g.sprite.V(d);
  21001. this.n(c, 2, f.iE)
  21002. }
  21003. },
  21004. Ra: function() {
  21005. this.te(f.iE, !1);
  21006. f.xb.prototype.Ra.call(this)
  21007. },
  21008. ma: function() {}
  21009. });
  21010. f.C7.create = function(c, d) {
  21011. var e = new f.C7;
  21012. e.f(c, d);
  21013. return e
  21014. };
  21015. f.b8 = f.xb.extend({
  21016. op: function() {
  21017. this.on = !1
  21018. },
  21019. ba: function() {
  21020. f.xb.prototype.ba.call(this);
  21021. var c = f.Q.Y,
  21022. c = f.mU.create(this.C, t(0 | c.width / c.height * 12, 12)),
  21023. c = this.ak(c);
  21024. this.uc.V(f.X.create(c, f.ua.create(this.finish, this), f.qv.create()))
  21025. },
  21026. ak: function(c) {
  21027. return c
  21028. }
  21029. });
  21030. f.b8.create = function(c, d) {
  21031. var e = new f.b8;
  21032. return null != e && e.f(c, d) ? e : null
  21033. };
  21034. f.kU = f.xb.extend({
  21035. ba: function() {
  21036. f.xb.prototype.ba.call(this);
  21037. this.lb.visible = !1;
  21038. var c = this.action(),
  21039. c = f.X.create(c, f.ua.create(this.EP, this), c.reverse());
  21040. this.V(f.X.create(this.ak(c), f.ua.create(this.finish, this), f.qv.create()))
  21041. },
  21042. ak: function(c) {
  21043. return f.Cy.create(c, 3)
  21044. },
  21045. action: function() {
  21046. return f.PT.create(this.C / 2, 3)
  21047. }
  21048. });
  21049. f.kU.create = function(c, d) {
  21050. var e = new f.kU;
  21051. return null != e && e.f(c, d) ? e : null
  21052. };
  21053. f.a8 = f.kU.extend({
  21054. action: function() {
  21055. return f.QT.create(this.C / 2, 3)
  21056. }
  21057. });
  21058. f.a8.create = function(c, d) {
  21059. var e = new f.a8;
  21060. return null != e && e.f(c, d) ? e : null
  21061. };
  21062. f.vE = f.xb.extend({
  21063. op: function() {
  21064. this.on = !1
  21065. },
  21066. ba: function() {
  21067. f.xb.prototype.ba.call(this);
  21068. var c = f.Q.Y,
  21069. c = this.hB(t(0 | c.width / c.height * 12, 12));
  21070. this.uc.V(f.X.create(this.ak(c), f.ua.create(this.finish, this), f.qv.create()))
  21071. },
  21072. ak: function(c) {
  21073. return c
  21074. },
  21075. hB: function(c) {
  21076. return f.XD.create(this.C, c)
  21077. }
  21078. });
  21079. f.vE.create = function(c, d) {
  21080. var e = new f.vE;
  21081. return null != e && e.f(c, d) ? e : null
  21082. };
  21083. f.E7 = f.vE.extend({
  21084. hB: function(c) {
  21085. return f.OS.create(this.C, c)
  21086. }
  21087. });
  21088. f.E7.create = function(c, d) {
  21089. var e = new f.E7;
  21090. return null != e && e.f(c, d) ? e : null
  21091. };
  21092. f.G7 = f.vE.extend({
  21093. hB: function(c) {
  21094. return f.bK.create(this.C, c)
  21095. }
  21096. });
  21097. f.G7.create = function(c, d) {
  21098. var e = new f.G7;
  21099. return null != e && e.f(c, d) ? e : null
  21100. };
  21101. f.F7 = f.vE.extend({
  21102. hB: function(c) {
  21103. return f.PS.create(this.C, c)
  21104. }
  21105. });
  21106. f.F7.create = function(c, d) {
  21107. var e = new f.F7;
  21108. return null != e && e.f(c, d) ? e : null
  21109. };
  21110. f.a7 = 49153;
  21111. f.Ds = f.xb.extend({
  21112. Nf: 0,
  21113. Tc: 0,
  21114. yN: null,
  21115. ta: "TransitionProgress",
  21116. Bw: function(c, d, e) {
  21117. c.Wa({
  21118. x: d,
  21119. y: e,
  21120. anchorX: 0.5,
  21121. anchorY: 0.5
  21122. })
  21123. },
  21124. ba: function() {
  21125. f.xb.prototype.ba.call(this);
  21126. this.bba();
  21127. var c = f.Q.Y,
  21128. d = f.nv.create(c.width, c.height);
  21129. d.sprite.anchorX = 0.5;
  21130. d.sprite.anchorY = 0.5;
  21131. this.Bw(d, c.width / 2, c.height / 2);
  21132. d.clear(0, 0, 0, 1);
  21133. d.Qn();
  21134. this.yN.I();
  21135. d.end();
  21136. this.yN == this.uc && this.EP();
  21137. c = this.uw(d);
  21138. d = f.X.create(f.eE.create(this.C, this.Tc, this.Nf), f.ua.create(this.finish, this));
  21139. c.V(d);
  21140. this.n(c, 2, f.a7)
  21141. },
  21142. Ra: function() {
  21143. this.te(f.a7, !0);
  21144. f.xb.prototype.Ra.call(this)
  21145. },
  21146. bba: function() {
  21147. this.yN = this.uc;
  21148. this.Tc = 100;
  21149. this.Nf = 0
  21150. },
  21151. uw: function() {
  21152. f.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass");
  21153. return null
  21154. },
  21155. op: function() {
  21156. this.on = !1
  21157. }
  21158. });
  21159. f.Ds.create = function(c, d) {
  21160. var e = new f.Ds;
  21161. return null != e && e.f(c, d) ? e : null
  21162. };
  21163. f.S7 = f.Ds.extend({
  21164. uw: function(c) {
  21165. var d = f.Q.Y;
  21166. c = f.bc.create(c.sprite);
  21167. f.K === f.na && (c.sprite.flippedY = !0);
  21168. c.type = f.bc.Co;
  21169. c.reverseDir = !1;
  21170. c.percentage = 100;
  21171. this.Bw(c, d.width / 2, d.height / 2);
  21172. return c
  21173. }
  21174. });
  21175. f.S7.create = function(c, d) {
  21176. var e = new f.S7;
  21177. return null != e && e.f(c, d) ? e : null
  21178. };
  21179. f.T7 = f.Ds.extend({
  21180. uw: function(c) {
  21181. var d = f.Q.Y;
  21182. c = f.bc.create(c.sprite);
  21183. f.K === f.na && (c.sprite.flippedY = !0);
  21184. c.type = f.bc.Co;
  21185. c.reverseDir = !0;
  21186. c.percentage = 100;
  21187. this.Bw(c, d.width / 2, d.height / 2);
  21188. return c
  21189. }
  21190. });
  21191. f.T7.create = function(c, d) {
  21192. var e = new f.T7;
  21193. return null != e && e.f(c, d) ? e : null
  21194. };
  21195. f.P7 = f.Ds.extend({
  21196. uw: function(c) {
  21197. var d = f.Q.Y;
  21198. c = f.bc.create(c.sprite);
  21199. f.K === f.na && (c.sprite.flippedY = !0);
  21200. c.type = f.bc.sv;
  21201. c.midPoint = r(1, 0);
  21202. c.barChangeRate = r(1, 0);
  21203. c.percentage = 100;
  21204. this.Bw(c, d.width / 2, d.height / 2);
  21205. return c
  21206. }
  21207. });
  21208. f.P7.create = function(c, d) {
  21209. var e = new f.P7;
  21210. return null != e && e.f(c, d) ? e : null
  21211. };
  21212. f.U7 = f.Ds.extend({
  21213. uw: function(c) {
  21214. var d = f.Q.Y;
  21215. c = f.bc.create(c.sprite);
  21216. f.K === f.na && (c.sprite.flippedY = !0);
  21217. c.type = f.bc.sv;
  21218. c.midPoint = r(0, 0);
  21219. c.barChangeRate = r(0, 1);
  21220. c.percentage = 100;
  21221. this.Bw(c, d.width / 2, d.height / 2);
  21222. return c
  21223. }
  21224. });
  21225. f.U7.create = function(c, d) {
  21226. var e = new f.U7;
  21227. return null != e && e.f(c, d) ? e : null
  21228. };
  21229. f.Q7 = f.Ds.extend({
  21230. uw: function(c) {
  21231. var d = f.Q.Y;
  21232. c = f.bc.create(c.sprite);
  21233. f.K === f.na && (c.sprite.flippedY = !0);
  21234. c.type = f.bc.sv;
  21235. c.midPoint = r(0.5, 0.5);
  21236. c.barChangeRate = r(1, 1);
  21237. c.percentage = 0;
  21238. this.Bw(c, d.width / 2, d.height / 2);
  21239. return c
  21240. },
  21241. op: function() {
  21242. this.on = !1
  21243. },
  21244. bba: function() {
  21245. this.yN = this.lb;
  21246. this.Tc = 0;
  21247. this.Nf = 100
  21248. }
  21249. });
  21250. f.Q7.create = function(c, d) {
  21251. var e = new f.Q7;
  21252. return null != e && e.f(c, d) ? e : null
  21253. };
  21254. f.R7 = f.Ds.extend({
  21255. uw: function(c) {
  21256. var d = f.Q.Y;
  21257. c = f.bc.create(c.sprite);
  21258. f.K === f.na && (c.sprite.flippedY = !0);
  21259. c.type = f.bc.sv;
  21260. c.midPoint = r(0.5, 0.5);
  21261. c.barChangeRate = r(1, 1);
  21262. c.percentage = 100;
  21263. this.Bw(c, d.width / 2, d.height / 2);
  21264. return c
  21265. }
  21266. });
  21267. f.R7.create = function(c, d) {
  21268. var e = new f.R7;
  21269. return null != e && e.f(c, d) ? e : null
  21270. };
  21271. f.O7 = f.xb.extend({
  21272. WK: !0,
  21273. ta: "TransitionPageTurn",
  21274. f: function(c, d, e) {
  21275. this.WK = e;
  21276. f.xb.prototype.f.call(this, c, d);
  21277. return !0
  21278. },
  21279. hB: function(c) {
  21280. return this.WK ? f.ov.create(f.lK.create(this.C, c)) : f.lK.create(this.C, c)
  21281. },
  21282. ba: function() {
  21283. f.xb.prototype.ba.call(this);
  21284. var c = f.Q.Y,
  21285. d;
  21286. c.width > c.height ? (c = 16, d = 12) : (c = 12, d = 16);
  21287. c = this.hB(t(c, d));
  21288. this.WK ? (this.lb.visible = !1, this.lb.V(f.X.create(f.Ej.create(), c, f.ua.create(this.finish, this), f.qv.create()))) : this.uc.V(f.X.create(c, f.ua.create(this.finish, this), f.qv.create()))
  21289. },
  21290. op: function() {
  21291. this.on = this.WK
  21292. }
  21293. });
  21294. f.O7.create = function(c, d, e) {
  21295. var g = new f.O7;
  21296. g.f(c, d, e);
  21297. return g
  21298. };
  21299. f.bb = {
  21300. name: "Jacob__Codec"
  21301. };
  21302. f.RIa = function() {
  21303. return f.bb.Ob.yP.apply(f.bb.Ob, arguments)
  21304. };
  21305. f.SIa = function() {
  21306. var c = f.bb.Zu.Eca.apply(f.bb.Zu, arguments);
  21307. return f.bb.Ob.yP.apply(f.bb.Ob, [c])
  21308. };
  21309. f.Cia = function(c, d) {
  21310. d = d || 1;
  21311. var e = this.SIa(c),
  21312. g = [],
  21313. h, k, m;
  21314. h = 0;
  21315. for (m = e.length / d; h < m; h++)
  21316. for (g[h] = 0, k = d - 1; 0 <= k; --k) g[h] += e.charCodeAt(h * d + k) << 8 * k;
  21317. return g
  21318. };
  21319. f.H5a = function(c, d) {
  21320. d = d || 1;
  21321. var e = this.RIa(c),
  21322. g = [],
  21323. h, k, m;
  21324. h = 0;
  21325. for (m = e.length / d; h < m; h++)
  21326. for (g[h] = 0, k = d - 1; 0 <= k; --k) g[h] += e.charCodeAt(h * d + k) << 8 * k;
  21327. return g
  21328. };
  21329. f.FMa = function(c) {
  21330. c = c.split(",");
  21331. var d = [],
  21332. e;
  21333. for (e = 0; e < c.length; e++) d.push(parseInt(c[e]));
  21334. return d
  21335. };
  21336. f.bb.Zu = {
  21337. name: "Jacob__Codec__Base64"
  21338. };
  21339. f.bb.Zu.BM = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d";
  21340. f.bb.Zu.Eca = function(c) {
  21341. var d = [],
  21342. e, g, h, k, m, n = 0;
  21343. for (c = c.replace(/[^A-Za-z0-9\+\/\=]/g, ""); n < c.length;) e = this.BM.indexOf(c.charAt(n++)), g = this.BM.indexOf(c.charAt(n++)), k = this.BM.indexOf(c.charAt(n++)), m = this.BM.indexOf(c.charAt(n++)), e = e << 2 | g >> 4, g = (g & 15) << 4 | k >> 2, h = (k & 3) << 6 | m, d.push(String.fromCharCode(e)), 64 != k && d.push(String.fromCharCode(g)), 64 != m && d.push(String.fromCharCode(h));
  21344. return d = d.join("")
  21345. };
  21346. f.bb.Zu.Fca = function(c, d) {
  21347. var e = this.Eca(c),
  21348. g = [],
  21349. h, k, m;
  21350. h = 0;
  21351. for (m = e.length / d; h < m; h++)
  21352. for (g[h] = 0, k = d - 1; 0 <= k; --k) g[h] += e.charCodeAt(h * d + k) << 8 * k;
  21353. return g
  21354. };
  21355. f.OIa = function(c) {
  21356. if (0 != c.length % 4) return null;
  21357. for (var d = c.length / 4, e = window.gNa ? new Uint32Array(d) : [], g = 0; g < d; g++) {
  21358. var h = 4 * g;
  21359. e[g] = c[h] + 256 * c[h + 1] + 65536 * c[h + 2] + 16777216 * c[h + 3]
  21360. }
  21361. return e
  21362. };
  21363. f.bb.Ob = function(c) {
  21364. this.data = c;
  21365. this.debug = !1;
  21366. this.Kr = void 0;
  21367. this.files = 0;
  21368. this.OR = [];
  21369. this.TZ = Array(32768);
  21370. this.Pn = 0;
  21371. this.pQ = !1;
  21372. this.lca = 0;
  21373. this.wp = 1;
  21374. this.nB = 0;
  21375. this.pC = [];
  21376. this.ada = void 0;
  21377. this.dI = Array(f.bb.Ob.lma);
  21378. this.ox = Array(32);
  21379. this.oJ = 0;
  21380. this.rT = null;
  21381. this.bo = 0;
  21382. this.FB = Array(17);
  21383. this.FB[0] = 0;
  21384. this.jda = this.fda = void 0
  21385. };
  21386. f.bb.Ob.yP = function(c) {
  21387. return (new f.bb.Ob(c)).yP()[0][0]
  21388. };
  21389. f.bb.Ob.US = function() {
  21390. this.GO = this.FO = 0;
  21391. this.Y0 = null;
  21392. this.jDa = -1
  21393. };
  21394. f.bb.Ob.lma = 288;
  21395. f.bb.Ob.j6 = 256;
  21396. f.bb.Ob.IZ = [0, 128, 64, 192, 32, 160, 96, 224, 16, 144, 80, 208, 48, 176, 112, 240, 8, 136, 72, 200, 40, 168, 104, 232, 24, 152, 88, 216, 56, 184, 120, 248, 4, 132, 68, 196, 36, 164, 100, 228, 20, 148, 84, 212, 52, 180, 116, 244, 12, 140, 76, 204, 44, 172, 108, 236, 28, 156, 92, 220, 60, 188, 124, 252, 2, 130, 66, 194, 34, 162, 98, 226, 18, 146, 82, 210, 50, 178, 114, 242, 10, 138, 74, 202, 42, 170, 106, 234, 26, 154, 90, 218, 58, 186, 122, 250, 6, 134, 70, 198, 38, 166, 102, 230, 22, 150, 86, 214, 54, 182, 118, 246, 14, 142, 78, 206, 46, 174, 110, 238, 30, 158, 94, 222, 62, 190, 126, 254, 1, 129, 65, 193, 33, 161, 97, 225, 17, 145,
  21397. 81, 209, 49, 177, 113, 241, 9, 137, 73, 201, 41, 169, 105, 233, 25, 153, 89, 217, 57, 185, 121, 249, 5, 133, 69, 197, 37, 165, 101, 229, 21, 149, 85, 213, 53, 181, 117, 245, 13, 141, 77, 205, 45, 173, 109, 237, 29, 157, 93, 221, 61, 189, 125, 253, 3, 131, 67, 195, 35, 163, 99, 227, 19, 147, 83, 211, 51, 179, 115, 243, 11, 139, 75, 203, 43, 171, 107, 235, 27, 155, 91, 219, 59, 187, 123, 251, 7, 135, 71, 199, 39, 167, 103, 231, 23, 151, 87, 215, 55, 183, 119, 247, 15, 143, 79, 207, 47, 175, 111, 239, 31, 159, 95, 223, 63, 191, 127, 255
  21398. ];
  21399. f.bb.Ob.vca = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0];
  21400. f.bb.Ob.wca = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 99, 99];
  21401. f.bb.Ob.uca = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577];
  21402. f.bb.Ob.uB = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];
  21403. f.bb.Ob.border = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  21404. f.bb.Ob.prototype.yP = function() {
  21405. this.xI = [];
  21406. ja(this);
  21407. return this.OR
  21408. };
  21409. f.bb.Ob.prototype.ca = function() {
  21410. this.nB += 8;
  21411. return this.lca < this.data.length ? this.data.charCodeAt(this.lca++) : -1
  21412. };
  21413. function ka(c) {
  21414. var d;
  21415. c.nB++;
  21416. d = c.wp & 1;
  21417. c.wp >>= 1;
  21418. 0 == c.wp && (c.wp = c.ca(), d = c.wp & 1, c.wp = c.wp >> 1 | 128);
  21419. return d
  21420. }
  21421. function la(c, d) {
  21422. for (var e = 0, g = d; g--;) e = e << 1 | ka(c);
  21423. d && (e = f.bb.Ob.IZ[e] >> 8 - d);
  21424. return e
  21425. }
  21426. function na(c, d) {
  21427. c.TZ[c.Pn++] = d;
  21428. c.xI.push(String.fromCharCode(d));
  21429. 32768 == c.Pn && (c.Pn = 0)
  21430. }
  21431. function pa(c) {
  21432. for (;;) {
  21433. if (c.FB[c.bo] >= c.jda) return -1;
  21434. if (c.fda[c.FB[c.bo]] == c.bo) return c.FB[c.bo]++;
  21435. c.FB[c.bo]++
  21436. }
  21437. }
  21438. function qa(c) {
  21439. var d = c.rT[c.oJ],
  21440. e;
  21441. if (17 == c.bo) return -1;
  21442. c.oJ++;
  21443. c.bo++;
  21444. e = pa(c);
  21445. if (0 <= e) d.FO = e;
  21446. else if (d.FO = 32768, qa(c)) return -1;
  21447. e = pa(c);
  21448. if (0 <= e) d.GO = e, d.Y0 = null;
  21449. else if (d.GO = 32768, d.Y0 = c.rT[c.oJ], d.jDa = c.oJ, qa(c)) return -1;
  21450. c.bo--;
  21451. return 0
  21452. }
  21453. function sa(c, d, e, g) {
  21454. c.rT = d;
  21455. c.oJ = 0;
  21456. c.fda = g;
  21457. c.jda = e;
  21458. for (d = 0; 17 > d; d++) c.FB[d] = 0;
  21459. c.bo = 0;
  21460. return qa(c) ? -1 : 0
  21461. }
  21462. function va(c, d) {
  21463. for (var e, g, h = 0, k = d[h];;)
  21464. if (e = ka(c)) {
  21465. if (!(k.GO & 32768)) return k.GO;
  21466. k = k.Y0;
  21467. e = d.length;
  21468. for (g = 0; g < e; g++)
  21469. if (d[g] === k) {
  21470. h = g;
  21471. break
  21472. }
  21473. } else {
  21474. if (!(k.FO & 32768)) return k.FO;
  21475. h++;
  21476. k = d[h]
  21477. }
  21478. return -1
  21479. }
  21480. function xa(c) {
  21481. var d, e, g, h, k;
  21482. do
  21483. if (d = ka(c), g = la(c, 2), 0 == g)
  21484. for (c.wp = 1, g = c.ca(), g |= c.ca() << 8, e = c.ca(), e |= c.ca() << 8, (g ^ ~e) & 65535 && document.write("BlockLen checksum mismatch\n"); g--;) e = c.ca(), na(c, e);
  21485. else if (1 == g)
  21486. for (;;)
  21487. if (g = f.bb.Ob.IZ[la(c, 7)] >> 1, 23 < g ? (g = g << 1 | ka(c), 199 < g ? (g -= 128, g = g << 1 | ka(c)) : (g -= 48, 143 < g && (g += 136))) : g += 256, 256 > g) na(c, g);
  21488. else if (256 == g) break;
  21489. else {
  21490. var m;
  21491. g -= 257;
  21492. k = la(c, f.bb.Ob.wca[g]) + f.bb.Ob.vca[g];
  21493. g = f.bb.Ob.IZ[la(c, 5)] >> 3;
  21494. 8 < f.bb.Ob.uB[g] ? (m = la(c, 8), m |= la(c, f.bb.Ob.uB[g] - 8) << 8) : m = la(c,
  21495. f.bb.Ob.uB[g]);
  21496. m += f.bb.Ob.uca[g];
  21497. for (g = 0; g < k; g++) e = c.TZ[c.Pn - m & 32767], na(c, e)
  21498. } else if (2 == g) {
  21499. var n = Array(320);
  21500. e = 257 + la(c, 5);
  21501. m = 1 + la(c, 5);
  21502. h = 4 + la(c, 4);
  21503. for (g = 0; 19 > g; g++) n[g] = 0;
  21504. for (g = 0; g < h; g++) n[f.bb.Ob.border[g]] = la(c, 3);
  21505. k = c.ox.length;
  21506. for (h = 0; h < k; h++) c.ox[h] = new f.bb.Ob.US;
  21507. if (sa(c, c.ox, 19, n)) {
  21508. c.Pn = 0;
  21509. return
  21510. }
  21511. k = e + m;
  21512. h = 0;
  21513. for (var p = -1; h < k;)
  21514. if (p++, g = va(c, c.ox), 16 > g) n[h++] = g;
  21515. else if (16 == g) {
  21516. var s;
  21517. g = 3 + la(c, 2);
  21518. if (h + g > k) {
  21519. c.Pn = 0;
  21520. return
  21521. }
  21522. for (s = h ? n[h - 1] : 0; g--;) n[h++] = s
  21523. } else {
  21524. g = 17 == g ? 3 + la(c, 3) : 11 + la(c, 7);
  21525. if (h + g > k) {
  21526. c.Pn =
  21527. 0;
  21528. return
  21529. }
  21530. for (; g--;) n[h++] = 0
  21531. }
  21532. k = c.dI.length;
  21533. for (h = 0; h < k; h++) c.dI[h] = new f.bb.Ob.US;
  21534. if (sa(c, c.dI, e, n)) {
  21535. c.Pn = 0;
  21536. return
  21537. }
  21538. k = c.dI.length;
  21539. for (h = 0; h < k; h++) c.ox[h] = new f.bb.Ob.US;
  21540. g = [];
  21541. for (h = e; h < n.length; h++) g[h - e] = n[h];
  21542. if (sa(c, c.ox, m, g)) {
  21543. c.Pn = 0;
  21544. return
  21545. }
  21546. for (;;)
  21547. if (g = va(c, c.dI), 256 <= g) {
  21548. g -= 256;
  21549. if (0 == g) break;
  21550. g--;
  21551. k = la(c, f.bb.Ob.wca[g]) + f.bb.Ob.vca[g];
  21552. g = va(c, c.ox);
  21553. 8 < f.bb.Ob.uB[g] ? (m = la(c, 8), m |= la(c, f.bb.Ob.uB[g] - 8) << 8) : m = la(c, f.bb.Ob.uB[g]);
  21554. for (m += f.bb.Ob.uca[g]; k--;) e = c.TZ[c.Pn - m & 32767], na(c, e)
  21555. } else na(c, g)
  21556. }
  21557. while (!d);
  21558. c.Pn = 0;
  21559. c.wp = 1
  21560. }
  21561. function ja(c) {
  21562. c.xI = [];
  21563. c.pQ = !1;
  21564. var d = [];
  21565. d[0] = c.ca();
  21566. d[1] = c.ca();
  21567. 120 == d[0] && 218 == d[1] && (xa(c), c.OR[c.files] = [c.xI.join(""), "geonext.gxt"], c.files++);
  21568. 31 == d[0] && 139 == d[1] && (Ca(c), c.OR[c.files] = [c.xI.join(""), "file"], c.files++);
  21569. if (80 == d[0] && 75 == d[1] && (c.pQ = !0, d[2] = c.ca(), d[3] = c.ca(), 3 == d[2] && 4 == d[3])) {
  21570. d[0] = c.ca();
  21571. d[1] = c.ca();
  21572. c.Kr = c.ca();
  21573. c.Kr |= c.ca() << 8;
  21574. d = c.ca();
  21575. d |= c.ca() << 8;
  21576. c.ca();
  21577. c.ca();
  21578. c.ca();
  21579. c.ca();
  21580. c.ca();
  21581. c.ca();
  21582. c.ca();
  21583. c.ca();
  21584. c.ca();
  21585. c.ca();
  21586. c.ca();
  21587. c.ca();
  21588. var e = c.ca(),
  21589. e = e | c.ca() << 8,
  21590. g = c.ca(),
  21591. g = g | c.ca() <<
  21592. 8,
  21593. h = 0;
  21594. for (c.pC = []; e--;) {
  21595. var k = c.ca();
  21596. "/" == k | ":" == k ? h = 0 : h < f.bb.Ob.j6 - 1 && (c.pC[h++] = String.fromCharCode(k))
  21597. }
  21598. c.ada || (c.ada = c.pC);
  21599. for (var h = 0; h < g;) c.ca(), h++;
  21600. 8 == d && (xa(c), c.OR[c.files] = [c.xI.join(""), c.pC.join("")], c.files++);
  21601. Ca(c)
  21602. }
  21603. }
  21604. function Ca(c) {
  21605. var d = [],
  21606. e;
  21607. c.Kr & 8 && (d[0] = c.ca(), d[1] = c.ca(), d[2] = c.ca(), d[3] = c.ca(), c.ca(), c.ca(), c.ca(), c.ca(), c.ca(), c.ca(), c.ca(), c.ca());
  21608. c.pQ && ja(c);
  21609. d[0] = c.ca();
  21610. if (8 == d[0]) {
  21611. c.Kr = c.ca();
  21612. c.ca();
  21613. c.ca();
  21614. c.ca();
  21615. c.ca();
  21616. c.ca();
  21617. c.ca();
  21618. if (c.Kr & 4)
  21619. for (d[0] = c.ca(), d[2] = c.ca(), c.bo = d[0] + 256 * d[1], d = 0; d < c.bo; d++) c.ca();
  21620. if (c.Kr & 8)
  21621. for (d = 0, c.pC = []; e = c.ca();) {
  21622. if ("7" == e || ":" == e) d = 0;
  21623. d < f.bb.Ob.j6 - 1 && (c.pC[d++] = e)
  21624. }
  21625. if (c.Kr & 16)
  21626. for (; c.ca(););
  21627. c.Kr & 2 && (c.ca(), c.ca());
  21628. xa(c);
  21629. c.ca();
  21630. c.ca();
  21631. c.ca();
  21632. c.ca();
  21633. c.pQ && ja(c)
  21634. }
  21635. };
  21636. (function() {
  21637. function c(c) {
  21638. throw c;
  21639. }
  21640. function d(c, d) {
  21641. var e = c.split("."),
  21642. g = M;
  21643. e[0] in g || !g.execScript || g.execScript("var " + e[0]);
  21644. for (var h; e.length && (h = e.shift());) e.length || d === O ? g = g[h] ? g[h] : g[h] = {} : g[h] = d
  21645. }
  21646. function e(c) {
  21647. if ("string" === typeof c) {
  21648. c = c.split("");
  21649. var d, e;
  21650. d = 0;
  21651. for (e = c.length; d < e; d++) c[d] = (c[d].charCodeAt(0) & 255) >>> 0
  21652. }
  21653. d = 1;
  21654. e = 0;
  21655. for (var g = c.length, h, k = 0; 0 < g;) {
  21656. h = 1024 < g ? 1024 : g;
  21657. g -= h;
  21658. do d += c[k++], e += d; while (--h);
  21659. d %= 65521;
  21660. e %= 65521
  21661. }
  21662. return (e << 16 | d) >>> 0
  21663. }
  21664. function g(d, e) {
  21665. this.index = "number" === typeof e ? e : 0;
  21666. this.QH = 0;
  21667. this.buffer = d instanceof(K ? Uint8Array : Array) ? d : new(K ? Uint8Array : Array)(32768);
  21668. 2 * this.buffer.length <= this.index && c(Error("invalid index"));
  21669. this.buffer.length <= this.index && this.Tn()
  21670. }
  21671. function h(c) {
  21672. this.buffer = new(K ? Uint16Array : Array)(2 * c);
  21673. this.length = 0
  21674. }
  21675. function k(c) {
  21676. var d = c.length,
  21677. e = 0,
  21678. g = Number.POSITIVE_INFINITY,
  21679. h, k, m, n, p, s, u, v, z;
  21680. for (v = 0; v < d; ++v) c[v] > e && (e = c[v]), c[v] < g && (g = c[v]);
  21681. h = 1 << e;
  21682. k = new(K ? Uint32Array : Array)(h);
  21683. m = 1;
  21684. n = 0;
  21685. for (p = 2; m <= e;) {
  21686. for (v = 0; v < d; ++v)
  21687. if (c[v] === m) {
  21688. s = 0;
  21689. u = n;
  21690. for (z = 0; z < m; ++z) s =
  21691. s << 1 | u & 1, u >>= 1;
  21692. for (z = s; z < h; z += p) k[z] = m << 16 | v;
  21693. ++n
  21694. }++m;
  21695. n <<= 1;
  21696. p <<= 1
  21697. }
  21698. return [k, e, g]
  21699. }
  21700. function m(c, d) {
  21701. this.Vf = fa;
  21702. this.da = 0;
  21703. this.input = c;
  21704. this.b = 0;
  21705. d && (d.HDa && (this.da = d.HDa), "number" === typeof d.k_ && (this.Vf = d.k_), d.zQ && (this.a = K && d.zQ instanceof Array ? new Uint8Array(d.zQ) : d.zQ), "number" === typeof d.kEa && (this.b = d.kEa));
  21706. this.a || (this.a = new(K ? Uint8Array : Array)(32768))
  21707. }
  21708. function n(c, d) {
  21709. this.length = c;
  21710. this.Kla = d
  21711. }
  21712. function p() {
  21713. var d = Y;
  21714. switch (R) {
  21715. case 3 === d:
  21716. return [257, d - 3, 0];
  21717. case 4 === d:
  21718. return [258, d - 4, 0];
  21719. case 5 === d:
  21720. return [259,
  21721. d - 5, 0
  21722. ];
  21723. case 6 === d:
  21724. return [260, d - 6, 0];
  21725. case 7 === d:
  21726. return [261, d - 7, 0];
  21727. case 8 === d:
  21728. return [262, d - 8, 0];
  21729. case 9 === d:
  21730. return [263, d - 9, 0];
  21731. case 10 === d:
  21732. return [264, d - 10, 0];
  21733. case 12 >= d:
  21734. return [265, d - 11, 1];
  21735. case 14 >= d:
  21736. return [266, d - 13, 1];
  21737. case 16 >= d:
  21738. return [267, d - 15, 1];
  21739. case 18 >= d:
  21740. return [268, d - 17, 1];
  21741. case 22 >= d:
  21742. return [269, d - 19, 2];
  21743. case 26 >= d:
  21744. return [270, d - 23, 2];
  21745. case 30 >= d:
  21746. return [271, d - 27, 2];
  21747. case 34 >= d:
  21748. return [272, d - 31, 2];
  21749. case 42 >= d:
  21750. return [273, d - 35, 3];
  21751. case 50 >= d:
  21752. return [274, d - 43, 3];
  21753. case 58 >= d:
  21754. return [275, d - 51, 3];
  21755. case 66 >= d:
  21756. return [276,
  21757. d - 59, 3
  21758. ];
  21759. case 82 >= d:
  21760. return [277, d - 67, 4];
  21761. case 98 >= d:
  21762. return [278, d - 83, 4];
  21763. case 114 >= d:
  21764. return [279, d - 99, 4];
  21765. case 130 >= d:
  21766. return [280, d - 115, 4];
  21767. case 162 >= d:
  21768. return [281, d - 131, 5];
  21769. case 194 >= d:
  21770. return [282, d - 163, 5];
  21771. case 226 >= d:
  21772. return [283, d - 195, 5];
  21773. case 257 >= d:
  21774. return [284, d - 227, 5];
  21775. case 258 === d:
  21776. return [285, d - 258, 0];
  21777. default:
  21778. c("invalid length: " + d)
  21779. }
  21780. }
  21781. function s(d, e) {
  21782. function g(d, e) {
  21783. var h = d.Kla,
  21784. k = [],
  21785. m = 0,
  21786. n;
  21787. n = wa[d.length];
  21788. k[m++] = n & 65535;
  21789. k[m++] = n >> 16 & 255;
  21790. k[m++] = n >> 24;
  21791. var p;
  21792. switch (R) {
  21793. case 1 === h:
  21794. p = [0, h - 1, 0];
  21795. break;
  21796. case 2 === h:
  21797. p = [1,
  21798. h - 2, 0
  21799. ];
  21800. break;
  21801. case 3 === h:
  21802. p = [2, h - 3, 0];
  21803. break;
  21804. case 4 === h:
  21805. p = [3, h - 4, 0];
  21806. break;
  21807. case 6 >= h:
  21808. p = [4, h - 5, 1];
  21809. break;
  21810. case 8 >= h:
  21811. p = [5, h - 7, 1];
  21812. break;
  21813. case 12 >= h:
  21814. p = [6, h - 9, 2];
  21815. break;
  21816. case 16 >= h:
  21817. p = [7, h - 13, 2];
  21818. break;
  21819. case 24 >= h:
  21820. p = [8, h - 17, 3];
  21821. break;
  21822. case 32 >= h:
  21823. p = [9, h - 25, 3];
  21824. break;
  21825. case 48 >= h:
  21826. p = [10, h - 33, 4];
  21827. break;
  21828. case 64 >= h:
  21829. p = [11, h - 49, 4];
  21830. break;
  21831. case 96 >= h:
  21832. p = [12, h - 65, 5];
  21833. break;
  21834. case 128 >= h:
  21835. p = [13, h - 97, 5];
  21836. break;
  21837. case 192 >= h:
  21838. p = [14, h - 129, 6];
  21839. break;
  21840. case 256 >= h:
  21841. p = [15, h - 193, 6];
  21842. break;
  21843. case 384 >= h:
  21844. p = [16, h - 257, 7];
  21845. break;
  21846. case 512 >= h:
  21847. p = [17, h - 385, 7];
  21848. break;
  21849. case 768 >= h:
  21850. p = [18, h - 513, 8];
  21851. break;
  21852. case 1024 >= h:
  21853. p = [19, h - 769, 8];
  21854. break;
  21855. case 1536 >= h:
  21856. p = [20, h - 1025, 9];
  21857. break;
  21858. case 2048 >= h:
  21859. p = [21, h - 1537, 9];
  21860. break;
  21861. case 3072 >= h:
  21862. p = [22, h - 2049, 10];
  21863. break;
  21864. case 4096 >= h:
  21865. p = [23, h - 3073, 10];
  21866. break;
  21867. case 6144 >= h:
  21868. p = [24, h - 4097, 11];
  21869. break;
  21870. case 8192 >= h:
  21871. p = [25, h - 6145, 11];
  21872. break;
  21873. case 12288 >= h:
  21874. p = [26, h - 8193, 12];
  21875. break;
  21876. case 16384 >= h:
  21877. p = [27, h - 12289, 12];
  21878. break;
  21879. case 24576 >= h:
  21880. p = [28, h - 16385, 13];
  21881. break;
  21882. case 32768 >= h:
  21883. p = [29, h - 24577, 13];
  21884. break;
  21885. default:
  21886. c("invalid distance")
  21887. }
  21888. n = p;
  21889. k[m++] = n[0];
  21890. k[m++] = n[1];
  21891. k[m++] = n[2];
  21892. h = 0;
  21893. for (m = k.length; h < m; ++h) z[A++] = k[h];
  21894. C[k[0]]++;
  21895. G[k[3]]++;
  21896. B = d.length + e - 1;
  21897. v = null
  21898. }
  21899. var h, k, m, p, s, u = {},
  21900. v, z = K ? new Uint16Array(2 * e.length) : [],
  21901. A = 0,
  21902. B = 0,
  21903. C = new(K ? Uint32Array : Array)(286),
  21904. G = new(K ? Uint32Array : Array)(30),
  21905. L = d.da,
  21906. I;
  21907. if (!K) {
  21908. for (m = 0; 285 >= m;) C[m++] = 0;
  21909. for (m = 0; 29 >= m;) G[m++] = 0
  21910. }
  21911. C[256] = 1;
  21912. h = 0;
  21913. for (k = e.length; h < k; ++h) {
  21914. m = s = 0;
  21915. for (p = 3; m < p && h + m !== k; ++m) s = s << 8 | e[h + m];
  21916. u[s] === O && (u[s] = []);
  21917. m = u[s];
  21918. if (!(0 < B--)) {
  21919. for (; 0 < m.length && 32768 < h - m[0];) m.shift();
  21920. if (h + 3 >= k) {
  21921. v && g(v, -1);
  21922. m = 0;
  21923. for (p = k - h; m < p; ++m) I = e[h + m], z[A++] = I, ++C[I];
  21924. break
  21925. }
  21926. if (0 < m.length) {
  21927. s = p = O;
  21928. var P = 0,
  21929. M = O,
  21930. J = O,
  21931. Q = M = O,
  21932. Z = e.length,
  21933. J = 0,
  21934. Q = m.length;
  21935. a: for (; J < Q; J++) {
  21936. p = m[Q - J - 1];
  21937. M = 3;
  21938. if (3 < P) {
  21939. for (M = P; 3 < M; M--)
  21940. if (e[p + M - 1] !== e[h + M - 1]) continue a;
  21941. M = P
  21942. }
  21943. for (; 258 > M && h + M < Z && e[p + M] === e[h + M];)++M;
  21944. M > P && (s = p, P = M);
  21945. if (258 === M) break
  21946. }
  21947. p = new n(P, h - s);
  21948. v ? v.length < p.length ? (I = e[h - 1], z[A++] = I, ++C[I], g(p, 0)) : g(v, -1) : p.length < L ? v = p : g(p, 0)
  21949. } else v ? g(v, -1) : (I = e[h], z[A++] = I, ++C[I])
  21950. }
  21951. m.push(h)
  21952. }
  21953. z[A++] = 256;
  21954. C[256]++;
  21955. d.hma = C;
  21956. d.Zla = G;
  21957. return K ? z.subarray(0, A) : z
  21958. }
  21959. function u(c, d) {
  21960. function e(c) {
  21961. var d = z[c][A[c]];
  21962. d ===
  21963. u ? (e(c + 1), e(c + 1)) : --v[d];
  21964. ++A[c]
  21965. }
  21966. var g = c.length,
  21967. k = new h(572),
  21968. m = new(K ? Uint8Array : Array)(g),
  21969. n, p, s;
  21970. if (!K)
  21971. for (p = 0; p < g; p++) m[p] = 0;
  21972. for (p = 0; p < g; ++p) 0 < c[p] && k.push(p, c[p]);
  21973. g = Array(k.length / 2);
  21974. n = new(K ? Uint32Array : Array)(k.length / 2);
  21975. if (1 === g.length) return m[k.pop().index] = 1, m;
  21976. p = 0;
  21977. for (s = k.length / 2; p < s; ++p) g[p] = k.pop(), n[p] = g[p].value;
  21978. var u = n.length;
  21979. p = new(K ? Uint16Array : Array)(d);
  21980. var k = new(K ? Uint8Array : Array)(d),
  21981. v = new(K ? Uint8Array : Array)(u);
  21982. s = Array(d);
  21983. var z = Array(d),
  21984. A = Array(d),
  21985. B = (1 << d) - u,
  21986. C = 1 << d - 1,
  21987. G, I, L;
  21988. p[d -
  21989. 1] = u;
  21990. for (G = 0; G < d; ++G) B < C ? k[G] = 0 : (k[G] = 1, B -= C), B <<= 1, p[d - 2 - G] = (p[d - 1 - G] / 2 | 0) + u;
  21991. p[0] = k[0];
  21992. s[0] = Array(p[0]);
  21993. z[0] = Array(p[0]);
  21994. for (G = 1; G < d; ++G) p[G] > 2 * p[G - 1] + k[G] && (p[G] = 2 * p[G - 1] + k[G]), s[G] = Array(p[G]), z[G] = Array(p[G]);
  21995. for (B = 0; B < u; ++B) v[B] = d;
  21996. for (C = 0; C < p[d - 1]; ++C) s[d - 1][C] = n[C], z[d - 1][C] = C;
  21997. for (B = 0; B < d; ++B) A[B] = 0;
  21998. 1 === k[d - 1] && (--v[0], ++A[d - 1]);
  21999. for (G = d - 2; 0 <= G; --G) {
  22000. I = B = 0;
  22001. L = A[G + 1];
  22002. for (C = 0; C < p[G]; C++) I = s[G + 1][L] + s[G + 1][L + 1], I > n[B] ? (s[G][C] = I, z[G][C] = u, L += 2) : (s[G][C] = n[B], z[G][C] = B, ++B);
  22003. A[G] = 0;
  22004. 1 === k[G] && e(G)
  22005. }
  22006. n =
  22007. v;
  22008. p = 0;
  22009. for (s = g.length; p < s; ++p) m[g[p].index] = n[p];
  22010. return m
  22011. }
  22012. function v(d) {
  22013. var e = new(K ? Uint16Array : Array)(d.length),
  22014. g = [],
  22015. h = [],
  22016. k = 0,
  22017. m, n, p;
  22018. m = 0;
  22019. for (n = d.length; m < n; m++) g[d[m]] = (g[d[m]] | 0) + 1;
  22020. m = 1;
  22021. for (n = 16; m <= n; m++) h[m] = k, k += g[m] | 0, k > 1 << m && c("overcommitted"), k <<= 1;
  22022. 65536 > k && c("undercommitted");
  22023. m = 0;
  22024. for (n = d.length; m < n; m++)
  22025. for (k = h[d[m]], h[d[m]] += 1, g = e[m] = 0, p = d[m]; g < p; g++) e[m] = e[m] << 1 | k & 1, k >>>= 1;
  22026. return e
  22027. }
  22028. function z(c, d) {
  22029. this.input = c;
  22030. this.a = new(K ? Uint8Array : Array)(32768);
  22031. this.Vf = Z.XP;
  22032. var e = {},
  22033. g;
  22034. !d && (d = {}) || "number" !==
  22035. typeof d.k_ || (this.Vf = d.k_);
  22036. for (g in d) e[g] = d[g];
  22037. e.zQ = this.a;
  22038. this.z = new m(this.input, e)
  22039. }
  22040. function A(d, e) {
  22041. this.YP = [];
  22042. this.hQ = 32768;
  22043. this.wm = this.g = this.G = this.JQ = 0;
  22044. this.input = K ? new Uint8Array(d) : d;
  22045. this.ll = !1;
  22046. this.mQ = Q;
  22047. this.S3 = !1;
  22048. if (e || !(e = {})) e.index && (this.G = e.index), e.UZ && (this.hQ = e.UZ), e.VZ && (this.mQ = e.VZ), e.resize && (this.S3 = e.resize);
  22049. switch (this.mQ) {
  22050. case Oa:
  22051. this.b = 32768;
  22052. this.a = new(K ? Uint8Array : Array)(32768 + this.hQ + 258);
  22053. break;
  22054. case Q:
  22055. this.b = 0;
  22056. this.a = new(K ? Uint8Array : Array)(this.hQ);
  22057. this.Tn = this.Yla;
  22058. this.o3 = this.Mla;
  22059. this.tQ = this.Rla;
  22060. break;
  22061. default:
  22062. c(Error("invalid inflate mode"))
  22063. }
  22064. }
  22065. function B(d, e) {
  22066. for (var g = d.g, h = d.wm, k = d.input, m = d.G, n; h < e;) n = k[m++], n === O && c(Error("input buffer is broken")), g |= n << h, h += 8;
  22067. d.g = g >>> e;
  22068. d.wm = h - e;
  22069. d.G = m;
  22070. return g & (1 << e) - 1
  22071. }
  22072. function C(d, e) {
  22073. for (var g = d.g, h = d.wm, k = d.input, m = d.G, n = e[0], p = e[1], s; h < p;) s = k[m++], s === O && c(Error("input buffer is broken")), g |= s << h, h += 8;
  22074. k = n[g & (1 << p) - 1];
  22075. n = k >>> 16;
  22076. d.g = g >> n;
  22077. d.wm = h - n;
  22078. d.G = m;
  22079. return k & 65535
  22080. }
  22081. function G(c) {
  22082. function d(c, e, g) {
  22083. var h, k, m, n;
  22084. for (n =
  22085. 0; n < c;) switch (h = C(this, e), h) {
  22086. case 16:
  22087. for (m = 3 + B(this, 2); m--;) g[n++] = k;
  22088. break;
  22089. case 17:
  22090. for (m = 3 + B(this, 3); m--;) g[n++] = 0;
  22091. k = 0;
  22092. break;
  22093. case 18:
  22094. for (m = 11 + B(this, 7); m--;) g[n++] = 0;
  22095. k = 0;
  22096. break;
  22097. default:
  22098. k = g[n++] = h
  22099. }
  22100. return g
  22101. }
  22102. var e = B(c, 5) + 257,
  22103. g = B(c, 5) + 1,
  22104. h = B(c, 4) + 4,
  22105. m = new(K ? Uint8Array : Array)(oa.length),
  22106. n;
  22107. for (n = 0; n < h; ++n) m[oa[n]] = B(c, 3);
  22108. h = k(m);
  22109. m = new(K ? Uint8Array : Array)(e);
  22110. n = new(K ? Uint8Array : Array)(g);
  22111. c.tQ(k(d.call(c, e, h, m)), k(d.call(c, g, h, n)))
  22112. }
  22113. function L(d, e) {
  22114. var g, h;
  22115. this.input = d;
  22116. this.G = 0;
  22117. if (e || !(e = {})) e.index && (this.G =
  22118. e.index), e.Nia && (this.qma = e.Nia);
  22119. g = d[this.G++];
  22120. h = d[this.G++];
  22121. switch (g & 15) {
  22122. case Ja:
  22123. this.method = Ja;
  22124. break;
  22125. default:
  22126. c(Error("unsupported compression method"))
  22127. }
  22128. 0 !== ((g << 8) + h) % 31 && c(Error("invalid fcheck flag:" + ((g << 8) + h) % 31));
  22129. h & 32 && c(Error("fdict flag is not supported"));
  22130. this.I3 = new A(d, {
  22131. index: this.G,
  22132. UZ: e.UZ,
  22133. VZ: e.VZ,
  22134. resize: e.resize
  22135. })
  22136. }
  22137. var O = void 0,
  22138. R = !0,
  22139. M = this,
  22140. K = "undefined" !== typeof Uint8Array && "undefined" !== typeof Uint16Array && "undefined" !== typeof Uint32Array;
  22141. g.prototype.Tn = function() {
  22142. var c = this.buffer,
  22143. d, e = c.length,
  22144. g = new(K ? Uint8Array : Array)(e << 1);
  22145. if (K) g.set(c);
  22146. else
  22147. for (d = 0; d < e; ++d) g[d] = c[d];
  22148. return this.buffer = g
  22149. };
  22150. g.prototype.P = function(c, d, e) {
  22151. var g = this.buffer,
  22152. h = this.index,
  22153. k = this.QH,
  22154. m = g[h];
  22155. e && 1 < d && (c = 8 < d ? (W[c & 255] << 24 | W[c >>> 8 & 255] << 16 | W[c >>> 16 & 255] << 8 | W[c >>> 24 & 255]) >> 32 - d : W[c] >> 8 - d);
  22156. if (8 > d + k) m = m << d | c, k += d;
  22157. else
  22158. for (e = 0; e < d; ++e) m = m << 1 | c >> d - e - 1 & 1, 8 === ++k && (k = 0, g[h++] = W[m], m = 0, h === g.length && (g = this.Tn()));
  22159. g[h] = m;
  22160. this.buffer = g;
  22161. this.QH = k;
  22162. this.index = h
  22163. };
  22164. g.prototype.finish = function() {
  22165. var c = this.buffer,
  22166. d =
  22167. this.index,
  22168. e;
  22169. 0 < this.QH && (c[d] <<= 8 - this.QH, c[d] = W[c[d]], d++);
  22170. K ? e = c.subarray(0, d) : (c.length = d, e = c);
  22171. return e
  22172. };
  22173. var P = new(K ? Uint8Array : Array)(256),
  22174. I;
  22175. for (I = 0; 256 > I; ++I) {
  22176. for (var J = I, V = J, ma = 7, J = J >>> 1; J; J >>>= 1) V <<= 1, V |= J & 1, --ma;
  22177. P[I] = (V << ma & 255) >>> 0
  22178. }
  22179. var W = P,
  22180. P = [0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685, 2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995, 2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648, 2227061214, 450548861, 1843258603, 4107580753, 2211677639,
  22181. 325883990, 1684777152, 4251122042, 2321926636, 335633487, 1661365465, 4195302755, 2366115317, 997073096, 1281953886, 3579855332, 2724688242, 1006888145, 1258607687, 3524101629, 2768942443, 901097722, 1119000684, 3686517206, 2898065728, 853044451, 1172266101, 3705015759, 2882616665, 651767980, 1373503546, 3369554304, 3218104598, 565507253, 1454621731, 3485111705, 3099436303, 671266974, 1594198024, 3322730930, 2970347812, 795835527, 1483230225, 3244367275, 3060149565, 1994146192, 31158534, 2563907772, 4023717930, 1907459465, 112637215, 2680153253,
  22182. 3904427059, 2013776290, 251722036, 2517215374, 3775830040, 2137656763, 141376813, 2439277719, 3865271297, 1802195444, 476864866, 2238001368, 4066508878, 1812370925, 453092731, 2181625025, 4111451223, 1706088902, 314042704, 2344532202, 4240017532, 1658658271, 366619977, 2362670323, 4224994405, 1303535960, 984961486, 2747007092, 3569037538, 1256170817, 1037604311, 2765210733, 3554079995, 1131014506, 879679996, 2909243462, 3663771856, 1141124467, 855842277, 2852801631, 3708648649, 1342533948, 654459306, 3188396048, 3373015174, 1466479909, 544179635,
  22183. 3110523913, 3462522015, 1591671054, 702138776, 2966460450, 3352799412, 1504918807, 783551873, 3082640443, 3233442989, 3988292384, 2596254646, 62317068, 1957810842, 3939845945, 2647816111, 81470997, 1943803523, 3814918930, 2489596804, 225274430, 2053790376, 3826175755, 2466906013, 167816743, 2097651377, 4027552580, 2265490386, 503444072, 1762050814, 4150417245, 2154129355, 426522225, 1852507879, 4275313526, 2312317920, 282753626, 1742555852, 4189708143, 2394877945, 397917763, 1622183637, 3604390888, 2714866558, 953729732, 1340076626, 3518719985,
  22184. 2797360999, 1068828381, 1219638859, 3624741850, 2936675148, 906185462, 1090812512, 3747672003, 2825379669, 829329135, 1181335161, 3412177804, 3160834842, 628085408, 1382605366, 3423369109, 3138078467, 570562233, 1426400815, 3317316542, 2998733608, 733239954, 1555261956, 3268935591, 3050360625, 752459403, 1541320221, 2607071920, 3965973030, 1969922972, 40735498, 2617837225, 3943577151, 1913087877, 83908371, 2512341634, 3803740692, 2075208622, 213261112, 2463272603, 3855990285, 2094854071, 198958881, 2262029012, 4057260610, 1759359992, 534414190,
  22185. 2176718541, 4139329115, 1873836001, 414664567, 2282248934, 4279200368, 1711684554, 285281116, 2405801727, 4167216745, 1634467795, 376229701, 2685067896, 3608007406, 1308918612, 956543938, 2808555105, 3495958263, 1231636301, 1047427035, 2932959818, 3654703836, 1088359270, 936918E3, 2847714899, 3736837829, 1202900863, 817233897, 3183342108, 3401237130, 1404277552, 615818150, 3134207493, 3453421203, 1423857449, 601450431, 3009837614, 3294710456, 1567103746, 711928724, 3020668471, 3272380065, 1510334235, 755167117
  22186. ];
  22187. K && new Uint32Array(P);
  22188. h.prototype.getParent =
  22189. function(c) {
  22190. return 2 * ((c - 2) / 4 | 0)
  22191. };
  22192. h.prototype.push = function(c, d) {
  22193. var e, g, h = this.buffer,
  22194. k;
  22195. e = this.length;
  22196. h[this.length++] = d;
  22197. for (h[this.length++] = c; 0 < e;)
  22198. if (g = this.getParent(e), h[e] > h[g]) k = h[e], h[e] = h[g], h[g] = k, k = h[e + 1], h[e + 1] = h[g + 1], h[g + 1] = k, e = g;
  22199. else break;
  22200. return this.length
  22201. };
  22202. h.prototype.pop = function() {
  22203. var c, d, e = this.buffer,
  22204. g, h, k;
  22205. d = e[0];
  22206. c = e[1];
  22207. this.length -= 2;
  22208. e[0] = e[this.length];
  22209. e[1] = e[this.length + 1];
  22210. for (k = 0;;) {
  22211. h = 2 * k + 2;
  22212. if (h >= this.length) break;
  22213. h + 2 < this.length && e[h + 2] > e[h] && (h += 2);
  22214. if (e[h] > e[k]) g = e[k], e[k] =
  22215. e[h], e[h] = g, g = e[k + 1], e[k + 1] = e[h + 1], e[h + 1] = g;
  22216. else break;
  22217. k = h
  22218. }
  22219. return {
  22220. index: c,
  22221. value: d,
  22222. length: this.length
  22223. }
  22224. };
  22225. var fa = 2,
  22226. P = {
  22227. NONE: 0,
  22228. r: 1,
  22229. XP: fa,
  22230. XLa: 3
  22231. },
  22232. ta = [];
  22233. for (I = 0; 288 > I; I++) switch (R) {
  22234. case 143 >= I:
  22235. ta.push([I + 48, 8]);
  22236. break;
  22237. case 255 >= I:
  22238. ta.push([I - 144 + 400, 9]);
  22239. break;
  22240. case 279 >= I:
  22241. ta.push([I - 256 + 0, 7]);
  22242. break;
  22243. case 287 >= I:
  22244. ta.push([I - 280 + 192, 8]);
  22245. break;
  22246. default:
  22247. c("invalid literal: " + I)
  22248. }
  22249. m.prototype.Xr = function() {
  22250. var d, e, h, k, m = this.input;
  22251. switch (this.Vf) {
  22252. case 0:
  22253. h = 0;
  22254. for (k = m.length; h < k;) {
  22255. e = K ? m.subarray(h, h + 65535) : m.slice(h, h + 65535);
  22256. h += e.length;
  22257. var n = h === k,
  22258. p = O,
  22259. z = p = O,
  22260. z = p = O,
  22261. A = this.a,
  22262. B = this.b;
  22263. if (K) {
  22264. for (A = new Uint8Array(this.a.buffer); A.length <= B + e.length + 5;) A = new Uint8Array(A.length << 1);
  22265. A.set(this.a)
  22266. }
  22267. p = n ? 1 : 0;
  22268. A[B++] = p | 0;
  22269. p = e.length;
  22270. z = ~p + 65536 & 65535;
  22271. A[B++] = p & 255;
  22272. A[B++] = p >>> 8 & 255;
  22273. A[B++] = z & 255;
  22274. A[B++] = z >>> 8 & 255;
  22275. if (K) A.set(e, B), B += e.length, A = A.subarray(0, B);
  22276. else {
  22277. p = 0;
  22278. for (z = e.length; p < z; ++p) A[B++] = e[p];
  22279. A.length = B
  22280. }
  22281. this.b = B;
  22282. this.a = A
  22283. }
  22284. break;
  22285. case 1:
  22286. h = new g(new Uint8Array(this.a.buffer), this.b);
  22287. h.P(1, 1, R);
  22288. h.P(1, 2, R);
  22289. m = s(this, m);
  22290. e = 0;
  22291. for (n = m.length; e <
  22292. n; e++)
  22293. if (k = m[e], g.prototype.P.apply(h, ta[k]), 256 < k) h.P(m[++e], m[++e], R), h.P(m[++e], 5), h.P(m[++e], m[++e], R);
  22294. else if (256 === k) break;
  22295. this.a = h.finish();
  22296. this.b = this.a.length;
  22297. break;
  22298. case fa:
  22299. k = new g(new Uint8Array(this.a), this.b);
  22300. var C, G, I, L = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
  22301. P, M, p = Array(19),
  22302. J, A = fa;
  22303. k.P(1, 1, R);
  22304. k.P(A, 2, R);
  22305. m = s(this, m);
  22306. z = u(this.hma, 15);
  22307. P = v(z);
  22308. A = u(this.Zla, 7);
  22309. B = v(A);
  22310. for (C = 286; 257 < C && 0 === z[C - 1]; C--);
  22311. for (G = 30; 1 < G && 0 === A[G - 1]; G--);
  22312. var Q = C,
  22313. Z = G;
  22314. d = new(K ? Uint32Array : Array)(Q + Z);
  22315. var W = new(K ?
  22316. Uint32Array : Array)(316),
  22317. V, Y;
  22318. M = new(K ? Uint8Array : Array)(19);
  22319. for (J = I = 0; J < Q; J++) d[I++] = z[J];
  22320. for (J = 0; J < Z; J++) d[I++] = A[J];
  22321. if (!K)
  22322. for (J = 0, Z = M.length; J < Z; ++J) M[J] = 0;
  22323. J = V = 0;
  22324. for (Z = d.length; J < Z; J += I) {
  22325. for (I = 1; J + I < Z && d[J + I] === d[J]; ++I);
  22326. Q = I;
  22327. if (0 === d[J])
  22328. if (3 > Q)
  22329. for (; 0 < Q--;) W[V++] = 0, M[0]++;
  22330. else
  22331. for (; 0 < Q;) Y = 138 > Q ? Q : 138, Y > Q - 3 && Y < Q && (Y = Q - 3), 10 >= Y ? (W[V++] = 17, W[V++] = Y - 3, M[17]++) : (W[V++] = 18, W[V++] = Y - 11, M[18]++), Q -= Y;
  22332. else if (W[V++] = d[J], M[d[J]]++, Q--, 3 > Q)
  22333. for (; 0 < Q--;) W[V++] = d[J], M[d[J]]++;
  22334. else
  22335. for (; 0 < Q;) Y = 6 > Q ? Q : 6, Y > Q - 3 && Y <
  22336. Q && (Y = Q - 3), W[V++] = 16, W[V++] = Y - 3, M[16]++, Q -= Y
  22337. }
  22338. d = K ? W.subarray(0, V) : W.slice(0, V);
  22339. M = u(M, 7);
  22340. for (J = 0; 19 > J; J++) p[J] = M[L[J]];
  22341. for (I = 19; 4 < I && 0 === p[I - 1]; I--);
  22342. L = v(M);
  22343. k.P(C - 257, 5, R);
  22344. k.P(G - 1, 5, R);
  22345. k.P(I - 4, 4, R);
  22346. for (J = 0; J < I; J++) k.P(p[J], 3, R);
  22347. J = 0;
  22348. for (p = d.length; J < p; J++)
  22349. if (e = d[J], k.P(L[e], M[e], R), 16 <= e) {
  22350. J++;
  22351. switch (e) {
  22352. case 16:
  22353. n = 2;
  22354. break;
  22355. case 17:
  22356. n = 3;
  22357. break;
  22358. case 18:
  22359. n = 7;
  22360. break;
  22361. default:
  22362. c("invalid code: " + e)
  22363. }
  22364. k.P(d[J], n, R)
  22365. }
  22366. n = [P, z];
  22367. B = [B, A];
  22368. e = n[0];
  22369. n = n[1];
  22370. A = B[0];
  22371. P = B[1];
  22372. B = 0;
  22373. for (p = m.length; B < p; ++B)
  22374. if (h = m[B], k.P(e[h], n[h], R), 256 < h) k.P(m[++B],
  22375. m[++B], R), z = m[++B], k.P(A[z], P[z], R), k.P(m[++B], m[++B], R);
  22376. else if (256 === h) break;
  22377. this.a = k.finish();
  22378. this.b = this.a.length;
  22379. break;
  22380. default:
  22381. c("invalid compression type")
  22382. }
  22383. return this.a
  22384. };
  22385. I = [];
  22386. var Y;
  22387. for (Y = 3; 258 >= Y; Y++) J = p(), I[Y] = J[2] << 24 | J[1] << 16 | J[0];
  22388. var wa = K ? new Uint32Array(I) : I,
  22389. Z = P;
  22390. z.prototype.Xr = function() {
  22391. var d, g, h, k, m = 0;
  22392. k = this.a;
  22393. d = Ja;
  22394. switch (d) {
  22395. case Ja:
  22396. g = Math.LOG2E * Math.log(32768) - 8;
  22397. break;
  22398. default:
  22399. c(Error("invalid compression method"))
  22400. }
  22401. g = g << 4 | d;
  22402. k[m++] = g;
  22403. switch (d) {
  22404. case Ja:
  22405. switch (this.Vf) {
  22406. case Z.NONE:
  22407. h = 0;
  22408. break;
  22409. case Z.r:
  22410. h = 1;
  22411. break;
  22412. case Z.XP:
  22413. h = 2;
  22414. break;
  22415. default:
  22416. c(Error("unsupported compression type"))
  22417. }
  22418. break;
  22419. default:
  22420. c(Error("invalid compression method"))
  22421. }
  22422. d = h << 6 | 0;
  22423. k[m++] = d | 31 - (256 * g + d) % 31;
  22424. d = e(this.input);
  22425. this.z.b = m;
  22426. k = this.z.Xr();
  22427. m = k.length;
  22428. K && (k = new Uint8Array(k.buffer), k.length <= m + 4 && (this.a = new Uint8Array(k.length + 4), this.a.set(k), k = this.a), k = k.subarray(0, m + 4));
  22429. k[m++] = d >> 24 & 255;
  22430. k[m++] = d >> 16 & 255;
  22431. k[m++] = d >> 8 & 255;
  22432. k[m++] = d & 255;
  22433. return k
  22434. };
  22435. d("Zlib.Deflate", z);
  22436. d("Zlib.Deflate.compress", function(c, d) {
  22437. return (new z(c,
  22438. d)).Xr()
  22439. });
  22440. d("Zlib.Deflate.CompressionType", Z);
  22441. d("Zlib.Deflate.CompressionType.NONE", Z.NONE);
  22442. d("Zlib.Deflate.CompressionType.FIXED", Z.r);
  22443. d("Zlib.Deflate.CompressionType.DYNAMIC", Z.XP);
  22444. var Oa = 0,
  22445. Q = 1,
  22446. P = {
  22447. Uka: Oa,
  22448. Hja: Q
  22449. };
  22450. A.prototype.AQ = function() {
  22451. for (; !this.ll;) {
  22452. var d = B(this, 3);
  22453. d & 1 && (this.ll = R);
  22454. d >>>= 1;
  22455. switch (d) {
  22456. case 0:
  22457. var d = this.input,
  22458. e = this.G,
  22459. g = this.a,
  22460. h = this.b,
  22461. k = O,
  22462. m = O,
  22463. n = O,
  22464. p = g.length,
  22465. k = O;
  22466. this.wm = this.g = 0;
  22467. k = d[e++];
  22468. k === O && c(Error("invalid uncompressed block header: LEN (first byte)"));
  22469. m = k;
  22470. k = d[e++];
  22471. k === O &&
  22472. c(Error("invalid uncompressed block header: LEN (second byte)"));
  22473. m |= k << 8;
  22474. k = d[e++];
  22475. k === O && c(Error("invalid uncompressed block header: NLEN (first byte)"));
  22476. n = k;
  22477. k = d[e++];
  22478. k === O && c(Error("invalid uncompressed block header: NLEN (second byte)"));
  22479. n |= k << 8;
  22480. m === ~n && c(Error("invalid uncompressed block header: length verify"));
  22481. e + m > d.length && c(Error("input buffer is broken"));
  22482. switch (this.mQ) {
  22483. case Oa:
  22484. for (; h + m > g.length;) {
  22485. k = p - h;
  22486. m -= k;
  22487. if (K) g.set(d.subarray(e, e + k), h), h += k, e += k;
  22488. else
  22489. for (; k--;) g[h++] = d[e++];
  22490. this.b = h;
  22491. g = this.Tn();
  22492. h = this.b
  22493. }
  22494. break;
  22495. case Q:
  22496. for (; h + m > g.length;) g = this.Tn({
  22497. ga: 2
  22498. });
  22499. break;
  22500. default:
  22501. c(Error("invalid inflate mode"))
  22502. }
  22503. if (K) g.set(d.subarray(e, e + m), h), h += m, e += m;
  22504. else
  22505. for (; m--;) g[h++] = d[e++];
  22506. this.G = e;
  22507. this.b = h;
  22508. this.a = g;
  22509. break;
  22510. case 1:
  22511. this.tQ(mb, nb);
  22512. break;
  22513. case 2:
  22514. G(this);
  22515. break;
  22516. default:
  22517. c(Error("unknown BTYPE: " + d))
  22518. }
  22519. }
  22520. return this.o3()
  22521. };
  22522. I = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  22523. var oa = K ? new Uint16Array(I) : I;
  22524. I = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258,
  22525. 258
  22526. ];
  22527. var ob = K ? new Uint16Array(I) : I;
  22528. I = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0];
  22529. var Pa = K ? new Uint8Array(I) : I;
  22530. I = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577];
  22531. var Ub = K ? new Uint16Array(I) : I;
  22532. I = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];
  22533. var za = K ? new Uint8Array(I) : I;
  22534. I = new(K ? Uint8Array : Array)(288);
  22535. J = 0;
  22536. for (V = I.length; J < V; ++J) I[J] = 143 >= J ? 8 : 255 >= J ? 9 : 279 >= J ? 7 : 8;
  22537. var mb = k(I);
  22538. I = new(K ? Uint8Array :
  22539. Array)(30);
  22540. J = 0;
  22541. for (V = I.length; J < V; ++J) I[J] = 5;
  22542. var nb = k(I);
  22543. A.prototype.tQ = function(c, d) {
  22544. var e = this.a,
  22545. g = this.b;
  22546. this.Da = c;
  22547. for (var h = e.length - 258, k, m, n; 256 !== (k = C(this, c));)
  22548. if (256 > k) g >= h && (this.b = g, e = this.Tn(), g = this.b), e[g++] = k;
  22549. else
  22550. for (k -= 257, n = ob[k], 0 < Pa[k] && (n += B(this, Pa[k])), k = C(this, d), m = Ub[k], 0 < za[k] && (m += B(this, za[k])), g >= h && (this.b = g, e = this.Tn(), g = this.b); n--;) e[g] = e[g++-m];
  22551. for (; 8 <= this.wm;) this.wm -= 8, this.G--;
  22552. this.b = g
  22553. };
  22554. A.prototype.Rla = function(c, d) {
  22555. var e = this.a,
  22556. g = this.b;
  22557. this.Da = c;
  22558. for (var h = e.length,
  22559. k, m, n; 256 !== (k = C(this, c));)
  22560. if (256 > k) g >= h && (e = this.Tn(), h = e.length), e[g++] = k;
  22561. else
  22562. for (k -= 257, n = ob[k], 0 < Pa[k] && (n += B(this, Pa[k])), k = C(this, d), m = Ub[k], 0 < za[k] && (m += B(this, za[k])), g + n > h && (e = this.Tn(), h = e.length); n--;) e[g] = e[g++-m];
  22563. for (; 8 <= this.wm;) this.wm -= 8, this.G--;
  22564. this.b = g
  22565. };
  22566. A.prototype.Tn = function() {
  22567. var c = new(K ? Uint8Array : Array)(this.b - 32768),
  22568. d = this.b - 32768,
  22569. e, g, h = this.a;
  22570. if (K) c.set(h.subarray(32768, c.length));
  22571. else
  22572. for (e = 0, g = c.length; e < g; ++e) c[e] = h[e + 32768];
  22573. this.YP.push(c);
  22574. this.JQ += c.length;
  22575. if (K) h.set(h.subarray(d,
  22576. d + 32768));
  22577. else
  22578. for (e = 0; 32768 > e; ++e) h[e] = h[d + e];
  22579. this.b = 32768;
  22580. return h
  22581. };
  22582. A.prototype.Yla = function(c) {
  22583. var d, e = this.input.length / this.G + 1 | 0,
  22584. g, h, k, m = this.input,
  22585. n = this.a;
  22586. c && ("number" === typeof c.ga && (e = c.ga), "number" === typeof c.Fla && (e += c.Fla));
  22587. 2 > e ? (g = (m.length - this.G) / this.Da[2], k = g / 2 * 258 | 0, h = k < n.length ? n.length + k : n.length << 1) : h = n.length * e;
  22588. K ? (d = new Uint8Array(h), d.set(n)) : d = n;
  22589. return this.a = d
  22590. };
  22591. A.prototype.o3 = function() {
  22592. var c = 0,
  22593. d = this.a,
  22594. e = this.YP,
  22595. g, h = new(K ? Uint8Array : Array)(this.JQ + (this.b - 32768)),
  22596. k, m, n,
  22597. p;
  22598. if (0 === e.length) return K ? this.a.subarray(32768, this.b) : this.a.slice(32768, this.b);
  22599. k = 0;
  22600. for (m = e.length; k < m; ++k)
  22601. for (g = e[k], n = 0, p = g.length; n < p; ++n) h[c++] = g[n];
  22602. k = 32768;
  22603. for (m = this.b; k < m; ++k) h[c++] = d[k];
  22604. this.YP = [];
  22605. return this.buffer = h
  22606. };
  22607. A.prototype.Mla = function() {
  22608. var c, d = this.b;
  22609. K ? this.S3 ? (c = new Uint8Array(d), c.set(this.a.subarray(0, d))) : c = this.a.subarray(0, d) : (this.a.length > d && (this.a.length = d), c = this.a);
  22610. return this.buffer = c
  22611. };
  22612. L.prototype.AQ = function() {
  22613. var d = this.input,
  22614. g, h;
  22615. g = this.I3.AQ();
  22616. this.G = this.I3.G;
  22617. this.qma && (h = (d[this.G++] << 24 | d[this.G++] << 16 | d[this.G++] << 8 | d[this.G++]) >>> 0, h !== e(g) && c(Error("invalid adler-32 checksum")));
  22618. return g
  22619. };
  22620. d("Zlib.Inflate", L);
  22621. d("Zlib.Inflate.BufferType", P);
  22622. P.tJa = P.Hja;
  22623. P.dKa = P.Uka;
  22624. d("Zlib.Inflate.prototype.decompress", L.prototype.AQ);
  22625. P = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  22626. K && new Uint16Array(P);
  22627. P = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258, 258];
  22628. K && new Uint16Array(P);
  22629. P = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3,
  22630. 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0
  22631. ];
  22632. K && new Uint8Array(P);
  22633. P = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577];
  22634. K && new Uint16Array(P);
  22635. P = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];
  22636. K && new Uint8Array(P);
  22637. P = new(K ? Uint8Array : Array)(288);
  22638. I = 0;
  22639. for (J = P.length; I < J; ++I) P[I] = 143 >= I ? 8 : 255 >= I ? 9 : 279 >= I ? 7 : 8;
  22640. k(P);
  22641. P = new(K ? Uint8Array : Array)(30);
  22642. I = 0;
  22643. for (J = P.length; I < J; ++I) P[I] = 5;
  22644. k(P);
  22645. var Ja = 8
  22646. }).call(this);
  22647. q = window;
  22648. q = q.oNa = q.Zlib;
  22649. q.Y4 = q.Deflate;
  22650. q.Y4.wQa = q.Y4.compress;
  22651. q.Iy = q.Inflate;
  22652. q.Iy.uKa = q.Iy.BufferType;
  22653. q.Iy.prototype.Hca = q.Iy.prototype.decompress;
  22654. f.Zma = f.N.extend({
  22655. ctor: function(c) {
  22656. var d, e, g, h;
  22657. this.data = c;
  22658. this.lc = 8;
  22659. this.C1 = [];
  22660. this.HP = [];
  22661. this.oy = {};
  22662. this.wd = null;
  22663. this.text = {};
  22664. for (g = null;;) {
  22665. d = this.bs();
  22666. h = c = void 0;
  22667. h = [];
  22668. for (c = 0; 4 > c; ++c) h.push(String.fromCharCode(this.data[this.lc++]));
  22669. c = h.join("");
  22670. switch (c) {
  22671. case "IHDR":
  22672. this.width = this.bs();
  22673. this.height = this.bs();
  22674. this.nB = this.data[this.lc++];
  22675. this.h_ = this.data[this.lc++];
  22676. this.lc++;
  22677. this.lc++;
  22678. this.lc++;
  22679. break;
  22680. case "acTL":
  22681. this.wd = {
  22682. F_a: this.bs(),
  22683. G_a: this.bs() || Infinity,
  22684. frames: []
  22685. };
  22686. break;
  22687. case "PLTE":
  22688. this.C1 =
  22689. this.CI(d);
  22690. break;
  22691. case "fcTL":
  22692. g && this.wd.frames.push(g);
  22693. this.lc += 4;
  22694. g = {
  22695. width: this.bs(),
  22696. height: this.bs(),
  22697. Pia: this.bs(),
  22698. Qia: this.bs()
  22699. };
  22700. c = this.Wfa();
  22701. d = this.Wfa() || 100;
  22702. g.vm = 1E3 * c / d;
  22703. g.ZQa = this.data[this.lc++];
  22704. g.WPa = this.data[this.lc++];
  22705. g.data = [];
  22706. break;
  22707. case "IDAT":
  22708. case "fdAT":
  22709. "fdAT" === c && (this.lc += 4, d -= 4);
  22710. c = (null != g ? g.data : void 0) || this.HP;
  22711. for (h = 0; 0 <= d ? h < d : h > d; 0 <= d ? ++h : --h) c.push(this.data[this.lc++]);
  22712. break;
  22713. case "tRNS":
  22714. this.oy = {};
  22715. switch (this.h_) {
  22716. case 3:
  22717. this.oy.C0 = this.CI(d);
  22718. d = 255 - this.oy.C0.length;
  22719. if (0 < d)
  22720. for (c =
  22721. 0; 0 <= d ? c < d : c > d; 0 <= d ? ++c : --c) this.oy.C0.push(255);
  22722. break;
  22723. case 0:
  22724. this.oy.VWa = this.CI(d)[0];
  22725. break;
  22726. case 2:
  22727. this.oy.O1a = this.CI(d)
  22728. }
  22729. break;
  22730. case "tEXt":
  22731. h = this.CI(d);
  22732. d = h.indexOf(0);
  22733. c = String.fromCharCode.apply(String, h.slice(0, d));
  22734. this.text[c] = String.fromCharCode.apply(String, h.slice(d + 1));
  22735. break;
  22736. case "IEND":
  22737. g && this.wd.frames.push(g);
  22738. a: {
  22739. switch (this.h_) {
  22740. case 0:
  22741. case 3:
  22742. case 4:
  22743. g = 1;
  22744. break a;
  22745. case 2:
  22746. case 6:
  22747. g = 3;
  22748. break a
  22749. }
  22750. g = void 0
  22751. }
  22752. this.D = g;
  22753. this.oea = 4 === (e = this.h_) || 6 === e;
  22754. e = this.D + (this.oea ? 1 : 0);
  22755. this.YEa = this.nB * e;
  22756. Uint8Array !=
  22757. Array && (this.HP = new Uint8Array(this.HP));
  22758. return;
  22759. default:
  22760. this.lc += d
  22761. }
  22762. this.lc += 4;
  22763. if (this.lc > this.data.length) throw Error("Incomplete or corrupt PNG file");
  22764. }
  22765. },
  22766. CI: function(c) {
  22767. var d, e;
  22768. e = [];
  22769. for (d = 0; 0 <= c ? d < c : d > c; 0 <= c ? ++d : --d) e.push(this.data[this.lc++]);
  22770. return e
  22771. },
  22772. bs: function() {
  22773. var c, d, e, g;
  22774. c = this.data[this.lc++] << 24;
  22775. d = this.data[this.lc++] << 16;
  22776. e = this.data[this.lc++] << 8;
  22777. g = this.data[this.lc++];
  22778. return c | d | e | g
  22779. },
  22780. Wfa: function() {
  22781. var c, d;
  22782. c = this.data[this.lc++] << 8;
  22783. d = this.data[this.lc++];
  22784. return c | d
  22785. },
  22786. Ixa: function(c) {
  22787. var d,
  22788. e, g, h, k, m, n, p, s, u, v, z, A, B, C;
  22789. null == c && (c = this.HP);
  22790. if (0 === c.length) return new Uint8Array(0);
  22791. c = (new Zlib.Iy(c, {
  22792. index: 0,
  22793. Nia: !1
  22794. })).Hca();
  22795. p = this.YEa / 8;
  22796. z = p * this.width;
  22797. s = new Uint8Array(z * this.height);
  22798. m = c.length;
  22799. for (e = u = v = 0; u < m;) {
  22800. switch (c[u++]) {
  22801. case 0:
  22802. for (d = 0; d < z; d += 1) s[e++] = c[u++];
  22803. break;
  22804. case 1:
  22805. for (h = A = 0; A < z; h = A += 1) d = c[u++], k = h < p ? 0 : s[e - p], s[e++] = (d + k) % 256;
  22806. break;
  22807. case 2:
  22808. for (h = k = 0; k < z; h = k += 1) d = c[u++], g = (h - h % p) / p, A = v && s[(v - 1) * z + g * p + h % p], s[e++] = (A + d) % 256;
  22809. break;
  22810. case 3:
  22811. for (h = C = 0; C < z; h = C += 1) d = c[u++], g = (h - h % p) / p, k =
  22812. h < p ? 0 : s[e - p], A = v && s[(v - 1) * z + g * p + h % p], s[e++] = (d + Math.floor((k + A) / 2)) % 256;
  22813. break;
  22814. case 4:
  22815. for (h = C = 0; C < z; h = C += 1) d = c[u++], g = (h - h % p) / p, k = h < p ? 0 : s[e - p], 0 === v ? A = B = 0 : (A = s[(v - 1) * z + g * p + h % p], B = g && s[(v - 1) * z + (g - 1) * p + h % p]), n = k + A - B, h = Math.abs(n - k), g = Math.abs(n - A), n = Math.abs(n - B), k = h <= g && h <= n ? k : g <= n ? A : B, s[e++] = (d + k) % 256;
  22816. break;
  22817. default:
  22818. throw Error("Invalid filter algorithm: " + c[u - 1]);
  22819. }
  22820. v++
  22821. }
  22822. return s
  22823. },
  22824. ixa: function(c, d) {
  22825. var e, g, h, k, m, n, p, s;
  22826. g = this.D;
  22827. s = null;
  22828. e = this.oea;
  22829. this.C1.length && (s = null != (h = this.Yqa) ? h : this.Yqa = this.Hxa(),
  22830. g = 4, e = !0);
  22831. h = c.data || c;
  22832. p = h.length;
  22833. m = s || d;
  22834. k = n = 0;
  22835. if (1 === g)
  22836. for (; k < p;) g = s ? 4 * d[k / 4] : n, n = m[g++], h[k++] = n, h[k++] = n, h[k++] = n, h[k++] = e ? m[g++] : 255, n = g;
  22837. else
  22838. for (; k < p;) g = s ? 4 * d[k / 4] : n, h[k++] = m[g++], h[k++] = m[g++], h[k++] = m[g++], h[k++] = e ? m[g++] : 255, n = g
  22839. },
  22840. Hxa: function() {
  22841. var c, d, e, g, h, k, m, n, p;
  22842. e = this.C1;
  22843. k = this.oy.C0 || [];
  22844. h = new Uint8Array((k.length || 0) + e.length);
  22845. d = m = c = g = 0;
  22846. for (n = e.length; m < n; d = m += 3) h[g++] = e[d], h[g++] = e[d + 1], h[g++] = e[d + 2], h[g++] = null != (p = k[c++]) ? p : 255;
  22847. return h
  22848. },
  22849. YFa: function(c) {
  22850. var d;
  22851. c.width = this.width;
  22852. c.height =
  22853. this.height;
  22854. c = c.getContext("2d");
  22855. d = c.createImageData(this.width, this.height);
  22856. this.ixa(d, this.Ixa());
  22857. return c.putImageData(d, 0, 0)
  22858. }
  22859. });
  22860. f.IIa = {
  22861. U$: !1,
  22862. Kw: null,
  22863. fW: [],
  22864. getUint8: function(c) {
  22865. return this.Kw[c]
  22866. },
  22867. getUint16: function(c) {
  22868. return this.U$ ? this.Kw[c + 1] << 8 | this.Kw[c] : this.Kw[c] << 8 | this.Kw[c + 1]
  22869. },
  22870. getUint32: function(c) {
  22871. var d = this.Kw;
  22872. return this.U$ ? d[c + 3] << 24 | d[c + 2] << 16 | d[c + 1] << 8 | d[c] : d[c] << 24 | d[c + 1] << 16 | d[c + 2] << 8 | d[c + 3]
  22873. },
  22874. Uwa: function() {
  22875. var c = this.getUint16(0);
  22876. if (18761 === c) this.i1 = !0;
  22877. else if (19789 === c) this.i1 = !1;
  22878. else throw console.log(c), TypeError("Invalid byte order value.");
  22879. return this.i1
  22880. },
  22881. $Ba: function() {
  22882. if (42 !== this.getUint16(2)) throw RangeError("You forgot your towel!");
  22883. return !0
  22884. },
  22885. Wza: function(c) {
  22886. var d = this.cza;
  22887. return c in d ? d[c] : null
  22888. },
  22889. Uza: function(c) {
  22890. var d = this.bza;
  22891. if (c in d) return d[c];
  22892. console.log("Unknown Field Tag:", c);
  22893. return "Tag" + c
  22894. },
  22895. Vza: function(c) {
  22896. return -1 !== ["BYTE", "ASCII", "SBYTE", "UNDEFINED"].indexOf(c) ? 1 : -1 !== ["SHORT", "SSHORT"].indexOf(c) ? 2 : -1 !== ["LONG", "SLONG", "FLOAT"].indexOf(c) ? 4 : -1 !== ["RATIONAL", "SRATIONAL", "DOUBLE"].indexOf(c) ? 8 : null
  22897. },
  22898. Xza: function(c, d, e, g) {
  22899. c = [];
  22900. var h = this.Vza(d);
  22901. if (4 >= h * e)!1 === this.i1 ? c.push(g >>> 8 * (4 - h)) : c.push(g);
  22902. else
  22903. for (var k = 0; k <
  22904. e; k++) {
  22905. var m = h * k;
  22906. 8 <= h ? -1 !== ["RATIONAL", "SRATIONAL"].indexOf(d) ? (c.push(this.getUint32(g + m)), c.push(this.getUint32(g + m + 4))) : f.log("Can't handle this field type or size") : c.push(this.oda(h, g + m))
  22907. }
  22908. "ASCII" === d && c.forEach(function(c, d, e) {
  22909. e[d] = String.fromCharCode(c)
  22910. });
  22911. return c
  22912. },
  22913. oda: function(c, d) {
  22914. if (0 >= c) f.log("No bytes requested");
  22915. else {
  22916. if (1 >= c) return this.getUint8(d);
  22917. if (2 >= c) return this.getUint16(d);
  22918. if (3 >= c) return this.getUint32(d) >>> 8;
  22919. if (4 >= c) return this.getUint32(d);
  22920. f.log("Too many bytes requested")
  22921. }
  22922. },
  22923. Cza: function(c, d, e) {
  22924. e = e || 0;
  22925. d += Math.floor(e / 8);
  22926. var g = e + c;
  22927. c = 32 - c;
  22928. var h, k;
  22929. 0 >= g ? console.log("No bits requested") : 8 >= g ? (h = 24 + e, k = this.getUint8(d)) : 16 >= g ? (h = 16 + e, k = this.getUint16(d)) : 32 >= g ? (h = e, k = this.getUint32(d)) : console.log("Too many bits requested");
  22930. return {
  22931. bits: k << h >>> c,
  22932. byteOffset: d + Math.floor(g / 8),
  22933. bitOffset: g % 8
  22934. }
  22935. },
  22936. Ofa: function(c) {
  22937. var d = this.getUint16(c),
  22938. e = [];
  22939. c += 2;
  22940. for (var g = 0; g < d; c += 12, g++) {
  22941. var h = this.getUint16(c),
  22942. k = this.getUint16(c + 2),
  22943. m = this.getUint32(c + 4),
  22944. n = this.getUint32(c + 8),
  22945. h = this.Uza(h),
  22946. k = this.Wza(k),
  22947. m = this.Xza(h, k, m, n);
  22948. e[h] = {
  22949. type: k,
  22950. po: m
  22951. }
  22952. }
  22953. this.fW.push(e);
  22954. d = this.getUint32(c);
  22955. 0 !== d && this.Ofa(d)
  22956. },
  22957. hx: function(c, d) {
  22958. var e = Math.pow(2, 8 - d);
  22959. return Math.floor(c * e + (e - 1))
  22960. },
  22961. VEa: function(c, d) {
  22962. d = d || f.fd("canvas");
  22963. this.Kw = c;
  22964. this.canvas = d;
  22965. this.Uwa();
  22966. if (this.$Ba()) {
  22967. var e = this.getUint32(4);
  22968. this.fW.length = 0;
  22969. this.Ofa(e);
  22970. var g = this.fW[0],
  22971. e = g.ImageWidth.po[0],
  22972. h = g.ImageLength.po[0];
  22973. this.canvas.width = e;
  22974. this.canvas.height = h;
  22975. var k = [],
  22976. m = g.Compression ? g.Compression.po[0] : 1,
  22977. n = g.SamplesPerPixel.po[0],
  22978. p = [],
  22979. s = 0,
  22980. u = !1;
  22981. g.BitsPerSample.po.forEach(function(c,
  22982. d) {
  22983. p[d] = {
  22984. oB: c,
  22985. AP: !1,
  22986. bH: void 0
  22987. };
  22988. 0 === c % 8 && (p[d].AP = !0, p[d].bH = c / 8);
  22989. s += c
  22990. }, this);
  22991. if (0 === s % 8) var u = !0,
  22992. v = s / 8;
  22993. var z = g.StripOffsets.po,
  22994. A = z.length;
  22995. if (g.StripByteCounts) var B = g.StripByteCounts.po;
  22996. else if (f.log("Missing StripByteCounts!"), 1 === A) B = [Math.ceil(e * h * s / 8)];
  22997. else throw Error("Cannot recover from missing StripByteCounts");
  22998. for (var C = 0; C < A; C++) {
  22999. var G = z[C];
  23000. k[C] = [];
  23001. for (var L = B[C], O = 0, R = 0, M = 1, K = !0, P = [], I = 0, J = 0, V = 0; O < L; O += M) switch (m) {
  23002. case 1:
  23003. M = 0;
  23004. for (P = []; M < n; M++)
  23005. if (p[M].AP) P.push(this.oda(p[M].bH, G + O + p[M].bH *
  23006. M));
  23007. else {
  23008. var ma = this.Cza(p[M].oB, G + O, R);
  23009. P.push(ma.nB);
  23010. O = ma.byteOffset - G;
  23011. R = ma.UPa;
  23012. throw RangeError("Cannot handle sub-byte bits per sample");
  23013. }
  23014. k[C].push(P);
  23015. if (u) M = v;
  23016. else throw M = 0, RangeError("Cannot handle sub-byte bits per pixel");
  23017. break;
  23018. case 32773:
  23019. if (K) {
  23020. var K = !1,
  23021. W = 1,
  23022. fa = 1,
  23023. M = this.getInt8(G + O);
  23024. 0 <= M && 127 >= M ? W = M + 1 : -127 <= M && -1 >= M ? fa = -M + 1 : K = !0
  23025. } else {
  23026. for (var ta = this.getUint8(G + O), M = 0; M < fa; M++) {
  23027. if (p[J].AP) V = V << 8 * I | ta, I++, I === p[J].bH && (P.push(V), V = I = 0, J++);
  23028. else throw RangeError("Cannot handle sub-byte bits per sample");
  23029. J === n && (k[C].push(P), P = [], J = 0)
  23030. }
  23031. W--;
  23032. 0 === W && (K = !0)
  23033. }
  23034. M = 1
  23035. }
  23036. }
  23037. if (d.getContext) {
  23038. v = this.canvas.getContext("2d");
  23039. v.fillStyle = "rgba(255, 255, 255, 0)";
  23040. C = g.RowsPerStrip ? g.RowsPerStrip.po[0] : h;
  23041. G = k.length;
  23042. h %= C;
  23043. h = 0 === h ? C : h;
  23044. O = C;
  23045. m = 0;
  23046. P = g.PhotometricInterpretation.po[0];
  23047. W = [];
  23048. fa = 0;
  23049. g.ExtraSamples && (W = g.ExtraSamples.po, fa = W.length);
  23050. if (g.ColorMap) var ma = g.ColorMap.po,
  23051. Y = Math.pow(2, p[0].oB);
  23052. for (C = 0; C < G; C++) {
  23053. C + 1 === G && (O = h);
  23054. g = k[C].length;
  23055. m *= C;
  23056. for (u = n = 0; n < O, u < g; n++)
  23057. for (z = 0; z < e; z++, u++) {
  23058. B = k[C][u];
  23059. K = R = L = 0;
  23060. A = 1;
  23061. if (0 < fa)
  23062. for (L = 0; L <
  23063. fa; L++)
  23064. if (1 === W[L] || 2 === W[L]) {
  23065. A = B[3 + L] / 256;
  23066. break
  23067. }
  23068. switch (P) {
  23069. case 0:
  23070. if (p[0].AP) var wa = Math.pow(16, 2 * p[0].bH);
  23071. B.forEach(function(c, d, e) {
  23072. e[d] = wa - c
  23073. });
  23074. case 1:
  23075. L = R = K = this.hx(B[0], p[0].oB);
  23076. break;
  23077. case 2:
  23078. L = this.hx(B[0], p[0].oB);
  23079. R = this.hx(B[1], p[1].oB);
  23080. K = this.hx(B[2], p[2].oB);
  23081. break;
  23082. case 3:
  23083. if (void 0 === ma) throw Error("Palette image missing color map");
  23084. B = B[0];
  23085. L = this.hx(ma[B], 16);
  23086. R = this.hx(ma[Y + B], 16);
  23087. K = this.hx(ma[2 * Y + B], 16);
  23088. break;
  23089. default:
  23090. throw RangeError("Unknown Photometric Interpretation:", P);
  23091. }
  23092. v.fillStyle = "rgba(" +
  23093. L + ", " + R + ", " + K + ", " + A + ")";
  23094. v.fillRect(z, m + n, 1, 1)
  23095. }
  23096. m = O
  23097. }
  23098. }
  23099. return this.canvas
  23100. }
  23101. },
  23102. bza: {
  23103. 315: "Artist",
  23104. 258: "BitsPerSample",
  23105. 265: "CellLength",
  23106. 264: "CellWidth",
  23107. 320: "ColorMap",
  23108. 259: "Compression",
  23109. 33432: "Copyright",
  23110. 306: "DateTime",
  23111. 338: "ExtraSamples",
  23112. 266: "FillOrder",
  23113. 289: "FreeByteCounts",
  23114. 288: "FreeOffsets",
  23115. 291: "GrayResponseCurve",
  23116. 290: "GrayResponseUnit",
  23117. 316: "HostComputer",
  23118. 270: "ImageDescription",
  23119. 257: "ImageLength",
  23120. 256: "ImageWidth",
  23121. 271: "Make",
  23122. 281: "MaxSampleValue",
  23123. 280: "MinSampleValue",
  23124. 272: "Model",
  23125. 254: "NewSubfileType",
  23126. 274: "Orientation",
  23127. 262: "PhotometricInterpretation",
  23128. 284: "PlanarConfiguration",
  23129. 296: "ResolutionUnit",
  23130. 278: "RowsPerStrip",
  23131. 277: "SamplesPerPixel",
  23132. 305: "Software",
  23133. 279: "StripByteCounts",
  23134. 273: "StripOffsets",
  23135. 255: "SubfileType",
  23136. 263: "Threshholding",
  23137. 282: "XResolution",
  23138. 283: "YResolution",
  23139. 326: "BadFaxLines",
  23140. 327: "CleanFaxData",
  23141. 343: "ClipPath",
  23142. 328: "ConsecutiveBadFaxLines",
  23143. 433: "Decode",
  23144. 434: "DefaultImageColor",
  23145. 269: "DocumentName",
  23146. 336: "DotRange",
  23147. 321: "HalftoneHints",
  23148. 346: "Indexed",
  23149. 347: "JPEGTables",
  23150. 285: "PageName",
  23151. 297: "PageNumber",
  23152. 317: "Predictor",
  23153. 319: "PrimaryChromaticities",
  23154. 532: "ReferenceBlackWhite",
  23155. 339: "SampleFormat",
  23156. 559: "StripRowCounts",
  23157. 330: "SubIFDs",
  23158. 292: "T4Options",
  23159. 293: "T6Options",
  23160. 325: "TileByteCounts",
  23161. 323: "TileLength",
  23162. 324: "TileOffsets",
  23163. 322: "TileWidth",
  23164. 301: "TransferFunction",
  23165. 318: "WhitePoint",
  23166. 344: "XClipPathUnits",
  23167. 286: "XPosition",
  23168. 529: "YCbCrCoefficients",
  23169. 531: "YCbCrPositioning",
  23170. 530: "YCbCrSubSampling",
  23171. 345: "YClipPathUnits",
  23172. 287: "YPosition",
  23173. 37378: "ApertureValue",
  23174. 40961: "ColorSpace",
  23175. 36868: "DateTimeDigitized",
  23176. 36867: "DateTimeOriginal",
  23177. 34665: "Exif IFD",
  23178. 36864: "ExifVersion",
  23179. 33434: "ExposureTime",
  23180. 41728: "FileSource",
  23181. 37385: "Flash",
  23182. 40960: "FlashpixVersion",
  23183. 33437: "FNumber",
  23184. 42016: "ImageUniqueID",
  23185. 37384: "LightSource",
  23186. 37500: "MakerNote",
  23187. 37377: "ShutterSpeedValue",
  23188. 37510: "UserComment",
  23189. 33723: "IPTC",
  23190. 34675: "ICC Profile",
  23191. 700: "XMP",
  23192. 42112: "GDAL_METADATA",
  23193. 42113: "GDAL_NODATA",
  23194. 34377: "Photoshop"
  23195. },
  23196. cza: {
  23197. 1: "BYTE",
  23198. 2: "ASCII",
  23199. 3: "SHORT",
  23200. 4: "LONG",
  23201. 5: "RATIONAL",
  23202. 6: "SBYTE",
  23203. 7: "UNDEFINED",
  23204. 8: "SSHORT",
  23205. 9: "SLONG",
  23206. 10: "SRATIONAL",
  23207. 11: "FLOAT",
  23208. 12: "DOUBLE"
  23209. }
  23210. };
  23211. f.Jl = function(c, d, e, g, h, k, m, n, p, s, u, v) {
  23212. this.lc = c ? c : r(0, 0);
  23213. this.startPos = d ? d : r(0, 0);
  23214. this.color = e ? e : {
  23215. r: 0,
  23216. g: 0,
  23217. b: 0,
  23218. a: 255
  23219. };
  23220. this.jH = g ? g : {
  23221. r: 0,
  23222. g: 0,
  23223. b: 0,
  23224. a: 255
  23225. };
  23226. this.size = h || 0;
  23227. this.v_ = k || 0;
  23228. this.rotation = m || 0;
  23229. this.Lca = n || 0;
  23230. this.Su = p || 0;
  23231. this.atlasIndex = s || 0;
  23232. this.ae = u ? u : new f.Jl.jT;
  23233. this.th = v ? v : new f.Jl.kT;
  23234. this.Iea = !1;
  23235. this.nH = r(0, 0)
  23236. };
  23237. f.Jl.jT = function(c, d, e) {
  23238. this.dir = c ? c : r(0, 0);
  23239. this.radialAccel = d || 0;
  23240. this.tangentialAccel = e || 0
  23241. };
  23242. f.Jl.kT = function(c, d, e, g) {
  23243. this.sm = c || 0;
  23244. this.Jca = d || 0;
  23245. this.BI = e || 0;
  23246. this.Kca = g || 0
  23247. };
  23248. f.Jl.GK = [r(), r(), r(), r()];
  23249. f.A = f.v.extend({
  23250. jN: "",
  23251. Fc: 0,
  23252. n9: !1,
  23253. ae: null,
  23254. th: null,
  23255. ta: "ParticleSystem",
  23256. CX: r(0, 0),
  23257. Ct: null,
  23258. Mv: 0,
  23259. Vj: 0,
  23260. Aa: null,
  23261. atlasIndex: 0,
  23262. Rw: !1,
  23263. RK: 0,
  23264. WO: null,
  23265. GR: null,
  23266. eA: !1,
  23267. Rg: 0,
  23268. duration: 0,
  23269. QA: null,
  23270. Et: null,
  23271. qj: 0,
  23272. fC: 0,
  23273. sm: 0,
  23274. kB: 0,
  23275. LC: 0,
  23276. MC: 0,
  23277. rx: 0,
  23278. AB: 0,
  23279. Ng: null,
  23280. Pt: null,
  23281. Jf: null,
  23282. et: null,
  23283. NC: 0,
  23284. OC: 0,
  23285. BB: 0,
  23286. CB: 0,
  23287. qx: 0,
  23288. Jc: 0,
  23289. fa: null,
  23290. B: null,
  23291. Jb: !1,
  23292. vh: null,
  23293. ZG: !1,
  23294. Kb: 0,
  23295. of: null,
  23296. Tb: null,
  23297. Se: null,
  23298. bG: null,
  23299. Ba: null,
  23300. kg: null,
  23301. ctor: function(c) {
  23302. f.v.prototype.ctor.call(this);
  23303. this.Kb = f.A.wc;
  23304. this.ae = new f.A.jT;
  23305. this.th = new f.A.kT;
  23306. this.B = {
  23307. src: f.Mc,
  23308. ha: f.Lc
  23309. };
  23310. this.Ct = [];
  23311. this.QA = r(0, 0);
  23312. this.Et = r(0, 0);
  23313. this.Ng = f.color(255, 255, 255, 255);
  23314. this.Pt = f.color(255, 255, 255, 255);
  23315. this.Jf = f.color(255, 255, 255, 255);
  23316. this.et = f.color(255, 255, 255, 255);
  23317. this.jN = "";
  23318. this.Fc = 0;
  23319. this.n9 = !1;
  23320. this.CX = r(0, 0);
  23321. this.Vj = this.Mv = 0;
  23322. this.Aa = null;
  23323. this.atlasIndex = 0;
  23324. this.Rw = !1;
  23325. this.RK = 0;
  23326. this.WO = f.A.Nna;
  23327. this.GR = f.A.mja;
  23328. this.eA = !1;
  23329. this.Jc = this.qx = this.CB = this.BB = this.OC = this.NC = this.AB = this.rx = this.MC = this.LC = this.kB = this.sm = this.fC = this.qj = this.duration = this.Rg = 0;
  23330. this.fa = null;
  23331. this.Jb = !1;
  23332. this.vh = f.A.rE;
  23333. this.ZG = !1;
  23334. this.Se = [0, 0];
  23335. this.of = [];
  23336. this.Tb = [];
  23337. this.bG = x(0, 0, 0, 0);
  23338. this.Ba = !0;
  23339. f.K === f.na && (this.kg = null);
  23340. c && "number" !== typeof c ? c && this.Ge(c) : (c = c || 100, this.QGa(f.A.p7), this.fc(c))
  23341. },
  23342. E0: function() {
  23343. for (var c = this.Tb, d = 0, e = this.Jc; d < e; ++d) {
  23344. var g = 6 * d,
  23345. h = 4 * d;
  23346. c[g + 0] = h + 0;
  23347. c[g + 1] = h + 1;
  23348. c[g + 2] = h + 2;
  23349. c[g + 5] = h + 1;
  23350. c[g + 4] = h + 2;
  23351. c[g + 3] = h + 3
  23352. }
  23353. },
  23354. vea: function(c) {
  23355. var d = f.Uc(),
  23356. e = x(c.x * d, c.y * d, c.width * d, c.height * d),
  23357. g = c.width,
  23358. h = c.height;
  23359. this.fa && (g = this.fa.pixelsWidth, h = this.fa.pixelsHeight);
  23360. if (f.K !== f.fb) {
  23361. f.Ey ? (c = (2 * e.x + 1) / (2 * g), d = (2 * e.y +
  23362. 1) / (2 * h), g = c + (2 * e.width - 2) / (2 * g), e = d + (2 * e.height - 2) / (2 * h)) : (c = e.x / g, d = e.y / h, g = c + e.width / g, e = d + e.height / h);
  23363. var h = e,
  23364. e = d,
  23365. d = h,
  23366. k = 0,
  23367. m = 0;
  23368. this.Aa ? (h = this.Aa.textureAtlas.quads, k = this.atlasIndex, m = this.atlasIndex + this.Jc) : (h = this.of, k = 0, m = this.Jc);
  23369. for (; k < m; k++) {
  23370. h[k] || (h[k] = f.i8());
  23371. var n = h[k];
  23372. n.T.t.Da = c;
  23373. n.T.t.ga = d;
  23374. n.aa.t.Da = g;
  23375. n.aa.t.ga = d;
  23376. n.Z.t.Da = c;
  23377. n.Z.t.ga = e;
  23378. n.W.t.Da = g;
  23379. n.W.t.ga = e
  23380. }
  23381. }
  23382. },
  23383. LB: function() {
  23384. return this.Aa
  23385. },
  23386. is: function(c) {
  23387. if (this.Aa != c) {
  23388. var d = this.Aa;
  23389. if (this.Aa = c)
  23390. for (var e = this.Ct, g = 0; g < this.Jc; g++) e[g].atlasIndex =
  23391. g;
  23392. c ? d || (this.Aa.textureAtlas.Uqa(this.of, this.atlasIndex), f.s.deleteBuffer(this.Se[1])) : (this.D8(), this.E0(), this.ab(d.sb()), this.Dw())
  23393. }
  23394. },
  23395. KB: function() {
  23396. return this.atlasIndex
  23397. },
  23398. k2: function(c) {
  23399. this.atlasIndex = c
  23400. },
  23401. ETa: function() {
  23402. return this.WO
  23403. },
  23404. QGa: function(c) {
  23405. this.WO = c
  23406. },
  23407. RVa: function() {
  23408. return this.GR
  23409. },
  23410. k4a: function(c) {
  23411. this.GR = c
  23412. },
  23413. Bi: function() {
  23414. return this.eA
  23415. },
  23416. kVa: function() {
  23417. return this.Rg
  23418. },
  23419. T3a: function(c) {
  23420. this.Rg = c
  23421. },
  23422. pu: function() {
  23423. return this.duration
  23424. },
  23425. Ei: function(c) {
  23426. this.duration = c
  23427. },
  23428. oBa: function() {
  23429. return {
  23430. x: this.QA.x,
  23431. y: this.QA.y
  23432. }
  23433. },
  23434. NHa: function(c) {
  23435. this.QA = c
  23436. },
  23437. i0: function() {
  23438. return {
  23439. x: this.Et.x,
  23440. y: this.Et.y
  23441. }
  23442. },
  23443. vl: function(c) {
  23444. this.Et = c
  23445. },
  23446. wUa: function() {
  23447. return this.qj
  23448. },
  23449. rl: function(c) {
  23450. this.qj = c
  23451. },
  23452. xUa: function() {
  23453. return this.fC
  23454. },
  23455. sl: function(c) {
  23456. this.fC = c
  23457. },
  23458. YRa: function() {
  23459. return this.sm
  23460. },
  23461. ml: function(c) {
  23462. this.sm = c
  23463. },
  23464. ZRa: function() {
  23465. return this.kB
  23466. },
  23467. nl: function(c) {
  23468. this.kB = c
  23469. },
  23470. uH: function() {
  23471. this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getGravity() : Particle Mode should be Gravity");
  23472. var c = this.ae.gravity;
  23473. return r(c.x, c.y)
  23474. },
  23475. vc: function(c) {
  23476. this.Kb !==
  23477. f.A.wc && f.log("cc.ParticleBatchNode.setGravity() : Particle Mode should be Gravity");
  23478. this.ae.gravity = c
  23479. },
  23480. tP: function() {
  23481. this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getSpeed() : Particle Mode should be Gravity");
  23482. return this.ae.speed
  23483. },
  23484. Hi: function(c) {
  23485. this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setSpeed() : Particle Mode should be Gravity");
  23486. this.ae.speed = c
  23487. },
  23488. Wda: function() {
  23489. this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getSpeedVar() : Particle Mode should be Gravity");
  23490. return this.ae.speedVar
  23491. },
  23492. pk: function(c) {
  23493. this.Kb !==
  23494. f.A.wc && f.log("cc.ParticleBatchNode.setSpeedVar() : Particle Mode should be Gravity");
  23495. this.ae.speedVar = c
  23496. },
  23497. $da: function() {
  23498. this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getTangentialAccel() : Particle Mode should be Gravity");
  23499. return this.ae.tangentialAccel
  23500. },
  23501. bq: function(c) {
  23502. this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setTangentialAccel() : Particle Mode should be Gravity");
  23503. this.ae.tangentialAccel = c
  23504. },
  23505. aea: function() {
  23506. this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getTangentialAccelVar() : Particle Mode should be Gravity");
  23507. return this.ae.tangentialAccelVar
  23508. },
  23509. cq: function(c) {
  23510. this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setTangentialAccelVar() : Particle Mode should be Gravity");
  23511. this.ae.tangentialAccelVar = c
  23512. },
  23513. Pda: function() {
  23514. this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getRadialAccel() : Particle Mode should be Gravity");
  23515. return this.ae.radialAccel
  23516. },
  23517. nk: function(c) {
  23518. this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setRadialAccel() : Particle Mode should be Gravity");
  23519. this.ae.radialAccel = c
  23520. },
  23521. Qda: function() {
  23522. this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getRadialAccelVar() : Particle Mode should be Gravity");
  23523. return this.ae.radialAccelVar
  23524. },
  23525. ok: function(c) {
  23526. this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setRadialAccelVar() : Particle Mode should be Gravity");
  23527. this.ae.radialAccelVar = c
  23528. },
  23529. cBa: function() {
  23530. this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getRotationIsDir() : Particle Mode should be Gravity");
  23531. return this.ae.rotationIsDir
  23532. },
  23533. HHa: function(c) {
  23534. this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setRotationIsDir() : Particle Mode should be Gravity");
  23535. this.ae.rotationIsDir = c
  23536. },
  23537. Yda: function() {
  23538. this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getStartRadius() : Particle Mode should be Radius");
  23539. return this.th.startRadius
  23540. },
  23541. R2: function(c) {
  23542. this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setStartRadius() : Particle Mode should be Radius");
  23543. this.th.startRadius = c
  23544. },
  23545. Zda: function() {
  23546. this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getStartRadiusVar() : Particle Mode should be Radius");
  23547. return this.th.startRadiusVar
  23548. },
  23549. S2: function(c) {
  23550. this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setStartRadiusVar() : Particle Mode should be Radius");
  23551. this.th.startRadiusVar = c
  23552. },
  23553. zda: function() {
  23554. this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getEndRadius() : Particle Mode should be Radius");
  23555. return this.th.endRadius
  23556. },
  23557. w2: function(c) {
  23558. this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setEndRadius() : Particle Mode should be Radius");
  23559. this.th.endRadius = c
  23560. },
  23561. Ada: function() {
  23562. this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getEndRadiusVar() : Particle Mode should be Radius");
  23563. return this.th.endRadiusVar
  23564. },
  23565. x2: function(c) {
  23566. this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setEndRadiusVar() : Particle Mode should be Radius");
  23567. this.th.endRadiusVar = c
  23568. },
  23569. Rda: function() {
  23570. this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getRotatePerSecond() : Particle Mode should be Radius");
  23571. return this.th.QQ
  23572. },
  23573. K2: function(c) {
  23574. this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setRotatePerSecond() : Particle Mode should be Radius");
  23575. this.th.QQ = c
  23576. },
  23577. Sda: function() {
  23578. this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getRotatePerSecondVar() : Particle Mode should be Radius");
  23579. return this.th.RQ
  23580. },
  23581. L2: function(c) {
  23582. this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setRotatePerSecondVar() : Particle Mode should be Radius");
  23583. this.th.RQ = c
  23584. },
  23585. ib: function(c, d) {
  23586. this.Rw = !0;
  23587. f.v.prototype.ib.call(this, c, d)
  23588. },
  23589. yh: function(c) {
  23590. this.Rw = !0;
  23591. f.v.prototype.yh.call(this, c)
  23592. },
  23593. jb: function(c) {
  23594. this.Rw = !0;
  23595. f.v.prototype.jb.call(this, c)
  23596. },
  23597. tb: function(c) {
  23598. this.Rw = !0;
  23599. f.v.prototype.tb.call(this, c)
  23600. },
  23601. WVa: function() {
  23602. return this.LC
  23603. },
  23604. wl: function(c) {
  23605. this.LC = c
  23606. },
  23607. XVa: function() {
  23608. return this.MC
  23609. },
  23610. xl: function(c) {
  23611. this.MC = c
  23612. },
  23613. KTa: function() {
  23614. return this.rx
  23615. },
  23616. ql: function(c) {
  23617. this.rx = c
  23618. },
  23619. LTa: function() {
  23620. return this.AB
  23621. },
  23622. Wga: function(c) {
  23623. this.AB = c
  23624. },
  23625. uP: function() {
  23626. return f.color(this.Ng.r, this.Ng.g, this.Ng.b, this.Ng.a)
  23627. },
  23628. Tg: function(c) {
  23629. this.Ng = f.color(c)
  23630. },
  23631. Xda: function() {
  23632. return f.color(this.Pt.r,
  23633. this.Pt.g, this.Pt.b, this.Pt.a)
  23634. },
  23635. qk: function(c) {
  23636. this.Pt = f.color(c)
  23637. },
  23638. lP: function() {
  23639. return f.color(this.Jf.r, this.Jf.g, this.Jf.b, this.Jf.a)
  23640. },
  23641. Sg: function(c) {
  23642. this.Jf = f.color(c)
  23643. },
  23644. yda: function() {
  23645. return f.color(this.et.r, this.et.g, this.et.b, this.et.a)
  23646. },
  23647. mk: function(c) {
  23648. this.et = f.color(c)
  23649. },
  23650. YVa: function() {
  23651. return this.NC
  23652. },
  23653. Tha: function(c) {
  23654. this.NC = c
  23655. },
  23656. ZVa: function() {
  23657. return this.OC
  23658. },
  23659. Uha: function(c) {
  23660. this.OC = c
  23661. },
  23662. MTa: function() {
  23663. return this.BB
  23664. },
  23665. Xga: function(c) {
  23666. this.BB = c
  23667. },
  23668. NTa: function() {
  23669. return this.CB
  23670. },
  23671. Yga: function(c) {
  23672. this.CB =
  23673. c
  23674. },
  23675. ITa: function() {
  23676. return this.qx
  23677. },
  23678. ol: function(c) {
  23679. this.qx = c
  23680. },
  23681. ABa: function() {
  23682. return this.Jc
  23683. },
  23684. Xha: function(c) {
  23685. if (f.K === f.fb) this.Jc = 200 > c ? c : 200;
  23686. else {
  23687. if (c > this.RK) {
  23688. var d = f.Yc.BYTES_PER_ELEMENT;
  23689. this.Tb = new Uint16Array(6 * c);
  23690. var e = new ArrayBuffer(c * d),
  23691. g = this.Ct;
  23692. g.length = 0;
  23693. for (var h = this.of, k = h.length = 0; k < c; k++) g[k] = new f.Jl, h[k] = new f.Yc(null, null, null, null, e, k * d);
  23694. this.Jc = this.RK = c;
  23695. if (this.Aa)
  23696. for (d = 0; d < c; d++) g[d].atlasIndex = d;
  23697. this.kg = e;
  23698. this.E0();
  23699. this.Dw();
  23700. this.fa && this.vea(x(0, 0, this.fa.width, this.fa.height))
  23701. } else this.Jc =
  23702. c;
  23703. this.tga()
  23704. }
  23705. },
  23706. sb: function() {
  23707. return this.fa
  23708. },
  23709. ab: function(c) {
  23710. c.ie ? this.V2(c, x(0, 0, c.width, c.height)) : (this.Ba = !1, c.oe(function(c) {
  23711. this.Ba = !0;
  23712. this.V2(c, x(0, 0, c.width, c.height))
  23713. }, this))
  23714. },
  23715. ck: function() {
  23716. return this.B
  23717. },
  23718. ce: function(c, d) {
  23719. if (void 0 === d) this.B != c && (this.B = c, this.Yk());
  23720. else if (this.B.src != c || this.B.ha != d) this.B = {
  23721. src: c,
  23722. ha: d
  23723. }, this.Yk()
  23724. },
  23725. vg: function() {
  23726. return this.Jb
  23727. },
  23728. ee: function(c) {
  23729. this.Jb = c
  23730. },
  23731. PCa: function() {
  23732. return this.B.src == f.SRC_ALPHA && this.B.ha == f.ONE || this.B.src == f.ONE && this.B.ha == f.ONE
  23733. },
  23734. jo: function(c) {
  23735. var d = this.B;
  23736. c ? (d.src = f.SRC_ALPHA, d.ha = f.ONE) : f.K === f.na ? this.fa && !this.fa.Ep() ? (d.src = f.SRC_ALPHA, d.ha = f.ONE_MINUS_SRC_ALPHA) : (d.src = f.Mc, d.ha = f.Lc) : (d.src = f.Mc, d.ha = f.Lc)
  23737. },
  23738. VAa: function() {
  23739. return this.vh
  23740. },
  23741. E2: function(c) {
  23742. this.vh = c
  23743. },
  23744. rXa: function() {
  23745. return this.ZG
  23746. },
  23747. y2a: function(c) {
  23748. this.ZG = c
  23749. },
  23750. JTa: function() {
  23751. return this.Kb
  23752. },
  23753. pl: function(c) {
  23754. this.Kb = c
  23755. },
  23756. j: function() {
  23757. return this.fc(150)
  23758. },
  23759. Ge: function(c) {
  23760. this.jN = c;
  23761. c = f.L.zd(c);
  23762. return c ? this.Ip(c, "") : (f.log("cc.ParticleSystem.initWithFile(): Particles: file not found"), !1)
  23763. },
  23764. Dza: function() {
  23765. return x(0, 0, f.Sb.width, f.Sb.height)
  23766. },
  23767. Ip: function(c) {
  23768. var d = !1,
  23769. e = null,
  23770. e = this.Dva,
  23771. g = parseInt(e("maxParticles", c));
  23772. if (this.fc(g)) {
  23773. this.sm = parseFloat(e("angle", c));
  23774. this.kB = parseFloat(e("angleVariance", c));
  23775. this.duration = parseFloat(e("duration", c));
  23776. this.B.src = parseInt(e("blendFuncSource", c));
  23777. this.B.ha = parseInt(e("blendFuncDestination", c));
  23778. d = this.Ng;
  23779. d.r = 255 * parseFloat(e("startColorRed", c));
  23780. d.g = 255 * parseFloat(e("startColorGreen", c));
  23781. d.b = 255 * parseFloat(e("startColorBlue", c));
  23782. d.a = 255 * parseFloat(e("startColorAlpha",
  23783. c));
  23784. d = this.Pt;
  23785. d.r = 255 * parseFloat(e("startColorVarianceRed", c));
  23786. d.g = 255 * parseFloat(e("startColorVarianceGreen", c));
  23787. d.b = 255 * parseFloat(e("startColorVarianceBlue", c));
  23788. d.a = 255 * parseFloat(e("startColorVarianceAlpha", c));
  23789. d = this.Jf;
  23790. d.r = 255 * parseFloat(e("finishColorRed", c));
  23791. d.g = 255 * parseFloat(e("finishColorGreen", c));
  23792. d.b = 255 * parseFloat(e("finishColorBlue", c));
  23793. d.a = 255 * parseFloat(e("finishColorAlpha", c));
  23794. d = this.et;
  23795. d.r = 255 * parseFloat(e("finishColorVarianceRed", c));
  23796. d.g = 255 * parseFloat(e("finishColorVarianceGreen",
  23797. c));
  23798. d.b = 255 * parseFloat(e("finishColorVarianceBlue", c));
  23799. d.a = 255 * parseFloat(e("finishColorVarianceAlpha", c));
  23800. this.LC = parseFloat(e("startParticleSize", c));
  23801. this.MC = parseFloat(e("startParticleSizeVariance", c));
  23802. this.rx = parseFloat(e("finishParticleSize", c));
  23803. this.AB = parseFloat(e("finishParticleSizeVariance", c));
  23804. this.o(parseFloat(e("sourcePositionx", c)), parseFloat(e("sourcePositiony", c)));
  23805. this.Et.x = parseFloat(e("sourcePositionVariancex", c));
  23806. this.Et.y = parseFloat(e("sourcePositionVariancey", c));
  23807. this.NC = parseFloat(e("rotationStart",
  23808. c));
  23809. this.OC = parseFloat(e("rotationStartVariance", c));
  23810. this.BB = parseFloat(e("rotationEnd", c));
  23811. this.CB = parseFloat(e("rotationEndVariance", c));
  23812. this.Kb = parseInt(e("emitterType", c));
  23813. if (this.Kb == f.A.wc) d = this.ae, d.gravity.x = parseFloat(e("gravityx", c)), d.gravity.y = parseFloat(e("gravityy", c)), d.speed = parseFloat(e("speed", c)), d.speedVar = parseFloat(e("speedVariance", c)), g = e("radialAcceleration", c), d.radialAccel = g ? parseFloat(g) : 0, g = e("radialAccelVariance", c), d.radialAccelVar = g ? parseFloat(g) : 0, g = e("tangentialAcceleration",
  23814. c), d.tangentialAccel = g ? parseFloat(g) : 0, g = e("tangentialAccelVariance", c), d.tangentialAccelVar = g ? parseFloat(g) : 0, g = e("rotationIsDir", c).toLowerCase(), d.rotationIsDir = null != g && ("true" === g || "1" === g);
  23815. else if (this.Kb == f.A.Bj) d = this.th, d.startRadius = parseFloat(e("maxRadius", c)), d.startRadiusVar = parseFloat(e("maxRadiusVariance", c)), d.endRadius = parseFloat(e("minRadius", c)), d.endRadiusVar = 0, d.QQ = parseFloat(e("rotatePerSecond", c)), d.RQ = parseFloat(e("rotatePerSecondVariance", c));
  23816. else return f.log("cc.ParticleSystem.initWithDictionary(): Invalid emitterType in config file"), !1;
  23817. this.qj = parseFloat(e("particleLifespan", c));
  23818. this.fC = parseFloat(e("particleLifespanVariance", c));
  23819. this.qx = this.Jc / this.qj;
  23820. if (!this.Aa)
  23821. if (this.Jb = !1, d = e("textureFileName", c), d = f.path.pB(this.jN, d), g = f.nb.Ru(d)) this.ab(g);
  23822. else if ((c = e("textureImageData", c)) && 0 == c.length) {
  23823. g = f.nb.vd(d);
  23824. if (!g) return !1;
  23825. this.ab(g)
  23826. } else {
  23827. e = f.Cia(c, 1);
  23828. if (!e) return f.log("cc.ParticleSystem: error decoding or ungzipping textureImageData"), !1;
  23829. c = f.gAa(e);
  23830. if (c !== f.q5 && c !== f.NS) return f.log("cc.ParticleSystem: unknown image format with Data"), !1;
  23831. g = f.fd("canvas");
  23832. c === f.NS ? (new f.Zma(e)).YFa(g) : f.IIa.VEa(e, g);
  23833. f.nb.Mwa(d, g);
  23834. (c = f.nb.Ru(d)) || f.log("cc.ParticleSystem.initWithDictionary() : error loading the texture");
  23835. this.ab(c)
  23836. }
  23837. d = !0
  23838. }
  23839. return d
  23840. },
  23841. fc: function(c) {
  23842. this.Jc = c;
  23843. var d, e = this.Ct;
  23844. for (d = e.length = 0; d < c; d++) e[d] = new f.Jl;
  23845. if (!e) return f.log("Particle system: not enough memory"), !1;
  23846. this.RK = c;
  23847. if (this.Aa)
  23848. for (d = 0; d < this.Jc; d++) e[d].atlasIndex = d;
  23849. this.eA = !0;
  23850. this.B.src = f.Mc;
  23851. this.B.ha = f.Lc;
  23852. this.vh = f.A.rE;
  23853. this.Kb = f.A.wc;
  23854. this.Rw = this.ZG = !1;
  23855. this.xga(1);
  23856. if (f.K === f.na) {
  23857. if (!this.D8()) return !1;
  23858. this.E0();
  23859. this.Dw();
  23860. this.shaderProgram = f.xg.be(f.zo)
  23861. }
  23862. return !0
  23863. },
  23864. NQa: function() {
  23865. this.UC()
  23866. },
  23867. Sva: function() {
  23868. if (this.XCa()) return !1;
  23869. var c, d = this.Ct;
  23870. f.K === f.fb ? this.Rg < d.length ? c = d[this.Rg] : (c = new f.Jl, d.push(c)) : c = d[this.Rg];
  23871. this.pCa(c);
  23872. ++this.Rg;
  23873. return !0
  23874. },
  23875. pCa: function(c) {
  23876. var d = f.uFa;
  23877. c.Su = this.qj + this.fC * d();
  23878. c.Su = Math.max(0, c.Su);
  23879. c.lc.x = this.QA.x + this.Et.x * d();
  23880. c.lc.y = this.QA.y + this.Et.y * d();
  23881. var e, g;
  23882. e = this.Ng;
  23883. var h = this.Pt,
  23884. k = this.Jf;
  23885. g = this.et;
  23886. f.K === f.fb ? (e = f.color(f.Rf(e.r +
  23887. h.r * d(), 0, 255), f.Rf(e.g + h.g * d(), 0, 255), f.Rf(e.b + h.b * d(), 0, 255), f.Rf(e.a + h.a * d(), 0, 255)), g = f.color(f.Rf(k.r + g.r * d(), 0, 255), f.Rf(k.g + g.g * d(), 0, 255), f.Rf(k.b + g.b * d(), 0, 255), f.Rf(k.a + g.a * d(), 0, 255))) : (e = {
  23888. r: f.Rf(e.r + h.r * d(), 0, 255),
  23889. g: f.Rf(e.g + h.g * d(), 0, 255),
  23890. b: f.Rf(e.b + h.b * d(), 0, 255),
  23891. a: f.Rf(e.a + h.a * d(), 0, 255)
  23892. }, g = {
  23893. r: f.Rf(k.r + g.r * d(), 0, 255),
  23894. g: f.Rf(k.g + g.g * d(), 0, 255),
  23895. b: f.Rf(k.b + g.b * d(), 0, 255),
  23896. a: f.Rf(k.a + g.a * d(), 0, 255)
  23897. });
  23898. c.color = e;
  23899. h = c.jH;
  23900. k = c.Su;
  23901. h.r = (g.r - e.r) / k;
  23902. h.g = (g.g - e.g) / k;
  23903. h.b = (g.b - e.b) / k;
  23904. h.a = (g.a - e.a) / k;
  23905. e = this.LC + this.MC * d();
  23906. e = Math.max(0, e);
  23907. c.size = e;
  23908. this.rx === f.A.Ml ? c.v_ = 0 : (g = this.rx + this.AB * d(), g = Math.max(0, g), c.v_ = (g - e) / k);
  23909. e = this.NC + this.OC * d();
  23910. g = this.BB + this.CB * d();
  23911. c.rotation = e;
  23912. c.Lca = (g - e) / k;
  23913. this.vh == f.A.rE ? c.startPos = this.um(this.CX) : this.vh == f.A.fU && (c.startPos.x = this.oa.x, c.startPos.y = this.oa.y);
  23914. e = f.sg(this.sm + this.kB * d());
  23915. if (this.Kb === f.A.wc) k = this.ae, g = c.ae, h = k.speed + k.speedVar * d(), g.dir.x = Math.cos(e), g.dir.y = Math.sin(e), f.xC(g.dir, h), g.radialAccel = k.radialAccel + k.radialAccelVar * d(), g.tangentialAccel =
  23916. k.tangentialAccel + k.tangentialAccelVar * d(), k.rotationIsDir && (c.rotation = -f.yC(f.oEa(g.dir)));
  23917. else {
  23918. g = this.th;
  23919. c = c.th;
  23920. var h = g.startRadius + g.startRadiusVar * d(),
  23921. m = g.endRadius + g.endRadiusVar * d();
  23922. c.BI = h;
  23923. c.Kca = g.endRadius === f.A.Qna ? 0 : (m - h) / k;
  23924. c.sm = e;
  23925. c.Jca = f.sg(g.QQ + g.RQ * d())
  23926. }
  23927. },
  23928. uIa: function() {
  23929. this.eA = !1;
  23930. this.Fc = this.duration;
  23931. this.Mv = 0
  23932. },
  23933. tga: function() {
  23934. this.eA = !0;
  23935. this.Fc = 0;
  23936. var c = this.Ct;
  23937. for (this.Vj = 0; this.Vj < this.Rg; ++this.Vj) c[this.Vj].Su = 0
  23938. },
  23939. XCa: function() {
  23940. return this.Rg >= this.Jc
  23941. },
  23942. dJa: function(c, d) {
  23943. var e = null;
  23944. this.Aa ? (e = this.Aa.textureAtlas.quads[this.atlasIndex + c.atlasIndex], this.Aa.textureAtlas.dirty = !0) : e = this.of[this.Vj];
  23945. var g, h, k, m;
  23946. this.Jb ? (g = 0 | c.color.r * c.color.a / 255, h = 0 | c.color.g * c.color.a / 255, k = 0 | c.color.b * c.color.a / 255) : (g = 0 | c.color.r, h = 0 | c.color.g, k = 0 | c.color.b);
  23947. m = 0 | c.color.a;
  23948. var n = e.T.D;
  23949. n.r = g;
  23950. n.g = h;
  23951. n.b = k;
  23952. n.a = m;
  23953. n = e.aa.D;
  23954. n.r = g;
  23955. n.g = h;
  23956. n.b = k;
  23957. n.a = m;
  23958. n = e.Z.D;
  23959. n.r = g;
  23960. n.g = h;
  23961. n.b = k;
  23962. n.a = m;
  23963. n = e.W.D;
  23964. n.r = g;
  23965. n.g = h;
  23966. n.b = k;
  23967. n.a = m;
  23968. g = c.size / 2;
  23969. if (c.rotation) {
  23970. h = -g;
  23971. k = -g;
  23972. m = d.x;
  23973. var n = d.y,
  23974. p = -f.sg(c.rotation),
  23975. s = Math.cos(p),
  23976. p = Math.sin(p);
  23977. e.T.k.x = h * s - k * p + m;
  23978. e.T.k.y = h * p + k * s + n;
  23979. e.aa.k.x = g * s - k * p + m;
  23980. e.aa.k.y = g * p + k * s + n;
  23981. e.Z.k.x = h * s - g * p + m;
  23982. e.Z.k.y = h * p + g * s + n;
  23983. e.W.k.x = g * s - g * p + m;
  23984. e.W.k.y = g * p + g * s + n
  23985. } else e.T.k.x = d.x - g, e.T.k.y = d.y - g, e.aa.k.x = d.x + g, e.aa.k.y = d.y - g, e.Z.k.x = d.x - g, e.Z.k.y = d.y + g, e.W.k.x = d.x + g, e.W.k.y = d.y + g
  23986. },
  23987. gFa: function() {
  23988. if (f.K === f.na) {
  23989. var c = f.s;
  23990. c.bindBuffer(c.ARRAY_BUFFER, this.Se[0]);
  23991. c.bufferData(c.ARRAY_BUFFER, this.kg, c.DYNAMIC_DRAW)
  23992. }
  23993. },
  23994. update: function(c) {
  23995. if (this.eA && this.qx) {
  23996. var d = 1 / this.qx;
  23997. this.Rg < this.Jc && (this.Mv += c);
  23998. for (; this.Rg <
  23999. this.Jc && this.Mv > d;) this.Sva(), this.Mv -= d;
  24000. this.Fc += c; - 1 != this.duration && this.duration < this.Fc && this.uIa()
  24001. }
  24002. this.Vj = 0;
  24003. d = f.Jl.GK[0];
  24004. this.vh == f.A.rE ? f.$r(d, this.um(this.CX)) : this.vh == f.A.fU && (d.x = this.oa.x, d.y = this.oa.y);
  24005. if (this.Na) {
  24006. for (var e = f.Jl.GK[1], g = f.Jl.GK[2], h = f.Jl.GK[3], k = this.Ct; this.Vj < this.Rg;) {
  24007. f.DQ(e);
  24008. f.DQ(g);
  24009. f.DQ(h);
  24010. var m = k[this.Vj];
  24011. m.Su -= c;
  24012. if (0 < m.Su) {
  24013. if (this.Kb == f.A.wc) {
  24014. var n = h,
  24015. p = e,
  24016. s = g;
  24017. m.lc.x || m.lc.y ? (f.$r(p, m.lc), f.mEa(p)) : f.DQ(p);
  24018. f.$r(s, p);
  24019. f.xC(p, m.ae.radialAccel);
  24020. var u = s.x;
  24021. s.x = -s.y;
  24022. s.y = u;
  24023. f.xC(s, m.ae.tangentialAccel);
  24024. f.$r(n, p);
  24025. f.BQ(n, s);
  24026. f.BQ(n, this.ae.gravity);
  24027. f.xC(n, c);
  24028. f.BQ(m.ae.dir, n);
  24029. f.$r(n, m.ae.dir);
  24030. f.xC(n, c);
  24031. f.BQ(m.lc, n)
  24032. } else n = m.th, n.sm += n.Jca * c, n.BI += n.Kca * c, m.lc.x = -Math.cos(n.sm) * n.BI, m.lc.y = -Math.sin(n.sm) * n.BI;
  24033. this.n9 && f.K !== f.fb || (m.color.r += m.jH.r * c, m.color.g += m.jH.g * c, m.color.b += m.jH.b * c, m.color.a += m.jH.a * c, m.Iea = !0);
  24034. m.size += m.v_ * c;
  24035. m.size = Math.max(0, m.size);
  24036. m.rotation += m.Lca * c;
  24037. n = e;
  24038. this.vh == f.A.rE || this.vh == f.A.fU ? (p = g, f.$r(p, d), f.Mfa(p, m.startPos), f.$r(n, m.lc), f.Mfa(n,
  24039. p)) : f.$r(n, m.lc);
  24040. this.Aa && (n.x += this.oa.x, n.y += this.oa.y);
  24041. f.K == f.na ? this.dJa(m, n) : f.$r(m.nH, n);
  24042. ++this.Vj
  24043. } else if (m = m.atlasIndex, this.Vj !== this.Rg - 1 && (n = k[this.Vj], k[this.Vj] = k[this.Rg - 1], k[this.Rg - 1] = n), this.Aa && (this.Aa.Vxa(this.atlasIndex + m), k[this.Rg - 1].atlasIndex = m), --this.Rg, 0 == this.Rg && this.ZG) {
  24044. this.UC();
  24045. this.Yb.removeChild(this, !0);
  24046. return
  24047. }
  24048. }
  24049. this.Rw = !1
  24050. }
  24051. this.Aa || this.gFa()
  24052. },
  24053. iJa: function() {
  24054. this.update(0)
  24055. },
  24056. Dva: function(c, d) {
  24057. if (d) {
  24058. var e = d[c];
  24059. return null != e ? e : ""
  24060. }
  24061. return ""
  24062. },
  24063. Yk: function() {
  24064. if (this.Aa) f.log("Can't change blending functions when the particle is being batched");
  24065. else {
  24066. var c = this.fa;
  24067. if (c && c instanceof f.Pa) {
  24068. this.Jb = !1;
  24069. var d = this.B;
  24070. d.src == f.Mc && d.ha == f.Lc && (c.Ep() ? this.Jb = !0 : (d.src = f.SRC_ALPHA, d.ha = f.ONE_MINUS_SRC_ALPHA))
  24071. }
  24072. }
  24073. },
  24074. p: function() {
  24075. var c = new f.A;
  24076. if (c.fc(this.Jc)) {
  24077. c.ml(this.sm);
  24078. c.nl(this.kB);
  24079. c.Ei(this.pu());
  24080. var d = this.ck();
  24081. c.ce(d.src, d.ha);
  24082. c.Tg(this.uP());
  24083. c.qk(this.Xda());
  24084. c.Sg(this.lP());
  24085. c.mk(this.yda());
  24086. c.wl(this.LC);
  24087. c.xl(this.MC);
  24088. c.ql(this.rx);
  24089. c.Wga(this.AB);
  24090. c.o(r(this.x, this.y));
  24091. c.vl(r(this.i0().x, this.i0().y));
  24092. c.Tha(this.NC || 0);
  24093. c.Uha(this.OC || 0);
  24094. c.Xga(this.BB ||
  24095. 0);
  24096. c.Yga(this.CB || 0);
  24097. c.pl(this.Kb);
  24098. this.Kb == f.A.wc ? (d = this.uH(), c.vc(r(d.x, d.y)), c.Hi(this.tP()), c.pk(this.Wda()), c.nk(this.Pda()), c.ok(this.Qda()), c.bq(this.$da()), c.cq(this.aea())) : this.Kb == f.A.Bj && (c.R2(this.Yda()), c.S2(this.Zda()), c.w2(this.zda()), c.x2(this.Ada()), c.K2(this.Rda()), c.L2(this.Sda()));
  24099. c.rl(this.qj);
  24100. c.sl(this.fC);
  24101. c.ol(this.qx);
  24102. if (!this.LB() && (c.ee(this.vg()), d = this.sb())) {
  24103. var e = d.e();
  24104. c.V2(d, x(0, 0, e.width, e.height))
  24105. }
  24106. }
  24107. return c
  24108. },
  24109. NGa: function(c) {
  24110. var d = c.Pk;
  24111. 0 == d.x && 0 == d.y || f.log("cc.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets");
  24112. f.K === f.na && (this.fa && c.sb().Wh == this.fa.Wh || this.ab(c.sb()))
  24113. },
  24114. V2: function(c, d) {
  24115. var e = this.fa;
  24116. f.K === f.na ? e && c.Wh == e.Wh || e == c || (this.fa = c, this.Yk()) : e && c == e || e == c || (this.fa = c, this.Yk());
  24117. this.bG = d;
  24118. this.vea(d)
  24119. },
  24120. ma: function(c) {
  24121. this.Ba && !this.Aa && (f.K === f.fb ? this.Rq(c) : this.fn(c), f.bl++)
  24122. },
  24123. Rq: function(c) {
  24124. c = c || f.s;
  24125. c.save();
  24126. c.globalCompositeOperation = this.PCa() ? "lighter" : "source-over";
  24127. for (var d = 0; d < this.Rg; d++) {
  24128. var e = this.Ct[d],
  24129. g = 0 | 0.5 * e.size;
  24130. if (this.WO == f.A.p7) {
  24131. if (g = this.fa.md, g.width && g.height) {
  24132. c.save();
  24133. c.globalAlpha = e.color.a / 255;
  24134. c.translate(0 | e.nH.x, -(0 | e.nH.y));
  24135. var h = 4 * Math.floor(e.size / 4),
  24136. k = this.bG.width,
  24137. m = this.bG.height;
  24138. c.scale(Math.max(1 / k * h, 1E-6), Math.max(1 / m * h, 1E-6));
  24139. e.rotation && c.rotate(f.sg(e.rotation));
  24140. c.translate(-(0 | k / 2), -(0 | m / 2));
  24141. e.Iea && (h = f.nb.vP(g)) && (h.kJ || (h.kJ = f.fd("canvas"), h.kJ.width = g.width, h.kJ.height = g.height), f.HB(g, h, e.color, this.bG, h.kJ), g = h.kJ);
  24142. c.drawImage(g, 0, 0);
  24143. c.restore()
  24144. }
  24145. } else c.save(), c.globalAlpha = e.color.a / 255, c.translate(0 | e.nH.x, -(0 | e.nH.y)), this.GR == f.A.Rna ?
  24146. (e.rotation && c.rotate(f.sg(e.rotation)), f.If.jya(c, g, e.color)) : f.If.dya(c, g, e.color), c.restore()
  24147. }
  24148. c.restore()
  24149. },
  24150. fn: function(c) {
  24151. this.fa && (c = c || f.s, this.sd.Ff(), this.sd.zj(), f.Ai(this.fa), f.iea(this.B.src, this.B.ha), f.wf(f.tv), c.bindBuffer(c.ARRAY_BUFFER, this.Se[0]), c.vertexAttribPointer(f.Oc, 3, c.FLOAT, !1, 24, 0), c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, 24, 12), c.vertexAttribPointer(f.$g, 2, c.FLOAT, !1, 24, 16), c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Se[1]), c.drawElements(c.TRIANGLES, 6 * this.Vj, c.UNSIGNED_SHORT,
  24152. 0))
  24153. },
  24154. h_a: function() {
  24155. f.TT || this.Dw()
  24156. },
  24157. UOa: function() {},
  24158. Dw: function() {
  24159. if (f.K != f.fb) {
  24160. var c = f.s;
  24161. this.Se[0] = c.createBuffer();
  24162. c.bindBuffer(c.ARRAY_BUFFER, this.Se[0]);
  24163. c.bufferData(c.ARRAY_BUFFER, this.kg, c.DYNAMIC_DRAW);
  24164. this.Se[1] = c.createBuffer();
  24165. c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Se[1]);
  24166. c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Tb, c.STATIC_DRAW)
  24167. }
  24168. },
  24169. D8: function() {
  24170. if (f.K === f.fb) return !0;
  24171. if (this.Aa) return f.log("cc.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode"), !1;
  24172. var c = f.Yc.BYTES_PER_ELEMENT,
  24173. d = this.Jc,
  24174. e = this.of;
  24175. e.length = 0;
  24176. this.Tb = new Uint16Array(6 * d);
  24177. for (var g = new ArrayBuffer(c * d), h = 0; h < d; h++) e[h] = new f.Yc(null, null, null, null, g, h * c);
  24178. if (!e || !this.Tb) return f.log("cocos2d: Particle system: not enough memory"), !1;
  24179. this.kg = g;
  24180. return !0
  24181. }
  24182. });
  24183. q = f.A.prototype;
  24184. f.d(q, "opacityModifyRGB", q.vg, q.ee);
  24185. f.d(q, "batchNode", q.LB, q.is);
  24186. f.d(q, "active", q.Bi);
  24187. f.d(q, "sourcePos", q.oBa, q.NHa);
  24188. f.d(q, "posVar", q.i0, q.vl);
  24189. f.d(q, "gravity", q.uH, q.vc);
  24190. f.d(q, "speed", q.tP, q.Hi);
  24191. f.d(q, "speedVar", q.Wda, q.pk);
  24192. f.d(q, "tangentialAccel", q.$da, q.bq);
  24193. f.d(q, "tangentialAccelVar", q.aea, q.cq);
  24194. f.d(q, "radialAccel", q.Pda, q.nk);
  24195. f.d(q, "radialAccelVar", q.Qda, q.ok);
  24196. f.d(q, "rotationIsDir", q.cBa, q.HHa);
  24197. f.d(q, "startRadius", q.Yda, q.R2);
  24198. f.d(q, "startRadiusVar", q.Zda, q.S2);
  24199. f.d(q, "endRadius", q.zda, q.w2);
  24200. f.d(q, "endRadiusVar", q.Ada, q.x2);
  24201. f.d(q, "rotatePerS", q.Rda, q.K2);
  24202. f.d(q, "rotatePerSVar", q.Sda, q.L2);
  24203. f.d(q, "startColor", q.uP, q.Tg);
  24204. f.d(q, "startColorVar", q.Xda, q.qk);
  24205. f.d(q, "endColor", q.lP, q.Sg);
  24206. f.d(q, "endColorVar", q.yda, q.mk);
  24207. f.d(q, "totalParticles", q.ABa, q.Xha);
  24208. f.d(q, "texture", q.sb, q.ab);
  24209. f.A.create = function(c) {
  24210. return new f.A(c)
  24211. };
  24212. f.A.jT = function(c, d, e, g, h, k, m, n) {
  24213. this.gravity = c ? c : r(0, 0);
  24214. this.speed = d || 0;
  24215. this.speedVar = e || 0;
  24216. this.tangentialAccel = g || 0;
  24217. this.tangentialAccelVar = h || 0;
  24218. this.radialAccel = k || 0;
  24219. this.radialAccelVar = m || 0;
  24220. this.rotationIsDir = n || !1
  24221. };
  24222. f.A.kT = function(c, d, e, g, h, k) {
  24223. this.startRadius = c || 0;
  24224. this.startRadiusVar = d || 0;
  24225. this.endRadius = e || 0;
  24226. this.endRadiusVar = g || 0;
  24227. this.QQ = h || 0;
  24228. this.RQ = k || 0
  24229. };
  24230. f.A.Nna = 0;
  24231. f.A.p7 = 1;
  24232. f.A.Rna = 0;
  24233. f.A.mja = 1;
  24234. f.A.uo = -1;
  24235. f.A.Ml = -1;
  24236. f.A.Qna = -1;
  24237. f.A.wc = 0;
  24238. f.A.Bj = 1;
  24239. f.A.rE = 0;
  24240. f.A.fU = 1;
  24241. f.A.UMa = 2;
  24242. f.O6 = f.A.extend({
  24243. j: function() {
  24244. return this.fc(f.K === f.na ? 300 : 150)
  24245. },
  24246. fc: function(c) {
  24247. return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.nk(0), this.ok(0), this.Hi(60), this.pk(20), this.ml(90), this.nl(10), this.o(f.Q.Y.width / 2, 60), this.vl(r(40, 20)), this.rl(3), this.sl(0.25), this.wl(54), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(194, 64, 31, 255)), this.qk(f.color(0, 0, 0, 0)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0, 0, 0, 0)), this.jo(!0), !0) : !1
  24248. }
  24249. });
  24250. f.O6.create = function() {
  24251. var c = new f.O6;
  24252. return c.j() ? c : null
  24253. };
  24254. f.P6 = f.A.extend({
  24255. j: function() {
  24256. return this.fc(f.K === f.na ? 1500 : 150)
  24257. },
  24258. fc: function(c) {
  24259. return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, -90)), this.nk(0), this.ok(0), this.Hi(180), this.pk(50), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.ml(90), this.nl(20), this.rl(3.5), this.sl(1), this.ol(this.Jc / this.qj), this.Tg(f.color(128, 128, 128, 255)), this.qk(f.color(128, 128, 128, 255)), this.Sg(f.color(26, 26, 26, 51)), this.mk(f.color(26, 26, 26, 51)), this.wl(8), this.xl(2), this.ql(f.A.Ml), this.jo(!1), !0) : !1
  24260. }
  24261. });
  24262. f.P6.create = function() {
  24263. var c = new f.P6;
  24264. return c.j() ? c : null
  24265. };
  24266. f.X6 = f.A.extend({
  24267. j: function() {
  24268. return this.fc(f.K === f.na ? 350 : 150)
  24269. },
  24270. fc: function(c) {
  24271. return f.A.prototype.fc.call(this, c) ? (this.jo(!0), this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.nk(0), this.ok(0), this.Hi(20), this.pk(5), this.ml(90), this.nl(360), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(1), this.sl(0.5), this.wl(30), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(194, 64, 31, 255)), this.qk(f.color(0, 0, 0, 0)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0, 0, 0, 0)), !0) : !1
  24272. }
  24273. });
  24274. f.X6.create = function() {
  24275. var c = new f.X6;
  24276. return c.j() ? c : null
  24277. };
  24278. f.R6 = f.A.extend({
  24279. j: function() {
  24280. return this.fc(f.K === f.na ? 200 : 100)
  24281. },
  24282. fc: function(c) {
  24283. return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.Hi(60), this.pk(10), this.nk(-80), this.ok(0), this.bq(80), this.cq(0), this.ml(90), this.nl(360), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(4), this.sl(1), this.wl(37), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(31, 64, 194, 255)), this.qk(f.color(0, 0, 0, 0)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0,
  24284. 0, 0, 0)), this.jo(!0), !0) : !1
  24285. }
  24286. });
  24287. f.R6.create = function() {
  24288. var c = new f.R6;
  24289. return c.j() ? c : null
  24290. };
  24291. f.Q6 = f.A.extend({
  24292. j: function() {
  24293. return this.fc(f.K === f.na ? 250 : 100)
  24294. },
  24295. fc: function(c) {
  24296. return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.Hi(80), this.pk(10), this.nk(-60), this.ok(0), this.bq(15), this.cq(0), this.ml(90), this.nl(360), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(4), this.sl(1), this.wl(30), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(128, 128, 128, 255)), this.qk(f.color(128, 128, 128, 128)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0,
  24297. 0, 0, 0)), this.jo(!0), !0) : !1
  24298. }
  24299. });
  24300. f.Q6.create = function() {
  24301. var c = new f.Q6;
  24302. return c.j() ? c : null
  24303. };
  24304. f.S6 = f.A.extend({
  24305. j: function() {
  24306. return this.fc(f.K === f.na ? 150 : 100)
  24307. },
  24308. fc: function(c) {
  24309. return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(-200, 200)), this.Hi(15), this.pk(5), this.nk(0), this.ok(0), this.bq(0), this.cq(0), this.ml(90), this.nl(360), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(2), this.sl(1), this.wl(60), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(51, 102, 179)), this.qk(f.color(0, 0, 51, 26)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0,
  24310. 0, 0, 0)), this.jo(!0), !0) : !1
  24311. }
  24312. });
  24313. f.S6.create = function() {
  24314. var c = new f.S6;
  24315. return c.j() ? c : null
  24316. };
  24317. f.W6 = f.A.extend({
  24318. j: function() {
  24319. return this.fc(f.K === f.na ? 500 : 100)
  24320. },
  24321. fc: function(c) {
  24322. return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.Hi(150), this.pk(0), this.nk(-380), this.ok(0), this.bq(45), this.cq(0), this.ml(90), this.nl(0), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(12), this.sl(0), this.wl(20), this.xl(0), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(128, 128, 128, 255)), this.qk(f.color(128, 128, 128, 0)), this.Sg(f.color(128, 128, 128, 255)),
  24323. this.mk(f.color(128, 128, 128, 0)), this.jo(!1), !0) : !1
  24324. }
  24325. });
  24326. f.W6.create = function() {
  24327. var c = new f.W6;
  24328. return c.j() ? c : null
  24329. };
  24330. f.N6 = f.A.extend({
  24331. j: function() {
  24332. return this.fc(f.K === f.na ? 700 : 300)
  24333. },
  24334. fc: function(c) {
  24335. return f.A.prototype.fc.call(this, c) ? (this.Ei(0.1), this.pl(f.A.wc), this.vc(r(0, 0)), this.Hi(70), this.pk(40), this.nk(0), this.ok(0), this.bq(0), this.cq(0), this.ml(90), this.nl(360), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(5), this.sl(2), this.wl(15), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.pu()), this.Tg(f.color(179, 26, 51, 255)), this.qk(f.color(128, 128, 128, 0)), this.Sg(f.color(128, 128, 128, 0)), this.mk(f.color(128,
  24336. 128, 128, 0)), this.jo(!1), !0) : !1
  24337. }
  24338. });
  24339. f.N6.create = function() {
  24340. var c = new f.N6;
  24341. return c.j() ? c : null
  24342. };
  24343. f.U6 = f.A.extend({
  24344. j: function() {
  24345. return this.fc(f.K === f.na ? 200 : 100)
  24346. },
  24347. fc: function(c) {
  24348. return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.nk(0), this.ok(0), this.Hi(25), this.pk(10), this.ml(90), this.nl(5), this.o(f.Q.Y.width / 2, 0), this.vl(r(20, 0)), this.rl(4), this.sl(1), this.wl(60), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(204, 204, 204, 255)), this.qk(f.color(5, 5, 5, 0)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0, 0, 0, 0)), this.jo(!1), !0) : !1
  24349. }
  24350. });
  24351. f.U6.create = function() {
  24352. var c = new f.U6;
  24353. return c.j() ? c : null
  24354. };
  24355. f.V6 = f.A.extend({
  24356. j: function() {
  24357. return this.fc(f.K === f.na ? 700 : 250)
  24358. },
  24359. fc: function(c) {
  24360. return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, -1)), this.Hi(5), this.pk(1), this.nk(0), this.ok(1), this.bq(0), this.cq(1), c = f.Q.Y, this.o(c.width / 2, c.height + 10), this.vl(r(c.width / 2, 0)), this.ml(-90), this.nl(5), this.rl(45), this.sl(15), this.wl(10), this.xl(5), this.ql(f.A.Ml), this.ol(10), this.Tg(f.color(255, 255, 255, 255)), this.qk(f.color(0, 0, 0, 0)), this.Sg(f.color(255, 255, 255, 0)), this.mk(f.color(0,
  24361. 0, 0, 0)), this.jo(!1), !0) : !1
  24362. }
  24363. });
  24364. f.V6.create = function() {
  24365. var c = new f.V6;
  24366. return c.j() ? c : null
  24367. };
  24368. f.T6 = f.A.extend({
  24369. j: function() {
  24370. return this.fc(f.K === f.na ? 1E3 : 300)
  24371. },
  24372. fc: function(c) {
  24373. return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(10, -10)), this.nk(0), this.ok(1), this.bq(0), this.cq(1), this.Hi(130), this.pk(30), this.ml(-90), this.nl(5), c = f.Q.Y, this.o(c.width / 2, c.height), this.vl(r(c.width / 2, 0)), this.rl(4.5), this.sl(0), this.wl(4), this.xl(2), this.ql(f.A.Ml), this.ol(20), this.Tg(f.color(179, 204, 255, 255)), this.qk(f.color(0, 0, 0, 0)), this.Sg(f.color(179, 204, 255, 128)), this.mk(f.color(0,
  24374. 0, 0, 0)), this.jo(!1), !0) : !1
  24375. }
  24376. });
  24377. f.T6.create = function() {
  24378. var c = new f.T6;
  24379. return c.j() ? c : null
  24380. };
  24381. f.kMa = 500;
  24382. f.pT = f.v.extend({
  24383. textureAtlas: null,
  24384. $Ma: !0,
  24385. B: null,
  24386. ta: "ParticleBatchNode",
  24387. ctor: function(c, d) {
  24388. f.v.prototype.ctor.call(this);
  24389. this.B = {
  24390. src: f.Mc,
  24391. ha: f.Lc
  24392. };
  24393. "string" == typeof c ? this.j(c, d) : c instanceof f.Pa && this.va(c, d)
  24394. },
  24395. va: function(c, d) {
  24396. this.textureAtlas = new f.wq;
  24397. this.textureAtlas.va(c, d);
  24398. this.i.length = 0;
  24399. f.K === f.na && (this.shaderProgram = f.xg.be(f.zo));
  24400. return !0
  24401. },
  24402. Ge: function(c, d) {
  24403. var e = f.nb.vd(c);
  24404. return this.va(e, d)
  24405. },
  24406. j: function(c, d) {
  24407. var e = f.ZMa.ek().vd(c);
  24408. return this.va(e, d)
  24409. },
  24410. n: function(c, d, e) {
  24411. if (!c) throw "cc.ParticleBatchNode.addChild() : child should be non-null";
  24412. if (!(c instanceof f.A)) throw "cc.ParticleBatchNode.addChild() : only supports cc.ParticleSystem as children";
  24413. d = null == d ? c.zIndex : d;
  24414. e = null == e ? c.tag : e;
  24415. if (c.sb() != this.textureAtlas.texture) throw "cc.ParticleSystem.addChild() : the child is not using the same texture id";
  24416. var g = c.ck();
  24417. if (0 === this.i.length) this.ce(g);
  24418. else if (g.src != this.B.src || g.ha != this.B.ha) {
  24419. f.log("cc.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function");
  24420. return
  24421. }
  24422. d = this.dqa(c, d, e);
  24423. e = 0;
  24424. 0 != d ? (d = this.i[d - 1], e = d.KB() +
  24425. d.Jc) : e = 0;
  24426. this.N0(c, e);
  24427. c.is(this)
  24428. },
  24429. N0: function(c, d) {
  24430. var e = c.Jc,
  24431. g = this.textureAtlas,
  24432. h = g.totalQuads;
  24433. c.k2(d);
  24434. h + e > g.cg && (this.ssa(h + e), g.bda(g.cg - e, e));
  24435. c.KB() + e != h && g.pfa(d, d + e);
  24436. g.rea(e);
  24437. this.YY()
  24438. },
  24439. removeChild: function(c, d) {
  24440. if (null != c) {
  24441. if (!(c instanceof f.A)) throw "cc.ParticleBatchNode.removeChild(): only supports cc.ParticleSystem as children";
  24442. if (-1 == this.i.indexOf(c)) f.log("cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it");
  24443. else {
  24444. f.v.prototype.removeChild.call(this, c, d);
  24445. var e = this.textureAtlas;
  24446. e.TFa(c.KB(), c.Jc);
  24447. e.bda(e.totalQuads, c.Jc);
  24448. c.is(null);
  24449. this.YY()
  24450. }
  24451. }
  24452. },
  24453. BC: function(c, d) {
  24454. if (!c) throw "cc.ParticleBatchNode.reorderChild(): child should be non-null";
  24455. if (!(c instanceof f.A)) throw "cc.ParticleBatchNode.reorderChild(): only supports cc.QuadParticleSystems as children";
  24456. if (-1 === this.i.indexOf(c)) f.log("cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch");
  24457. else if (d != c.zIndex) {
  24458. if (1 < this.i.length) {
  24459. var e = this.Fra(c, d);
  24460. if (e.wfa != e.sfa) {
  24461. this.i.splice(e.wfa, 1);
  24462. this.i.splice(e.sfa, 0, c);
  24463. e = c.KB();
  24464. this.YY();
  24465. for (var g = 0, h = this.i, k = 0; k < h.length; k++)
  24466. if (h[k] == c) {
  24467. g = c.KB();
  24468. break
  24469. }
  24470. this.textureAtlas.pfa(e, c.Jc, g);
  24471. c.iJa()
  24472. }
  24473. }
  24474. c.Cw(d)
  24475. }
  24476. },
  24477. NFa: function(c, d) {
  24478. this.removeChild(this.i[i], d)
  24479. },
  24480. Cf: function(c) {
  24481. for (var d = this.i, e = 0; e < d.length; e++) d[e].is(null);
  24482. f.v.prototype.Cf.call(this, c);
  24483. this.textureAtlas.AC()
  24484. },
  24485. Vxa: function(c) {
  24486. c = this.textureAtlas.quads[c];
  24487. c.aa.k.x = c.aa.k.y = c.W.k.x = c.W.k.y = c.Z.k.x = c.Z.k.y = c.T.k.x = c.T.k.y = 0;
  24488. this.textureAtlas.Lt(!0)
  24489. },
  24490. ma: function() {
  24491. f.K !== f.fb && 0 != this.textureAtlas.totalQuads &&
  24492. (f.qC(this), f.iea(this.B.src, this.B.ha), this.textureAtlas.yB())
  24493. },
  24494. sb: function() {
  24495. return this.textureAtlas.texture
  24496. },
  24497. ab: function(c) {
  24498. this.textureAtlas.texture = c;
  24499. var d = this.B;
  24500. c && !c.Ep() && d.src == f.Mc && d.ha == f.Lc && (d.src = f.SRC_ALPHA, d.ha = f.ONE_MINUS_SRC_ALPHA)
  24501. },
  24502. ce: function(c, d) {
  24503. void 0 === d ? (this.B.src = c.src, this.B.ha = c.ha) : (this.B.src = c, this.B.src = d)
  24504. },
  24505. ck: function() {
  24506. return {
  24507. src: this.B.src,
  24508. ha: this.B.ha
  24509. }
  24510. },
  24511. I: function(c) {
  24512. f.K !== f.fb && this.Na && (f.Rr(), this.grid && this.grid.Bi() && (this.grid.dx(), this.mJ()), this.transform(c),
  24513. this.ma(c), this.grid && this.grid.Bi() && this.grid.ax(this), f.Qr())
  24514. },
  24515. YY: function() {
  24516. for (var c = 0, d = this.i, e = 0; e < d.length; e++) {
  24517. var g = d[e];
  24518. g.k2(c);
  24519. c += g.Jc
  24520. }
  24521. },
  24522. ssa: function(c) {
  24523. f.log("cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from [" + this.textureAtlas.cg + "] to [" + c + "].");
  24524. this.textureAtlas.NQ(c) || f.log("cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas")
  24525. },
  24526. gua: function(c) {
  24527. for (var d = this.i, e = d.length, g = 0; g < e; g++)
  24528. if (d[g].zIndex > c) return g;
  24529. return e
  24530. },
  24531. Fra: function(c, d) {
  24532. for (var e = !1, g = !1, h = 0, k = 0, m = 0, n = this.i, p = n.length, s = 0; s < p; s++) {
  24533. var u = n[s];
  24534. if (u.zIndex > d && !g && (h = s, g = !0, e && g)) break;
  24535. if (c == u && (k = s, e = !0, g || (m = -1), e && g)) break
  24536. }
  24537. g || (h = p);
  24538. return {
  24539. sfa: h + m,
  24540. wfa: k
  24541. }
  24542. },
  24543. dqa: function(c, d, e) {
  24544. if (!c) throw "cc.ParticleBatchNode._addChildHelper(): child should be non-null";
  24545. if (c.parent) return f.log("cc.ParticleBatchNode._addChildHelper(): child already added. It can't be added again"), null;
  24546. this.i || (this.i = []);
  24547. var g = this.gua(d);
  24548. this.i.splice(g, 0, c);
  24549. c.tag = e;
  24550. c.Cw(d);
  24551. c.parent =
  24552. this;
  24553. this.dd && (c.ba(), c.sj());
  24554. return g
  24555. },
  24556. Yk: function() {
  24557. this.textureAtlas.texture.Ep() || (this.B.src = f.SRC_ALPHA, this.B.ha = f.ONE_MINUS_SRC_ALPHA)
  24558. },
  24559. DH: function() {
  24560. return this.textureAtlas
  24561. },
  24562. U2: function(c) {
  24563. this.textureAtlas = c
  24564. }
  24565. });
  24566. q = f.pT.prototype;
  24567. f.d(q, "texture", q.sb, q.ab);
  24568. f.pT.create = function(c, d) {
  24569. return new f.pT(c, d)
  24570. };
  24571. f.tLa = function(c, d, e) {
  24572. this.Qn = c || x(0, 0, 0, 0);
  24573. this.end = d || x(0, 0, 0, 0);
  24574. this.duration = e || 0
  24575. };
  24576. f.sLa = f.N.extend({
  24577. ctor: function() {
  24578. f.Hp.Tba(this)
  24579. },
  24580. KQ: function() {
  24581. f.Hp.KQ(this)
  24582. },
  24583. XG: function() {
  24584. return f.Hp.eca(this)
  24585. },
  24586. UO: function() {
  24587. return f.Hp.Mca(this)
  24588. },
  24589. YZ: function() {
  24590. return !1
  24591. },
  24592. Sxa: function() {},
  24593. ZZ: function() {
  24594. return !1
  24595. },
  24596. Txa: function() {},
  24597. UH: function() {},
  24598. TO: function() {},
  24599. $_: function() {
  24600. return ""
  24601. },
  24602. Z0: function() {},
  24603. Pea: function() {},
  24604. Qea: function() {},
  24605. Oea: function() {}
  24606. });
  24607. f.WS = f.N.extend({
  24608. Ae: null,
  24609. Zb: null,
  24610. Oq: "",
  24611. Zv: null,
  24612. ctor: function() {
  24613. this.Zb = new f.WS.Wla;
  24614. this.Zv = r(0, 0)
  24615. },
  24616. j: function() {
  24617. if (!f.Ed.Or) {
  24618. this.Ae = f.mc("#imeDispatcherInput");
  24619. this.Ae || (this.Ae = f.bD("input"), this.Ae.setAttribute("type", "text"), this.Ae.setAttribute("id", "imeDispatcherInput"), this.Ae.resize(0, 0), this.Ae.nJ(0, 0), this.Ae.style.opacity = "0", this.Ae.style.fontSize = "1px", this.Ae.setAttribute("tabindex", 2), this.Ae.style.position = "absolute", this.Ae.style.top = 0, this.Ae.style.left = 0, document.body.appendChild(this.Ae));
  24620. var c = this;
  24621. f.ub(this.Ae, "input", function() {
  24622. c.MX(c.Ae.value)
  24623. }, !1);
  24624. f.ub(this.Ae, "keydown", function(d) {
  24625. d.keyCode === f.Jy.wIa ? (d.stopPropagation(), d.preventDefault()) : d.keyCode == f.Jy.N_ && (c.kH("\n", 1), d.stopPropagation(), d.preventDefault())
  24626. }, !1);
  24627. /msie/i.test(navigator.userAgent) && f.ub(this.Ae, "keyup", function(d) {
  24628. d.keyCode == f.Jy.fca && c.MX(c.Ae.value)
  24629. }, !1);
  24630. f.ub(window, "mousedown", function(d) {
  24631. var e = d.pageY || 0;
  24632. c.Zv.x = d.pageX || 0;
  24633. c.Zv.y = e
  24634. }, !1)
  24635. }
  24636. },
  24637. MX: function(c) {
  24638. var d, e;
  24639. d = this.Oq.length < c.length ? this.Oq.length :
  24640. c.length;
  24641. for (e = 0; e < d && c[e] === this.Oq[e]; e++);
  24642. var g = this.Oq.length - e,
  24643. h = c.length - e;
  24644. for (d = 0; d < g; d++) this.Oca();
  24645. for (d = 0; d < h; d++) this.kH(c[e + d], 1);
  24646. this.Oq = c
  24647. },
  24648. kH: function(c, d) {
  24649. !this.Zb || !c || 0 >= d || this.Zb.ki && this.Zb.ki.UH(c, d)
  24650. },
  24651. Oca: function() {
  24652. this.Zb && this.Zb.ki && this.Zb.ki.TO()
  24653. },
  24654. $_: function() {
  24655. if (this.Zb && this.Zb.ki) {
  24656. var c = this.Zb.ki.$_();
  24657. return c ? c : ""
  24658. }
  24659. return ""
  24660. },
  24661. YQa: function(c) {
  24662. if (this.Zb)
  24663. for (var d = 0; d < this.Zb.Ik.length; d++) {
  24664. var e = this.Zb.Ik[d];
  24665. e && e.Z0(c)
  24666. }
  24667. },
  24668. WQa: function() {
  24669. if (this.Zb)
  24670. for (var c = 0; c < this.Zb.Ik.length; c++);
  24671. },
  24672. XQa: function() {
  24673. if (this.Zb)
  24674. for (var c = 0; c < this.Zb.Ik.length; c++);
  24675. },
  24676. VQa: function() {
  24677. if (this.Zb)
  24678. for (var c = 0; c < this.Zb.Ik.length; c++);
  24679. },
  24680. Tba: function(c) {
  24681. c && this.Zb && (-1 < this.Zb.Ik.indexOf(c) || this.Zb.Ik.splice(0, 0, c))
  24682. },
  24683. eca: function(c) {
  24684. if (!this.Zb || !c || -1 == this.Zb.Ik.indexOf(c)) return !1;
  24685. if (this.Zb.ki) {
  24686. if (!this.Zb.ki.ZZ() || !c.YZ()) return !1;
  24687. this.Zb.ki = null;
  24688. this.b$(c);
  24689. return !0
  24690. }
  24691. if (!c.YZ()) return !1;
  24692. this.b$(c);
  24693. return !0
  24694. },
  24695. b$: function(c) {
  24696. f.Ed.Or ? (this.Zb.ki = c, this.Oq = c.string || "", c = prompt("please enter your word:",
  24697. this.Oq), null != c && this.MX(c), this.kH("\n", 1)) : (this.Zb.ki = c, this.Oq = c.string || "", this.Ae.focus(), this.Ae.value = this.Oq, this.cra())
  24698. },
  24699. cra: function() {
  24700. /msie/i.test(navigator.userAgent) ? (this.Ae.style.left = this.Zv.x + "px", this.Ae.style.top = this.Zv.y + "px") : this.Ae.nJ(this.Zv.x, this.Zv.y)
  24701. },
  24702. Mca: function(c) {
  24703. if (!this.Zb || !c || this.Zb.ki != c || !c.ZZ()) return !1;
  24704. this.Zb.ki = null;
  24705. f.Sb.focus();
  24706. return !0
  24707. },
  24708. KQ: function(c) {
  24709. this.Zb && c && -1 != this.Zb.Ik.indexOf(c) && (this.Zb.ki && c == this.Zb.ki && (this.Zb.ki = null), f.Ld(this.Zb.Ik,
  24710. c))
  24711. },
  24712. u0a: function(c) {
  24713. 32 > c ? c == f.Jy.fca ? this.Oca() : c == f.Jy.N_ && this.kH("\n", 1) : 255 > c && this.kH(String.fromCharCode(c), 1)
  24714. }
  24715. });
  24716. f.WS.Wla = f.N.extend({
  24717. ki: null,
  24718. Ik: null,
  24719. ctor: function() {
  24720. this.Ik = []
  24721. },
  24722. MRa: function(c) {
  24723. for (var d = 0; d < this.Ik.length; d++)
  24724. if (this.Ik[d] == c) return d;
  24725. return null
  24726. }
  24727. });
  24728. f.Hp = new f.WS;
  24729. document.body ? f.Hp.j() : f.ub(window, "load", function() {
  24730. f.Hp.j()
  24731. }, !1);
  24732. f.YMa = f.N.extend({
  24733. yfa: function() {
  24734. return !1
  24735. },
  24736. Afa: function() {
  24737. return !1
  24738. },
  24739. x1: function() {
  24740. return !1
  24741. },
  24742. zfa: function() {
  24743. return !1
  24744. },
  24745. $Da: function() {
  24746. return !1
  24747. }
  24748. });
  24749. f.Gj = f.ia.extend({
  24750. delegate: null,
  24751. NO: null,
  24752. wOa: null,
  24753. Si: "",
  24754. rw: "",
  24755. pL: 0,
  24756. ta: "TextFieldTTF",
  24757. ctor: function(c, d, e, g, h) {
  24758. this.NO = f.color(127, 127, 127);
  24759. f.Hp.Tba(this);
  24760. f.ia.prototype.ctor.call(this);
  24761. void 0 !== h ? (this.yCa("", d, e, g, h), c && this.Gi(c)) : void 0 === g && void 0 !== e && (this.xf("", d, e), c && this.Gi(c))
  24762. },
  24763. NB: function() {
  24764. return this.delegate
  24765. },
  24766. $p: function(c) {
  24767. this.delegate = c
  24768. },
  24769. MB: function() {
  24770. return this.pL
  24771. },
  24772. YSa: function() {
  24773. return this.NO
  24774. },
  24775. L2a: function(c) {
  24776. this.NO = c
  24777. },
  24778. yCa: function(c, d, e, g, h) {
  24779. switch (arguments.length) {
  24780. case 5:
  24781. return c &&
  24782. this.Gi(c), this.xf(this.rw, g, h, d, e);
  24783. case 3:
  24784. return c && this.Gi(c), this.xf(this.rw, arguments[1], arguments[2]);
  24785. default:
  24786. throw "Argument must be non-nil ";
  24787. }
  24788. },
  24789. wa: function(c) {
  24790. this.Si = (c = String(c)) || "";
  24791. this.Si.length ? f.ia.prototype.wa.call(this, this.Si) : f.ia.prototype.wa.call(this, this.rw);
  24792. this.pL = this.Si.length
  24793. },
  24794. qc: function() {
  24795. return this.Si
  24796. },
  24797. Gi: function(c) {
  24798. this.rw = c || "";
  24799. this.Si.length || f.ia.prototype.wa.call(this, this.rw)
  24800. },
  24801. RB: function() {
  24802. return this.rw
  24803. },
  24804. ma: function(c) {
  24805. c = c || f.s;
  24806. if (this.Si && 0 < this.Si.length) f.ia.prototype.ma.call(this,
  24807. c);
  24808. else {
  24809. var d = this.color;
  24810. this.color = this.NO;
  24811. f.K === f.fb && this.qO();
  24812. f.ia.prototype.ma.call(this, c);
  24813. this.color = d
  24814. }
  24815. },
  24816. I: function(c) {
  24817. this._super(c)
  24818. },
  24819. XG: function() {
  24820. return f.Hp.eca(this)
  24821. },
  24822. UO: function() {
  24823. return f.Hp.Mca(this)
  24824. },
  24825. YZ: function() {
  24826. return this.delegate ? !this.delegate.yfa(this) : !0
  24827. },
  24828. Sxa: function() {},
  24829. ZZ: function() {
  24830. return this.delegate ? !this.delegate.Afa(this) : !0
  24831. },
  24832. Txa: function() {},
  24833. TO: function() {
  24834. var c = this.Si.length;
  24835. 0 == c || this.delegate && this.delegate.zfa(this, this.Si[c - 1], 1) || (1 >= c ? (this.Si = "", this.pL = 0,
  24836. f.ia.prototype.wa.call(this, this.rw)) : this.string = this.Si.substring(0, c - 1))
  24837. },
  24838. KQ: function() {
  24839. f.Hp.KQ(this)
  24840. },
  24841. UH: function(c) {
  24842. var d = c;
  24843. c = d.indexOf("\n"); - 1 < c && (d = d.substring(0, c));
  24844. if (0 < d.length) {
  24845. if (this.delegate && this.delegate.x1(this, d, d.length)) return;
  24846. d = this.Si + d;
  24847. this.pL = d.length;
  24848. this.string = d
  24849. } - 1 != c && (this.delegate && this.delegate.x1(this, "\n", 1) || this.UO())
  24850. },
  24851. $_: function() {
  24852. return this.Si
  24853. },
  24854. Z0: function() {},
  24855. Pea: function() {},
  24856. Qea: function() {},
  24857. Oea: function() {}
  24858. });
  24859. q = f.Gj.prototype;
  24860. f.d(q, "charCount", q.MB);
  24861. f.d(q, "placeHolder", q.RB, q.Gi);
  24862. f.Gj.create = function(c, d, e, g, h) {
  24863. return new f.Gj(c, d, e, g, h)
  24864. };
  24865. f.mM = f.Vla;
  24866. f.AF = "Arial";
  24867. f.t$ = !1;
  24868. f.hf = f.ja.extend({
  24869. $c: !1,
  24870. ad: null,
  24871. bg: null,
  24872. Rj: !1,
  24873. ta: "MenuItem",
  24874. ctor: function(c, d) {
  24875. var e = f.ja.prototype;
  24876. e.ctor.call(this);
  24877. this.bg = this.ad = null;
  24878. this.$c = this.Rj = !1;
  24879. e.S.call(this, 0.5, 0.5);
  24880. this.ad = d || null;
  24881. if (this.bg = c || null) this.$c = !0
  24882. },
  24883. WP: function() {
  24884. return this.Rj
  24885. },
  24886. ee: function() {},
  24887. vg: function() {
  24888. return !1
  24889. },
  24890. ZI: function(c, d) {
  24891. this.ad = d;
  24892. this.bg = c
  24893. },
  24894. isEnabled: function() {
  24895. return this.$c
  24896. },
  24897. Lb: function(c) {
  24898. this.$c = c
  24899. },
  24900. SH: function(c, d) {
  24901. this.anchorY = this.anchorX = 0.5;
  24902. this.ad = d;
  24903. this.bg = c;
  24904. this.$c = !0;
  24905. this.Rj = !1;
  24906. return !0
  24907. },
  24908. rect: function() {
  24909. var c =
  24910. this.oa,
  24911. d = this.m,
  24912. e = this.Eb;
  24913. return x(c.x - d.width * e.x, c.y - d.height * e.y, d.width, d.height)
  24914. },
  24915. selected: function() {
  24916. this.Rj = !0
  24917. },
  24918. no: function() {
  24919. this.Rj = !1
  24920. },
  24921. Kga: function(c, d) {
  24922. this.ad = d;
  24923. this.bg = c
  24924. },
  24925. iB: function() {
  24926. if (this.$c) {
  24927. var c = this.ad,
  24928. d = this.bg;
  24929. if (d)
  24930. if (c && "string" == typeof d) c[d](this);
  24931. else c && "function" == typeof d ? d.call(c, this) : d(this)
  24932. }
  24933. }
  24934. });
  24935. q = f.hf.prototype;
  24936. f.d(q, "enabled", q.isEnabled, q.Lb);
  24937. f.hf.create = function(c, d) {
  24938. return new f.hf(c, d)
  24939. };
  24940. f.kv = f.hf.extend({
  24941. Fz: null,
  24942. gg: null,
  24943. vta: 0,
  24944. WE: null,
  24945. ctor: function(c, d, e) {
  24946. f.hf.prototype.ctor.call(this, d, e);
  24947. this.gg = this.Fz = null;
  24948. this.vta = 0;
  24949. this.WE = null;
  24950. c && (this.WF = 1, this.WE = f.color.WHITE, this.Fz = f.color(126, 126, 126), this.lR(c), this.cascadeOpacity = this.cascadeColor = !0)
  24951. },
  24952. Qza: function() {
  24953. return this.Fz
  24954. },
  24955. LGa: function(c) {
  24956. this.Fz = c
  24957. },
  24958. nAa: function() {
  24959. return this.gg
  24960. },
  24961. lR: function(c) {
  24962. c && (this.n(c), c.anchorX = 0, c.anchorY = 0, this.width = c.width, this.height = c.height);
  24963. this.gg && this.removeChild(this.gg, !0);
  24964. this.gg = c
  24965. },
  24966. Lb: function(c) {
  24967. if (this.$c !=
  24968. c) {
  24969. var d = this.gg;
  24970. c ? d.color = this.WE : (this.WE = d.color, d.color = this.Fz)
  24971. }
  24972. f.hf.prototype.Lb.call(this, c)
  24973. },
  24974. J: function(c) {
  24975. this.gg.opacity = c
  24976. },
  24977. vb: function() {
  24978. return this.gg.opacity
  24979. },
  24980. F: function(c) {
  24981. this.gg.color = c
  24982. },
  24983. $a: function() {
  24984. return this.gg.color
  24985. },
  24986. Cea: function(c, d, e) {
  24987. this.SH(d, e);
  24988. this.WF = 1;
  24989. this.WE = f.color.WHITE;
  24990. this.Fz = f.color(126, 126, 126);
  24991. this.lR(c);
  24992. return this.cascadeOpacity = this.cascadeColor = !0
  24993. },
  24994. wa: function(c) {
  24995. this.gg.string = c;
  24996. this.width = this.gg.width;
  24997. this.height = this.gg.height
  24998. },
  24999. qc: function() {
  25000. return this.gg.string
  25001. },
  25002. iB: function() {
  25003. this.$c && (this.Pm(), this.scale = this.WF, f.hf.prototype.iB.call(this))
  25004. },
  25005. selected: function() {
  25006. if (this.$c) {
  25007. f.hf.prototype.selected.call(this);
  25008. var c = this.eP(f.IK);
  25009. c ? this.hJ(c) : this.WF = this.scale;
  25010. c = f.Db.create(0.1, 1.2 * this.WF);
  25011. c.Nm(f.IK);
  25012. this.V(c)
  25013. }
  25014. },
  25015. no: function() {
  25016. if (this.$c) {
  25017. f.hf.prototype.no.call(this);
  25018. this.sIa(f.IK);
  25019. var c = f.Db.create(0.1, this.WF);
  25020. c.Nm(f.IK);
  25021. this.V(c)
  25022. }
  25023. }
  25024. });
  25025. q = f.kv.prototype;
  25026. f.d(q, "string", q.qc, q.wa);
  25027. f.d(q, "disabledColor", q.Qza, q.LGa);
  25028. f.d(q, "label", q.nAa, q.lR);
  25029. f.kv.create = function(c, d, e) {
  25030. return new f.kv(c, d, e)
  25031. };
  25032. f.e6 = f.kv.extend({
  25033. ctor: function(c, d, e, g, h, k, m) {
  25034. var n;
  25035. c && 0 < c.length && (n = f.an.create(c, d, e, g, h));
  25036. f.kv.prototype.ctor.call(this, n, k, m)
  25037. },
  25038. xf: function(c, d, e, g, h, k, m) {
  25039. if (!c || 0 == c.length) throw "cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0";
  25040. var n = new f.an;
  25041. n.xf(c, d, e, g, h);
  25042. this.Cea(n, k, m);
  25043. return !0
  25044. }
  25045. });
  25046. f.e6.create = function(c, d, e, g, h, k, m) {
  25047. return new f.e6(c, d, e, g, h, k, m)
  25048. };
  25049. f.jv = f.kv.extend({
  25050. Sc: null,
  25051. Rc: null,
  25052. ctor: function(c, d, e) {
  25053. var g;
  25054. c && 0 < c.length ? (this.Rc = f.AF, this.Sc = f.mM, g = f.ia.create(c, this.Rc, this.Sc)) : (this.Sc = 0, this.Rc = "");
  25055. f.kv.prototype.ctor.call(this, g, d, e)
  25056. },
  25057. xf: function(c, d, e) {
  25058. if (!c || 0 == c.length) throw "Value should be non-null and its length should be greater than 0";
  25059. this.Rc = f.AF;
  25060. this.Sc = f.mM;
  25061. c = f.ia.create(c, this.Rc, this.Sc);
  25062. this.Cea(c, d, e);
  25063. return !0
  25064. },
  25065. Qd: function(c) {
  25066. this.Sc = c;
  25067. this.Aaa()
  25068. },
  25069. Un: function() {
  25070. return this.Sc
  25071. },
  25072. de: function(c) {
  25073. this.Rc = c;
  25074. this.Aaa()
  25075. },
  25076. Cp: function() {
  25077. return this.Rc
  25078. },
  25079. Aaa: function() {
  25080. var c = f.ia.create(this.gg.string, this.Rc, this.Sc);
  25081. this.lR(c)
  25082. }
  25083. });
  25084. f.jv.Qd = function(c) {
  25085. f.mM = c
  25086. };
  25087. f.jv.fontSize = function() {
  25088. return f.mM
  25089. };
  25090. f.jv.de = function(c) {
  25091. f.t$ && (f.AF = "");
  25092. f.AF = c;
  25093. f.t$ = !0
  25094. };
  25095. q = f.jv.prototype;
  25096. f.d(q, "fontSize", q.Un, q.Qd);
  25097. f.d(q, "fontName", q.Cp, q.de);
  25098. f.jv.fontName = function() {
  25099. return f.AF
  25100. };
  25101. f.jv.create = function(c, d, e) {
  25102. return new f.jv(c, d, e)
  25103. };
  25104. f.Oy = f.hf.extend({
  25105. Ig: null,
  25106. dj: null,
  25107. Qi: null,
  25108. ctor: function(c, d, e, g, h) {
  25109. f.hf.prototype.ctor.call(this);
  25110. this.Qi = this.dj = this.Ig = null;
  25111. if (void 0 !== d) {
  25112. var k, m, n;
  25113. void 0 !== h ? (k = e, n = g, m = h) : void 0 !== g && "function" === typeof g ? (k = e, n = g) : void 0 !== g && "function" === typeof e ? (m = g, n = e, k = d) : void 0 === e && (k = d);
  25114. this.Dea(c, d, k, n, m)
  25115. }
  25116. },
  25117. IAa: function() {
  25118. return this.Ig
  25119. },
  25120. A2: function(c) {
  25121. this.Ig != c && (c && (this.n(c, 0, f.uma), c.anchorX = 0, c.anchorY = 0), this.Ig && this.removeChild(this.Ig, !0), this.Ig = c, this.width = this.Ig.width, this.height = this.Ig.height,
  25122. this.lO(), c.RC && !c.Ba && c.oe(function(c) {
  25123. this.width = c.width;
  25124. this.height = c.height
  25125. }, this))
  25126. },
  25127. hBa: function() {
  25128. return this.dj
  25129. },
  25130. O2: function(c) {
  25131. this.dj != c && (c && (this.n(c, 0, f.yna), c.anchorX = 0, c.anchorY = 0), this.dj && this.removeChild(this.dj, !0), this.dj = c, this.lO())
  25132. },
  25133. Rza: function() {
  25134. return this.Qi
  25135. },
  25136. v2: function(c) {
  25137. this.Qi != c && (c && (this.n(c, 0, f.Zka), c.anchorX = 0, c.anchorY = 0), this.Qi && this.removeChild(this.Qi, !0), this.Qi = c, this.lO())
  25138. },
  25139. Dea: function(c, d, e, g, h) {
  25140. this.SH(g, h);
  25141. this.A2(c);
  25142. this.O2(d);
  25143. this.v2(e);
  25144. if (c = this.Ig) this.width =
  25145. c.width, this.height = c.height, c.RC && !c.Ba && c.oe(function(c) {
  25146. this.width = c.width;
  25147. this.height = c.height;
  25148. this.cascadeOpacity = this.cascadeColor = !0
  25149. }, this);
  25150. return this.cascadeOpacity = this.cascadeColor = !0
  25151. },
  25152. F: function(c) {
  25153. this.Ig.color = c;
  25154. this.dj && (this.dj.color = c);
  25155. this.Qi && (this.Qi.color = c)
  25156. },
  25157. $a: function() {
  25158. return this.Ig.color
  25159. },
  25160. J: function(c) {
  25161. this.Ig.opacity = c;
  25162. this.dj && (this.dj.opacity = c);
  25163. this.Qi && (this.Qi.opacity = c)
  25164. },
  25165. vb: function() {
  25166. return this.Ig.opacity
  25167. },
  25168. selected: function() {
  25169. f.hf.prototype.selected.call(this);
  25170. this.Ig && (this.Qi && (this.Qi.visible = !1), this.dj ? (this.Ig.visible = !1, this.dj.visible = !0) : this.Ig.visible = !0)
  25171. },
  25172. no: function() {
  25173. f.hf.prototype.no.call(this);
  25174. this.Ig && (this.Ig.visible = !0, this.dj && (this.dj.visible = !1), this.Qi && (this.Qi.visible = !1))
  25175. },
  25176. Lb: function(c) {
  25177. this.$c != c && (f.hf.prototype.Lb.call(this, c), this.lO())
  25178. },
  25179. lO: function() {
  25180. var c = this.Ig,
  25181. d = this.dj,
  25182. e = this.Qi;
  25183. this.$c ? (c && (c.visible = !0), d && (d.visible = !1), e && (e.visible = !1)) : e ? (c && (c.visible = !1), d && (d.visible = !1), e && (e.visible = !0)) : (c && (c.visible = !0),
  25184. d && (d.visible = !1))
  25185. }
  25186. });
  25187. q = f.Oy.prototype;
  25188. f.d(q, "normalImage", q.IAa, q.A2);
  25189. f.d(q, "selectedImage", q.hBa, q.O2);
  25190. f.d(q, "disabledImage", q.Rza, q.v2);
  25191. f.Oy.create = function(c, d, e, g, h) {
  25192. return new f.Oy(c, d, e, g, h || void 0)
  25193. };
  25194. f.Il = f.Oy.extend({
  25195. ctor: function(c, d, e, g, h) {
  25196. var k = null,
  25197. m = null,
  25198. n = null,
  25199. p = null,
  25200. s = null;
  25201. void 0 === c ? f.Oy.prototype.ctor.call(this) : (k = f.q.create(c), d && (m = f.q.create(d)), void 0 === g ? p = e : void 0 === h ? (p = e, s = g) : h && (n = f.q.create(e), p = g, s = h), f.Oy.prototype.ctor.call(this, k, m, n, p, s))
  25202. },
  25203. mHa: function(c) {
  25204. this.A2(f.q.create(c))
  25205. },
  25206. IHa: function(c) {
  25207. this.O2(f.q.create(c))
  25208. },
  25209. MGa: function(c) {
  25210. this.v2(f.q.create(c))
  25211. },
  25212. cXa: function(c, d, e, g, h) {
  25213. var k = null,
  25214. m = null,
  25215. n = null;
  25216. c && (k = f.q.create(c));
  25217. d && (m = f.q.create(d));
  25218. e && (n = f.q.create(e));
  25219. return this.Dea(k, m, n, g, h)
  25220. }
  25221. });
  25222. f.Il.create = function(c, d, e, g, h) {
  25223. return new f.Il(c, d, e, g, h)
  25224. };
  25225. f.hT = f.hf.extend({
  25226. yg: null,
  25227. im: 0,
  25228. Ib: null,
  25229. Ea: null,
  25230. ctor: function() {
  25231. var c = arguments.length,
  25232. d, e;
  25233. "function" === typeof arguments[c - 2] ? (d = arguments[c - 2], e = arguments[c - 1], c -= 2) : "function" === typeof arguments[c - 1] && (d = arguments[c - 1], c -= 1);
  25234. f.hf.prototype.ctor.call(this, d, e);
  25235. this.im = 0;
  25236. this.yg = [];
  25237. this.Ib = 0;
  25238. this.Ea = f.color.WHITE;
  25239. if (0 < c) {
  25240. d = this.yg;
  25241. for (e = d.length = 0; e < c; e++) arguments[e] && d.push(arguments[e]);
  25242. this.im = f.oU;
  25243. this.VI(0);
  25244. this.Gu(!0);
  25245. this.Hu(!0)
  25246. }
  25247. },
  25248. vb: function() {
  25249. return this.Ib
  25250. },
  25251. J: function(c) {
  25252. this.Ib = c;
  25253. if (this.yg &&
  25254. 0 < this.yg.length)
  25255. for (var d = 0; d < this.yg.length; d++) this.yg[d].opacity = c;
  25256. this.Ea.a = c
  25257. },
  25258. $a: function() {
  25259. var c = this.Ea;
  25260. return f.color(c.r, c.g, c.b, c.a)
  25261. },
  25262. F: function(c) {
  25263. var d = this.Ea;
  25264. d.r = c.r;
  25265. d.g = c.g;
  25266. d.b = c.b;
  25267. if (this.yg && 0 < this.yg.length)
  25268. for (d = 0; d < this.yg.length; d++) this.yg[d].F(c);
  25269. void 0 === c.a || c.Yw || this.J(c.a)
  25270. },
  25271. iBa: function() {
  25272. return this.im
  25273. },
  25274. VI: function(c) {
  25275. if (c != this.im) {
  25276. this.im = c;
  25277. (c = this.Za(f.L4)) && c.Yp(!1);
  25278. c = this.yg[this.im];
  25279. this.n(c, 0, f.L4);
  25280. var d = c.width,
  25281. e = c.height;
  25282. this.width = d;
  25283. this.height = e;
  25284. c.o(d / 2, e /
  25285. 2)
  25286. }
  25287. },
  25288. aWa: function() {
  25289. return this.yg
  25290. },
  25291. o4a: function(c) {
  25292. this.yg = c
  25293. },
  25294. NP: function(c) {
  25295. var d = c.length;
  25296. "function" === typeof c[c.length - 2] ? (this.SH(c[c.length - 2], c[c.length - 1]), d -= 2) : "function" === typeof c[c.length - 1] ? (this.SH(c[c.length - 1], null), d -= 1) : this.SH(null, null);
  25297. for (var e = this.yg, g = e.length = 0; g < d; g++) c[g] && e.push(c[g]);
  25298. this.im = f.oU;
  25299. this.VI(0);
  25300. return this.cascadeOpacity = this.cascadeColor = !0
  25301. },
  25302. CPa: function(c) {
  25303. this.yg.push(c)
  25304. },
  25305. iB: function() {
  25306. this.$c && this.VI((this.im + 1) % this.yg.length);
  25307. f.hf.prototype.iB.call(this)
  25308. },
  25309. selected: function() {
  25310. f.hf.prototype.selected.call(this);
  25311. this.yg[this.im].selected()
  25312. },
  25313. no: function() {
  25314. f.hf.prototype.no.call(this);
  25315. this.yg[this.im].no()
  25316. },
  25317. Lb: function(c) {
  25318. if (this.$c != c) {
  25319. f.hf.prototype.Lb.call(this, c);
  25320. var d = this.yg;
  25321. if (d && 0 < d.length)
  25322. for (var e = 0; e < d.length; e++) d[e].enabled = c
  25323. }
  25324. },
  25325. k2a: function() {
  25326. return this.yg[this.im]
  25327. },
  25328. ba: function() {
  25329. f.v.prototype.ba.call(this);
  25330. this.VI(this.im)
  25331. }
  25332. });
  25333. q = f.hT.prototype;
  25334. f.d(q, "selectedIndex", q.iBa, q.VI);
  25335. f.hT.create = function() {
  25336. 0 < arguments.length && null == arguments[arguments.length - 1] && f.log("parameters should not be ending with null in Javascript");
  25337. var c = new f.hT;
  25338. c.NP(Array.prototype.slice.apply(arguments));
  25339. return c
  25340. };
  25341. f.aE = 0;
  25342. f.$D = 1;
  25343. f.RLa = -128;
  25344. f.OJ = 5;
  25345. f.ws = f.ci.extend({
  25346. enabled: !1,
  25347. Ea: null,
  25348. Ib: 0,
  25349. Lf: null,
  25350. Ic: -1,
  25351. vi: null,
  25352. ta: "Menu",
  25353. ctor: function(c) {
  25354. f.ci.prototype.ctor.call(this);
  25355. this.Ea = f.color.WHITE;
  25356. this.enabled = !1;
  25357. this.Ib = 255;
  25358. this.Lf = null;
  25359. this.Ic = -1;
  25360. this.vi = f.Xa.create({
  25361. event: f.Xa.zs,
  25362. QC: !0,
  25363. rc: this.pta,
  25364. hd: this.tta,
  25365. gd: this.rta,
  25366. ef: this.qta
  25367. });
  25368. 0 < arguments.length && null == arguments[arguments.length - 1] && f.log("parameters should not be ending with null in Javascript");
  25369. var d = arguments.length,
  25370. e;
  25371. if (0 == d) e = [];
  25372. else if (1 == d) e = c instanceof Array ? c : [c];
  25373. else if (1 < d) {
  25374. e = [];
  25375. for (var g = 0; g < d; g++) arguments[g] && e.push(arguments[g])
  25376. }
  25377. this.xea(e)
  25378. },
  25379. ba: function() {
  25380. var c = this.vi;
  25381. c.aj || f.Qa.addListener(c, this);
  25382. f.v.prototype.ba.call(this)
  25383. },
  25384. $a: function() {
  25385. var c = this.Ea;
  25386. return f.color(c.r, c.g, c.b, c.a)
  25387. },
  25388. F: function(c) {
  25389. var d = this.Ea;
  25390. d.r = c.r;
  25391. d.g = c.g;
  25392. d.b = c.b;
  25393. if ((d = this.i) && 0 < d.length)
  25394. for (var e = 0; e < d.length; e++) d[e].F(c);
  25395. void 0 === c.a || c.Yw || this.J(c.a)
  25396. },
  25397. vb: function() {
  25398. return this.Ib
  25399. },
  25400. J: function(c) {
  25401. this.Ib = c;
  25402. var d = this.i;
  25403. if (d && 0 < d.length)
  25404. for (var e = 0; e < d.length; e++) d[e].J(c);
  25405. this.Ea.a = c
  25406. },
  25407. isEnabled: function() {
  25408. return this.enabled
  25409. },
  25410. Lb: function(c) {
  25411. this.enabled = c
  25412. },
  25413. NP: function(c) {
  25414. var d = [];
  25415. if (c)
  25416. for (var e = 0; e < c.length; e++) c[e] && d.push(c[e]);
  25417. return this.xea(d)
  25418. },
  25419. xea: function(c) {
  25420. if (f.ci.prototype.j.call(this)) {
  25421. this.enabled = !0;
  25422. var d = f.gq;
  25423. this.o(d.width / 2, d.height / 2);
  25424. this.Ga(d);
  25425. this.S(0.5, 0.5);
  25426. this.Gm(!0);
  25427. if (c)
  25428. for (d = 0; d < c.length; d++) this.n(c[d], d);
  25429. this.Lf = null;
  25430. this.Ic = f.aE;
  25431. return this.cascadeOpacity = this.cascadeColor = !0
  25432. }
  25433. return !1
  25434. },
  25435. n: function(c, d, e) {
  25436. if (!(c instanceof f.hf)) throw "cc.Menu.addChild() : Menu only supports MenuItem objects as children";
  25437. f.Me.prototype.n.call(this, c, d, e)
  25438. },
  25439. cwa: function() {
  25440. this.yZ(f.OJ)
  25441. },
  25442. yZ: function(c) {
  25443. var d = -c,
  25444. e = this.i,
  25445. g, h, k, m;
  25446. if (e && 0 < e.length) {
  25447. h = 0;
  25448. for (g = e.length; h < g; h++) d += e[h].height * e[h].scaleY + c;
  25449. var n = d / 2;
  25450. h = 0;
  25451. for (g = e.length; h < g; h++) m = e[h], k = m.height, d = m.scaleY, m.o(0, n - k * d / 2), n -= k * d + c
  25452. }
  25453. },
  25454. $va: function() {
  25455. this.xZ(f.OJ)
  25456. },
  25457. xZ: function(c) {
  25458. var d = -c,
  25459. e = this.i,
  25460. g, h, k, m;
  25461. if (e && 0 < e.length) {
  25462. g = 0;
  25463. for (h = e.length; g < h; g++) d += e[g].width * e[g].scaleX + c;
  25464. var n = -d / 2;
  25465. g = 0;
  25466. for (h = e.length; g < h; g++) m = e[g], d = m.scaleX, k = e[g].width, m.o(n + k * d / 2, 0), n +=
  25467. k * d + c
  25468. }
  25469. },
  25470. awa: function() {
  25471. 0 < arguments.length && null == arguments[arguments.length - 1] && f.log("parameters should not be ending with null in Javascript");
  25472. for (var c = [], d = 0; d < arguments.length; d++) c.push(arguments[d]);
  25473. var e = -5,
  25474. g = 0,
  25475. h = 0,
  25476. k = 0,
  25477. m, n, p, s = this.i;
  25478. if (s && 0 < s.length)
  25479. for (d = 0, p = s.length; d < p; d++) g >= c.length || !(m = c[g]) || (n = s[d].height, h = h >= n || isNaN(n) ? h : n, ++k, k >= m && (e += h + 5, h = k = 0, ++g));
  25480. var u = f.Q.Y,
  25481. v = m = h = g = 0,
  25482. z = 0,
  25483. e = e / 2;
  25484. if (s && 0 < s.length)
  25485. for (d = 0, p = s.length; d < p; d++) {
  25486. var A = s[d];
  25487. 0 == m && (m = c[g], z = v = u.width / (1 + m));
  25488. n = A.Gg();
  25489. h = h >= n || isNaN(n) ? h : n;
  25490. A.o(z - u.width / 2, e - n / 2);
  25491. z += v;
  25492. ++k;
  25493. k >= m && (e -= h + 5, h = m = k = 0, ++g)
  25494. }
  25495. },
  25496. bwa: function() {
  25497. 0 < arguments.length && null == arguments[arguments.length - 1] && f.log("parameters should not be ending with null in Javascript");
  25498. var c = [],
  25499. d;
  25500. for (d = 0; d < arguments.length; d++) c.push(arguments[d]);
  25501. var e = [],
  25502. g = [],
  25503. h = -10,
  25504. k = -5,
  25505. m = 0,
  25506. n = 0,
  25507. p = 0,
  25508. s, u, v, z, A = this.i;
  25509. if (A && 0 < A.length)
  25510. for (d = 0, v = A.length; d < v; d++)(u = A[d], m >= c.length || !(s = c[m])) || (z = u.width, n = n >= z || isNaN(z) ? n : z, k += u.height + 5, ++p, p >= s && (e.push(n), g.push(k), h += n + 10, n = p =
  25511. 0, k = -5, ++m));
  25512. k = f.Q.Y;
  25513. s = n = m = 0;
  25514. var h = -h / 2,
  25515. B = 0;
  25516. if (A && 0 < A.length)
  25517. for (d = 0, v = A.length; d < v; d++) u = A[d], 0 == s && (s = c[m], B = g[m]), z = u.lf(), n = n >= z || isNaN(z) ? n : z, u.o(h + e[m] / 2, B - k.height / 2), B -= u.height + 10, ++p, p >= s && (h += n + 5, n = s = p = 0, ++m)
  25518. },
  25519. removeChild: function(c, d) {
  25520. null != c && (c instanceof f.hf ? (this.Lf == c && (this.Lf = null), f.v.prototype.removeChild.call(this, c, d)) : f.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children"))
  25521. },
  25522. pta: function(c, d) {
  25523. var e = d.eh;
  25524. if (e.Ic != f.aE || !e.Na || !e.enabled) return !1;
  25525. for (var g =
  25526. e.parent; null != g; g = g.parent)
  25527. if (!g.Na) return !1;
  25528. e.Lf = e.N$(c);
  25529. return e.Lf ? (e.Ic = f.$D, e.Lf.selected(), !0) : !1
  25530. },
  25531. rta: function(c, d) {
  25532. var e = d.eh;
  25533. e.Ic !== f.$D ? f.log("cc.Menu.onTouchEnded(): invalid state") : (e.Lf && (e.Lf.no(), e.Lf.iB()), e.Ic = f.aE)
  25534. },
  25535. qta: function(c, d) {
  25536. var e = d.eh;
  25537. e.Ic !== f.$D ? f.log("cc.Menu.onTouchCancelled(): invalid state") : (this.Lf && e.Lf.no(), e.Ic = f.aE)
  25538. },
  25539. tta: function(c, d) {
  25540. var e = d.eh;
  25541. if (e.Ic !== f.$D) f.log("cc.Menu.onTouchMoved(): invalid state");
  25542. else {
  25543. var g = e.N$(c);
  25544. g != e.Lf && (e.Lf && e.Lf.no(), e.Lf = g,
  25545. e.Lf && e.Lf.selected())
  25546. }
  25547. },
  25548. Ra: function() {
  25549. this.Ic == f.$D && (this.Lf && (this.Lf.no(), this.Lf = null), this.Ic = f.aE);
  25550. f.v.prototype.Ra.call(this)
  25551. },
  25552. ee: function() {},
  25553. vg: function() {
  25554. return !1
  25555. },
  25556. N$: function(c) {
  25557. c = c.cf();
  25558. var d = this.i,
  25559. e;
  25560. if (d && 0 < d.length)
  25561. for (var g = 0; g < d.length; g++)
  25562. if (e = d[g], e.Na && e.isEnabled()) {
  25563. var h = e.yi(c),
  25564. k = e.rect();
  25565. k.x = 0;
  25566. k.y = 0;
  25567. if (f.Bu(k, h)) return e
  25568. }
  25569. return null
  25570. }
  25571. });
  25572. q = f.ws.prototype;
  25573. f.ws.create = function(c) {
  25574. var d = arguments.length;
  25575. 0 < d && null == arguments[d - 1] && f.log("parameters should not be ending with null in Javascript");
  25576. return 0 == d ? new f.ws : 1 == d ? new f.ws(c) : new f.ws(Array.prototype.slice.call(arguments, 0))
  25577. };
  25578. f.MMa = 0;
  25579. f.IMa = 1;
  25580. f.LMa = 2;
  25581. f.JMa = 3;
  25582. f.KMa = 4;
  25583. f.HMa = 5;
  25584. f.u5a = function(c, d, e) {
  25585. var g = 2;
  25586. if (g + 1 > d) return !1;
  25587. c = new f.Cja(c);
  25588. c.nR(g);
  25589. e.type = c.ca();
  25590. g += 10;
  25591. if (g + 4 + 1 > d) return !1;
  25592. c.nR(g);
  25593. e.width = c.yFa();
  25594. e.height = c.xFa();
  25595. e.pixelDepth = c.ca();
  25596. if (g + 5 + 1 > d) return !1;
  25597. d = c.ca();
  25598. e.ida = 0;
  25599. d & 32 && (e.ida = 1);
  25600. return !0
  25601. };
  25602. f.v5a = function(c, d, e) {
  25603. var g, h;
  25604. g = 0 | e.pixelDepth / 2;
  25605. h = e.height * e.width * g;
  25606. if (18 + h > d) return !1;
  25607. e.fk = f.MK(c, 18, 18 + h);
  25608. if (3 <= g)
  25609. for (c = 0; c < h; c += g) d = e.fk[c], e.fk[c] = e.fk[c + 2], e.fk[c + 2] = d;
  25610. return !0
  25611. };
  25612. f.x5a = function(c) {
  25613. var d, e;
  25614. if (8 !== c.pixelDepth) {
  25615. var g = c.pixelDepth / 8,
  25616. h = new Uint8Array(c.height * c.width);
  25617. if (null !== h) {
  25618. for (e = d = 0; e < c.width * c.height; d += g, e++) h[e] = 0.3 * c.fk[d] + 0.59 * c.fk[d + 1] + 0.11 * c.fk[d + 2];
  25619. c.pixelDepth = 8;
  25620. c.type = 3;
  25621. c.fk = h
  25622. }
  25623. }
  25624. };
  25625. f.s5a = function(c) {
  25626. c && (c.fk = null)
  25627. };
  25628. f.w5a = function(c, d, e) {
  25629. var g, h, k, m = 0,
  25630. n = 0,
  25631. p = 0,
  25632. s = [],
  25633. u = 0,
  25634. v = 18;
  25635. g = e.pixelDepth / 8;
  25636. h = e.height * e.width;
  25637. for (k = 0; k < h; k++) {
  25638. if (0 != u) u--, n = 0 != p;
  25639. else {
  25640. if (v + 1 > d) break;
  25641. u = c[v];
  25642. v += 1;
  25643. (p = u & 128) && (u -= 128);
  25644. n = 0
  25645. } if (!n) {
  25646. if (v + g > d) break;
  25647. s = f.MK(c, v, v + g);
  25648. v += g;
  25649. 3 <= g && (n = s[0], s[0] = s[2], s[2] = n)
  25650. }
  25651. for (n = 0; n < g; n++) e.fk[m + n] = s[n];
  25652. m += g
  25653. }
  25654. return !0
  25655. };
  25656. f.t5a = function(c) {
  25657. for (var d = c.pixelDepth / 8 * c.width, e = 0; e < c.height / 2; e++) {
  25658. var g = f.MK(c.fk, e * d, e * d + d);
  25659. f.s8(f.MK(c.fk, (c.height - (e + 1)) * d, d), c.fk, e * d);
  25660. f.s8(g, c.fk, (c.height - (e + 1)) * d)
  25661. }
  25662. c.ida = 0
  25663. };
  25664. f.MK = function(c, d, e) {
  25665. return c instanceof Array ? c.slice(d, e) : c.subarray(d, e)
  25666. };
  25667. f.s8 = function(c, d, e) {
  25668. for (var g = 0; g < c.length; g++) d[e + g] = c[g]
  25669. };
  25670. f.Cja = f.N.extend({
  25671. hz: null,
  25672. hb: 0,
  25673. ctor: function(c) {
  25674. this.hz = c
  25675. },
  25676. C2a: function(c) {
  25677. this.hz = c;
  25678. this.hb = 0
  25679. },
  25680. tSa: function() {
  25681. return this.hz
  25682. },
  25683. sV: function(c) {
  25684. if (!(this.hb + Math.ceil(c / 8) < this.Mh.length)) throw Error("Index out of bound");
  25685. },
  25686. FV: function(c, d) {
  25687. var e = c + d + 1,
  25688. g = e >> 3;
  25689. this.sV(e);
  25690. var e = Math.pow(2, d - 1) - 1,
  25691. h = this.QX(c + d, 1, g),
  25692. k = this.QX(c, d, g),
  25693. m = 0,
  25694. n = 2,
  25695. p = 0;
  25696. do
  25697. for (var s = this.pN(++p, g), u = c % 8 || 8, v = 1 << u; v >>= 1;) s & v && (m += 1 / n), n *= 2; while (c -= u);
  25698. this.hb += g;
  25699. return k == (e << 1) + 1 ? m ? NaN : h ? -Infinity : Infinity : (1 + -2 * h) * (k || m ? k ? Math.pow(2,
  25700. k - e) * (1 + m) : Math.pow(2, -e + 1) * m : 0)
  25701. },
  25702. pN: function(c, d) {
  25703. return this.Mh[this.hb + d - c - 1]
  25704. },
  25705. CL: function(c, d) {
  25706. var e = this.QX(0, c, c / 8),
  25707. g = Math.pow(2, c);
  25708. this.hb += c / 8;
  25709. return d && e >= g / 2 ? e - g : e
  25710. },
  25711. tY: function(c, d) {
  25712. for (++d; --d; c = 1073741824 == ((c %= 2147483648) & 1073741824) ? 2 * c : 2 * (c - 1073741824) + 2147483648);
  25713. return c
  25714. },
  25715. QX: function(c, d, e) {
  25716. var g = (c + d) % 8,
  25717. h = c % 8,
  25718. k = e - (c >> 3) - 1;
  25719. c = e + (-(c + d) >> 3);
  25720. var m = k - c;
  25721. d = this.pN(k, e) >> h & (1 << (m ? 8 - h : d)) - 1;
  25722. for (m && g && (d += (this.pN(c++, e) & (1 << g) - 1) << (m-- << 3) - h); m;) d += this.tY(this.pN(c++, e), (m-- << 3) - h);
  25723. return d
  25724. },
  25725. H0a: function() {
  25726. return this.CL(32, !0)
  25727. },
  25728. xFa: function() {
  25729. return this.CL(32, !1)
  25730. },
  25731. J0a: function() {
  25732. return this.FV(23, 8)
  25733. },
  25734. I0a: function() {
  25735. return this.CL(16, !0)
  25736. },
  25737. yFa: function() {
  25738. return this.CL(16, !1)
  25739. },
  25740. ca: function() {
  25741. var c = this.Mh[this.hb];
  25742. this.hb += 1;
  25743. return c
  25744. },
  25745. E0a: function(c, d) {
  25746. return this.hz instanceof Array ? this.hz.slice(c, d) : this.hz.subarray(c, d)
  25747. },
  25748. nR: function(c) {
  25749. this.hb = c
  25750. },
  25751. Kda: function() {
  25752. return this.hb
  25753. }
  25754. });
  25755. f.AK = 0;
  25756. f.yK = 1;
  25757. f.zK = 2;
  25758. f.xK = f.ja.extend({
  25759. Ad: null,
  25760. j1: null,
  25761. rC: null,
  25762. jg: null,
  25763. ud: null,
  25764. vr: null,
  25765. ta: "TMXTiledMap",
  25766. ctor: function(c, d) {
  25767. f.v.prototype.ctor.call(this);
  25768. this.jg = t(0, 0);
  25769. this.ud = t(0, 0);
  25770. void 0 !== d ? this.L0(c, d) : void 0 !== c && this.J0(c)
  25771. },
  25772. d0: function() {
  25773. return t(this.jg.width, this.jg.height)
  25774. },
  25775. jha: function(c) {
  25776. this.jg.width = c.width;
  25777. this.jg.height = c.height
  25778. },
  25779. yW: function() {
  25780. return this.jg.width
  25781. },
  25782. kY: function(c) {
  25783. this.jg.width = c
  25784. },
  25785. xW: function() {
  25786. return this.jg.height
  25787. },
  25788. jY: function(c) {
  25789. this.jg.height = c
  25790. },
  25791. TB: function() {
  25792. return t(this.ud.width, this.ud.height)
  25793. },
  25794. Wha: function(c) {
  25795. this.ud.width = c.width;
  25796. this.ud.height = c.height
  25797. },
  25798. zF: function() {
  25799. return this.ud.width
  25800. },
  25801. oG: function(c) {
  25802. this.ud.width = c
  25803. },
  25804. yF: function() {
  25805. return this.ud.height
  25806. },
  25807. nG: function(c) {
  25808. this.ud.height = c
  25809. },
  25810. AUa: function() {
  25811. return this.j1
  25812. },
  25813. E3a: function(c) {
  25814. this.j1 = c
  25815. },
  25816. Jda: function() {
  25817. return this.rC
  25818. },
  25819. nha: function(c) {
  25820. this.rC = c
  25821. },
  25822. rP: function() {
  25823. return this.Ad
  25824. },
  25825. rR: function(c) {
  25826. this.Ad = c
  25827. },
  25828. J0: function(c) {
  25829. if (!c || 0 == c.length) throw "cc.TMXTiledMap.initWithTMXFile(): tmxFile should be non-null or non-empty string.";
  25830. this.height =
  25831. this.width = 0;
  25832. c = f.nE.create(c);
  25833. if (!c) return !1;
  25834. var d = c.Lw;
  25835. d && 0 !== d.length || f.log("cc.TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename.");
  25836. this.O8(c);
  25837. return !0
  25838. },
  25839. L0: function(c, d) {
  25840. this.height = this.width = 0;
  25841. var e = f.nE.create(c, d),
  25842. g = e.Lw;
  25843. g && 0 !== g.length || f.log("cc.TMXTiledMap.initWithXML(): Map not found. Please check the filename.");
  25844. this.O8(e);
  25845. return !0
  25846. },
  25847. O8: function(c) {
  25848. this.jg = c.d0();
  25849. this.ud = c.TB();
  25850. this.j1 = c.orientation;
  25851. this.rC = c.Jda();
  25852. this.Ad = c.Ad;
  25853. this.vr = c.vr;
  25854. var d = 0,
  25855. e = c.oi;
  25856. if (e)
  25857. for (var g =
  25858. null, h = 0, k = e.length; h < k; h++)(g = e[h]) && g.visible && (g = this.Bta(g, c), this.n(g, d, d), this.width = Math.max(this.width, g.width), this.height = Math.max(this.height, g.height), d++)
  25859. },
  25860. IPa: function() {
  25861. for (var c = [], d = this.i, e = 0, g = d.length; e < g; e++) {
  25862. var h = d[e];
  25863. h && h instanceof f.mE && c.push(h)
  25864. }
  25865. return c
  25866. },
  25867. pUa: function(c) {
  25868. if (!c || 0 === c.length) throw "cc.TMXTiledMap.getLayer(): layerName should be non-null or non-empty string.";
  25869. for (var d = this.i, e = 0; e < d.length; e++) {
  25870. var g = d[e];
  25871. if (g && g.kQ == c) return g
  25872. }
  25873. return null
  25874. },
  25875. OUa: function(c) {
  25876. if (!c ||
  25877. 0 === c.length) throw "cc.TMXTiledMap.getObjectGroup(): groupName should be non-null or non-empty string.";
  25878. if (this.rC)
  25879. for (var d = 0; d < this.rC.length; d++) {
  25880. var e = this.rC[d];
  25881. if (e && e.NH == c) return e
  25882. }
  25883. return null
  25884. },
  25885. k0: function(c) {
  25886. return this.Ad[c.toString()]
  25887. },
  25888. w0a: function(c) {
  25889. return this.vr[c]
  25890. },
  25891. Bta: function(c, d) {
  25892. var e = this.mva(c, d),
  25893. e = f.mE.create(e, c, d);
  25894. c.Ffa = !1;
  25895. e.bIa();
  25896. return e
  25897. },
  25898. mva: function(c, d) {
  25899. var e = c.rb,
  25900. g = d.Lw;
  25901. if (g)
  25902. for (var h = g.length - 1; 0 <= h; h--) {
  25903. var k = g[h];
  25904. if (k)
  25905. for (var m = 0; m < e.height; m++)
  25906. for (var n = 0; n < e.width; n++) {
  25907. var p =
  25908. c.ej[n + e.width * m];
  25909. if (0 != p && (p & f.UT) >>> 0 >= k.ux) return k
  25910. }
  25911. }
  25912. f.log("cocos2d: Warning: TMX Layer " + c.name + " has no tiles");
  25913. return null
  25914. }
  25915. });
  25916. q = f.xK.prototype;
  25917. f.d(q, "mapWidth", q.yW, q.kY);
  25918. f.d(q, "mapHeight", q.xW, q.jY);
  25919. f.d(q, "tileWidth", q.zF, q.oG);
  25920. f.d(q, "tileHeight", q.yF, q.nG);
  25921. f.xK.create = function(c, d) {
  25922. return new f.xK(c, d)
  25923. };
  25924. f.Noa = 0;
  25925. f.OMa = 1;
  25926. f.NMa = 2;
  25927. f.QMa = 3;
  25928. f.PMa = 4;
  25929. f.RMa = 5;
  25930. f.oE = 2147483648;
  25931. f.pE = 1073741824;
  25932. f.s7 = 536870912;
  25933. f.t7 = (f.oE | f.pE | f.s7) >>> 0;
  25934. f.UT = ~f.t7 >>> 0;
  25935. f.rv = f.N.extend({
  25936. Ad: null,
  25937. name: "",
  25938. rb: null,
  25939. ej: null,
  25940. visible: null,
  25941. Ib: null,
  25942. Ffa: !0,
  25943. dw: 1E5,
  25944. cw: 0,
  25945. offset: null,
  25946. ctor: function() {
  25947. this.Ad = [];
  25948. this.name = "";
  25949. this.rb = null;
  25950. this.ej = [];
  25951. this.visible = !0;
  25952. this.Ib = 0;
  25953. this.Ffa = !0;
  25954. this.dw = 1E5;
  25955. this.cw = 0;
  25956. this.offset = r(0, 0)
  25957. },
  25958. rP: function() {
  25959. return this.Ad
  25960. },
  25961. rR: function(c) {
  25962. this.Ad = c
  25963. }
  25964. });
  25965. f.Moa = f.N.extend({
  25966. name: "",
  25967. ux: 0,
  25968. ud: null,
  25969. gJ: 0,
  25970. margin: 0,
  25971. hia: "",
  25972. GP: null,
  25973. ctor: function() {
  25974. this.ud = t(0, 0);
  25975. this.GP = t(0, 0)
  25976. },
  25977. EI: function(c) {
  25978. var d = x(0, 0, 0, 0);
  25979. d.width = this.ud.width;
  25980. d.height = this.ud.height;
  25981. c &= f.UT;
  25982. c -= parseInt(this.ux, 10);
  25983. var e = parseInt((this.GP.width - 2 * this.margin + this.gJ) / (this.ud.width + this.gJ), 10);
  25984. d.x = parseInt(c % e * (this.ud.width + this.gJ) + this.margin, 10);
  25985. d.y = parseInt(parseInt(c / e, 10) * (this.ud.height + this.gJ) + this.margin, 10);
  25986. return d
  25987. }
  25988. });
  25989. f.nE = f.pK.extend({
  25990. Ad: null,
  25991. orientation: null,
  25992. parentElement: null,
  25993. FQ: null,
  25994. jQ: 0,
  25995. l3: !1,
  25996. TC: null,
  25997. s_: null,
  25998. ZM: null,
  25999. jg: null,
  26000. ud: null,
  26001. oi: null,
  26002. Lw: null,
  26003. vr: null,
  26004. wN: "",
  26005. d9: 0,
  26006. ctor: function(c, d) {
  26007. f.pK.prototype.ctor.apply(this);
  26008. this.jg = t(0, 0);
  26009. this.ud = t(0, 0);
  26010. this.oi = [];
  26011. this.Lw = [];
  26012. this.ZM = [];
  26013. this.Ad = [];
  26014. this.vr = {};
  26015. this.d9 = 0;
  26016. void 0 !== d ? this.L0(c, d) : void 0 !== c && this.J0(c)
  26017. },
  26018. VUa: function() {
  26019. return this.orientation
  26020. },
  26021. M3a: function(c) {
  26022. this.orientation = c
  26023. },
  26024. d0: function() {
  26025. return t(this.jg.width, this.jg.height)
  26026. },
  26027. jha: function(c) {
  26028. this.jg.width =
  26029. c.width;
  26030. this.jg.height = c.height
  26031. },
  26032. yW: function() {
  26033. return this.jg.width
  26034. },
  26035. kY: function(c) {
  26036. this.jg.width = c
  26037. },
  26038. xW: function() {
  26039. return this.jg.height
  26040. },
  26041. jY: function(c) {
  26042. this.jg.height = c
  26043. },
  26044. TB: function() {
  26045. return t(this.ud.width, this.ud.height)
  26046. },
  26047. Wha: function(c) {
  26048. this.ud.width = c.width;
  26049. this.ud.height = c.height
  26050. },
  26051. zF: function() {
  26052. return this.ud.width
  26053. },
  26054. oG: function(c) {
  26055. this.ud.width = c
  26056. },
  26057. yF: function() {
  26058. return this.ud.height
  26059. },
  26060. nG: function(c) {
  26061. this.ud.height = c
  26062. },
  26063. uUa: function() {
  26064. return this.oi
  26065. },
  26066. aHa: function(c) {
  26067. this.oi.push(c)
  26068. },
  26069. oWa: function() {
  26070. return this.Lw
  26071. },
  26072. QHa: function(c) {
  26073. this.Lw.push(c)
  26074. },
  26075. Jda: function() {
  26076. return this.ZM
  26077. },
  26078. nha: function(c) {
  26079. this.ZM.push(c)
  26080. },
  26081. gVa: function() {
  26082. return this.parentElement
  26083. },
  26084. R3a: function(c) {
  26085. this.parentElement = c
  26086. },
  26087. hVa: function() {
  26088. return this.FQ
  26089. },
  26090. S3a: function(c) {
  26091. this.FQ = c
  26092. },
  26093. qUa: function() {
  26094. return this.jQ
  26095. },
  26096. w3a: function(c) {
  26097. this.jQ = c
  26098. },
  26099. $Va: function() {
  26100. return this.l3
  26101. },
  26102. n4a: function(c) {
  26103. this.l3 = c
  26104. },
  26105. rP: function() {
  26106. return this.Ad
  26107. },
  26108. rR: function(c) {
  26109. this.Ad = c
  26110. },
  26111. J0: function(c) {
  26112. this.C$(c, null);
  26113. return this.D1(c)
  26114. },
  26115. L0: function(c, d) {
  26116. this.C$(null, d);
  26117. return this.WEa(c)
  26118. },
  26119. D1: function(c, d) {
  26120. var e = (d = d || !1) ? c : f.L.zd(c);
  26121. if (!e) throw "Please load the resource first : " + c;
  26122. var g, h, e = this.sX(e).documentElement;
  26123. g = e.getAttribute("version");
  26124. h = e.getAttribute("orientation");
  26125. if ("map" == e.nodeName && ("1.0" != g && null !== g && f.log("cocos2d: TMXFormat: Unsupported TMX version:" + g), "orthogonal" == h ? this.orientation = f.AK : "isometric" == h ? this.orientation = f.zK : "hexagonal" == h ? this.orientation = f.yK : null !== h && f.log("cocos2d: TMXFomat: Unsupported orientation:" + h), g = t(0, 0), g.width = parseFloat(e.getAttribute("width")),
  26126. g.height = parseFloat(e.getAttribute("height")), this.jha(g), g = t(0, 0), g.width = parseFloat(e.getAttribute("tilewidth")), g.height = parseFloat(e.getAttribute("tileheight")), this.Wha(g), h = e.querySelectorAll("map \x3e properties \x3e property"))) {
  26127. var k = {};
  26128. for (g = 0; g < h.length; g++) k[h[g].getAttribute("name")] = h[g].getAttribute("value");
  26129. this.Ad = k
  26130. }
  26131. k = e.getElementsByTagName("tileset");
  26132. "map" !== e.nodeName && (k = [], k.push(e));
  26133. for (g = 0; g < k.length; g++) {
  26134. h = k[g];
  26135. var m = h.getAttribute("source");
  26136. if (m) h = d ? f.path.join(this.wN, m) :
  26137. f.path.pB(c, m), this.D1(h);
  26138. else {
  26139. m = new f.Moa;
  26140. m.name = h.getAttribute("name") || "";
  26141. m.ux = parseInt(h.getAttribute("firstgid")) || 0;
  26142. m.gJ = parseInt(h.getAttribute("spacing")) || 0;
  26143. m.margin = parseInt(h.getAttribute("margin")) || 0;
  26144. var n = t(0, 0);
  26145. n.width = parseFloat(h.getAttribute("tilewidth"));
  26146. n.height = parseFloat(h.getAttribute("tileheight"));
  26147. m.ud = n;
  26148. var n = h.getElementsByTagName("image")[0].getAttribute("source"),
  26149. p = -1;
  26150. this.TC && (p = this.TC.lastIndexOf("/"));
  26151. m.hia = -1 !== p ? this.TC.substr(0, p + 1) + n : this.wN + (this.wN ? "/" : "") + n;
  26152. this.QHa(m);
  26153. if (n = h.getElementsByTagName("tile"))
  26154. for (p = 0; p < n.length; p++) {
  26155. h = n[p];
  26156. this.FQ = parseInt(m.ux) + parseInt(h.getAttribute("id") || 0);
  26157. var s = h.querySelectorAll("properties \x3e property");
  26158. if (s) {
  26159. var u = {};
  26160. for (h = 0; h < s.length; h++) {
  26161. var v = s[h].getAttribute("name");
  26162. u[v] = s[h].getAttribute("value")
  26163. }
  26164. this.vr[this.FQ] = u
  26165. }
  26166. }
  26167. }
  26168. }
  26169. if (k = e.getElementsByTagName("layer"))
  26170. for (g = 0; g < k.length; g++) {
  26171. n = k[g];
  26172. p = n.getElementsByTagName("data")[0];
  26173. m = new f.rv;
  26174. m.name = n.getAttribute("name");
  26175. h = t(0, 0);
  26176. h.width = parseFloat(n.getAttribute("width"));
  26177. h.height = parseFloat(n.getAttribute("height"));
  26178. m.rb = h;
  26179. h = n.getAttribute("visible");
  26180. m.visible = "0" != h;
  26181. h = n.getAttribute("opacity") || 1;
  26182. m.Ib = h ? parseInt(255 * parseFloat(h)) : 255;
  26183. m.offset = r(parseFloat(n.getAttribute("x")) || 0, parseFloat(n.getAttribute("y")) || 0);
  26184. s = "";
  26185. for (h = 0; h < p.childNodes.length; h++) s += p.childNodes[h].nodeValue;
  26186. s = s.trim();
  26187. h = p.getAttribute("compression");
  26188. u = p.getAttribute("encoding");
  26189. if (h && "gzip" !== h && "zlib" !== h) return f.log("cc.TMXMapInfo.parseXMLFile(): unsupported compression method"), null;
  26190. switch (h) {
  26191. case "gzip":
  26192. m.ej = f.Cia(s, 4);
  26193. break;
  26194. case "zlib":
  26195. h = new Zlib.Iy(f.bb.Zu.Fca(s, 1));
  26196. m.ej = f.OIa(h.Hca());
  26197. break;
  26198. case null:
  26199. case "":
  26200. if ("base64" == u) m.ej = f.bb.Zu.Fca(s, 4);
  26201. else if ("csv" === u)
  26202. for (m.ej = [], h = s.split(","), p = 0; p < h.length; p++) m.ej.push(parseInt(h[p]));
  26203. else
  26204. for (h = p.getElementsByTagName("tile"), m.ej = [], p = 0; p < h.length; p++) m.ej.push(parseInt(h[p].getAttribute("gid")));
  26205. break;
  26206. default:
  26207. this.jQ == f.rv.K3 && f.log("cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported")
  26208. }
  26209. if (n = n.querySelectorAll("properties \x3e property")) {
  26210. p = {};
  26211. for (h = 0; h < n.length; h++) p[n[h].getAttribute("name")] = n[h].getAttribute("value");
  26212. m.Ad = p
  26213. }
  26214. this.aHa(m)
  26215. }
  26216. if (k = e.getElementsByTagName("objectgroup"))
  26217. for (g = 0; g < k.length; g++) {
  26218. n = k[g];
  26219. m = new f.Loa;
  26220. m.NH = n.getAttribute("name");
  26221. m.uHa(r(parseFloat(n.getAttribute("x")) * this.TB().width || 0, parseFloat(n.getAttribute("y")) * this.TB().height || 0));
  26222. if (p = n.querySelectorAll("objectgroup \x3e properties \x3e property"))
  26223. for (h = 0; h < p.length; h++) s = {}, s[p[h].getAttribute("name")] = p[h].getAttribute("value"), m.Ad = s;
  26224. if (n = n.querySelectorAll("object"))
  26225. for (h =
  26226. 0; h < n.length; h++) {
  26227. s = n[h];
  26228. p = {};
  26229. p.name = s.getAttribute("name") || "";
  26230. p.type = s.getAttribute("type") || "";
  26231. p.x = parseInt(s.getAttribute("x") || 0) + m.BA.x;
  26232. u = parseInt(s.getAttribute("y") || 0) + m.BA.y;
  26233. p.width = parseInt(s.getAttribute("width")) || 0;
  26234. p.height = parseInt(s.getAttribute("height")) || 0;
  26235. p.y = parseInt(this.d0().height * this.TB().height) - u - p.height;
  26236. if (u = s.querySelectorAll("properties \x3e property"))
  26237. for (v = 0; v < u.length; v++) p[u[v].getAttribute("name")] = u[v].getAttribute("value");
  26238. (u = s.querySelectorAll("polygon")) &&
  26239. 0 < u.length && (u = u[0].getAttribute("points")) && (p.polygonPoints = this.laa(u));
  26240. (s = s.querySelectorAll("polyline")) && 0 < s.length && (s = s[0].getAttribute("points")) && (p.polylinePoints = this.laa(s));
  26241. m.nHa(p)
  26242. }
  26243. this.nha(m)
  26244. }
  26245. return e
  26246. },
  26247. laa: function(c) {
  26248. if (!c) return null;
  26249. var d = [];
  26250. c = c.split(" ");
  26251. for (var e = 0; e < c.length; e++) {
  26252. var g = c[e].split(",");
  26253. d.push({
  26254. x: g[0],
  26255. y: g[1]
  26256. })
  26257. }
  26258. return d
  26259. },
  26260. WEa: function(c) {
  26261. return this.D1(c, !0)
  26262. },
  26263. lWa: function() {
  26264. return this.vr
  26265. },
  26266. w4a: function(c) {
  26267. this.vr.push(c)
  26268. },
  26269. iTa: function() {
  26270. return this.s_
  26271. },
  26272. S2a: function(c) {
  26273. this.s_ =
  26274. c
  26275. },
  26276. dWa: function() {
  26277. return this.TC
  26278. },
  26279. q4a: function(c) {
  26280. this.TC = c
  26281. },
  26282. C$: function(c, d) {
  26283. this.Lw.length = 0;
  26284. this.oi.length = 0;
  26285. this.TC = c;
  26286. d && (this.wN = d);
  26287. this.ZM.length = 0;
  26288. this.Ad.length = 0;
  26289. this.vr.length = 0;
  26290. this.s_ = "";
  26291. this.l3 = !1;
  26292. this.jQ = f.rv.K3;
  26293. this.parentElement = f.Noa;
  26294. this.d9 = 0
  26295. }
  26296. });
  26297. q = f.nE.prototype;
  26298. f.d(q, "mapWidth", q.yW, q.kY);
  26299. f.d(q, "mapHeight", q.xW, q.jY);
  26300. f.d(q, "tileWidth", q.zF, q.oG);
  26301. f.d(q, "tileHeight", q.yF, q.nG);
  26302. f.nE.create = function(c, d) {
  26303. return new f.nE(c, d)
  26304. };
  26305. f.L.Xp(["tmx", "tsx"], f.wba);
  26306. f.rv.K3 = 1;
  26307. f.rv.EJa = 2;
  26308. f.rv.FJa = 4;
  26309. f.rv.GJa = 8;
  26310. f.Loa = f.N.extend({
  26311. Ad: null,
  26312. NH: "",
  26313. BA: null,
  26314. sA: null,
  26315. ctor: function() {
  26316. this.NH = "";
  26317. this.BA = r(0, 0);
  26318. this.Ad = [];
  26319. this.sA = []
  26320. },
  26321. pVa: function() {
  26322. return this.BA
  26323. },
  26324. uHa: function(c) {
  26325. this.BA.x = c.x;
  26326. this.BA.y = c.y
  26327. },
  26328. rP: function() {
  26329. return this.Ad
  26330. },
  26331. rR: function(c) {
  26332. this.Ad.push(c)
  26333. },
  26334. cUa: function() {
  26335. return this.NH.toString()
  26336. },
  26337. q3a: function(c) {
  26338. this.NH = c
  26339. },
  26340. x0a: function(c) {
  26341. return this.Ad[c]
  26342. },
  26343. J_a: function(c) {
  26344. if (this.sA && 0 < this.sA.length)
  26345. for (var d = this.sA, e = 0, g = d.length; e < g; e++) {
  26346. var h = d[e].name;
  26347. if (h && h == c) return d[e]
  26348. }
  26349. return null
  26350. },
  26351. QUa: function() {
  26352. return this.sA
  26353. },
  26354. nHa: function(c) {
  26355. this.sA.push(c)
  26356. }
  26357. });
  26358. f.mE = f.Fh.extend({
  26359. Bh: null,
  26360. zl: null,
  26361. eC: null,
  26362. Ad: null,
  26363. kQ: "",
  26364. rb: null,
  26365. Ve: null,
  26366. Ib: 255,
  26367. dw: null,
  26368. cw: null,
  26369. hZ: null,
  26370. bZ: null,
  26371. vNa: null,
  26372. Bn: null,
  26373. Hh: null,
  26374. Vl: null,
  26375. gi: null,
  26376. Pi: null,
  26377. kV: null,
  26378. PN: null,
  26379. QN: null,
  26380. St: 0,
  26381. LY: 0,
  26382. Z$: 1E7,
  26383. ta: "TMXLayer",
  26384. ctor: function(c, d, e) {
  26385. f.Fh.prototype.ctor.call(this);
  26386. this.fh = [];
  26387. this.rb = t(0, 0);
  26388. this.Ve = t(0, 0);
  26389. if (f.K === f.fb) {
  26390. var g = f.Sb,
  26391. h = f.fd("canvas");
  26392. h.width = g.width;
  26393. h.height = g.height;
  26394. this.gi = h;
  26395. this.Pi = this.gi.getContext("2d");
  26396. var k = new f.Pa;
  26397. k.sh(h);
  26398. k.$d();
  26399. this.kV = k;
  26400. this.width = g.width;
  26401. this.height = g.height;
  26402. this.Gq = this
  26403. }
  26404. void 0 !== e && this.DCa(c, d, e)
  26405. },
  26406. Ga: function(c, d) {
  26407. var e = this.m;
  26408. f.v.prototype.Ga.call(this, c, d);
  26409. if (f.K === f.fb) {
  26410. var g = this.gi,
  26411. h = f.Uc();
  26412. g.width = 0 | 1.5 * e.width * h;
  26413. g.height = 0 | 1.5 * e.height * h;
  26414. this.Pi.translate(0, g.height);
  26415. e = this.kV.m;
  26416. e.width = g.width;
  26417. e.height = g.height;
  26418. e = g.width * g.height;
  26419. if (e > this.Z$) {
  26420. this.PN || (this.PN = []);
  26421. this.QN || (this.QN = []);
  26422. this.St = Math.ceil(e / this.Z$);
  26423. e = this.PN;
  26424. for (h = 0; h < this.St; h++) {
  26425. e[h] || (e[h] = document.createElement("canvas"), this.QN[h] = e[h].getContext("2d"));
  26426. var k = e[h];
  26427. k.width =
  26428. this.LY = Math.round(g.width / this.St);
  26429. k.height = g.height
  26430. }
  26431. for (h = this.St; h < e.length; h++) k.width = 0, k.height = 0
  26432. } else this.St = 0
  26433. }
  26434. },
  26435. sb: null,
  26436. xF: function() {
  26437. return this.kV
  26438. },
  26439. I: null,
  26440. Br: function(c) {
  26441. var d = c || f.s;
  26442. if (this.Na) {
  26443. d.save();
  26444. this.transform(c);
  26445. var e, g = this.i;
  26446. if (this.Dk) {
  26447. var h = f.view;
  26448. h.Waa();
  26449. var k = this.Pi,
  26450. m = this.gi;
  26451. k.clearRect(0, 0, m.width, -m.height);
  26452. k.save();
  26453. k.translate(this.Qb.x, -this.Qb.y);
  26454. if (g)
  26455. for (this.kd(), e = 0; e < g.length; e++) g[e] && g[e].I(k);
  26456. k.restore();
  26457. if (0 < this.St)
  26458. for (g = this.LY, k = m.height, e = 0; e < this.St; e++) this.QN[e].drawImage(m,
  26459. e * g, 0, g, k, 0, 0, g, k);
  26460. h.Iaa();
  26461. this.Dk = !1
  26462. }
  26463. this.ma(c);
  26464. d.restore()
  26465. }
  26466. },
  26467. ma: null,
  26468. Rq: function(c) {
  26469. c = c || f.s;
  26470. var d = 0 | -this.Qb.x,
  26471. e = 0 | -this.Qb.y,
  26472. g = f.view,
  26473. h = this.gi;
  26474. if (h) {
  26475. var k = this.St,
  26476. m = h.height * g.ra;
  26477. if (0 < k)
  26478. for (var h = this.PN, n = 0; n < k; n++) {
  26479. var p = h[n];
  26480. c.drawImage(h[n], 0, 0, p.width, p.height, d + n * this.LY, -(e + m), p.width * g.ka, m)
  26481. } else c.drawImage(h, 0, 0, h.width, h.height, d, -(e + m), h.width * g.ka, m)
  26482. }
  26483. },
  26484. tUa: function() {
  26485. return t(this.rb.width, this.rb.height)
  26486. },
  26487. z3a: function(c) {
  26488. this.rb.width = c.width;
  26489. this.rb.height = c.height
  26490. },
  26491. Qra: function() {
  26492. return this.rb.width
  26493. },
  26494. wua: function(c) {
  26495. this.rb.width = c
  26496. },
  26497. Pra: function() {
  26498. return this.rb.height
  26499. },
  26500. vua: function(c) {
  26501. this.rb.height = c
  26502. },
  26503. BUa: function() {
  26504. return t(this.Ve.width, this.Ve.height)
  26505. },
  26506. F3a: function(c) {
  26507. this.Ve.width = c.width;
  26508. this.Ve.height = c.height
  26509. },
  26510. zF: function() {
  26511. return this.Ve.width
  26512. },
  26513. oG: function(c) {
  26514. this.Ve.width = c
  26515. },
  26516. yF: function() {
  26517. return this.Ve.height
  26518. },
  26519. nG: function(c) {
  26520. this.Ve.height = c
  26521. },
  26522. mWa: function() {
  26523. return this.Bh
  26524. },
  26525. x4a: function(c) {
  26526. this.Bh = c
  26527. },
  26528. nWa: function() {
  26529. return this.zl
  26530. },
  26531. y4a: function(c) {
  26532. this.zl = c
  26533. },
  26534. sUa: function() {
  26535. return this.eC
  26536. },
  26537. y3a: function(c) {
  26538. this.eC = c
  26539. },
  26540. rP: function() {
  26541. return this.Ad
  26542. },
  26543. rR: function(c) {
  26544. this.Ad = c
  26545. },
  26546. DCa: function(c, d, e) {
  26547. var g = d.rb,
  26548. h = 0.35 * parseInt(g.width * g.height) + 1,
  26549. k;
  26550. c && (k = f.nb.vd(c.hia));
  26551. return this.va(k, h) ? (this.kQ = d.name, this.rb = g, this.Bh = d.ej, this.dw = d.dw, this.cw = d.cw, this.Ib = d.Ib, this.Ad = d.Ad, this.Vl = f.Q.Vl, this.zl = c, this.Ve = e.TB(), this.eC = e.orientation, c = this.zqa(d.offset), this.o(f.J1(c)), this.Hh = [], this.Ga(f.eia(t(this.rb.width * this.Ve.width, this.rb.height * this.Ve.height))), this.bZ = !1, this.hZ = 0, !0) : !1
  26552. },
  26553. S0a: function() {
  26554. this.Bh && (this.Bh = null);
  26555. this.Hh && (this.Hh = null)
  26556. },
  26557. kWa: function(c, d) {
  26558. if (!c) throw "cc.TMXLayer.getTileAt(): pos should be non-null";
  26559. void 0 !== d && (c = r(c, d));
  26560. if (c.x >= this.rb.width || c.y >= this.rb.height || 0 > c.x || 0 > c.y) throw "cc.TMXLayer.getTileAt(): invalid position";
  26561. if (!this.Bh || !this.Hh) return f.log("cc.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released"), null;
  26562. var e = null,
  26563. g = this.r0(c);
  26564. if (0 === g) return e;
  26565. var h = 0 | c.x + c.y * this.rb.width,
  26566. e = this.Za(h);
  26567. e || (g = this.zl.EI(g), g = f.cs(g), e = new f.q,
  26568. e.va(this.texture, g), e.batchNode = this, e.o(this.pP(c)), e.vertexZ = this.Jba(c), e.anchorX = 0, e.anchorY = 0, e.opacity = this.Ib, g = this.SU(h), this.Xva(e, g, h));
  26569. return e
  26570. },
  26571. r0: function(c, d) {
  26572. if (!c) throw "cc.TMXLayer.getTileGIDAt(): pos should be non-null";
  26573. void 0 !== d && (c = r(c, d));
  26574. if (c.x >= this.rb.width || c.y >= this.rb.height || 0 > c.x || 0 > c.y) throw "cc.TMXLayer.getTileGIDAt(): invalid position";
  26575. return this.Bh && this.Hh ? (this.Bh[0 | c.x + c.y * this.rb.width] & f.UT) >>> 0 : (f.log("cc.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released"),
  26576. null)
  26577. },
  26578. yBa: function(c, d) {
  26579. if (!c) throw "cc.TMXLayer.getTileFlagsAt(): pos should be non-null";
  26580. void 0 !== d && (c = r(c, d));
  26581. if (c.x >= this.rb.width || c.y >= this.rb.height || 0 > c.x || 0 > c.y) throw "cc.TMXLayer.getTileFlagsAt(): invalid position";
  26582. return this.Bh && this.Hh ? (this.Bh[0 | c.x + c.y * this.rb.width] & f.t7) >>> 0 : (f.log("cc.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released"), null)
  26583. },
  26584. v4a: function(c, d, e, g) {
  26585. if (!d) throw "cc.TMXLayer.setTileGID(): pos should be non-null";
  26586. void 0 !== g ? d = r(d, e) : g = e;
  26587. if (d.x >= this.rb.width ||
  26588. d.y >= this.rb.height || 0 > d.x || 0 > d.y) throw "cc.TMXLayer.setTileGID(): invalid position";
  26589. if (this.Bh && this.Hh)
  26590. if (0 !== c && c < this.zl.ux) f.log("cc.TMXLayer.setTileGID(): invalid gid:" + c);
  26591. else {
  26592. g = g || 0;
  26593. this.En();
  26594. e = this.yBa(d);
  26595. var h = this.r0(d);
  26596. if (h != c || e != g)
  26597. if (e = (c | g) >>> 0, 0 === c) this.XFa(d);
  26598. else if (0 === h) this.Ksa(e, d);
  26599. else {
  26600. var h = d.x + d.y * this.rb.width,
  26601. k = this.Za(h);
  26602. k ? (c = this.zl.EI(c), c = f.cs(c), k.sc(c, !1), null != g && this.HN(k, d, e), this.Bh[h] = e) : this.Cva(e, d)
  26603. }
  26604. } else f.log("cc.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released")
  26605. },
  26606. XFa: function(c, d) {
  26607. if (!c) throw "cc.TMXLayer.removeTileAt(): pos should be non-null";
  26608. void 0 !== d && (c = r(c, d));
  26609. if (c.x >= this.rb.width || c.y >= this.rb.height || 0 > c.x || 0 > c.y) throw "cc.TMXLayer.removeTileAt(): invalid position";
  26610. if (!this.Bh || !this.Hh) f.log("cc.TMXLayer.removeTileAt(): TMXLayer: the tiles map has been released");
  26611. else if (0 !== this.r0(c)) {
  26612. f.K === f.fb && this.En();
  26613. var e = 0 | c.x + c.y * this.rb.width,
  26614. g = this.SU(e);
  26615. this.Bh[e] = 0;
  26616. this.Hh.splice(g, 1);
  26617. if (e = this.Za(e)) f.Fh.prototype.removeChild.call(this, e, !0);
  26618. else if (f.K ===
  26619. f.na && this.textureAtlas.oga(g), this.i)
  26620. for (var e = this.i, h = 0, k = e.length; h < k; h++) {
  26621. var m = e[h];
  26622. if (m) {
  26623. var n = m.atlasIndex;
  26624. n >= g && (m.atlasIndex = n - 1)
  26625. }
  26626. }
  26627. }
  26628. },
  26629. pP: function(c, d) {
  26630. void 0 !== d && (c = r(c, d));
  26631. var e = r(0, 0);
  26632. switch (this.eC) {
  26633. case f.AK:
  26634. e = this.Hta(c);
  26635. break;
  26636. case f.zK:
  26637. e = this.Gta(c);
  26638. break;
  26639. case f.yK:
  26640. e = this.Fta(c)
  26641. }
  26642. return f.J1(e)
  26643. },
  26644. k0: function(c) {
  26645. return this.Ad[c]
  26646. },
  26647. bIa: function() {
  26648. f.K === f.fb ? this.zl.GP = this.qi.m : (this.zl.GP = this.textureAtlas.texture.m, this.textureAtlas.texture.j2());
  26649. this.Ata();
  26650. f.K === f.fb && this.En();
  26651. for (var c =
  26652. this.rb.height, d = this.rb.width, e = 0; e < c; e++)
  26653. for (var g = 0; g < d; g++) {
  26654. var h = this.Bh[g + d * e];
  26655. 0 !== h && (this.jqa(h, r(g, e)), this.dw = Math.min(h, this.dw), this.cw = Math.max(h, this.cw))
  26656. }
  26657. this.cw >= this.zl.ux && this.dw >= this.zl.ux || f.log("cocos2d:TMX: Only 1 tileset per layer is supported")
  26658. },
  26659. n: function() {
  26660. f.log("addChild: is not supported on cc.TMXLayer. Instead use setTileGID or tileAt.")
  26661. },
  26662. removeChild: function(c, d) {
  26663. if (c)
  26664. if (-1 === this.i.indexOf(c)) f.log("cc.TMXLayer.removeChild(): Tile does not belong to TMXLayer");
  26665. else {
  26666. f.K ===
  26667. f.fb && this.En();
  26668. var e = c.atlasIndex;
  26669. this.Bh[this.Hh[e]] = 0;
  26670. this.Hh.splice(e, 1);
  26671. f.Fh.prototype.removeChild.call(this, c, d)
  26672. }
  26673. },
  26674. rUa: function() {
  26675. return this.kQ
  26676. },
  26677. x3a: function(c) {
  26678. this.kQ = c
  26679. },
  26680. Gta: function(c) {
  26681. return r(this.Ve.width / 2 * (this.rb.width + c.x - c.y - 1), this.Ve.height / 2 * (2 * this.rb.height - c.x - c.y - 2))
  26682. },
  26683. Hta: function(c) {
  26684. return r(c.x * this.Ve.width, (this.rb.height - c.y - 1) * this.Ve.height)
  26685. },
  26686. Fta: function(c) {
  26687. return r(c.x * this.Ve.width * 3 / 4, (this.rb.height - c.y - 1) * this.Ve.height + (1 == c.x % 2 ? -this.Ve.height / 2 : 0))
  26688. },
  26689. zqa: function(c) {
  26690. var d =
  26691. r(0, 0);
  26692. switch (this.eC) {
  26693. case f.AK:
  26694. d = r(c.x * this.Ve.width, -c.y * this.Ve.height);
  26695. break;
  26696. case f.zK:
  26697. d = r(this.Ve.width / 2 * (c.x - c.y), this.Ve.height / 2 * (-c.x - c.y));
  26698. break;
  26699. case f.yK:
  26700. 0 === c.x && 0 === c.y || f.log("offset for hexagonal map not implemented yet")
  26701. }
  26702. return d
  26703. },
  26704. jqa: function(c, d) {
  26705. var e = this.zl.EI(c),
  26706. e = f.cs(e),
  26707. g = 0 | d.x + d.y * this.rb.width,
  26708. e = this.XX(e);
  26709. this.HN(e, d, c);
  26710. var h = this.Hh.length;
  26711. this.QP(e, h);
  26712. this.Hh.splice(h, 0, g);
  26713. return e
  26714. },
  26715. Ksa: function(c, d) {
  26716. var e = this.zl.EI(c),
  26717. e = f.cs(e),
  26718. g = 0 | d.x + d.y * this.rb.width,
  26719. e = this.XX(e);
  26720. this.HN(e, d, c);
  26721. var h = this.mqa(g);
  26722. this.QP(e, h);
  26723. this.Hh.splice(h, 0, g);
  26724. if (this.i)
  26725. for (var k = this.i, m = 0, n = k.length; m < n; m++) {
  26726. var p = k[m];
  26727. if (p) {
  26728. var s = p.atlasIndex;
  26729. s >= h && (p.atlasIndex = s + 1)
  26730. }
  26731. }
  26732. this.Bh[g] = c;
  26733. return e
  26734. },
  26735. Cva: function(c, d) {
  26736. var e = this.zl.EI(c),
  26737. g = this.Vl,
  26738. e = x(e.x / g, e.y / g, e.width / g, e.height / g),
  26739. g = d.x + d.y * this.rb.width,
  26740. e = this.XX(e);
  26741. this.HN(e, d, c);
  26742. e.atlasIndex = this.SU(g);
  26743. e.dirty = !0;
  26744. e.bi();
  26745. this.Bh[g] = c;
  26746. return e
  26747. },
  26748. Ata: function() {
  26749. var c = this.k0("cc_vertexz");
  26750. if (c)
  26751. if ("automatic" == c) {
  26752. this.bZ = !0;
  26753. var d = this.k0("cc_alpha_func"),
  26754. c = 0;
  26755. d && (c = parseFloat(d));
  26756. f.K === f.na && (this.shaderProgram = f.xg.be(f.tK), d = f.s.getUniformLocation(this.shaderProgram.Bx(), f.g8), this.shaderProgram.Ff(), this.shaderProgram.bJ(d, c))
  26757. } else this.hZ = parseInt(c, 10)
  26758. },
  26759. HN: function(c, d, e) {
  26760. var g = d.x + d.y * this.rb.width;
  26761. c.o(this.pP(d));
  26762. f.K === f.na ? c.vertexZ = this.Jba(d) : c.tag = g;
  26763. c.anchorX = 0;
  26764. c.anchorY = 0;
  26765. c.opacity = this.Ib;
  26766. f.K === f.na && (c.rotation = 0);
  26767. c.Pd(!1);
  26768. c.Yf(!1);
  26769. (e & f.s7) >>> 0 ? (c.anchorX = 0.5, c.anchorY = 0.5, c.x = this.pP(d).x + c.width / 2, c.y = this.pP(d).y + c.height / 2, d = (e & (f.oE |
  26770. f.pE) >>> 0) >>> 0, d == f.oE ? c.rotation = 90 : d == f.pE ? c.rotation = 270 : (c.rotation = d == (f.pE | f.oE) >>> 0 ? 90 : 270, c.Pd(!0))) : ((e & f.oE) >>> 0 && c.Pd(!0), (e & f.pE) >>> 0 && c.Yf(!0))
  26771. },
  26772. XX: function(c) {
  26773. f.K === f.na ? (this.Bn ? (this.Bn.batchNode = null, this.Bn.sc(c, !1)) : (this.Bn = new f.q, this.Bn.va(this.texture, c, !1)), this.Bn.batchNode = this) : (this.Bn = new f.q, this.Bn.va(this.Vt, c, !1), this.Bn.batchNode = this, this.Bn.parent = this);
  26774. return this.Bn
  26775. },
  26776. Jba: function(c) {
  26777. var d = 0,
  26778. e = 0;
  26779. if (this.bZ) switch (this.eC) {
  26780. case f.zK:
  26781. e = this.rb.width + this.rb.height;
  26782. d = -(e - (c.x + c.y));
  26783. break;
  26784. case f.AK:
  26785. d = -(this.rb.height - c.y);
  26786. break;
  26787. case f.yK:
  26788. f.log("TMX Hexa zOrder not supported");
  26789. break;
  26790. default:
  26791. f.log("TMX invalid value")
  26792. } else d = this.hZ;
  26793. return d
  26794. },
  26795. SU: function(c) {
  26796. var d;
  26797. if (this.Hh)
  26798. for (var e = this.Hh, g = 0, h = e.length; g < h && (d = e[g], d != c); g++);
  26799. "number" != typeof d && f.log("cc.TMXLayer._atlasIndexForExistantZ(): TMX atlas index not found. Shall not happen");
  26800. return g
  26801. },
  26802. mqa: function(c) {
  26803. for (var d = this.Hh, e = 0, g = d.length; e < g && !(c < d[e]); e++);
  26804. return e
  26805. }
  26806. });
  26807. q = f.mE.prototype;
  26808. f.K == f.na ? (q.ma = f.Fh.prototype.ma, q.I = f.Fh.prototype.I, q.sb = f.Fh.prototype.sb) : (q.ma = q.Rq, q.I = q.Br, q.sb = q.xF);
  26809. f.d(q, "texture", q.sb, q.ab);
  26810. f.d(q, "layerWidth", q.Qra, q.wua);
  26811. f.d(q, "layerHeight", q.Pra, q.vua);
  26812. f.d(q, "tileWidth", q.zF, q.oG);
  26813. f.d(q, "tileHeight", q.yF, q.nG);
  26814. f.mE.create = function(c, d, e) {
  26815. return new f.mE(c, d, e)
  26816. };
  26817. f.sT = f.N.extend({
  26818. fG: null,
  26819. hb: null,
  26820. TE: null,
  26821. zVa: function() {
  26822. return this.fG
  26823. },
  26824. b4a: function(c) {
  26825. this.fG = c
  26826. },
  26827. Kda: function() {
  26828. return this.hb
  26829. },
  26830. nR: function(c) {
  26831. this.hb = c
  26832. },
  26833. SSa: function() {
  26834. return this.TE
  26835. },
  26836. GGa: function(c) {
  26837. this.TE = c
  26838. },
  26839. rCa: function(c, d) {
  26840. this.fG = c;
  26841. this.hb = d;
  26842. this.TE = null;
  26843. return !0
  26844. }
  26845. });
  26846. f.sT.create = function(c, d) {
  26847. var e = new f.sT;
  26848. e.rCa(c, d);
  26849. return e
  26850. };
  26851. f.M6 = f.ja.extend({
  26852. Ox: null,
  26853. TW: null,
  26854. ta: "ParallaxNode",
  26855. fVa: function() {
  26856. return this.Ox
  26857. },
  26858. Q3a: function(c) {
  26859. this.Ox = c
  26860. },
  26861. ctor: function() {
  26862. f.ja.prototype.ctor.call(this);
  26863. this.Ox = [];
  26864. this.TW = r(-100, -100)
  26865. },
  26866. n: function(c, d, e, g) {
  26867. if (3 === arguments.length) f.log("ParallaxNode: use addChild(child, z, ratio, offset) instead");
  26868. else {
  26869. if (!c) throw "cc.ParallaxNode.addChild(): child should be non-null";
  26870. var h = f.sT.create(e, g);
  26871. h.GGa(c);
  26872. this.Ox.push(h);
  26873. c.o(this.oa.x * e.x + g.x, this.oa.y * e.y + g.y);
  26874. f.ja.prototype.n.call(this, c, d, c.tag)
  26875. }
  26876. },
  26877. removeChild: function(c, d) {
  26878. for (var e = this.Ox, g = 0; g < e.length; g++)
  26879. if (e[g].TE == c) {
  26880. e.splice(g, 1);
  26881. break
  26882. }
  26883. f.ja.prototype.removeChild.call(this, c, d)
  26884. },
  26885. Cf: function(c) {
  26886. this.Ox.length = 0;
  26887. f.ja.prototype.Cf.call(this, c)
  26888. },
  26889. I: function() {
  26890. var c = this.$pa();
  26891. if (!f.I1(c, this.TW)) {
  26892. for (var d = this.Ox, e = 0, g = d.length; e < g; e++) {
  26893. var h = d[e];
  26894. h.TE.o(-c.x + c.x * h.fG.x + h.hb.x, -c.y + c.y * h.fG.y + h.hb.y)
  26895. }
  26896. this.TW = c
  26897. }
  26898. f.ja.prototype.I.call(this)
  26899. },
  26900. $pa: function() {
  26901. for (var c = this.oa, d = this; null != d.parent;) d = d.parent, c = f.Tp(c, d.Od());
  26902. return c
  26903. }
  26904. });
  26905. f.M6.create = function() {
  26906. return new f.M6
  26907. };
  26908. if (f.Ed.RN) {
  26909. var Da = f.V5a = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext);
  26910. f.xU = f.N.extend({
  26911. Mz: null,
  26912. cc: null,
  26913. Fw: null,
  26914. nZ: null,
  26915. src: null,
  26916. K1: null,
  26917. autoplay: null,
  26918. controls: null,
  26919. p_a: null,
  26920. currentTime: 0,
  26921. startTime: 0,
  26922. duration: 0,
  26923. Tj: null,
  26924. mZ: 1,
  26925. hN: 0,
  26926. Ce: !1,
  26927. zG: !0,
  26928. cm: -1,
  26929. ctor: function(c) {
  26930. this.Mz = {};
  26931. this.src = c;
  26932. this.nZ = Da.createGain ? Da.createGain() : Da.createGainNode();
  26933. this.ota = this.nta.bind(this);
  26934. this.lta = this.kta.bind(this)
  26935. },
  26936. vX: function(c) {
  26937. var d = this.Fw = Da.createBufferSource(),
  26938. e = this.nZ;
  26939. c = c ||
  26940. 0;
  26941. d.buffer = this.cc;
  26942. e.gain.value = this.mZ;
  26943. d.connect(e);
  26944. e.connect(Da.destination);
  26945. d.loop = this.Tj;
  26946. this.zG = this.Ce = !1;
  26947. d.start ? d.start(0, c) : d.noteGrainOn ? (e = d.buffer.duration, this.loop ? d.noteGrainOn(0, c, e) : d.noteGrainOn(0, c, e - c)) : d.noteOn(0);
  26948. this.hN = 0
  26949. },
  26950. oba: function() {
  26951. var c = this.Fw;
  26952. this.zG || (c.stop ? c.stop(0) : c.u_a(0), this.zG = !0)
  26953. },
  26954. play: function() {
  26955. if (-1 == this.cm) this.cm = 0;
  26956. else if (1 == this.cm) {
  26957. var c = this.Fw;
  26958. if (this.zG || !c || 2 != c.playbackState) this.startTime = Da.currentTime, this.vX(0)
  26959. }
  26960. },
  26961. pause: function() {
  26962. this.hN =
  26963. Da.currentTime;
  26964. this.Ce = !0;
  26965. this.oba()
  26966. },
  26967. lk: function() {
  26968. this.Ce && this.vX(this.cc ? (this.hN - this.startTime) % this.cc.duration : 0)
  26969. },
  26970. stop: function() {
  26971. this.hN = 0;
  26972. this.Ce = !1;
  26973. this.oba()
  26974. },
  26975. load: function() {
  26976. var c = this;
  26977. if (1 != c.cm) {
  26978. c.cm = -1;
  26979. c.played = !1;
  26980. c.ended = !0;
  26981. var d = new XMLHttpRequest;
  26982. d.open("GET", c.src, !0);
  26983. d.responseType = "arraybuffer";
  26984. d.onload = function() {
  26985. Da.decodeAudioData(d.response, c.ota, c.lta)
  26986. };
  26987. d.send()
  26988. }
  26989. },
  26990. addEventListener: function(c, d) {
  26991. this.Mz[c] = d.bind(this)
  26992. },
  26993. removeEventListener: function(c) {
  26994. delete this.Mz[c]
  26995. },
  26996. $Pa: function() {
  26997. return f.Ed.RN
  26998. },
  26999. nta: function(c) {
  27000. this.cc = c;
  27001. c = this.Mz.success;
  27002. var d = this.Mz.canplaythrough;
  27003. c && c();
  27004. d && d();
  27005. 0 != this.cm && "autoplay" != this.autoplay && !0 != this.autoplay || this.vX();
  27006. this.cm = 1
  27007. },
  27008. kta: function() {
  27009. var c = this.Mz.error;
  27010. c && c();
  27011. this.cm = -2
  27012. },
  27013. cloneNode: function() {
  27014. var c = new f.xU(this.src);
  27015. c.volume = this.volume;
  27016. c.cm = this.cm;
  27017. c.cc = this.cc;
  27018. 0 != c.cm && -1 != c.cm || c.load();
  27019. return c
  27020. }
  27021. });
  27022. q = f.xU.prototype;
  27023. f.d(q, "loop", function() {
  27024. return this.Tj
  27025. }, function(c) {
  27026. this.Tj = c;
  27027. this.Fw && (this.Fw.loop = c)
  27028. });
  27029. f.d(q, "volume",
  27030. function() {
  27031. return this.mZ
  27032. }, function(c) {
  27033. this.mZ = c;
  27034. this.nZ.gain.value = c
  27035. });
  27036. f.d(q, "paused", function() {
  27037. return this.Ce
  27038. });
  27039. f.d(q, "ended", function() {
  27040. var c = this.Fw;
  27041. return !this.Ce && (this.zG || !c || 3 == c.playbackState)
  27042. });
  27043. f.d(q, "played", function() {
  27044. var c = this.Fw;
  27045. return c && 2 == c.playbackState
  27046. })
  27047. }
  27048. f.Q3 = f.N.extend({
  27049. zY: !1,
  27050. Lh: null,
  27051. xL: null,
  27052. Uj: 0,
  27053. F8: 0,
  27054. li: {},
  27055. GE: {},
  27056. TL: 1,
  27057. aX: 5,
  27058. bt: null,
  27059. aG: [],
  27060. ctor: function() {
  27061. this.zY = 0 < f.UU.SN.length;
  27062. this.bt && (this.bt = this.bt.bind(this))
  27063. },
  27064. Y5a: function() {
  27065. return !1
  27066. },
  27067. xda: function() {
  27068. return this.TL
  27069. },
  27070. Qfa: function(c, d) {
  27071. if (this.zY) {
  27072. var e = this.Lh;
  27073. e && this.Rt(e);
  27074. c != this.xL && (this.Lh = e = this.nW(c), this.xL = c);
  27075. e && (e.loop = d || !1, this.wX(e))
  27076. }
  27077. },
  27078. nW: function(c) {
  27079. var d = f.L,
  27080. e = d.zd(c);
  27081. e || (d.load(c), e = d.zd(c));
  27082. return e
  27083. },
  27084. wX: function(c) {
  27085. c.ended || (c.stop ? c.stop() : (c.pause(), c.currentTime = 0));
  27086. this.Uj =
  27087. 2;
  27088. c.play()
  27089. },
  27090. pia: function(c) {
  27091. if (0 < this.Uj) {
  27092. var d = this.Lh;
  27093. d && this.Rt(d) && (c && f.L.wh(this.xL), this.xL = this.Lh = null, this.Uj = 0)
  27094. }
  27095. },
  27096. Rt: function(c) {
  27097. return c && !c.ended ? (c.stop ? c.stop() : c.duration && Infinity != c.duration ? c.currentTime = c.duration : c.pause(), !0) : !1
  27098. },
  27099. G1: function() {
  27100. 2 == this.Uj && (this.Lh.pause(), this.Uj = 1)
  27101. },
  27102. vga: function() {
  27103. 1 == this.Uj && (this.lr(this.Lh), this.Uj = 2)
  27104. },
  27105. lr: function(c) {
  27106. c && !c.ended && (c.lk ? c.lk() : c.play())
  27107. },
  27108. dGa: function() {
  27109. this.Lh && this.wX(this.Lh)
  27110. },
  27111. GAa: function() {
  27112. return 0 == this.Uj ? 0 : this.Lh.volume
  27113. },
  27114. kHa: function(c) {
  27115. 0 < this.Uj && (this.Lh.volume = Math.min(Math.max(c, 0), 1))
  27116. },
  27117. VP: function() {
  27118. return 2 == this.Uj && this.Lh && !this.Lh.ended
  27119. },
  27120. qW: function(c) {
  27121. var d = this.GE[c];
  27122. d || (d = this.GE[c] = []);
  27123. return d
  27124. },
  27125. p$: function(c) {
  27126. var d;
  27127. if (!this.zY) return null;
  27128. for (var e = this.qW(c), g = 0, h = e.length; g < h; g++) {
  27129. var k = e[g];
  27130. if (k.ended) {
  27131. d = k;
  27132. d.currentTime = 0;
  27133. window.chrome && d.load();
  27134. break
  27135. }
  27136. }
  27137. if (!d) {
  27138. if (e.length >= this.aX) return f.log("Error: " + c + " greater than " + this.aX), null;
  27139. d = this.nW(c);
  27140. if (!d) return null;
  27141. d = d.cloneNode(!0);
  27142. this.bt && f.ub(d,
  27143. "pause", this.bt);
  27144. d.volume = this.TL;
  27145. e.push(d)
  27146. }
  27147. return d
  27148. },
  27149. zI: function(c, d) {
  27150. var e = this.p$(c);
  27151. if (!e) return null;
  27152. e.loop = d || !1;
  27153. e.play();
  27154. var g = this.F8++;
  27155. this.li[g] = e;
  27156. return g
  27157. },
  27158. Uga: function(c) {
  27159. c = this.TL = Math.min(Math.max(c, 0), 1);
  27160. var d = this.li,
  27161. e;
  27162. for (e in d) d[e].volume = c
  27163. },
  27164. F1: function(c) {
  27165. (c = this.li[c]) && !c.ended && c.pause()
  27166. },
  27167. E1: function() {
  27168. var c = this.li,
  27169. d;
  27170. for (d in c) {
  27171. var e = c[d];
  27172. e.ended || e.pause()
  27173. }
  27174. },
  27175. c2: function(c) {
  27176. this.lr(this.li[c])
  27177. },
  27178. b2: function() {
  27179. var c = this.li,
  27180. d;
  27181. for (d in c) this.lr(c[d])
  27182. },
  27183. k3: function(c) {
  27184. this.Rt(this.li[c]);
  27185. delete this.li[c]
  27186. },
  27187. iJ: function() {
  27188. var c = this.li,
  27189. d;
  27190. for (d in c) this.Rt(c[d]), delete c[d]
  27191. },
  27192. z3: function(c) {
  27193. var d = f.L,
  27194. e = this.li,
  27195. g = this.qW(c);
  27196. d.wh(c);
  27197. if (0 != g.length) {
  27198. d = g[0].src;
  27199. delete this.GE[c];
  27200. for (var h in e) e[h].src == d && (this.Rt(e[h]), delete e[h])
  27201. }
  27202. },
  27203. end: function() {
  27204. this.pia();
  27205. this.iJ()
  27206. },
  27207. naa: function() {
  27208. var c = this.li,
  27209. d, e;
  27210. for (e in c)!(d = c[e]) || d.ended || d.paused || (this.aG.push(d), d.pause());
  27211. this.VP() && (this.aG.push(this.Lh), this.Lh.pause())
  27212. },
  27213. Kaa: function() {
  27214. for (var c = this.aG, d = 0, e = c.length; d < e; d++) this.lr(c[d]);
  27215. c.length = 0
  27216. }
  27217. });
  27218. !f.Ed.RN && 0 > f.Ed.iva && (f.R3 = f.Q3.extend({
  27219. cu: [],
  27220. ZF: [],
  27221. Gk: null,
  27222. aX: 2,
  27223. SL: {},
  27224. hw: !1,
  27225. Nz: 0,
  27226. OW: !1,
  27227. wX: function(c) {
  27228. this.HY();
  27229. this._super(c)
  27230. },
  27231. vga: function() {
  27232. 1 == this.Uj && (this.HY(), this.hw = !1, this.Nz = 0, this._super())
  27233. },
  27234. zI: function(c, d) {
  27235. var e = this.Gk,
  27236. g = d ? this.p$(c) : this.fsa(c);
  27237. if (!g) return null;
  27238. g.loop = d || !1;
  27239. var h = this.F8++;
  27240. this.li[h] = g;
  27241. this.VP() && (this.G1(), this.hw = !0);
  27242. e ? (e != g && this.cu.push(this.Cz), this.cu.push(h), e.pause()) : (this.Gk = g, this.Cz = h, g.play());
  27243. return h
  27244. },
  27245. F1: function() {
  27246. f.log("pauseEffect not supported in single audio mode!")
  27247. },
  27248. E1: function() {
  27249. var c =
  27250. this.cu,
  27251. d = this.ZF,
  27252. e = this.Gk;
  27253. if (e) {
  27254. for (var g = 0, h = c.length; g < h; g++) d.push(c[g]);
  27255. c.length = 0;
  27256. d.push(this.Cz);
  27257. e.pause()
  27258. }
  27259. },
  27260. c2: function() {
  27261. f.log("resumeEffect not supported in single audio mode!")
  27262. },
  27263. b2: function() {
  27264. var c = this.cu,
  27265. d = this.ZF;
  27266. this.VP() && (this.G1(), this.hw = !0);
  27267. for (var e = 0, g = d.length; e < g; e++) c.push(d[e]);
  27268. d.length = 0;
  27269. !this.Gk && 0 <= c.length && (c = c.pop(), d = this.li[c]) && (this.Cz = c, this.Gk = d, this.lr(d))
  27270. },
  27271. k3: function(c) {
  27272. var d = this.Gk,
  27273. e = this.cu,
  27274. g = this.ZF;
  27275. d && this.Cz == c ? this.Rt(d) : (d = e.indexOf(c), 0 <= d ? e.splice(d,
  27276. 1) : (d = g.indexOf(c), 0 <= d && g.splice(d, 1)))
  27277. },
  27278. iJ: function() {
  27279. this.HY();
  27280. !this.Gk && this.hw && (this.lr(this.Lh), this.Uj = 2, this.hw = !1, this.Nz = 0)
  27281. },
  27282. z3: function(c) {
  27283. var d = f.L,
  27284. e = this.li,
  27285. g = this.SL,
  27286. h = this.qW(c),
  27287. k = this.Gk;
  27288. d.wh(c);
  27289. if (0 != h.length || g[c]) {
  27290. d = 0 < h.length ? h[0].src : g[c].src;
  27291. delete this.GE[c];
  27292. delete g[c];
  27293. for (var m in e) e[m].src == d && delete e[m];
  27294. k && k.src == d && this.Rt(k)
  27295. }
  27296. },
  27297. fsa: function(c) {
  27298. var d = this.SL[c],
  27299. e = this.cu,
  27300. g = this.ZF,
  27301. h = this.li;
  27302. if (d) d.currentTime = 0;
  27303. else {
  27304. d = this.nW(c);
  27305. if (!d) return null;
  27306. d = d.cloneNode(!0);
  27307. this.bt &&
  27308. f.ub(d, "pause", this.bt);
  27309. d.volume = this.TL;
  27310. this.SL[c] = d
  27311. }
  27312. c = 0;
  27313. for (var k = e.length; c < k;) h[e[c]] == d ? e.splice(c, 1) : c++;
  27314. c = 0;
  27315. for (k = g.length; c < k;) h[g[c]] == d ? g.splice(c, 1) : c++;
  27316. d.HF = !0;
  27317. return d
  27318. },
  27319. HY: function() {
  27320. var c = this.Gk,
  27321. d = this.GE,
  27322. e = this.SL,
  27323. g = this.cu,
  27324. h = this.ZF;
  27325. if (c || 0 != g.length || 0 != h.length) {
  27326. for (var k in e) {
  27327. var m = e[k];
  27328. m.duration && Infinity != m.duration && (m.currentTime = m.duration)
  27329. }
  27330. g.length = 0;
  27331. h.length = 0;
  27332. for (k in d)
  27333. for (e = d[k], g = 0, h = e.length; g < h; g++) m = e[g], m.loop = !1, m.duration && Infinity != m.duration && (m.currentTime =
  27334. m.duration);
  27335. c && this.Rt(c)
  27336. }
  27337. },
  27338. bt: function() {
  27339. if (!this.OW) {
  27340. var c = this.jsa();
  27341. if (c) c.HF ? (delete c.HF, c.play()) : this.lr(c);
  27342. else if (this.hw) {
  27343. c = this.Lh;
  27344. if (c.duration && Infinity != c.duration) {
  27345. var d = c.currentTime + this.Nz,
  27346. d = d - c.duration * (d / c.duration | 0);
  27347. c.currentTime = d
  27348. }
  27349. this.Nz = 0;
  27350. this.lr(c);
  27351. this.Uj = 2;
  27352. this.hw = !1
  27353. }
  27354. }
  27355. },
  27356. jsa: function() {
  27357. var c = this.cu,
  27358. d = this.li,
  27359. e = this.Gk,
  27360. g = e ? e.currentTime - (e.startTime || 0) : 0;
  27361. for (this.Nz += g; 0 != c.length;) {
  27362. var h = c.pop();
  27363. if (e = d[h]) {
  27364. if (e.HF || e.loop || e.duration && e.currentTime + g < e.duration) return this.Cz =
  27365. h, this.Gk = e, !e.HF && e.duration && Infinity != e.duration && (c = e.currentTime + g, c -= e.duration * (c / e.duration | 0), e.currentTime = c), e.HF = !1, e;
  27366. e.duration && Infinity != e.duration && (e.currentTime = e.duration)
  27367. }
  27368. }
  27369. return this.Gk = this.Cz = null
  27370. },
  27371. naa: function() {
  27372. var c = this.Gk;
  27373. this.OW = !0;
  27374. if (c = 2 == this.Uj ? this.Lh : c) this.aG.push(c), c.pause()
  27375. },
  27376. Kaa: function() {
  27377. var c = this.aG;
  27378. this.OW = !1;
  27379. 0 < c.length && (this.lr(c[0]), c.length = 0)
  27380. }
  27381. }));
  27382. f.UU = {
  27383. SN: null,
  27384. gP: function() {
  27385. return f.L.vwa
  27386. },
  27387. UW: function(c, d, e, g, h, k, m) {
  27388. var n = this,
  27389. p = f.L,
  27390. s = f.path,
  27391. u = this.SN,
  27392. v = "";
  27393. if (0 == u.length) return m("can not support audio!");
  27394. if (-1 == g) v = (s.zp(c) || "").toLowerCase(), n.wwa(v) || (v = u[0], g = 0);
  27395. else if (g < u.length) v = u[g];
  27396. else return m("can not found the resource of audio! Last match url is : " + c); if (0 <= h.indexOf(v)) return n.UW(c, d, e, g + 1, h, k, m);
  27397. c = s.c_(c, v);
  27398. h.push(v);
  27399. k = n.Usa(c, k, function(p) {
  27400. if (p) return n.UW(c, d, e, g + 1, h, k, m);
  27401. m(null, k)
  27402. }, g == u.length - 1);
  27403. p.jj[d] = k
  27404. },
  27405. wwa: function(c) {
  27406. return c ?
  27407. 0 <= this.SN.indexOf(c.toLowerCase()) : !1
  27408. },
  27409. Usa: function(c, d, e, g) {
  27410. var h = "file://" == location.origin ? Audio : f.xU || Audio;
  27411. 2 == arguments.length ? (e = d, d = new h) : 3 < arguments.length && !d && (d = new h);
  27412. d.src = c;
  27413. d.K1 = "auto";
  27414. h = navigator.userAgent;
  27415. /Mobile/.test(h) && (/iPhone OS/.test(h) || /iPad/.test(h) || /Firefox/.test(h)) || /MSIE/.test(h) ? (d.load(), e(null, d)) : (f.ub(d, "canplaythrough", function() {
  27416. e(null, d);
  27417. this.removeEventListener("canplaythrough", arguments.callee, !1);
  27418. this.removeEventListener("error", arguments.callee, !1)
  27419. }, !1),
  27420. f.ub(d, "error", function() {
  27421. e("load " + c + " failed");
  27422. g && (this.removeEventListener("canplaythrough", arguments.callee, !1), this.removeEventListener("error", arguments.callee, !1))
  27423. }, !1), d.load());
  27424. return d
  27425. },
  27426. load: function(c, d, e, g) {
  27427. this.UW(c, d, e, -1, [], null, g)
  27428. }
  27429. };
  27430. f.UU.SN = function() {
  27431. var c = f.fd("audio"),
  27432. d = [];
  27433. if (c.canPlayType) {
  27434. var e = function(d) {
  27435. d = c.canPlayType(d);
  27436. return "no" != d && "" != d
  27437. };
  27438. e('audio/ogg; codecs\x3d"vorbis"') && d.push(".ogg");
  27439. e("audio/mpeg") && d.push(".mp3");
  27440. e('audio/wav; codecs\x3d"1"') && d.push(".wav");
  27441. e("audio/mp4") && d.push(".mp4");
  27442. (e("audio/x-m4a") || e("audio/aac")) && d.push(".m4a")
  27443. }
  27444. return d
  27445. }();
  27446. f.L.Xp(["mp3", "ogg", "wav", "mp4", "m4a"], f.UU);
  27447. f.pe = f.R3 ? new f.R3 : new f.Q3;
  27448. f.Qa.sZ(f.vf.UJ, function() {
  27449. f.pe.naa()
  27450. });
  27451. f.Qa.sZ(f.vf.vD, function() {
  27452. f.pe.Kaa()
  27453. });
  27454. f.tS = 9;
  27455. f.Gka = 1;
  27456. f.Jka = 2;
  27457. f.Kka = 4;
  27458. f.Hka = 8;
  27459. f.Ika = 16;
  27460. f.G4 = 32;
  27461. f.Lka = 64;
  27462. f.Fka = 128;
  27463. f.ro = 256;
  27464. f.Wg = 1;
  27465. f.av = 2;
  27466. f.$u = 4;
  27467. f.JKa = 8;
  27468. f.IKa = 8;
  27469. f.Nc = f.ci.extend({
  27470. J$: !1,
  27471. oOa: !1,
  27472. vi: null,
  27473. ta: "Control",
  27474. vg: function() {
  27475. return this.J$
  27476. },
  27477. ee: function(c) {
  27478. this.J$ = c;
  27479. for (var d = this.re(), e = 0, g = d.length; e < g; e++) {
  27480. var h = d[e];
  27481. h && h.wb && h.ee(c)
  27482. }
  27483. },
  27484. Ic: f.Wg,
  27485. rBa: function() {
  27486. return this.Ic
  27487. },
  27488. $c: !1,
  27489. zN: !1,
  27490. ot: !1,
  27491. HL: null,
  27492. Lb: function(c) {
  27493. this.Ic = (this.$c = c) ? f.Wg : f.$u;
  27494. this.Xf()
  27495. },
  27496. isEnabled: function() {
  27497. return this.$c
  27498. },
  27499. Nu: function(c) {
  27500. this.zN = c;
  27501. this.Xf()
  27502. },
  27503. WP: function() {
  27504. return this.zN
  27505. },
  27506. xj: function(c) {
  27507. this.ot = c;
  27508. this.Xf()
  27509. },
  27510. UP: function() {
  27511. return this.ot
  27512. },
  27513. aCa: function() {
  27514. for (var c = this.getParent(); null !=
  27515. c; c = c.getParent())
  27516. if (!c.Na) return !1;
  27517. return !0
  27518. },
  27519. ctor: function() {
  27520. f.ci.prototype.ctor.call(this);
  27521. this.HL = {};
  27522. this.Ea = f.color.WHITE
  27523. },
  27524. j: function() {
  27525. if (f.ci.prototype.j.call(this)) {
  27526. this.Ic = f.Wg;
  27527. this.$c = !0;
  27528. this.ot = this.zN = !1;
  27529. var c = f.Xa.create({
  27530. event: f.Xa.zs
  27531. });
  27532. this.rc && (c.rc = this.rc.bind(this));
  27533. this.hd && (c.hd = this.hd.bind(this));
  27534. this.gd && (c.gd = this.gd.bind(this));
  27535. this.ef && (c.ef = this.ef.bind(this));
  27536. this.vi = c;
  27537. return !0
  27538. }
  27539. return !1
  27540. },
  27541. ba: function() {
  27542. var c = this.vi;
  27543. c.aj || f.Qa.addListener(c, this);
  27544. f.v.prototype.ba.call(this)
  27545. },
  27546. Di: function(c) {
  27547. for (var d = 0, e = f.tS; d < e; d++)
  27548. if (c & 1 << d)
  27549. for (var g = this.RV(1 << d), h = 0, k = g.length; h < k; h++) g[h].NCa(this)
  27550. },
  27551. VG: function(c, d, e) {
  27552. for (var g = 0, h = f.tS; g < h; g++) e & 1 << g && this.B8(c, d, 1 << g)
  27553. },
  27554. y1a: function(c, d, e) {
  27555. for (var g = 0, h = f.tS; g < h; g++) e & 1 << g && this.Zta(c, d, 1 << g)
  27556. },
  27557. Dp: function(c) {
  27558. return this.yi(c.cf())
  27559. },
  27560. Yn: function(c) {
  27561. c = c.cf();
  27562. c = this.getParent().yi(c);
  27563. return f.Bu(this.Ee(), c)
  27564. },
  27565. sOa: function() {
  27566. return null
  27567. },
  27568. RV: function(c) {
  27569. c = c.toString();
  27570. this.HL[c] || (this.HL[c] = []);
  27571. return this.HL[c]
  27572. },
  27573. B8: function(c, d, e) {
  27574. c =
  27575. new f.Xla(c, d, e);
  27576. this.RV(e).push(c)
  27577. },
  27578. Zta: function(c, d, e) {
  27579. e = this.RV(e);
  27580. if (c || d)
  27581. for (var g = 0; g < e.length;) {
  27582. var h = e[g],
  27583. k = !0;
  27584. c && (k = c == h.bea());
  27585. d && (k = k && d == h.Ir());
  27586. k ? f.Ld(e, h) : g++
  27587. } else e.length = 0
  27588. },
  27589. Xf: function() {}
  27590. });
  27591. q = f.Nc.prototype;
  27592. f.d(q, "state", q.rBa);
  27593. f.d(q, "enabled", q.isEnabled, q.Lb);
  27594. f.d(q, "selected", q.WP, q.Nu);
  27595. f.d(q, "highlighted", q.UP, q.xj);
  27596. q = null;
  27597. f.Nc.create = function() {
  27598. var c = new f.Nc;
  27599. return c && c.j() ? c : null
  27600. };
  27601. f.K4 = 3435855873;
  27602. f.Xm = f.Nc.extend({
  27603. kF: !1,
  27604. vJ: !1,
  27605. Rh: null,
  27606. IF: null,
  27607. eF: null,
  27608. zL: null,
  27609. Mw: null,
  27610. Ih: null,
  27611. Ib: 0,
  27612. iA: !1,
  27613. YN: null,
  27614. FG: null,
  27615. ZN: null,
  27616. Av: null,
  27617. kaa: !1,
  27618. MM: 0,
  27619. LM: 0,
  27620. ta: "ControlButton",
  27621. ctor: function() {
  27622. f.Nc.prototype.ctor.call(this);
  27623. this.Rh = t(0, 0);
  27624. this.IF = r(0, 0);
  27625. this.eF = "";
  27626. this.zL = f.color.WHITE;
  27627. this.YN = {};
  27628. this.FG = {};
  27629. this.ZN = {};
  27630. this.Av = {}
  27631. },
  27632. j: function() {
  27633. return this.OP(f.ia.create("", "Arial", 12), f.Ua.create())
  27634. },
  27635. Xf: function() {
  27636. if (this.kaa) {
  27637. this.Mw && this.Mw.za(!1);
  27638. this.Ih && this.Ih.za(!1);
  27639. this.z2(this.IF);
  27640. var c = this.Ic;
  27641. this.eF = this.s0(c);
  27642. this.zL = this.zBa(c);
  27643. var d = this.Mw = this.GH(c);
  27644. d && d.wa && d.wa(this.eF);
  27645. d && d.wb && d.F(this.zL);
  27646. var e = this.e();
  27647. d && d.o(e.width / 2, e.height / 2);
  27648. (c = this.Ih = this.Aza(c)) && c.o(e.width / 2, e.height / 2);
  27649. e = t(0, 0);
  27650. if (d) {
  27651. var g = d.Ee();
  27652. e.width = g.width;
  27653. e.height = g.height
  27654. }
  27655. this.kF ? c && c.Ga(e.width + 2 * this.LM, e.height + 2 * this.MM) : c && (g = c.Rh, g = t(g.width, g.height), 0 >= g.width && (g.width = e.width), 0 >= g.height && (g.height = e.height), c.Ga(g));
  27656. e = d ? d.Ee() : x(0, 0, 0, 0);
  27657. g = c ? c.Ee() : x(0, 0, 0, 0);
  27658. e = f.zC(e, g);
  27659. this.Ga(e.width, e.height);
  27660. e = this.e();
  27661. d &&
  27662. (d.o(e.width / 2, e.height / 2), d.za(!0));
  27663. c && (c.o(e.width / 2, e.height / 2), c.za(!0))
  27664. }
  27665. },
  27666. OP: function(c, d) {
  27667. if (!c || !c.wb) throw "cc.ControlButton.initWithLabelAndBackgroundSprite(): label should be non-null";
  27668. if (!d) throw "cc.ControlButton.initWithLabelAndBackgroundSprite(): backgroundSprite should be non-null";
  27669. return f.Nc.prototype.j.call(this, !0) ? (this.kaa = !0, this.YN = {}, this.FG = {}, this.ZN = {}, this.Av = {}, this.iA = !1, this.vJ = !0, this.eF = null, this.Aga(!0), this.He(t(0, 0)), this.vJ = !0, this.Gm(!1), this.S(0.5, 0.5), this.Mw =
  27670. c, this.Ih = d, this.J(255), this.ee(!0), this.AR(c.qc(), f.Wg), this.zR(c.$a(), f.Wg), this.W2(c, f.Wg), this.aR(d, f.Wg), this.Ic = f.Wg, this.LM = 24, this.MM = 12, this.IF = r(0.5, 0.5), this.He(t(0, 0)), this.Xf(), !0) : !1
  27671. },
  27672. FCa: function(c, d, e) {
  27673. c = f.ia.create(c, d, e);
  27674. return this.OP(c, f.Ua.create())
  27675. },
  27676. yea: function(c) {
  27677. var d = f.ia.create("", "Arial", 30);
  27678. return this.OP(d, c)
  27679. },
  27680. $Qa: function() {
  27681. return this.kF
  27682. },
  27683. Aga: function(c) {
  27684. this.kF = c;
  27685. this.Xf()
  27686. },
  27687. OWa: function() {
  27688. return this.vJ
  27689. },
  27690. $ha: function(c) {
  27691. return this.vJ = c
  27692. },
  27693. j0: function() {
  27694. return this.Rh
  27695. },
  27696. He: function(c) {
  27697. if (0 === c.width && 0 === c.height) this.kF = !0;
  27698. else {
  27699. this.kF = !1;
  27700. var d = this.Av,
  27701. e;
  27702. for (e in d) d[e].He(c)
  27703. }
  27704. this.Rh = c;
  27705. this.Xf()
  27706. },
  27707. oAa: function() {
  27708. return this.IF
  27709. },
  27710. z2: function(c) {
  27711. this.IF = c;
  27712. this.Mw && this.Mw.S(c)
  27713. },
  27714. cOa: function() {
  27715. return this.eF
  27716. },
  27717. dOa: function() {
  27718. return this.zL
  27719. },
  27720. vb: function() {
  27721. return this.Ib
  27722. },
  27723. J: function(c) {
  27724. f.Nc.prototype.J.call(this, c);
  27725. var d = this.Av,
  27726. e;
  27727. for (e in d) d[e].J(c)
  27728. },
  27729. F: function(c) {
  27730. f.Nc.prototype.F.call(this, c);
  27731. var d = this.Av,
  27732. e;
  27733. for (e in d) d[e].F(c)
  27734. },
  27735. $a: function() {
  27736. var c = this.rd;
  27737. return f.color(c.r,
  27738. c.g, c.b, c.a)
  27739. },
  27740. SXa: function() {
  27741. return this.iA
  27742. },
  27743. mOa: function() {
  27744. return this.MM
  27745. },
  27746. fOa: function() {
  27747. return this.LM
  27748. },
  27749. G3a: function(c, d) {
  27750. this.MM = d;
  27751. this.LM = c;
  27752. this.Xf()
  27753. },
  27754. Lb: function(c) {
  27755. f.Nc.prototype.Lb.call(this, c);
  27756. this.Xf()
  27757. },
  27758. Nu: function(c) {
  27759. f.Nc.prototype.Nu.call(this, c);
  27760. this.Xf()
  27761. },
  27762. xj: function(c) {
  27763. this.Ic = c ? f.av : f.Wg;
  27764. f.Nc.prototype.xj.call(this, c);
  27765. (c = this.eP(f.K4)) && this.hJ(c);
  27766. this.Xf();
  27767. this.vJ && (c = f.Db.create(0.05, this.UP() && this.isEnabled() && !this.WP() ? 1.1 : 1), c.Nm(f.K4), this.V(c))
  27768. },
  27769. rc: function(c) {
  27770. if (!(this.Yn(c) &&
  27771. this.isEnabled() && this.Na && this.aCa())) return !1;
  27772. this.iA = !0;
  27773. this.xj(!0);
  27774. this.Di(f.Gka);
  27775. return !0
  27776. },
  27777. hd: function(c) {
  27778. this.$c && this.iA && !this.zN ? (c = this.Yn(c)) && !this.ot ? (this.xj(!0), this.Di(f.Hka)) : c && this.ot ? this.Di(f.Jka) : !c && this.ot ? (this.xj(!1), this.Di(f.Ika)) : c || this.ot || this.Di(f.Kka) : this.ot && this.xj(!1)
  27779. },
  27780. gd: function(c) {
  27781. this.iA = !1;
  27782. this.xj(!1);
  27783. this.Yn(c) ? this.Di(f.G4) : this.Di(f.Lka)
  27784. },
  27785. ef: function() {
  27786. this.iA = !1;
  27787. this.xj(!1);
  27788. this.Di(f.Fka)
  27789. },
  27790. s0: function(c) {
  27791. var d = this.YN;
  27792. return d ? d[c] ? d[c] : d[f.Wg] : ""
  27793. },
  27794. AR: function(c,
  27795. d) {
  27796. this.YN[d] = c || "";
  27797. this.Ic == d && this.Xf()
  27798. },
  27799. zBa: function(c) {
  27800. return (c = this.FG[c]) ? c : (c = this.FG[f.Wg]) ? c : f.color.WHITE
  27801. },
  27802. zR: function(c, d) {
  27803. this.FG[d] = c;
  27804. this.Ic == d && this.Xf()
  27805. },
  27806. GH: function(c) {
  27807. var d = this.ZN;
  27808. return d[c] ? d[c] : d[f.Wg]
  27809. },
  27810. W2: function(c, d) {
  27811. var e = this.ZN;
  27812. if (e[d]) {
  27813. var g = e[d];
  27814. g && this.removeChild(g, !0)
  27815. }
  27816. e[d] = c;
  27817. c.za(!1);
  27818. c.S(0.5, 0.5);
  27819. this.n(c, 1);
  27820. this.Ic == d && this.Xf()
  27821. },
  27822. X2: function(c, d) {
  27823. var e = this.s0(d);
  27824. e || (e = "");
  27825. this.W2(f.ia.create(e, c, 12), d)
  27826. },
  27827. rWa: function(c) {
  27828. c = this.GH(c);
  27829. return null != c && c instanceof f.ia ?
  27830. c.Cp() : ""
  27831. },
  27832. Y2: function(c, d) {
  27833. var e = this.GH(d);
  27834. null != e && e instanceof f.ia && e.Qd(c)
  27835. },
  27836. sWa: function(c) {
  27837. c = this.GH(c);
  27838. return null != c && c instanceof f.ia ? c.Un() : 0
  27839. },
  27840. z4a: function(c, d) {
  27841. var e = this.s0(d);
  27842. e || (e = "");
  27843. this.W2(f.qq.create(e, c), d)
  27844. },
  27845. qWa: function(c) {
  27846. c = this.GH(c);
  27847. return null != c && c instanceof f.qq ? c.qF : ""
  27848. },
  27849. Aza: function(c) {
  27850. var d = this.Av;
  27851. return d[c] ? d[c] : d[f.Wg]
  27852. },
  27853. aR: function(c, d) {
  27854. var e = this.Av;
  27855. if (e[d]) {
  27856. var g = e[d];
  27857. g && this.removeChild(g, !0)
  27858. }
  27859. e[d] = c;
  27860. c.za(!1);
  27861. c.S(0.5, 0.5);
  27862. this.n(c);
  27863. e = this.Rh;
  27864. 0 === e.width && 0 === e.height ||
  27865. c.He(e);
  27866. this.Ic === d && this.Xf()
  27867. },
  27868. l2: function(c, d) {
  27869. var e = f.Ua.nxa(c);
  27870. this.aR(e, d)
  27871. }
  27872. });
  27873. q = f.Xm.prototype;
  27874. f.d(q, "adjustBackground", q.VRa, q.Aga);
  27875. f.d(q, "preferredSize", q.j0, q.He);
  27876. f.d(q, "labelAnchor", q.oAa, q.z2);
  27877. q = null;
  27878. f.Xm.create = function(c, d) {
  27879. var e;
  27880. if (0 == arguments.length) return (e = new f.Xm) && e.j() ? e : null;
  27881. 1 == arguments.length ? (e = new f.Xm, e.yea(arguments[0])) : 2 == arguments.length ? (e = new f.Xm, e.OP(c, d)) : 3 == arguments.length && (e = new f.Xm, e.FCa(arguments[0], arguments[1], arguments[2]));
  27882. return e
  27883. };
  27884. function Ea() {
  27885. this.a = this.b = this.g = this.r = void 0
  27886. }
  27887. f.TS = function(c, d, e) {
  27888. this.Vf = c;
  27889. this.ll = d;
  27890. this.ga = e
  27891. };
  27892. f.Eh = {};
  27893. f.Eh.$w = function(c, d, e, g) {
  27894. c = f.q.create("#" + c);
  27895. if (!c) return null;
  27896. c.o(e);
  27897. c.S(g);
  27898. d.n(c);
  27899. return c
  27900. };
  27901. f.Eh.Nla = function(c) {
  27902. var d = new f.TS,
  27903. e, g;
  27904. e = c.r < c.g ? c.r : c.g;
  27905. e = e < c.b ? e : c.b;
  27906. g = c.r > c.g ? c.r : c.g;
  27907. g = g > c.b ? g : c.b;
  27908. d.ga = g;
  27909. e = g - e;
  27910. if (0 < g) d.ll = e / g;
  27911. else return d.ll = 0, d.Vf = -1, d;
  27912. d.Vf = c.r >= g ? (c.g - c.b) / e : c.g >= g ? 2 + (c.b - c.r) / e : 4 + (c.r - c.g) / e;
  27913. d.Vf *= 60;
  27914. 0 > d.Vf && (d.Vf += 360);
  27915. return d
  27916. };
  27917. f.Eh.FT = function(c) {
  27918. var d, e, g, h, k = new Ea;
  27919. k.a = 1;
  27920. if (0 >= c.ll) {
  27921. if (!c.Vf) return k.r = c.ga, k.g = c.ga, k.b = c.ga, k;
  27922. k.r = 0;
  27923. k.g = 0;
  27924. k.b = 0;
  27925. return k
  27926. }
  27927. d = c.Vf;
  27928. 360 <= d && (d = 0);
  27929. d /= 60;
  27930. h = 0 | d;
  27931. g = d - h;
  27932. d = c.ga * (1 - c.ll);
  27933. e = c.ga * (1 - c.ll * g);
  27934. g = c.ga * (1 - c.ll * (1 - g));
  27935. switch (h) {
  27936. case 0:
  27937. k.r = c.ga;
  27938. k.g = g;
  27939. k.b = d;
  27940. break;
  27941. case 1:
  27942. k.r = e;
  27943. k.g = c.ga;
  27944. k.b = d;
  27945. break;
  27946. case 2:
  27947. k.r = d;
  27948. k.g = c.ga;
  27949. k.b = g;
  27950. break;
  27951. case 3:
  27952. k.r = d;
  27953. k.g = e;
  27954. k.b = c.ga;
  27955. break;
  27956. case 4:
  27957. k.r = g;
  27958. k.g = d;
  27959. k.b = c.ga;
  27960. break;
  27961. default:
  27962. k.r = c.ga, k.g = d, k.b = e
  27963. }
  27964. return k
  27965. };
  27966. f.Eh.h4 = function(c, d) {
  27967. return f.zC(c, d)
  27968. };
  27969. f.Xla = f.N.extend({
  27970. Qe: null,
  27971. ad: null,
  27972. vL: null,
  27973. ctor: function(c, d, e) {
  27974. this.ad = c;
  27975. this.Qe = d;
  27976. this.vL = e
  27977. },
  27978. Ir: function() {
  27979. return this.Qe
  27980. },
  27981. bea: function() {
  27982. return this.ad
  27983. },
  27984. aTa: function() {
  27985. return this.vL
  27986. },
  27987. NCa: function(c) {
  27988. if (this.ad && this.Qe)
  27989. if ("string" == typeof this.Qe) this.ad[this.Qe](c, this.vL);
  27990. else this.Qe.call(this.ad, c, this.vL)
  27991. }
  27992. });
  27993. f.Ua = f.ja.extend({
  27994. wb: !0,
  27995. RA: null,
  27996. T8: null,
  27997. jp: !1,
  27998. cj: null,
  27999. Zt: null,
  28000. Nw: null,
  28001. $t: null,
  28002. $v: null,
  28003. Jq: null,
  28004. zw: null,
  28005. Qs: null,
  28006. Dv: null,
  28007. Ev: null,
  28008. Nq: null,
  28009. Jb: !1,
  28010. Jg: null,
  28011. Rh: null,
  28012. Ib: 0,
  28013. Ea: null,
  28014. kf: null,
  28015. vM: 0,
  28016. xM: 0,
  28017. wM: 0,
  28018. uM: 0,
  28019. kba: !1,
  28020. CY: !1,
  28021. Ba: !1,
  28022. dc: null,
  28023. ta: "Scale9Sprite",
  28024. RC: function() {
  28025. return this.Ba
  28026. },
  28027. oe: function(c, d) {
  28028. this.dc.push({
  28029. al: c,
  28030. nj: d
  28031. })
  28032. },
  28033. jf: function() {
  28034. this.Ba = !0;
  28035. for (var c = this.dc, d = 0, e = c.length; d < e; d++) {
  28036. var g = c[d];
  28037. g.al.call(g.nj, this)
  28038. }
  28039. c.length = 0
  28040. },
  28041. iO: function() {
  28042. var c = this.vM,
  28043. d = this.xM,
  28044. e = this.wM,
  28045. g = this.RA,
  28046. h = this.uM;
  28047. this.Cc(0 ===
  28048. c && 0 === d && 0 === e && 0 === h ? x(0, 0, 0, 0) : this.CY ? x(h, c, g.width - e - c, g.height - d - h) : x(c, d, g.width - c - e, g.height - d - h))
  28049. },
  28050. wva: function() {
  28051. if (this.Zt && this.$t && this.Ev && this.Qs && this.Jq) {
  28052. var c = this.m,
  28053. d = this.Zt,
  28054. e = this.$t,
  28055. g = this.Ev,
  28056. h = this.Qs,
  28057. k = this.Jq,
  28058. m = this.Jq.e(),
  28059. n = d.e(),
  28060. p = h.e(),
  28061. s = c.width - n.width - e.e().width,
  28062. c = c.height - n.height - g.e().height,
  28063. s = s / m.width,
  28064. c = c / m.height,
  28065. n = m.width * s,
  28066. u = m.height * c,
  28067. v = p.width,
  28068. p = p.height;
  28069. if (f.K == f.na) {
  28070. var z = Math.round(n);
  28071. n != z && (n = z, s = n / m.width);
  28072. z = Math.round(u);
  28073. u != z && (u = z, c = u / m.height)
  28074. }
  28075. k.jb(s);
  28076. k.tb(c);
  28077. var m = this.$v,
  28078. z = this.zw,
  28079. A = this.Nw,
  28080. B = this.Dv,
  28081. C = r(0, 0);
  28082. h.S(C);
  28083. g.S(C);
  28084. d.S(C);
  28085. e.S(C);
  28086. m.S(C);
  28087. z.S(C);
  28088. A.S(C);
  28089. B.S(C);
  28090. k.S(C);
  28091. h.o(0, 0);
  28092. g.o(v + n, 0);
  28093. d.o(0, p + u);
  28094. e.o(v + n, p + u);
  28095. m.o(0, p);
  28096. m.tb(c);
  28097. z.o(v + n, p);
  28098. z.tb(c);
  28099. B.o(v, 0);
  28100. B.jb(s);
  28101. A.o(v, p + u);
  28102. A.jb(s);
  28103. k.o(v, p)
  28104. }
  28105. },
  28106. ctor: function() {
  28107. f.ja.prototype.ctor.call(this);
  28108. this.RA = x(0, 0, 0, 0);
  28109. this.T8 = x(0, 0, 0, 0);
  28110. this.Nq = f.color(255, 255, 255, 255);
  28111. this.Jg = t(0, 0);
  28112. this.Rh = t(0, 0);
  28113. this.Ea = f.color(255, 255, 255, 255);
  28114. this.Ib = 255;
  28115. this.kf = x(0, 0, 0, 0);
  28116. this.dc = []
  28117. },
  28118. QAa: function() {
  28119. return this.Jg
  28120. },
  28121. j0: function() {
  28122. return this.Rh
  28123. },
  28124. iOa: function() {
  28125. return this.Rh.width
  28126. },
  28127. hOa: function() {
  28128. return this.Rh.height
  28129. },
  28130. He: function(c) {
  28131. this.Ga(c);
  28132. this.Rh = c
  28133. },
  28134. ROa: function(c) {
  28135. this.Uh(c);
  28136. this.Rh.width = c
  28137. },
  28138. QOa: function(c) {
  28139. this.Th(c);
  28140. this.Rh.height = c
  28141. },
  28142. vb: function() {
  28143. return this.Ib
  28144. },
  28145. J: function(c) {
  28146. if (this.cj) {
  28147. this.Ib = c;
  28148. for (var d = this.cj.re(), e = 0; e < d.length; e++) {
  28149. var g = d[e];
  28150. g && g.wb && g.J(c)
  28151. }
  28152. this.Ea.a = c
  28153. }
  28154. },
  28155. hc: function(c) {
  28156. f.ja.prototype.hc.call(this, c);
  28157. this.J(this.kb)
  28158. },
  28159. $a: function() {
  28160. var c = this.Ea;
  28161. return f.color(c.r, c.g, c.b, c.a)
  28162. },
  28163. F: function(c) {
  28164. if (this.cj) {
  28165. var d = this.Ea;
  28166. d.r = c.r;
  28167. d.g = c.g;
  28168. d.b = c.b;
  28169. for (var d = this.cj.re(), e = 0; e < d.length; e++) {
  28170. var g = d[e];
  28171. g && g.wb && g.F(c)
  28172. }
  28173. void 0 === c.a || c.Yw || this.J(c.a)
  28174. }
  28175. },
  28176. Wb: function(c) {
  28177. f.ja.prototype.Wb.call(this, c);
  28178. this.F(this.Ab)
  28179. },
  28180. X_: function() {
  28181. return this.kf
  28182. },
  28183. Cc: function(c) {
  28184. if (this.cj) {
  28185. var d = this.m,
  28186. e = d.width,
  28187. d = d.height;
  28188. this.XC(this.cj, this.RA, this.CY, c);
  28189. this.Ga(e, d)
  28190. }
  28191. },
  28192. jAa: function() {
  28193. return this.vM
  28194. },
  28195. eha: function(c) {
  28196. this.vM = c;
  28197. this.iO()
  28198. },
  28199. lAa: function() {
  28200. return this.xM
  28201. },
  28202. gha: function(c) {
  28203. this.xM = c;
  28204. this.iO()
  28205. },
  28206. kAa: function() {
  28207. return this.wM
  28208. },
  28209. fha: function(c) {
  28210. this.wM = c;
  28211. this.iO()
  28212. },
  28213. iAa: function() {
  28214. return this.uM
  28215. },
  28216. dha: function(c) {
  28217. this.uM = c;
  28218. this.iO()
  28219. },
  28220. Ga: function(c, d) {
  28221. f.v.prototype.Ga.call(this, c, d);
  28222. this.jp = !0
  28223. },
  28224. Uh: function(c) {
  28225. f.v.prototype.Uh.call(this, c);
  28226. this.jp = !0
  28227. },
  28228. Th: function(c) {
  28229. f.v.prototype.Th.call(this, c);
  28230. this.jp = !0
  28231. },
  28232. I: function(c) {
  28233. this.jp && (this.wva(), this.jp = !1);
  28234. f.ja.prototype.I.call(this, c)
  28235. },
  28236. j: function() {
  28237. return this.LP(null, x(0, 0, 0, 0), !1, x(0, 0, 0, 0))
  28238. },
  28239. LP: function(c, d, e, g) {
  28240. void 0 === g && (g = e, e = !1);
  28241. c && this.XC(c,
  28242. d, e, g);
  28243. this.S(0.5, 0.5);
  28244. return this.jp = !0
  28245. },
  28246. Ge: function(c, d, e) {
  28247. c instanceof f.Qy ? (e = c = d, d = x(0, 0, 0, 0)) : (d = d || x(0, 0, 0, 0), e = e || x(0, 0, 0, 0));
  28248. if (!c) throw "cc.Scale9Sprite.initWithFile(): file should be non-null";
  28249. var g = f.nb.Ru(c);
  28250. if (!g) {
  28251. var g = f.nb.vd(c),
  28252. h = g.ie;
  28253. (this.Ba = h) || g.oe(function(c) {
  28254. var d = this.Rh,
  28255. d = t(d.width, d.height);
  28256. c = c.e();
  28257. this.XC(this.cj, x(0, 0, c.width, c.height), !1, this.kf);
  28258. this.He(d);
  28259. this.jp = !0;
  28260. this.jf()
  28261. }, this)
  28262. }
  28263. return this.LP(f.Fh.create(c, 9), d, !1, e)
  28264. },
  28265. pj: function(c, d) {
  28266. if (!c || !c.sb()) throw "cc.Scale9Sprite.initWithSpriteFrame(): spriteFrame should be non-null and its texture should be non-null";
  28267. d = d || x(0, 0, 0, 0);
  28268. var e = c.Ba;
  28269. (this.Ba = e) || c.oe(function(c) {
  28270. var d = this.Rh,
  28271. d = t(d.width, d.height);
  28272. this.XC(this.cj, c.$h(), f.K == f.na && c.lg, this.kf);
  28273. this.He(d);
  28274. this.jp = !0;
  28275. this.jf()
  28276. }, this);
  28277. e = f.Fh.create(c.sb(), 9);
  28278. return this.LP(e, c.$h(), f.K == f.na && c.lg, d)
  28279. },
  28280. hl: function(c, d) {
  28281. if (!c) throw "cc.Scale9Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null";
  28282. d = d || x(0, 0, 0, 0);
  28283. var e = f.Je.Ca(c);
  28284. return null == e ? (f.log("cc.Scale9Sprite.initWithSpriteFrameName(): can't find the sprite frame by spriteFrameName"), !1) : this.pj(e, d)
  28285. },
  28286. H1a: function(c) {
  28287. var d = new f.Ua;
  28288. return d && d.LP(this.cj, this.RA, !1, c) ? d : null
  28289. },
  28290. ee: function(c) {
  28291. if (this.cj) {
  28292. this.Jb = c;
  28293. var d = this.cj.re();
  28294. if (d)
  28295. for (var e = 0, g = d.length; e < g; e++) d[e].ee(c)
  28296. }
  28297. },
  28298. vg: function() {
  28299. return this.Jb
  28300. },
  28301. XC: function(c, d, e, g) {
  28302. var h = this.vb(),
  28303. k = this.$a();
  28304. d = x(d.x, d.y, d.width, d.height);
  28305. this.Cf(!0);
  28306. this.cj != c && (this.cj = c);
  28307. c = c.sb();
  28308. var m = c.ie;
  28309. if (this.Ba = m) {
  28310. c = this.cj;
  28311. c.Cf(!0);
  28312. m = this.kf;
  28313. m.x = g.x;
  28314. m.y = g.y;
  28315. m.width = g.width;
  28316. m.height = g.height;
  28317. this.CY = e;
  28318. m = c.sb();
  28319. f.gG(d) && (d = m.e(), d = x(0, 0,
  28320. d.width, d.height));
  28321. var n = this.RA = d;
  28322. n.x = d.x;
  28323. n.y = d.y;
  28324. n.width = d.width;
  28325. n.height = d.height;
  28326. this.Jg.width = d.width;
  28327. this.Jg.height = d.height;
  28328. n = this.Rh;
  28329. 0 === n.width && 0 === n.height && (n.width = d.width, n.height = d.height);
  28330. n = this.T8;
  28331. g && (n.x = g.x, n.y = g.y, n.width = g.width, n.height = g.height);
  28332. var p = d.width;
  28333. g = d.height;
  28334. f.gG(n) && (n.x = p / 3, n.y = g / 3, n.width = p / 3, n.height = g / 3);
  28335. var s = n.x,
  28336. u = n.width,
  28337. v = p - (s + u),
  28338. z = n.y,
  28339. A = n.height,
  28340. B = g - (z + A),
  28341. C = 0,
  28342. G = 0;
  28343. g = x(C, G, s, z);
  28344. var C = C + s,
  28345. n = x(C, G, u, z),
  28346. p = x(C + u, G, v, z),
  28347. C = 0,
  28348. G = 0 + z,
  28349. L = x(C, G, s, A),
  28350. C = C + s,
  28351. O = x(C, G, u,
  28352. A),
  28353. C = C + u,
  28354. R = x(C, G, v, A),
  28355. C = 0,
  28356. G = 0 + z + A,
  28357. z = x(C, G, s, B),
  28358. C = C + s,
  28359. s = x(C, G, u, B),
  28360. C = C + u,
  28361. u = x(C, G, v, B),
  28362. v = {
  28363. a: 1,
  28364. b: 0,
  28365. G: 0,
  28366. P: 1,
  28367. pa: 0,
  28368. qa: 0
  28369. };
  28370. if (e) {
  28371. e = O;
  28372. var B = u,
  28373. C = z,
  28374. G = p,
  28375. A = g,
  28376. M = R,
  28377. K = L,
  28378. P = s,
  28379. I = n,
  28380. v = f.xJ(v, d.height + d.x, d.y),
  28381. v = f.hja(v),
  28382. O = f.Ki(O, v),
  28383. u = f.Ki(u, v),
  28384. z = f.Ki(z, v),
  28385. p = f.Ki(p, v);
  28386. g = f.Ki(g, v);
  28387. R = f.Ki(R, v);
  28388. L = f.Ki(L, v);
  28389. s = f.Ki(s, v);
  28390. n = f.Ki(n, v);
  28391. e.x = O.x;
  28392. e.y = O.y;
  28393. B.x = u.x;
  28394. B.y = u.y;
  28395. C.x = z.x;
  28396. C.y = z.y;
  28397. G.x = p.x;
  28398. G.y = p.y;
  28399. A.x = g.x;
  28400. A.y = g.y;
  28401. M.x = R.x;
  28402. M.y = R.y;
  28403. K.x = L.x;
  28404. K.y = L.y;
  28405. P.x = s.x;
  28406. P.y = s.y;
  28407. I.x = n.x;
  28408. I.y = n.y;
  28409. this.Jq = new f.q;
  28410. this.Jq.va(m, e, !0);
  28411. c.n(this.Jq, 0, f.Ua.A6);
  28412. this.Nw = new f.q;
  28413. this.Nw.va(m, I, !0);
  28414. c.n(this.Nw, 1, f.Ua.D6);
  28415. this.Dv = new f.q;
  28416. this.Dv.va(m, P, !0);
  28417. c.n(this.Dv, 1, f.Ua.z6);
  28418. this.$v = new f.q;
  28419. this.$v.va(m, K, !0);
  28420. c.n(this.$v, 1, f.Ua.B6);
  28421. this.zw = new f.q;
  28422. this.zw.va(m, M, !0);
  28423. c.n(this.zw, 1, f.Ua.C6);
  28424. this.Zt = new f.q;
  28425. this.Zt.va(m, A, !0);
  28426. c.n(this.Zt, 2, f.Ua.E6);
  28427. this.$t = new f.q;
  28428. this.$t.va(m, G, !0);
  28429. c.n(this.$t, 2, f.Ua.F6);
  28430. this.Qs = new f.q;
  28431. this.Qs.va(m, C, !0);
  28432. c.n(this.Qs, 2, f.Ua.cna);
  28433. this.Ev = new f.q;
  28434. this.Ev.va(m, B, !0)
  28435. } else v = f.xJ(v, d.x, d.y), f.Fo(O, v), f.Fo(u, v), f.Fo(z, v), f.Fo(p,
  28436. v), f.Fo(g, v), f.Fo(R, v), f.Fo(L, v), f.Fo(s, v), f.Fo(n, v), this.Jq = new f.q, this.Jq.va(m, O), c.n(this.Jq, 0, f.Ua.A6), this.Nw = new f.q, this.Nw.va(m, n), c.n(this.Nw, 1, f.Ua.D6), this.Dv = new f.q, this.Dv.va(m, s), c.n(this.Dv, 1, f.Ua.z6), this.$v = new f.q, this.$v.va(m, L), c.n(this.$v, 1, f.Ua.B6), this.zw = new f.q, this.zw.va(m, R), c.n(this.zw, 1, f.Ua.C6), this.Zt = new f.q, this.Zt.va(m, g), c.n(this.Zt, 2, f.Ua.E6), this.$t = new f.q, this.$t.va(m, p), c.n(this.$t, 2, f.Ua.F6), this.Qs = new f.q, this.Qs.va(m, z), c.n(this.Qs, 2, f.Ua.cna), this.Ev =
  28437. new f.q, this.Ev.va(m, u);
  28438. c.n(this.Ev, 2, f.Ua.dna);
  28439. this.Ga(d);
  28440. this.n(c);
  28441. this.kba && (this.J(h), 255 === k.r && 255 === k.g && 255 === k.b || this.F(k));
  28442. return this.kba = !0
  28443. }
  28444. c.oe(function() {
  28445. this.jp = !0;
  28446. this.jf()
  28447. }, this)
  28448. },
  28449. Dd: function(c) {
  28450. var d = f.Fh.create(c.sb(), 9),
  28451. e = c.Ba;
  28452. (this.Ba = e) || c.oe(function(c) {
  28453. var d = this.Rh,
  28454. d = t(d.width, d.height);
  28455. this.XC(this.cj, c.$h(), f.K == f.na && c.lg, this.kf);
  28456. this.He(d);
  28457. this.jp = !0;
  28458. this.jf()
  28459. }, this);
  28460. this.XC(d, c.$h(), f.K == f.na && c.lg, x(0, 0, 0, 0));
  28461. this.uM = this.wM = this.xM = this.vM = 0
  28462. }
  28463. });
  28464. q = f.Ua.prototype;
  28465. f.d(q, "preferredSize", q.j0, q.He);
  28466. f.d(q, "capInsets", q.X_, q.Cc);
  28467. f.d(q, "insetLeft", q.jAa, q.eha);
  28468. f.d(q, "insetTop", q.lAa, q.gha);
  28469. f.d(q, "insetRight", q.kAa, q.fha);
  28470. f.d(q, "insetBottom", q.iAa, q.dha);
  28471. q = null;
  28472. f.Ua.create = function(c, d, e) {
  28473. var g;
  28474. if (2 === arguments.length)
  28475. if ("string" == typeof c) {
  28476. if ((g = new f.Ua) && g.Ge(c, d)) return g
  28477. } else {
  28478. if (c instanceof f.Qy && (g = new f.Ua) && g.Ge(c, e)) return g
  28479. } else if (3 === arguments.length) {
  28480. if ((g = new f.Ua) && g.Ge(c, d, e)) return g
  28481. } else if (1 === arguments.length) {
  28482. if ((g = new f.Ua) && g.Ge(c)) return g
  28483. } else if (0 === arguments.length && (g = new f.Ua) && g.j()) return g;
  28484. return null
  28485. };
  28486. f.Ua.nxa = function(c) {
  28487. var d = new f.Ua;
  28488. return d && d.pj(c, void 0) ? d : null
  28489. };
  28490. f.Ua.Cca = function(c, d) {
  28491. if (!c) throw "cc.Scale9Sprite.createWithSpriteFrameName(): spriteFrameName should be non-null";
  28492. var e = new f.Ua;
  28493. return e && e.hl(c, d) ? e : null
  28494. };
  28495. f.Ua.A6 = 0;
  28496. f.Ua.D6 = 1;
  28497. f.Ua.B6 = 2;
  28498. f.Ua.C6 = 3;
  28499. f.Ua.z6 = 4;
  28500. f.Ua.F6 = 5;
  28501. f.Ua.E6 = 6;
  28502. f.Ua.dna = 7;
  28503. f.vK = f.Me.extend({});
  28504. f.vK.T5a = function(c) {
  28505. var d = new f.vK;
  28506. d.j();
  28507. d.Ga(0, c);
  28508. return d
  28509. };
  28510. f.vK.ZWa = function(c) {
  28511. var d = new f.vK;
  28512. d.j();
  28513. d.Ga(c, 0);
  28514. return d
  28515. };
  28516. f.fK = f.Me.extend({
  28517. wb: !0,
  28518. Ea: null,
  28519. Ib: 0,
  28520. ta: "MenuPassive",
  28521. ctor: function() {},
  28522. $a: function() {
  28523. var c = this.Ea;
  28524. return f.color(c.r, c.g, c.b, c.a)
  28525. },
  28526. F: function(c) {
  28527. var d = this.Ea;
  28528. d.r = c.r;
  28529. d.g = c.g;
  28530. d.b = c.b;
  28531. if (this.i && 0 < this.i.length)
  28532. for (d = 0; d < this.i.length; d++) this.i[d] && this.i[d].wb && this.i[d].F(c);
  28533. void 0 === c.a || c.Yw || this.J(c.a)
  28534. },
  28535. vb: function() {
  28536. return this.Ib
  28537. },
  28538. J: function(c) {
  28539. this.Ib = c;
  28540. if (this.i && 0 < this.i.length)
  28541. for (var d = 0; d < this.i.length; d++) this.i[d] && this.i[d].wb && this.i[d].J(c);
  28542. this.Ea.a = c
  28543. },
  28544. NP: function(c, d) {
  28545. if (this.j()) {
  28546. var e =
  28547. f.Q.Y;
  28548. this.Gm(!0);
  28549. this.S(0.5, 0.5);
  28550. this.Ga(e);
  28551. this.o(e.width / 2, e.height / 2);
  28552. e = 0;
  28553. if (c) {
  28554. this.n(c, e);
  28555. for (var g = 0; g < d.length; g++) d[g] && (e++, this.n(d[g], e))
  28556. }
  28557. return !0
  28558. }
  28559. return !1
  28560. },
  28561. cwa: function() {
  28562. this.yZ(f.OJ)
  28563. },
  28564. yZ: function(c) {
  28565. var d = -c,
  28566. e;
  28567. if (this.i && 0 < this.i.length)
  28568. for (e = 0; e < this.i.length; e++) this.i[e] && (d += this.i[e].e().height * this.i[e].ra + c);
  28569. var g = 0,
  28570. h = d / 2;
  28571. if (this.i && 0 < this.i.length)
  28572. for (e = 0; e < this.i.length; e++) this.i[e] && (g = Math.max(g, this.i[e].e().width), this.i[e].o(0, h - this.i[e].e().height * this.i[e].ra / 2), h -=
  28573. this.i[e].e().height * this.i[e].ra + c);
  28574. this.Ga(g, d)
  28575. },
  28576. $va: function() {
  28577. this.xZ(f.OJ)
  28578. },
  28579. xZ: function(c) {
  28580. var d = -c,
  28581. e;
  28582. if (this.i && 0 < this.i.length)
  28583. for (e = 0; e < this.i.length; e++) this.i[e] && (d += this.i[e].e().width * this.i[e].ka + c);
  28584. var g = 0,
  28585. h = -d / 2;
  28586. if (this.i && 0 < this.i.length)
  28587. for (e = 0; e < this.i.length; e++) this.i[e] && (g = Math.max(g, this.i[e].e().height), this.i[e].o(h + this.i[e].e().width * this.i[e].ka / 2, 0), h += this.i[e].e().width * this.i[e].ka + c);
  28588. this.Ga(d, g)
  28589. },
  28590. awa: function(c) {
  28591. var d = [],
  28592. e;
  28593. for (e = 1; e < arguments.length; e++) d.push(arguments[e]);
  28594. var g = -5,
  28595. h = 0,
  28596. k = 0,
  28597. m = 0,
  28598. n, p;
  28599. if (this.i && 0 < this.i.length)
  28600. for (e = 0; e < this.i.length; e++) this.i[e] && (h >= d.length ? f.log("cc.MenuPassive.alignItemsInColumns(): invalid row index") : (n = d[h]) ? (p = this.i[e].e().height, k = 0 | (k >= p || null == p ? k : p), ++m, m >= n && (g += k + 5, k = m = 0, ++h)) : f.log("cc.MenuPassive.alignItemsInColumns(): can not have zero columns on a row"));
  28601. var s = f.Q.Y,
  28602. u = n = k = h = 0,
  28603. v = 0,
  28604. g = g / 2;
  28605. if (this.i && 0 < this.i.length)
  28606. for (e = 0; e < this.i.length; e++) this.i[e] && (0 == n && (n = d[h], v = u = s.width / (1 + n)), p = this.i[e].e().height, k = 0 | (k >=
  28607. p || null == p ? k : p), this.i[e].o(v - s.width / 2, g - this.i[e].e().height / 2), v += u, ++m, m >= n && (g -= k + 5, k = n = m = 0, ++h))
  28608. },
  28609. bwa: function(c) {
  28610. var d = [],
  28611. e;
  28612. for (e = 1; e < arguments.length; e++) d.push(arguments[e]);
  28613. var g = [],
  28614. h = [],
  28615. k = -10,
  28616. m = -5,
  28617. n = 0,
  28618. p = 0,
  28619. s = 0,
  28620. u, v;
  28621. if (this.i && 0 < this.i.length)
  28622. for (e = 0; e < this.i.length; e++) this.i[e] && (n >= d.length ? f.log("cc.MenuPassive.alignItemsInRows(): invalid row index") : (u = d[n]) ? (v = this.i[e].e().width, p = 0 | (p >= v || null == v ? p : v), m += 0 | this.i[e].e().height + 5, ++s, s >= u && (g.push(p), h.push(m), k += p + 10, p = s = 0, m = -5, ++n)) :
  28623. f.log("cc.MenuPassive.alignItemsInColumns(): can't have zero rows on a column"));
  28624. m = f.Q.Y;
  28625. p = n = 0;
  28626. u = null;
  28627. var k = -k / 2,
  28628. z = 0;
  28629. if (this.i && 0 < this.i.length)
  28630. for (e = 0; e < this.i.length; e++) this.i[e] && (null == u && (u = d[n], z = h[n]), v = this.i[e].e().width, p = 0 | (p >= v || null == v ? p : v), this.i[e].o(k + g[n] / 2, z - m.height / 2), z -= this.i[e].e().height + 10, ++s, s >= u && (k += p + 5, p = u = s = 0, ++n))
  28631. },
  28632. ee: function() {},
  28633. vg: function() {
  28634. return !1
  28635. }
  28636. });
  28637. f.fK.create = function(c) {
  28638. c || (c = null);
  28639. for (var d = [], e = 1; e < arguments.length; e++) d.push(arguments[e]);
  28640. return (e = new f.fK) && e.NP(c, d) ? e : null
  28641. };
  28642. f.fK.FQa = function(c) {
  28643. return f.fK.create(c, null)
  28644. };
  28645. f.NJ = f.Nc.extend({
  28646. $X: 0,
  28647. iL: 0,
  28648. Re: null,
  28649. wta: null,
  28650. cba: null,
  28651. mm: null,
  28652. me: null,
  28653. Ck: 0,
  28654. Fq: 0,
  28655. ta: "ControlSaturationBrightnessPicker",
  28656. fBa: function() {
  28657. return this.$X
  28658. },
  28659. Eza: function() {
  28660. return this.iL
  28661. },
  28662. sH: function() {
  28663. return this.Re
  28664. },
  28665. RAa: function() {
  28666. return this.iL
  28667. },
  28668. kBa: function() {
  28669. return this.cba
  28670. },
  28671. n0: function() {
  28672. return this.mm
  28673. },
  28674. p0: function() {
  28675. return this.me
  28676. },
  28677. K0: function(c, d) {
  28678. return f.Nc.prototype.j.call(this) ? (this.Re = f.Eh.$w("colourPickerBackground.png", c, d, r(0, 0)), this.wta = f.Eh.$w("colourPickerOverlay.png", c, d, r(0, 0)), this.cba =
  28679. f.Eh.$w("colourPickerShadow.png", c, d, r(0, 0)), this.mm = f.Eh.$w("colourPicker.png", c, d, r(0.5, 0.5)), this.me = d, this.Ck = 35, this.Fq = this.Re.e().width / 2, !0) : !1
  28680. },
  28681. Lb: function(c) {
  28682. f.Nc.prototype.Lb.call(this, c);
  28683. this.mm && this.mm.J(c ? 255 : 128)
  28684. },
  28685. Kia: function(c) {
  28686. var d = new f.TS;
  28687. d.ll = 1;
  28688. d.Vf = c.Vf;
  28689. d.ga = 1;
  28690. c = f.Eh.FT(d);
  28691. this.Re.F(f.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b))
  28692. },
  28693. $Ia: function(c) {
  28694. this.nO(r(this.me.x + this.Ck + this.Fq * (1 - c.ll), this.me.y + this.Ck + this.Fq * c.ga))
  28695. },
  28696. nO: function(c) {
  28697. var d = this.me.x + 0.5 * this.Re.Ee().width,
  28698. e = this.me.y +
  28699. 0.5 * this.Re.Ee().height,
  28700. g = c.x - d,
  28701. h = c.y - e,
  28702. k = Math.sqrt(g * g + h * h),
  28703. g = Math.atan2(h, g),
  28704. h = 0.5 * this.Re.Ee().width;
  28705. k > h && (c.x = d + h * Math.cos(g), c.y = e + h * Math.sin(g));
  28706. this.mm.o(c);
  28707. c.x < this.me.x + this.Ck ? c.x = this.me.x + this.Ck : c.x > this.me.x + this.Ck + this.Fq - 1 && (c.x = this.me.x + this.Ck + this.Fq - 1);
  28708. c.y < this.me.y + this.Ck ? c.y = this.me.y + this.Ck : c.y > this.me.y + this.Ck + this.Fq && (c.y = this.me.y + this.Ck + this.Fq);
  28709. this.$X = 1 - Math.abs((this.me.x + this.Ck - c.x) / this.Fq);
  28710. this.iL = Math.abs((this.me.y + this.Ck - c.y) / this.Fq)
  28711. },
  28712. SE: function(c) {
  28713. var d =
  28714. this.me.x + 0.5 * this.Re.Ee().width,
  28715. e = this.me.y + 0.5 * this.Re.Ee().height,
  28716. d = c.x - d,
  28717. e = c.y - e;
  28718. return Math.sqrt(d * d + e * e) <= 0.5 * this.Re.Ee().width ? (this.nO(c), this.Di(f.ro), !0) : !1
  28719. },
  28720. rc: function(c) {
  28721. if (!this.isEnabled() || !this.Na) return !1;
  28722. c = this.Dp(c);
  28723. return this.SE(c)
  28724. },
  28725. hd: function(c) {
  28726. c = this.Dp(c);
  28727. this.SE(c)
  28728. }
  28729. });
  28730. q = f.NJ.prototype;
  28731. f.d(q, "saturation", q.fBa);
  28732. f.d(q, "brightness", q.Eza);
  28733. f.d(q, "background", q.sH);
  28734. f.d(q, "overlay", q.RAa);
  28735. f.d(q, "shadow", q.kBa);
  28736. f.d(q, "slider", q.n0);
  28737. f.d(q, "startPos", q.p0);
  28738. q = null;
  28739. f.NJ.create = function(c, d) {
  28740. var e = new f.NJ;
  28741. e.K0(c, d);
  28742. return e
  28743. };
  28744. f.MJ = f.Nc.extend({
  28745. $z: 0,
  28746. EF: 0,
  28747. Re: null,
  28748. mm: null,
  28749. me: null,
  28750. ta: "ControlHuePicker",
  28751. dAa: function() {
  28752. return this.$z
  28753. },
  28754. kR: function(c) {
  28755. this.$z = c;
  28756. this.bha(this.$z / 360)
  28757. },
  28758. eAa: function() {
  28759. return this.EF
  28760. },
  28761. bha: function(c) {
  28762. this.EF = c;
  28763. this.$z = 360 * this.EF;
  28764. c = this.Re.Ee();
  28765. var d = 0.5 * c.width - 15,
  28766. e = f.sg(360 * this.EF - 180);
  28767. this.mm.o(this.me.x + 0.5 * c.width + d * Math.cos(e), this.me.y + 0.5 * c.height + d * Math.sin(e))
  28768. },
  28769. Lb: function(c) {
  28770. f.Nc.prototype.Lb.call(this, c);
  28771. this.mm && this.mm.J(c ? 255 : 128)
  28772. },
  28773. sH: function() {
  28774. return this.Re
  28775. },
  28776. n0: function() {
  28777. return this.mm
  28778. },
  28779. p0: function() {
  28780. return this.me
  28781. },
  28782. K0: function(c, d) {
  28783. return f.Nc.prototype.j.call(this) ? (this.Re = f.Eh.$w("huePickerBackground.png", c, d, r(0, 0)), this.mm = f.Eh.$w("colourPicker.png", c, d, r(0.5, 0.5)), this.mm.o(d.x, d.y + 0.5 * this.Re.Ee().height), this.me = d, this.EF = this.$z = 0, !0) : !1
  28784. },
  28785. nO: function(c) {
  28786. var d = this.Re.Ee();
  28787. this.kR(f.yC(Math.atan2(c.y - (this.me.y + 0.5 * d.height), c.x - (this.me.x + 0.5 * d.width))) + 180);
  28788. this.Di(f.ro)
  28789. },
  28790. SE: function(c) {
  28791. var d = Math.sqrt(Math.pow(c.x + 10, 2) + Math.pow(c.y, 2));
  28792. return 80 > d && 59 < d ? (this.nO(c), !0) : !1
  28793. },
  28794. rc: function(c) {
  28795. if (!this.isEnabled() || !this.Na) return !1;
  28796. c = this.Dp(c);
  28797. return this.SE(c)
  28798. },
  28799. hd: function(c) {
  28800. c = this.Dp(c);
  28801. this.SE(c)
  28802. }
  28803. });
  28804. q = f.MJ.prototype;
  28805. f.d(q, "hue", q.dAa, q.kR);
  28806. f.d(q, "huePercent", q.eAa, q.bha);
  28807. f.d(q, "background", q.sH);
  28808. f.d(q, "slider", q.n0);
  28809. f.d(q, "startPos", q.p0);
  28810. q = null;
  28811. f.MJ.create = function(c, d) {
  28812. var e = new f.MJ;
  28813. e.K0(c, d);
  28814. return e
  28815. };
  28816. f.xS = f.Nc.extend({
  28817. Zl: null,
  28818. Xs: null,
  28819. Sv: null,
  28820. Re: null,
  28821. ta: "ControlColourPicker",
  28822. cCa: function(c) {
  28823. this.Zl.Vf = c.$z;
  28824. c = f.Eh.FT(this.Zl);
  28825. f.Nc.prototype.F.call(this, f.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b));
  28826. this.Di(f.ro);
  28827. this.uva()
  28828. },
  28829. Zwa: function(c) {
  28830. this.Zl.ll = c.$X;
  28831. this.Zl.ga = c.iL;
  28832. c = f.Eh.FT(this.Zl);
  28833. f.Nc.prototype.F.call(this, f.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b));
  28834. this.Di(f.ro)
  28835. },
  28836. F: function(c) {
  28837. f.Nc.prototype.F.call(this, c);
  28838. var d = new Ea;
  28839. d.r = c.r / 255;
  28840. d.g = c.g / 255;
  28841. d.b = c.b / 255;
  28842. d.a = 1;
  28843. this.Zl = f.Eh.Nla(d);
  28844. this.Dba()
  28845. },
  28846. sH: function() {
  28847. return this.Re
  28848. },
  28849. j: function() {
  28850. if (f.Nc.prototype.j.call(this)) {
  28851. f.Je.vp(Ha.f4);
  28852. var c = f.Fh.create(Ha.g4);
  28853. this.n(c);
  28854. this.Zl = new f.TS(0, 0, 0);
  28855. this.Re = f.Eh.$w("menuColourPanelBackground.png", c, r(0, 0), r(0.5, 0.5));
  28856. var d = f.gc(this.Re.Od(), r(this.Re.e().width / 2, this.Re.e().height / 2));
  28857. this.Sv = f.MJ.create(c, r(d.x + 8, d.y + 8));
  28858. this.Xs = f.NJ.create(c, r(d.x + 28, d.y + 28));
  28859. this.Sv.VG(this, this.cCa, f.ro);
  28860. this.Xs.VG(this, this.Zwa, f.ro);
  28861. this.Dba();
  28862. this.n(this.Sv);
  28863. this.n(this.Xs);
  28864. this.Ga(this.Re.e());
  28865. return !0
  28866. }
  28867. return !1
  28868. },
  28869. uva: function() {
  28870. this.Sv.kR(this.Zl.Vf);
  28871. this.Xs.Kia(this.Zl)
  28872. },
  28873. Dba: function() {
  28874. this.Sv.kR(this.Zl.Vf);
  28875. this.Xs.Kia(this.Zl);
  28876. this.Xs.$Ia(this.Zl)
  28877. },
  28878. Lb: function(c) {
  28879. f.Nc.prototype.Lb.call(this, c);
  28880. null != this.Sv && this.Sv.Lb(c);
  28881. this.Xs && this.Xs.Lb(c)
  28882. },
  28883. rc: function() {
  28884. return !1
  28885. }
  28886. });
  28887. q = f.xS.prototype;
  28888. f.d(q, "background", q.sH);
  28889. q = null;
  28890. f.xS.create = function() {
  28891. var c = new f.xS;
  28892. c.j();
  28893. return c
  28894. };
  28895. var Ha = Ha || {};
  28896. Ha.f4 = Ha.f4 || "res/extensions/CCControlColourPickerSpriteSheet.plist";
  28897. Ha.g4 = Ha.g4 || "res/extensions/CCControlColourPickerSpriteSheet.png";
  28898. f.f7 = 24;
  28899. f.xMa = 8;
  28900. f.zS = f.Nc.extend({
  28901. Kd: 0,
  28902. Ub: 0,
  28903. tc: 0,
  28904. QM: 0,
  28905. OM: 0,
  28906. yc: null,
  28907. Ft: null,
  28908. Ih: null,
  28909. ta: "ControlSlider",
  28910. Uf: function() {
  28911. return this.Kd
  28912. },
  28913. ue: function(c) {
  28914. c = Math.max(c, this.Ub);
  28915. this.Kd = c = Math.min(c, this.tc);
  28916. this.Xf();
  28917. this.Di(f.ro)
  28918. },
  28919. yH: function() {
  28920. return this.Ub
  28921. },
  28922. SI: function(c) {
  28923. this.QM = this.Ub = c;
  28924. this.Ub >= this.tc && (this.tc = this.Ub + 1);
  28925. this.ue(this.Kd)
  28926. },
  28927. xH: function() {
  28928. return this.tc
  28929. },
  28930. RI: function(c) {
  28931. this.OM = this.tc = c;
  28932. this.tc <= this.Ub && (this.Ub = this.tc - 1);
  28933. this.ue(this.Kd)
  28934. },
  28935. Yn: function(c) {
  28936. c = c.cf();
  28937. c = this.getParent().yi(c);
  28938. var d =
  28939. this.Ee();
  28940. d.width += this.yc.e().width;
  28941. d.x -= this.yc.e().width / 2;
  28942. return f.Bu(d, c)
  28943. },
  28944. Jx: function(c) {
  28945. c = c.cf();
  28946. c = this.yi(c);
  28947. 0 > c.x ? c.x = 0 : c.x > this.Ih.e().width && (c.x = this.Ih.e().width);
  28948. return c
  28949. },
  28950. DAa: function() {
  28951. return this.QM
  28952. },
  28953. iHa: function(c) {
  28954. this.QM = c
  28955. },
  28956. BAa: function() {
  28957. return this.OM
  28958. },
  28959. gHa: function(c) {
  28960. this.OM = c
  28961. },
  28962. FH: function() {
  28963. return this.yc
  28964. },
  28965. XAa: function() {
  28966. return this.Ft
  28967. },
  28968. zza: function() {
  28969. return this.Ih
  28970. },
  28971. BCa: function(c, d, e) {
  28972. return f.Nc.prototype.j.call(this) ? (this.Gm(!1), this.Ih = c, this.Ft = d, this.yc = e, c = f.Eh.h4(c.Ee(),
  28973. e.Ee()), this.Ga(c.width, c.height), this.Ih.S(0.5, 0.5), this.Ih.o(c.width / 2, c.height / 2), this.n(this.Ih), this.Ft.S(0, 0.5), this.Ft.o(0, c.height / 2), this.n(this.Ft), this.yc.o(0, c.height / 2), this.n(this.yc), this.Ub = 0, this.tc = 1, this.ue(this.Ub), !0) : !1
  28974. },
  28975. Lb: function(c) {
  28976. f.Nc.prototype.Lb.call(this, c);
  28977. this.yc && this.yc.J(c ? 255 : 128)
  28978. },
  28979. eIa: function(c) {
  28980. this.Nu(!0);
  28981. this.yc.F(f.color.GRAY);
  28982. this.ue(this.G3(c))
  28983. },
  28984. gIa: function(c) {
  28985. this.ue(this.G3(c))
  28986. },
  28987. fIa: function() {
  28988. this.WP() && this.ue(this.G3(this.yc.Od()));
  28989. this.yc.F(f.color.WHITE);
  28990. this.Nu(!1)
  28991. },
  28992. xWa: function(c) {
  28993. c = c.cf();
  28994. c = this.yi(c);
  28995. 0 > c.x ? c.x = 0 : c.x > this.Ih.e().width + f.f7 && (c.x = this.Ih.e().width + f.f7);
  28996. return c
  28997. },
  28998. rc: function(c) {
  28999. if (!this.Yn(c) || !this.isEnabled() || !this.Na) return !1;
  29000. c = this.Jx(c);
  29001. this.eIa(c);
  29002. return !0
  29003. },
  29004. hd: function(c) {
  29005. c = this.Jx(c);
  29006. this.gIa(c)
  29007. },
  29008. gd: function() {
  29009. this.fIa(r(0, 0))
  29010. },
  29011. Xf: function() {
  29012. this.yc.ls((this.Kd - this.Ub) / (this.tc - this.Ub) * this.Ih.e().width);
  29013. var c = this.Ft.EH(),
  29014. c = x(c.x, c.y, this.yc.Vc(), c.height);
  29015. this.Ft.sc(c, this.Ft.pf)
  29016. },
  29017. G3: function(c) {
  29018. c = c.x / this.Ih.e().width;
  29019. return Math.max(Math.min(this.Ub + c * (this.tc - this.Ub), this.OM), this.QM)
  29020. }
  29021. });
  29022. q = f.zS.prototype;
  29023. f.d(q, "value", q.Uf, q.ue);
  29024. f.d(q, "minValue", q.yH, q.SI);
  29025. f.d(q, "maxValue", q.xH, q.RI);
  29026. f.d(q, "minAllowedValue", q.DAa, q.iHa);
  29027. f.d(q, "maxAllowedValue", q.BAa, q.gHa);
  29028. f.d(q, "thumbSprite", q.FH);
  29029. f.d(q, "progressSprite", q.XAa);
  29030. f.d(q, "backgroundSprite", q.zza);
  29031. q = null;
  29032. f.zS.create = function(c, d, e) {
  29033. "string" == typeof c && (c = f.q.create(c), d = f.q.create(d), e = f.q.create(e));
  29034. var g = new f.zS;
  29035. g.BCa(c, d, e);
  29036. return g
  29037. };
  29038. f.R4 = f.Nc.extend({
  29039. Mf: null,
  29040. A$: 0,
  29041. OF: !1,
  29042. tA: !1,
  29043. ta: "ControlSwitch",
  29044. ctor: function() {
  29045. f.Nc.prototype.ctor.call(this)
  29046. },
  29047. G0: function(c, d, e, g, h, k) {
  29048. if (!c) throw "cc.ControlSwitch.initWithMaskSprite(): maskSprite should be non-null.";
  29049. if (!d) throw "cc.ControlSwitch.initWithMaskSprite(): onSprite should be non-null.";
  29050. if (!e) throw "cc.ControlSwitch.initWithMaskSprite(): offSprite should be non-null.";
  29051. if (!g) throw "cc.ControlSwitch.initWithMaskSprite(): thumbSprite should be non-null.";
  29052. return this.j() ? (this.tA = !0, this.Mf =
  29053. new f.S4, this.Mf.G0(c, d, e, g, h, k), this.Mf.o(this.Mf.e().width / 2, this.Mf.e().height / 2), this.n(this.Mf), this.Gm(!1), this.S(0.5, 0.5), this.Ga(this.Mf.e()), !0) : !1
  29054. },
  29055. oR: function(c, d) {
  29056. var e = (this.tA = c) ? this.Mf.At : this.Mf.kw;
  29057. d ? this.Mf.V(f.Xu.create(0.2, "sliderXPosition", this.Mf.or, e)) : this.Mf.wR(e);
  29058. this.Di(f.ro)
  29059. },
  29060. NXa: function() {
  29061. return this.tA
  29062. },
  29063. XWa: function() {
  29064. return this.OF
  29065. },
  29066. Lb: function(c) {
  29067. this.$c = c;
  29068. this.Mf.J(c ? 255 : 128)
  29069. },
  29070. Jx: function(c) {
  29071. c = c.cf();
  29072. return c = this.yi(c)
  29073. },
  29074. rc: function(c) {
  29075. if (!this.Yn(c) || !this.isEnabled() ||
  29076. !this.Na) return !1;
  29077. this.OF = !1;
  29078. this.A$ = this.Jx(c).x - this.Mf.or;
  29079. this.Mf.yc.F(f.color.GRAY);
  29080. this.Mf.Xf();
  29081. return !0
  29082. },
  29083. hd: function(c) {
  29084. c = this.Jx(c);
  29085. c = r(c.x - this.A$, 0);
  29086. this.OF = !0;
  29087. this.Mf.wR(c.x)
  29088. },
  29089. gd: function(c) {
  29090. c = this.Jx(c);
  29091. this.Mf.yc.F(f.color.WHITE);
  29092. this.OF ? this.oR(!(c.x < this.Mf.e().width / 2), !0) : this.oR(!this.tA, !0)
  29093. },
  29094. ef: function(c) {
  29095. c = this.Jx(c);
  29096. this.Mf.yc.F(f.color.WHITE);
  29097. this.OF ? this.oR(!(c.x < this.Mf.e().width / 2), !0) : this.oR(!this.tA, !0)
  29098. }
  29099. });
  29100. f.R4.create = function(c, d, e, g, h, k) {
  29101. var m = new f.R4;
  29102. return m && m.G0(c, d, e, g, h, k) ? m : null
  29103. };
  29104. f.S4 = f.q.extend({
  29105. or: 0,
  29106. At: 0,
  29107. kw: 0,
  29108. pba: 0,
  29109. ZW: 0,
  29110. $W: null,
  29111. un: null,
  29112. fr: null,
  29113. yc: null,
  29114. VF: null,
  29115. TF: null,
  29116. xz: null,
  29117. Wd: null,
  29118. L8: null,
  29119. ctor: function() {
  29120. f.q.prototype.ctor.call(this);
  29121. this.ZW = this.kw = this.At = this.or = 0;
  29122. this.$W = t(0, 0);
  29123. this.TF = this.VF = this.yc = this.fr = this.un = null
  29124. },
  29125. G0: function(c, d, e, g, h, k) {
  29126. return f.q.prototype.va.call(this, c.sb()) ? (this.At = 0, this.kw = -d.e().width + g.e().width / 2, this.or = this.At, this.rha(d), this.pha(e), this.$I(g), this.qha(h), this.oha(k), this.Wd = c, c = this.$W = this.Wd.e(), this.Wd.o(0, 0), this.xz = f.Wc.create(),
  29127. this.xz.S(0.5, 0.5), this.xz.o(c.width / 2, c.height / 2), this.xz.yR(this.Wd), this.L8 = f.nv.create(c.width, c.height), this.xz.n(this.L8.o0()), this.n(this.xz), this.n(this.yc), this.Xf(), !0) : !1
  29128. },
  29129. Xf: function() {
  29130. this.un.o(this.un.e().width / 2 + this.or, this.un.e().height / 2);
  29131. this.fr.o(this.un.e().width + this.fr.e().width / 2 + this.or, this.fr.e().height / 2);
  29132. this.VF && this.VF.o(this.un.Vc() - this.yc.e().width / 6, this.un.e().height / 2);
  29133. this.TF && this.TF.o(this.fr.Vc() + this.yc.e().width / 6, this.fr.e().height / 2);
  29134. this.yc.o(this.un.e().width +
  29135. this.or, this.$W.height / 2)
  29136. },
  29137. wR: function(c) {
  29138. c <= this.kw ? c = this.kw : c >= this.At && (c = this.At);
  29139. this.or = c;
  29140. this.Xf()
  29141. },
  29142. nBa: function() {
  29143. return this.or
  29144. },
  29145. Xra: function() {
  29146. return this.un.e().width
  29147. },
  29148. Ura: function() {
  29149. return this.fr.e().height
  29150. },
  29151. D3: function(c, d) {
  29152. f.log("key \x3d " + d + ", value \x3d " + c);
  29153. this.wR(c)
  29154. },
  29155. pHa: function(c) {
  29156. this.At = c
  29157. },
  29158. OAa: function() {
  29159. return this.At
  29160. },
  29161. oHa: function(c) {
  29162. this.kw = c
  29163. },
  29164. LAa: function() {
  29165. return this.kw
  29166. },
  29167. dHa: function(c) {
  29168. this.Wd.ab(c)
  29169. },
  29170. xAa: function() {
  29171. return this.Wd.sb()
  29172. },
  29173. u4a: function(c) {
  29174. this.pba = c
  29175. },
  29176. jWa: function() {
  29177. return this.pba
  29178. },
  29179. cHa: function(c) {
  29180. this.ZW = c
  29181. },
  29182. wAa: function() {
  29183. return this.ZW
  29184. },
  29185. rha: function(c) {
  29186. this.un = c
  29187. },
  29188. PAa: function() {
  29189. return this.un
  29190. },
  29191. pha: function(c) {
  29192. this.fr = c
  29193. },
  29194. MAa: function() {
  29195. return this.fr
  29196. },
  29197. $I: function(c) {
  29198. this.yc = c
  29199. },
  29200. FH: function() {
  29201. return this.yc
  29202. },
  29203. qha: function(c) {
  29204. this.VF = c
  29205. },
  29206. NAa: function() {
  29207. return this.VF
  29208. },
  29209. oha: function(c) {
  29210. this.TF = c
  29211. },
  29212. KAa: function() {
  29213. return this.TF
  29214. }
  29215. });
  29216. q = f.S4.prototype;
  29217. f.d(q, "sliderX", q.nBa, q.wR);
  29218. f.d(q, "onPos", q.OAa, q.pHa);
  29219. f.d(q, "offPos", q.LAa, q.oHa);
  29220. f.d(q, "maskTexture", q.xAa, q.dHa);
  29221. f.d(q, "maskPos", q.wAa, q.cHa);
  29222. f.d(q, "onSprite", q.PAa, q.rha);
  29223. f.d(q, "offSprite", q.MAa, q.pha);
  29224. f.d(q, "thumbSprite", q.FH, q.$I);
  29225. f.d(q, "onLabel", q.NAa, q.qha);
  29226. f.d(q, "offLabel", q.KAa, q.oha);
  29227. f.d(q, "onSideWidth", q.Xra);
  29228. f.d(q, "offSideWidth", q.Ura);
  29229. q = null;
  29230. f.I4 = 0;
  29231. f.J4 = 1;
  29232. f.GJ = 2;
  29233. f.qD = f.color(55, 55, 55);
  29234. f.uS = f.color(147, 147, 147);
  29235. f.H4 = "CourierNewPSMT";
  29236. f.L3 = 0.15;
  29237. f.Via = 12;
  29238. f.AS = f.Nc.extend({
  29239. ih: null,
  29240. Xi: null,
  29241. wt: null,
  29242. Dt: null,
  29243. Kd: 0,
  29244. $E: !1,
  29245. fz: !1,
  29246. eu: !1,
  29247. Ub: 0,
  29248. tc: 0,
  29249. Qt: 0,
  29250. GG: !1,
  29251. Qw: f.GJ,
  29252. JE: 0,
  29253. ta: "ControlStepper",
  29254. ctor: function() {
  29255. f.Nc.prototype.ctor.call(this);
  29256. this.Dt = this.wt = this.Xi = this.ih = null;
  29257. this.Kd = 0;
  29258. this.eu = this.fz = this.$E = !1;
  29259. this.Qt = this.tc = this.Ub = 0;
  29260. this.GG = !1;
  29261. this.Qw = f.GJ;
  29262. this.JE = 0
  29263. },
  29264. vCa: function(c, d) {
  29265. if (!c) throw "cc.ControlStepper.initWithMinusSpriteAndPlusSprite(): Minus sprite should be non-null.";
  29266. if (!d) throw "cc.ControlStepper.initWithMinusSpriteAndPlusSprite(): Plus sprite should be non-null.";
  29267. if (this.j()) {
  29268. this.$E = this.fz = !0;
  29269. this.Ub = 0;
  29270. this.tc = 100;
  29271. this.Kd = 0;
  29272. this.Qt = 1;
  29273. this.eu = !1;
  29274. this.Gm(!1);
  29275. this.lha(c);
  29276. this.ih.o(c.e().width / 2, c.e().height / 2);
  29277. this.n(this.ih);
  29278. this.kha(f.ia.create("-", f.H4, 40, t(40, 40), f.Bo, f.wU));
  29279. this.wt.F(f.uS);
  29280. this.wt.o(this.ih.e().width / 2, this.ih.e().height / 2);
  29281. this.ih.n(this.wt);
  29282. this.vha(d);
  29283. this.Xi.o(c.e().width + d.e().width / 2, c.e().height / 2);
  29284. this.n(this.Xi);
  29285. this.uha(f.ia.create("+", f.H4, 40, t(40, 40), f.Bo, f.wU));
  29286. this.Dt.F(f.qD);
  29287. this.Dt.o(this.Xi.e().width / 2, this.Xi.e().height /
  29288. 2);
  29289. this.Xi.n(this.Dt);
  29290. var e = f.Eh.h4(this.ih.Ee(), this.Xi.Ee());
  29291. this.Ga(this.ih.e().width + this.Xi.e().height, e.height);
  29292. return !0
  29293. }
  29294. return !1
  29295. },
  29296. $Ha: function(c) {
  29297. if (this.eu = c) this.wt.F(f.qD), this.Dt.F(f.qD);
  29298. this.ue(this.Kd)
  29299. },
  29300. SBa: function() {
  29301. return this.eu
  29302. },
  29303. SI: function(c) {
  29304. if (c >= this.tc) throw "cc.ControlStepper.setMinimumValue(): minimumValue should be numerically less than maximumValue.";
  29305. this.Ub = c;
  29306. this.ue(this.Kd)
  29307. },
  29308. yH: function() {
  29309. return this.Ub
  29310. },
  29311. RI: function(c) {
  29312. if (c <= this.Ub) throw "cc.ControlStepper.setMaximumValue(): maximumValue should be numerically less than maximumValue.";
  29313. this.tc = c;
  29314. this.ue(this.Kd)
  29315. },
  29316. xH: function() {
  29317. return this.tc
  29318. },
  29319. ue: function(c) {
  29320. this.b3(c, !0)
  29321. },
  29322. Uf: function() {
  29323. return this.Kd
  29324. },
  29325. OHa: function(c) {
  29326. if (0 >= c) throw "cc.ControlStepper.setMaximumValue(): stepValue should be numerically greater than 0.";
  29327. this.Qt = c
  29328. },
  29329. tBa: function() {
  29330. return this.Qt
  29331. },
  29332. VCa: function() {
  29333. return this.$E
  29334. },
  29335. b3: function(c, d) {
  29336. c < this.Ub ? c = this.eu ? this.tc : this.Ub : c > this.tc && (c = this.eu ? this.Ub : this.tc);
  29337. this.Kd = c;
  29338. this.eu || (this.wt.F(c == this.Ub ? f.uS : f.qD), this.Dt.F(c == this.tc ? f.uS : f.qD));
  29339. d && this.Di(f.ro)
  29340. },
  29341. mia: function() {
  29342. this.JE = -1;
  29343. this.Ux(this.update, f.L3, f.mv, 3 * f.L3)
  29344. },
  29345. oia: function() {
  29346. this.Tu(this.update)
  29347. },
  29348. update: function() {
  29349. this.JE++;
  29350. this.JE < f.Via && 0 != this.JE % 3 || (this.Qw == f.I4 ? this.b3(this.Kd - this.Qt, this.$E) : this.Qw == f.J4 && this.b3(this.Kd + this.Qt, this.$E))
  29351. },
  29352. Fia: function(c) {
  29353. c.x < this.ih.e().width && this.Kd > this.Ub ? (this.Qw = f.I4, this.ih.F(f.color.GRAY), this.Xi.F(f.color.WHITE)) : c.x >= this.ih.e().width && this.Kd < this.tc ? (this.Qw = f.J4, this.ih.F(f.color.WHITE), this.Xi.F(f.color.GRAY)) : (this.Qw = f.GJ, this.ih.F(f.color.WHITE),
  29354. this.Xi.F(f.color.WHITE))
  29355. },
  29356. rc: function(c) {
  29357. if (!this.Yn(c) || !this.isEnabled() || !this.Na) return !1;
  29358. c = this.Dp(c);
  29359. this.Fia(c);
  29360. this.GG = !0;
  29361. this.fz && this.mia();
  29362. return !0
  29363. },
  29364. hd: function(c) {
  29365. this.Yn(c) ? (c = this.Dp(c), this.Fia(c), this.GG || (this.GG = !0, this.fz && this.mia())) : (this.GG = !1, this.Qw = f.GJ, this.ih.F(f.color.WHITE), this.Xi.F(f.color.WHITE), this.fz && this.oia())
  29366. },
  29367. gd: function(c) {
  29368. this.ih.F(f.color.WHITE);
  29369. this.Xi.F(f.color.WHITE);
  29370. this.fz && this.oia();
  29371. this.Yn(c) && (c = this.Dp(c), this.ue(this.Kd + (c.x < this.ih.e().width ?
  29372. 0 - this.Qt : this.Qt)))
  29373. },
  29374. lha: function(c) {
  29375. this.ih = c
  29376. },
  29377. FAa: function() {
  29378. return this.ih
  29379. },
  29380. vha: function(c) {
  29381. this.Xi = c
  29382. },
  29383. UAa: function() {
  29384. return this.Xi
  29385. },
  29386. kha: function(c) {
  29387. this.wt = c
  29388. },
  29389. EAa: function() {
  29390. return this.wt
  29391. },
  29392. uha: function(c) {
  29393. this.Dt = c
  29394. },
  29395. TAa: function() {
  29396. return this.Dt
  29397. }
  29398. });
  29399. q = f.AS.prototype;
  29400. f.d(q, "wraps", q.SBa, q.$Ha);
  29401. f.d(q, "value", q.Uf, q.ue);
  29402. f.d(q, "minValue", q.yH, q.SI);
  29403. f.d(q, "maxValue", q.xH, q.RI);
  29404. f.d(q, "stepValue", q.tBa, q.OHa);
  29405. f.d(q, "continuous", q.VCa);
  29406. f.d(q, "minusSprite", q.FAa, q.lha);
  29407. f.d(q, "plusSprite", q.UAa, q.vha);
  29408. f.d(q, "minusLabel", q.EAa, q.kha);
  29409. f.d(q, "plusLabel", q.TAa, q.uha);
  29410. q = null;
  29411. f.AS.create = function(c, d) {
  29412. var e = new f.AS;
  29413. return e && e.vCa(c, d) ? e : null
  29414. };
  29415. f.yS = f.Nc.extend({
  29416. yc: null,
  29417. FA: null,
  29418. DA: null,
  29419. Kd: 0,
  29420. Ub: 0,
  29421. tc: 1,
  29422. ta: "ControlPotentiometer",
  29423. GCa: function(c, d, e) {
  29424. return this.j() ? (this.xha(d), this.$I(e), this.yc.o(d.Od()), this.n(e, 2), this.n(d, 1), this.n(c), this.Ga(c.e()), this.Ub = 0, this.tc = 1, this.ue(this.Ub), !0) : !1
  29425. },
  29426. Lb: function(c) {
  29427. this.Lb(c);
  29428. this.yc != NULL && this.yc.J(c ? 255 : 128)
  29429. },
  29430. ue: function(c) {
  29431. c < this.Ub && (c = this.Ub);
  29432. c > this.tc && (c = this.tc);
  29433. this.Kd = c;
  29434. c = (c - this.Ub) / (this.tc - this.Ub);
  29435. this.FA.tha(100 * c);
  29436. this.yc.yh(360 * c);
  29437. this.Di(f.ro)
  29438. },
  29439. Uf: function() {
  29440. return this.Kd
  29441. },
  29442. SI: function(c) {
  29443. this.Ub = c;
  29444. this.Ub >= this.tc && (this.tc = this.Ub + 1);
  29445. this.ue(this.tc)
  29446. },
  29447. yH: function() {
  29448. return this.Ub
  29449. },
  29450. RI: function(c) {
  29451. this.tc = c;
  29452. this.tc <= this.Ub && (this.Ub = this.tc - 1);
  29453. this.ue(this.Ub)
  29454. },
  29455. xH: function() {
  29456. return this.tc
  29457. },
  29458. Yn: function(c) {
  29459. c = this.Dp(c);
  29460. return this.Xxa(this.FA.Od(), c) < Math.min(this.e().width / 2, this.e().height / 2)
  29461. },
  29462. rc: function(c) {
  29463. if (!this.Yn(c) || !this.isEnabled() || !this.Na) return !1;
  29464. this.DA = this.Dp(c);
  29465. this.hFa(this.DA);
  29466. return !0
  29467. },
  29468. hd: function(c) {
  29469. c = this.Dp(c);
  29470. this.jFa(c)
  29471. },
  29472. gd: function() {
  29473. this.iFa(r(0,
  29474. 0))
  29475. },
  29476. Xxa: function(c, d) {
  29477. var e = c.x - d.x,
  29478. g = c.y - d.y;
  29479. return Math.sqrt(e * e + g * g)
  29480. },
  29481. dwa: function(c, d, e, g) {
  29482. return 180 * (Math.atan2(d.x - c.x, d.y - c.y) - Math.atan2(g.x - e.x, g.y - e.y)) / Math.PI
  29483. },
  29484. hFa: function() {
  29485. this.Nu(!0);
  29486. this.yc.F(f.color.GRAY)
  29487. },
  29488. jFa: function(c) {
  29489. var d = this.dwa(this.FA.Od(), c, this.FA.Od(), this.DA);
  29490. 180 < d ? d -= 360 : -180 > d && (d += 360);
  29491. this.ue(this.Kd + d / 360 * (this.tc - this.Ub));
  29492. this.DA = c
  29493. },
  29494. iFa: function() {
  29495. this.yc.F(f.color.WHITE);
  29496. this.Nu(!1)
  29497. },
  29498. $I: function(c) {
  29499. this.yc = c
  29500. },
  29501. FH: function() {
  29502. return this.yc
  29503. },
  29504. xha: function(c) {
  29505. this.FA =
  29506. c
  29507. },
  29508. YAa: function() {
  29509. return this.FA
  29510. },
  29511. xHa: function(c) {
  29512. this.DA = c
  29513. },
  29514. qP: function() {
  29515. return this.DA
  29516. }
  29517. });
  29518. q = f.yS.prototype;
  29519. f.d(q, "value", q.Uf, q.ue);
  29520. f.d(q, "minValue", q.yH, q.SI);
  29521. f.d(q, "maxValue", q.xH, q.RI);
  29522. f.d(q, "progressTimer", q.YAa, q.xha);
  29523. f.d(q, "thumbSprite", q.FH, q.$I);
  29524. f.d(q, "prevLocation", q.qP, q.xHa);
  29525. q = null;
  29526. f.yS.create = function(c, d, e) {
  29527. var g = new f.yS;
  29528. return g && (c = f.q.create(c), e = f.q.create(e), d = f.bc.create(f.q.create(d)), g.GCa(c, d, e)) ? g : null
  29529. };
  29530. f.b7 = -1;
  29531. f.Sy = 0;
  29532. f.rK = 1;
  29533. f.qK = 2;
  29534. f.exa = function(c) {
  29535. var d = f.view;
  29536. return (d.ka + d.ra) / 2 * c / 160
  29537. };
  29538. f.Yna = f.N.extend({
  29539. jGa: function() {},
  29540. kGa: function() {}
  29541. });
  29542. f.Nl = f.Me.extend({
  29543. gPa: 0,
  29544. COa: 0,
  29545. AOa: 0,
  29546. Pq: null,
  29547. Oh: f.qK,
  29548. en: !1,
  29549. Sqa: null,
  29550. Va: null,
  29551. rm: !1,
  29552. NM: null,
  29553. PM: null,
  29554. ME: !1,
  29555. VE: !1,
  29556. jG: null,
  29557. dB: null,
  29558. HG: 0,
  29559. Of: null,
  29560. Mn: null,
  29561. baa: 0,
  29562. aaa: 0,
  29563. XF: null,
  29564. aY: !1,
  29565. rba: null,
  29566. vi: null,
  29567. ta: "ScrollView",
  29568. ctor: function() {
  29569. f.Me.prototype.ctor.call(this);
  29570. this.Sqa = r(0, 0);
  29571. this.NM = r(0, 0);
  29572. this.PM = r(0, 0);
  29573. this.jG = r(0, 0);
  29574. this.dB = r(0, 0);
  29575. this.Of = [];
  29576. this.Mn = t(0, 0);
  29577. this.XF = new f.Qy(0, 0, 0, 0);
  29578. this.rba = new f.Qy(0, 0, 0, 0)
  29579. },
  29580. j: function() {
  29581. return this.TH(t(200, 200), null)
  29582. },
  29583. TH: function(c, d) {
  29584. var e = r(0, 0);
  29585. return f.Me.prototype.j.call(this) ?
  29586. (this.Va = d, this.Va || (this.Va = f.Me.create(), this.Va.Gm(!1), this.Va.S(e)), this.FR(c), this.Om(!0), this.Of.length = 0, this.Pq = null, this.VE = this.ME = !0, this.Oh = f.qK, this.Va.o(e), this.HG = 0, this.n(this.Va), this.baa = this.aaa = 1, !0) : !1
  29587. },
  29588. EC: function(c, d) {
  29589. if (d) this.JGa(c, 0.15);
  29590. else {
  29591. if (!this.ME) {
  29592. var e = this.Vr(),
  29593. g = this.xu();
  29594. c.x = Math.max(e.x, Math.min(g.x, c.x));
  29595. c.y = Math.max(e.y, Math.min(g.y, c.y))
  29596. }
  29597. this.Va.o(c)
  29598. }
  29599. },
  29600. Jza: function() {
  29601. var c = this.Va.Od();
  29602. return r(c.x, c.y)
  29603. },
  29604. JGa: function(c, d) {
  29605. var e = f.Dc.create(d, c),
  29606. g = f.ua.create(this.gva,
  29607. this);
  29608. this.Va.V(f.X.create(e, g));
  29609. this.Ux(this.uX)
  29610. },
  29611. aia: function(c, d) {
  29612. if (d) this.aIa(c, 0.15);
  29613. else {
  29614. var e = this.Va;
  29615. if (e.AH() != c) {
  29616. var g, h;
  29617. 0 == this.HG ? (h = this.Mn, h = r(0.5 * h.width, 0.5 * h.height), h = this.um(h)) : h = this.dB;
  29618. g = e.yi(h);
  29619. e.ib(Math.max(this.baa, Math.min(this.aaa, c)));
  29620. g = e.um(g);
  29621. this.EC(f.Tp(e.Od(), f.gc(h, g)))
  29622. }
  29623. }
  29624. },
  29625. hea: function() {
  29626. return this.Va.AH()
  29627. },
  29628. aIa: function(c, d) {
  29629. if (0 < d) {
  29630. var e = this.Va.AH();
  29631. e != c && (e = f.Xu.create(d, "zoomScale", e, c), this.V(e))
  29632. } else this.aia(c)
  29633. },
  29634. Vr: function() {
  29635. var c = this.Va,
  29636. d = c.e(),
  29637. e = this.Mn;
  29638. return r(e.width - d.width * c.ka, e.height - d.height * c.ra)
  29639. },
  29640. xu: function() {
  29641. return r(0, 0)
  29642. },
  29643. MXa: function(c) {
  29644. var d = this.Jza(),
  29645. e = this.Mn,
  29646. g = this.hea();
  29647. return f.BFa(x(-d.x / g, -d.y / g, e.width / g, e.height / g), c.Ee())
  29648. },
  29649. pause: function() {
  29650. this.Va.pause();
  29651. for (var c = this.Va.re(), d = 0; d < c.length; d++) c[d].pause();
  29652. this._super()
  29653. },
  29654. lk: function() {
  29655. for (var c = this.Va.re(), d = 0, e = c.length; d < e; d++) c[d].lk();
  29656. this.Va.lk();
  29657. this._super()
  29658. },
  29659. BXa: function() {
  29660. return this.en
  29661. },
  29662. $Xa: function() {
  29663. return this.rm
  29664. },
  29665. QCa: function() {
  29666. return this.ME
  29667. },
  29668. Hga: function(c) {
  29669. this.ME =
  29670. c
  29671. },
  29672. PBa: function() {
  29673. return this.Mn
  29674. },
  29675. FR: function(c) {
  29676. this.Mn = c;
  29677. f.v.prototype.Ga.call(this, c)
  29678. },
  29679. Iza: function() {
  29680. return this.Va
  29681. },
  29682. Pga: function(c) {
  29683. c && (this.Cf(!0), this.Va = c, c.Gm(!1), c.S(0, 0), this.n(c), this.FR(this.Mn))
  29684. },
  29685. OB: function() {
  29686. return this.Oh
  29687. },
  29688. xh: function(c) {
  29689. this.Oh = c
  29690. },
  29691. NB: function() {
  29692. return this.Pq
  29693. },
  29694. $p: function(c) {
  29695. this.Pq = c
  29696. },
  29697. rc: function(c) {
  29698. if (!this.Na) return !1;
  29699. var d = this.DW(),
  29700. e = this.Va,
  29701. g = e.um(e.yp(c)),
  29702. h = this.Of;
  29703. if (2 < h.length || this.rm || !f.Bu(d, g)) return !1;
  29704. h.push(c);
  29705. 1 === h.length ? (this.dB = this.yp(c), this.rm = !1, this.en = !0, this.jG.x = 0, this.HG = this.jG.y = 0) : 2 == h.length && (this.dB = f.A1(this.yp(h[0]), this.yp(h[1])), this.HG = f.Hfa(e.yp(h[0]), e.yp(h[1])), this.en = !1);
  29706. return !0
  29707. },
  29708. hd: function(c) {
  29709. if (this.Na)
  29710. if (1 === this.Of.length && this.en) {
  29711. this.rm = !0;
  29712. this.DW();
  29713. var d = this.yp(c);
  29714. c = f.gc(d, this.dB);
  29715. var e = 0,
  29716. g = this.Oh,
  29717. h;
  29718. if (g === f.rK) e = c.y, h = this.Va.Zd(), this.Vr().y <= h && h <= this.xu().y || (c.y *= 0.35);
  29719. else if (g === f.Sy) e = c.x, h = this.Va.Vc(), this.Vr().x <= h && h <= this.xu().x || (c.x *= 0.35);
  29720. else {
  29721. e = Math.sqrt(c.x * c.x + c.y * c.y);
  29722. h = this.Va.Zd();
  29723. var k = this.Vr(),
  29724. m = this.xu();
  29725. k.y <= h && h <= m.y || (c.y *= 0.35);
  29726. h = this.Va.Vc();
  29727. k.x <= h && h <= m.x || (c.x *= 0.35)
  29728. } if (this.rm || !(0.04375 > Math.abs(f.exa(e))))
  29729. if (this.rm || (c.x = 0, c.y = 0), this.dB = d, this.rm = !0, this.en) {
  29730. switch (g) {
  29731. case f.rK:
  29732. c.x = 0;
  29733. break;
  29734. case f.Sy:
  29735. c.y = 0
  29736. }
  29737. e = this.Va.Od();
  29738. d = e.x + c.x;
  29739. e = e.y + c.y;
  29740. this.jG = c;
  29741. this.EC(r(d, e))
  29742. }
  29743. } else 2 !== this.Of.length || this.en || (c = f.Hfa(this.Va.yp(this.Of[0]), this.Va.yp(this.Of[1])), this.aia(this.hea() * c / this.HG))
  29744. },
  29745. gd: function() {
  29746. this.Na && (1 == this.Of.length && this.rm && this.Ux(this.EV), this.Of.length =
  29747. 0, this.rm = this.en = !1)
  29748. },
  29749. ef: function() {
  29750. this.Na && (this.Of.length = 0, this.rm = this.en = !1)
  29751. },
  29752. Ga: function(c, d) {
  29753. null != this.Va && (void 0 === d ? this.Va.Ga(c) : this.Va.Ga(c, d), this.PR())
  29754. },
  29755. Uh: function(c) {
  29756. var d = this.Va;
  29757. null != d && (d.Uh(c), this.PR())
  29758. },
  29759. Th: function(c) {
  29760. var d = this.Va;
  29761. null != d && (d.Th(c), this.PR())
  29762. },
  29763. e: function() {
  29764. return this.Va.e()
  29765. },
  29766. PR: function() {
  29767. if (null != this.Va) {
  29768. var c = this.Mn,
  29769. d = this.xu();
  29770. this.NM.x = d.x + 0.2 * c.width;
  29771. this.NM.y = d.y + 0.2 * c.height;
  29772. d = this.Vr();
  29773. this.PM.x = d.x - 0.2 * c.width;
  29774. this.PM.y = d.y - 0.2 * c.height
  29775. }
  29776. },
  29777. TCa: function() {
  29778. return this.VE
  29779. },
  29780. Nga: function(c) {
  29781. this.VE = c
  29782. },
  29783. I: function(c) {
  29784. if (this.Na) {
  29785. c = c || f.s;
  29786. var d, e = this.i,
  29787. g, h;
  29788. if (f.K === f.fb) {
  29789. c.save();
  29790. this.transform(c);
  29791. this.M8(c);
  29792. if (e && 0 < e.length) {
  29793. h = e.length;
  29794. this.kd();
  29795. for (d = 0; d < h; d++)
  29796. if ((g = e[d]) && 0 > g.Ya) g.I(c);
  29797. else break;
  29798. for (this.ma(c); d < h; d++) e[d].I(c)
  29799. } else this.ma(c);
  29800. this.C8();
  29801. c.restore()
  29802. } else {
  29803. f.Rr();
  29804. var k = this.grid;
  29805. k && k.Bi() && (k.dx(), this.mJ());
  29806. this.transform(c);
  29807. this.M8(c);
  29808. if (e && 0 < e.length) {
  29809. h = e.length;
  29810. for (d = 0; d < h; d++)
  29811. if ((g = e[d]) && 0 > g.Ya) g.I();
  29812. else break;
  29813. for (this.ma(c); d < h; d++) e[d].I()
  29814. } else this.ma(c);
  29815. this.C8(c);
  29816. k && k.Bi() && k.ax(this);
  29817. f.Qr()
  29818. }
  29819. }
  29820. },
  29821. n: function(c, d, e) {
  29822. if (!c) throw Error("child must not nil!");
  29823. d = d || c.Ya;
  29824. e = e || c.Em();
  29825. this.Va != c ? this.Va.n(c, d, e) : f.Me.prototype.n.call(this, c, d, e)
  29826. },
  29827. U0: function() {
  29828. return null != this.vi
  29829. },
  29830. Om: function(c) {
  29831. this.vi && f.Qa.removeListener(this.vi);
  29832. this.vi = null;
  29833. c ? (c = f.Xa.create({
  29834. event: f.Xa.zs
  29835. }), this.rc && (c.rc = this.rc.bind(this)), this.hd && (c.hd = this.hd.bind(this)), this.gd && (c.gd = this.gd.bind(this)), this.ef && (c.ef = this.ef.bind(this)), this.vi = c, f.Qa.addListener(c, this)) : (this.rm =
  29836. this.en = !1, this.Of.length = 0)
  29837. },
  29838. pOa: function() {
  29839. return null
  29840. },
  29841. Sta: function(c) {
  29842. var d = this.Vr(),
  29843. e = this.xu(),
  29844. g = this.Oh,
  29845. h = this.Va.Od(),
  29846. k = h.x,
  29847. m = h.y;
  29848. if (g === f.qK || g === f.Sy) k = Math.max(k, d.x), k = Math.min(k, e.x);
  29849. if (g == f.qK || g == f.rK) m = Math.min(m, e.y), m = Math.max(m, d.y);
  29850. m == h.y && k == h.x || this.EC(r(k, m), c)
  29851. },
  29852. EV: function() {
  29853. if (this.en) this.Tu(this.EV);
  29854. else {
  29855. var c, d;
  29856. c = this.Va.Od();
  29857. var e = this.jG;
  29858. this.Va.o(c.x + e.x, c.y + e.y);
  29859. this.ME ? (c = this.NM, d = this.PM) : (c = this.xu(), d = this.Vr());
  29860. var g = this.Va.Vc(),
  29861. h = this.Va.Zd();
  29862. e.x *= 0.95;
  29863. e.y *=
  29864. 0.95;
  29865. this.EC(r(g, h));
  29866. if (1 >= Math.abs(e.x) && 1 >= Math.abs(e.y) || h > c.y || h < d.y || g > c.x || g < d.x || g == c.x || g == d.x || h == c.y || h == d.y) this.Tu(this.EV), this.Sta(!0)
  29867. }
  29868. },
  29869. uX: function() {
  29870. this.en && this.Tu(this.uX)
  29871. },
  29872. gva: function() {
  29873. this.Tu(this.uX)
  29874. },
  29875. M8: function(c) {
  29876. if (this.VE) {
  29877. this.aY = !1;
  29878. var d = this.DW(),
  29879. e = f.view,
  29880. g = this.ka,
  29881. h = this.ra;
  29882. c = c || f.s;
  29883. if (f.K === f.fb) d = this.Mn.width * g * e.ka, e = this.Mn.height * h * e.ra, c.beginPath(), c.rect(0, 0, d, -e), c.clip(), c.closePath();
  29884. else if (e = f.view, e.dDa()) {
  29885. if (this.aY = !0, this.XF = e.gBa(), f.AFa(d, this.XF)) {
  29886. var k =
  29887. this.XF;
  29888. c = Math.max(d.x, k.x);
  29889. h = Math.max(d.y, k.y);
  29890. g = Math.min(d.x + d.width, k.x + k.width);
  29891. d = Math.min(d.y + d.height, k.y + k.height);
  29892. e.vR(c, h, g - c, d - h)
  29893. }
  29894. } else c.enable(c.SCISSOR_TEST), e.vR(d.x, d.y, d.width, d.height)
  29895. }
  29896. },
  29897. C8: function(c) {
  29898. this.VE && f.K === f.na && (this.aY ? (c = this.XF, f.view.vR(c.x, c.y, c.width, c.height)) : (c = c || f.s, c.disable(c.SCISSOR_TEST)))
  29899. },
  29900. nOa: function() {},
  29901. DW: function() {
  29902. for (var c = this.um(r(0, 0)), d = this.Mn, e = this.ka, g = this.ra, h = this.Yb; null != h; h = h.getParent()) e *= h.ka, g *= h.ra;
  29903. 0 > e && (c.x += d.width * e, e = -e);
  29904. 0 >
  29905. g && (c.y += d.height * g, g = -g);
  29906. h = this.rba;
  29907. h.x = c.x;
  29908. h.y = c.y;
  29909. h.width = d.width * e;
  29910. h.height = d.height * g;
  29911. return h
  29912. }
  29913. });
  29914. q = f.Nl.prototype;
  29915. f.d(q, "minOffset", q.Vr);
  29916. f.d(q, "maxOffset", q.xu);
  29917. f.d(q, "bounceable", q.QCa, q.Hga);
  29918. f.d(q, "viewSize", q.PBa, q.FR);
  29919. f.d(q, "container", q.Iza, q.Pga);
  29920. f.d(q, "direction", q.OB, q.xh);
  29921. f.d(q, "delegate", q.NB, q.$p);
  29922. f.d(q, "clippingToBounds", q.TCa, q.Nga);
  29923. q = null;
  29924. f.Nl.create = function(c, d) {
  29925. var e = new f.Nl;
  29926. if (2 == arguments.length) {
  29927. if (e && e.TH(c, d)) return e
  29928. } else if (e && e.j()) return e;
  29929. return null
  29930. };
  29931. f.boa = f.N.extend({
  29932. TI: function() {},
  29933. Cm: function() {
  29934. return 0
  29935. }
  29936. });
  29937. f.coa = f.boa.extend({
  29938. kX: 0,
  29939. ctor: function() {
  29940. this.kX = 0
  29941. },
  29942. TI: function(c) {
  29943. this.kX = c
  29944. },
  29945. Cm: function() {
  29946. return this.kX
  29947. }
  29948. });
  29949. function Ka(c, d) {
  29950. return c.Cm() - d.Cm()
  29951. }
  29952. f.VR = f.N.extend({
  29953. Dn: null,
  29954. ctor: function() {
  29955. this.Dn = []
  29956. },
  29957. Hea: function(c) {
  29958. if (!c) throw "cc.ArrayForObjectSorting.insertSortedObject(): addObject should be non-null.";
  29959. this.KCa(c, this.XB(c))
  29960. },
  29961. UFa: function(c) {
  29962. if (0 != this.count()) {
  29963. var d = this.XB(c);
  29964. d < this.count() && d != f.wo && this.Kx(d).Cm() == c.Cm() && this.Y1(d)
  29965. }
  29966. },
  29967. K3a: function(c, d) {
  29968. var e = this.XB(d);
  29969. if (e < this.count() && e != f.wo) {
  29970. var g = this.Kx(e);
  29971. g.Cm() == d.Cm() && (this.Y1(e), g.TI(c), this.Hea(g))
  29972. }
  29973. },
  29974. vfa: function(c) {
  29975. if (0 == this.count()) return null;
  29976. var d = new f.coa;
  29977. d.TI(c);
  29978. var e = this.XB(d);
  29979. e < this.count() && e != f.wo && (d = this.Kx(e), d.Cm() != c && (d = null));
  29980. return d
  29981. },
  29982. PUa: function() {
  29983. return null
  29984. },
  29985. XB: function(c) {
  29986. var d = 0;
  29987. if (c) {
  29988. var e = 0;
  29989. c = c.Cm();
  29990. for (var g = this.Dn, h = 0; h < g.length; h++) {
  29991. var k = g[h].Cm();
  29992. if (c == k || c >= e && c < k) break;
  29993. e = k;
  29994. d++
  29995. }
  29996. } else d = f.wo;
  29997. return d
  29998. },
  29999. count: function() {
  30000. return this.Dn.length
  30001. },
  30002. f_a: function() {
  30003. var c = this.Dn;
  30004. return 0 == c.length ? null : c[c.length - 1]
  30005. },
  30006. Kx: function(c) {
  30007. return this.Dn[c]
  30008. },
  30009. Xba: function(c) {
  30010. this.Dn.push(c);
  30011. this.Dn.sort(Ka)
  30012. },
  30013. Y1: function(c) {
  30014. this.Dn.splice(c, 1);
  30015. this.Dn.sort(Ka)
  30016. },
  30017. KCa: function(c, d) {
  30018. this.Dn.splice(d, 0, c);
  30019. this.Dn.sort(Ka)
  30020. }
  30021. });
  30022. f.m7 = 0;
  30023. f.Ioa = 1;
  30024. f.Toa = f.v.extend({
  30025. Xq: 0,
  30026. ta: "TableViewCell",
  30027. eUa: function() {
  30028. return this.Xq
  30029. },
  30030. VGa: function(c) {
  30031. this.Xq = c
  30032. },
  30033. reset: function() {
  30034. this.Xq = f.wo
  30035. },
  30036. TI: function(c) {
  30037. this.Xq = c
  30038. },
  30039. Cm: function() {
  30040. return this.Xq
  30041. }
  30042. });
  30043. q = f.Toa.prototype;
  30044. f.d(q, "objectId", q.Cm, q.TI);
  30045. q = null;
  30046. f.XMa = f.Yna.extend({
  30047. o5a: function() {},
  30048. n5a: function() {},
  30049. p5a: function() {},
  30050. q5a: function() {}
  30051. });
  30052. f.WMa = f.N.extend({
  30053. xIa: function(c) {
  30054. return this.Qwa(c)
  30055. },
  30056. Qwa: function() {
  30057. return t(0, 0)
  30058. },
  30059. m5a: function() {
  30060. return null
  30061. },
  30062. H_a: function() {
  30063. return 0
  30064. }
  30065. });
  30066. f.hU = f.Nl.extend({
  30067. gB: null,
  30068. Tb: null,
  30069. sz: null,
  30070. DV: null,
  30071. QY: null,
  30072. $M: null,
  30073. oL: null,
  30074. yr: null,
  30075. ctor: function() {
  30076. f.Nl.prototype.ctor.call(this);
  30077. this.$M = f.b7;
  30078. this.oL = []
  30079. },
  30080. Xpa: function(c) {
  30081. var d = 0,
  30082. e = -1;
  30083. switch (this.OB()) {
  30084. case f.Sy:
  30085. c = c.x;
  30086. break;
  30087. default:
  30088. c = c.y
  30089. }
  30090. for (var g = this.oL; e >= d;) {
  30091. var h = 0 | d + (e - d) / 2,
  30092. k = g[h],
  30093. m = g[h + 1];
  30094. if (c >= k && c <= m) return h;
  30095. c < k ? e = h - 1 : d = h + 1
  30096. }
  30097. return 0 >= d ? 0 : -1
  30098. },
  30099. tsa: function(c) {
  30100. c = {
  30101. x: c.x,
  30102. y: c.y
  30103. };
  30104. this.gB === f.m7 && (c.y = this.Va.e().height - c.y);
  30105. c = this.Xpa(c); - 1 != c && (c = Math.max(0, c), -1 < c && (c = f.wo));
  30106. return c
  30107. },
  30108. Ypa: function(c) {
  30109. switch (this.OB()) {
  30110. case f.Sy:
  30111. c =
  30112. r(this.oL[c], 0);
  30113. break;
  30114. default:
  30115. c = r(0, this.oL[c])
  30116. }
  30117. return c
  30118. },
  30119. eta: function(c) {
  30120. var d = this.Ypa(c);
  30121. c = this.DV.xIa(this, c);
  30122. this.gB === f.m7 && (d.y = this.Va.e().height - d.y - c.height);
  30123. return d
  30124. },
  30125. cPa: function() {},
  30126. ZY: function() {
  30127. this.Ga(t(0, 0));
  30128. this.$M != this.Oh && (this.Oh == f.Sy ? this.EC(r(0, 0)) : this.EC(r(0, this.Vr().y)), this.$M = this.Oh)
  30129. },
  30130. caa: function(c) {
  30131. this.sz.Xba(c);
  30132. this.Ts.UFa(c);
  30133. f.Ld(this.Tb, c.Xq);
  30134. c.reset();
  30135. c.getParent() == this.Va && this.Va.removeChild(c, !0)
  30136. },
  30137. FN: function(c, d) {
  30138. d.S(0, 0);
  30139. d.o(this.eta(c));
  30140. d.VGa(c)
  30141. },
  30142. y8: function(c) {
  30143. c.getParent() !=
  30144. this.Va && this.Va.n(c);
  30145. this.Ts.Hea(c);
  30146. var d = this.Tb;
  30147. c = c.Xq; - 1 == d.indexOf(c) && (d.push(c), d.sort(function(c, d) {
  30148. return c - d
  30149. }))
  30150. },
  30151. Nza: function() {
  30152. return this.DV
  30153. },
  30154. Qga: function(c) {
  30155. this.DV = c
  30156. },
  30157. NB: function() {
  30158. return this.QY
  30159. },
  30160. $p: function(c) {
  30161. this.QY = c
  30162. },
  30163. YHa: function(c) {
  30164. this.gB != c && (this.gB = c, 0 < this.Ts.count() && this.HFa())
  30165. },
  30166. OBa: function() {
  30167. return this.gB
  30168. },
  30169. TH: function(c, d) {
  30170. return f.Nl.prototype.TH.call(this, c, d) ? (this.Ts = new f.VR, this.sz = new f.VR, this.Tb = [], this.QY = null, this.gB = f.Ioa, this.xh(f.rK), f.Nl.prototype.$p.call(this,
  30171. this), !0) : !1
  30172. },
  30173. J5a: function(c) {
  30174. if (!(c == f.wo || -1 < c)) {
  30175. var d = this.b_(c);
  30176. d && this.caa(d);
  30177. d = null;
  30178. this.FN(c, d);
  30179. this.y8(d)
  30180. }
  30181. },
  30182. eXa: function(c) {
  30183. if (!(c == f.wo || -1 < c)) {
  30184. var d, e = this.Ts;
  30185. if (d = e.vfa(c))
  30186. for (var g = d = e.XB(d); g < e.count(); g++) d = e.Kx(g), this.FN(d.Xq + 1, d);
  30187. d = null;
  30188. this.FN(c, d);
  30189. this.y8(d);
  30190. this.ZY()
  30191. }
  30192. },
  30193. j1a: function(c) {
  30194. if (!(c == f.wo || -1 < c)) {
  30195. var d = this.b_(c);
  30196. if (d) {
  30197. var e = this.Ts,
  30198. g = e.XB(d);
  30199. this.caa(d);
  30200. f.Ld(this.Tb, c);
  30201. for (c = e.count() - 1; c > g; c--) d = e.Kx(c), this.FN(d.Xq - 1, d)
  30202. }
  30203. }
  30204. },
  30205. HFa: function() {
  30206. this.$M = f.b7;
  30207. for (var c = this.Ts,
  30208. d = this.sz, e = this.Va, g = 0, h = c.count(); g < h; g++) {
  30209. var k = c.Kx(g);
  30210. d.Xba(k);
  30211. k.reset();
  30212. k.getParent() == e && e.removeChild(k, !0)
  30213. }
  30214. this.Tb = [];
  30215. this.Ts = new f.VR;
  30216. this.ZY()
  30217. },
  30218. LQa: function() {
  30219. if (0 === this.sz.count()) return null;
  30220. var c = this.sz.Kx(0);
  30221. this.sz.Y1(0);
  30222. return c
  30223. },
  30224. b_: function(c) {
  30225. return -1 == this.Tb.indexOf(c) ? null : this.Ts.vfa(c)
  30226. },
  30227. jGa: function() {},
  30228. kGa: function() {},
  30229. gd: function(c, d) {
  30230. if (this.Na) {
  30231. if (this.yr) {
  30232. var e = this.Ee(),
  30233. g = r(e.x, e.y),
  30234. g = this.Yb.um(g);
  30235. e.x = g.x;
  30236. e.y = g.y;
  30237. this.yr = null
  30238. }
  30239. f.Nl.prototype.gd.call(this, c, d)
  30240. }
  30241. },
  30242. rc: function(c,
  30243. d) {
  30244. if (!this.Na) return !1;
  30245. var e = f.Nl.prototype.rc.call(this, c, d);
  30246. if (1 === this.Of.length) {
  30247. var g;
  30248. g = this.Va.yp(c);
  30249. g = this.tsa(g);
  30250. this.yr = g === f.wo ? null : this.b_(g)
  30251. } else this.yr && (this.yr = null);
  30252. return e
  30253. },
  30254. hd: function(c, d) {
  30255. f.Nl.prototype.hd.call(this, c, d);
  30256. this.yr && this.rm && (this.yr = null)
  30257. },
  30258. ef: function(c, d) {
  30259. f.Nl.prototype.ef.call(this, c, d);
  30260. this.yr && (this.yr = null)
  30261. }
  30262. });
  30263. q = f.hU.prototype;
  30264. f.d(q, "dataSource", q.Nza, q.Qga);
  30265. f.d(q, "delegate", q.NB, q.$p);
  30266. f.d(q, "verticalFillOrder", q.OBa, q.YHa);
  30267. q = null;
  30268. f.hU.create = function(c, d, e) {
  30269. var g = new f.hU;
  30270. g.TH(d, e);
  30271. g.Qga(c);
  30272. g.ZY();
  30273. return g
  30274. };
  30275. var La = "contentSize",
  30276. Ma = "scale";
  30277. function Na(c) {
  30278. f.log("Unexpected property: '" + c + "'!")
  30279. }
  30280. function Qa(c, d) {
  30281. this.nGa = c;
  30282. this.target = d
  30283. }
  30284. function Ra(c, d, e) {
  30285. this.mGa = c;
  30286. this.target = d;
  30287. this.dxa = e
  30288. }
  30289. f.Ia = f.N.extend({
  30290. Dz: null,
  30291. ctor: function() {
  30292. this.Dz = new f.uv
  30293. },
  30294. MDa: function(c, d) {
  30295. return this.ji(c, d)
  30296. },
  30297. UEa: function(c, d, e) {
  30298. for (var g = e.Bc(!1), h = e.Bc(!1), h = g + h, k = 0; k < h; k++) {
  30299. var m = k >= g,
  30300. n = e.Bc(!1),
  30301. p = e.Bf(),
  30302. s = !1,
  30303. u = e.ca();
  30304. if (u === Ta || u === Ua || u === Wa) s = !0;
  30305. c instanceof f.lD ? c.RE && m && (c = c.RE, s = -1 != c.userObject.indexOf(p)) : m && c == e.Pc.gm && (m = c.userObject, m || (m = [], c.userObject = m), m.push(p));
  30306. switch (n) {
  30307. case Xa:
  30308. n = this.NEa(c, d, e, p);
  30309. s && this.fEa(c, d, p, n, e);
  30310. break;
  30311. case Ya:
  30312. n = this.LEa(c, d, e);
  30313. s && this.Nx(c, d, p, n, e);
  30314. break;
  30315. case Za:
  30316. n =
  30317. this.MEa(c, d, e);
  30318. s && this.eEa(c, d, p, n, e);
  30319. break;
  30320. case $a:
  30321. n = this.PEa(c, d, e);
  30322. s && this.Yr(c, d, p, n, e);
  30323. break;
  30324. case ab:
  30325. n = this.OEa(c, d, e, p);
  30326. s && this.gEa(c, d, p, n, e);
  30327. break;
  30328. case bb:
  30329. n = this.GEa(c, d, e);
  30330. s && this.dEa(c, d, p, n, e);
  30331. break;
  30332. case cb:
  30333. n = this.DEa(c, d, e);
  30334. s && this.Lx(c, d, p, n, e);
  30335. break;
  30336. case db:
  30337. n = this.BEa(c, d, e, p);
  30338. s && this.cEa(c, d, p, n, e);
  30339. break;
  30340. case eb:
  30341. n = this.EEa(c, d, e);
  30342. s && this.mI(c, d, p, n, e);
  30343. break;
  30344. case fb:
  30345. n = this.JEa(c, d, e);
  30346. s && this.u1(c, d, p, n, e);
  30347. break;
  30348. case gb:
  30349. n = this.KEa(c, d, e);
  30350. s && this.Mx(c, d, p, n, e);
  30351. break;
  30352. case kb:
  30353. n = this.FEa(c,
  30354. d, e);
  30355. s && this.s1(c, d, p, n, e);
  30356. break;
  30357. case lb:
  30358. n = this.yEa(c, d, e, p);
  30359. s && this.eo(c, d, p, n, e);
  30360. break;
  30361. case pb:
  30362. n = this.QEa(c, d, e, p);
  30363. s && this.Zr(c, d, p, n, e);
  30364. break;
  30365. case qb:
  30366. n = this.sEa(c, d, e);
  30367. s && this.bEa(c, d, p, n, e);
  30368. break;
  30369. case rb:
  30370. n = this.TEa(c, d, e);
  30371. s && this.w1(c, d, p, n, e);
  30372. break;
  30373. case sb:
  30374. n = this.wEa(c, d, e, p);
  30375. s && this.jl(c, d, p, n, e);
  30376. break;
  30377. case wb:
  30378. n = this.zEa(c, d, e, p);
  30379. s && this.uj(c, d, p, n, e);
  30380. break;
  30381. case xb:
  30382. n = this.AEa(c, d, e);
  30383. s && this.q1(c, d, p, n, e);
  30384. break;
  30385. case yb:
  30386. n = this.CEa(c, d, e);
  30387. s && this.r1(c, d, p, n, e);
  30388. break;
  30389. case zb:
  30390. n = this.tEa(c, d, e);
  30391. s &&
  30392. this.tj(c, d, p, n, e);
  30393. break;
  30394. case Ab:
  30395. n = e.Tl + this.HEa(c, d, e);
  30396. s && this.t1(c, d, p, n, e);
  30397. break;
  30398. case Bb:
  30399. n = this.IEa(c, d, e);
  30400. s && this.nI(c, d, p, n, e);
  30401. break;
  30402. case Cb:
  30403. n = this.REa(c, d, e);
  30404. s && this.v1(c, d, p, n, e);
  30405. break;
  30406. case Db:
  30407. n = this.SEa(c, d, e);
  30408. s && this.oI(c, d, p, n, e);
  30409. break;
  30410. case Hb:
  30411. n = this.uEa(c, d, e);
  30412. s && this.o1(c, d, p, n, e);
  30413. break;
  30414. case Ib:
  30415. n = this.vEa(c, d, e);
  30416. s && null != n && this.p1(c, d, p, n, e);
  30417. break;
  30418. case Jb:
  30419. n = this.xEa(c, d, e);
  30420. s && this.lI(c, d, p, n, e);
  30421. break;
  30422. default:
  30423. f.log("Unexpected property type: '" + n + "'!")
  30424. }
  30425. }
  30426. },
  30427. lTa: function() {
  30428. return this.Dz
  30429. },
  30430. ji: function() {
  30431. return f.v.create()
  30432. },
  30433. NEa: function(c, d, e, g) {
  30434. var h = e.$b(),
  30435. k = e.$b(),
  30436. m = e.Bc(!1);
  30437. d = e.Pc.hP(d);
  30438. var n = f.mW(h, k, m, d);
  30439. c.o(f.sza(n, m, d)); - 1 < e.cn.indexOf(g) && e.Pc.Zx([h, k, m], c, g);
  30440. return n
  30441. },
  30442. LEa: function(c, d, e) {
  30443. c = e.$b();
  30444. e = e.$b();
  30445. return r(c, e)
  30446. },
  30447. MEa: function(c, d, e) {
  30448. c = e.$b();
  30449. e = e.$b();
  30450. return r(c, e)
  30451. },
  30452. PEa: function(c, d, e) {
  30453. c = e.$b();
  30454. var g = e.$b(),
  30455. h = e.Bc(!1);
  30456. d = e.Pc.hP(d);
  30457. switch (h) {
  30458. case Kb:
  30459. break;
  30460. case Lb:
  30461. c = d.width - c;
  30462. g = d.height - g;
  30463. break;
  30464. case Mb:
  30465. c = d.width * c / 100;
  30466. g = d.height * g / 100;
  30467. break;
  30468. case Nb:
  30469. c = d.width * c / 100;
  30470. break;
  30471. case Vb:
  30472. g = d.height * g / 100;
  30473. break;
  30474. case Wb:
  30475. d = f.Mb.qu();
  30476. c *= d;
  30477. g *= d;
  30478. break;
  30479. default:
  30480. f.log("Unknown CCB type.")
  30481. }
  30482. return t(c, g)
  30483. },
  30484. OEa: function(c, d, e, g) {
  30485. d = e.$b();
  30486. var h = e.$b(),
  30487. k = e.Bc(!1);
  30488. f.Jha(c, d, h, k); - 1 < e.cn.indexOf(g) && e.Pc.Zx([d, h, k], c, g);
  30489. k == Xb && (d *= f.Mb.qu(), h *= f.Mb.qu());
  30490. return [d, h]
  30491. },
  30492. DEa: function(c, d, e) {
  30493. return e.$b()
  30494. },
  30495. BEa: function(c, d, e, g) {
  30496. d = e.$b(); - 1 < e.cn.indexOf(g) && e.Pc.Zx(d, c, g);
  30497. return d
  30498. },
  30499. EEa: function(c, d, e) {
  30500. c = e.$b();
  30501. e.Bc(!1) == Xb && (c *= f.Mb.qu());
  30502. return c
  30503. },
  30504. JEa: function(c, d, e) {
  30505. return e.Bc(!0)
  30506. },
  30507. KEa: function(c,
  30508. d, e) {
  30509. return e.Bc(!0)
  30510. },
  30511. FEa: function(c, d, e) {
  30512. c = e.$b();
  30513. e = e.$b();
  30514. return [c, e]
  30515. },
  30516. yEa: function(c, d, e, g) {
  30517. d = e.DI(); - 1 < e.cn.indexOf(g) && e.Pc.Zx(d, c, g);
  30518. return d
  30519. },
  30520. QEa: function(c, d, e, g) {
  30521. d = e.Bf();
  30522. var h = e.Bf(),
  30523. k;
  30524. null != h && 0 != h.length && (0 == d.length ? (h = e.Tl + h, d = f.nb.vd(h), h = d.e(), k = f.Li.create(d, x(0, 0, h.width, h.height))) : (k = f.Je, d = e.Tl + d, -1 == e.vt.indexOf(d) && (k.vp(d), e.vt.push(d)), k = k.Ca(h)), -1 < e.cn.indexOf(g) && e.Pc.Zx(k, c, g));
  30525. return k
  30526. },
  30527. sEa: function(c, d, e) {
  30528. c = e.Tl + e.Bf();
  30529. e = e.Bf();
  30530. d = null;
  30531. e = f.Mb.efa(e);
  30532. c = f.Mb.efa(c);
  30533. null !=
  30534. e && "" != e && (d = f.WG, d.Hva(c), d = d.cl(e));
  30535. return d
  30536. },
  30537. TEa: function(c, d, e) {
  30538. c = e.Tl + e.Bf();
  30539. return "" != c ? f.nb.vd(c) : null
  30540. },
  30541. wEa: function(c, d, e, g) {
  30542. d = e.ca(); - 1 < e.cn.indexOf(g) && e.Pc.Zx(d, c, g);
  30543. return d
  30544. },
  30545. zEa: function(c, d, e, g) {
  30546. d = e.ca();
  30547. var h = e.ca(),
  30548. k = e.ca();
  30549. d = {
  30550. r: d,
  30551. g: h,
  30552. b: k
  30553. }; - 1 < e.cn.indexOf(g) && e.Pc.Zx(f.KJ.create(d), c, g);
  30554. return d
  30555. },
  30556. AEa: function(c, d, e) {
  30557. c = 0 | 255 * e.$b();
  30558. d = 0 | 255 * e.$b();
  30559. var g = 0 | 255 * e.$b(),
  30560. h = e.$b(),
  30561. h = 1 >= h ? 0 | 255 * h : h,
  30562. k = 0 | 255 * e.$b(),
  30563. m = 0 | 255 * e.$b(),
  30564. n = 0 | 255 * e.$b();
  30565. e = e.$b();
  30566. var p = [];
  30567. p[0] = {
  30568. r: c,
  30569. g: d,
  30570. b: g,
  30571. a: h
  30572. };
  30573. p[1] = {
  30574. r: k,
  30575. g: m,
  30576. b: n,
  30577. a: 1 >= e ? 0 | 255 * e : e
  30578. };
  30579. return p
  30580. },
  30581. CEa: function(c, d, e) {
  30582. c = e.DI();
  30583. e = e.DI();
  30584. return [c, e]
  30585. },
  30586. tEa: function(c, d, e) {
  30587. c = e.Bc(!1);
  30588. e = e.Bc(!1);
  30589. return new f.Um(c, e)
  30590. },
  30591. HEa: function(c, d, e) {
  30592. return e.Bf()
  30593. },
  30594. REa: function(c, d, e) {
  30595. return e.Bf()
  30596. },
  30597. SEa: function(c, d, e) {
  30598. return e.Bf()
  30599. },
  30600. IEa: function(c, d, e) {
  30601. return e.Bf()
  30602. },
  30603. uEa: function(c, d, e) {
  30604. d = e.Bf();
  30605. var g = e.Bc(!1);
  30606. if (g !== Yb) {
  30607. var h = null;
  30608. if (e.qn) g === Zb ? (e.wO(c), e.vO(d), e.uO(0)) : (e.$ba(c), e.Zba(d), e.Yba(0));
  30609. else if (g === Zb ? h = e.Pc.gm : g === $b && (h = e.Td), null != h)
  30610. if (0 < d.length)
  30611. if (c = 0, null !=
  30612. h && h.jEa && (c = void 0), 0 == c && null != e.rz && (c = void 0), 0 == c) f.log("Skipping selector '" + d + "' since no CCBSelectorResolver is present.");
  30613. else return new Qa(c, h);
  30614. else f.log("Unexpected empty selector.");
  30615. else f.log("Unexpected NULL target for selector.")
  30616. }
  30617. return null
  30618. },
  30619. vEa: function(c, d, e) {
  30620. d = e.Bf();
  30621. var g = e.Bc(!1),
  30622. h = e.Bc(!1);
  30623. if (g !== Yb)
  30624. if (e.qn) g == Zb ? (e.wO(c), e.vO(d), e.uO(h)) : (e.$ba(c), e.Zba(d), e.Yba(h));
  30625. else if (c = null, g == Zb ? c = e.Pc.gm : g == $b && (c = e.Td), null != c)
  30626. if (0 < d.length)
  30627. if (g = 0, null != c && c.iEa && (g = void 0), 0 == g &&
  30628. null != e.rz && (g = void 0), 0 == g) f.log("Skipping selector '" + d + "' since no CCBSelectorResolver is present.");
  30629. else return new Ra(g, c, h);
  30630. else f.log("Unexpected empty selector.");
  30631. else f.log("Unexpected NULL target for selector.");
  30632. return null
  30633. },
  30634. xEa: function(c, d, e) {
  30635. var g = e.Tl + e.Bf(),
  30636. g = f.Mb.Oxa(g) + ".ccbi";
  30637. c = new f.Mb(e);
  30638. var h = f.L.zd(g);
  30639. h || (h = f.L.u0(g), h = f.L.gfa(h), f.L.jj[g] = h);
  30640. c.su(h, e.Td);
  30641. c.Pc.J2(d.e());
  30642. c.Dga(e.yv);
  30643. c.Pc.HC(e.Td);
  30644. d = c.Ufa(!1);
  30645. e.Dga(c.yv);
  30646. d && -1 != c.Pc.dz && c.Pc.d2(c.Pc.dz, 0);
  30647. return d
  30648. },
  30649. GEa: function(c,
  30650. d, e) {
  30651. c = e.$b();
  30652. e = e.$b();
  30653. return [c, e]
  30654. },
  30655. fEa: function(c, d, e, g) {
  30656. "position" === e ? c.o(g) : Na(e)
  30657. },
  30658. Nx: function(c, d, e, g) {
  30659. "anchorPoint" === e ? c.S(g) : Na(e)
  30660. },
  30661. eEa: function(c, d, e) {
  30662. Na(e)
  30663. },
  30664. Yr: function(c, d, e, g) {
  30665. e === La ? c.Ga(g) : Na(e)
  30666. },
  30667. gEa: function(c, d, e, g) {
  30668. e === Ma ? (c.jb(g[0]), c.tb(g[1])) : Na(e)
  30669. },
  30670. dEa: function(c, d, e, g) {
  30671. if ("skew" === e) c.XI(g[0]), c.YI(g[1]);
  30672. else {
  30673. d = e + "X";
  30674. var h = e + "Y";
  30675. c[d] && c[h] || Na(e);
  30676. c[d](g[0]);
  30677. c[h](g[1])
  30678. }
  30679. },
  30680. Lx: function(c, d, e, g) {
  30681. this.Dz.ul(g, e)
  30682. },
  30683. cEa: function(c, d, e, g) {
  30684. "rotation" === e ? c.yh(g) : Na(e)
  30685. },
  30686. mI: function(c, d,
  30687. e) {
  30688. Na(e)
  30689. },
  30690. u1: function(c, d, e, g) {
  30691. "tag" === e ? c.Nm(g) : Na(e)
  30692. },
  30693. Mx: function(c, d, e) {
  30694. Na(e)
  30695. },
  30696. s1: function(c, d, e) {
  30697. Na(e)
  30698. },
  30699. eo: function(c, d, e, g) {
  30700. "visible" === e ? c.za(g) : "ignoreAnchorPointForPosition" === e ? c.Gm(g) : Na(e)
  30701. },
  30702. Zr: function(c, d, e) {
  30703. Na(e)
  30704. },
  30705. bEa: function(c, d, e) {
  30706. Na(e)
  30707. },
  30708. w1: function(c, d, e) {
  30709. Na(e)
  30710. },
  30711. jl: function(c, d, e) {
  30712. Na(e)
  30713. },
  30714. uj: function(c, d, e) {
  30715. Na(e)
  30716. },
  30717. q1: function(c, d, e) {
  30718. Na(e)
  30719. },
  30720. r1: function(c, d, e) {
  30721. Na(e)
  30722. },
  30723. tj: function(c, d, e) {
  30724. Na(e)
  30725. },
  30726. t1: function(c, d, e) {
  30727. Na(e)
  30728. },
  30729. v1: function(c, d, e, g) {
  30730. this.Dz.ul(g, e)
  30731. },
  30732. oI: function(c, d, e) {
  30733. Na(e)
  30734. },
  30735. nI: function(c,
  30736. d, e) {
  30737. Na(e)
  30738. },
  30739. o1: function(c, d, e) {
  30740. Na(e)
  30741. },
  30742. p1: function(c, d, e) {
  30743. Na(e)
  30744. },
  30745. lI: function(c, d, e) {
  30746. Na(e)
  30747. }
  30748. });
  30749. f.Ia.L = function() {
  30750. return new f.Ia
  30751. };
  30752. f.ZLa = f.N.extend({
  30753. L_a: function() {}
  30754. });
  30755. f.yKa = f.N.extend({
  30756. jEa: function() {},
  30757. hEa: function() {},
  30758. iEa: function() {}
  30759. });
  30760. f.xKa = f.N.extend({
  30761. CQa: function() {}
  30762. });
  30763. f.wKa = f.N.extend({
  30764. K_a: function() {
  30765. return !1
  30766. },
  30767. ZDa: function() {
  30768. return !1
  30769. }
  30770. });
  30771. f.fS = f.Ia.extend({
  30772. ji: function() {
  30773. return f.lD.create()
  30774. },
  30775. lI: function(c, d, e, g, h) {
  30776. "ccbFile" == e ? c.Iga(g) : f.Ia.prototype.lI.call(this, c, d, e, g, h)
  30777. }
  30778. });
  30779. f.fS.L = function() {
  30780. return new f.fS
  30781. };
  30782. f.jq = f.Ia.extend({
  30783. ji: function() {},
  30784. p1: function(c, d, e, g, h) {
  30785. "ccControl" == e ? c.VG(g.target, g.mGa, g.dxa) : f.Ia.prototype.p1.call(this, c, d, e, g, h)
  30786. },
  30787. eo: function(c, d, e, g, h) {
  30788. "enabled" == e ? c.Lb(g) : "selected" == e ? c.Nu(g) : f.Ia.prototype.eo.call(this, c, d, e, g, h)
  30789. }
  30790. });
  30791. f.wS = f.jq.extend({
  30792. ji: function() {
  30793. return f.Xm.create()
  30794. },
  30795. eo: function(c, d, e, g, h) {
  30796. "zoomOnTouchDown" == e ? c.$ha(g) : f.jq.prototype.eo.call(this, c, d, e, g, h)
  30797. },
  30798. v1: function(c, d, e, g, h) {
  30799. "title|1" == e ? c.AR(g, f.Wg) : "title|2" == e ? c.AR(g, f.av) : "title|3" == e ? c.AR(g, f.$u) : f.jq.prototype.v1.call(this, c, d, e, g, h)
  30800. },
  30801. nI: function(c, d, e, g, h) {
  30802. "titleTTF|1" == e ? c.X2(g, f.Wg) : "titleTTF|2" == e ? c.X2(g, f.av) : "titleTTF|3" == e ? c.X2(g, f.$u) : f.jq.prototype.nI.call(this, c, d, e, g, h)
  30803. },
  30804. mI: function(c, d, e, g, h) {
  30805. "titleTTFSize|1" == e ? c.Y2(g, f.Wg) : "titleTTFSize|2" ==
  30806. e ? c.Y2(g, f.av) : "titleTTFSize|4" == e ? c.Y2(g, f.$u) : f.jq.prototype.mI.call(this, c, d, e, g, h)
  30807. },
  30808. Nx: function(c, d, e, g, h) {
  30809. "labelAnchorPoint" == e ? c.z2(g) : f.jq.prototype.Nx.call(this, c, d, e, g, h)
  30810. },
  30811. Yr: function(c, d, e, g, h) {
  30812. "preferedSize" == e ? c.He(g) : f.jq.prototype.Yr.call(this, c, d, e, g, h)
  30813. },
  30814. Zr: function(c, d, e, g, h) {
  30815. "backgroundSpriteFrame|1" == e ? null != g && c.l2(g, f.Wg) : "backgroundSpriteFrame|2" == e ? null != g && c.l2(g, f.av) : "backgroundSpriteFrame|3" == e ? null != g && c.l2(g, f.$u) : f.jq.prototype.Zr.call(this, c, d, e, g, h)
  30816. },
  30817. uj: function(c, d,
  30818. e, g, h) {
  30819. "titleColor|1" == e ? c.zR(g, f.Wg) : "titleColor|2" == e ? c.zR(g, f.av) : "titleColor|3" == e ? c.zR(g, f.$u) : f.jq.prototype.uj.call(this, c, d, e, g, h)
  30820. }
  30821. });
  30822. f.wS.L = function() {
  30823. return new f.wS
  30824. };
  30825. Ma = "scale";
  30826. f.NT = f.Ia.extend({
  30827. ji: function() {
  30828. return f.Nl.create()
  30829. },
  30830. Yr: function(c, d, e, g, h) {
  30831. e == La ? c.FR(g) : f.Ia.prototype.Yr.call(this, c, d, e, g, h)
  30832. },
  30833. lI: function(c, d, e, g, h) {
  30834. "container" == e ? (c.Pga(g), c.PR()) : f.Ia.prototype.lI.call(this, c, d, e, g, h)
  30835. },
  30836. eo: function(c, d, e, g, h) {
  30837. "clipsToBounds" == e ? c.Nga(g) : "bounces" == e ? c.Hga(g) : f.Ia.prototype.eo.call(this, c, d, e, g, h)
  30838. },
  30839. Lx: function(c, d, e, g, h) {
  30840. e == Ma ? c.ib(g) : f.Ia.prototype.Lx.call(this, c, d, e, g, h)
  30841. },
  30842. Mx: function(c, d, e, g, h) {
  30843. "direction" == e ? c.xh(g) : f.Ia.prototype.Mx.call(this, c, d, e, g, h)
  30844. }
  30845. });
  30846. f.NT.L = function() {
  30847. return new f.NT
  30848. };
  30849. var La = "contentSize",
  30850. ac = "color",
  30851. bc = "opacity",
  30852. jc = "blendFunc";
  30853. f.MT = f.Ia.extend({
  30854. ji: function() {
  30855. var c = f.Ua.create();
  30856. c.S(0, 0);
  30857. return c
  30858. },
  30859. uj: function(c, d, e, g, h) {
  30860. e == ac ? 255 === g.r && 255 === g.g && 255 === g.b || c.F(g) : f.Ia.prototype.uj.call(this, c, d, e, g, h)
  30861. },
  30862. jl: function(c, d, e, g, h) {
  30863. e == bc ? c.J(g) : f.Ia.prototype.jl.call(this, c, d, e, g, h)
  30864. },
  30865. tj: function(c, d, e, g, h) {
  30866. e != jc && f.Ia.prototype.tj.call(this, c, d, e, g, h)
  30867. },
  30868. Zr: function(c, d, e, g, h) {
  30869. "spriteFrame" == e ? c.Dd(g) : f.Ia.prototype.Zr.call(this, c, d, e, g, h)
  30870. },
  30871. Yr: function(c, d, e, g, h) {
  30872. e != La && ("preferedSize" == e ? c.He(g) : f.Ia.prototype.Yr.call(this, c,
  30873. d, e, g, h))
  30874. },
  30875. Lx: function(c, d, e, g, h) {
  30876. "insetLeft" == e ? c.eha(g) : "insetTop" == e ? c.gha(g) : "insetRight" == e ? c.fha(g) : "insetBottom" == e ? c.dha(g) : f.Ia.prototype.Lx.call(this, c, d, e, g, h)
  30877. }
  30878. });
  30879. f.MT.L = function() {
  30880. return new f.MT
  30881. };
  30882. ac = "color";
  30883. bc = "opacity";
  30884. jc = "blendFunc";
  30885. f.RT = f.Ia.extend({
  30886. ji: function() {
  30887. return f.q.create()
  30888. },
  30889. uj: function(c, d, e, g, h) {
  30890. e === ac ? 255 === g.r && 255 === g.g && 255 === g.b || c.F(g) : f.Ia.prototype.uj.call(this, c, d, e, g, h)
  30891. },
  30892. jl: function(c, d, e, g, h) {
  30893. e === bc ? c.J(g) : f.Ia.prototype.jl.call(this, c, d, e, g, h)
  30894. },
  30895. tj: function(c, d, e, g, h) {
  30896. e === jc ? c.ce(g) : f.Ia.prototype.tj.call(this, c, d, e, g, h)
  30897. },
  30898. Zr: function(c, d, e, g, h) {
  30899. "displayFrame" === e ? g ? c.Dd(g) : f.log("ERROR: SpriteFrame is null") : f.Ia.prototype.Zr.call(this, c, d, e, g, h)
  30900. },
  30901. r1: function(c, d, e, g, h) {
  30902. "flip" === e ? (c.Pd(g[0]), c.Yf(g[1])) :
  30903. f.Ia.prototype.r1.call(this, c, d, e, g, h)
  30904. }
  30905. });
  30906. f.RT.L = function() {
  30907. return new f.RT
  30908. };
  30909. f.uk = f.Ia.extend({
  30910. ji: function() {
  30911. var c = f.Me.create();
  30912. c.Ga(0, 0);
  30913. return c
  30914. },
  30915. eo: function(c, d, e, g, h) {
  30916. "touchEnabled" !== e && "isTouchEnabled" !== e && "accelerometerEnabled" !== e && "isAccelerometerEnabled" !== e && "mouseEnabled" !== e && "isMouseEnabled" !== e && ("keyboardEnabled" === e || "isKeyboardEnabled" === e ? c.$Ga && !f.Ed.$Ca ? c.$Ga(g) : f.log("The property 'isKeyboardEnabled' is not supported!") : f.Ia.prototype.eo.call(this, c, d, e, g, h))
  30917. }
  30918. });
  30919. f.uk.L = function() {
  30920. return new f.uk
  30921. };
  30922. f.aT = f.uk.extend({
  30923. ji: function() {
  30924. return f.$f.create()
  30925. },
  30926. uj: function(c, d, e, g, h) {
  30927. e === ac ? c.F(g) : f.uk.prototype.uj.call(this, c, d, e, g, h)
  30928. },
  30929. jl: function(c, d, e, g, h) {
  30930. e === bc ? c.J(g) : f.uk.prototype.jl.call(this, c, d, e, g, h)
  30931. },
  30932. tj: function(c, d, e, g, h) {
  30933. e === jc ? c.ce(g) : f.uk.prototype.tj.call(this, c, d, e, g, h)
  30934. }
  30935. });
  30936. f.aT.L = function() {
  30937. return new f.aT
  30938. };
  30939. f.cT = f.uk.extend({
  30940. ji: function() {
  30941. return f.rq.create()
  30942. },
  30943. uj: function(c, d, e, g, h) {
  30944. "startColor" === e ? c.Tg(g) : "endColor" == e ? c.Sg(g) : f.uk.prototype.uj.call(this, c, d, e, g, h)
  30945. },
  30946. jl: function(c, d, e, g, h) {
  30947. "startOpacity" === e ? c.Sha(g) : "endOpacity" === e ? c.Vga(g) : f.uk.prototype.jl.call(this, c, d, e, g, h)
  30948. },
  30949. Nx: function(c, d, e, g, h) {
  30950. "vector" === e ? c.DR(g) : f.uk.prototype.Nx.call(this, c, d, e, g, h)
  30951. },
  30952. tj: function(c, d, e, g, h) {
  30953. e === jc ? c.ce(g) : f.uk.prototype.tj.call(this, c, d, e, g, h)
  30954. }
  30955. });
  30956. f.cT.L = function() {
  30957. return new f.cT
  30958. };
  30959. f.iT = f.uk.extend({
  30960. ji: function() {
  30961. var c = f.ws.create();
  30962. c.Ga(0, 0);
  30963. return c
  30964. }
  30965. });
  30966. f.iT.L = function() {
  30967. return new f.iT
  30968. };
  30969. f.f6 = f.Ia.extend({
  30970. ji: function() {
  30971. return null
  30972. },
  30973. o1: function(c, d, e, g, h) {
  30974. "block" === e ? null != g && c.ZI(g.nGa, g.target) : f.Ia.prototype.o1.call(this, c, d, e, g, h)
  30975. },
  30976. eo: function(c, d, e, g, h) {
  30977. "isEnabled" === e ? c.Lb(g) : f.Ia.prototype.eo.call(this, c, d, e, g, h)
  30978. }
  30979. });
  30980. f.gT = f.f6.extend({
  30981. ji: function() {
  30982. return f.Il.create()
  30983. },
  30984. Zr: function(c, d, e, g, h) {
  30985. "normalSpriteFrame" === e ? null != g && c.mHa(g) : "selectedSpriteFrame" === e ? null != g && c.IHa(g) : "disabledSpriteFrame" === e ? null != g && c.MGa(g) : f.f6.prototype.Zr.call(this, c, d, e, g, h)
  30986. }
  30987. });
  30988. f.gT.L = function() {
  30989. return new f.gT
  30990. };
  30991. f.$S = f.Ia.extend({
  30992. ji: function() {
  30993. return f.ia.create()
  30994. },
  30995. uj: function(c, d, e, g, h) {
  30996. e === ac ? 255 === g.r && 255 === g.g && 255 === g.b || c.F(g) : f.Ia.prototype.uj.call(this, c, d, e, g, h)
  30997. },
  30998. jl: function(c, d, e, g, h) {
  30999. e === bc ? c.J(g) : f.Ia.prototype.jl.call(this, c, d, e, g, h)
  31000. },
  31001. tj: function(c, d, e, g, h) {
  31002. e === jc ? c.ce(g) : f.Ia.prototype.tj.call(this, c, d, e, g, h)
  31003. },
  31004. nI: function(c, d, e, g, h) {
  31005. "fontName" === e ? c.de(g) : f.Ia.prototype.nI.call(this, c, d, e, g, h)
  31006. },
  31007. oI: function(c, d, e, g, h) {
  31008. "string" === e ? c.wa(g) : f.Ia.prototype.oI.call(this, c, d, e, g, h)
  31009. },
  31010. mI: function(c,
  31011. d, e, g, h) {
  31012. "fontSize" === e ? c.Qd(g) : f.Ia.prototype.mI.call(this, c, d, e, g, h)
  31013. },
  31014. Mx: function(c, d, e, g, h) {
  31015. "horizontalAlignment" === e ? c.jR(g) : "verticalAlignment" === e ? c.ER(g) : f.Ia.prototype.Mx.call(this, c, d, e, g, h)
  31016. },
  31017. Yr: function(c, d, e, g, h) {
  31018. "dimensions" === e ? c.gR(g) : f.Ia.prototype.Yr.call(this, c, d, e, g, h)
  31019. }
  31020. });
  31021. f.$S.L = function() {
  31022. return new f.$S
  31023. };
  31024. f.ZS = f.Ia.extend({
  31025. ji: function() {
  31026. return f.qq.create()
  31027. },
  31028. uj: function(c, d, e, g, h) {
  31029. e === ac ? 255 === g.r && 255 === g.g && 255 === g.b || c.F(g) : f.Ia.prototype.uj.call(this, c, d, e, g, h)
  31030. },
  31031. jl: function(c, d, e, g, h) {
  31032. e === bc ? c.J(g) : f.Ia.prototype.jl.call(this, c, d, e, g, h)
  31033. },
  31034. tj: function(c, d, e, g, h) {
  31035. e === jc ? c.ce(g) : f.Ia.prototype.tj.call(this, c, d, e, g, h)
  31036. },
  31037. t1: function(c, d, e, g, h) {
  31038. "fntFile" === e ? c.GC(g) : f.Ia.prototype.t1.call(this, c, d, e, g, h)
  31039. },
  31040. oI: function(c, d, e, g, h) {
  31041. "string" === e ? c.wa(g) : f.Ia.prototype.oI.call(this, c, d, e, g, h)
  31042. }
  31043. });
  31044. f.ZS.L = function() {
  31045. return new f.ZS
  31046. };
  31047. f.qT = f.Ia.extend({
  31048. ji: function() {
  31049. return f.A.create()
  31050. },
  31051. Mx: function(c, d, e, g, h) {
  31052. "emitterMode" === e ? c.pl(g) : f.Ia.prototype.Mx.call(this, c, d, e, g, h)
  31053. },
  31054. Nx: function(c, d, e, g, h) {
  31055. "posVar" === e ? c.vl(g) : "gravity" === e ? c.vc(g) : f.Ia.prototype.Nx.call(this, c, d, e, g, h)
  31056. },
  31057. Lx: function(c, d, e, g, h) {
  31058. "emissionRate" === e ? c.ol(g) : "duration" === e ? c.Ei(g) : f.Ia.prototype.Lx.call(this, c, d, e, g, h)
  31059. },
  31060. u1: function(c, d, e, g, h) {
  31061. "totalParticles" === e ? c.Xha(g) : f.Ia.prototype.u1.call(this, c, d, e, g, h)
  31062. },
  31063. s1: function(c, d, e, g, h) {
  31064. "life" === e ? (c.rl(g[0]), c.sl(g[1])) :
  31065. "startSize" === e ? (c.wl(g[0]), c.xl(g[1])) : "endSize" === e ? (c.ql(g[0]), c.Wga(g[1])) : "startSpin" === e ? (c.Tha(g[0]), c.Uha(g[1])) : "endSpin" === e ? (c.Xga(g[0]), c.Yga(g[1])) : "angle" === e ? (c.ml(g[0]), c.nl(g[1])) : "speed" === e ? (c.Hi(g[0]), c.pk(g[1])) : "tangentialAccel" === e ? (c.bq(g[0]), c.cq(g[1])) : "radialAccel" === e ? (c.nk(g[0]), c.ok(g[1])) : "startRadius" === e ? (c.R2(g[0]), c.S2(g[1])) : "endRadius" === e ? (c.w2(g[0]), c.x2(g[1])) : "rotatePerSecond" === e ? (c.K2(g[0]), c.L2(g[1])) : f.Ia.prototype.s1.call(this, c, d, e, g, h)
  31066. },
  31067. q1: function(c,
  31068. d, e, g, h) {
  31069. "startColor" === e ? (c.Tg(g[0]), c.qk(g[1])) : "endColor" === e ? (c.Sg(g[0]), c.mk(g[1])) : f.Ia.prototype.q1.call(this, c, d, e, g, h)
  31070. },
  31071. tj: function(c, d, e, g, h) {
  31072. e === jc ? c.ce(g) : f.Ia.prototype.tj.call(this, c, d, e, g, h)
  31073. },
  31074. w1: function(c, d, e, g, h) {
  31075. "texture" === e ? c.ab(g) : f.Ia.prototype.w1.call(this, c, d, e, g, h)
  31076. }
  31077. });
  31078. f.qT.L = function() {
  31079. return new f.qT
  31080. };
  31081. f.Cj = f.N.extend({
  31082. Iq: null,
  31083. ctor: function() {
  31084. this.Iq = {}
  31085. },
  31086. fga: function() {
  31087. this.jk("CCNode", f.Ia.L());
  31088. this.jk("CCLayer", f.uk.L());
  31089. this.jk("CCLayerColor", f.aT.L());
  31090. this.jk("CCLayerGradient", f.cT.L());
  31091. this.jk("CCSprite", f.RT.L());
  31092. this.jk("CCLabelBMFont", f.ZS.L());
  31093. this.jk("CCLabelTTF", f.$S.L());
  31094. this.jk("CCScale9Sprite", f.MT.L());
  31095. this.jk("CCScrollView", f.NT.L());
  31096. this.jk("CCBFile", f.fS.L());
  31097. this.jk("CCMenu", f.iT.L());
  31098. this.jk("CCMenuItemImage", f.gT.L());
  31099. this.jk("CCControlButton", f.wS.L());
  31100. this.jk("CCParticleSystemQuad",
  31101. f.qT.L())
  31102. },
  31103. jk: function(c, d) {
  31104. this.Iq[c] = d
  31105. },
  31106. F5a: function(c) {
  31107. this.Iq[c] && delete this.Iq[c]
  31108. },
  31109. pda: function(c) {
  31110. return this.Iq[c] ? this.Iq[c] : null
  31111. },
  31112. y0a: function(c) {
  31113. if (c)
  31114. for (var d in this.Iq) delete this.Iq[d];
  31115. this.Iq = {}
  31116. }
  31117. });
  31118. f.Cj.HI = null;
  31119. f.Cj.KDa = function() {
  31120. return new f.Cj
  31121. };
  31122. f.Cj.V4a = function() {
  31123. null == f.Cj.HI && (f.Cj.HI = new f.Cj, f.Cj.HI.fga());
  31124. return f.Cj.HI
  31125. };
  31126. f.Cj.z0a = function() {
  31127. f.Cj.HI = null
  31128. };
  31129. f.Cj.VDa = function() {
  31130. var c = f.Cj.KDa();
  31131. c.fga();
  31132. return c
  31133. };
  31134. var Xa = 0,
  31135. $a = 1,
  31136. Ya = 2,
  31137. Za = 3,
  31138. ab = 4,
  31139. db = 5,
  31140. fb = 6,
  31141. cb = 7,
  31142. kb = 8,
  31143. lb = 9,
  31144. pb = 10,
  31145. rb = 11,
  31146. sb = 12,
  31147. wb = 13,
  31148. xb = 14,
  31149. yb = 15,
  31150. zb = 16,
  31151. Ab = 17,
  31152. Db = 18,
  31153. Bb = 19,
  31154. gb = 20,
  31155. Hb = 21,
  31156. qb = 22,
  31157. Jb = 23,
  31158. Cb = 24,
  31159. Ib = 25,
  31160. eb = 26,
  31161. bb = 27,
  31162. Ta = 0,
  31163. Ua = 1,
  31164. Wa = 2,
  31165. Yb = 0,
  31166. Zb = 1,
  31167. $b = 2,
  31168. Kb = 0,
  31169. Mb = 1,
  31170. Lb = 2,
  31171. Nb = 3,
  31172. Vb = 4,
  31173. Wb = 5,
  31174. Xb = 1;
  31175. f.lD = f.v.extend({
  31176. RE: null,
  31177. CSa: function() {
  31178. return this.RE
  31179. },
  31180. Iga: function(c) {
  31181. this.RE = c
  31182. }
  31183. });
  31184. f.lD.create = function() {
  31185. return new f.lD
  31186. };
  31187. f.Mb = f.N.extend({
  31188. qn: !1,
  31189. Mh: null,
  31190. Tl: "",
  31191. wqa: 0,
  31192. Fg: 0,
  31193. Zs: 0,
  31194. IY: null,
  31195. vt: null,
  31196. Td: null,
  31197. Pc: null,
  31198. yv: null,
  31199. cn: null,
  31200. QE: null,
  31201. lV: null,
  31202. nL: null,
  31203. rz: null,
  31204. nw: null,
  31205. ow: null,
  31206. hX: null,
  31207. PU: null,
  31208. vA: null,
  31209. wA: null,
  31210. uA: null,
  31211. IOa: !1,
  31212. ctor: function(c, d, e, g) {
  31213. this.IY = [];
  31214. this.vt = [];
  31215. this.Fg = this.Zs = -1;
  31216. 0 != arguments.length && (c instanceof f.Mb ? (this.vt = c.vt, this.QE = c.QE, this.nL = c.nL, this.rz = c.rz, this.lV = c.lV, this.vA = c.vA, this.wA = c.wA, this.uA = c.uA, this.nw = c.nw, this.ow = c.ow, this.Tl = c.Tl) : (this.QE = c, this.nL = d, this.rz = e, this.lV = g))
  31217. },
  31218. ESa: function() {
  31219. return this.Tl
  31220. },
  31221. CGa: function(c) {
  31222. this.Tl = c
  31223. },
  31224. su: function(c, d) {
  31225. this.Pc = new f.a4;
  31226. this.Mh = c;
  31227. this.wqa = c.length;
  31228. this.Fg = this.Zs = 0;
  31229. this.Td = d;
  31230. this.Pc.J2(f.Q.Y);
  31231. return !0
  31232. },
  31233. xOa: function(c) {
  31234. var d = this.LH(),
  31235. e = "load " + c + " failed!";
  31236. d.open("GET", c, !1);
  31237. var g = null;
  31238. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  31239. d.setRequestHeader("Accept-Charset", "x-user-defined");
  31240. d.send(null);
  31241. if (200 != d.status) return f.log(e), null;
  31242. if (d = f.zV(d.responseBody)) g = this.hva(d), this.pra[c] = g
  31243. } else {
  31244. d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dx-user-defined");
  31245. d.send(null);
  31246. if (200 != d.status) return f.log(e), null;
  31247. g = this.hva(d.responseText);
  31248. this.pra[c] = g
  31249. }
  31250. return g
  31251. },
  31252. Vfa: function(c, d, e, g) {
  31253. null == e ? e = f.Q.Y : e instanceof f.a4 && (g = e, e = f.Q.Y);
  31254. var h = f.L.zd(c);
  31255. h || (h = f.L.u0(c), h = f.L.gfa(h), f.L.jj[c] = h);
  31256. return this.wFa(h, d, e, g)
  31257. },
  31258. wFa: function(c, d, e) {
  31259. this.su(c, d);
  31260. c = this.Pc;
  31261. c.J2(e);
  31262. c.HC(d);
  31263. this.nw = [];
  31264. this.ow = [];
  31265. this.vA = [];
  31266. this.wA = [];
  31267. this.uA = [];
  31268. this.yv = new f.uv;
  31269. (d = this.Ufa(!0)) && -1 != c.dz && c.d2(c.dz, 0);
  31270. if (this.qn) {
  31271. e = [];
  31272. c = [];
  31273. for (var g = this.yv, h = g.jB(), k = 0; k < h.length; k++) e.push(h[k]),
  31274. c.push(g.Jm(h[k]));
  31275. this.hX = e;
  31276. this.PU = c
  31277. }
  31278. return d
  31279. },
  31280. EQa: function(c, d, e, g) {
  31281. c = this.Vfa(c, d, e, g);
  31282. d = f.tq.create();
  31283. d.n(c);
  31284. return d
  31285. },
  31286. DSa: function() {
  31287. return this.nL
  31288. },
  31289. FSa: function() {
  31290. return this.rz
  31291. },
  31292. dSa: function() {
  31293. return this.Pc
  31294. },
  31295. v2a: function(c) {
  31296. this.Pc = c
  31297. },
  31298. $Ra: function() {
  31299. return this.cn
  31300. },
  31301. yUa: function() {
  31302. return this.vt
  31303. },
  31304. Lda: function() {
  31305. return this.Td
  31306. },
  31307. Bc: function(c) {
  31308. for (var d = 0; !this.o$();) d++;
  31309. for (var e = 0, g = d - 1; 0 <= g; g--) this.o$() && (e |= 1 << g);
  31310. e |= 1 << d;
  31311. c = c ? e % 2 ? 0 | e / 2 : 0 | -e / 2 : e - 1;
  31312. this.fqa();
  31313. return c
  31314. },
  31315. ca: function() {
  31316. var c =
  31317. this.Mh[this.Fg];
  31318. this.Fg++;
  31319. return c
  31320. },
  31321. DI: function() {
  31322. return 0 != this.ca()
  31323. },
  31324. $b: function() {
  31325. switch (this.ca()) {
  31326. case 0:
  31327. return 0;
  31328. case 1:
  31329. return 1;
  31330. case 2:
  31331. return -1;
  31332. case 3:
  31333. return 0.5;
  31334. case 4:
  31335. return this.Bc(!0);
  31336. default:
  31337. return this.FV(23, 8)
  31338. }
  31339. },
  31340. FV: function(c, d) {
  31341. var e = c + d + 1,
  31342. g = e >> 3;
  31343. this.sV(e);
  31344. var e = Math.pow(2, d - 1) - 1,
  31345. h = this.yaa(c + d, 1, g),
  31346. k = this.yaa(c, d, g),
  31347. m = 0,
  31348. n = 2,
  31349. p = 0;
  31350. do
  31351. for (var s = this.qN(++p, g), u = c % 8 || 8, v = 1 << u; v >>= 1;) s & v && (m += 1 / n), n *= 2; while (c -= u);
  31352. this.Fg += g;
  31353. return k == (e << 1) + 1 ? m ? NaN : h ? -Infinity : Infinity : (1 + -2 * h) * (k || m ?
  31354. k ? Math.pow(2, k - e) * (1 + m) : Math.pow(2, -e + 1) * m : 0)
  31355. },
  31356. yaa: function(c, d, e) {
  31357. var g = (c + d) % 8,
  31358. h = c % 8,
  31359. k = e - (c >> 3) - 1;
  31360. c = e + (-(c + d) >> 3);
  31361. var m = k - c;
  31362. d = this.qN(k, e) >> h & (1 << (m ? 8 - h : d)) - 1;
  31363. for (m && g && (d += (this.qN(c++, e) & (1 << g) - 1) << (m-- << 3) - h); m;) d += this.tY(this.qN(c++, e), (m-- << 3) - h);
  31364. return d
  31365. },
  31366. qN: function(c, d) {
  31367. return this.Mh[this.Fg + d - c - 1]
  31368. },
  31369. tY: function(c, d) {
  31370. for (++d; --d; c = 1073741824 == ((c %= 2147483648) & 1073741824) ? 2 * c : 2 * (c - 1073741824) + 2147483648);
  31371. return c
  31372. },
  31373. sV: function(c) {
  31374. if (!(this.Fg + Math.ceil(c / 8) < this.Mh.length)) throw Error("Index out of bound");
  31375. },
  31376. Bf: function() {
  31377. return this.IY[this.Bc(!1)]
  31378. },
  31379. IXa: function() {
  31380. return this.qn
  31381. },
  31382. ZUa: function() {
  31383. return this.vA
  31384. },
  31385. $Ua: function() {
  31386. return this.wA
  31387. },
  31388. YUa: function() {
  31389. return this.uA
  31390. },
  31391. aVa: function() {
  31392. return this.nw
  31393. },
  31394. bVa: function() {
  31395. return this.ow
  31396. },
  31397. LUa: function() {
  31398. return this.hX
  31399. },
  31400. fSa: function() {
  31401. return this.PU
  31402. },
  31403. eSa: function() {
  31404. return this.yv
  31405. },
  31406. Dga: function(c) {
  31407. this.yv = c
  31408. },
  31409. Zba: function(c) {
  31410. this.vA.push(c)
  31411. },
  31412. $ba: function(c) {
  31413. this.wA.push(c)
  31414. },
  31415. Yba: function(c) {
  31416. this.uA.push(c)
  31417. },
  31418. vO: function(c) {
  31419. this.Pc.vO(c)
  31420. },
  31421. wO: function(c) {
  31422. this.Pc.wO(c)
  31423. },
  31424. uO: function(c) {
  31425. this.Pc.uO(c)
  31426. },
  31427. Ufa: function(c) {
  31428. if (!this.Mta() || !this.Pta() || !this.Nta()) return null;
  31429. var d = this.zaa();
  31430. this.yv.ul(this.Pc, d);
  31431. c && this.W8(d);
  31432. return d
  31433. },
  31434. vPa: function(c) {
  31435. this.nw.push(c)
  31436. },
  31437. wPa: function(c) {
  31438. null != c && this.ow.push(c)
  31439. },
  31440. W8: function(c) {
  31441. c.userObject = null;
  31442. c = c.re();
  31443. for (var d = 0, e = c.length; d < e; d++) this.W8(c[d])
  31444. },
  31445. Lta: function(c) {
  31446. var d = this.Bc(!1);
  31447. if (!d) return !0;
  31448. for (var e = new f.hS, g = this.qn, h = this.Pc, k = e.$q, m = 0; m < d; m++) {
  31449. var n = this.$b(),
  31450. p = this.Bf(),
  31451. s = this.Bc(!1),
  31452. u = [p, s],
  31453. v = new f.AJ;
  31454. v.setTime(n);
  31455. v.ue(u);
  31456. g && h.CM.push(s + ":" + p);
  31457. k.push(v)
  31458. }
  31459. c.DGa(e);
  31460. return !0
  31461. },
  31462. Ota: function(c) {
  31463. var d = this.Bc(!1);
  31464. if (!d) return !0;
  31465. for (var e = new f.hS, g = e.$q, h = 0; h < d; h++) {
  31466. var k = this.$b(),
  31467. m = this.Bf(),
  31468. n = this.$b(),
  31469. p = this.$b(),
  31470. s = this.$b(),
  31471. m = [m, n, p, s],
  31472. n = new f.AJ;
  31473. n.setTime(k);
  31474. n.ue(m);
  31475. g.push(n)
  31476. }
  31477. c.MHa(e);
  31478. return !0
  31479. },
  31480. Nta: function() {
  31481. for (var c = this.Pc.MA, d = this.Bc(!1), e = 0; e < d; e++) {
  31482. var g = new f.Gja;
  31483. g.Ei(this.$b());
  31484. g.gf(this.Bf());
  31485. g.JHa(this.Bc(!1));
  31486. g.FGa(this.Bc(!0));
  31487. if (!this.Lta(g) || !this.Ota(g)) return !1;
  31488. c.push(g)
  31489. }
  31490. this.Pc.zGa(this.Bc(!0));
  31491. return !0
  31492. },
  31493. vFa: function(c) {
  31494. var d = new f.AJ;
  31495. d.setTime(this.$b());
  31496. var e = this.Bc(!1),
  31497. g = 0,
  31498. h = null;
  31499. if (2 === e || 3 === e || 4 === e || 5 === e || 6 === e || 7 === e) g = this.$b();
  31500. d.Iu(e);
  31501. d.RGa(g);
  31502. c == lb ? h = this.DI() : c == sb ? h = this.ca() : c == wb ? (c = f.color(this.ca(), this.ca(), this.ca()), h = f.KJ.create(c)) : c == bb ? h = [this.$b(), this.$b()] : c == db ? h = this.$b() : c == ab || c == Xa || c == bb ? h = [this.$b(), this.$b()] : c == pb && (c = this.Bf(), e = this.Bf(), "" == c ? (e = this.Tl + e, c = f.nb.vd(e), e = c.e(), h = f.Li.create(c, x(0, 0, e.width, e.height))) : (c = this.Tl + c, g = f.Je, -1 == this.vt.indexOf(c) &&
  31503. (g.vp(c), this.vt.push(c)), h = g.Ca(e)));
  31504. d.ue(h);
  31505. return d
  31506. },
  31507. Mta: function() {
  31508. if (null == this.Mh) return !1;
  31509. var c = this.Rta(this.Fg, 4, !0);
  31510. this.Fg += 4;
  31511. if ("ccbi" != c) return !1;
  31512. c = this.Bc(!1);
  31513. if (5 != c) return f.log("WARNING! Incompatible ccbi file version (file: " + c + " reader: 5)"), !1;
  31514. this.qn = this.DI();
  31515. this.Pc.qn = this.qn;
  31516. return !0
  31517. },
  31518. Rta: function(c, d, e) {
  31519. c = "";
  31520. var g = this.Mh,
  31521. h = this.Fg;
  31522. if (e)
  31523. for (e = d - 1; 0 <= e; e--) c += String.fromCharCode(g[h + e]);
  31524. else
  31525. for (e = 0; e < d; e++) c += String.fromCharCode(g[h + e]);
  31526. return c
  31527. },
  31528. Pta: function() {
  31529. for (var c =
  31530. this.Bc(!1), d = 0; d < c; d++) this.Qta();
  31531. return !0
  31532. },
  31533. Qta: function() {
  31534. for (var c = this.ca(), d = this.ca(), c = c << 8 | d, d = "", e = this.Mh, g = this.Fg, h = 0; h < c; h++) var k = e[g + h].toString("16").toUpperCase(),
  31535. k = 1 < k.length ? k : "0" + k,
  31536. d = d + ("%" + k);
  31537. d = decodeURIComponent(d);
  31538. this.Fg += c;
  31539. this.IY.push(d)
  31540. },
  31541. zaa: function(c) {
  31542. var d = this.Bf(),
  31543. e, g = this.qn,
  31544. h = this.Pc;
  31545. g && (e = this.Bf());
  31546. var k = this.Bc(!1),
  31547. m;
  31548. k != Yb && (m = this.Bf());
  31549. var n = this.QE.pda(d);
  31550. n || (n = this.QE.pda("CCNode"));
  31551. d = n.MDa(c, this);
  31552. h.gm || h.GHa(d);
  31553. g && d == h.gm && h.PGa(e);
  31554. var p = new f.uv,
  31555. s = this.cn = [],
  31556. u = this.Bc(!1);
  31557. for (e = 0; e < u; ++e) {
  31558. for (var v = this.Bc(!1), z = new f.uv, A = this.Bc(!1), B = 0; B < A; ++B) {
  31559. var C = new f.hS;
  31560. C.gf(this.Bf());
  31561. C.aJ(this.Bc(!1));
  31562. s.push(C.getName());
  31563. for (var G = this.Bc(!1), L = C.$q, O = 0; O < G; ++O) {
  31564. var R = this.vFa(C.zc);
  31565. L.push(R)
  31566. }
  31567. z.ul(C, C.getName())
  31568. }
  31569. p.ul(z, v)
  31570. }
  31571. 0 < p.count() && h.zO(d, p);
  31572. n.UEa(d, c, this);
  31573. d instanceof f.lD && (e = d.RE, e.o(d.Od()), e.yh(d.Cx()), e.jb(d.ka), e.tb(d.ra), e.Nm(d.Em()), e.za(!0), h.SDa(d, e), d.Iga(null), d = e);
  31574. e = null;
  31575. k != Yb && g && (k == Zb ? (h.Qva(m), h.Rva(d)) : (this.nw.push(m), this.ow.push(d)));
  31576. if (0 < n.Dz.length && !g && (e = d, null != e && null != e.ZDa))
  31577. for (g = n.Dz.jB(), e = 0; e < g.length; e++);
  31578. this.cn = null;
  31579. g = this.Bc(!1);
  31580. for (e = 0; e < g; e++) h = this.zaa(d), d.n(h);
  31581. return d
  31582. },
  31583. o$: function() {
  31584. var c = 0 != (this.Mh[this.Fg] & 1 << this.Zs);
  31585. this.Zs++;
  31586. if (8 <= this.Zs && (this.Zs = 0, this.Fg++, this.Fg > this.Mh.length)) throw "out of the data bound";
  31587. return c
  31588. },
  31589. fqa: function() {
  31590. this.Zs && (this.Zs = 0, this.Fg++)
  31591. },
  31592. JOa: function() {}
  31593. });
  31594. f.Mb.U8 = 1;
  31595. f.Mb.e4a = function(c) {
  31596. f.Mb.U8 = c
  31597. };
  31598. f.Mb.qu = function() {
  31599. return f.Mb.U8
  31600. };
  31601. f.Mb.l_a = function(c, d, e, g) {
  31602. g = g || f.Mb.l0();
  31603. c = f.Mb.load(c, d, e, g);
  31604. d = f.tq.create();
  31605. d.n(c);
  31606. return d
  31607. };
  31608. f.Mb.Z8 = {};
  31609. f.Mb.O0a = function(c, d) {
  31610. f.Mb.Z8[c] = f.N.extend(d)
  31611. };
  31612. f.Mb.load = function(c, d, e, g) {
  31613. g = g || f.Mb.l0();
  31614. var h = new f.Mb(f.Cj.VDa());
  31615. h.CGa(g);
  31616. if (5 > c.length || c.toLowerCase().lastIndexOf(".ccbi") != c.length - 5) c += ".ccbi";
  31617. c = h.Vfa(c, d, e);
  31618. var k, m, n;
  31619. if (d) {
  31620. g = h.vA;
  31621. var p = h.wA,
  31622. s = h.uA;
  31623. for (e = 0; e < g.length; e++) k = g[e], m = p[e], n = s[e], m instanceof f.Xm ? m.VG(d, d[k], n) : m.Kga(d[k], d);
  31624. g = h.nw;
  31625. p = h.ow;
  31626. for (e = 0; e < g.length; e++) k = g[e], m = p[e], d[k] = m
  31627. }
  31628. g = h.hX;
  31629. h = h.PU;
  31630. if (!g || !h) return c;
  31631. p = f.Mb.Z8;
  31632. for (e = 0; e < g.length; e++) {
  31633. var u = g[e],
  31634. s = h[e];
  31635. u.LPa = s;
  31636. if (k = s.TV) {
  31637. var v = p[k];
  31638. if (!v) throw "Can not find controller : " +
  31639. k;
  31640. v = new v;
  31641. v.yQa = k;
  31642. u.xQa = v;
  31643. v.P1a = u;
  31644. for (var z = s.KL, A = s.LL, B = s.JL, u = 0; u < z.length; u++) k = z[u], m = A[u], n = B[u], m instanceof f.Xm ? m.VG(v, v[k], n) : m.Kga(v[k], v);
  31645. n = s.ML;
  31646. z = s.NL;
  31647. for (u = 0; u < n.length; u++) k = n[u], m = z[u], v[k] = m;
  31648. v.xfa && "function" == typeof v.xfa && v.xfa();
  31649. k = s.CM;
  31650. for (u = 0; u < k.length; u++) n = k[u].split(":"), m = n[0], n = n[1], 1 == m ? s.Jga(f.ua.create(v[n], v), k[u]) : 2 == m && d && s.Jga(f.ua.create(d[n], d), k[u])
  31651. }
  31652. }
  31653. return c
  31654. };
  31655. f.Mb.Jaa = "";
  31656. f.Mb.f4a = function(c) {
  31657. f.Mb.Jaa = c
  31658. };
  31659. f.Mb.l0 = function() {
  31660. return f.Mb.Jaa
  31661. };
  31662. f.Mb.efa = function(c) {
  31663. var d = c.lastIndexOf("/");
  31664. return -1 != d ? c.substring(d + 1, c.length - d) : c
  31665. };
  31666. f.Mb.Oxa = function(c) {
  31667. var d = c.lastIndexOf(".");
  31668. return -1 != d ? c.substring(0, d) : c
  31669. };
  31670. f.Mb.toLowerCase = function(c) {
  31671. return c.toLowerCase()
  31672. };
  31673. f.Mb.rRa = function(c, d) {
  31674. return c.length >= d.length ? 0 == c.lastIndexOf(d) : !1
  31675. };
  31676. f.Mb.concat = function(c, d) {
  31677. return c + d
  31678. };
  31679. f.L.Xp(["ccbi"], f.uqa);
  31680. f.vLa = 0;
  31681. f.jLa = 1;
  31682. f.lMa = 2;
  31683. f.fKa = 3;
  31684. f.fNa = 4;
  31685. f.KJ = f.N.extend({
  31686. Ea: null,
  31687. ctor: function() {
  31688. this.Ea = f.color(0, 0, 0)
  31689. },
  31690. $a: function() {
  31691. return this.Ea
  31692. }
  31693. });
  31694. f.KJ.create = function(c) {
  31695. var d = new f.KJ;
  31696. d && (d.Ea.r = c.r, d.Ea.g = c.g, d.Ea.b = c.b);
  31697. return d
  31698. };
  31699. f.d4 = f.N.extend({
  31700. Kd: null,
  31701. zc: 0,
  31702. iUa: function() {},
  31703. getFloatValue: function() {},
  31704. zSa: function() {},
  31705. BSa: function() {},
  31706. nVa: function() {},
  31707. Uf: function() {
  31708. return this.Kd
  31709. }
  31710. });
  31711. f.d4.create = function() {
  31712. return new f.d4
  31713. };
  31714. f.AJ = f.N.extend({
  31715. Kd: null,
  31716. qba: 0,
  31717. QL: 0,
  31718. XV: 0,
  31719. Uf: function() {
  31720. return this.Kd
  31721. },
  31722. ue: function(c) {
  31723. this.Kd = c
  31724. },
  31725. getTime: function() {
  31726. return this.qba
  31727. },
  31728. setTime: function(c) {
  31729. this.qba = c
  31730. },
  31731. GTa: function() {
  31732. return this.QL
  31733. },
  31734. Iu: function(c) {
  31735. this.QL = c
  31736. },
  31737. FTa: function() {
  31738. return this.XV
  31739. },
  31740. RGa: function(c) {
  31741. this.XV = c
  31742. }
  31743. });
  31744. f.Gja = f.N.extend({
  31745. C: 0,
  31746. nd: "",
  31747. AN: 0,
  31748. pV: 0,
  31749. kL: null,
  31750. JN: null,
  31751. ctor: function() {
  31752. this.nd = ""
  31753. },
  31754. pu: function() {
  31755. return this.C
  31756. },
  31757. Ei: function(c) {
  31758. this.C = c
  31759. },
  31760. getName: function() {
  31761. return this.nd
  31762. },
  31763. gf: function(c) {
  31764. this.nd = c
  31765. },
  31766. NVa: function() {
  31767. return this.AN
  31768. },
  31769. JHa: function(c) {
  31770. this.AN = c
  31771. },
  31772. RSa: function() {
  31773. return this.pV
  31774. },
  31775. FGa: function(c) {
  31776. this.pV = c
  31777. },
  31778. KSa: function() {
  31779. return this.kL
  31780. },
  31781. DGa: function(c) {
  31782. this.kL = c
  31783. },
  31784. TVa: function() {
  31785. return this.JN
  31786. },
  31787. MHa: function(c) {
  31788. this.JN = c
  31789. }
  31790. });
  31791. f.hS = f.N.extend({
  31792. nd: null,
  31793. zc: 0,
  31794. $q: null,
  31795. ctor: function() {
  31796. this.j()
  31797. },
  31798. j: function() {
  31799. this.$q = [];
  31800. this.nd = ""
  31801. },
  31802. getName: function() {
  31803. return this.nd
  31804. },
  31805. gf: function(c) {
  31806. this.nd = c
  31807. },
  31808. IH: function() {
  31809. return this.zc
  31810. },
  31811. aJ: function(c) {
  31812. this.zc = c
  31813. },
  31814. nUa: function() {
  31815. return this.$q
  31816. }
  31817. });
  31818. f.sza = function(c, d, e) {
  31819. var g = r(0, 0);
  31820. 0 === d ? g = c : 1 === d ? (g.x = c.x, g.y = e.height - c.y) : 2 === d ? (g.x = e.width - c.x, g.y = e.height - c.y) : 3 === d ? (g.x = e.width - c.x, g.y = c.y) : 4 === d ? (g.x = e.width * c.x / 100, g.y = e.height * c.y / 100) : 5 === d && (d = f.Mb.qu(), g.x = c.x * d, g.y = c.y * d);
  31821. return g
  31822. };
  31823. f.mW = function(c, d, e, g) {
  31824. var h = r(0, 0);
  31825. 0 === e ? (h.x = c, h.y = d) : 1 === e ? (h.x = c, h.y = g.height - d) : 2 === e ? (h.x = g.width - c, h.y = g.height - d) : 3 === e ? (h.x = g.width - c, h.y = d) : 4 === e ? (h.x = g.width * c / 100, h.y = g.height * d / 100) : 5 === e && (e = f.Mb.qu(), h.x = c * e, h.y = d * e);
  31826. return h
  31827. };
  31828. f.Jha = function(c, d, e, g) {
  31829. if (!c) throw "cc.setRelativeScale(): node should be non-null";
  31830. 5 === g && (g = f.Mb.qu(), d *= g, e *= g);
  31831. c.jb(d);
  31832. c.tb(e)
  31833. };
  31834. f.vKa = f.N.extend({
  31835. vQa: function() {}
  31836. });
  31837. f.a4 = f.N.extend({
  31838. MA: null,
  31839. RF: null,
  31840. gz: null,
  31841. dz: 0,
  31842. gm: null,
  31843. Td: null,
  31844. xN: null,
  31845. Pq: null,
  31846. iG: null,
  31847. ML: null,
  31848. NL: null,
  31849. KL: null,
  31850. LL: null,
  31851. JL: null,
  31852. TV: "",
  31853. SW: "",
  31854. CM: null,
  31855. RW: null,
  31856. OU: null,
  31857. ad: null,
  31858. qn: !1,
  31859. ctor: function() {
  31860. this.xN = t(0, 0);
  31861. this.j()
  31862. },
  31863. j: function() {
  31864. this.MA = [];
  31865. this.RF = new f.uv;
  31866. this.gz = new f.uv;
  31867. this.ML = [];
  31868. this.NL = [];
  31869. this.KL = [];
  31870. this.LL = [];
  31871. this.JL = [];
  31872. this.CM = [];
  31873. this.RW = {};
  31874. return !0
  31875. },
  31876. OVa: function() {
  31877. return this.MA
  31878. },
  31879. j4a: function(c) {
  31880. this.MA = c
  31881. },
  31882. iSa: function() {
  31883. return this.dz
  31884. },
  31885. zGa: function(c) {
  31886. this.dz = c
  31887. },
  31888. GVa: function() {
  31889. return this.gm
  31890. },
  31891. GHa: function(c) {
  31892. this.gm = c
  31893. },
  31894. Lda: function() {
  31895. return this.Td
  31896. },
  31897. HC: function(c) {
  31898. this.Td = c
  31899. },
  31900. wO: function(c) {
  31901. this.LL.push(c)
  31902. },
  31903. vO: function(c) {
  31904. this.KL.push(c)
  31905. },
  31906. uO: function(c) {
  31907. this.JL.push(c)
  31908. },
  31909. Rva: function(c) {
  31910. this.NL.push(c)
  31911. },
  31912. Qva: function(c) {
  31913. this.ML.push(c)
  31914. },
  31915. PGa: function(c) {
  31916. this.TV = c
  31917. },
  31918. ATa: function() {
  31919. return this.TV
  31920. },
  31921. yTa: function() {
  31922. return this.KL
  31923. },
  31924. zTa: function() {
  31925. return this.LL
  31926. },
  31927. xTa: function() {
  31928. return this.JL
  31929. },
  31930. BTa: function() {
  31931. return this.ML
  31932. },
  31933. CTa: function() {
  31934. return this.NL
  31935. },
  31936. oUa: function() {
  31937. return this.SW
  31938. },
  31939. mUa: function() {
  31940. return this.CM
  31941. },
  31942. FVa: function() {
  31943. return this.xN
  31944. },
  31945. J2: function(c) {
  31946. this.xN = t(c.width, c.height)
  31947. },
  31948. NB: function() {
  31949. return this.Pq
  31950. },
  31951. $p: function(c) {
  31952. this.Pq = c
  31953. },
  31954. IVa: function() {
  31955. return this.iG ? this.iG.getName() : null
  31956. },
  31957. hP: function(c) {
  31958. return c ? c.e() : this.xN
  31959. },
  31960. zO: function(c, d) {
  31961. this.RF.ul(d, c)
  31962. },
  31963. Zx: function(c, d, e) {
  31964. var g = this.gz.Jm(d);
  31965. g || (g = new f.uv, this.gz.ul(g, d));
  31966. g.ul(c, e)
  31967. },
  31968. SDa: function(c, d) {
  31969. var e = this.gz,
  31970. g = e.Jm(c);
  31971. null != g && (e.ul(g, d), e.Z1(c));
  31972. e = this.RF;
  31973. g = e.Jm(c);
  31974. null != g && (e.ul(g, d), e.Z1(c))
  31975. },
  31976. tza: function(c) {
  31977. var d = 0,
  31978. e = [];
  31979. c = c.$q;
  31980. for (var g =
  31981. c.length, h = 0; h < g; ++h) {
  31982. var k = c[h],
  31983. m = k.getTime() - d,
  31984. d = k.getTime();
  31985. 0 < m && e.push(f.Nb.create(m));
  31986. m = k.Uf();
  31987. k = m[0];
  31988. m = m[1];
  31989. if (this.qn) k = this.RW[m + ":" + k], null != k && e.push(k);
  31990. else {
  31991. var n;
  31992. m == Zb ? n = this.gm : m == $b && (n = this.Td);
  31993. null != n && (0 < k.length ? (m = 0, null != n.hEa && (m = void 0), 0 == m ? f.log("Skipping selector '" + k + "' since no CCBSelectorResolver is present.") : e.push(f.ua.create(m, n))) : f.log("Unexpected empty selector."))
  31994. }
  31995. }
  31996. return 1 > e.length ? null : f.X.create(e)
  31997. },
  31998. uza: function(c) {
  31999. var d = 0,
  32000. e = [];
  32001. c = c.$q;
  32002. for (var g = c.length, h = 0; h <
  32003. g; ++h) {
  32004. var k = c[h],
  32005. m = k.getTime() - d,
  32006. d = k.getTime();
  32007. 0 < m && e.push(f.Nb.create(m));
  32008. k = k.Uf();
  32009. e.push(f.jS.create(f.Mb.l0() + k[0], parseFloat(k[1]), parseFloat(k[2]), parseFloat(k[3])))
  32010. }
  32011. return 1 > e.length ? null : f.X.create(e)
  32012. },
  32013. S1a: function(c) {
  32014. this.e2(this.zW(c), 0)
  32015. },
  32016. T1a: function(c, d) {
  32017. this.e2(this.zW(c), d)
  32018. },
  32019. e2: function(c, d) {
  32020. if (-1 === c) throw "cc.BuilderAnimationManager.runAnimationsForSequenceIdTweenDuration(): Sequence id should not be -1";
  32021. d = d || 0;
  32022. this.gm.Pm();
  32023. for (var e = this.RF.jB(), g = 0, h = e.length; g < h; g++) {
  32024. var k = e[g];
  32025. k.Pm();
  32026. var m = this.RF.Jm(k).Jm(c),
  32027. n, p = [];
  32028. if (m) {
  32029. var s = m.jB();
  32030. for (n = 0; n < s.length; n++) {
  32031. var u = s[n],
  32032. v = m.Jm(u);
  32033. p.push(u);
  32034. this.qua(k, v, d);
  32035. this.eua(k, v, d)
  32036. }
  32037. }
  32038. if (m = this.gz.Jm(k))
  32039. for (s = m.jB(), n = 0; n < s.length; n++) u = s[n], -1 == p.indexOf(u) && (v = m.Jm(u), null != v && this.eY(u, k, v, d))
  32040. }
  32041. e = this.s$(c);
  32042. g = f.X.create(f.Nb.create(e.pu() + d), f.ua.create(this.hua, this));
  32043. this.gm.V(g);
  32044. e.kL && (g = this.tza(e.kL)) && this.gm.V(g);
  32045. e.JN && (g = this.uza(e.JN)) && this.gm.V(g);
  32046. this.iG = this.s$(c)
  32047. },
  32048. d2: function(c, d) {
  32049. this.e2("string" === typeof c ? this.zW(c) :
  32050. c, d || 0)
  32051. },
  32052. uGa: function(c, d) {
  32053. this.ad = c;
  32054. this.OU = d
  32055. },
  32056. M2a: function(c, d) {
  32057. this.uGa(c, d)
  32058. },
  32059. Jga: function(c, d) {
  32060. this.RW[d] = c
  32061. },
  32062. debug: function() {},
  32063. tF: function(c, d) {
  32064. var e = this.gz.Jm(c);
  32065. return e ? e.Jm(d) : null
  32066. },
  32067. zW: function(c) {
  32068. for (var d = null, e = this.MA, g = 0, h = e.length; g < h; g++)
  32069. if ((d = e[g]) && d.getName() === c) return d.AN;
  32070. return -1
  32071. },
  32072. s$: function(c) {
  32073. for (var d = null, e = this.MA, g = 0, h = e.length; g < h; g++)
  32074. if ((d = e[g]) && d.AN === c) return d;
  32075. return null
  32076. },
  32077. j$: function(c, d, e, g) {
  32078. c = d.getTime() - (c ? c.getTime() : 0);
  32079. var h;
  32080. if ("rotation" === e) return f.gS.create(c,
  32081. d.Uf());
  32082. if ("rotationX" === e) return f.b4.create(c, d.Uf());
  32083. if ("rotationY" === e) return f.c4.create(c, d.Uf());
  32084. if ("opacity" === e) return f.Xc.create(c, d.Uf());
  32085. if ("color" === e) return g = d.Uf().$a(), f.Vy.create(c, g.r, g.g, g.b);
  32086. if ("visible" === e) return d.Uf() ? f.X.create(f.Nb.create(c), f.Ej.create()) : f.X.create(f.Nb.create(c), f.Hl.create());
  32087. if ("displayFrame" === e) return f.X.create(f.Nb.create(c), f.iS.create(d.Uf()));
  32088. if ("position" === e) return e = this.tF(g, e), e = e[2], h = d.Uf(), d = h[0], h = h[1], g = this.hP(g.getParent()), g = f.mW(d,
  32089. h, e, g), f.Dc.create(c, g);
  32090. if ("scale" === e) return e = this.tF(g, e), e = e[2], h = d.Uf(), d = h[0], h = h[1], e === Xb && (g = f.Mb.qu(), d *= g, h *= g), f.Db.create(c, d, h);
  32091. if ("skew" === e) return h = d.Uf(), d = h[0], h = h[1], f.uq.create(c, d, h);
  32092. f.log("BuilderReader: Failed to create animation for property: " + e);
  32093. return null
  32094. },
  32095. eY: function(c, d, e, g) {
  32096. if (0 < g) {
  32097. var h = new f.AJ;
  32098. h.ue(e);
  32099. h.setTime(g);
  32100. h.Iu(1);
  32101. e = this.j$(null, h, c, d);
  32102. d.V(e)
  32103. } else "position" === c ? (c = this.tF(d, c), c = c[2], g = e[0], e = e[1], d.o(f.mW(g, e, c, this.hP(d.getParent())))) : "scale" === c ? (c = this.tF(d,
  32104. c), c = c[2], g = e[0], e = e[1], f.Jha(d, g, e, c)) : "skew" === c ? (g = e[0], e = e[1], d.XI(g), d.YI(e)) : "rotation" === c ? d.yh(e) : "rotationX" == c ? d.h4a(e) : "rotationY" == c ? d.i4a(e) : "opacity" === c ? d.J(e) : "displayFrame" === c ? d.Dd(e) : "color" === c ? (e = e.$a(), 255 === e.r && 255 === e.g && 255 === e.b || d.F(e)) : "visible" === c ? d.za(e || !1) : f.log("unsupported property name is " + c)
  32105. },
  32106. qua: function(c, d, e) {
  32107. var g = d.$q;
  32108. 0 === g.length ? ((g = this.tF(c, d.getName())) || f.log("cc.BuilderAnimationManager._setFirstFrame(): No baseValue found for property"), this.eY(d.getName(),
  32109. c, g, e)) : this.eY(d.getName(), c, g[0].Uf(), e)
  32110. },
  32111. Gra: function(c, d, e) {
  32112. if (1 === d || 0 === d) return c;
  32113. if (2 === d) return f.MD.create(c, e);
  32114. if (3 === d) return f.vs.create(c, e);
  32115. if (4 === d) return f.Cy.create(c, e);
  32116. if (11 === d) return f.wD.create(c);
  32117. if (12 === d) return f.yD.create(c);
  32118. if (13 === d) return f.xD.create(c);
  32119. if (8 === d) return f.AD.create(c);
  32120. if (9 === d) return f.CD.create(c);
  32121. if (10 === d) return f.BD.create(c);
  32122. if (5 === d) return f.JD.create(c, e);
  32123. if (6 === d) return f.LD.create(c, e);
  32124. if (7 === d) return f.KD.create(c, e);
  32125. f.log("BuilderReader: Unkown easing type " +
  32126. d);
  32127. return c
  32128. },
  32129. eua: function(c, d, e) {
  32130. var g = d.$q,
  32131. h = g.length;
  32132. if (1 < h) {
  32133. var k = [];
  32134. e = g[0].getTime() + e;
  32135. 0 < e && k.push(f.Nb.create(e));
  32136. for (e = 0; e < h - 1; ++e) {
  32137. var m = g[e],
  32138. n = this.j$(m, g[e + 1], d.getName(), c);
  32139. n && (n = this.Gra(n, m.QL, m.XV), k.push(n))
  32140. }
  32141. d = f.X.create(k);
  32142. c.V(d)
  32143. }
  32144. },
  32145. hua: function() {
  32146. var c = this.iG;
  32147. this.SW != c.getName() && (this.SW = c.getName());
  32148. c = c.pV;
  32149. this.iG = null; - 1 != c && this.d2(c, 0);
  32150. this.ad && this.OU && this.OU.call(this.ad)
  32151. }
  32152. });
  32153. f.iS = f.Ch.extend({
  32154. pr: null,
  32155. pj: function(c) {
  32156. this.pr = c;
  32157. return !0
  32158. },
  32159. update: function() {
  32160. this.target.Dd(this.pr)
  32161. }
  32162. });
  32163. f.iS.create = function(c) {
  32164. var d = new f.iS;
  32165. return d && d.pj(c) ? d : null
  32166. };
  32167. f.gS = f.M.extend({
  32168. Gw: 0,
  32169. o9: 0,
  32170. j9: 0,
  32171. f: function(c, d) {
  32172. return f.M.prototype.f.call(this, c) ? (this.o9 = d, !0) : !1
  32173. },
  32174. update: function(c) {
  32175. this.target.yh(this.Gw + this.j9 * c)
  32176. },
  32177. R: function(c) {
  32178. f.M.prototype.R.call(this, c);
  32179. this.Gw = this.target.Cx();
  32180. this.j9 = this.o9 - this.Gw
  32181. }
  32182. });
  32183. f.gS.create = function(c, d) {
  32184. var e = new f.gS;
  32185. return e && e.f(c, d) ? e : null
  32186. };
  32187. f.b4 = f.M.extend({});
  32188. f.b4.create = function() {
  32189. throw "rotationX has not been implemented in cocos2d-html5";
  32190. };
  32191. f.c4 = f.M.extend({});
  32192. f.c4.create = function() {
  32193. throw "rotationY has not been implemented in cocos2d-html5";
  32194. };
  32195. f.jS = f.Ch.extend({
  32196. j: function(c) {
  32197. this.ora = c;
  32198. return !0
  32199. },
  32200. update: function() {
  32201. f.pe.zI(this.ora)
  32202. }
  32203. });
  32204. f.jS.create = function(c) {
  32205. var d = new f.jS;
  32206. return d && d.j(c) ? d : null
  32207. };
  32208. f.Rd = {};
  32209. f.Rd.A8 = function(c) {
  32210. for (var d in f.Rd.k1) c[d] = f.Rd.k1[d];
  32211. f.d(c, "x", c.Vc, c.ls);
  32212. f.d(c, "y", c.Zd, c.Lu);
  32213. f.d(c, "width", c.lf, c.Uh);
  32214. f.d(c, "height", c.Gg, c.Th);
  32215. f.d(c, "anchorX", c.l$, c.Xe);
  32216. f.d(c, "anchorY", c.m$, c.Ye);
  32217. f.d(c, "scale", c.AH, c.ib);
  32218. f.d(c, "scaleX", c.sP, c.jb);
  32219. f.d(c, "scaleY", c.BH, c.BH);
  32220. f.d(c, "rotation", c.Cx, c.yh);
  32221. f.d(c, "skewX", c.Uda, c.XI);
  32222. f.d(c, "skewY", c.Vda, c.YI);
  32223. f.d(c, "visible", c.V0, c.za);
  32224. f.d(c, "parent", c.getParent, c.aq);
  32225. f.d(c, "opacity", c.vb, c.J)
  32226. };
  32227. f.Rd.k1 = {
  32228. o: function(c, d) {
  32229. void 0 === d ? (this.oa.x = c.x, this.oa.y = c.y) : (this.oa.x = c, this.oa.y = d);
  32230. this.Ha();
  32231. this.la.nJ(this.oa.x, -this.oa.y)
  32232. },
  32233. Lu: function(c) {
  32234. this.oa.y = c;
  32235. this.Ha();
  32236. this.la.nJ(this.oa.x, -this.oa.y)
  32237. },
  32238. ls: function(c) {
  32239. this.oa.x = c;
  32240. this.Ha();
  32241. this.la.nJ(this.oa.x, -this.oa.y)
  32242. },
  32243. ib: function(c, d) {
  32244. this.ka = c;
  32245. this.ra = d || c;
  32246. this.Ha();
  32247. this.la.resize(this.ka, this.ra)
  32248. },
  32249. jb: function(c) {
  32250. this.ka = c;
  32251. this.Ha();
  32252. this.la.resize(this.ka, this.ra)
  32253. },
  32254. tb: function(c) {
  32255. this.ra = c;
  32256. this.Ha();
  32257. this.la.resize(this.ka, this.ra)
  32258. },
  32259. S: function(c,
  32260. d) {
  32261. var e = this.Eb;
  32262. void 0 === d ? (e.x = c.x, e.y = c.y) : (e.x = c, e.y = d);
  32263. var g = this.Qb,
  32264. h = this.m;
  32265. g.x = h.width * e.x;
  32266. g.y = h.height * e.y;
  32267. this.la.style[f.mc.yu + "TransformOrigin"] = "" + g.x + "px " + -g.y + "px";
  32268. this.ignoreAnchor ? (this.la.style.marginLeft = 0, this.la.style.marginBottom = 0) : (this.la.style.marginLeft = this.fDa ? 0 : -g.x + "px", this.la.style.marginBottom = -g.y + "px");
  32269. this.Ha()
  32270. },
  32271. Xe: function(c) {
  32272. var d = this.Eb;
  32273. c !== d.x && (d.x = c, c = this.Qb, c.x = this.m.width * d.x, this.la.style[f.mc.yu + "TransformOrigin"] = "" + c.x + "px " + -c.y + "px", this.ignoreAnchor ?
  32274. (this.la.style.marginLeft = 0, this.la.style.marginBottom = 0) : this.la.style.marginLeft = this.fDa ? 0 : -c.x + "px", this.Ha())
  32275. },
  32276. Ye: function(c) {
  32277. var d = this.Eb;
  32278. c !== d.y && (d.y = c, c = this.Qb, c.y = this.m.height * d.y, this.la.style[f.mc.yu + "TransformOrigin"] = "" + c.x + "px " + -c.y + "px", this.ignoreAnchor ? (this.la.style.marginLeft = 0, this.la.style.marginBottom = 0) : this.la.style.marginBottom = -c.y + "px", this.Ha())
  32279. },
  32280. Ga: function(c, d) {
  32281. var e = this.m;
  32282. void 0 === d ? (e.width = c.width, e.height = c.height) : (e.width = c, e.height = d);
  32283. var g = this.Qb,
  32284. h = this.Eb;
  32285. g.x = e.width * h.x;
  32286. g.y = e.height * h.y;
  32287. this.la.width = e.width;
  32288. this.la.height = e.height;
  32289. this.S(this.bk());
  32290. this.canvas && (this.canvas.width = e.width, this.canvas.height = e.height);
  32291. this.Ha();
  32292. this.V1()
  32293. },
  32294. Uh: function(c) {
  32295. var d = this.m;
  32296. c !== d.width && (d.width = c, c = this.Eb, this.Qb.x = d.width * c.x, this.la.width = d.width, this.anchorX = c.x, this.canvas && (this.canvas.width = d.width), this.Ha(), this.V1())
  32297. },
  32298. Th: function(c) {
  32299. var d = this.m;
  32300. c !== d.height && (d.height = c, c = this.Eb, this.Qb.y = d.height * c.y, this.la.height = d.height, this.anchorY = c.y,
  32301. this.canvas && (this.canvas.height = d.height), this.Ha(), this.V1())
  32302. },
  32303. yh: function(c) {
  32304. this.LA != c && (this.bj = this.hm = c, this.Cn = Math.PI / 180 * this.bj, this.Aw = Math.PI / 180 * this.hm, this.Ha(), this.la.rotate(c))
  32305. },
  32306. XI: function(c) {
  32307. this.og = c;
  32308. this.Ha();
  32309. this.la.Pha(this.og, this.pg)
  32310. },
  32311. YI: function(c) {
  32312. this.pg = c;
  32313. this.Ha();
  32314. this.la.Pha(this.og, this.pg)
  32315. },
  32316. za: function(c) {
  32317. this.Na = c;
  32318. this.Ha();
  32319. this.la && (this.la.style.display = c ? "block" : "none")
  32320. },
  32321. Cw: function(c) {
  32322. this.Ya = c;
  32323. this.Ha();
  32324. this.la && (this.la.zIndex = c)
  32325. },
  32326. aq: function(c) {
  32327. this.Yb = c;
  32328. null !== c && (c.S(c.bk()), this.Ha(), f.Rd.EQ(this))
  32329. },
  32330. lk: function() {
  32331. this.Dm().Km(this);
  32332. this.IB().Km(this);
  32333. f.Qa.Km(this);
  32334. this.la && !this.la.parentNode && (this.getParent() ? f.Rd.EQ(this) : this.la.cx(f.container));
  32335. this.la && (this.la.style.visibility = "visible")
  32336. },
  32337. pause: function() {
  32338. this.Dm().as(this);
  32339. this.IB().as(this);
  32340. f.Qa.as(this);
  32341. this.la && (this.la.style.visibility = "hidden")
  32342. },
  32343. De: function() {
  32344. this.Pm();
  32345. this.pJ();
  32346. this.Bk(this.i, f.v.Fj.De);
  32347. this.la && this.la.remove()
  32348. },
  32349. QFa: function() {
  32350. this.la.remove()
  32351. },
  32352. J: function(c) {
  32353. this.Ib =
  32354. c;
  32355. this.la.style.opacity = c / 255
  32356. },
  32357. V1: function() {
  32358. if (this.Mea) {
  32359. var c = this.i;
  32360. this.i = [];
  32361. f.q.prototype.I.call(this, this.vB);
  32362. this.i = c
  32363. } else f.q.prototype.I.call(this, this.vB)
  32364. }
  32365. };
  32366. f.Rd.aua = function() {
  32367. var c = f.mc("#EGLViewDiv");
  32368. if (c) {
  32369. var d = f.view,
  32370. e = d.tH(),
  32371. g = d.ph,
  32372. h = d.Dda(),
  32373. k = d.Qq,
  32374. m = e.width,
  32375. n = e.height;
  32376. 0 === e.width && 0 === e.height && (m = h.width, n = h.height);
  32377. e = g.width / k;
  32378. 0 === g.width && 0 === g.height && (e = h.width);
  32379. c.style.position = "absolute";
  32380. c.style.width = m + "px";
  32381. c.style.maxHeight = n + "px";
  32382. c.style.margin = 0;
  32383. c.resize(d.ka / k, d.ra / k);
  32384. c.style.left = (e - m) / 2 + "px";
  32385. c.style.bottom = "0px"
  32386. }
  32387. };
  32388. f.Rd.EQ = function(c) {
  32389. var d = c.getParent();
  32390. if (d && c.la)
  32391. if (d.la || (f.Rd.placeHolder(d), d.aq = f.Rd.k1.aq), c.la.cx(d.la), d.S(d.bk()), d.getParent()) f.Rd.EQ(d);
  32392. else if (d.dd)
  32393. if (c = f.mc("#EGLViewDiv")) d.la.cx(c);
  32394. else {
  32395. c = f.bD("div");
  32396. c.id = "EGLViewDiv";
  32397. var e = f.view,
  32398. g = e.tH(),
  32399. h = e.ph,
  32400. k = e.Dda(),
  32401. m = e.Qq,
  32402. n = g.width,
  32403. p = g.height;
  32404. 0 === g.width && 0 === g.height && (n = k.width, p = k.height);
  32405. g = h.width / m;
  32406. 0 === h.width && 0 === h.height && (g = k.width);
  32407. c.style.position = "absolute";
  32408. c.style.width = n + "px";
  32409. c.style.maxHeight = p + "px";
  32410. c.style.margin = 0;
  32411. c.resize(e.ka /
  32412. m, e.ra / m);
  32413. c.style.left = (g - n) / 2 + "px";
  32414. c.style.bottom = "0px";
  32415. d.la.cx(c);
  32416. c.cx(f.container)
  32417. }
  32418. };
  32419. f.Rd.setTransform = function(c) {
  32420. if (c.vB)
  32421. if (c.vB.translate(c.Bp().x, c.Bp().y), c.Mea) {
  32422. var d = c.i;
  32423. c.i = [];
  32424. f.q.prototype.I.call(c, c.vB);
  32425. c.i = d
  32426. } else f.q.prototype.I.call(c, c.vB);
  32427. c.la && (c.la.position.x = c.Vc(), c.la.position.y = -c.Zd(), c.la.rotation = c.Cx(), c.la.scale = {
  32428. x: c.ka,
  32429. y: c.ra
  32430. }, c.la.ky = {
  32431. x: c.og,
  32432. y: c.pg
  32433. }, c.S && c.S(c.bk()), c.la.ny())
  32434. };
  32435. f.Rd.jza = function(c) {
  32436. c.la = f.bD("div");
  32437. c.canvas = f.bD("canvas");
  32438. var d = c.e();
  32439. c.canvas.width = d.width;
  32440. c.canvas.height = d.height;
  32441. c.la.style.position = "absolute";
  32442. c.la.style.bottom = 0;
  32443. c.vB = c.canvas.getContext("2d");
  32444. c.la.appendChild(c.canvas);
  32445. c.getParent() && f.Rd.EQ(c);
  32446. c.Mea = !0
  32447. };
  32448. f.Rd.placeHolder = function(c) {
  32449. c.la = f.bD("div");
  32450. c.placeholder = !0;
  32451. c.la.style.position = "absolute";
  32452. c.la.style.bottom = 0;
  32453. c.la.style.width = (c.e().width || f.Q.Y.width) + "px";
  32454. c.la.style.maxHeight = (c.e().height || f.Q.Y.height) + "px";
  32455. c.la.style.margin = 0;
  32456. f.Rd.setTransform(c);
  32457. c.la.ny();
  32458. f.Rd.A8(c)
  32459. };
  32460. f.Rd.l_ = function(c) {
  32461. if (1 < arguments.length) f.Rd.l_(arguments);
  32462. else if (1 != arguments.length || arguments[0].length)
  32463. for (var d = arguments[0], e = 0; e < d.length; e++) d[e] instanceof f.q ? d[e].la || f.Rd.jza(d[e]) : f.log("DOM converter only supports sprite and menuitems yet"), f.Rd.A8(d[e]), d[e].I = function() {}, d[e].transform = function() {}, f.Rd.setTransform(d[e]), d[e].za(d[e].Na);
  32464. else f.Rd.l_([arguments[0]])
  32465. };
  32466. f.ama = 0;
  32467. f.xLa = 1;
  32468. f.ALa = 2;
  32469. f.zLa = 3;
  32470. f.yLa = 4;
  32471. f.jla = 0;
  32472. f.bLa = 1;
  32473. f.cLa = 2;
  32474. f.dLa = 3;
  32475. f.fLa = 4;
  32476. f.aLa = 5;
  32477. f.eLa = 6;
  32478. f.hla = 0;
  32479. f.ila = 1;
  32480. f.$Ka = 2;
  32481. f.ZKa = 3;
  32482. f.YKa = 4;
  32483. f.iLa = f.N.extend({
  32484. iRa: function() {},
  32485. jRa: function() {},
  32486. lRa: function() {},
  32487. kRa: function() {}
  32488. });
  32489. f.WD = f.Xm.extend({
  32490. UV: null,
  32491. Pq: null,
  32492. kra: f.jla,
  32493. jra: f.ila,
  32494. Rsa: f.ama,
  32495. WOa: "",
  32496. wn: "",
  32497. CG: null,
  32498. AA: null,
  32499. $$: 50,
  32500. eqa: 18,
  32501. Sd: null,
  32502. Gz: 14,
  32503. RL: "Arial",
  32504. iN: "",
  32505. $F: 14,
  32506. ZOa: !1,
  32507. ta: "EditBox",
  32508. ctor: function(c) {
  32509. function d() {
  32510. h.blur()
  32511. }
  32512. f.Xm.prototype.ctor.call(this);
  32513. this.CG = f.color.WHITE;
  32514. this.AA = f.color.GRAY;
  32515. this.Ga(c);
  32516. var e = this.UV = new f.q;
  32517. e.ma = function() {};
  32518. this.n(e);
  32519. var g = this,
  32520. h = this.Sd = f.fd("input");
  32521. h.type = "text";
  32522. h.style.fontSize = this.Gz + "px";
  32523. h.style.color = "#000000";
  32524. h.style.border = 0;
  32525. h.style.background = "transparent";
  32526. h.style.width =
  32527. "100%";
  32528. h.style.height = "100%";
  32529. h.style.active = 0;
  32530. h.style.outline = "medium";
  32531. f.ub(h, "input", function() {});
  32532. f.ub(h, "keypress", function(c) {
  32533. c.keyCode === f.Jy.N_ && (c.stopPropagation(), c.preventDefault(), f.Sb.focus())
  32534. });
  32535. f.ub(h, "focus", function() {
  32536. this.value == g.wn && (this.value = "", this.style.fontSize = g.Gz + "px", this.style.color = f.xp(g.CG));
  32537. f.ub(f.Sb, "click", d)
  32538. });
  32539. f.ub(h, "blur", function() {
  32540. "" == this.value && (this.value = g.wn, this.style.fontSize = g.$F + "px", this.style.color = f.xp(g.AA));
  32541. f.Sb.removeEventListener("click", d)
  32542. });
  32543. f.Rd.l_(e);
  32544. e.la.appendChild(h);
  32545. e.la.W4a = !1;
  32546. e.la.style.width = c.width - 6 + "px";
  32547. e.la.style.height = c.height - 6 + "px";
  32548. e.canvas.remove()
  32549. },
  32550. h3a: function(c, d) {
  32551. this.Gz = d;
  32552. this.RL = c;
  32553. this.EN()
  32554. },
  32555. mr: function(c) {
  32556. if (c = f.ia.eM.exec(c)) this.Gz = parseInt(c[1]), this.RL = c[2], this.EN()
  32557. },
  32558. de: function(c) {
  32559. this.RL = c;
  32560. this.EN()
  32561. },
  32562. Qd: function(c) {
  32563. this.Gz = c;
  32564. this.EN()
  32565. },
  32566. EN: function() {
  32567. this.Sd.value != this.wn && (this.Sd.style.fontFamily = this.RL, this.Sd.style.fontSize = this.Gz + "px")
  32568. },
  32569. T2: function(c) {
  32570. f.log("Please use the setString");
  32571. null != c && ("" ==
  32572. c ? (this.Sd.value = this.wn, this.Sd.style.color = f.xp(this.AA)) : (this.Sd.value = c, this.Sd.style.color = f.xp(this.CG)))
  32573. },
  32574. wa: function(c) {
  32575. null != c && ("" == c ? (this.Sd.value = this.wn, this.Sd.style.color = f.xp(this.AA)) : (this.Sd.value = c, this.Sd.style.color = f.xp(this.CG)))
  32576. },
  32577. SGa: function(c) {
  32578. this.CG = c;
  32579. this.Sd.value != this.wn && (this.Sd.style.color = f.xp(c))
  32580. },
  32581. ks: function(c) {
  32582. !isNaN(c) && 0 < c && (this.$$ = c, this.Sd.maxLength = c)
  32583. },
  32584. Ax: function() {
  32585. return this.$$
  32586. },
  32587. Gi: function(c) {
  32588. if (null != c) {
  32589. var d = this.wn;
  32590. this.wn = c;
  32591. this.Sd.value == d &&
  32592. (this.Sd.value = c, this.Sd.style.color = f.xp(this.AA), this.kG())
  32593. }
  32594. },
  32595. W3a: function(c, d) {
  32596. this.iN = c;
  32597. this.$F = d;
  32598. this.kG()
  32599. },
  32600. yua: function(c) {
  32601. if (c = f.ia.eM.exec(c)) this.iN = c[2], this.$F = parseInt(c[1]), this.kG()
  32602. },
  32603. rHa: function(c) {
  32604. this.iN = c;
  32605. this.kG()
  32606. },
  32607. sHa: function(c) {
  32608. this.$F = c;
  32609. this.kG()
  32610. },
  32611. kG: function() {
  32612. this.Sd.value == this.wn && (this.Sd.style.fontFamily = this.iN, this.Sd.style.fontSize = this.$F + "px")
  32613. },
  32614. qHa: function(c) {
  32615. this.AA = c;
  32616. this.Sd.value == this.wn && (this.Sd.style.color = f.xp(c))
  32617. },
  32618. XGa: function(c) {
  32619. this.jra = c;
  32620. this.Sd.type =
  32621. c == f.hla ? "password" : "text"
  32622. },
  32623. fWa: function() {
  32624. f.log("Please use the getString");
  32625. return this.Sd.value
  32626. },
  32627. qc: function() {
  32628. return this.Sd.value
  32629. },
  32630. ACa: function(c, d) {
  32631. return this.yea(d) ? (this.UV.x = 3, this.UV.y = 3, this.$ha(!1), this.He(c), this.y = this.x = 0, this.B8(this, this.JIa, f.G4), !0) : !1
  32632. },
  32633. $p: function(c) {
  32634. this.Pq = c
  32635. },
  32636. RB: function() {
  32637. return this.wn
  32638. },
  32639. YGa: function(c) {
  32640. this.kra = c
  32641. },
  32642. EHa: function(c) {
  32643. this.Rsa = c
  32644. },
  32645. Z0: function(c) {
  32646. var d = f.WD.$h(this);
  32647. d.y -= 4;
  32648. d.nXa(c.end) ? this.eqa = c.end.HUa() - d.IUa() : f.log("needn't to adjust view layout.")
  32649. },
  32650. Pea: function() {},
  32651. Qea: function() {},
  32652. Oea: function() {},
  32653. JIa: function() {},
  32654. bXa: function(c, d) {
  32655. this.ira = c.width;
  32656. this.la.style.width = this.ira.toString() + "px";
  32657. this.hra = c.height;
  32658. this.la.style.height = this.hra.toString() + "px";
  32659. this.la.style.backgroundColor = f.xp(d)
  32660. }
  32661. });
  32662. q = f.WD.prototype;
  32663. f.d(q, "font", null, q.mr);
  32664. f.d(q, "fontName", null, q.de);
  32665. f.d(q, "fontSize", null, q.Qd);
  32666. f.d(q, "fontColor", null, q.SGa);
  32667. f.d(q, "string", q.qc, q.wa);
  32668. f.d(q, "maxLength", q.Ax, q.ks);
  32669. f.d(q, "placeHolder", q.RB, q.Gi);
  32670. f.d(q, "placeHolderFont", null, q.yua);
  32671. f.d(q, "placeHolderFontName", null, q.rHa);
  32672. f.d(q, "placeHolderFontSize", null, q.sHa);
  32673. f.d(q, "placeHolderFontColor", null, q.qHa);
  32674. f.d(q, "inputFlag", null, q.XGa);
  32675. f.d(q, "delegate", null, q.$p);
  32676. f.d(q, "inputMode", null, q.YGa);
  32677. f.d(q, "returnType", null, q.EHa);
  32678. q = null;
  32679. f.WD.$h = function(c) {
  32680. var d = c.e();
  32681. return f.Ki(x(0, 0, d.width, d.height), c.il())
  32682. };
  32683. f.WD.create = function(c, d, e, g) {
  32684. var h = new f.WD(c);
  32685. h.ACa(c, d) && (e && h.aR(e, f.av), g && h.aR(g, f.$u));
  32686. return h
  32687. };
  32688. f.Kl = f.ja.extend({
  32689. lh: null,
  32690. vN: !1,
  32691. Hsa: function(c, d) {
  32692. this.vN = !0;
  32693. this.lh.push(c);
  32694. c.Cw(d)
  32695. },
  32696. ctor: function() {
  32697. f.ja.prototype.ctor.call(this);
  32698. this.lh = []
  32699. },
  32700. bd: function(c, d, e) {
  32701. f.assert(null != c, "child must be non-nil");
  32702. f.assert(!c.parent, "child already added. It can't be added again");
  32703. d = d || c.Ya;
  32704. e && c.Nm(e);
  32705. this.Hsa(c, d);
  32706. c.aq(this);
  32707. c.sha(f.TQ);
  32708. this.dd && (c.ba(), this.AM && c.sj());
  32709. this.dg && this.Hz();
  32710. this.Dg && this.Iz()
  32711. },
  32712. ZAa: function(c) {
  32713. f.assert(c != f.hK, "Invalid tag");
  32714. for (var d = this.lh, e = 0, g = d.length; e < g; e++)
  32715. if (d.Em() ==
  32716. c) return d[e];
  32717. return null
  32718. },
  32719. Ci: function(c, d) {
  32720. null == d && (d = !0);
  32721. var e = this.lh;
  32722. if (0 !== e.length) {
  32723. var g = e.indexOf(c); - 1 < g && (this.dd && (c.uh(), c.Ra()), d && c.De(), c.aq(null), e.splice(g, 1))
  32724. }
  32725. },
  32726. s1a: function(c, d) {
  32727. f.assert(c != f.hK, "Invalid tag");
  32728. null == d && (d = !0);
  32729. var e = this.ZAa(c);
  32730. null == e ? f.log("cocos2d: removeChildByTag(tag \x3d %d): child not found!", c) : this.Ci(e, d)
  32731. },
  32732. b1a: function() {
  32733. this.JFa(!0)
  32734. },
  32735. JFa: function(c) {
  32736. null == c && (c = !0);
  32737. for (var d = this.lh, e = 0, g = d.length; e < g; e++) {
  32738. var h = d[e];
  32739. this.dd && (h.uh(), h.Ra());
  32740. c && h.De();
  32741. h.aq(null)
  32742. }
  32743. d.length = 0
  32744. },
  32745. D1a: function(c, d) {
  32746. f.assert(null != c, "Child must be non-nil");
  32747. this.vN = !0;
  32748. c.sha(f.TQ++);
  32749. c.Cw(d)
  32750. },
  32751. HR: function() {
  32752. if (this.vN) {
  32753. var c = this.lh,
  32754. d = c.length,
  32755. e, g, h;
  32756. for (e = 1; e < d; e++) {
  32757. h = c[e];
  32758. for (g = e - 1; 0 <= g;) {
  32759. if (h.Ya < c[g].Ya) c[g + 1] = c[g];
  32760. else if (h.Ya === c[g].Ya && h.arrivalOrder < c[g].arrivalOrder) c[g + 1] = c[g];
  32761. else break;
  32762. g--
  32763. }
  32764. c[g + 1] = h
  32765. }
  32766. this.vN = !1
  32767. }
  32768. },
  32769. I: null,
  32770. Br: function(c) {
  32771. if (this.Na) {
  32772. c = c || f.s;
  32773. var d, e, g = this.i,
  32774. h, k = this.lh,
  32775. m = this.i.length,
  32776. n = k.length;
  32777. c.save();
  32778. this.transform(c);
  32779. this.kd();
  32780. this.HR();
  32781. for (d =
  32782. 0; d < m; d++)
  32783. if (h = g[d], 0 > h.Ya) h.I(c);
  32784. else break;
  32785. for (e = 0; e < n; e++)
  32786. if (h = k[e], 0 > h.Ya) h.I(c);
  32787. else break;
  32788. for (this.ma(c); d < m; d++) g[d] && g[d].I(c);
  32789. for (; e < n; e++) k[d] && k[d].I(c);
  32790. this.Dk = !1;
  32791. this.arrivalOrder = 0;
  32792. c.restore()
  32793. }
  32794. },
  32795. Uw: function() {
  32796. if (this.Na) {
  32797. var c = f.s,
  32798. d, e = f.Md,
  32799. g;
  32800. e.stack.push(e.top);
  32801. f.Mp(this.uG, e.top);
  32802. e.top = this.uG;
  32803. var h = this.grid;
  32804. h && h.ah && h.dx();
  32805. this.transform();
  32806. var k = this.i,
  32807. m = this.lh,
  32808. n = k.length,
  32809. p = m.length;
  32810. this.kd();
  32811. this.HR();
  32812. for (d = 0; d < n; d++)
  32813. if (k[d] && 0 > k[d].Ya) k[d].I();
  32814. else break;
  32815. for (g = 0; g < p; g++)
  32816. if (m[g] &&
  32817. 0 > m[g].Ya) m[g].I();
  32818. else break;
  32819. for (this.ma(c); d < n; d++) k[d] && k[d].I();
  32820. for (; g < p; g++) m[g] && m[g].I();
  32821. this.arrivalOrder = 0;
  32822. h && h.ah && h.ax(this);
  32823. e.top = e.stack.pop()
  32824. }
  32825. },
  32826. De: function() {
  32827. f.v.prototype.De.call(this);
  32828. for (var c = this.lh, d = 0, e = c.length; d < e; d++) c[d].De()
  32829. },
  32830. ba: function() {
  32831. f.v.prototype.ba.call(this);
  32832. for (var c = this.lh, d = 0, e = c.length; d < e; d++) c[d].ba()
  32833. },
  32834. sj: function() {
  32835. f.v.prototype.sj.call(this);
  32836. for (var c = this.lh, d = 0, e = c.length; d < e; d++) c[d].sj()
  32837. },
  32838. Ra: function() {
  32839. f.v.prototype.Ra.call(this);
  32840. for (var c = this.lh, d =
  32841. 0, e = c.length; d < e; d++) c[d].Ra()
  32842. },
  32843. uh: function() {
  32844. f.v.prototype.uh.call(this);
  32845. for (var c = this.lh, d = 0, e = c.length; d < e; d++) c[d].uh()
  32846. },
  32847. hc: function(c) {
  32848. this.kb = this.Lg * c / 255;
  32849. this.Jd();
  32850. if (this.Dg) {
  32851. var d, e = this.i,
  32852. g = this.kb;
  32853. c = 0;
  32854. for (d = e.length; c < d; c++) e[c].hc && e[c].hc(g);
  32855. e = this.lh;
  32856. c = 0;
  32857. for (d = e.length; c < d; c++) e[c].hc && e[c].hc(g)
  32858. }
  32859. },
  32860. Wb: function(c) {
  32861. var d = this.Ab,
  32862. e = this.rd;
  32863. d.r = e.r * c.r / 255;
  32864. d.g = e.g * c.g / 255;
  32865. d.b = e.b * c.b / 255;
  32866. this.Jd();
  32867. if (this.dg) {
  32868. var g = this.i;
  32869. c = 0;
  32870. for (e = g.length; c < e; c++) g[c].Wb && g[c].Wb(d);
  32871. g = this.lh;
  32872. c = 0;
  32873. for (e =
  32874. g.length; c < e; c++) g[c].Wb && g[c].Wb(d)
  32875. }
  32876. },
  32877. PQa: function() {
  32878. var c = f.color.WHITE,
  32879. d, e, g = this.i;
  32880. d = 0;
  32881. for (e = g.length; d < e; d++) g[d].Wb(c);
  32882. g = this.lh;
  32883. d = 0;
  32884. for (e = g.length; d < e; d++) g[d].Wb(c)
  32885. }
  32886. });
  32887. f.Kl.prototype.I = f.K === f.fb ? f.Kl.prototype.Br : f.Kl.prototype.Uw;
  32888. f.Kl.create = function() {
  32889. return new f.Kl
  32890. };
  32891. var kc = kc || f.N;
  32892. kc.extend = kc.extend || f.N.extend;
  32893. var lc = lc || f.Kl;
  32894. lc.extend = lc.extend || f.Kl.extend;
  32895. var y = lc.extend({
  32896. $c: !0,
  32897. Fv: !0,
  32898. bO: !1,
  32899. Gv: null,
  32900. jO: !1,
  32901. qm: null,
  32902. cB: null,
  32903. xr: null,
  32904. Jn: null,
  32905. Kn: null,
  32906. nd: "default",
  32907. Cr: null,
  32908. zq: 0,
  32909. ea: t(0, 0),
  32910. pb: null,
  32911. lA: null,
  32912. st: 0,
  32913. Sq: !1,
  32914. Qj: !0,
  32915. Gb: !1,
  32916. MU: !1,
  32917. OA: null,
  32918. ng: null,
  32919. vh: null,
  32920. Hd: null,
  32921. LOa: !1,
  32922. Rv: !1,
  32923. xt: null,
  32924. vi: null,
  32925. Ea: null,
  32926. ta: "Widget",
  32927. Fb: !1,
  32928. Hb: !1,
  32929. Ib: 255,
  32930. DF: !1,
  32931. In: null,
  32932. ctor: function() {
  32933. f.Kl.prototype.ctor.call(this);
  32934. this.Gv = y.aS;
  32935. this.qm = r(0, 0);
  32936. this.cB = r(0, 0);
  32937. this.xr = r(0, 0);
  32938. this.Cr = y.sE;
  32939. this.ea = t(0, 0);
  32940. this.pb = t(0, 0);
  32941. this.lA = {};
  32942. this.OA = y.e7;
  32943. this.ng = r(0, 0);
  32944. this.vh = y.G6;
  32945. this.Hd = r(0, 0);
  32946. this.xt = [];
  32947. this.Ea = f.color(255, 255, 255, 255);
  32948. this.st = mc.NONE;
  32949. this.j()
  32950. },
  32951. j: function() {
  32952. return f.Kl.prototype.j.call(this) ? (this.lA = {}, this.fl(), this.eR(!0), this.kI = this.aEa.bind(this), this.yQ = null, this.S(r(0.5, 0.5)), this.df(!0), this.Gu(!0), this.Hu(!0), !0) : !1
  32953. },
  32954. ba: function() {
  32955. this.Jia();
  32956. f.Kl.prototype.ba.call(this)
  32957. },
  32958. Ra: function() {
  32959. this.UC();
  32960. f.Kl.prototype.Ra.call(this)
  32961. },
  32962. I: function(c) {
  32963. this.Na && (this.On(), f.Kl.prototype.I.call(this, c))
  32964. },
  32965. ug: function() {
  32966. var c = this.getParent();
  32967. return c instanceof y ? c : null
  32968. },
  32969. Qf: function(c) {
  32970. var d =
  32971. this.ea;
  32972. this.Gb ? (d.width = c.width, d.height = c.height) : (d.width = this.pb.width, d.height = this.pb.height);
  32973. this.kc()
  32974. },
  32975. F$: function() {
  32976. var c = this.k$(this);
  32977. return null == c ? !0 : c && !c.isEnabled() ? !1 : c.F$()
  32978. },
  32979. k$: function(c) {
  32980. if (null == c) return null;
  32981. c = c.getParent();
  32982. return null == c ? null : c instanceof y ? c : this.k$(c.getParent())
  32983. },
  32984. G$: function(c) {
  32985. return null == c ? !0 : (c = c.getParent()) && !c.Na ? !1 : this.G$(c)
  32986. },
  32987. DNa: function() {
  32988. this.nra.removeEventListener(this.vi);
  32989. this.hn == this && (this.hn = null)
  32990. },
  32991. Lb: function(c) {
  32992. this.$c = c
  32993. },
  32994. fl: function() {},
  32995. zO: function(c, d, e) {
  32996. c instanceof y ? f.log("Please use addChild to add a Widget.") : (f.v.prototype.n.call(this, c, d, e), this.xt.push(c))
  32997. },
  32998. nP: function(c) {
  32999. for (var d = this.xt, e = 0; e < d.length; e++) {
  33000. var g = d[e];
  33001. if (g && g.Em() == c) return g
  33002. }
  33003. return null
  33004. },
  33005. Ida: function() {
  33006. return this.xt
  33007. },
  33008. removeNode: function(c) {
  33009. f.v.prototype.removeChild.call(this, c);
  33010. f.Ld(this.xt, c)
  33011. },
  33012. nga: function(c) {
  33013. var d = this.nP(c);
  33014. d ? this.removeNode(d) : f.log("cocos2d: removeNodeByTag(tag \x3d %d): child not found!", c)
  33015. },
  33016. jga: function() {
  33017. for (var c = 0; c < this.xt.length; c++) f.v.prototype.removeChild.call(this,
  33018. this.xt[c]);
  33019. this.xt.length = 0
  33020. },
  33021. Df: function(c) {
  33022. var d = this.pb.width = c.width;
  33023. c = this.pb.height = c.height;
  33024. this.Gb && (d = this.width, c = this.height);
  33025. this.ea.width = d;
  33026. this.ea.height = c;
  33027. this.dd && ((c = this.ug()) ? (d = c.width, c = c.height) : (d = this.Yb.width, c = this.Yb.height), this.ng.x = 0 < d ? this.pb.width / d : 0, this.ng.y = 0 < c ? this.pb.height / c : 0);
  33028. this.kc()
  33029. },
  33030. Uh: function(c) {
  33031. c = this.pb.width = c;
  33032. this.Gb && (c = this.width);
  33033. this.ea.width = c;
  33034. this.dd && (c = (c = this.ug()) ? c.width : this.Yb.width, this.ng.x = 0 < c ? this.pb.width / c : 0);
  33035. this.kc()
  33036. },
  33037. Th: function(c) {
  33038. c =
  33039. this.pb.height = c;
  33040. this.Gb && (c = this.height);
  33041. this.ea.height = c;
  33042. this.dd && (c = (c = this.ug()) ? c.height : this.Yb.height, this.ng.y = 0 < c ? this.pb.height / c : 0);
  33043. this.kc()
  33044. },
  33045. Oha: function(c) {
  33046. this.ng.x = c.x;
  33047. this.ng.y = c.y;
  33048. var d = this.pb.width,
  33049. e = this.pb.height;
  33050. this.dd && ((e = this.ug()) ? (d = e.width * c.x, e = e.height * c.y) : (d = this.Yb.width * c.x, e = this.Yb.height * c.y));
  33051. this.Gb || (this.ea.width = d, this.ea.height = e);
  33052. this.pb.width = d;
  33053. this.pb.height = e;
  33054. this.kc()
  33055. },
  33056. Vua: function(c) {
  33057. this.ng.x = c;
  33058. var d = this.pb.width;
  33059. this.dd && (d = this.ug(), d = (d ? d.width :
  33060. this.Yb.width) * c);
  33061. this.Gb || (this.ea.width = d);
  33062. this.pb.width = d;
  33063. this.kc()
  33064. },
  33065. sua: function(c) {
  33066. this.ng.y = c;
  33067. var d = this.pb.height;
  33068. this.dd && (d = this.ug(), d = (d ? d.height : this.Yb.height) * c);
  33069. this.Gb || (this.ea.height = d);
  33070. this.pb.height = d;
  33071. this.kc()
  33072. },
  33073. Jia: function(c) {
  33074. c || (c = (c = this.ug()) ? c.qAa() : this.Yb.e());
  33075. var d;
  33076. switch (this.OA) {
  33077. case y.e7:
  33078. d = this.Gb ? this.e() : this.pb;
  33079. this.ea.width = d.width;
  33080. this.ea.height = d.height;
  33081. var e = d = 0;
  33082. 0 < c.width && (d = this.pb.width / c.width);
  33083. 0 < c.height && (e = this.pb.height / c.height);
  33084. this.ng.x = d;
  33085. this.ng.y =
  33086. e;
  33087. break;
  33088. case y.Ona:
  33089. e = t(c.width * this.ng.x, c.height * this.ng.y), d = this.Gb ? this.Wn() : e, this.ea.width = d.width, this.ea.height = d.height, this.pb.width = e.width, this.pb.height = e.height
  33090. }
  33091. this.kc();
  33092. d = this.Od();
  33093. switch (this.vh) {
  33094. case y.G6:
  33095. 0 >= c.width || 0 >= c.height ? (this.Hd.x = 0, this.Hd.y = 0) : (this.Hd.x = d.x / c.width, this.Hd.y = d.y / c.height);
  33096. break;
  33097. case y.H6:
  33098. d = r(c.width * this.Hd.x, c.height * this.Hd.y)
  33099. }
  33100. this.o(d)
  33101. },
  33102. P2: function(c) {
  33103. this.OA = c
  33104. },
  33105. lBa: function() {
  33106. return this.OA
  33107. },
  33108. df: function(c) {
  33109. this.Gb != c && (c = (this.Gb = c) ? this.e() : this.pb,
  33110. this.ea.width = c.width, this.ea.height = c.height, this.kc())
  33111. },
  33112. EXa: function() {
  33113. return this.Gb
  33114. },
  33115. CH: function() {
  33116. return t(this.ea)
  33117. },
  33118. mTa: function() {
  33119. return t(this.pb)
  33120. },
  33121. qAa: function() {
  33122. return t(this.ea)
  33123. },
  33124. SVa: function() {
  33125. return r(this.ng)
  33126. },
  33127. lsa: function() {
  33128. return this.ng.x
  33129. },
  33130. Mra: function() {
  33131. return this.ng.y
  33132. },
  33133. MWa: function() {
  33134. return this.um(r(this.Eb.x * this.m.width, this.Eb.y * this.m.height))
  33135. },
  33136. Jr: function() {
  33137. return this
  33138. },
  33139. Wn: function() {
  33140. return t(this.m)
  33141. },
  33142. kc: function() {
  33143. this.Ga(this.ea);
  33144. for (var c = this.re(), d = 0, e = c.length; d < e; d++) {
  33145. var g =
  33146. c[d];
  33147. g instanceof y && g.Jia()
  33148. }
  33149. },
  33150. e: function() {
  33151. return this.ea
  33152. },
  33153. lf: function() {
  33154. return this.ea.width
  33155. },
  33156. Gg: function() {
  33157. return this.ea.height
  33158. },
  33159. Om: function(c) {
  33160. this.bO !== c && ((this.bO = c) ? (this.vi = f.Xa.create({
  33161. event: f.Xa.zs,
  33162. QC: !0,
  33163. rc: this.rc.bind(this),
  33164. hd: this.hd.bind(this),
  33165. gd: this.gd.bind(this)
  33166. }), f.Qa.addListener(this.vi, this)) : f.Qa.removeListener(this.vi))
  33167. },
  33168. U0: function() {
  33169. return this.bO
  33170. },
  33171. UP: function() {
  33172. return this.DF
  33173. },
  33174. xj: function(c) {
  33175. c != this.DF && (this.DF = c, this.Fv ? this.DF ? this.o2(y.$R) : this.o2(y.iD) : this.vC())
  33176. },
  33177. CR: function(c) {
  33178. this.jO != c && ((this.jO = c) ? this.ds() : this.UC())
  33179. },
  33180. gDa: function() {
  33181. return this.jO
  33182. },
  33183. WCa: function() {
  33184. return this.Sq
  33185. },
  33186. hR: function(c) {
  33187. if (this.Sq = c) this.hn = this
  33188. },
  33189. DXa: function() {
  33190. return this.Qj
  33191. },
  33192. g3a: function(c) {
  33193. this.Sq = c
  33194. },
  33195. Tf: function(c, d) {
  33196. if (null == this.yQ || null == this.yQ(c)) {
  33197. var e = d instanceof D;
  33198. if (this.Sq || e) {
  33199. var g = this.getParent();
  33200. return null == g ? e ? d.Tf(c, d) : d : g.Tf(c, d)
  33201. }
  33202. return d
  33203. }
  33204. e = this.yQ(c);
  33205. this.nx(this, e);
  33206. return e
  33207. },
  33208. F1a: function() {
  33209. this != this.hn && this.nx(this.hn, this)
  33210. },
  33211. gTa: function() {
  33212. return this.hn
  33213. },
  33214. oRa: function() {},
  33215. kI: null,
  33216. yQ: null,
  33217. Nr: function(c, d, e) {
  33218. var g = this.ug();
  33219. g && g.Nr(c, d, e)
  33220. },
  33221. aEa: function(c, d) {
  33222. c && c.hR(!1);
  33223. d && d.hR(!0)
  33224. },
  33225. nx: function(c, d) {
  33226. c && !c.Sq && (c = this.hn);
  33227. d != c && (d && d.kI && d.kI(c, d), c && d.kI && c.kI(c, d), f.Qa.dispatchEvent(new f.yla(c, d)))
  33228. },
  33229. eR: function(c) {
  33230. (this.Fv = c) ? (this.Gv = y.aS, this.o2(y.iD)) : this.vC()
  33231. },
  33232. o2: function(c) {
  33233. if (this.Gv != c) switch (this.Gv = c = c || y.iD, this.Gv) {
  33234. case y.iD:
  33235. this.rI();
  33236. break;
  33237. case y.$R:
  33238. this.sI()
  33239. }
  33240. },
  33241. rI: function() {},
  33242. sI: function() {},
  33243. vC: function() {},
  33244. Uxa: function() {},
  33245. rc: function(c) {
  33246. this.Rv = !1;
  33247. if (this.Na && this.isEnabled() && this.F$() && this.G$(this)) {
  33248. var d = c.cf();
  33249. this.qm.x = d.x;
  33250. this.qm.y = d.y;
  33251. this.WB(this.qm) && this.P0(this.qm) && (this.Rv = !0)
  33252. }
  33253. if (!this.Rv) return !1;
  33254. this.xj(!0);
  33255. (d = this.ug()) && d.Nr(y.WT, this, c);
  33256. this.sFa();
  33257. return !0
  33258. },
  33259. hd: function(c) {
  33260. var d = c.cf();
  33261. this.cB.x = d.x;
  33262. this.cB.y = d.y;
  33263. this.xj(this.WB(d));
  33264. (d = this.ug()) && d.Nr(y.qE, this, c);
  33265. this.ofa()
  33266. },
  33267. gd: function(c) {
  33268. var d = c.cf();
  33269. this.xr.x = d.x;
  33270. this.xr.y = d.y;
  33271. (d = this.ug()) && d.Nr(y.CK, this, c);
  33272. c = this.DF;
  33273. this.xj(!1);
  33274. c ? this.X1() : this.mca()
  33275. },
  33276. ef: function() {
  33277. this.xj(!1);
  33278. this.mca()
  33279. },
  33280. N_a: function() {},
  33281. sFa: function() {
  33282. this.In && this.In(this, y.WT);
  33283. this.Jn && this.Kn && this.Kn.call(this.Jn, this, y.Ooa)
  33284. },
  33285. ofa: function() {
  33286. this.In && this.In(this, y.qE);
  33287. this.Jn && this.Kn && this.Kn.call(this.Jn, this, y.qE)
  33288. },
  33289. X1: function() {
  33290. this.In && this.In(this, y.CK);
  33291. this.Jn && this.Kn && this.Kn.call(this.Jn, this, y.CK)
  33292. },
  33293. mca: function() {
  33294. this.In && this.In(this, y.XT);
  33295. this.Jn && this.Kn && this.Kn.call(this.Jn, this, y.XT)
  33296. },
  33297. n_a: function() {},
  33298. DPa: function(c, d) {
  33299. void 0 === d ? this.In = c : (this.Kn = c, this.Jn = d)
  33300. },
  33301. WB: function(c) {
  33302. return f.Bu(x(0,
  33303. 0, this.m.width, this.m.height), this.yi(c))
  33304. },
  33305. P0: function(c) {
  33306. this.MU = !1;
  33307. for (var d = this.getParent(), e = null; d;) {
  33308. if (d instanceof D && d.Lq) {
  33309. this.MU = !0;
  33310. e = d;
  33311. break
  33312. }
  33313. d = d.getParent()
  33314. }
  33315. return this.MU ? e ? e.WB(c) ? e.P0(c) : !1 : !0 : !0
  33316. },
  33317. oQa: function(c) {
  33318. f.log("clippingParentAreaContainPoint is deprecated. Please use isClippingParentContainsPoint instead.");
  33319. this.P0(c)
  33320. },
  33321. Swa: function(c, d, e) {
  33322. var g = this.ug();
  33323. g && g.Swa(c, d, e)
  33324. },
  33325. o: function(c, d) {
  33326. if (this.dd) {
  33327. var e = this.ug();
  33328. e && (e = e.CH(), 0 >= e.width || 0 >= e.height ? (this.Hd.x = 0, this.Hd.y =
  33329. 0) : d ? (this.Hd.x = c / e.width, this.Hd.y = d / e.height) : (this.Hd.x = c.x / e.width, this.Hd.y = c.y / e.height))
  33330. }
  33331. f.v.prototype.o.call(this, c, d)
  33332. },
  33333. ls: function(c) {
  33334. if (this.dd) {
  33335. var d = this.ug();
  33336. d && (d = d.width, this.Hd.x = 0 >= d ? 0 : c / d)
  33337. }
  33338. f.v.prototype.ls.call(this, c)
  33339. },
  33340. Lu: function(c) {
  33341. if (this.dd) {
  33342. var d = this.ug();
  33343. d && (d = d.height, this.Hd.y = 0 >= d ? 0 : c / d)
  33344. }
  33345. f.v.prototype.Lu.call(this, c)
  33346. },
  33347. D2: function(c) {
  33348. this.Hd = c;
  33349. this.dd && (c = this.ug()) && (c = c.CH(), this.o(c.width * this.Hd.x, c.height * this.Hd.y))
  33350. },
  33351. Wua: function(c) {
  33352. this.Hd.x = c;
  33353. if (this.dd) {
  33354. var d =
  33355. this.ug();
  33356. d && this.ls(d.width * c)
  33357. }
  33358. },
  33359. Xua: function(c) {
  33360. this.Hd.y = c;
  33361. if (this.dd) {
  33362. var d = this.ug();
  33363. d && this.Lu(d.height * c)
  33364. }
  33365. },
  33366. WIa: function() {
  33367. this.S(this.bk())
  33368. },
  33369. qVa: function() {
  33370. return r(this.Hd)
  33371. },
  33372. msa: function() {
  33373. return this.Hd.x
  33374. },
  33375. nsa: function() {
  33376. return this.Hd.y
  33377. },
  33378. E2: function(c) {
  33379. this.vh = c
  33380. },
  33381. VAa: function() {
  33382. return this.vh
  33383. },
  33384. Pd: function(c) {
  33385. this.Fb = c;
  33386. this.sk()
  33387. },
  33388. XH: function() {
  33389. return this.Fb
  33390. },
  33391. Yf: function(c) {
  33392. this.Hb = c;
  33393. this.Al()
  33394. },
  33395. YH: function() {
  33396. return this.Hb
  33397. },
  33398. sk: function() {},
  33399. Al: function() {},
  33400. On: function() {},
  33401. RCa: function() {
  33402. return this.Fv
  33403. },
  33404. isEnabled: function() {
  33405. return this.$c
  33406. },
  33407. Ac: function() {
  33408. return this.Vc() - this.Eb.x * this.ea.width
  33409. },
  33410. yd: function() {
  33411. return this.Zd() - this.Eb.y * this.ea.height
  33412. },
  33413. Kc: function() {
  33414. return this.Ac() + this.ea.width
  33415. },
  33416. Fe: function() {
  33417. return this.yd() + this.ea.height
  33418. },
  33419. AWa: function() {
  33420. f.log("getTouchStartPos is deprecated. Please use getTouchBeganPosition instead.");
  33421. return this.t0()
  33422. },
  33423. t0: function() {
  33424. return r(this.qm)
  33425. },
  33426. yWa: function() {
  33427. f.log("getTouchMovePos is deprecated. Please use getTouchMovePosition instead.");
  33428. return this.CBa()
  33429. },
  33430. CBa: function() {
  33431. return r(this.cB)
  33432. },
  33433. wWa: function() {
  33434. f.log("getTouchEndPos is deprecated. Please use getTouchEndPosition instead.");
  33435. return this.BBa()
  33436. },
  33437. BBa: function() {
  33438. return r(this.xr)
  33439. },
  33440. gf: function(c) {
  33441. this.nd = c
  33442. },
  33443. getName: function() {
  33444. return this.nd
  33445. },
  33446. QBa: function() {
  33447. return this.Cr
  33448. },
  33449. by: function(c) {
  33450. c && (this.lA[c.Bm()] = c, this.st = c.Bm())
  33451. },
  33452. dl: function(c) {
  33453. c = c || this.st;
  33454. return this.lA[c]
  33455. },
  33456. dk: function() {
  33457. return "Widget"
  33458. },
  33459. p: function() {
  33460. var c = this.Zh();
  33461. c.lx(this);
  33462. c.kx(this);
  33463. return c
  33464. },
  33465. Zh: function() {
  33466. return y.create()
  33467. },
  33468. kx: function(c) {
  33469. c =
  33470. c.re();
  33471. for (var d = 0; d < c.length; d++) {
  33472. var e = c[d];
  33473. e instanceof y && this.n(e.p())
  33474. }
  33475. },
  33476. zi: function() {},
  33477. lx: function(c) {
  33478. this.Lb(c.isEnabled());
  33479. this.za(c.Na);
  33480. this.eR(c.Fv);
  33481. this.Om(c.U0());
  33482. this.tl(c.Ya);
  33483. this.CR(c.jO);
  33484. this.Nm(c.Em());
  33485. this.gf(c.getName());
  33486. this.Vx(c.zq);
  33487. this.Gb.width = c.Gb.width;
  33488. this.Gb.height = c.Gb.height;
  33489. this.ea.width = c.ea.width;
  33490. this.ea.height = c.ea.height;
  33491. this.pb.width = c.pb.width;
  33492. this.pb.height = c.pb.height;
  33493. this.zi(c);
  33494. this.OA = c.OA;
  33495. this.ng.x = c.ng.x;
  33496. this.ng.y = c.ng.y;
  33497. this.vh = c.vh;
  33498. this.Hd.x = c.Hd.x;
  33499. this.Hd.y =
  33500. c.Hd.y;
  33501. this.o(c.Od());
  33502. this.S(c.bk());
  33503. this.jb(c.ka);
  33504. this.tb(c.ra);
  33505. this.yh(c.Cx());
  33506. this.M2(c.bj);
  33507. this.N2(c.hm);
  33508. this.Pd(c.XH());
  33509. this.Yf(c.YH());
  33510. this.F(c.$a());
  33511. this.J(c.vb());
  33512. this.In = c.In;
  33513. this.Jn = c.Jn;
  33514. this.Kn = c.Kn;
  33515. this.Sq = c.Sq;
  33516. this.Qj = c.Qj;
  33517. for (var d in c.lA) {
  33518. var e = c.lA[d];
  33519. e && this.by(e.p())
  33520. }
  33521. this.kc()
  33522. },
  33523. Vx: function(c) {
  33524. this.zq = c
  33525. },
  33526. lda: function() {
  33527. return this.zq
  33528. },
  33529. $a: function() {
  33530. return f.color(this.Ea.r, this.Ea.g, this.Ea.b, this.Ea.a)
  33531. },
  33532. J: function(c) {
  33533. c !== this.Ea.a && (this.Ea.a = c, this.WC(c))
  33534. },
  33535. vb: function() {
  33536. return this.kb
  33537. },
  33538. WC: function(c) {
  33539. for (var d in this.i) {
  33540. var e = this.i[d];
  33541. e && e.wb && e.J(c)
  33542. }
  33543. },
  33544. Ii: function(c) {
  33545. c.wb && c.F(this.Ea)
  33546. },
  33547. Cl: function(c) {
  33548. c.wb && c.J(this.Ea.a)
  33549. },
  33550. M5a: function(c) {
  33551. c.F(this.Ea);
  33552. c.J(this.Ib)
  33553. }
  33554. }),
  33555. q = y.prototype;
  33556. f.d(q, "xPercent", q.msa, q.Wua);
  33557. f.d(q, "yPercent", q.nsa, q.Xua);
  33558. f.d(q, "widthPercent", q.lsa, q.Vua);
  33559. f.d(q, "heightPercent", q.Mra, q.sua);
  33560. f.d(q, "widgetParent", q.ug);
  33561. f.d(q, "enabled", q.isEnabled, q.Lb);
  33562. f.d(q, "focused", q.WCa, q.hR);
  33563. f.d(q, "sizeType", q.lBa, q.P2);
  33564. f.d(q, "widgetType", q.QBa);
  33565. f.d(q, "touchEnabled", q.U0, q.Om);
  33566. f.d(q, "updateEnabled", q.gDa, q.CR);
  33567. f.d(q, "bright", q.RCa, q.eR);
  33568. f.d(q, "name", q.getName, q.gf);
  33569. f.d(q, "actionTag", q.lda, q.Vx);
  33570. f.d(q, "opacity", q.vb, q.J);
  33571. q = null;
  33572. y.create = function() {
  33573. return new y
  33574. };
  33575. y.aS = -1;
  33576. y.iD = 0;
  33577. y.$R = 1;
  33578. y.sE = 0;
  33579. y.Roa = 1;
  33580. y.$m = 0;
  33581. y.Ll = 1;
  33582. y.Ol = 0;
  33583. y.Ym = 1;
  33584. y.Oa = 0;
  33585. y.cb = 1;
  33586. y.Ooa = 0;
  33587. y.qE = 1;
  33588. y.CK = 2;
  33589. y.XT = 3;
  33590. y.e7 = 0;
  33591. y.Ona = 1;
  33592. y.G6 = 0;
  33593. y.H6 = 1;
  33594. f.yla = f.ve.extend({
  33595. Eva: null,
  33596. Fva: null,
  33597. ctor: function(c, d) {
  33598. this.Eva = d;
  33599. this.Fva = c
  33600. }
  33601. });
  33602. var D = y.extend({
  33603. Lq: !1,
  33604. Os: null,
  33605. Fd: null,
  33606. ZK: null,
  33607. KE: null,
  33608. Ws: null,
  33609. LE: y.Oa,
  33610. ii: null,
  33611. mf: null,
  33612. Ea: null,
  33613. Ng: null,
  33614. Jf: null,
  33615. Oi: null,
  33616. Ib: 255,
  33617. $K: null,
  33618. tt: null,
  33619. gh: !0,
  33620. qL: !0,
  33621. Mq: null,
  33622. eg: null,
  33623. FW: !1,
  33624. NOa: !1,
  33625. Po: null,
  33626. wV: null,
  33627. ta: "Layout",
  33628. Bq: null,
  33629. Ka: 0,
  33630. La: 0,
  33631. KNa: 0,
  33632. RNa: 0,
  33633. MNa: 0,
  33634. PNa: 0,
  33635. QNa: 0,
  33636. LNa: 0,
  33637. NNa: 0,
  33638. ONa: 0,
  33639. JNa: 0,
  33640. GNa: 0,
  33641. HNa: 0,
  33642. INa: 0,
  33643. J8: 0,
  33644. yOa: 0,
  33645. aw: !1,
  33646. pw: !1,
  33647. Yq: !1,
  33648. ctor: function() {
  33649. this.tt = D.Ria;
  33650. this.Cr = y.Roa;
  33651. this.Mq = D.BJ;
  33652. this.Ws = D.V3;
  33653. y.prototype.ctor.call(this);
  33654. this.KE = x(0, 0, 0, 0);
  33655. this.Ea = f.color(255, 255, 255, 255);
  33656. this.Ng = f.color(255, 255,
  33657. 255, 255);
  33658. this.Jf = f.color(255, 255, 255, 255);
  33659. this.Oi = r(0, -1);
  33660. this.$K = t(0, 0);
  33661. this.Po = x(0, 0, 0, 0);
  33662. this.Bq = f.color(255, 255, 255, 255)
  33663. },
  33664. ba: function() {
  33665. y.prototype.ba.call(this);
  33666. this.eg && this.eg.ba();
  33667. this.qL = this.gh = !0
  33668. },
  33669. Ra: function() {
  33670. y.prototype.Ra.call(this);
  33671. this.eg && this.eg.Ra()
  33672. },
  33673. C3a: function(c) {
  33674. this.aw = c
  33675. },
  33676. KXa: function() {
  33677. return this.aw
  33678. },
  33679. U3a: function(c) {
  33680. this.pw = c
  33681. },
  33682. PXa: function() {
  33683. return this.pw
  33684. },
  33685. Tf: function(c, d) {
  33686. if (this.Yq || this.Sq) {
  33687. var e = this.getParent();
  33688. this.Yq = !1;
  33689. if (this.pw) {
  33690. var g = this.pw(c, d);
  33691. return g instanceof
  33692. D && e ? (e.Yq = !0, e.Tf(c, this)) : g
  33693. }
  33694. if (null == e) return this;
  33695. e.Yq = !0;
  33696. return e.Tf(c, this)
  33697. }
  33698. if (d.Sq || d instanceof D)
  33699. if (this.tt == D.oq) switch (c) {
  33700. case y.$m:
  33701. return this.lM(c, d);
  33702. case y.Ll:
  33703. return this.kM(c, d);
  33704. case y.Ym:
  33705. case y.Ol:
  33706. return this.Zo(this, c) ? this.Yv(d, c) ? this.Tf(c, this) : d : this.Tf(c, this);
  33707. default:
  33708. return f.assert(0, "Invalid Focus Direction"), d
  33709. } else if (this.tt == D.pq) switch (c) {
  33710. case y.$m:
  33711. case y.Ll:
  33712. return this.Zo(this, c) ? this.Yv(d, c) ? this.Tf(c, this) : d : this.Tf(c, this);
  33713. case y.Ym:
  33714. return this.kM(c, d);
  33715. case y.Ol:
  33716. return this.lM(c,
  33717. d);
  33718. default:
  33719. return f.assert(0, "Invalid Focus Direction"), d
  33720. } else return f.assert(0, "Un Supported Layout type, please use VBox and HBox instead!!!"), d;
  33721. else return d
  33722. },
  33723. uC: null,
  33724. j: function() {
  33725. return y.prototype.j.call(this) ? (this.df(!1), this.Df(t(0, 0)), this.S(0, 0), this.uC = this.pF.bind(this), !0) : !1
  33726. },
  33727. Zpa: function(c) {
  33728. c = c || f.s;
  33729. for (var d = this.eg, e = f.view.ka, g = f.view.ra, h = 0; h < d.cc.length; h++) {
  33730. var k = d.cc[h].zg,
  33731. m = k[0];
  33732. c.beginPath();
  33733. c.moveTo(m.x * e, -m.y * g);
  33734. for (var m = 1, n = k.length; m < n; m++) c.lineTo(k[m].x * e, -k[m].y * g)
  33735. }
  33736. },
  33737. n: function(c, d, e) {
  33738. c instanceof y && this.qia(c);
  33739. y.prototype.n.call(this, c, d, e);
  33740. this.gh = !0
  33741. },
  33742. removeChild: function(c, d) {
  33743. y.prototype.removeChild.call(this, c, d);
  33744. this.gh = !0
  33745. },
  33746. Cf: function(c) {
  33747. y.prototype.Cf.call(this, c);
  33748. this.gh = !0
  33749. },
  33750. Cu: function(c) {
  33751. y.prototype.Cu(c);
  33752. this.gh = !0
  33753. },
  33754. SCa: function() {
  33755. return this.Lq
  33756. },
  33757. I: function(c) {
  33758. if (this.Na)
  33759. if (this.On(), this.Wl(), this.Lq) switch (this.Mq) {
  33760. case D.BJ:
  33761. this.i3(c);
  33762. break;
  33763. case D.i4:
  33764. this.h2(c)
  33765. } else y.prototype.I.call(this, c)
  33766. },
  33767. kd: function() {
  33768. y.prototype.kd.call(this);
  33769. this.Wl()
  33770. },
  33771. i3: null,
  33772. fva: function(c) {
  33773. var d = c || f.s;
  33774. if (this.eg && this.eg.Na)
  33775. if (D.rn = -1, D.rn + 1 == f.ly) D.Vw = !0, D.Vw && (f.log("Nesting more than " + f.ly + "stencils is not supported. Everything will be drawn without stencil for this node and its childs."), D.Vw = !1), f.v.prototype.I.call(this, c);
  33776. else {
  33777. D.rn++;
  33778. var e = 1 << D.rn,
  33779. g = e | e - 1;
  33780. c = d.isEnabled(d.STENCIL_TEST);
  33781. var h = d.getParameter(d.STENCIL_WRITEMASK),
  33782. k = d.getParameter(d.STENCIL_FUNC),
  33783. m = d.getParameter(d.STENCIL_REF),
  33784. n = d.getParameter(d.STENCIL_VALUE_MASK),
  33785. p = d.getParameter(d.STENCIL_FAIL),
  33786. s = d.getParameter(d.STENCIL_PASS_DEPTH_FAIL),
  33787. u = d.getParameter(d.STENCIL_PASS_DEPTH_PASS);
  33788. d.enable(d.STENCIL_TEST);
  33789. d.stencilMask(e);
  33790. var v = d.getParameter(d.DEPTH_WRITEMASK);
  33791. d.depthMask(!1);
  33792. d.stencilFunc(d.NEVER, e, e);
  33793. d.stencilOp(d.ZERO, d.KEEP, d.KEEP);
  33794. f.If.H_(r(0, 0), f.Jfa(), f.color(255, 255, 255, 255));
  33795. d.stencilFunc(d.NEVER, e, e);
  33796. d.stencilOp(d.REPLACE, d.KEEP, d.KEEP);
  33797. f.Rr();
  33798. this.transform();
  33799. this.eg.I();
  33800. d.depthMask(v);
  33801. d.stencilFunc(d.EQUAL, g, g);
  33802. d.stencilOp(d.KEEP, d.KEEP, d.KEEP);
  33803. g = e = 0;
  33804. this.kd();
  33805. this.HR();
  33806. for (var v =
  33807. this.i, z = this.lh, A = v.length, B = z.length, C; e < A; e++)
  33808. if ((C = v[e]) && 0 > C.Ya) C.I();
  33809. else break;
  33810. for (; g < B; g++)
  33811. if ((C = z[g]) && 0 > C.Ya) C.I();
  33812. else break;
  33813. for (this.ma(); e < A; e++) v[e].I();
  33814. for (; g < B; g++) z[g].I();
  33815. d.stencilFunc(k, m, n);
  33816. d.stencilOp(p, s, u);
  33817. d.stencilMask(h);
  33818. c || d.disable(d.STENCIL_TEST);
  33819. D.rn--;
  33820. f.Qr()
  33821. }
  33822. },
  33823. nba: function(c) {
  33824. if (this.eg && this.eg.Na) {
  33825. c = c || f.s;
  33826. if (this.Hv() || this.eg instanceof f.q) {
  33827. var d = c.canvas,
  33828. e = D.AW();
  33829. e.width = d.width;
  33830. e.height = d.height;
  33831. e.getContext("2d").drawImage(d, 0, 0);
  33832. c.save();
  33833. f.v.prototype.I.call(this,
  33834. c);
  33835. c.globalCompositeOperation = "destination-in";
  33836. this.transform(c);
  33837. this.eg.I();
  33838. c.restore();
  33839. c.save();
  33840. c.setTransform(1, 0, 0, 1, 0, 0);
  33841. c.globalCompositeOperation = "destination-over";
  33842. c.drawImage(e, 0, 0)
  33843. } else {
  33844. var e = this.i,
  33845. g;
  33846. c.save();
  33847. this.transform(c);
  33848. this.eg.I(c);
  33849. c.clip();
  33850. this.Hv(!0);
  33851. this.kd();
  33852. this.HR();
  33853. for (var h, k = this.lh, m = e.length, n = k.length, d = 0; d < m; d++)
  33854. if ((g = e[d]) && 0 > g.Ya) g.I(c);
  33855. else break;
  33856. for (h = 0; h < n; h++)
  33857. if ((g = k[h]) && 0 > g.Ya) g.I(c);
  33858. else break;
  33859. for (; d < m; d++) e[d].I(c);
  33860. for (; h < n; h++) k[h].I(c);
  33861. this.Hv(!1)
  33862. }
  33863. c.restore()
  33864. }
  33865. },
  33866. BF: !1,
  33867. Hv: function(c) {
  33868. if (!0 === c || !1 === c) f.Wc.prototype.BF = c;
  33869. return f.Wc.prototype.BF
  33870. },
  33871. h2: null,
  33872. fua: function(c) {
  33873. var d = this.tda();
  33874. c = c || f.s;
  33875. this.FW && c.enable(c.SCISSOR_TEST);
  33876. f.view.vR(d.x, d.y, d.width, d.height);
  33877. f.v.prototype.I.call(this);
  33878. this.FW && c.disable(c.SCISSOR_TEST)
  33879. },
  33880. Zp: function(c) {
  33881. if (c != this.Lq) switch (this.Lq = c, this.Mq) {
  33882. case D.BJ:
  33883. c ? (this.eg = f.Yg.create(), f.K === f.fb && (this.eg.ma = this.Zpa.bind(this)), this.dd && this.eg.ba(), this.Vha(this.m)) : (this.dd && this.eg.Ra(), this.eg = null)
  33884. }
  33885. },
  33886. Oga: function(c) {
  33887. if (c !=
  33888. this.Mq) {
  33889. var d = this.Lq;
  33890. this.Zp(!1);
  33891. this.Mq = c;
  33892. this.Zp(d)
  33893. }
  33894. },
  33895. WSa: function() {
  33896. return this.Mq
  33897. },
  33898. Vha: function(c) {
  33899. if (this.Lq && this.Mq == D.BJ) {
  33900. var d = [];
  33901. d[0] = r(0, 0);
  33902. d[1] = r(c.width, 0);
  33903. d[2] = r(c.width, c.height);
  33904. d[3] = r(0, c.height);
  33905. c = f.color.GREEN;
  33906. this.eg.clear();
  33907. this.eg.Sf(d, 4, c, 0, c)
  33908. }
  33909. },
  33910. C1a: function() {
  33911. this.Wl()
  33912. },
  33913. tda: function() {
  33914. if (this.qL) {
  33915. var c = this.um(r(0, 0)),
  33916. d = this.il(),
  33917. e = this.m.width * d.a,
  33918. d = this.m.height * d.P,
  33919. g;
  33920. g = this;
  33921. for (var h = !1; g;)
  33922. if ((g = g.getParent()) && g instanceof D && g.Lq && (h || (this.wV = g, h = !0), g.Mq == D.i4)) {
  33923. this.FW = !1;
  33924. break
  33925. }
  33926. if (this.wV) {
  33927. g = this.wV.tda();
  33928. var h = c.x - e * this.Eb.x,
  33929. k = c.y - d * this.Eb.y,
  33930. m = e,
  33931. n = d,
  33932. p = c.x - g.x;
  33933. 0 > p && (h = g.x, m += p);
  33934. e = c.x + e - (g.x + g.width);
  33935. 0 < e && (m -= e);
  33936. e = c.y + d - (g.y + g.height);
  33937. 0 < e && (n -= e);
  33938. c = c.y - g.y;
  33939. 0 > c && (k = g.x, n += c);
  33940. 0 > m && (m = 0);
  33941. 0 > n && (n = 0);
  33942. this.Po.x = h;
  33943. this.Po.y = k;
  33944. this.Po.width = m;
  33945. this.Po.height = n
  33946. } else this.Po.x = c.x - e * this.Eb.x, this.Po.y = c.y - d * this.Eb.y, this.Po.width = e, this.Po.height = d;
  33947. this.qL = !1
  33948. }
  33949. return this.Po
  33950. },
  33951. kc: function() {
  33952. y.prototype.kc.call(this);
  33953. this.Vha(this.m);
  33954. this.qL = this.gh = !0;
  33955. this.Fd && (this.Fd.o(0.5 *
  33956. this.m.width, 0.5 * this.m.height), this.Os && this.Fd instanceof f.Ua && this.Fd.He(this.m));
  33957. this.ii && this.ii.Ga(this.m);
  33958. this.mf && this.mf.Ga(this.m)
  33959. },
  33960. $Q: function(c) {
  33961. this.Os != c && (this.Ci(this.Fd), this.Fd = null, this.Os = c, this.Mba(), this.Eu(this.ZK, this.LE), this.KI(this.KE))
  33962. },
  33963. sXa: function() {
  33964. return this.Os
  33965. },
  33966. Eu: function(c, d) {
  33967. if (c) {
  33968. d = d || y.Oa;
  33969. null == this.Fd && this.Mba();
  33970. this.ZK = c;
  33971. this.LE = d;
  33972. if (this.Os) {
  33973. var e = this.Fd;
  33974. switch (this.LE) {
  33975. case y.Oa:
  33976. e.Ge(c);
  33977. break;
  33978. case y.cb:
  33979. e.hl(c)
  33980. }
  33981. e.He(this.m)
  33982. } else switch (e = this.Fd, this.LE) {
  33983. case y.Oa:
  33984. e.ab(c);
  33985. break;
  33986. case y.cb:
  33987. e.Dd(c)
  33988. }
  33989. this.$K = this.Fd.e();
  33990. this.Fd.o(this.m.width / 2, this.m.height / 2);
  33991. this.Cba()
  33992. }
  33993. },
  33994. KI: function(c) {
  33995. this.KE = c;
  33996. this.Os && this.Fd.Cc(c)
  33997. },
  33998. oSa: function() {
  33999. return this.KE
  34000. },
  34001. qia: function(c) {
  34002. if (c) switch (this.tt) {
  34003. case D.oq:
  34004. case D.pq:
  34005. var d = c.dl(mc.LINEAR);
  34006. d || c.by(nc.create());
  34007. break;
  34008. case D.Py:
  34009. (d = c.dl(mc.Py)) || c.by(E.create())
  34010. }
  34011. },
  34012. Mba: function() {
  34013. this.Os ? (this.Fd = f.Ua.create(), this.Fd.He(this.m)) : this.Fd = f.q.create();
  34014. this.bd(this.Fd, D.kja, -1);
  34015. this.Fd.o(this.m.width / 2, this.m.height / 2)
  34016. },
  34017. h1a: function() {
  34018. this.Fd &&
  34019. (this.Ci(this.Fd), this.Fd = null, this.ZK = "", this.$K = t(0, 0))
  34020. },
  34021. YQ: function(c) {
  34022. if (this.Ws != c) {
  34023. switch (this.Ws) {
  34024. case D.V3:
  34025. this.ii && (this.Ci(this.ii), this.ii = null);
  34026. this.mf && (this.Ci(this.mf), this.mf = null);
  34027. break;
  34028. case D.YR:
  34029. this.ii && (this.Ci(this.ii), this.ii = null);
  34030. break;
  34031. case D.XR:
  34032. this.mf && (this.Ci(this.mf), this.mf = null)
  34033. }
  34034. this.Ws = c;
  34035. switch (this.Ws) {
  34036. case D.YR:
  34037. this.ii = f.$f.create();
  34038. this.ii.Ga(this.m);
  34039. this.ii.J(this.Ib);
  34040. this.ii.F(this.Ea);
  34041. this.bd(this.ii, D.T3, -1);
  34042. break;
  34043. case D.XR:
  34044. this.mf = f.rq.create(f.color(255, 0,
  34045. 0, 255), f.color(0, 255, 0, 255)), this.mf.Ga(this.m), this.mf.J(this.Ib), this.mf.Tg(this.Ng), this.mf.Sg(this.Jf), this.mf.DR(this.Oi), this.bd(this.mf, D.T3, -1)
  34046. }
  34047. }
  34048. },
  34049. lSa: function() {
  34050. return this.Ws
  34051. },
  34052. Du: function(c, d) {
  34053. d ? (this.Ng.r = c.r, this.Ng.g = c.g, this.Ng.b = c.b, this.mf && this.mf.Tg(c), this.Jf = d, this.mf && this.mf.Sg(d)) : (this.Ea.r = c.r, this.Ea.g = c.g, this.Ea.b = c.b, this.ii && this.ii.F(c))
  34054. },
  34055. jSa: function() {
  34056. var c = this.Ea;
  34057. return f.color(c.r, c.g, c.b, c.a)
  34058. },
  34059. rSa: function() {
  34060. var c = this.Ng;
  34061. return f.color(c.r, c.g, c.b, c.a)
  34062. },
  34063. nSa: function() {
  34064. var c =
  34065. this.Jf;
  34066. return f.color(c.r, c.g, c.b, c.a)
  34067. },
  34068. XQ: function(c) {
  34069. this.Ib = c;
  34070. switch (this.Ws) {
  34071. case D.YR:
  34072. this.ii.J(c);
  34073. break;
  34074. case D.XR:
  34075. this.mf.J(c)
  34076. }
  34077. },
  34078. kSa: function() {
  34079. return this.Ib
  34080. },
  34081. ZQ: function(c) {
  34082. this.Oi.x = c.x;
  34083. this.Oi.y = c.y;
  34084. this.mf && this.mf.DR(c)
  34085. },
  34086. mSa: function() {
  34087. return this.Oi
  34088. },
  34089. z2a: function(c) {
  34090. this.Bq.r = c.r;
  34091. this.Bq.g = c.g;
  34092. this.Bq.b = c.b;
  34093. this.Cba()
  34094. },
  34095. A2a: function(c) {
  34096. this.Bq.a = c;
  34097. this.yza()
  34098. },
  34099. yza: function() {
  34100. var c = this.Bq;
  34101. return f.color(c.r, c.g, c.b, c.a)
  34102. },
  34103. pSa: function() {
  34104. return this.Bq.a
  34105. },
  34106. Cba: function() {
  34107. this.Fd && this.Fd.F(this.Bq)
  34108. },
  34109. qSa: function() {
  34110. return this.$K
  34111. },
  34112. Mm: function(c) {
  34113. this.tt = c;
  34114. c = this.i;
  34115. for (var d = null, e = 0; e < c.length; e++) d = c[e], d instanceof y && this.qia(d);
  34116. this.gh = !0
  34117. },
  34118. Bm: function() {
  34119. return this.tt
  34120. },
  34121. E1a: function() {
  34122. this.gh = !0
  34123. },
  34124. Wl: function() {
  34125. if (this.gh) {
  34126. var c = this.Vqa();
  34127. c && c.Wl(this);
  34128. this.gh = !1
  34129. }
  34130. },
  34131. Vqa: function() {
  34132. var c = null;
  34133. switch (this.tt) {
  34134. case D.pq:
  34135. c = oc.create();
  34136. break;
  34137. case D.oq:
  34138. c = pc.create();
  34139. break;
  34140. case D.Py:
  34141. c = qc.create()
  34142. }
  34143. return c
  34144. },
  34145. tW: function() {
  34146. return this.e()
  34147. },
  34148. uW: function() {
  34149. return this.re()
  34150. },
  34151. GOa: function() {},
  34152. ZNa: function() {},
  34153. DOa: function() {},
  34154. EOa: function() {},
  34155. fta: function() {},
  34156. fta: function() {},
  34157. aPa: function() {
  34158. this.Fd && this.Fd.J(this.J8)
  34159. },
  34160. bPa: function() {
  34161. this.Fd && (this.Fd.F(this.Bq), this.Fd.J(this.J8))
  34162. },
  34163. r$: function() {
  34164. for (var c = this.re(), d = t(0, 0), e = 0, g, h = 0, k = c.length; h < k; h++)
  34165. if (g = c[h], null != g && g instanceof D) g = g.r$(), d.width += g.width, d.height += g.height;
  34166. else if (g instanceof y) {
  34167. e++;
  34168. var m = w.dl().pi;
  34169. g = w.e();
  34170. d.width += g.width + 0.5 * (m.right + m.left);
  34171. d.height += g.height + 0.5 * (m.top + m.bottom)
  34172. }
  34173. c = this.Bm();
  34174. c == D.oq && (d.height -= d.height / e *
  34175. (e - 1));
  34176. c == D.pq && (d.width -= d.width / e * (e - 1));
  34177. return d
  34178. },
  34179. pF: function(c, d) {
  34180. if (null == d || d == this) return this.X9();
  34181. var e = 0,
  34182. g = this.re(),
  34183. h = g.length,
  34184. k, m = f.gv,
  34185. n = 0;
  34186. if (c == y.$m || c == y.Ll || c == y.Ym || c == y.Ol) {
  34187. for (k = this.Wo(d); e < h;) {
  34188. var p = g[e];
  34189. p && p instanceof y && p.Qj && (p = p instanceof D ? p.S8(d) : f.ff(f.gc(this.Wo(p), k)), p < m && (n = e, m = p));
  34190. e++
  34191. }
  34192. return n
  34193. }
  34194. f.assert(0, "invalid focus direction!");
  34195. return 0
  34196. },
  34197. cM: function(c, d) {
  34198. if (null == d || d == this) return this.X9();
  34199. var e = 0,
  34200. g = this.re().size(),
  34201. h = -f.gv,
  34202. k = 0;
  34203. if (c == y.$m || c == y.Ll || c == y.Ym ||
  34204. c == y.Ol) {
  34205. for (var m = this.Wo(d); e < g;) {
  34206. if (w && w instanceof y && w.Qj) {
  34207. var n = w instanceof D ? w.R8(d) : f.ff(f.gc(this.Wo(w), m));
  34208. n > h && (k = e, h = n)
  34209. }
  34210. e++
  34211. }
  34212. return k
  34213. }
  34214. f.assert(0, "invalid focus direction!!!");
  34215. return 0
  34216. },
  34217. S8: function(c) {
  34218. for (var d = f.gv, e = this.Wo(c), g = this.i, h = 0, k = g.length; h < k; h++) {
  34219. var m = g[h];
  34220. if (m instanceof D) m = m.S8(c);
  34221. else if (m instanceof y && m.Qj) m = f.ff(f.gc(this.Wo(m), e));
  34222. else continue;
  34223. m < d && (d = m)
  34224. }
  34225. return d
  34226. },
  34227. R8: function(c) {
  34228. for (var d = -f.gv, e = this.Wo(c), g = this.i, h = 0, k = g.length; h < k; h++) {
  34229. var m = g[h];
  34230. if (m instanceof D) m = m.R8(c);
  34231. else if (m instanceof y && m.Qj) m = this.Wo(w), m = f.ff(f.gc(m, e));
  34232. else continue;
  34233. m > d && (d = m)
  34234. }
  34235. return d
  34236. },
  34237. rra: function(c, d) {
  34238. if (null != d) {
  34239. var e = this.Wo(d),
  34240. g = this.Wo(this.Y9());
  34241. c == y.$m ? this.uC = e.x > g.x ? this.pF.bind(this) : this.cM.bind(this) : c == y.Ll ? this.uC = e.x > g.x ? this.cM.bind(this) : this.pF.bind(this) : c == y.Ym ? this.uC = e.y > g.y ? this.pF.bind(this) : this.cM.bind(this) : c == y.Ol ? this.uC = e.y < g.y ? this.pF.bind(this) : this.cM.bind(this) : f.assert(0, "invalid direction!")
  34242. }
  34243. },
  34244. Y9: function() {
  34245. for (var c = this.i, d = 0, e = c.length; d <
  34246. e; d++) {
  34247. var g = c[d];
  34248. if (g instanceof D) {
  34249. if (g = g.Y9()) return g
  34250. } else if (g instanceof f.mNa) return g
  34251. }
  34252. return null
  34253. },
  34254. X9: function() {
  34255. for (var c = 0, d = this.re(), e = d.length; c < e;) {
  34256. var g = d[c];
  34257. if (g && g instanceof y && g.Qj) return c;
  34258. c++
  34259. }
  34260. return 0
  34261. },
  34262. qra: function(c) {
  34263. var d = this.Uz(c);
  34264. return d ? d.Qj ? d : this.qra(c + 1) : null
  34265. },
  34266. Wo: function(c) {
  34267. var d = c instanceof D ? c.r$() : c.e();
  34268. return c.um(r(d.width / 2, d.height / 2))
  34269. },
  34270. kM: function(c, d) {
  34271. var e = null,
  34272. e = this.i,
  34273. g = e.indexOf(d),
  34274. g = g + 1;
  34275. if (g < e.length) {
  34276. if (e = this.Uz(g)) {
  34277. if (e.Qj) {
  34278. if (e instanceof D) return e.Yq = !0, e.Tf(c, e);
  34279. this.nx(d, e);
  34280. return e
  34281. }
  34282. return this.kM(c, e)
  34283. }
  34284. return d
  34285. }
  34286. if (this.aw) {
  34287. if (this.rV()) {
  34288. e = this.Uz(0);
  34289. if (e.Qj) {
  34290. if (e instanceof D) return e.Yq = !0, e.Tf(c, e);
  34291. this.nx(d, e);
  34292. return e
  34293. }
  34294. return this.kM(c, e)
  34295. }
  34296. return d instanceof D ? d : this.hn
  34297. }
  34298. return this.Zo(d, c) ? this.Yv(this, c) ? this.Tf(c, this) : d instanceof D ? d : this.hn : this.Tf(c, this)
  34299. },
  34300. lM: function(c, d) {
  34301. var e = null,
  34302. e = this.i,
  34303. g = e.indexOf(d),
  34304. g = g - 1;
  34305. if (0 <= g) {
  34306. e = this.Uz(g);
  34307. if (e.Qj) {
  34308. if (e instanceof D) return e.Yq = !0, e.Tf(c, e);
  34309. this.nx(d, e);
  34310. return e
  34311. }
  34312. return this.lM(c, e)
  34313. }
  34314. if (this.aw) {
  34315. if (this.rV()) {
  34316. g =
  34317. e.length - 1;
  34318. e = this.Uz(g);
  34319. if (e.Qj) {
  34320. if (e instanceof D) return e.Yq = !0, e.Tf(c, e);
  34321. this.nx(d, e);
  34322. return e
  34323. }
  34324. return this.lM(c, e)
  34325. }
  34326. return d instanceof D ? d : this.hn
  34327. }
  34328. return this.Zo(d, c) ? this.Yv(this, c) ? this.Tf(c, this) : d instanceof D ? d : this.hn : this.Tf(c, this)
  34329. },
  34330. Uz: function(c) {
  34331. for (var d = this.i, e = d.length, g = 0, h = c; c < e;) {
  34332. var k = d[c];
  34333. if (k && k instanceof y) return k;
  34334. g++;
  34335. c++
  34336. }
  34337. for (c = 0; c < h;) {
  34338. if ((e = d[c]) && e instanceof y) return e;
  34339. g++;
  34340. c++
  34341. }
  34342. return null
  34343. },
  34344. Zo: function(c, d) {
  34345. var e = c.getParent();
  34346. if (e instanceof D) return !0;
  34347. var g = e.re(),
  34348. h =
  34349. g.indexOf(c);
  34350. if (e.Bm() == D.oq) {
  34351. if (d == y.$m) return 0 == h ? 1 * this.Zo(e, d) : !1;
  34352. if (d == y.Ll) return h == g.length - 1 ? 1 * this.Zo(e, d) : !1;
  34353. if (d == y.Ym || d == y.Ol) return this.Zo(e, d)
  34354. } else if (e.Bm() == D.pq) {
  34355. if (d == y.Ol) return 0 == h ? 1 * this.Zo(e, d) : !1;
  34356. if (d == y.Ym) return h == g.length - 1 ? 1 * this.Zo(e, d) : !1;
  34357. if (d == y.$m || d == y.Ll) return this.Zo(e, d)
  34358. } else f.assert(0, "invalid layout Type");
  34359. return !1
  34360. },
  34361. Yv: function(c, d) {
  34362. var e = c.getParent();
  34363. if (null == e) return !1;
  34364. if (e.aw) {
  34365. var g = e.Bm();
  34366. if (g == D.oq) return d == y.$m || d == y.Ll ? !0 : this.Yv(e, d);
  34367. if (g == D.pq) return d ==
  34368. y.Ym || d == y.Ol ? !0 : this.Yv(e, d);
  34369. f.assert(0, "invalid layout type")
  34370. } else return this.Yv(e, d)
  34371. },
  34372. pw: function(c, d) {
  34373. if (this.rV()) {
  34374. var e = this.hn;
  34375. this.rra(c, e);
  34376. e = this.uC(c, e);
  34377. e = this.Uz(e);
  34378. if (e instanceof D) return e.Yq = !0, e.Tf(c, e);
  34379. this.nx(d, e);
  34380. return e
  34381. }
  34382. return this
  34383. },
  34384. rV: function() {
  34385. for (var c = this.i, d = 0, e = c.length; d < e; d++) {
  34386. var g = c[d];
  34387. if (g && g instanceof y && g.Qj) return !0
  34388. }
  34389. return !1
  34390. },
  34391. dk: function() {
  34392. return "Layout"
  34393. },
  34394. Zh: function() {
  34395. return D.create()
  34396. },
  34397. kx: function(c) {
  34398. y.prototype.kx.call(this, c)
  34399. },
  34400. zi: function(c) {
  34401. this.$Q(c.Os);
  34402. this.Eu(c.ZK, c.LE);
  34403. this.KI(c.KE);
  34404. this.YQ(c.Ws);
  34405. this.Du(c.Ea);
  34406. this.Du(c.Ng, c.Jf);
  34407. this.XQ(c.Ib);
  34408. this.ZQ(c.Oi);
  34409. this.Mm(c.tt);
  34410. this.Zp(c.Lq);
  34411. this.Oga(c.Mq);
  34412. this.aw = c.aw;
  34413. this.pw = c.pw
  34414. }
  34415. });
  34416. D.tM = null;
  34417. D.Vw = null;
  34418. D.rn = null;
  34419. D.qG = null;
  34420. f.K == f.na ? (D.prototype.i3 = D.prototype.fva, D.prototype.h2 = D.prototype.fua) : (D.prototype.i3 = D.prototype.nba, D.prototype.h2 = D.prototype.nba);
  34421. D.AW = function() {
  34422. return f.Wc.qG || (f.Wc.qG = f.fd("canvas"))
  34423. };
  34424. q = D.prototype;
  34425. f.d(q, "clippingEnabled", q.SCa, q.Zp);
  34426. f.d(q, "clippingType", null, q.Oga);
  34427. f.d(q, "layoutType", q.Bm, q.Mm);
  34428. q = null;
  34429. D.create = function() {
  34430. return new D
  34431. };
  34432. D.V3 = 0;
  34433. D.YR = 1;
  34434. D.XR = 2;
  34435. D.Ria = 0;
  34436. D.pq = 1;
  34437. D.oq = 2;
  34438. D.Py = 3;
  34439. D.BJ = 0;
  34440. D.i4 = 1;
  34441. D.kja = -2;
  34442. D.T3 = -2;
  34443. var rc = kc.extend({
  34444. left: 0,
  34445. top: 0,
  34446. right: 0,
  34447. bottom: 0,
  34448. ctor: function(c, d, e, g) {
  34449. c && void 0 === d && (this.left = c.left, this.top = c.top, this.right = c.right, this.bottom = c.bottom);
  34450. void 0 !== g && (this.left = c, this.top = d, this.right = e, this.bottom = g)
  34451. },
  34452. lo: function(c, d, e, g) {
  34453. this.left = c;
  34454. this.top = d;
  34455. this.right = e;
  34456. this.bottom = g
  34457. },
  34458. tRa: function(c) {
  34459. return this.left == c.left && this.top == c.top && this.right == c.right && this.bottom == c.bottom
  34460. }
  34461. });
  34462. function sc() {
  34463. return new rc(0, 0, 0, 0)
  34464. }
  34465. var mc = kc.extend({
  34466. pi: null,
  34467. st: null,
  34468. ctor: function() {
  34469. this.pi = new rc;
  34470. this.st = mc.NONE
  34471. },
  34472. lo: function(c, d, e, g) {
  34473. "object" === typeof c ? (this.pi.left = c.left, this.pi.top = c.top, this.pi.right = c.right, this.pi.bottom = c.bottom) : (this.pi.left = c, this.pi.top = d, this.pi.right = e, this.pi.bottom = g)
  34474. },
  34475. CUa: function() {
  34476. return this.pi
  34477. },
  34478. Bm: function() {
  34479. return this.st
  34480. },
  34481. p: function() {
  34482. var c = this.Zh();
  34483. c.lx(this);
  34484. return c
  34485. },
  34486. Zh: function() {
  34487. return mc.create()
  34488. },
  34489. lx: function(c) {
  34490. this.pi = c.pi
  34491. }
  34492. });
  34493. mc.create = function() {
  34494. return new mc
  34495. };
  34496. mc.NONE = 0;
  34497. mc.LINEAR = 1;
  34498. mc.Py = 2;
  34499. var nc = mc.extend({
  34500. HM: null,
  34501. ctor: function() {
  34502. mc.prototype.ctor.call(this);
  34503. this.HM = nc.NONE;
  34504. this.st = mc.LINEAR
  34505. },
  34506. vc: function(c) {
  34507. this.HM = c
  34508. },
  34509. uH: function() {
  34510. return this.HM
  34511. },
  34512. Zh: function() {
  34513. return nc.create()
  34514. },
  34515. lx: function(c) {
  34516. mc.prototype.lx.call(this, c);
  34517. c && (this.VQ(c.ww), this.sR(c.GA), this.tR(c.HA), this.vc(c.HM))
  34518. }
  34519. });
  34520. nc.create = function() {
  34521. return new nc
  34522. };
  34523. nc.NONE = 0;
  34524. nc.$m = 1;
  34525. nc.u7 = 2;
  34526. nc.Ll = 3;
  34527. nc.ZR = 4;
  34528. nc.nS = 5;
  34529. nc.mS = 6;
  34530. var E = mc.extend({
  34531. ww: null,
  34532. HA: "",
  34533. GA: "",
  34534. ri: !1,
  34535. ctor: function() {
  34536. mc.prototype.ctor.call(this);
  34537. this.ww = E.NONE;
  34538. this.GA = this.HA = "";
  34539. this.ri = !1;
  34540. this.st = mc.Py
  34541. },
  34542. VQ: function(c) {
  34543. this.ww = c
  34544. },
  34545. WRa: function() {
  34546. return this.ww
  34547. },
  34548. tR: function(c) {
  34549. this.HA = c
  34550. },
  34551. BVa: function() {
  34552. return this.HA
  34553. },
  34554. sR: function(c) {
  34555. this.GA = c
  34556. },
  34557. AVa: function() {
  34558. return this.GA
  34559. },
  34560. Zh: function() {
  34561. return E.create()
  34562. },
  34563. lx: function(c) {
  34564. mc.prototype.lx.call(this, c);
  34565. this.VQ(c.ww);
  34566. this.tR(c.HA);
  34567. this.sR(c.GA)
  34568. }
  34569. });
  34570. E.create = function() {
  34571. return new E
  34572. };
  34573. E.NONE = 0;
  34574. E.t6 = 1;
  34575. E.s6 = 2;
  34576. E.u6 = 3;
  34577. E.p6 = 4;
  34578. E.Rja = 5;
  34579. E.r6 = 6;
  34580. E.o6 = 7;
  34581. E.n6 = 8;
  34582. E.q6 = 9;
  34583. E.J5 = 10;
  34584. E.I5 = 11;
  34585. E.K5 = 12;
  34586. E.Q5 = 13;
  34587. E.P5 = 14;
  34588. E.O5 = 15;
  34589. E.T5 = 16;
  34590. E.S5 = 17;
  34591. E.R5 = 18;
  34592. E.M5 = 19;
  34593. E.L5 = 20;
  34594. E.N5 = 21;
  34595. var tc = kc.extend({
  34596. Wl: function() {}
  34597. }),
  34598. oc = tc.extend({
  34599. Wl: function(c) {
  34600. var d = c.tW();
  34601. c = c.uW();
  34602. for (var e = d.height, g = 0, h = c.length; g < h; g++) {
  34603. var k = c[g];
  34604. if (k) {
  34605. var m = k.dl();
  34606. if (m) {
  34607. var n = m.uH(),
  34608. p = k.bk(),
  34609. s = k.e(),
  34610. u = p.x * s.width,
  34611. e = e - (1 - p.y) * s.height;
  34612. switch (n) {
  34613. case nc.Ll:
  34614. u = d.width - (1 - p.x) * s.width;
  34615. break;
  34616. case nc.mS:
  34617. u = d.width / 2 - s.width * (0.5 - p.x)
  34618. }
  34619. m = m.pi;
  34620. u += m.left;
  34621. e -= m.top;
  34622. k.o(u, e);
  34623. e = k.Zd() - k.bk().y * k.e().height - m.bottom
  34624. }
  34625. }
  34626. }
  34627. }
  34628. });
  34629. oc.create = function() {
  34630. return new oc
  34631. };
  34632. var pc = tc.extend({
  34633. Wl: function(c) {
  34634. var d = c.tW();
  34635. c = c.uW();
  34636. for (var e = 0, g = 0, h = c.length; g < h; g++) {
  34637. var k = c[g];
  34638. if (k) {
  34639. var m = k.dl();
  34640. if (m) {
  34641. var n = m.uH(),
  34642. p = k.bk(),
  34643. s = k.CH(),
  34644. e = e + p.x * s.width,
  34645. u = d.height - (1 - p.y) * s.height;
  34646. switch (n) {
  34647. case nc.ZR:
  34648. u = p.y * s.height;
  34649. break;
  34650. case nc.nS:
  34651. u = d.height / 2 - s.height * (0.5 - p.y)
  34652. }
  34653. m = m.pi;
  34654. e += m.left;
  34655. u -= m.top;
  34656. k.o(e, u);
  34657. e = k.Kc() + m.right
  34658. }
  34659. }
  34660. }
  34661. }
  34662. });
  34663. pc.create = function() {
  34664. return new pc
  34665. };
  34666. var qc = tc.extend({
  34667. XY: null,
  34668. sO: null,
  34669. QG: null,
  34670. Ka: 0,
  34671. La: 0,
  34672. ke: null,
  34673. Wl: function(c) {
  34674. for (var d = this.sO = this.Bra(c); 0 < this.XY;) {
  34675. for (var e = 0, g = d.length; e < g; e++) {
  34676. this.QG = d[e];
  34677. var h = this.QG.dl();
  34678. h && !h.ri && this.yqa(c) && (this.xqa(), this.QG.o(this.Ka, this.La), h.ri = !0)
  34679. }
  34680. this.XY--
  34681. }
  34682. this.sO.length = 0
  34683. },
  34684. Bra: function(c) {
  34685. c = c.uW();
  34686. for (var d = [], e = 0, g = c.length; e < g; e++) {
  34687. var h = c[e];
  34688. h && (h.dl().ri = !1, this.XY++, d.push(h))
  34689. }
  34690. return d
  34691. },
  34692. asa: function(c) {
  34693. var d = null;
  34694. if ((c = c.dl().HA) && 0 != c.length)
  34695. for (var e = this.sO, g = 0, h = e.length; g < h; g++) {
  34696. var k =
  34697. e[g];
  34698. if (k) {
  34699. var m = k.dl();
  34700. if (m && m.GA == c) {
  34701. d = k;
  34702. this.ke = m;
  34703. break
  34704. }
  34705. }
  34706. }
  34707. return d
  34708. },
  34709. yqa: function(c) {
  34710. var d = this.QG,
  34711. e = d.bk(),
  34712. g = d.e();
  34713. this.La = this.Ka = 0;
  34714. var h = this.asa(d),
  34715. d = d.dl().ww;
  34716. c = c.tW();
  34717. switch (d) {
  34718. case E.NONE:
  34719. case E.t6:
  34720. this.Ka = e.x * g.width;
  34721. this.La = c.height - (1 - e.y) * g.height;
  34722. break;
  34723. case E.s6:
  34724. this.Ka = 0.5 * c.width - g.width * (0.5 - e.x);
  34725. this.La = c.height - (1 - e.y) * g.height;
  34726. break;
  34727. case E.u6:
  34728. this.Ka = c.width - (1 - e.x) * g.width;
  34729. this.La = c.height - (1 - e.y) * g.height;
  34730. break;
  34731. case E.p6:
  34732. this.Ka = e.x * g.width;
  34733. this.La = 0.5 * c.height - g.height * (0.5 -
  34734. e.y);
  34735. break;
  34736. case E.Rja:
  34737. this.Ka = 0.5 * c.width - g.width * (0.5 - e.x);
  34738. this.La = 0.5 * c.height - g.height * (0.5 - e.y);
  34739. break;
  34740. case E.r6:
  34741. this.Ka = c.width - (1 - e.x) * g.width;
  34742. this.La = 0.5 * c.height - g.height * (0.5 - e.y);
  34743. break;
  34744. case E.o6:
  34745. this.Ka = e.x * g.width;
  34746. this.La = e.y * g.height;
  34747. break;
  34748. case E.n6:
  34749. this.Ka = 0.5 * c.width - g.width * (0.5 - e.x);
  34750. this.La = e.y * g.height;
  34751. break;
  34752. case E.q6:
  34753. this.Ka = c.width - (1 - e.x) * g.width;
  34754. this.La = e.y * g.height;
  34755. break;
  34756. case E.J5:
  34757. if (h) {
  34758. if (this.ke && !this.ke.ri) return !1;
  34759. var d = h.Fe(),
  34760. k = h.Ac();
  34761. this.La = d + e.y * g.height;
  34762. this.Ka = k + e.x *
  34763. g.width
  34764. }
  34765. break;
  34766. case E.I5:
  34767. if (h) {
  34768. if (this.ke && !this.ke.ri) return !1;
  34769. c = h.e();
  34770. d = h.Fe();
  34771. this.La = d + e.y * g.height;
  34772. this.Ka = h.Ac() + 0.5 * c.width + e.x * g.width - 0.5 * g.width
  34773. }
  34774. break;
  34775. case E.K5:
  34776. if (h) {
  34777. if (this.ke && !this.ke.ri) return !1;
  34778. d = h.Fe();
  34779. k = h.Kc();
  34780. this.La = d + e.y * g.height;
  34781. this.Ka = k - (1 - e.x) * g.width
  34782. }
  34783. break;
  34784. case E.Q5:
  34785. if (h) {
  34786. if (this.ke && !this.ke.ri) return !1;
  34787. d = h.Fe();
  34788. k = h.Ac();
  34789. this.La = d - (1 - e.y) * g.height;
  34790. this.Ka = k - (1 - e.x) * g.width
  34791. }
  34792. break;
  34793. case E.P5:
  34794. if (h) {
  34795. if (this.ke && !this.ke.ri) return !1;
  34796. c = h.e();
  34797. k = h.Ac();
  34798. this.Ka = k - (1 - e.x) * g.width;
  34799. this.La =
  34800. h.yd() + 0.5 * c.height + e.y * g.height - 0.5 * g.height
  34801. }
  34802. break;
  34803. case E.O5:
  34804. if (h) {
  34805. if (this.ke && !this.ke.ri) return !1;
  34806. d = h.yd();
  34807. k = h.Ac();
  34808. this.La = d + e.y * g.height;
  34809. this.Ka = k - (1 - e.x) * g.width
  34810. }
  34811. break;
  34812. case E.T5:
  34813. if (h) {
  34814. if (this.ke && !this.ke.ri) return !1;
  34815. d = h.Fe();
  34816. k = h.Kc();
  34817. this.La = d - (1 - e.y) * g.height;
  34818. this.Ka = k + e.x * g.width
  34819. }
  34820. break;
  34821. case E.S5:
  34822. if (h) {
  34823. if (this.ke && !this.ke.ri) return !1;
  34824. c = h.e();
  34825. k = h.Kc();
  34826. this.Ka = k + e.x * g.width;
  34827. this.La = h.yd() + 0.5 * c.height + e.y * g.height - 0.5 * g.height
  34828. }
  34829. break;
  34830. case E.R5:
  34831. if (h) {
  34832. if (this.ke && !this.ke.ri) return !1;
  34833. d = h.yd();
  34834. k = h.Kc();
  34835. this.La = d + e.y * g.height;
  34836. this.Ka = k + e.x * g.width
  34837. }
  34838. break;
  34839. case E.M5:
  34840. if (h) {
  34841. if (this.ke && !this.ke.ri) return !1;
  34842. d = h.yd();
  34843. k = h.Ac();
  34844. this.La = d - (1 - e.y) * g.height;
  34845. this.Ka = k + e.x * g.width
  34846. }
  34847. break;
  34848. case E.L5:
  34849. if (h) {
  34850. if (this.ke && !this.ke.ri) return !1;
  34851. c = h.e();
  34852. d = h.yd();
  34853. this.La = d - (1 - e.y) * g.height;
  34854. this.Ka = h.Ac() + 0.5 * c.width + e.x * g.width - 0.5 * g.width
  34855. }
  34856. break;
  34857. case E.N5:
  34858. if (h) {
  34859. if (this.ke && !this.ke.ri) return !1;
  34860. d = h.yd();
  34861. k = h.Kc();
  34862. this.La = d - (1 - e.y) * g.height;
  34863. this.Ka = k - (1 - e.x) * g.width
  34864. }
  34865. }
  34866. return !0
  34867. },
  34868. xqa: function() {
  34869. var c = this.QG.dl(),
  34870. d = c.pi;
  34871. switch (c.ww) {
  34872. case E.NONE:
  34873. case E.t6:
  34874. this.Ka += d.left;
  34875. this.La -= d.top;
  34876. break;
  34877. case E.s6:
  34878. this.La -= d.top;
  34879. break;
  34880. case E.u6:
  34881. this.Ka -= d.right;
  34882. this.La -= d.top;
  34883. break;
  34884. case E.p6:
  34885. this.Ka += d.left;
  34886. break;
  34887. case E.r6:
  34888. this.Ka -= d.right;
  34889. break;
  34890. case E.o6:
  34891. this.Ka += d.left;
  34892. this.La += d.bottom;
  34893. break;
  34894. case E.n6:
  34895. this.La += d.bottom;
  34896. break;
  34897. case E.q6:
  34898. this.Ka -= d.right;
  34899. this.La += d.bottom;
  34900. break;
  34901. case E.J5:
  34902. this.La += d.bottom;
  34903. this.Ka += d.left;
  34904. break;
  34905. case E.K5:
  34906. this.La += d.bottom;
  34907. this.Ka -= d.right;
  34908. break;
  34909. case E.I5:
  34910. this.La += d.bottom;
  34911. break;
  34912. case E.Q5:
  34913. this.Ka -=
  34914. d.right;
  34915. this.La -= d.top;
  34916. break;
  34917. case E.O5:
  34918. this.Ka -= d.right;
  34919. this.La += d.bottom;
  34920. break;
  34921. case E.P5:
  34922. this.Ka -= d.right;
  34923. break;
  34924. case E.T5:
  34925. this.Ka += d.left;
  34926. this.La -= d.top;
  34927. break;
  34928. case E.R5:
  34929. this.Ka += d.left;
  34930. this.La += d.bottom;
  34931. break;
  34932. case E.S5:
  34933. this.Ka += d.left;
  34934. break;
  34935. case E.M5:
  34936. this.La -= d.top;
  34937. this.Ka += d.left;
  34938. break;
  34939. case E.N5:
  34940. this.La -= d.top;
  34941. this.Ka -= d.right;
  34942. break;
  34943. case E.L5:
  34944. this.La -= d.top
  34945. }
  34946. }
  34947. });
  34948. qc.create = function() {
  34949. return new qc
  34950. };
  34951. var uc = D.extend({
  34952. j: function() {
  34953. return D.prototype.j.call(this) ? (this.Mm(D.oq), !0) : !1
  34954. },
  34955. Jp: function(c) {
  34956. return this.j() ? (this.Df(c), !0) : !1
  34957. }
  34958. });
  34959. uc.create = function(c) {
  34960. var d = new uc;
  34961. return c ? d.Jp() ? d : null : d
  34962. };
  34963. var vc = D.extend({
  34964. j: function() {
  34965. return D.prototype.j.call(this) ? (this.Mm(D.Py), !0) : !1
  34966. },
  34967. Jp: function(c) {
  34968. return this.j() ? (this.Df(c), !0) : !1
  34969. }
  34970. });
  34971. vc.create = function(c) {
  34972. var d = new vc;
  34973. return c ? d.Jp() ? d : null : d
  34974. };
  34975. var wc = D.extend({
  34976. j: function() {
  34977. return D.prototype.j.call(this) ? (this.Mm(D.lNa), !0) : !1
  34978. },
  34979. Jp: function(c) {
  34980. return this.j() ? (this.Df(c), !0) : !1
  34981. }
  34982. });
  34983. wc.create = function(c) {
  34984. var d = new wc;
  34985. return c ? d.Jp() ? d : null : d
  34986. };
  34987. function Dc(c, d) {
  34988. if (!c) return null;
  34989. if (c.zq == d) return c;
  34990. for (var e = c.re(), g = 0; g < e.length; g++) {
  34991. var h = Dc(e[g], d);
  34992. if (null != h) return h
  34993. }
  34994. return null
  34995. };
  34996. var Ec = y.extend({
  34997. gb: null,
  34998. Rb: null,
  34999. Xb: null,
  35000. qg: null,
  35001. iX: "",
  35002. vV: "",
  35003. NV: "",
  35004. We: !0,
  35005. $: !1,
  35006. pz: null,
  35007. qz: null,
  35008. oz: null,
  35009. SF: y.Oa,
  35010. cG: y.Oa,
  35011. hF: y.Oa,
  35012. yt: null,
  35013. IX: null,
  35014. PV: null,
  35015. IQ: !1,
  35016. XN: null,
  35017. iw: 1,
  35018. jw: 1,
  35019. sw: 1,
  35020. tw: 1,
  35021. dta: !1,
  35022. HX: !1,
  35023. ara: !1,
  35024. Dg: !0,
  35025. ta: "Button",
  35026. jX: !0,
  35027. GX: !0,
  35028. OV: !0,
  35029. Rc: "Thonburi",
  35030. Sc: 12,
  35031. zc: 0,
  35032. ctor: function() {
  35033. this.pz = x(0, 0, 0, 0);
  35034. this.qz = x(0, 0, 0, 0);
  35035. this.oz = x(0, 0, 0, 0);
  35036. var c = this.ea;
  35037. this.yt = t(c.width, c.height);
  35038. this.IX = t(c.width, c.height);
  35039. this.PV = t(c.width, c.height);
  35040. this.XN = f.color.WHITE;
  35041. y.prototype.ctor.call(this)
  35042. },
  35043. j: function(c, d,
  35044. e, g) {
  35045. if (y.prototype.j.call(this)) {
  35046. this.Om(!0);
  35047. if (void 0 === c) return !0;
  35048. this.Ur(c, d, e, g)
  35049. }
  35050. return !1
  35051. },
  35052. fl: function() {
  35053. this.gb = f.q.create();
  35054. this.Rb = f.q.create();
  35055. this.Xb = f.q.create();
  35056. this.qg = f.ia.create("");
  35057. this.bd(this.gb, Ec.k6, -1);
  35058. this.bd(this.Rb, Ec.I6, -1);
  35059. this.bd(this.Xb, Ec.X4, -1);
  35060. this.bd(this.qg, Ec.Koa, -1)
  35061. },
  35062. zh: function(c) {
  35063. this.$ != c && (this.Gv = y.aS, this.$ = c, this.Ci(this.gb), this.Ci(this.Rb), this.Ci(this.Xb), this.$ ? (this.gb = f.Ua.create(), this.Rb = f.Ua.create(), this.Xb = f.Ua.create()) : (this.gb = f.q.create(), this.Rb =
  35064. f.q.create(), this.Xb = f.q.create()), this.Hx(this.iX, this.SF), this.Ix(this.vV, this.cG), this.Gx(this.NV, this.hF), this.bd(this.gb, Ec.k6, -1), this.bd(this.Rb, Ec.I6, -1), this.bd(this.Xb, Ec.X4, -1), this.$ ? (c = this.Gb, this.df(!1), this.We = c) : this.df(this.We), this.q2(this.pz), this.r2(this.qz), this.p2(this.oz), this.eR(this.Fv))
  35065. },
  35066. T0: function() {
  35067. return this.$
  35068. },
  35069. df: function(c) {
  35070. if (!this.$ || this.$ && !c) y.prototype.df.call(this, c), this.We = c
  35071. },
  35072. Wn: function() {
  35073. return this.yt
  35074. },
  35075. Ur: function(c, d, e, g) {
  35076. this.Hx(c, g);
  35077. this.Ix(d, g);
  35078. this.Gx(e,
  35079. g)
  35080. },
  35081. Hx: function(c, d) {
  35082. if (c) {
  35083. d = d || y.Oa;
  35084. this.iX = c;
  35085. this.SF = d;
  35086. if (this.$) {
  35087. var e = this.gb;
  35088. switch (this.SF) {
  35089. case y.Oa:
  35090. e.Ge(c);
  35091. break;
  35092. case y.cb:
  35093. e.hl(c)
  35094. }
  35095. e.Cc(this.pz)
  35096. } else switch (e = this.gb, this.SF) {
  35097. case y.Oa:
  35098. e.ab(c);
  35099. break;
  35100. case y.cb:
  35101. e.Dd(c)
  35102. }
  35103. this.yt = this.gb.e();
  35104. this.sk();
  35105. this.Al();
  35106. this.gb.F(this.$a());
  35107. this.gb.J(this.vb());
  35108. this.Qf(this.yt);
  35109. this.jX = this.dta = !0
  35110. }
  35111. },
  35112. Ix: function(c, d) {
  35113. if (c) {
  35114. d = d || y.Oa;
  35115. this.vV = c;
  35116. this.cG = d;
  35117. if (this.$) {
  35118. var e = this.Rb;
  35119. switch (this.cG) {
  35120. case y.Oa:
  35121. e.Ge(c);
  35122. break;
  35123. case y.cb:
  35124. e.hl(c)
  35125. }
  35126. e.Cc(this.qz)
  35127. } else switch (e =
  35128. this.Rb, this.cG) {
  35129. case y.Oa:
  35130. e.ab(c);
  35131. break;
  35132. case y.cb:
  35133. e.Dd(c)
  35134. }
  35135. this.IX = this.Rb.e();
  35136. this.sk();
  35137. this.Al();
  35138. this.Xb.F(this.$a());
  35139. this.Xb.J(this.vb());
  35140. this.GX = this.HX = !0
  35141. }
  35142. },
  35143. Gx: function(c, d) {
  35144. if (c) {
  35145. d = d || y.Oa;
  35146. this.NV = c;
  35147. this.hF = d;
  35148. if (this.$) {
  35149. var e = this.Xb;
  35150. switch (this.hF) {
  35151. case y.Oa:
  35152. e.Ge(c);
  35153. break;
  35154. case y.cb:
  35155. e.hl(c)
  35156. }
  35157. e.Cc(this.oz)
  35158. } else switch (e = this.Xb, this.hF) {
  35159. case y.Oa:
  35160. e.ab(c);
  35161. break;
  35162. case y.cb:
  35163. e.Dd(c)
  35164. }
  35165. this.PV = this.Xb.e();
  35166. this.sk();
  35167. this.Al();
  35168. this.Xb.F(this.$a());
  35169. this.Xb.J(this.vb());
  35170. this.OV = this.ara = !0
  35171. }
  35172. },
  35173. Cc: function(c) {
  35174. this.q2(c);
  35175. this.r2(c);
  35176. this.p2(c)
  35177. },
  35178. q2: function(c) {
  35179. this.pz = c;
  35180. this.$ && this.gb.Cc(c)
  35181. },
  35182. NSa: function() {
  35183. return this.pz
  35184. },
  35185. r2: function(c) {
  35186. this.qz = c;
  35187. this.$ && this.Rb.Cc(c)
  35188. },
  35189. OSa: function() {
  35190. return this.qz
  35191. },
  35192. p2: function(c) {
  35193. this.oz = c;
  35194. this.$ && this.Xb.Cc(c)
  35195. },
  35196. MSa: function() {
  35197. return this.oz
  35198. },
  35199. rI: function() {
  35200. this.gb.za(!0);
  35201. this.Rb.za(!1);
  35202. this.Xb.za(!1);
  35203. if (this.HX) {
  35204. if (this.IQ) {
  35205. this.gb.Pm();
  35206. this.Rb.Pm();
  35207. var c = f.Db.create(0.05, this.iw, this.jw);
  35208. this.gb.V(c);
  35209. this.Rb.ib(this.sw, this.tw)
  35210. }
  35211. } else this.$ ? this.eJa() : (this.gb.Pm(), this.gb.ib(this.iw,
  35212. this.jw))
  35213. },
  35214. sI: function() {
  35215. if (this.HX) {
  35216. if (this.gb.za(!1), this.Rb.za(!0), this.Xb.za(!1), this.IQ) {
  35217. this.gb.Pm();
  35218. this.Rb.Pm();
  35219. var c = f.Db.create(0.05, this.sw + 0.1, this.tw + 0.1);
  35220. this.Rb.V(c);
  35221. this.gb.ib(this.sw + 0.1, this.tw + 0.1)
  35222. }
  35223. } else this.gb.za(!0), this.Rb.za(!0), this.Xb.za(!1), this.$ ? this.gb.F(f.Aj.GRAY) : (this.gb.Pm(), this.gb.ib(this.iw + 0.1, this.jw + 0.1))
  35224. },
  35225. vC: function() {
  35226. this.gb.za(!1);
  35227. this.Rb.za(!1);
  35228. this.Xb.za(!0);
  35229. this.gb.ib(this.iw, this.jw);
  35230. this.Rb.ib(this.sw, this.tw)
  35231. },
  35232. Pd: function(c) {
  35233. this.qg.Pd(c);
  35234. this.$ ||
  35235. (this.gb.Pd(c), this.Rb.Pd(c), this.Xb.Pd(c))
  35236. },
  35237. e3a: function(c) {
  35238. this.qg.Yf(c);
  35239. this.$ || (this.gb.Yf(c), this.Rb.Yf(c), this.Xb.Yf(c))
  35240. },
  35241. XH: function() {
  35242. return this.$ ? !1 : this.gb.XH()
  35243. },
  35244. YH: function() {
  35245. return this.$ ? !1 : this.gb.YH()
  35246. },
  35247. sk: function() {
  35248. var c = this.Fb ? -1 : 1;
  35249. this.qg.jb(c);
  35250. this.$ ? (this.gb.jb(c), this.Rb.jb(c), this.Xb.jb(c)) : (this.gb.Pd(this.Fb), this.Rb.Pd(this.Fb), this.Xb.Pd(this.Fb))
  35251. },
  35252. Al: function() {
  35253. var c = this.Hb ? -1 : 1;
  35254. this.qg.tb(c);
  35255. this.$ ? (this.gb.tb(c), this.Rb.tb(c), this.Xb.tb(c)) : (this.gb.Yf(this.Hb), this.Rb.Yf(this.Hb),
  35256. this.Xb.Yf(this.Hb))
  35257. },
  35258. eJa: function() {
  35259. this.gb.F(this.$a());
  35260. this.Rb.F(this.$a());
  35261. this.Xb.F(this.$a());
  35262. this.gb.J(this.vb());
  35263. this.Rb.J(this.vb());
  35264. this.Xb.J(this.vb())
  35265. },
  35266. S: function(c, d) {
  35267. void 0 === d ? (y.prototype.S.call(this, c), this.gb.S(c), this.Rb.S(c), this.Xb.S(c)) : (y.prototype.S.call(this, c, d), this.gb.S(c, d), this.Rb.S(c, d), this.Xb.S(c, d));
  35268. this.qg.o(this.ea.width * (0.5 - this.Eb.x), this.ea.height * (0.5 - this.Eb.y))
  35269. },
  35270. Xe: function(c) {
  35271. y.prototype.Xe.call(this, c);
  35272. this.gb.Xe(c);
  35273. this.Rb.Xe(c);
  35274. this.Xb.Xe(c);
  35275. this.qg.ls(this.ea.width *
  35276. (0.5 - this.Eb.x))
  35277. },
  35278. Ye: function(c) {
  35279. y.prototype.Ye.call(this, c);
  35280. this.gb.Ye(c);
  35281. this.Rb.Ye(c);
  35282. this.Xb.Ye(c);
  35283. this.qg.Lu(this.ea.height * (0.5 - this.Eb.y))
  35284. },
  35285. kc: function() {
  35286. y.prototype.kc.call(this);
  35287. this.fJa();
  35288. this.ufa();
  35289. this.Rfa();
  35290. this.Nca()
  35291. },
  35292. e: function() {
  35293. return this.yt
  35294. },
  35295. lf: function() {
  35296. return this.$ ? this.ea.width : this.yt.width
  35297. },
  35298. Gg: function() {
  35299. return this.$ ? this.ea.height : this.yt.height
  35300. },
  35301. Jr: function() {
  35302. if (this.Fv) switch (this.Gv) {
  35303. case y.iD:
  35304. return this.gb;
  35305. case y.$R:
  35306. return this.Rb;
  35307. default:
  35308. return null
  35309. } else return this.Xb
  35310. },
  35311. ufa: function() {
  35312. if (this.Gb) this.$ || (this.gb.ib(1), this.iw = this.jw = 1);
  35313. else if (this.$) this.gb.He(this.ea), this.iw = this.jw = 1;
  35314. else {
  35315. var c = this.yt;
  35316. if (0 >= c.width || 0 >= c.height) {
  35317. this.gb.ib(1);
  35318. return
  35319. }
  35320. var d = this.ea.width / c.width,
  35321. c = this.ea.height / c.height;
  35322. this.gb.jb(d);
  35323. this.gb.tb(c);
  35324. this.iw = d;
  35325. this.jw = c
  35326. }
  35327. this.gb.o(this.m.width / 2, this.m.height / 2)
  35328. },
  35329. Rfa: function() {
  35330. if (this.Gb) this.$ || (this.Rb.ib(1), this.sw = this.tw = 1);
  35331. else if (this.$) this.Rb.He(this.ea), this.sw = this.tw = 1;
  35332. else {
  35333. var c = this.IX;
  35334. if (0 >= c.width || 0 >= c.height) {
  35335. this.Rb.ib(1);
  35336. return
  35337. }
  35338. var d = this.ea.width / c.width,
  35339. c = this.ea.height / c.height;
  35340. this.Rb.jb(d);
  35341. this.Rb.tb(c);
  35342. this.sw = d;
  35343. this.tw = c
  35344. }
  35345. this.Rb.o(this.m.width / 2, this.m.height / 2)
  35346. },
  35347. Nca: function() {
  35348. if (this.Gb) this.$ || this.Xb.ib(1);
  35349. else if (this.$) this.Xb.He(this.ea);
  35350. else {
  35351. var c = this.PV;
  35352. if (0 >= c.width || 0 >= c.height) {
  35353. this.Xb.ib(1);
  35354. return
  35355. }
  35356. var d = this.ea.height / c.height;
  35357. this.Xb.jb(this.ea.width / c.width);
  35358. this.Xb.tb(d)
  35359. }
  35360. this.Xb.o(this.m.width / 2, this.m.height / 2)
  35361. },
  35362. On: function() {
  35363. this.jX && (this.ufa(), this.jX = !1);
  35364. this.GX && (this.Rfa(), this.GX = !1);
  35365. this.OV && (this.Nca(), this.OV = !1)
  35366. },
  35367. fJa: function() {
  35368. this.qg.o(0.5 * this.m.width, 0.5 * this.m.height)
  35369. },
  35370. wHa: function(c) {
  35371. this.IQ = c
  35372. },
  35373. jy: function(c) {
  35374. this.qg.wa(c)
  35375. },
  35376. fea: function() {
  35377. return this.qg.qc()
  35378. },
  35379. gy: function(c) {
  35380. this.XN.r = c.r;
  35381. this.XN.g = c.g;
  35382. this.XN.b = c.b;
  35383. this.qg.Wb(c)
  35384. },
  35385. cea: function() {
  35386. return this.qg.$a()
  35387. },
  35388. iy: function(c) {
  35389. this.qg.Qd(c)
  35390. },
  35391. eea: function() {
  35392. return this.qg.Un()
  35393. },
  35394. hy: function(c) {
  35395. this.qg.de(c)
  35396. },
  35397. dea: function() {
  35398. return this.qg.Cp()
  35399. },
  35400. Rua: function(c) {
  35401. this.qg.font = c
  35402. },
  35403. hsa: function() {
  35404. return this.qg.font
  35405. },
  35406. sJ: function() {
  35407. this.Ii(this.gb);
  35408. this.Ii(this.Rb);
  35409. this.Ii(this.Xb)
  35410. },
  35411. dk: function() {
  35412. return "Button"
  35413. },
  35414. Zh: function() {
  35415. return Ec.create()
  35416. },
  35417. zi: function(c) {
  35418. this.We = c.We;
  35419. this.zh(c.$);
  35420. this.Hx(c.iX, c.SF);
  35421. this.Ix(c.vV, c.cG);
  35422. this.Gx(c.NV, c.hF);
  35423. this.q2(c.pz);
  35424. this.r2(c.qz);
  35425. this.p2(c.oz);
  35426. this.jy(c.fea());
  35427. this.hy(c.dea());
  35428. this.iy(c.eea());
  35429. this.gy(c.cea());
  35430. this.wHa(c.IQ)
  35431. }
  35432. }),
  35433. q = Ec.prototype;
  35434. f.d(q, "titleText", q.fea, q.jy);
  35435. f.d(q, "titleFont", q.hsa, q.Rua);
  35436. f.d(q, "titleFontSize", q.eea, q.iy);
  35437. f.d(q, "titleFontName", q.dea, q.hy);
  35438. f.d(q, "titleColor", q.cea, q.gy);
  35439. q = null;
  35440. Ec.create = function(c, d, e, g) {
  35441. var h = new Ec;
  35442. if (void 0 === c) return h;
  35443. h.j(c, d, e, g)
  35444. };
  35445. Ec.k6 = -2;
  35446. Ec.I6 = -2;
  35447. Ec.X4 = -2;
  35448. Ec.Koa = -1;
  35449. Ec.g7 = 0;
  35450. Ec.Poa = 1;
  35451. var Fc = y.extend({
  35452. Zc: null,
  35453. ye: null,
  35454. Ue: null,
  35455. xe: null,
  35456. Be: null,
  35457. Rj: !0,
  35458. Jv: null,
  35459. Kv: null,
  35460. Iv: null,
  35461. $U: y.Oa,
  35462. ZU: y.Oa,
  35463. kW: y.Oa,
  35464. YU: y.Oa,
  35465. jW: y.Oa,
  35466. I8: "",
  35467. K8: "",
  35468. i$: "",
  35469. H8: "",
  35470. h$: "",
  35471. ta: "CheckBox",
  35472. YK: !0,
  35473. aL: !0,
  35474. jM: !0,
  35475. XK: !0,
  35476. iM: !0,
  35477. ctor: function() {
  35478. y.prototype.ctor.call(this)
  35479. },
  35480. j: function(c, d, e, g, h, k) {
  35481. return y.prototype.j.call(this) ? (this.Rj = !0, this.Om(!0), void 0 === c && this.Ur(c, d, e, g, h, k), !0) : !1
  35482. },
  35483. fl: function() {
  35484. this.Zc = f.q.create();
  35485. this.ye = f.q.create();
  35486. this.Ue = f.q.create();
  35487. this.xe = f.q.create();
  35488. this.Be = f.q.create();
  35489. this.bd(this.Zc,
  35490. Fc.rja, -1);
  35491. this.bd(this.ye, Fc.sja, -1);
  35492. this.bd(this.Ue, Fc.Jla, -1);
  35493. this.bd(this.xe, Fc.qja, -1);
  35494. this.bd(this.Be, Fc.Ila, -1);
  35495. window.test = [this.Zc, this.ye, this.Ue, this.xe, this.Be];
  35496. window.a = this
  35497. },
  35498. Ur: function(c, d, e, g, h, k) {
  35499. this.jC(c, k);
  35500. this.lC(d, k);
  35501. this.mC(e, k);
  35502. this.kC(g, k);
  35503. this.nC(h, k)
  35504. },
  35505. jC: function(c, d) {
  35506. if (c) {
  35507. d = d || y.Oa;
  35508. this.I8 = c;
  35509. this.$U = d;
  35510. var e = this.Zc;
  35511. switch (this.$U) {
  35512. case y.Oa:
  35513. e.ab(c);
  35514. break;
  35515. case y.cb:
  35516. e.Dd(c)
  35517. }
  35518. this.FZ();
  35519. e.Ba || (this.Zc.Ga(this.pb), e.oe(function() {
  35520. this.FZ()
  35521. }, this));
  35522. this.sk();
  35523. this.Al();
  35524. this.Zc.F(this.$a());
  35525. this.Zc.J(this.vb());
  35526. this.Qf(this.Zc.e());
  35527. this.YK = !0
  35528. }
  35529. },
  35530. lC: function(c, d) {
  35531. if (c) {
  35532. d = d || y.Oa;
  35533. this.K8 = c;
  35534. this.ZU = d;
  35535. switch (this.ZU) {
  35536. case y.Oa:
  35537. this.ye.ab(c);
  35538. break;
  35539. case y.cb:
  35540. this.ye.Dd(c)
  35541. }
  35542. this.sk();
  35543. this.Al();
  35544. this.ye.F(this.$a());
  35545. this.ye.J(this.vb());
  35546. this.aL = !0
  35547. }
  35548. },
  35549. mC: function(c, d) {
  35550. if (c) {
  35551. d = d || y.Oa;
  35552. this.i$ = c;
  35553. this.kW = d;
  35554. switch (this.kW) {
  35555. case y.Oa:
  35556. this.Ue.ab(c);
  35557. break;
  35558. case y.cb:
  35559. this.Ue.Dd(c)
  35560. }
  35561. this.sk();
  35562. this.Al();
  35563. this.Ue.F(this.$a());
  35564. this.Ue.J(this.vb());
  35565. this.jM = !0
  35566. }
  35567. },
  35568. kC: function(c, d) {
  35569. if (c) {
  35570. d = d || y.Oa;
  35571. this.H8 = c;
  35572. this.YU =
  35573. d;
  35574. switch (this.YU) {
  35575. case y.Oa:
  35576. this.xe.ab(c);
  35577. break;
  35578. case y.cb:
  35579. this.xe.Dd(c)
  35580. }
  35581. this.sk();
  35582. this.Al();
  35583. this.xe.F(this.$a());
  35584. this.xe.J(this.vb());
  35585. this.XK = !0
  35586. }
  35587. },
  35588. nC: function(c, d) {
  35589. if (c) {
  35590. d = d || y.Oa;
  35591. this.h$ = c;
  35592. this.jW = d;
  35593. switch (this.jW) {
  35594. case y.Oa:
  35595. this.Be.ab(c);
  35596. break;
  35597. case y.cb:
  35598. this.Be.Dd(c)
  35599. }
  35600. this.sk();
  35601. this.Al();
  35602. this.Be.F(this.$a());
  35603. this.Be.J(this.vb());
  35604. this.iM = !0
  35605. }
  35606. },
  35607. rI: function() {
  35608. this.Zc.za(!0);
  35609. this.ye.za(!1);
  35610. this.xe.za(!1);
  35611. this.Be.za(!1)
  35612. },
  35613. sI: function() {
  35614. this.Zc.za(!1);
  35615. this.ye.za(!0);
  35616. this.xe.za(!1);
  35617. this.Be.za(!1)
  35618. },
  35619. vC: function() {
  35620. this.Zc.za(!1);
  35621. this.ye.za(!1);
  35622. this.xe.za(!0);
  35623. this.Ue.za(!1);
  35624. this.Rj && this.Be.za(!0)
  35625. },
  35626. fy: function(c) {
  35627. c != this.Rj && (this.Rj = c, this.Ue.za(this.Rj))
  35628. },
  35629. jBa: function() {
  35630. return this.Rj
  35631. },
  35632. oGa: function() {
  35633. this.Iv && this.Iv(this, Fc.l5);
  35634. this.Jv && this.Kv && this.Kv.call(this.Jv, this, Fc.l5)
  35635. },
  35636. PIa: function() {
  35637. this.Iv && this.Iv(this, Fc.n5);
  35638. this.Jv && this.Kv && this.Kv.call(this.Jv, this, Fc.n5)
  35639. },
  35640. X1: function() {
  35641. y.prototype.X1.call(this);
  35642. this.Rj ? (this.fy(!1), this.PIa()) : (this.fy(!0), this.oGa())
  35643. },
  35644. nPa: function(c, d) {
  35645. this.Kv = c;
  35646. this.Jv = d
  35647. },
  35648. addEventListener: function(c) {
  35649. this.Iv =
  35650. c
  35651. },
  35652. Wn: function() {
  35653. return this.Zc.e()
  35654. },
  35655. sk: function() {
  35656. this.Zc.Pd(this.Fb);
  35657. this.ye.Pd(this.Fb);
  35658. this.Ue.Pd(this.Fb);
  35659. this.xe.Pd(this.Fb);
  35660. this.Be.Pd(this.Fb)
  35661. },
  35662. Al: function() {
  35663. this.Zc.Yf(this.Hb);
  35664. this.ye.Yf(this.Hb);
  35665. this.Ue.Yf(this.Hb);
  35666. this.xe.Yf(this.Hb);
  35667. this.Be.Yf(this.Hb)
  35668. },
  35669. S: function(c, d) {
  35670. void 0 === d ? (y.prototype.S.call(this, c), this.Zc.S(c), this.ye.S(c), this.xe.S(c), this.Ue.S(c), this.Be.S(c)) : (y.prototype.S.call(this, c, d), this.Zc.S(c, d), this.ye.S(c, d), this.xe.S(c, d), this.Ue.S(c, d), this.Be.S(c, d))
  35671. },
  35672. Xe: function(c) {
  35673. y.prototype.Xe.call(this,
  35674. c);
  35675. this.Zc.Xe(c);
  35676. this.ye.Xe(c);
  35677. this.xe.Xe(c);
  35678. this.Ue.Xe(c);
  35679. this.Be.Xe(c)
  35680. },
  35681. Ye: function(c) {
  35682. y.prototype.Ye.call(this, c);
  35683. this.Zc.Ye(c);
  35684. this.ye.Ye(c);
  35685. this.xe.Ye(c);
  35686. this.Ue.Ye(c);
  35687. this.Be.Ye(c)
  35688. },
  35689. kc: function() {
  35690. y.prototype.kc.call(this);
  35691. this.iM = this.XK = this.jM = this.aL = this.YK = !0
  35692. },
  35693. e: function() {
  35694. return this.Zc.e()
  35695. },
  35696. lf: function() {
  35697. return this.Zc.lf()
  35698. },
  35699. Gg: function() {
  35700. return this.Zc.Gg()
  35701. },
  35702. Jr: function() {
  35703. return this.Zc
  35704. },
  35705. FZ: function() {
  35706. if (this.Gb) this.Zc.ib(1);
  35707. else {
  35708. var c = this.Zc.e();
  35709. if (0 >= c.width || 0 >= c.height) {
  35710. this.Zc.ib(1);
  35711. return
  35712. }
  35713. var d = this.ea.height / c.height;
  35714. this.Zc.jb(this.ea.width / c.width);
  35715. this.Zc.tb(d)
  35716. }
  35717. c = this.m.width / 2;
  35718. d = this.m.height / 2;
  35719. this.Zc.o(c, d);
  35720. this.ye.o(c, d);
  35721. this.Ue.o(c, d);
  35722. this.xe.o(c, d);
  35723. this.Be.o(c, d)
  35724. },
  35725. Cwa: function() {
  35726. if (this.Gb) this.ye.ib(1);
  35727. else {
  35728. var c = this.ye.e();
  35729. if (0 >= c.width || 0 >= c.height) this.ye.ib(1);
  35730. else {
  35731. var d = this.ea.height / c.height;
  35732. this.ye.jb(this.ea.width / c.width);
  35733. this.ye.tb(d)
  35734. }
  35735. }
  35736. },
  35737. qza: function() {
  35738. if (this.Gb) this.Ue.ib(1);
  35739. else {
  35740. var c = this.Ue.e();
  35741. if (0 >= c.width || 0 >= c.height) this.Ue.ib(1);
  35742. else {
  35743. var d =
  35744. this.ea.height / c.height;
  35745. this.Ue.jb(this.ea.width / c.width);
  35746. this.Ue.tb(d)
  35747. }
  35748. }
  35749. },
  35750. Bwa: function() {
  35751. if (this.Gb) this.xe.ib(1);
  35752. else {
  35753. var c = this.xe.e();
  35754. if (0 >= c.width || 0 >= c.height) this.xe.ib(1);
  35755. else {
  35756. var d = this.ea.height / c.height;
  35757. this.xe.jb(this.ea.width / c.width);
  35758. this.xe.tb(d)
  35759. }
  35760. }
  35761. },
  35762. pza: function() {
  35763. if (this.Gb) this.Be.ib(1);
  35764. else {
  35765. var c = this.Be.e();
  35766. if (0 >= c.width || 0 >= c.height) this.Be.ib(1);
  35767. else {
  35768. var d = this.ea.height / c.height;
  35769. this.Be.jb(this.ea.width / c.width);
  35770. this.Be.tb(d)
  35771. }
  35772. }
  35773. },
  35774. sJ: function() {
  35775. this.Ii(this.Zc);
  35776. this.Ii(this.ye);
  35777. this.Ii(this.Ue);
  35778. this.Ii(this.xe);
  35779. this.Ii(this.Be)
  35780. },
  35781. WC: function() {
  35782. this.Cl(this.Zc);
  35783. this.Cl(this.ye);
  35784. this.Cl(this.Ue);
  35785. this.Cl(this.xe);
  35786. this.Cl(this.Be)
  35787. },
  35788. dk: function() {
  35789. return "CheckBox"
  35790. },
  35791. Zh: function() {
  35792. return Fc.create()
  35793. },
  35794. zi: function(c) {
  35795. c instanceof Fc && (this.jC(c.I8, c.$U), this.lC(c.K8, c.ZU), this.mC(c.i$, c.kW), this.kC(c.H8, c.YU), this.nC(c.h$, c.jW), this.fy(c.Rj), this.Jv = c.Jv, this.Kv = c.Kv, this.Iv = c.Iv)
  35796. },
  35797. On: function() {
  35798. this.YK && (this.FZ(), this.YK = !1);
  35799. this.aL && (this.Cwa(), this.aL = !1);
  35800. this.jM && (this.qza(),
  35801. this.jM = !1);
  35802. this.XK && (this.Bwa(), this.XK = !1);
  35803. this.iM && (this.pza(), this.iM = !1)
  35804. }
  35805. }),
  35806. q = Fc.prototype;
  35807. f.d(q, "selected", q.jBa, q.fy);
  35808. q = null;
  35809. Fc.create = function(c, d, e, g, h, k) {
  35810. var m = new Fc;
  35811. void 0 === c ? m.j() : m.j(c, d, e, g, h, k);
  35812. return m
  35813. };
  35814. Fc.l5 = 0;
  35815. Fc.n5 = 1;
  35816. Fc.rja = -1;
  35817. Fc.sja = -1;
  35818. Fc.qja = -1;
  35819. Fc.Jla = -1;
  35820. Fc.Ila = -1;
  35821. var Gc = y.extend({
  35822. $: !1,
  35823. We: !0,
  35824. kf: null,
  35825. Gd: null,
  35826. Hn: "",
  35827. sM: y.Oa,
  35828. nn: null,
  35829. ta: "ImageView",
  35830. rM: !0,
  35831. ctor: function() {
  35832. this.kf = x(0, 0, 0, 0);
  35833. this.nn = t(this.ea.width, this.ea.height);
  35834. y.prototype.ctor.call(this)
  35835. },
  35836. j: function(c, d) {
  35837. y.prototype.j.call(this);
  35838. void 0 !== c && this.Wf(c, d);
  35839. return !0
  35840. },
  35841. fl: function() {
  35842. this.Gd = f.q.create();
  35843. this.bd(this.Gd, Gc.xk, -1)
  35844. },
  35845. Wf: function(c, d) {
  35846. if (c) {
  35847. d = d || y.Oa;
  35848. this.Hn = c;
  35849. this.sM = d;
  35850. var e = this.Gd;
  35851. switch (this.sM) {
  35852. case y.Oa:
  35853. e.Ge(c);
  35854. break;
  35855. case y.cb:
  35856. e.hl(c)
  35857. }
  35858. var g = e.e();
  35859. e.Ba ? (this.nn.width = this.pb.width ? this.pb.width :
  35860. g.width, this.nn.height = this.pb.height ? this.pb.height : g.height) : (e.oe(function() {
  35861. var c = e.e();
  35862. this.nn.width = this.pb.width ? this.pb.width : c.width;
  35863. this.nn.height = this.pb.height ? this.pb.height : c.height;
  35864. e.Cc && e.Cc(this.kf);
  35865. this.qea()
  35866. }, this), this.nn.width = this.pb.width, this.nn.height = this.pb.height);
  35867. this.$ && e.Cc(this.kf);
  35868. this.sk();
  35869. this.Al();
  35870. e.F(this.$a());
  35871. e.J(this.vb());
  35872. this.Qf(this.nn);
  35873. this.rM = !0
  35874. }
  35875. },
  35876. sc: function(c) {
  35877. this.$ || this.Gd.sc(c)
  35878. },
  35879. sk: function() {
  35880. this.$ ? this.Gd.jb(this.Fb ? -1 : 1) : this.Gd.Pd(this.Fb)
  35881. },
  35882. Al: function() {
  35883. this.$ ?
  35884. this.Gd.tb(this.Hb ? -1 : 1) : this.Gd.Yf(this.Hb)
  35885. },
  35886. On: function() {
  35887. this.rM && (this.qea(), this.rM = !1)
  35888. },
  35889. zh: function(c) {
  35890. this.$ != c && (this.$ = c, this.Ci(this.Gd), this.Gd = null, this.Gd = this.$ ? f.Ua.create() : f.q.create(), this.Wf(this.Hn, this.sM), this.bd(this.Gd, Gc.xk, -1), this.$ ? (c = this.Gb, this.df(!1), this.We = c) : this.df(this.We), this.Cc(this.kf))
  35891. },
  35892. T0: function() {
  35893. return this.$
  35894. },
  35895. df: function(c) {
  35896. if (!this.$ || this.$ && !c) y.prototype.df.call(this, c), this.We = c
  35897. },
  35898. Cc: function(c) {
  35899. this.kf = c;
  35900. this.$ && this.Gd.Cc(c)
  35901. },
  35902. X_: function() {
  35903. return this.kf
  35904. },
  35905. S: function(c, d) {
  35906. void 0 === d ? (y.prototype.S.call(this, c), this.Gd.S(c)) : (y.prototype.S.call(this, c, d), this.Gd.S(c, d))
  35907. },
  35908. Xe: function(c) {
  35909. y.prototype.Xe.call(this, c);
  35910. this.Gd.Xe(c)
  35911. },
  35912. Ye: function(c) {
  35913. y.prototype.Ye.call(this, c);
  35914. this.Gd.Ye(c)
  35915. },
  35916. kc: function() {
  35917. y.prototype.kc.call(this);
  35918. this.rM = !0
  35919. },
  35920. e: function() {
  35921. return this.nn
  35922. },
  35923. lf: function() {
  35924. return this.nn.width
  35925. },
  35926. Gg: function() {
  35927. return this.nn.height
  35928. },
  35929. Jr: function() {
  35930. return this.Gd
  35931. },
  35932. qea: function() {
  35933. if (this.Gb) this.$ || this.Gd.ib(1);
  35934. else if (this.$) this.Gd.He(this.ea);
  35935. else {
  35936. var c =
  35937. this.Gd.e();
  35938. if (0 >= c.width || 0 >= c.height) {
  35939. this.Gd.ib(1);
  35940. return
  35941. }
  35942. this.Gd.jb(this.ea.width / c.width);
  35943. this.Gd.tb(this.ea.height / c.height)
  35944. }
  35945. this.Gd.o(this.m.width / 2, this.m.height / 2)
  35946. },
  35947. sJ: function() {
  35948. this.Ii(this.Gd)
  35949. },
  35950. WC: function() {
  35951. this.Cl(this.Gd)
  35952. },
  35953. dk: function() {
  35954. return "ImageView"
  35955. },
  35956. Wn: function() {},
  35957. Zh: function() {
  35958. return Gc.create()
  35959. },
  35960. zi: function(c) {
  35961. c instanceof Gc && (this.We = c.We, this.zh(c.$), this.Wf(c.Hn, c.sM), this.Cc(c.kf))
  35962. }
  35963. });
  35964. Gc.create = function(c, d) {
  35965. var e = new Gc;
  35966. void 0 !== c && e.j(c, d);
  35967. return e
  35968. };
  35969. Gc.xk = -1;
  35970. var Hc = y.extend({
  35971. Oh: null,
  35972. dm: 100,
  35973. Pw: 0,
  35974. ob: null,
  35975. tN: y.Oa,
  35976. Sl: null,
  35977. $: !1,
  35978. We: !0,
  35979. kf: null,
  35980. Hn: "",
  35981. Osa: !1,
  35982. ta: "LoadingBar",
  35983. Cq: !0,
  35984. ctor: function() {
  35985. this.Oh = Hc.EK;
  35986. this.Sl = t(0, 0);
  35987. this.kf = x(0, 0, 0, 0);
  35988. y.prototype.ctor.call(this)
  35989. },
  35990. fl: function() {
  35991. this.ob = f.q.create();
  35992. f.v.prototype.n.call(this, this.ob, Hc.xk, -1);
  35993. this.ob.S(0, 0.5)
  35994. },
  35995. xh: function(c) {
  35996. if (this.Oh != c) switch (this.Oh = c, this.Oh) {
  35997. case Hc.EK:
  35998. this.ob.S(0, 0.5);
  35999. this.ob.o(0.5 * -this.Pw, 0);
  36000. this.$ || this.ob.Pd(!1);
  36001. break;
  36002. case Hc.gU:
  36003. this.ob.S(1, 0.5), this.ob.o(0.5 * this.Pw, 0), this.$ ||
  36004. this.ob.Pd(!0)
  36005. }
  36006. },
  36007. OB: function() {
  36008. return this.Oh
  36009. },
  36010. Wf: function(c, d) {
  36011. if (c) {
  36012. this.tN = d = d || y.Oa;
  36013. this.Hn = c;
  36014. var e = this.ob;
  36015. switch (this.tN) {
  36016. case y.Oa:
  36017. this.$ ? (e.Ge(c), e.Cc(this.kf)) : e.ab(c);
  36018. break;
  36019. case y.cb:
  36020. this.$ ? (e.hl(c), e.Cc(this.kf)) : e.Dd(c)
  36021. }
  36022. e.F(this.$a());
  36023. e.J(this.vb());
  36024. var g = e.e();
  36025. this.Sl.width = g.width;
  36026. this.Sl.height = g.height;
  36027. switch (this.Oh) {
  36028. case Hc.EK:
  36029. e.S(0, 0.5);
  36030. this.$ || e.Pd(!1);
  36031. break;
  36032. case Hc.gU:
  36033. e.S(1, 0.5), this.$ || e.Pd(!0)
  36034. }
  36035. this.HO();
  36036. this.Qf(this.Sl);
  36037. this.Cq = !0
  36038. }
  36039. },
  36040. zh: function(c) {
  36041. this.$ != c && (this.$ = c, this.Ci(this.ob),
  36042. this.ob = this.$ ? f.Ua.create() : f.q.create(), this.Wf(this.Hn, this.tN), this.bd(this.ob, Hc.xk, -1), this.$ ? (c = this.Gb, this.df(!1), this.We = c) : this.df(this.We), this.Cc(this.kf), this.Fi(this.dm))
  36043. },
  36044. T0: function() {
  36045. return this.$
  36046. },
  36047. Cc: function(c) {
  36048. this.kf = c;
  36049. this.$ && this.ob.Cc(c)
  36050. },
  36051. X_: function() {
  36052. return this.kf
  36053. },
  36054. Fi: function(c) {
  36055. if (!(0 > c || 100 < c || 0 >= this.Pw))
  36056. if (this.dm = c, c = this.dm / 100, this.$) this.Lha();
  36057. else {
  36058. var d = this.ob.EH();
  36059. this.ob.sc(x(d.x, d.y, this.Sl.width * c, this.Sl.height))
  36060. }
  36061. },
  36062. f0: function() {
  36063. return this.dm
  36064. },
  36065. kc: function() {
  36066. y.prototype.kc.call(this);
  36067. this.Cq = !0
  36068. },
  36069. df: function(c) {
  36070. if (!this.$ || this.$ && !c) y.prototype.df.call(this, c), this.We = c
  36071. },
  36072. Wn: function() {
  36073. return this.Sl
  36074. },
  36075. e: function() {
  36076. return this.Sl
  36077. },
  36078. lf: function() {
  36079. return this.Sl.width
  36080. },
  36081. Gg: function() {
  36082. return this.Sl.height
  36083. },
  36084. Jr: function() {
  36085. return this.ob
  36086. },
  36087. HO: function() {
  36088. var c = this.ob;
  36089. if (this.Gb) this.$ || (this.Pw = this.Sl.width, c.ib(1));
  36090. else if (this.Pw = this.ea.width, this.$) this.Lha();
  36091. else {
  36092. var d = this.Sl;
  36093. if (0 >= d.width || 0 >= d.height) {
  36094. c.ib(1);
  36095. return
  36096. }
  36097. var e = this.ea.height / d.height;
  36098. c.jb(this.ea.width / d.width);
  36099. c.tb(e)
  36100. }
  36101. switch (this.Oh) {
  36102. case Hc.EK:
  36103. c.o(0,
  36104. 0.5 * this.m.height);
  36105. break;
  36106. case Hc.gU:
  36107. c.o(this.Pw, 0.5 * this.m.height)
  36108. }
  36109. },
  36110. On: function() {
  36111. this.Cq && (this.HO(), this.Cq = !1)
  36112. },
  36113. Lha: function() {
  36114. this.ob.He(t(this.dm / 100 * this.Pw, this.ea.height))
  36115. },
  36116. sJ: function() {
  36117. this.Ii(this.ob)
  36118. },
  36119. WC: function() {
  36120. this.Cl(this.ob)
  36121. },
  36122. dk: function() {
  36123. return "LoadingBar"
  36124. },
  36125. Zh: function() {
  36126. return Hc.create()
  36127. },
  36128. zi: function(c) {
  36129. c instanceof Hc && (this.We = c.We, this.zh(c.$), this.Wf(c.Hn, c.tN), this.Cc(c.kf), this.Fi(c.dm), this.xh(c.Oh))
  36130. }
  36131. }),
  36132. q = Hc.prototype;
  36133. f.d(q, "direction", q.OB, q.xh);
  36134. f.d(q, "percent", q.f0, q.Fi);
  36135. q = null;
  36136. Hc.create = function(c, d) {
  36137. var e = new Hc;
  36138. void 0 !== c && e.Wf(c);
  36139. void 0 !== d && e.Fi(d);
  36140. return e
  36141. };
  36142. Hc.EK = 0;
  36143. Hc.gU = 1;
  36144. Hc.xk = -1;
  36145. var Ic = y.extend({
  36146. ob: null,
  36147. Ud: null,
  36148. EA: null,
  36149. Tk: null,
  36150. lm: null,
  36151. km: null,
  36152. PA: null,
  36153. cL: 0,
  36154. dm: 0,
  36155. $: !1,
  36156. We: !0,
  36157. Hn: "",
  36158. NX: "",
  36159. gba: "",
  36160. hba: "",
  36161. fba: "",
  36162. lL: null,
  36163. mL: null,
  36164. rG: null,
  36165. sG: null,
  36166. dL: y.Oa,
  36167. mN: y.Oa,
  36168. bV: y.Oa,
  36169. cV: y.Oa,
  36170. aV: y.Oa,
  36171. Osa: !1,
  36172. ta: "Slider",
  36173. Cq: !0,
  36174. eG: !0,
  36175. ctor: function() {
  36176. this.EA = t(0, 0);
  36177. this.lL = x(0, 0, 0, 0);
  36178. this.mL = x(0, 0, 0, 0);
  36179. y.prototype.ctor.call(this)
  36180. },
  36181. j: function() {
  36182. return y.prototype.j.call(this) ? !0 : !1
  36183. },
  36184. fl: function() {
  36185. this.ob = f.q.create();
  36186. this.Ud = f.q.create();
  36187. this.Ud.S(0, 0.5);
  36188. this.bd(this.ob, Ic.U3, -1);
  36189. this.bd(this.Ud, Ic.J6, -1);
  36190. this.Tk = f.q.create();
  36191. this.lm = f.q.create();
  36192. this.lm.za(!1);
  36193. this.km = f.q.create();
  36194. this.km.za(!1);
  36195. this.PA = f.v.create();
  36196. this.PA.n(this.Tk);
  36197. this.PA.n(this.lm);
  36198. this.PA.n(this.km);
  36199. this.bd(this.PA, Ic.lja, -1)
  36200. },
  36201. ik: function(c, d) {
  36202. if (c) {
  36203. d = d || y.Oa;
  36204. this.Hn = c;
  36205. this.dL = d;
  36206. var e = this.ob;
  36207. switch (this.dL) {
  36208. case y.Oa:
  36209. this.$ ? e.Ge(c) : e.ab(c);
  36210. break;
  36211. case y.cb:
  36212. this.$ ? e.hl(c) : e.Dd(c)
  36213. }
  36214. e.F(this.$a());
  36215. e.J(this.vb());
  36216. this.eG = this.Cq = !0;
  36217. this.Qf(this.ob.e())
  36218. }
  36219. },
  36220. wu: function(c, d) {
  36221. if (c) {
  36222. d = d || y.Oa;
  36223. this.NX = c;
  36224. this.mN = d;
  36225. var e = this.Ud;
  36226. switch (this.mN) {
  36227. case y.Oa:
  36228. this.$ ?
  36229. e.Ge(c) : e.ab(c);
  36230. break;
  36231. case y.cb:
  36232. this.$ ? e.hl(c) : e.Dd(c)
  36233. }
  36234. this.Ud.F(this.$a());
  36235. this.Ud.J(this.vb());
  36236. this.Ud.S(r(0, 0.5));
  36237. e = this.Ud.e();
  36238. this.EA = {
  36239. width: e.width,
  36240. height: e.height
  36241. };
  36242. this.eG = !0
  36243. }
  36244. },
  36245. zh: function(c) {
  36246. this.$ != c && (this.$ = c, this.Ci(this.ob, !0), this.Ci(this.Ud, !0), this.Ud = this.ob = null, this.$ ? (this.ob = f.Ua.create(), this.Ud = f.Ua.create()) : (this.ob = f.q.create(), this.Ud = f.q.create()), this.ik(this.Hn, this.dL), this.wu(this.NX, this.mN), this.bd(this.ob, Ic.U3, -1), this.bd(this.Ud, Ic.J6, -1), this.$ ? (c = this.Gb, this.df(!1),
  36247. this.We = c) : this.df(this.We), this.Mga(this.lL), this.Lga(this.mL))
  36248. },
  36249. T0: function() {
  36250. return this.$
  36251. },
  36252. df: function(c) {
  36253. if (!this.$ || this.$ && !c) y.prototype.df.call(this, c), this.We = c
  36254. },
  36255. Cc: function(c) {
  36256. this.Mga(c);
  36257. this.Lga(c)
  36258. },
  36259. Mga: function(c) {
  36260. this.lL = c;
  36261. this.$ && this.ob.Cc(c)
  36262. },
  36263. LSa: function() {
  36264. return this.lL
  36265. },
  36266. Lga: function(c) {
  36267. this.mL = c;
  36268. this.$ && this.Ud.Cc(c)
  36269. },
  36270. PSa: function() {
  36271. return this.mL
  36272. },
  36273. jfa: function(c, d, e, g) {
  36274. this.hC(c, g);
  36275. this.iC(d, g);
  36276. this.gC(e, g)
  36277. },
  36278. hC: function(c, d) {
  36279. if (c) {
  36280. d = d || y.Oa;
  36281. this.gba = c;
  36282. this.bV = d;
  36283. switch (this.bV) {
  36284. case y.Oa:
  36285. this.Tk.ab(c);
  36286. break;
  36287. case y.cb:
  36288. this.Tk.Dd(c)
  36289. }
  36290. this.Tk.F(this.$a());
  36291. this.Tk.J(this.vb())
  36292. }
  36293. },
  36294. iC: function(c, d) {
  36295. if (c) {
  36296. d = d || y.Oa;
  36297. this.hba = c;
  36298. this.cV = d;
  36299. switch (this.cV) {
  36300. case y.Oa:
  36301. this.lm.ab(c);
  36302. break;
  36303. case y.cb:
  36304. this.lm.Dd(c)
  36305. }
  36306. this.lm.F(this.$a());
  36307. this.lm.J(this.vb())
  36308. }
  36309. },
  36310. gC: function(c, d) {
  36311. if (c) {
  36312. d = d || y.Oa;
  36313. this.fba = c;
  36314. this.aV = d;
  36315. switch (this.aV) {
  36316. case y.Oa:
  36317. this.km.ab(c);
  36318. break;
  36319. case y.cb:
  36320. this.km.Dd(c)
  36321. }
  36322. this.km.F(this.$a());
  36323. this.km.J(this.vb())
  36324. }
  36325. },
  36326. Fi: function(c) {
  36327. 100 < c && (c = 100);
  36328. 0 > c && (c = 0);
  36329. this.dm = c;
  36330. c = c / 100 * this.cL;
  36331. this.PA.o(r(c, this.m.height /
  36332. 2));
  36333. if (this.$) this.Ud.He(t(c, this.EA.height));
  36334. else {
  36335. var d = this.Ud,
  36336. e = d.EH();
  36337. d.sc(x(e.x, e.y, c, e.height), d.pf)
  36338. }
  36339. },
  36340. WB: function(c) {
  36341. c = this.Tk.yi(c);
  36342. var d = this.Tk.e();
  36343. return f.Bu(x(0, 0, d.width, d.height), c)
  36344. },
  36345. rc: function(c, d) {
  36346. var e = y.prototype.rc.call(this, c, d);
  36347. if (this.Rv) {
  36348. var g = this.yi(this.qm);
  36349. this.Fi(this.Mda(g.x));
  36350. this.Pfa()
  36351. }
  36352. return e
  36353. },
  36354. hd: function(c) {
  36355. c = this.yi(c.cf());
  36356. this.Fi(this.Mda(c.x));
  36357. this.Pfa()
  36358. },
  36359. gd: function(c, d) {
  36360. y.prototype.gd.call(this, c, d)
  36361. },
  36362. ef: function(c, d) {
  36363. y.prototype.ef.call(this, c, d)
  36364. },
  36365. Mda: function(c) {
  36366. return c /
  36367. this.cL * 100
  36368. },
  36369. rPa: function(c, d) {
  36370. this.sG = c;
  36371. this.rG = d
  36372. },
  36373. addEventListener: function(c) {
  36374. this.qb = c
  36375. },
  36376. Pfa: function() {
  36377. this.rG && this.sG && this.sG.call(this.rG, this, Ic.f5);
  36378. this.qb && this.qb(Ic.f5)
  36379. },
  36380. f0: function() {
  36381. return this.dm
  36382. },
  36383. kc: function() {
  36384. y.prototype.kc.call(this);
  36385. this.eG = this.Cq = !0
  36386. },
  36387. On: function() {
  36388. this.Cq && (this.HO(), this.Cq = !1);
  36389. this.eG && (this.pFa(), this.eG = !1)
  36390. },
  36391. Wn: function() {
  36392. return this.ob.e()
  36393. },
  36394. Jr: function() {
  36395. return this.ob
  36396. },
  36397. HO: function() {
  36398. if (this.Gb) this.ob.ib(1), this.cL = this.m.width;
  36399. else if (this.cL = this.m.width,
  36400. this.$) this.ob.He(this.m);
  36401. else {
  36402. var c = this.ob.e();
  36403. if (0 >= c.width || 0 >= c.height) {
  36404. this.ob.ib(1);
  36405. return
  36406. }
  36407. var d = this.m.height / c.height;
  36408. this.ob.jb(this.m.width / c.width);
  36409. this.ob.tb(d)
  36410. }
  36411. this.ob.o(this.m.width / 2, this.m.height / 2);
  36412. this.Fi(this.dm)
  36413. },
  36414. pFa: function() {
  36415. if (this.Gb) {
  36416. if (!this.$) {
  36417. var c = this.EA,
  36418. d = this.m.width / c.width,
  36419. c = this.m.height / c.height;
  36420. this.Ud.jb(d);
  36421. this.Ud.tb(c)
  36422. }
  36423. } else if (this.$) this.Ud.He(this.m), this.EA = this.Ud.e();
  36424. else {
  36425. c = this.EA;
  36426. if (0 >= c.width || 0 >= c.height) {
  36427. this.Ud.ib(1);
  36428. return
  36429. }
  36430. d = this.m.width / c.width;
  36431. c = this.m.height / c.height;
  36432. this.Ud.jb(d);
  36433. this.Ud.tb(c)
  36434. }
  36435. this.Ud.o(0, this.m.height / 2);
  36436. this.Fi(this.dm)
  36437. },
  36438. e: function() {
  36439. var c = this.ob.e();
  36440. return t(c.width, c.height)
  36441. },
  36442. lf: function() {
  36443. return this.ob.lf()
  36444. },
  36445. Gg: function() {
  36446. return this.ob.Gg()
  36447. },
  36448. rI: function() {
  36449. this.Tk.za(!0);
  36450. this.lm.za(!1);
  36451. this.km.za(!1)
  36452. },
  36453. sI: function() {
  36454. this.Tk.za(!1);
  36455. this.lm.za(!0);
  36456. this.km.za(!1)
  36457. },
  36458. vC: function() {
  36459. this.Tk.za(!1);
  36460. this.lm.za(!1);
  36461. this.km.za(!0)
  36462. },
  36463. dk: function() {
  36464. return "Slider"
  36465. },
  36466. Zh: function() {
  36467. return Ic.create()
  36468. },
  36469. zi: function(c) {
  36470. this.We = c.We;
  36471. this.zh(c.$);
  36472. this.ik(c.Hn, c.dL);
  36473. this.wu(c.NX, c.mN);
  36474. this.hC(c.gba, c.bV);
  36475. this.iC(c.hba, c.cV);
  36476. this.gC(c.fba, c.aV);
  36477. this.Fi(c.dm);
  36478. this.rG = c.rG;
  36479. this.sG = c.sG;
  36480. this.qb = c.qb
  36481. },
  36482. sJ: function() {
  36483. this.Ii(this.ob);
  36484. this.Ii(this.Ud);
  36485. this.Ii(this.Tk);
  36486. this.Ii(this.lm);
  36487. this.Ii(this.km)
  36488. },
  36489. WC: function() {
  36490. this.Cl(this.ob);
  36491. this.Cl(this.Ud);
  36492. this.Cl(this.Tk);
  36493. this.Cl(this.lm);
  36494. this.Cl(this.km)
  36495. }
  36496. }),
  36497. q = Ic.prototype;
  36498. f.d(q, "percent", q.f0, q.Fi);
  36499. q = null;
  36500. Ic.create = function() {
  36501. var c = new Ic;
  36502. return c && c.j() ? c : null
  36503. };
  36504. Ic.f5 = 0;
  36505. Ic.U3 = -3;
  36506. Ic.J6 = -2;
  36507. Ic.lja = -1;
  36508. var Jc = y.extend({
  36509. eO: !1,
  36510. WM: 1,
  36511. XM: 1,
  36512. Rc: "Thonburi",
  36513. Sc: 10,
  36514. gaa: 0.5,
  36515. Cb: "",
  36516. WA: null,
  36517. YOa: 0,
  36518. XOa: 0,
  36519. ta: "Text",
  36520. zc: null,
  36521. ar: !0,
  36522. ctor: function() {
  36523. this.zc = Jc.upa.g7;
  36524. this.WA = t(0, 0);
  36525. y.prototype.ctor.call(this)
  36526. },
  36527. j: function(c, d, e) {
  36528. return y.prototype.j.call(this) ? (0 < arguments.length && (this.wa(c), this.de(d), this.Qd(e)), !0) : !1
  36529. },
  36530. fl: function() {
  36531. this.Cb = f.ia.create();
  36532. f.v.prototype.n.call(this, this.Cb, Jc.xk, -1)
  36533. },
  36534. T2: function(c) {
  36535. f.log("Please use the setString");
  36536. this.wa(c)
  36537. },
  36538. wa: function(c) {
  36539. this.Cb.wa(c);
  36540. this.Qf(this.Cb.e());
  36541. this.ar = !0
  36542. },
  36543. getStringValue: function() {
  36544. f.log("Please use the getString");
  36545. return this.Cb.qc()
  36546. },
  36547. qc: function() {
  36548. return this.Cb.qc()
  36549. },
  36550. ru: function() {
  36551. return this.Cb.ru()
  36552. },
  36553. Qd: function(c) {
  36554. this.Sc = c;
  36555. this.Cb.Qd(c);
  36556. this.Qf(this.Cb.e());
  36557. this.ar = !0
  36558. },
  36559. Un: function() {
  36560. return this.Sc
  36561. },
  36562. de: function(c) {
  36563. this.Rc = c;
  36564. this.Cb.de(c);
  36565. this.Qf(this.Cb.e());
  36566. this.ar = !0
  36567. },
  36568. Ou: function(c) {
  36569. this.Cb.gR(c);
  36570. this.Qf(this.Cb.e());
  36571. this.ar = !0
  36572. },
  36573. gWa: function() {
  36574. return this.Cb.Pza()
  36575. },
  36576. ns: function(c) {
  36577. this.Cb.jR(c);
  36578. this.Qf(this.Cb.e());
  36579. this.ar = !0
  36580. },
  36581. uBa: function() {
  36582. return this.Cb.Xo
  36583. },
  36584. os: function(c) {
  36585. this.Cb.ER(c);
  36586. this.Qf(this.Cb.e());
  36587. this.ar = !0
  36588. },
  36589. vBa: function() {
  36590. return this.Cb.tp
  36591. },
  36592. BR: function(c) {
  36593. this.eO = c
  36594. },
  36595. aYa: function() {
  36596. return this.eO
  36597. },
  36598. rI: function() {
  36599. this.eO && (this.Cb.jb(this.WM), this.Cb.tb(this.XM))
  36600. },
  36601. sI: function() {
  36602. this.eO && (this.Cb.jb(this.WM + this.gaa), this.Cb.tb(this.XM + this.gaa))
  36603. },
  36604. vC: function() {},
  36605. sk: function() {
  36606. this.Fb ? this.Cb.jb(-1) : this.Cb.jb(1)
  36607. },
  36608. kc: function() {
  36609. y.prototype.kc.call(this);
  36610. this.ar = !0
  36611. },
  36612. On: function() {
  36613. this.ar && (this.iQ(), this.ar = !1)
  36614. },
  36615. Wn: function() {
  36616. return this.Cb.e()
  36617. },
  36618. Jr: function() {
  36619. return this.Cb
  36620. },
  36621. iQ: function() {
  36622. if (this.Gb) this.Cb.ib(1), this.WM = this.XM = 1;
  36623. else {
  36624. this.Cb.gR(t(this.m.width, this.m.height));
  36625. var c = this.Cb.e();
  36626. if (0 >= c.width || 0 >= c.height) {
  36627. this.Cb.ib(1);
  36628. return
  36629. }
  36630. var d = this.m.width / c.width,
  36631. c = this.m.height / c.height;
  36632. this.Cb.jb(d);
  36633. this.Cb.tb(c);
  36634. this.WM = d;
  36635. this.XM = c
  36636. }
  36637. this.Cb.o(this.m.width / 2, this.m.height / 2)
  36638. },
  36639. dk: function() {
  36640. return "Label"
  36641. },
  36642. L_: function(c, d, e) {
  36643. this.Cb.L_(c, d, e)
  36644. },
  36645. qRa: function() {},
  36646. pRa: function() {},
  36647. RQa: function() {},
  36648. Zh: function() {
  36649. return Jc.create()
  36650. },
  36651. Cp: function() {
  36652. return this.Rc
  36653. },
  36654. IH: function() {
  36655. return this.zc
  36656. },
  36657. mr: function(c) {
  36658. var d = f.ia.eM.exec(c);
  36659. d && (this.Sc = parseInt(d[1]), this.Rc = d[2], this.Cb.mr(c), this.iQ())
  36660. },
  36661. Qv: function() {
  36662. return this.Cb.Qv()
  36663. },
  36664. CN: function(c) {
  36665. this.WA.width = c;
  36666. this.Cb.CN(c);
  36667. this.iQ()
  36668. },
  36669. BN: function(c) {
  36670. this.WA.height = c;
  36671. this.Cb.BN(c);
  36672. this.iQ()
  36673. },
  36674. vF: function() {
  36675. return this.WA.width
  36676. },
  36677. pW: function() {
  36678. return this.WA.height
  36679. },
  36680. zi: function(c) {
  36681. c instanceof Kc && (this.de(c.Rc), this.Qd(c.Un()), this.wa(c.qc()), this.BR(c.C5a), this.Ou(c.WA), this.ns(c.Cb.Xo), this.os(c.Cb.tp))
  36682. }
  36683. }),
  36684. q =
  36685. Jc.prototype;
  36686. f.d(q, "boundingWidth", q.vF, q.CN);
  36687. f.d(q, "boundingHeight", q.pW, q.BN);
  36688. f.d(q, "string", q.qc, q.wa);
  36689. f.d(q, "stringLength", q.ru);
  36690. f.d(q, "font", q.Qv, q.mr);
  36691. f.d(q, "fontSize", q.Un, q.Qd);
  36692. f.d(q, "fontName", q.Cp, q.de);
  36693. f.d(q, "textAlign", q.uBa, q.ns);
  36694. f.d(q, "verticalAlign", q.vBa, q.os);
  36695. var q = null,
  36696. Kc = Jc.create = function(c, d, e) {
  36697. var g = new Jc;
  36698. if (0 < arguments.length) {
  36699. if (g && g.j(c, d, e)) return g
  36700. } else if (g && g.j()) return g;
  36701. return null
  36702. };
  36703. Jc.xk = -1;
  36704. Jc.upa = {
  36705. g7: 0,
  36706. Poa: 1
  36707. };
  36708. var Lc = y.extend({
  36709. Qh: null,
  36710. Hw: "",
  36711. qV: "",
  36712. Sj: 0,
  36713. Ti: 0,
  36714. GY: "",
  36715. ta: "TextAtlas",
  36716. JF: null,
  36717. ctor: function() {
  36718. y.prototype.ctor.call(this)
  36719. },
  36720. fl: function() {
  36721. this.Qh = new f.an;
  36722. this.Qh.S(r(0.5, 0.5));
  36723. this.bd(this.Qh, Lc.xk, -1)
  36724. },
  36725. setProperty: function(c, d, e, g, h) {
  36726. this.Hw = c;
  36727. this.qV = d;
  36728. this.Sj = e;
  36729. this.Ti = g;
  36730. this.GY = h;
  36731. this.Qh.xf(c, this.qV, this.Sj, this.Ti, this.GY[0]);
  36732. this.Qf(this.Qh.e());
  36733. this.JF = !0
  36734. },
  36735. wa: function(c) {
  36736. this.Hw = c;
  36737. this.Qh.wa(c);
  36738. this.Qf(this.Qh.e());
  36739. this.JF = !0
  36740. },
  36741. setStringValue: function(c) {
  36742. f.log("Please use the setString");
  36743. this.wa(c)
  36744. },
  36745. getStringValue: function() {
  36746. f.log("Please use the getString");
  36747. return this.qc()
  36748. },
  36749. qc: function() {
  36750. return this.Qh.qc()
  36751. },
  36752. ru: function() {
  36753. return this.Qh.ru()
  36754. },
  36755. kc: function() {
  36756. y.prototype.kc.call(this);
  36757. this.JF = !0
  36758. },
  36759. On: function() {
  36760. this.JF && (this.GDa(), this.JF = !1)
  36761. },
  36762. Wn: function() {
  36763. return this.Qh.e()
  36764. },
  36765. Jr: function() {
  36766. return this.Qh
  36767. },
  36768. GDa: function() {
  36769. if (this.Gb) this.Qh.ib(1);
  36770. else {
  36771. var c = this.Qh.e();
  36772. if (0 >= c.width || 0 >= c.height) {
  36773. this.Qh.ib(1);
  36774. return
  36775. }
  36776. var d = this.ea.height / c.height;
  36777. this.Qh.jb(this.ea.width / c.width);
  36778. this.Qh.tb(d)
  36779. }
  36780. this.Qh.o(this.m.width /
  36781. 2, this.m.height / 2)
  36782. },
  36783. dk: function() {
  36784. return "LabelAtlas"
  36785. },
  36786. Zh: function() {
  36787. return Lc.create()
  36788. },
  36789. zi: function(c) {
  36790. c && this.setProperty(c.Hw, c.qV, c.Sj, c.Ti, c.GY)
  36791. }
  36792. }),
  36793. q = Lc.prototype;
  36794. f.d(q, "string", q.qc, q.wa);
  36795. q = null;
  36796. Lc.create = function(c, d, e, g, h) {
  36797. var k = new Lc;
  36798. return k && k.j() ? (0 < arguments.length && k.setProperty(c, d, e, g, h), k) : null
  36799. };
  36800. Lc.xk = -1;
  36801. var Mc, Nc = Mc = y.extend({
  36802. hh: null,
  36803. a$: !1,
  36804. tra: "",
  36805. Hw: "",
  36806. ta: "TextBMFont",
  36807. DM: !0,
  36808. ctor: function() {
  36809. y.prototype.ctor.call(this)
  36810. },
  36811. fl: function() {
  36812. this.hh = f.qq.create();
  36813. this.bd(this.hh, Mc.xk, -1)
  36814. },
  36815. GC: function(c) {
  36816. c && (this.tra = c, this.hh.xf("", c), this.WIa(), this.h1(), this.hh.Ba || this.hh.oe(function() {
  36817. this.h1()
  36818. }, this), this.hh.F(this.$a()), this.hh.J(this.vb()), this.a$ = !0, this.wa(this.Hw))
  36819. },
  36820. T2: function(c) {
  36821. f.log("Please use the setString");
  36822. this.wa(c)
  36823. },
  36824. wa: function(c) {
  36825. this.Hw = c;
  36826. this.a$ && (this.hh.wa(c), this.Qf(this.hh.e()),
  36827. this.DM = !0)
  36828. },
  36829. qc: function() {
  36830. return this.Hw
  36831. },
  36832. ru: function() {
  36833. return this.hh.ru()
  36834. },
  36835. kc: function() {
  36836. y.prototype.kc.call(this);
  36837. this.DM = !0
  36838. },
  36839. On: function() {
  36840. this.DM && (this.h1(), this.DM = !1)
  36841. },
  36842. Wn: function() {
  36843. return this.hh.e()
  36844. },
  36845. Jr: function() {
  36846. return this.hh
  36847. },
  36848. h1: function() {
  36849. if (this.Gb) this.hh.ib(1);
  36850. else {
  36851. var c = this.hh.e();
  36852. if (0 >= c.width || 0 >= c.height) {
  36853. this.hh.ib(1);
  36854. return
  36855. }
  36856. var d = this.ea.height / c.height;
  36857. this.hh.jb(this.ea.width / c.width);
  36858. this.hh.tb(d)
  36859. }
  36860. this.hh.o(this.m.width / 2, this.m.height / 2)
  36861. },
  36862. dk: function() {
  36863. return "LabelBMFont"
  36864. }
  36865. }),
  36866. q = Mc.prototype;
  36867. f.d(q, "string", q.qc, q.setStringValue);
  36868. q = null;
  36869. Mc.create = function(c, d) {
  36870. var e = new Mc;
  36871. return e && e.j() ? (d && c && (e.GC(d), e.wa(c)), e) : null
  36872. };
  36873. Mc.xk = -1;
  36874. var Oc = f.Gj.extend({
  36875. maxLengthEnabled: !1,
  36876. maxLength: 0,
  36877. passwordEnabled: !1,
  36878. qw: "",
  36879. TU: !1,
  36880. JV: !1,
  36881. LW: !1,
  36882. GV: !1,
  36883. ta: "UICCTextField",
  36884. Gn: !0,
  36885. ctor: function() {
  36886. f.Gj.prototype.ctor.call(this);
  36887. this.maxLengthEnabled = !1;
  36888. this.maxLength = 0;
  36889. this.passwordEnabled = !1;
  36890. this.qw = "*";
  36891. this.GV = this.LW = this.JV = this.TU = !1
  36892. },
  36893. ba: function() {
  36894. f.Gj.prototype.$p.call(this, this)
  36895. },
  36896. yfa: function() {
  36897. this.JI(!0);
  36898. return !1
  36899. },
  36900. x1: function(c, d, e) {
  36901. if (1 == e && "\n" == d) return !1;
  36902. this.QI(!0);
  36903. return this.maxLengthEnabled && f.Gj.prototype.MB.call(this) >= this.maxLength ?
  36904. !0 : !1
  36905. },
  36906. zfa: function() {
  36907. this.LI(!0);
  36908. return !1
  36909. },
  36910. Afa: function() {
  36911. this.MI(!0);
  36912. return !1
  36913. },
  36914. UH: function(c, d) {
  36915. "\n" != c && this.maxLengthEnabled && this.qc().length >= this.maxLength ? this.passwordEnabled && this.pR(this.qc()) : (f.Gj.prototype.UH.call(this, c, d), this.passwordEnabled && 0 < f.Gj.prototype.MB.call(this) && this.pR(this.qc()))
  36916. },
  36917. TO: function() {
  36918. f.Gj.prototype.TO.call(this);
  36919. 0 < f.Gj.prototype.MB.call(this) && this.passwordEnabled && this.pR(this.Si)
  36920. },
  36921. O_a: function() {
  36922. f.Gj.prototype.XG.call(this)
  36923. },
  36924. pQa: function() {
  36925. f.Gj.prototype.UO.call(this)
  36926. },
  36927. cy: function(c) {
  36928. this.maxLengthEnabled = c
  36929. },
  36930. ZH: function() {
  36931. return this.maxLengthEnabled
  36932. },
  36933. ks: function(c) {
  36934. this.maxLength = c
  36935. },
  36936. Ax: function() {
  36937. return this.maxLength
  36938. },
  36939. MB: function() {
  36940. return f.Gj.prototype.MB.call(this)
  36941. },
  36942. dy: function(c) {
  36943. this.passwordEnabled = c
  36944. },
  36945. $H: function() {
  36946. return this.passwordEnabled
  36947. },
  36948. IC: function(c) {
  36949. if (!(1 < c.length)) {
  36950. var d = c.charCodeAt(0);
  36951. 33 > d || 126 < d || (this.qw = c)
  36952. }
  36953. },
  36954. pR: function(c) {
  36955. var d = "",
  36956. e = c.length;
  36957. c = e;
  36958. this.maxLengthEnabled && e > this.maxLength && (c = this.maxLength);
  36959. for (e = 0; e < c; ++e) d += this.qw;
  36960. f.ia.prototype.wa.call(this,
  36961. d)
  36962. },
  36963. JI: function(c) {
  36964. this.TU = c
  36965. },
  36966. fP: function() {
  36967. return this.TU
  36968. },
  36969. MI: function(c) {
  36970. this.JV = c
  36971. },
  36972. kP: function() {
  36973. return this.JV
  36974. },
  36975. QI: function(c) {
  36976. this.LW = c
  36977. },
  36978. mP: function() {
  36979. return this.LW
  36980. },
  36981. LI: function(c) {
  36982. this.GV = c
  36983. },
  36984. jP: function() {
  36985. return this.GV
  36986. },
  36987. j: function() {
  36988. return y.prototype.j.call(this) ? (this.Om(!0), !0) : !1
  36989. },
  36990. $Da: function() {
  36991. return !1
  36992. }
  36993. });
  36994. Oc.create = function(c, d, e) {
  36995. var g = new Oc;
  36996. return g && g.xf("", d, e) ? (c && g.Gi(c), g) : null
  36997. };
  36998. var Pc = y.extend({
  36999. xa: null,
  37000. fO: 0,
  37001. cO: 0,
  37002. Gba: !1,
  37003. tr: null,
  37004. ur: null,
  37005. zNa: null,
  37006. VNa: null,
  37007. qOa: null,
  37008. SNa: null,
  37009. ANa: null,
  37010. WNa: null,
  37011. rOa: null,
  37012. TNa: null,
  37013. qw: "",
  37014. Gn: !0,
  37015. ctor: function() {
  37016. y.prototype.ctor.call(this)
  37017. },
  37018. j: function() {
  37019. return y.prototype.j.call(this) ? (this.Om(!0), !0) : !1
  37020. },
  37021. ba: function() {
  37022. y.prototype.ba.call(this);
  37023. this.CR(!0)
  37024. },
  37025. Ra: function() {
  37026. this.CR(!1);
  37027. D.prototype.Ra.call(this)
  37028. },
  37029. fl: function() {
  37030. this.xa = Oc.create("input words here", "Thonburi", 20);
  37031. this.bd(this.xa, Pc.xk, -1)
  37032. },
  37033. Z2: function(c) {
  37034. this.fO = c.width;
  37035. this.cO = c.height
  37036. },
  37037. A4a: function(c) {
  37038. this.Gba = c
  37039. },
  37040. On: function() {
  37041. this.Gn && (this.yIa(), this.Gn = !1)
  37042. },
  37043. WB: function(c) {
  37044. if (this.Gba) {
  37045. c = this.yi(c);
  37046. var d = x(-this.fO * this.Eb.x, -this.cO * this.Eb.y, this.fO, this.cO);
  37047. if (c.x >= d.origin.x && c.x <= d.origin.x + d.size.width && c.y >= d.origin.y && c.y <= d.origin.y + d.size.height) return !0
  37048. } else return y.prototype.WB.call(this, c);
  37049. return !1
  37050. },
  37051. zWa: function() {
  37052. return t(this.fO, this.cO)
  37053. },
  37054. T2: function(c) {
  37055. f.log("Please use the setString");
  37056. this.wa(c)
  37057. },
  37058. wa: function(c) {
  37059. c && (c = String(c), this.ZH() && (c = c.substr(0, this.Ax())),
  37060. this.$H() ? (this.xa.pR(c), this.xa.wa(""), this.xa.UH(c, c.length)) : this.xa.wa(c), this.Gn = !0, this.Qf(this.xa.e()))
  37061. },
  37062. Gi: function(c) {
  37063. this.xa.Gi(c);
  37064. this.Gn = !0;
  37065. this.Qf(this.xa.e())
  37066. },
  37067. RB: function() {
  37068. return this.xa.RB()
  37069. },
  37070. mr: function(c) {
  37071. this.xa.mr(c);
  37072. this.Gn = !0
  37073. },
  37074. Qv: function() {
  37075. return this.xa.Qv()
  37076. },
  37077. Qd: function(c) {
  37078. this.xa.Qd(c);
  37079. this.Gn = !0;
  37080. this.Qf(this.xa.e())
  37081. },
  37082. Un: function() {
  37083. return this.xa.cWa()
  37084. },
  37085. de: function(c) {
  37086. this.xa.de(c);
  37087. this.Gn = !0;
  37088. this.Qf(this.xa.e())
  37089. },
  37090. Cp: function() {
  37091. return this.xa.bWa()
  37092. },
  37093. Uxa: function() {
  37094. this.xa.UO()
  37095. },
  37096. getStringValue: function() {
  37097. f.log("Please use the getString");
  37098. return this.qc()
  37099. },
  37100. qc: function() {
  37101. return this.xa.qc()
  37102. },
  37103. ru: function() {
  37104. return this.xa.ru()
  37105. },
  37106. rc: function(c, d) {
  37107. var e = this,
  37108. g = y.prototype.rc.call(e, c, d);
  37109. e.Rv && setTimeout(function() {
  37110. e.xa.XG()
  37111. }, 0);
  37112. return g
  37113. },
  37114. cy: function(c) {
  37115. this.xa.cy(c)
  37116. },
  37117. ZH: function() {
  37118. return this.xa.ZH()
  37119. },
  37120. ks: function(c) {
  37121. this.xa.ks(c);
  37122. this.wa(this.qc())
  37123. },
  37124. Ax: function() {
  37125. return this.xa.Ax()
  37126. },
  37127. dy: function(c) {
  37128. this.xa.dy(c)
  37129. },
  37130. $H: function() {
  37131. return this.xa.$H()
  37132. },
  37133. IC: function(c) {
  37134. this.xa.IC(c);
  37135. this.qw =
  37136. c;
  37137. this.wa(this.qc())
  37138. },
  37139. lVa: function() {
  37140. return this.qw
  37141. },
  37142. update: function() {
  37143. this.fP() && (this.twa(), this.JI(!1));
  37144. this.kP() && (this.Qxa(), this.MI(!1));
  37145. this.mP() && (this.LCa(), this.QI(!1), this.Gn = !0, this.Qf(this.xa.e()));
  37146. this.jP() && (this.Nxa(), this.LI(!1), this.Gn = !0, this.Qf(this.xa.e()))
  37147. },
  37148. fP: function() {
  37149. return this.xa.fP()
  37150. },
  37151. JI: function(c) {
  37152. this.xa.JI(c)
  37153. },
  37154. kP: function() {
  37155. return this.xa.kP()
  37156. },
  37157. MI: function(c) {
  37158. this.xa.MI(c)
  37159. },
  37160. mP: function() {
  37161. return this.xa.mP()
  37162. },
  37163. QI: function(c) {
  37164. this.xa.QI(c)
  37165. },
  37166. jP: function() {
  37167. return this.xa.jP()
  37168. },
  37169. LI: function(c) {
  37170. this.xa.LI(c)
  37171. },
  37172. twa: function() {
  37173. this.tr && this.ur && this.ur.call(this.tr, this, Pc.pla);
  37174. this.qb && this.qb(this, 0)
  37175. },
  37176. Qxa: function() {
  37177. this.tr && this.ur && this.ur.call(this.tr, this, Pc.rla);
  37178. this.qb && this.qb(this, 1)
  37179. },
  37180. LCa: function() {
  37181. this.tr && this.ur && this.ur.call(this.tr, this, Pc.sla);
  37182. this.qb && this.qb(this, 2)
  37183. },
  37184. Nxa: function() {
  37185. this.tr && this.ur && this.ur.call(this.tr, this, Pc.qla);
  37186. this.qb && this.qb(this, 3)
  37187. },
  37188. sPa: function(c, d) {
  37189. this.ur = c;
  37190. this.tr = d
  37191. },
  37192. S: function(c, d) {
  37193. void 0 === d ? (y.prototype.S.call(this, c), this.xa.S(c)) :
  37194. (y.prototype.S.call(this, c, d), this.xa.S(c, d))
  37195. },
  37196. Xe: function(c) {
  37197. y.prototype.Xe.call(this, c);
  37198. this.xa.Xe(c)
  37199. },
  37200. Ye: function(c) {
  37201. y.prototype.Ye.call(this, c);
  37202. this.xa.Ye(c)
  37203. },
  37204. kc: function() {
  37205. y.prototype.kc.call(this);
  37206. this.Gn = !0
  37207. },
  37208. yIa: function() {
  37209. if (this.Gb) {
  37210. this.xa.ib(1);
  37211. var c = this.e();
  37212. this.ea.width = c.width;
  37213. this.ea.height = c.height
  37214. } else {
  37215. c = this.e();
  37216. if (0 >= c.width || 0 >= c.height) {
  37217. this.xa.ib(1);
  37218. return
  37219. }
  37220. var d = this.ea.height / c.height;
  37221. this.xa.jb(this.ea.width / c.width);
  37222. this.xa.tb(d)
  37223. }
  37224. this.xa.o(this.m.width / 2, this.m.height / 2)
  37225. },
  37226. e: function() {
  37227. return this.xa.e()
  37228. },
  37229. lf: function() {
  37230. return this.xa.lf()
  37231. },
  37232. Gg: function() {
  37233. return this.xa.Gg()
  37234. },
  37235. Jr: function() {
  37236. return this.xa
  37237. },
  37238. sJ: function() {
  37239. this.Ii(this.xa)
  37240. },
  37241. WC: function() {
  37242. this.Cl(this.xa)
  37243. },
  37244. dk: function() {
  37245. return "TextField"
  37246. },
  37247. XG: function() {
  37248. this.xa.XG()
  37249. },
  37250. Zh: function() {
  37251. return Pc.create()
  37252. },
  37253. zi: function(c) {
  37254. this.wa(c.xa.qc());
  37255. this.Gi(c.qc());
  37256. this.Qd(c.xa.Un());
  37257. this.de(c.xa.Cp());
  37258. this.cy(c.ZH());
  37259. this.ks(c.Ax());
  37260. this.dy(c.$H());
  37261. this.IC(c.qw);
  37262. this.JI(c.fP());
  37263. this.MI(c.kP());
  37264. this.QI(c.mP());
  37265. this.LI(c.jP())
  37266. },
  37267. Ou: function(c) {
  37268. this.xa.gR(c.width, c.height)
  37269. },
  37270. ns: function(c) {
  37271. this.xa.jR(c)
  37272. },
  37273. os: function(c) {
  37274. this.xa.ER(c)
  37275. }
  37276. });
  37277. Pc.create = function(c, d, e) {
  37278. var g = new Pc;
  37279. return g && g.j() ? (c && d && e && (g.Gi(c), g.de(d), g.Qd(e)), g) : null
  37280. };
  37281. q = Pc.prototype;
  37282. f.d(q, "string", q.qc, q.wa);
  37283. f.d(q, "placeHolder", q.RB, q.Gi);
  37284. f.d(q, "font", q.Qv, q.mr);
  37285. f.d(q, "fontSize", q.Un, q.Qd);
  37286. f.d(q, "fontName", q.Cp, q.de);
  37287. f.d(q, "maxLengthEnabled", q.ZH, q.cy);
  37288. f.d(q, "maxLength", q.Ax, q.ks);
  37289. f.d(q, "passwordEnabled", q.$H, q.dy);
  37290. q = null;
  37291. Pc.create = function() {
  37292. return new Pc
  37293. };
  37294. Pc.pla = 0;
  37295. Pc.rla = 1;
  37296. Pc.sla = 2;
  37297. Pc.qla = 3;
  37298. Pc.xk = -1;
  37299. var Qc = kc.extend({
  37300. type: 0,
  37301. tag: 0,
  37302. color: null,
  37303. ctor: function() {
  37304. this.tag = this.type = 0;
  37305. this.color = f.color(255, 255, 255, 255)
  37306. },
  37307. j: function(c, d, e) {
  37308. this.tag = c;
  37309. this.color.r = d.r;
  37310. this.color.g = d.g;
  37311. this.color.b = d.b;
  37312. this.color.a = e
  37313. }
  37314. }),
  37315. Rc = Qc.extend({
  37316. text: "",
  37317. fontName: "",
  37318. fontSize: 0,
  37319. ctor: function() {
  37320. Qc.prototype.ctor.call(this);
  37321. this.type = Qc.ST;
  37322. this.fontName = this.text = "";
  37323. this.fontSize = 0
  37324. },
  37325. j: function(c, d, e, g, h, k) {
  37326. Qc.prototype.j.call(this, c, d, e);
  37327. this.text = g;
  37328. this.fontName = h;
  37329. this.fontSize = k
  37330. }
  37331. });
  37332. Rc.create = function(c, d, e, g, h, k) {
  37333. var m = new Rc;
  37334. m.j(c, d, e, g, h, k);
  37335. return m
  37336. };
  37337. var cd = Qc.extend({
  37338. ZO: "",
  37339. GIa: null,
  37340. HIa: 0,
  37341. ctor: function() {
  37342. Qc.prototype.ctor.call(this);
  37343. this.type = Qc.VS;
  37344. this.ZO = "";
  37345. this.GIa = x(0, 0, 0, 0);
  37346. this.HIa = 0
  37347. },
  37348. j: function(c, d, e, g) {
  37349. Qc.prototype.j.call(this, c, d, e);
  37350. this.ZO = g
  37351. }
  37352. });
  37353. cd.create = function(c, d, e, g) {
  37354. var h = new cd;
  37355. h.j(c, d, e, g);
  37356. return h
  37357. };
  37358. var dd = Qc.extend({
  37359. RO: null,
  37360. ctor: function() {
  37361. Qc.prototype.ctor.call(this);
  37362. this.type = Qc.iq;
  37363. this.RO = null
  37364. },
  37365. j: function(c, d, e, g) {
  37366. Qc.prototype.j.call(this, c, d, e);
  37367. this.RO = g
  37368. }
  37369. });
  37370. dd.create = function(c, d, e, g) {
  37371. var h = new dd;
  37372. h.j(c, d, e, g);
  37373. return h
  37374. };
  37375. var ed = y.extend({
  37376. Ov: !1,
  37377. JA: null,
  37378. dt: null,
  37379. sn: 0,
  37380. iZ: 0,
  37381. ct: null,
  37382. ctor: function() {
  37383. y.prototype.ctor.call(this);
  37384. this.Ov = !1;
  37385. this.JA = [];
  37386. this.dt = [];
  37387. this.iZ = this.sn = 0
  37388. },
  37389. fl: function() {
  37390. this.ct = f.v.create();
  37391. this.ct.S(0.5, 0.5);
  37392. this.bd(this.ct, 0, -1)
  37393. },
  37394. hXa: function(c, d) {
  37395. this.JA.splice(d, 0, c);
  37396. this.Ov = !0
  37397. },
  37398. C0a: function(c) {
  37399. this.JA.push(c);
  37400. this.Ov = !0
  37401. },
  37402. n1a: function(c) {
  37403. "number" === typeof c ? this.JA.splice(c, 1) : f.Ld(this.JA, c);
  37404. this.Ov = !0
  37405. },
  37406. mza: function() {
  37407. if (this.Ov) {
  37408. this.ct.Cf();
  37409. this.dt.length = 0;
  37410. var c, d, e = this.JA;
  37411. if (this.Gb)
  37412. for (this.yO(),
  37413. c = 0; c < e.length; c++) {
  37414. d = e[c];
  37415. var g = null;
  37416. switch (d.type) {
  37417. case Qc.ST:
  37418. g = f.ia.create(d.text, d.fontName, d.fontSize);
  37419. break;
  37420. case Qc.VS:
  37421. g = f.q.create(d.ZO);
  37422. break;
  37423. case Qc.iq:
  37424. g = d.RO
  37425. }
  37426. g.F(d.color);
  37427. g.J(d.color.a);
  37428. this.AI(g)
  37429. } else
  37430. for (this.yO(), c = 0; c < e.length; c++) switch (d = e[c], d.type) {
  37431. case Qc.ST:
  37432. this.mea(d.text, d.fontName, d.fontSize, d.color);
  37433. break;
  37434. case Qc.VS:
  37435. this.XBa(d.ZO, d.color, d.color.a);
  37436. break;
  37437. case Qc.iq:
  37438. this.lea(d.RO)
  37439. }
  37440. this.lza();
  37441. this.Ov = !1
  37442. }
  37443. },
  37444. mea: function(c, d, e, g) {
  37445. var h = f.ia.create(c, d, e),
  37446. k = h.e().width;
  37447. this.sn -=
  37448. k;
  37449. 0 > this.sn ? (h = c.length * (1 - -this.sn / k), k = c.substr(0, h), c = c.substr(h, c.length - 1), 0 < h && (h = f.ia.create(k.substr(0, h), d, e), h.F(g), h.J(g.a), this.AI(h)), this.yO(), this.mea(c, d, e, g)) : (h.F(g), h.J(g.a), this.AI(h))
  37450. },
  37451. XBa: function(c) {
  37452. c = f.q.create(c);
  37453. this.lea(c)
  37454. },
  37455. lea: function(c) {
  37456. var d = c.e();
  37457. this.sn -= d.width;
  37458. 0 > this.sn ? (this.yO(), this.AI(c), this.sn -= d.width) : this.AI(c)
  37459. },
  37460. yO: function() {
  37461. this.sn = this.pb.width;
  37462. this.dt.push([])
  37463. },
  37464. lza: function() {
  37465. var c = 0,
  37466. d = this.ct,
  37467. e = this.dt;
  37468. if (this.Gb) {
  37469. for (var g = 0, h = e[0], k = 0, m = 0; m < h.length; m++) {
  37470. var n =
  37471. h[m];
  37472. n.S(r(0, 0));
  37473. n.o(r(k, 0));
  37474. d.n(n, 1, m);
  37475. e = n.e();
  37476. g += e.width;
  37477. c = Math.max(c, e.height);
  37478. k += e.width
  37479. }
  37480. d.Ga(t(g, c))
  37481. } else {
  37482. for (var g = [], p = 0; p < e.length; p++) {
  37483. h = e[p];
  37484. for (m = k = 0; m < h.length; m++) n = h[m], k = Math.max(n.e().height, k);
  37485. g[p] = k;
  37486. c += g[p]
  37487. }
  37488. c = this.pb.height;
  37489. for (p = 0; p < e.length; p++)
  37490. for (h = e[p], k = 0, c -= g[p] + this.iZ, m = 0; m < h.length; m++) n = h[m], n.S(r(0, 0)), n.o(r(k, c)), d.n(n, 1, 10 * p + m), k += n.e().width;
  37491. d.Ga(this.ea)
  37492. }
  37493. this.dt.length = 0;
  37494. this.Gb ? (h = this.Wn(), this.ea.width = h.width, this.ea.height = h.height) : (this.ea.width = this.pb.width,
  37495. this.ea.height = this.pb.height);
  37496. this.Qf(this.ea);
  37497. d.o(0.5 * this.m.width, 0.5 * this.m.height)
  37498. },
  37499. AI: function(c) {
  37500. 0 >= this.dt.length || this.dt[this.dt.length - 1].push(c)
  37501. },
  37502. I: function(c) {
  37503. this.$c && (this.mza(), y.prototype.I.call(this, c))
  37504. },
  37505. R4a: function(c) {
  37506. this.iZ = c
  37507. },
  37508. S: function(c) {
  37509. y.prototype.S.call(this, c);
  37510. this.ct.S(c)
  37511. },
  37512. Wn: function() {
  37513. return this.ct.e()
  37514. },
  37515. e: function() {
  37516. return this.ct.e()
  37517. },
  37518. df: function(c) {
  37519. this.Gb != c && (this.Ov = !0, y.prototype.df.call(this, c))
  37520. },
  37521. dk: function() {
  37522. return "RichText"
  37523. }
  37524. });
  37525. ed.create = function() {
  37526. return new ed
  37527. };
  37528. Qc.ST = 0;
  37529. Qc.VS = 1;
  37530. Qc.iq = 2;
  37531. var F = D.extend({
  37532. u: null,
  37533. direction: null,
  37534. Jo: null,
  37535. Vh: 0,
  37536. fi: 0,
  37537. hg: 0,
  37538. qf: 0,
  37539. Oo: 0,
  37540. Ko: 0,
  37541. Mo: 0,
  37542. No: 0,
  37543. HE: !1,
  37544. ez: 0,
  37545. Rl: 0,
  37546. IE: 0,
  37547. NW: !1,
  37548. TM: !1,
  37549. bh: null,
  37550. eL: !1,
  37551. Ew: 0,
  37552. RM: null,
  37553. UE: 0,
  37554. ut: !1,
  37555. Yt: !1,
  37556. It: !1,
  37557. Ps: !1,
  37558. iu: !1,
  37559. NE: !1,
  37560. Lo: null,
  37561. fL: 0,
  37562. RH: !1,
  37563. rf: null,
  37564. sf: null,
  37565. ta: "ScrollView",
  37566. qb: null,
  37567. ctor: function() {
  37568. D.prototype.ctor.call(this);
  37569. this.direction = F.Yka;
  37570. this.Jo = r(0, 0);
  37571. this.No = this.Mo = this.Ko = this.Oo = this.qf = this.hg = this.fi = this.Vh = 0;
  37572. this.HE = !1;
  37573. this.Rl = this.ez = 0;
  37574. this.IE = -1E3;
  37575. this.TM = this.NW = !1;
  37576. this.bh = r(0, 0);
  37577. this.eL = !1;
  37578. this.Ew = 0;
  37579. this.RM = r(0,
  37580. 0);
  37581. this.UE = 5;
  37582. this.NE = this.iu = this.Ps = this.It = this.Yt = this.ut = !1;
  37583. this.Lo = r(0, 0);
  37584. this.fL = 0;
  37585. this.RH = !0;
  37586. this.sf = this.rf = null
  37587. },
  37588. j: function() {
  37589. return D.prototype.j.call(this) ? (this.Zp(!0), this.u.Om(!1), !0) : !1
  37590. },
  37591. ba: function() {
  37592. D.prototype.ba.call(this);
  37593. this.ds(!0)
  37594. },
  37595. Tf: function(c, d) {
  37596. return this.Bm() == D.pq || this.Bm() == D.oq ? this.u.Tf(c, d) : y.prototype.Tf.call(this, c, d)
  37597. },
  37598. fl: function() {
  37599. D.prototype.fl.call(this);
  37600. this.u = D.create();
  37601. this.bd(this.u, 1, 1)
  37602. },
  37603. kc: function() {
  37604. D.prototype.kc.call(this);
  37605. var c = this.m;
  37606. this.Vh = c.height;
  37607. this.qf = c.width;
  37608. var d = c.width / 3,
  37609. e = c.height / 3;
  37610. this.Oo = c.height - e;
  37611. this.Ko = e;
  37612. this.Mo = d;
  37613. this.No = this.m.width - d;
  37614. e = this.u.e();
  37615. d = e.height;
  37616. e = Math.max(e.width, c.width);
  37617. d = Math.max(d, c.height);
  37618. this.u.Ga(t(e, d));
  37619. this.u.o(0, c.height - this.u.e().height)
  37620. },
  37621. ay: function(c) {
  37622. var d = this.m,
  37623. e = d.width,
  37624. g = d.height,
  37625. h = this.u.e();
  37626. c.width < d.width ? f.log("Inner width \x3c\x3d scrollview width, it will be force sized!") : e = c.width;
  37627. c.height < d.height ? f.log("Inner height \x3c\x3d scrollview height, it will be force sized!") : g = c.height;
  37628. this.u.Df(t(e, g));
  37629. switch (this.direction) {
  37630. case F.to:
  37631. c = this.u.e();
  37632. h = h.height - c.height;
  37633. this.io(0, h);
  37634. break;
  37635. case F.so:
  37636. this.u.Kc() <= d.width && (c = this.u.e(), h = h.width - c.width, this.io(h, 0));
  37637. break;
  37638. case F.Cg:
  37639. c = this.u.e(), e = h.height - c.height, g = 0, this.u.Kc() <= d.width && (g = h.width - c.width), this.io(g, e)
  37640. }
  37641. h = this.u;
  37642. c = h.e();
  37643. e = h.Od();
  37644. g = h.bk();
  37645. 0 < h.Ac() && h.o(g.x * c.width, e.y);
  37646. h.Kc() < d.width && h.o(d.width - (1 - g.x) * c.width, e.y);
  37647. 0 < e.y && h.o(e.x, g.y * c.height);
  37648. h.Fe() < d.height && h.o(e.x, d.height - (1 - g.y) * c.height)
  37649. },
  37650. uua: function(c) {
  37651. var d =
  37652. this.m.width,
  37653. e = d,
  37654. g = this.u,
  37655. h = g.width;
  37656. c < d ? f.log("Inner width \x3c\x3d scrollview width, it will be force sized!") : e = c;
  37657. g.width = e;
  37658. switch (this.direction) {
  37659. case F.so:
  37660. case F.Cg:
  37661. g.Kc() <= d && this.io(h - g.width, 0)
  37662. }
  37663. c = g.anchorX;
  37664. 0 < g.Ac() && (g.x = c * e);
  37665. g.Kc() < d && (g.x = d - (1 - c) * e)
  37666. },
  37667. tua: function(c) {
  37668. var d = this.m.height,
  37669. e = d,
  37670. g = this.u,
  37671. h = g.height;
  37672. c < d ? f.log("Inner height \x3c\x3d scrollview height, it will be force sized!") : e = c;
  37673. g.height = e;
  37674. switch (this.direction) {
  37675. case F.to:
  37676. case F.Cg:
  37677. this.io(0, h - e)
  37678. }
  37679. c = g.anchorY;
  37680. 0 < g.Ac() && (g.y = c * e);
  37681. g.Kc() < d && (g.y = d - (1 - c) * e)
  37682. },
  37683. hAa: function() {
  37684. return this.u.e()
  37685. },
  37686. Ora: function() {
  37687. return this.u.width
  37688. },
  37689. Nra: function() {
  37690. return this.u.height
  37691. },
  37692. n: function(c, d, e) {
  37693. if (!c) return !1;
  37694. d = d || c.Ya;
  37695. e = e || c.Em();
  37696. return this.u.n(c, d, e)
  37697. },
  37698. Cf: function() {
  37699. this.Cu(!0)
  37700. },
  37701. Cu: function(c) {
  37702. this.u.Cu(c)
  37703. },
  37704. removeChild: function(c, d) {
  37705. return this.u.removeChild(c, d)
  37706. },
  37707. re: function() {
  37708. return this.u.re()
  37709. },
  37710. Y_: function() {
  37711. return this.u.Y_()
  37712. },
  37713. Za: function(c) {
  37714. return this.u.Za(c)
  37715. },
  37716. sda: function(c) {
  37717. return this.u.sda(c)
  37718. },
  37719. zO: function(c, d, e) {
  37720. this.u.zO(c, d,
  37721. e)
  37722. },
  37723. nP: function(c) {
  37724. return this.u.nP(c)
  37725. },
  37726. Ida: function() {
  37727. return this.u.Ida()
  37728. },
  37729. removeNode: function(c) {
  37730. this.u.removeNode(c)
  37731. },
  37732. nga: function(c) {
  37733. this.u.nga(c)
  37734. },
  37735. jga: function() {
  37736. this.u.jga()
  37737. },
  37738. co: function(c, d) {
  37739. var e = this.u.Od();
  37740. this.RM.x = e.x + c;
  37741. this.RM.y = e.y + d;
  37742. this.u.o(this.RM)
  37743. },
  37744. zwa: function(c) {
  37745. var d = this.ez;
  37746. this.ez += c;
  37747. if (this.NW) 0 >= this.Rl + this.IE * this.ez ? (this.PC(), this.cH()) : (d = (this.Rl + this.IE * (2 * d + c) * 0.5) * c, this.io(d * this.Jo.x, d * this.Jo.y) || (this.PC(), this.cH()));
  37748. else if (this.TM) {
  37749. var d = this.Jo.x * c * this.Rl,
  37750. e = this.Jo.y * c * this.Rl;
  37751. c = this.Twa(d, e);
  37752. d = this.io(d, e);
  37753. c && d || (this.PC(), this.cH())
  37754. } else this.io(this.Jo.x * c * this.Rl, this.Jo.y * c * this.Rl) || (this.PC(), this.cH())
  37755. },
  37756. Jwa: function(c) {
  37757. var d = this.fL,
  37758. e = this.Lo;
  37759. 0 >= d && this.j3();
  37760. this.Kwa(e.x * c * d, e.y * c * d) || this.j3()
  37761. },
  37762. cH: function() {
  37763. if (!this.iu) return !1;
  37764. this.Rwa();
  37765. if (this.Yt || this.Ps || this.ut || this.It) {
  37766. var c, d;
  37767. this.Yt && this.ut ? (c = f.gc(r(0, this.m.height), r(this.u.Ac(), this.u.Fe())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.Yt && this.It ? (c = f.gc(r(this.m.width, this.m.height),
  37768. r(this.u.Kc(), this.u.Fe())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.Ps && this.ut ? (c = f.gc(r(0, 0), r(this.u.Ac(), this.u.yd())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.Ps && this.It ? (c = f.gc(r(this.m.width, 0), r(this.u.Kc(), this.u.yd())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.Yt ? (c = f.gc(r(0, this.m.height), r(0, this.u.Fe())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.Ps ? (c = f.gc(r(0, 0), r(0, this.u.yd())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.ut ? (c = f.gc(r(0, 0), r(this.u.Ac(), 0)),
  37769. d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.It && (c = f.gc(r(this.m.width, 0), r(this.u.Kc(), 0)), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d));
  37770. return !0
  37771. }
  37772. return !1
  37773. },
  37774. Rwa: function() {
  37775. this.u.yd() > this.fi ? (this.es(), this.Ps = !0) : this.Ps = !1;
  37776. this.u.Fe() < this.Vh ? (this.hs(), this.Yt = !0) : this.Yt = !1;
  37777. this.u.Kc() < this.qf ? (this.gs(), this.It = !0) : this.It = !1;
  37778. this.u.Ac() > this.hg ? (this.fs(), this.ut = !0) : this.ut = !1
  37779. },
  37780. Qu: function(c) {
  37781. this.fL = c;
  37782. this.NE = !0
  37783. },
  37784. j3: function() {
  37785. this.NE = !1;
  37786. this.fL = 0;
  37787. this.Ps = this.Yt = this.It = this.ut = !1
  37788. },
  37789. lia: function(c,
  37790. d, e, g) {
  37791. this.PC();
  37792. this.Jo = c;
  37793. this.NW = e;
  37794. this.Rl = d;
  37795. this.HE = !0;
  37796. this.IE = g
  37797. },
  37798. mo: function(c, d, e) {
  37799. this.TM = !1;
  37800. this.bh = c;
  37801. var g = f.gc(c, this.u.Od());
  37802. c = f.Af(g);
  37803. var h = 0,
  37804. k = -1E3,
  37805. g = f.ff(g);
  37806. e ? (k = -(2 * g) / (d * d), h = 2 * g / d) : (this.TM = !0, h = g / d);
  37807. this.lia(c, h, e, k)
  37808. },
  37809. $n: function(c, d) {
  37810. void 0 !== c.x && (d = c.y, c = c.x);
  37811. var e = c,
  37812. g = d;
  37813. switch (this.direction) {
  37814. case F.to:
  37815. 0 >= d && (g = Math.max(d, this.m.height - this.u.e().height));
  37816. break;
  37817. case F.so:
  37818. 0 >= c && (e = Math.max(c, this.m.width - this.u.e().width));
  37819. break;
  37820. case F.Cg:
  37821. 0 >= d && (g = Math.max(d, this.m.height - this.u.e().height)),
  37822. 0 >= c && (e = Math.max(c, this.m.width - this.u.e().width))
  37823. }
  37824. this.u.o(e, g)
  37825. },
  37826. PC: function() {
  37827. this.HE = !1;
  37828. this.ez = this.Rl = 0
  37829. },
  37830. Kwa: function(c, d) {
  37831. var e = !0,
  37832. g, h, k;
  37833. 0 < c && 0 < d ? (g = c, h = d, k = this.u.Kc(), k + g >= this.qf && (g = this.qf - k, this.QZ(), e = !1), k = this.u.Fe(), k + d >= this.Vh && (h = this.Vh - k, this.RZ(), e = !1), this.co(g, h)) : 0 > c && 0 < d ? (g = c, h = d, k = this.u.Ac(), k + g <= this.hg && (g = this.hg - k, this.PZ(), e = !1), k = this.u.Fe(), k + d >= this.Vh && (h = this.Vh - k, this.RZ(), e = !1), this.co(g, h)) : 0 > c && 0 > d ? (g = c, h = d, k = this.u.Ac(), k + g <= this.hg && (g = this.hg - k, this.PZ(),
  37834. e = !1), k = this.u.yd(), k + d <= this.fi && (h = this.fi - k, this.LZ(), e = !1), this.co(g, h)) : 0 < c && 0 > d ? (g = c, h = d, k = this.u.Kc(), k + g >= this.qf && (g = this.qf - k, this.QZ(), e = !1), k = this.u.yd(), k + d <= this.fi && (h = this.fi - k, this.LZ(), e = !1), this.co(g, h)) : 0 == c && 0 < d ? (h = d, k = this.u.Fe(), k + d >= this.Vh && (h = this.Vh - k, this.RZ(), e = !1), this.co(0, h)) : 0 == c && 0 > d ? (h = d, k = this.u.yd(), k + d <= this.fi && (h = this.fi - k, this.LZ(), e = !1), this.co(0, h)) : 0 < c && 0 == d ? (g = c, k = this.u.Kc(), k + g >= this.qf && (g = this.qf - k, this.QZ(), e = !1), this.co(g, 0)) : 0 > c && 0 == d && (g = c, h = this.u.Ac(),
  37835. h + g <= this.hg && (g = this.hg - h, this.PZ(), e = !1), this.co(g, 0));
  37836. return e
  37837. },
  37838. Twa: function(c, d) {
  37839. var e = !0,
  37840. g;
  37841. switch (this.direction) {
  37842. case F.to:
  37843. 0 < this.Jo.y ? (g = this.u.yd(), g + d >= this.bh.y && (e = !1)) : (g = this.u.yd(), g + d <= this.bh.y && (e = !1));
  37844. break;
  37845. case F.so:
  37846. 0 < this.Jo.x ? (g = this.u.Ac(), g + c >= this.bh.x && (e = !1)) : (g = this.u.Ac(), g + c <= this.bh.x && (e = !1));
  37847. break;
  37848. case F.Cg:
  37849. 0 < c && 0 < d ? (g = this.u.Ac(), g + c >= this.bh.x && (e = !1), g = this.u.yd(), g + d >= this.bh.y && (e = !1)) : 0 > c && 0 < d ? (g = this.u.Kc(), g + c <= this.bh.x && (e = !1), g = this.u.yd(), g + d >= this.bh.y &&
  37850. (e = !1)) : 0 > c && 0 > d ? (g = this.u.Kc(), g + c <= this.bh.x && (e = !1), g = this.u.Fe(), g + d <= this.bh.y && (e = !1)) : 0 < c && 0 > d ? (g = this.u.Ac(), g + c >= this.bh.x && (e = !1), g = this.u.Fe(), g + d <= this.bh.y && (e = !1)) : 0 == c && 0 < d ? (g = this.u.yd(), g + d >= this.bh.y && (e = !1)) : 0 > c && 0 == d ? (g = this.u.Kc(), g + c <= this.bh.x && (e = !1)) : 0 == c && 0 > d ? (g = this.u.Fe(), g + d <= this.bh.y && (e = !1)) : 0 < c && 0 == d && (g = this.u.Ac(), g + c >= this.bh.x && (e = !1))
  37851. }
  37852. return e
  37853. },
  37854. bTa: function(c) {
  37855. this.Rl -= this.IE * c;
  37856. return this.Rl * c
  37857. },
  37858. io: function(c, d) {
  37859. var e = !0;
  37860. this.lGa();
  37861. switch (this.direction) {
  37862. case F.to:
  37863. e =
  37864. this.iGa(c, d);
  37865. break;
  37866. case F.so:
  37867. e = this.hGa(c, d);
  37868. break;
  37869. case F.Cg:
  37870. e = this.gGa(c, d)
  37871. }
  37872. return e
  37873. },
  37874. iGa: function(c, d) {
  37875. var e = d,
  37876. g = !0,
  37877. h;
  37878. this.iu ? (h = this.u.yd(), h + d >= this.Ko && (e = this.Ko - h, this.es(), g = !1), h = this.u.Fe(), h + d <= this.Oo && (e = this.Oo - h, this.hs(), g = !1)) : (h = this.u.yd(), h + d >= this.fi && (e = this.fi - h, this.es(), g = !1), h = this.u.Fe(), h + d <= this.Vh && (e = this.Vh - h, this.hs(), g = !1));
  37879. this.co(0, e);
  37880. return g
  37881. },
  37882. hGa: function(c) {
  37883. var d = !0,
  37884. e = c,
  37885. g;
  37886. this.iu ? (g = this.u.Kc(), g + c <= this.No && (e = this.No - g, this.gs(), d = !1), g = this.u.Ac(), g + c >= this.Mo &&
  37887. (e = this.Mo - g, this.fs(), d = !1)) : (g = this.u.Kc(), g + c <= this.qf && (e = this.qf - g, this.gs(), d = !1), g = this.u.Ac(), g + c >= this.hg && (e = this.hg - g, this.fs(), d = !1));
  37888. this.co(e, 0);
  37889. return d
  37890. },
  37891. gGa: function(c, d) {
  37892. var e = !0,
  37893. g = c,
  37894. h = d,
  37895. k;
  37896. this.iu ? 0 < c && 0 < d ? (k = this.u.Ac(), k + c >= this.Mo && (g = this.Mo - k, this.fs(), e = !1), k = this.u.yd(), k + d >= this.Ko && (h = this.Ko - k, this.es(), e = !1)) : 0 > c && 0 < d ? (k = this.u.Kc(), k + c <= this.No && (g = this.No - k, this.gs(), e = !1), k = this.u.yd(), k + d >= this.Ko && (h = this.Ko - k, this.es(), e = !1)) : 0 > c && 0 > d ? (k = this.u.Kc(), k + c <= this.No &&
  37897. (g = this.No - k, this.gs(), e = !1), k = this.u.Fe(), k + d <= this.Oo && (h = this.Oo - k, this.hs(), e = !1)) : 0 < c && 0 > d ? (k = this.u.Ac(), k + c >= this.Mo && (g = this.Mo - k, this.fs(), e = !1), k = this.u.Fe(), k + d <= this.Oo && (h = this.Oo - k, this.hs(), e = !1)) : 0 == c && 0 < d ? (k = this.u.yd(), k + d >= this.Ko && (h = this.Ko - k, this.es(), e = !1)) : 0 > c && 0 == d ? (k = this.u.Kc(), k + c <= this.No && (g = this.No - k, this.gs(), e = !1)) : 0 == c && 0 > d ? (k = this.u.Fe(), k + d <= this.Oo && (h = this.Oo - k, this.hs(), e = !1)) : 0 < c && 0 == d && (k = this.u.Ac(), k + c >= this.Mo && (g = this.Mo - k, this.fs(), e = !1)) : 0 < c && 0 < d ? (k =
  37898. this.u.Ac(), k + c >= this.hg && (g = this.hg - k, this.fs(), e = !1), k = this.u.yd(), k + d >= this.fi && (h = this.fi - k, this.es(), e = !1)) : 0 > c && 0 < d ? (k = this.u.Kc(), k + c <= this.qf && (g = this.qf - k, this.gs(), e = !1), k = this.u.yd(), k + d >= this.fi && (h = this.fi - k, this.es(), e = !1)) : 0 > c && 0 > d ? (k = this.u.Kc(), k + c <= this.qf && (g = this.qf - k, this.gs(), e = !1), k = this.u.Fe(), k + d <= this.Vh && (h = this.Vh - k, this.hs(), e = !1)) : 0 < c && 0 > d ? (k = this.u.Ac(), k + c >= this.hg && (g = this.hg - k, this.fs(), e = !1), k = this.u.Fe(), k + d <= this.Vh && (h = this.Vh - k, this.hs(), e = !1)) : 0 == c && 0 < d ? (k =
  37899. this.u.yd(), k + d >= this.fi && (h = this.fi - k, this.es(), e = !1)) : 0 > c && 0 == d ? (k = this.u.Kc(), k + c <= this.qf && (g = this.qf - k, this.gs(), e = !1)) : 0 == c && 0 > d ? (k = this.u.Fe(), k + d <= this.Vh && (h = this.Vh - k, this.hs(), e = !1)) : 0 < c && 0 == d && (k = this.u.Ac(), k + c >= this.hg && (g = this.hg - k, this.fs(), e = !1));
  37900. this.co(g, h);
  37901. return e
  37902. },
  37903. Z1a: function(c, d) {
  37904. this.mo(r(this.u.Vc(), 0), c, d)
  37905. },
  37906. g2a: function(c, d) {
  37907. this.mo(r(this.u.Vc(), this.m.height - this.u.e().height), c, d)
  37908. },
  37909. b2a: function(c, d) {
  37910. this.mo(r(0, this.u.Zd()), c, d)
  37911. },
  37912. f2a: function(c, d) {
  37913. this.mo(r(this.m.width -
  37914. this.u.e().width, this.u.Zd()), c, d)
  37915. },
  37916. h2a: function(c, d) {
  37917. this.direction != F.Cg ? f.log("Scroll direction is not both!") : this.mo(r(0, this.m.height - this.u.e().height), c, d)
  37918. },
  37919. i2a: function(c, d) {
  37920. if (this.direction != F.Cg) f.log("Scroll direction is not both!");
  37921. else {
  37922. var e = this.u.e();
  37923. this.mo(r(this.m.width - e.width, this.m.height - e.height), c, d)
  37924. }
  37925. },
  37926. $1a: function(c, d) {
  37927. this.direction != F.Cg ? f.log("Scroll direction is not both!") : this.mo(r(0, 0), c, d)
  37928. },
  37929. a2a: function(c, d) {
  37930. this.direction != F.Cg ? f.log("Scroll direction is not both!") :
  37931. this.mo(r(this.m.width - this.u.e().width, 0), c, d)
  37932. },
  37933. e2a: function(c, d, e) {
  37934. var g = this.m.height - this.u.e().height;
  37935. this.mo(r(this.u.Vc(), g + c * -g / 100), d, e)
  37936. },
  37937. d2a: function(c, d, e) {
  37938. var g = this.u.e().width - this.m.width;
  37939. this.mo(r(-(c * g / 100), this.u.Zd()), d, e)
  37940. },
  37941. c2a: function(c, d, e) {
  37942. if (this.direction == F.Cg) {
  37943. var g = this.m.height - this.u.e().height,
  37944. h = -g,
  37945. k = this.u.e().width - this.m.width;
  37946. this.mo(r(-(c.x * k / 100), g + c.y * h / 100), d, e)
  37947. }
  37948. },
  37949. fYa: function() {
  37950. this.$n(this.u.Vc(), 0)
  37951. },
  37952. nYa: function() {
  37953. this.$n(this.u.Vc(), this.m.height - this.u.e().height)
  37954. },
  37955. iYa: function() {
  37956. this.$n(0, this.u.Zd())
  37957. },
  37958. mYa: function() {
  37959. this.$n(this.m.width - this.u.e().width, this.u.Zd())
  37960. },
  37961. oYa: function() {
  37962. this.direction != F.Cg ? f.log("Scroll direction is not both!") : this.$n(0, this.m.height - this.u.e().height)
  37963. },
  37964. pYa: function() {
  37965. if (this.direction != F.Cg) f.log("Scroll direction is not both!");
  37966. else {
  37967. var c = this.u.e();
  37968. this.$n(this.m.width - c.width, this.m.height - c.height)
  37969. }
  37970. },
  37971. gYa: function() {
  37972. this.direction != F.Cg ? f.log("Scroll direction is not both!") : this.$n(0, 0)
  37973. },
  37974. hYa: function() {
  37975. this.direction != F.Cg ?
  37976. f.log("Scroll direction is not both!") : this.$n(this.m.width - this.u.e().width, 0)
  37977. },
  37978. lYa: function(c) {
  37979. var d = this.m.height - this.u.e().height;
  37980. this.$n(this.u.Vc(), d + c * -d / 100)
  37981. },
  37982. kYa: function(c) {
  37983. var d = this.u.e().width - this.m.width;
  37984. this.$n(-(c * d / 100), this.u.Zd())
  37985. },
  37986. jYa: function(c) {
  37987. if (this.direction == F.Cg) {
  37988. var d = this.u.e(),
  37989. e = this.m.height - d.height;
  37990. this.$n(-(c.x * (d.width - this.m.width) / 100), e + c.y * -e / 100)
  37991. }
  37992. },
  37993. rIa: function() {
  37994. this.HE && this.PC();
  37995. this.NE && this.j3();
  37996. this.Ew = 0
  37997. },
  37998. Tya: function() {
  37999. if (!this.cH() && this.RH && !(0.016 >=
  38000. this.Ew)) {
  38001. var c = 0,
  38002. d;
  38003. switch (this.direction) {
  38004. case F.to:
  38005. c = this.xr.y - this.qm.y;
  38006. d = 0 > c ? F.una : F.xna;
  38007. break;
  38008. case F.so:
  38009. c = this.xr.x - this.qm.x;
  38010. d = 0 > c ? F.vna : F.wna;
  38011. break;
  38012. case F.Cg:
  38013. d = f.gc(this.xr, this.qm), c = f.ff(d), d = f.Af(d)
  38014. }
  38015. c = Math.min(Math.abs(c) / this.Ew, F.Wia);
  38016. this.lia(d, c, !0, -1E3);
  38017. this.Ew = 0
  38018. }
  38019. },
  38020. PH: function() {
  38021. this.rIa();
  38022. this.eL = !0
  38023. },
  38024. OH: function(c) {
  38025. c = f.gc(c.cf(), c.qP());
  38026. switch (this.direction) {
  38027. case F.to:
  38028. this.io(0, c.y);
  38029. break;
  38030. case F.so:
  38031. this.io(c.x, 0);
  38032. break;
  38033. case F.Cg:
  38034. this.io(c.x, c.y)
  38035. }
  38036. },
  38037. UB: function() {
  38038. this.Tya();
  38039. this.eL = !1
  38040. },
  38041. rc: function(c, d) {
  38042. var e = D.prototype.rc.call(this, c, d);
  38043. this.Rv && this.PH(c);
  38044. return e
  38045. },
  38046. hd: function(c, d) {
  38047. D.prototype.hd.call(this, c, d);
  38048. this.OH(c)
  38049. },
  38050. gd: function(c, d) {
  38051. D.prototype.gd.call(this, c, d);
  38052. this.UB(c)
  38053. },
  38054. ef: function(c, d) {
  38055. D.prototype.ef.call(this, c, d)
  38056. },
  38057. update: function(c) {
  38058. this.HE && this.zwa(c);
  38059. this.NE && this.Jwa(c);
  38060. this.zFa(c)
  38061. },
  38062. zFa: function(c) {
  38063. this.eL && (this.Ew += c)
  38064. },
  38065. Nr: function(c, d, e) {
  38066. var g = e.cf();
  38067. switch (c) {
  38068. case y.WT:
  38069. this.qm.x = g.x;
  38070. this.qm.y = g.y;
  38071. this.PH(e);
  38072. break;
  38073. case y.qE:
  38074. f.ff(f.gc(d.t0(), g)) > this.UE &&
  38075. (d.xj(!1), this.cB.x = g.x, this.cB.y = g.y, this.OH(e));
  38076. break;
  38077. case y.XT:
  38078. case y.CK:
  38079. this.xr.x = g.x, this.xr.y = g.y, this.UB(e)
  38080. }
  38081. },
  38082. hs: function() {
  38083. this.rf && this.sf && this.sf.call(this.rf, this, F.k5);
  38084. this.qb && this.qb(this, F.k5)
  38085. },
  38086. es: function() {
  38087. this.rf && this.sf && this.sf.call(this.rf, this, F.h5);
  38088. this.qb && this.qb(this, F.h5)
  38089. },
  38090. fs: function() {
  38091. this.rf && this.sf && this.sf.call(this.rf, this, F.i5);
  38092. this.qb && this.qb(this, F.i5)
  38093. },
  38094. gs: function() {
  38095. this.rf && this.sf && this.sf.call(this.rf, this, F.j5);
  38096. this.qb && this.qb(this, F.j5)
  38097. },
  38098. lGa: function() {
  38099. this.rf &&
  38100. this.sf && this.sf.call(this.rf, this, F.g5);
  38101. this.qb && this.qb(this, F.g5)
  38102. },
  38103. RZ: function() {
  38104. this.rf && this.sf && this.sf.call(this.rf, this, F.e5);
  38105. this.qb && this.qb(this, F.e5)
  38106. },
  38107. LZ: function() {
  38108. this.rf && this.sf && this.sf.call(this.rf, this, F.b5);
  38109. this.qb && this.qb(this, F.b5)
  38110. },
  38111. PZ: function() {
  38112. this.rf && this.sf && this.sf.call(this.rf, this, F.c5);
  38113. this.qb && this.qb(this, F.c5)
  38114. },
  38115. QZ: function() {
  38116. this.rf && this.sf && this.sf.call(this.rf, this, F.d5);
  38117. this.qb && this.qb(this, F.d5)
  38118. },
  38119. qPa: function(c, d) {
  38120. this.sf = c;
  38121. this.rf = d
  38122. },
  38123. addEventListener: function(c) {
  38124. this.qb =
  38125. c
  38126. },
  38127. xh: function(c) {
  38128. this.direction = c
  38129. },
  38130. OB: function() {
  38131. return this.direction
  38132. },
  38133. dR: function(c) {
  38134. this.iu = c
  38135. },
  38136. wXa: function() {
  38137. return this.iu
  38138. },
  38139. WGa: function(c) {
  38140. this.RH = c
  38141. },
  38142. GXa: function() {
  38143. return this.RH
  38144. },
  38145. gUa: function() {
  38146. return this.u
  38147. },
  38148. Mm: function(c) {
  38149. this.u.Mm(c)
  38150. },
  38151. Bm: function() {
  38152. return this.u.Bm()
  38153. },
  38154. Wl: function() {
  38155. this.gh && (this.gh = !1)
  38156. },
  38157. dk: function() {
  38158. return "ScrollView"
  38159. },
  38160. Zh: function() {
  38161. return F.create()
  38162. },
  38163. kx: function(c) {
  38164. D.prototype.kx.call(this, c)
  38165. },
  38166. zi: function(c) {
  38167. c instanceof F && (D.prototype.zi.call(this, c), this.ay(c.hAa()),
  38168. this.xh(c.direction), this.dR(c.iu), this.WGa(c.RH), this.rf = c.rf, this.sf = c.sf, this.qb = c.qb)
  38169. }
  38170. }),
  38171. q = F.prototype;
  38172. f.d(q, "innerWidth", q.Ora, q.uua);
  38173. f.d(q, "innerHeight", q.Nra, q.tua);
  38174. q = null;
  38175. F.create = function() {
  38176. return new F
  38177. };
  38178. F.Yka = 0;
  38179. F.to = 1;
  38180. F.so = 2;
  38181. F.Cg = 3;
  38182. F.k5 = 0;
  38183. F.h5 = 1;
  38184. F.i5 = 2;
  38185. F.j5 = 3;
  38186. F.g5 = 4;
  38187. F.e5 = 5;
  38188. F.b5 = 6;
  38189. F.c5 = 7;
  38190. F.d5 = 8;
  38191. F.Wia = 1E3;
  38192. F.xna = r(0, 1);
  38193. F.una = r(0, -1);
  38194. F.vna = r(-1, 0);
  38195. F.wna = r(1, 0);
  38196. var H = F.extend({
  38197. fw: null,
  38198. Hg: null,
  38199. nt: null,
  38200. pn: 0,
  38201. nA: null,
  38202. oA: null,
  38203. CV: 0,
  38204. fm: !0,
  38205. ta: "ListView",
  38206. ctor: function() {
  38207. F.prototype.ctor.call(this);
  38208. this.fw = null;
  38209. this.Hg = [];
  38210. this.nt = H.RS;
  38211. this.pn = 0;
  38212. this.oA = this.nA = null;
  38213. this.CV = 0;
  38214. this.fm = !0
  38215. },
  38216. j: function() {
  38217. return F.prototype.j.call(this) ? (this.Mm(D.pq), !0) : !1
  38218. },
  38219. ZGa: function(c) {
  38220. c && (this.fw = c)
  38221. },
  38222. aJa: function() {
  38223. switch (this.direction) {
  38224. case F.to:
  38225. for (var c = this.Hg.length, d = (c - 1) * this.pn, e = 0; e < c; e++) var g = this.Hg[e],
  38226. d = d + g.e().height;
  38227. c = this.m.width;
  38228. this.ay(t(c, d));
  38229. break;
  38230. case F.so:
  38231. c =
  38232. this.Hg.length;
  38233. d = (c - 1) * this.pn;
  38234. for (e = 0; e < c; e++) g = this.Hg[e], d += g.e().width;
  38235. c = this.m.height;
  38236. this.ay(t(d, c))
  38237. }
  38238. },
  38239. GI: function(c) {
  38240. if (c) switch (this.direction) {
  38241. case F.to:
  38242. var d = c.dl();
  38243. if (d) switch (0 == this.wH(c) ? d.lo(sc()) : d.lo(new rc(0, this.pn, 0, 0)), this.nt) {
  38244. case H.B5:
  38245. d.vc(nc.$m);
  38246. break;
  38247. case H.C5:
  38248. d.vc(nc.Ll);
  38249. break;
  38250. case H.RS:
  38251. d.vc(nc.mS)
  38252. } else {
  38253. d = nc.create();
  38254. switch (this.nt) {
  38255. case H.B5:
  38256. d.vc(nc.$m);
  38257. break;
  38258. case H.C5:
  38259. d.vc(nc.Ll);
  38260. break;
  38261. case H.RS:
  38262. d.vc(nc.mS)
  38263. }
  38264. 0 == this.wH(c) ? d.lo(sc()) : d.lo(new rc(0, this.pn, 0, 0));
  38265. c.by(d)
  38266. }
  38267. break;
  38268. case F.so:
  38269. if (d = c.dl()) switch (0 == this.wH(c) ? d.lo(sc()) : d.lo(new rc(this.pn, 0, 0, 0)), this.nt) {
  38270. case H.D5:
  38271. d.vc(nc.u7);
  38272. break;
  38273. case H.z5:
  38274. d.vc(nc.ZR);
  38275. break;
  38276. case H.A5:
  38277. d.vc(nc.nS)
  38278. } else {
  38279. d = nc.create();
  38280. switch (this.nt) {
  38281. case H.D5:
  38282. d.vc(nc.u7);
  38283. break;
  38284. case H.z5:
  38285. d.vc(nc.ZR);
  38286. break;
  38287. case H.A5:
  38288. d.vc(nc.nS)
  38289. }
  38290. 0 == this.wH(c) ? d.lo(sc()) : d.lo(new rc(this.pn, 0, 0, 0));
  38291. c.by(d)
  38292. }
  38293. }
  38294. },
  38295. B0a: function() {
  38296. if (this.fw) {
  38297. var c = this.fw.p();
  38298. this.GI(c);
  38299. this.n(c);
  38300. this.fm = !0
  38301. }
  38302. },
  38303. gXa: function(c) {
  38304. if (this.fw) {
  38305. var d = this.fw.p();
  38306. this.Hg.splice(c, 0, d);
  38307. F.prototype.n.call(this,
  38308. d);
  38309. this.GI(d);
  38310. this.fm = !0
  38311. }
  38312. },
  38313. Sfa: function(c) {
  38314. this.GI(c);
  38315. this.n(c);
  38316. this.fm = !0
  38317. },
  38318. n: function(c, d, e) {
  38319. c && (d = d || c.Ya, e = e || c.Em(), F.prototype.n.call(this, c, d, e), this.Hg.push(c))
  38320. },
  38321. removeChild: function(c, d) {
  38322. if (c) {
  38323. var e = this.Hg.indexOf(c); - 1 < e && this.Hg.splice(e, 1);
  38324. F.prototype.removeChild.call(this, c, d)
  38325. }
  38326. },
  38327. Cf: function() {
  38328. this.Cu(!0)
  38329. },
  38330. Cu: function(c) {
  38331. F.prototype.Cu.call(this, c);
  38332. this.Hg = []
  38333. },
  38334. fXa: function(c, d) {
  38335. this.Hg.splice(d, 0, c);
  38336. F.prototype.n.call(this, c);
  38337. this.GI(c);
  38338. this.fm = !0
  38339. },
  38340. removeItem: function(c) {
  38341. if (c = this.getItem(c)) this.removeChild(c),
  38342. this.fm = !0
  38343. },
  38344. o1a: function() {
  38345. this.removeItem(this.Hg.length - 1)
  38346. },
  38347. Y0a: function() {
  38348. this.Cf()
  38349. },
  38350. getItem: function(c) {
  38351. return 0 > c || c >= this.Hg.length ? null : this.Hg[c]
  38352. },
  38353. kUa: function() {
  38354. return this.Hg
  38355. },
  38356. wH: function(c) {
  38357. return this.Hg.indexOf(c)
  38358. },
  38359. vc: function(c) {
  38360. this.nt != c && (this.nt = c, this.fm = !0)
  38361. },
  38362. y2: function(c) {
  38363. this.pn != c && (this.pn = c, this.fm = !0)
  38364. },
  38365. lUa: function() {
  38366. return this.pn
  38367. },
  38368. xh: function(c) {
  38369. switch (c) {
  38370. case F.to:
  38371. this.Mm(D.pq);
  38372. break;
  38373. case F.so:
  38374. this.Mm(D.oq);
  38375. break;
  38376. case F.Cg:
  38377. return;
  38378. default:
  38379. return
  38380. }
  38381. F.prototype.xh.call(this,
  38382. c)
  38383. },
  38384. G1a: function() {
  38385. this.fm = !0
  38386. },
  38387. DFa: function() {
  38388. for (var c = 0; c < this.Hg.length; c++) {
  38389. var d = this.Hg[c];
  38390. d.tl(c);
  38391. this.GI(d)
  38392. }
  38393. this.aJa()
  38394. },
  38395. Wl: function() {
  38396. D.prototype.Wl.call(this);
  38397. this.fm && (this.DFa(), this.fm = !1)
  38398. },
  38399. oPa: function(c, d) {
  38400. this.nA = d;
  38401. this.oA = c
  38402. },
  38403. addEventListener: function(c) {
  38404. this.qb = c
  38405. },
  38406. pGa: function(c) {
  38407. c = c == y.WT ? H.Qma : H.Pma;
  38408. this.nA && this.oA && this.oA.call(this.nA, this, c);
  38409. this.qb && this.qb(this, c)
  38410. },
  38411. Nr: function(c, d, e) {
  38412. F.prototype.Nr.call(this, c, d, e);
  38413. if (1 != c) {
  38414. for (e = d; e;) {
  38415. if (e && e.getParent() == this.u) {
  38416. this.CV =
  38417. this.wH(e);
  38418. break
  38419. }
  38420. e = e.getParent()
  38421. }
  38422. d.UP() && this.pGa(c)
  38423. }
  38424. },
  38425. dTa: function() {
  38426. return this.CV
  38427. },
  38428. kc: function() {
  38429. F.prototype.kc.call(this);
  38430. this.fm = !0
  38431. },
  38432. dk: function() {
  38433. return "ListView"
  38434. },
  38435. Zh: function() {
  38436. return H.create()
  38437. },
  38438. kx: function(c) {
  38439. c = c.Hg;
  38440. for (var d = 0; d < c.length; d++) this.Sfa(c[d].p())
  38441. },
  38442. zi: function(c) {
  38443. F.prototype.zi.call(this, c);
  38444. this.ZGa(c.fw);
  38445. this.y2(c.pn);
  38446. this.vc(c.nt);
  38447. this.nA = c.nA;
  38448. this.oA = c.oA;
  38449. this.qb = c.qb
  38450. }
  38451. });
  38452. H.create = function() {
  38453. return new H
  38454. };
  38455. H.hLa = 0;
  38456. H.Qma = 0;
  38457. H.Pma = 1;
  38458. H.B5 = 0;
  38459. H.C5 = 1;
  38460. H.RS = 2;
  38461. H.D5 = 3;
  38462. H.z5 = 4;
  38463. H.A5 = 5;
  38464. var fd = D.extend({
  38465. Lj: 0,
  38466. xc: null,
  38467. dO: null,
  38468. ova: 0,
  38469. nva: 0,
  38470. ata: null,
  38471. mA: null,
  38472. KA: null,
  38473. hg: 0,
  38474. qf: 0,
  38475. Uv: !1,
  38476. Ij: 0,
  38477. VK: 0,
  38478. WU: 0,
  38479. UE: 0,
  38480. xA: null,
  38481. yA: null,
  38482. ta: "PageView",
  38483. qb: null,
  38484. ctor: function() {
  38485. D.prototype.ctor.call(this);
  38486. this.Lj = 0;
  38487. this.xc = [];
  38488. this.dO = fd.YT;
  38489. this.nva = this.ova = 0;
  38490. this.KA = this.mA = this.ata = null;
  38491. this.qf = this.hg = 0;
  38492. this.Uv = !1;
  38493. this.WU = this.VK = this.Ij = 0;
  38494. this.UE = 5;
  38495. this.yA = this.xA = null
  38496. },
  38497. j: function() {
  38498. return D.prototype.j.call(this) ? (this.Zp(!0), !0) : !1
  38499. },
  38500. ba: function() {
  38501. D.prototype.ba.call(this);
  38502. this.ds(!0)
  38503. },
  38504. GPa: function(c, d,
  38505. e) {
  38506. if (c && !(0 > d)) {
  38507. var g = this.xc.length;
  38508. d >= g ? e && (d > g && f.log("pageIdx is %d, it will be added as page id [%d]", d, g), d = this.kxa(), d.n(c), this.AO(d)) : (d = this.xc[d]) && d.n(c)
  38509. }
  38510. },
  38511. kxa: function() {
  38512. var c = D.create();
  38513. c.Ga(this.e());
  38514. return c
  38515. },
  38516. AO: function(c) {
  38517. c && -1 == this.xc.indexOf(c) && (this.bd(c), this.xc.push(c), this.gh = !0)
  38518. },
  38519. jXa: function(c, d) {
  38520. 0 > d || !c || -1 != this.xc.indexOf(c) || (d >= this.xc.length ? this.AO(c) : (this.xc[d] = c, this.bd(c)), this.gh = !0)
  38521. },
  38522. SFa: function(c) {
  38523. c && (this.Ci(c), c = this.xc.indexOf(c), -1 < c && this.xc.splice(c,
  38524. 1), this.gh = !0)
  38525. },
  38526. r1a: function(c) {
  38527. 0 > c || c >= this.xc.length || (c = this.xc[c]) && this.SFa(c)
  38528. },
  38529. a1a: function() {
  38530. for (var c = this.xc, d = 0, e = c.length; d < e; d++) this.Ci(c[d]);
  38531. this.xc.length = 0
  38532. },
  38533. YIa: function() {
  38534. 0 >= this.xc.length ? this.KA = this.mA = null : (this.mA = this.xc[0], this.KA = this.xc[this.xc.length - 1])
  38535. },
  38536. dVa: function() {
  38537. return this.xc.length
  38538. },
  38539. sVa: function(c) {
  38540. return this.CH().width * (c - this.Lj)
  38541. },
  38542. kc: function() {
  38543. D.prototype.kc.call(this);
  38544. this.qf = this.e().width;
  38545. this.gh = !0
  38546. },
  38547. VIa: function() {
  38548. for (var c = this.e(), d = this.xc, e = 0, g = d.length; e <
  38549. g; e++) d[e].Ga(c)
  38550. },
  38551. UIa: function() {
  38552. var c = this.xc.length;
  38553. if (0 >= c) this.Lj = 0;
  38554. else {
  38555. this.Lj >= c && (this.Lj = c - 1);
  38556. for (var d = this.e().width, e = this.xc, g = 0; g < c; g++) e[g].o(r((g - this.Lj) * d, 0))
  38557. }
  38558. },
  38559. i2: function(c) {
  38560. 0 > c || c >= this.xc.length || (this.Lj = c, this.Ij = -this.xc[c].Od().x, this.VK = Math.abs(this.Ij) / 0.2, this.WU = 0 < this.Ij ? 1 : 0, this.Uv = !0)
  38561. },
  38562. update: function(c) {
  38563. this.Uv && this.ywa(c)
  38564. },
  38565. ywa: function(c) {
  38566. switch (this.WU) {
  38567. case 0:
  38568. c *= this.VK;
  38569. 0 <= this.Ij + c ? (c = -this.Ij, this.Ij = 0, this.Uv = !1) : this.Ij += c;
  38570. this.II(-c);
  38571. this.Uv || this.Nfa();
  38572. break;
  38573. case 1:
  38574. c *= this.VK, 0 >= this.Ij - c ? (c = this.Ij, this.Ij = 0, this.Uv = !1) : this.Ij -= c, this.II(c), this.Uv || this.Nfa()
  38575. }
  38576. },
  38577. rc: function(c, d) {
  38578. var e = D.prototype.rc.call(this, c, d);
  38579. this.Rv && this.PH(c);
  38580. return e
  38581. },
  38582. hd: function(c) {
  38583. this.OH(c);
  38584. var d = this.ug();
  38585. d && d.Nr(y.qE, this, c);
  38586. this.ofa()
  38587. },
  38588. gd: function(c, d) {
  38589. D.prototype.gd.call(this, c, d);
  38590. this.UB(c)
  38591. },
  38592. ef: function(c, d) {
  38593. D.prototype.ef.call(this, c, d);
  38594. this.UB(c)
  38595. },
  38596. Wl: function() {
  38597. this.gh && (this.UIa(), this.VIa(), this.YIa(), this.gh = !1)
  38598. },
  38599. m1: function(c) {
  38600. for (var d = this.xc, e = d.length,
  38601. g = 0; g < e; g++) {
  38602. var h = d[g],
  38603. k = h.Od();
  38604. h.o(k.x + c, k.y)
  38605. }
  38606. },
  38607. II: function(c) {
  38608. if (0 >= this.xc.length || !this.mA || !this.KA) return !1;
  38609. var d = c;
  38610. switch (this.dO) {
  38611. case fd.YT:
  38612. if (this.KA.Kc() + c <= this.qf) return d = this.qf - this.KA.Kc(), this.m1(d), !1;
  38613. break;
  38614. case fd.v7:
  38615. if (this.mA.Ac() + c >= this.hg) return d = this.hg - this.mA.Ac(), this.m1(d), !1
  38616. }
  38617. this.m1(d);
  38618. return !0
  38619. },
  38620. PH: function() {},
  38621. OH: function(c) {
  38622. c = c.cf().x - c.qP().x;
  38623. 0 > c ? this.dO = fd.YT : 0 < c && (this.dO = fd.v7);
  38624. this.II(c)
  38625. },
  38626. UB: function() {
  38627. if (!(0 >= this.xc.length)) {
  38628. var c = this.xc[this.Lj];
  38629. if (c) {
  38630. var d =
  38631. this.xc.length,
  38632. c = c.Od().x,
  38633. e = this.CH().width / 2;
  38634. c <= -e ? this.Lj >= d - 1 ? this.II(-c) : this.i2(this.Lj + 1) : c >= e ? 0 >= this.Lj ? this.II(-c) : this.i2(this.Lj - 1) : this.i2(this.Lj)
  38635. }
  38636. }
  38637. },
  38638. Nr: function(c, d, e) {
  38639. switch (c) {
  38640. case 0:
  38641. this.PH(e);
  38642. break;
  38643. case 1:
  38644. c = 0;
  38645. c = Math.abs(d.t0().x - e.x);
  38646. c > this.UE && (d.hR(!1), this.OH(e));
  38647. break;
  38648. case 2:
  38649. this.UB(e)
  38650. }
  38651. },
  38652. Nfa: function() {
  38653. this.xA && this.yA && this.yA.call(this.xA, this, fd.m5);
  38654. this.qb && this.qb(this, fd.m5)
  38655. },
  38656. pPa: function(c, d) {
  38657. this.yA = c;
  38658. this.xA = d
  38659. },
  38660. addEventListener: function(c) {
  38661. this.qb = c
  38662. },
  38663. cTa: function() {
  38664. return this.Lj
  38665. },
  38666. eVa: function() {
  38667. return this.xc
  38668. },
  38669. cVa: function(c) {
  38670. return 0 > c || c >= this.xc.size() ? null : this.xc[c]
  38671. },
  38672. dk: function() {
  38673. return "PageView"
  38674. },
  38675. Zh: function() {
  38676. return fd.create()
  38677. },
  38678. kx: function(c) {
  38679. c = c.xc;
  38680. for (var d = 0; d < c.length; d++) this.AO(c[d].p())
  38681. },
  38682. zi: function(c) {
  38683. D.prototype.zi.call(this, c);
  38684. this.qb = c.qb;
  38685. this.xA = c.xA;
  38686. this.yA = c.yA
  38687. }
  38688. });
  38689. fd.create = function() {
  38690. var c = new fd;
  38691. return c && c.j() ? c : null
  38692. };
  38693. fd.m5 = 0;
  38694. fd.YT = 0;
  38695. fd.v7 = 1;
  38696. f.Dh = f.N.extend({
  38697. Td: null,
  38698. nd: "",
  38699. $c: !0,
  38700. ctor: function() {
  38701. this.Td = null;
  38702. this.nd = "";
  38703. this.$c = !0
  38704. },
  38705. j: function() {
  38706. return !0
  38707. },
  38708. ba: function() {},
  38709. Ra: function() {},
  38710. update: function() {},
  38711. CC: function() {},
  38712. isEnabled: function() {
  38713. return this.$c
  38714. },
  38715. Lb: function(c) {
  38716. this.$c = c
  38717. },
  38718. getName: function() {
  38719. return this.nd
  38720. },
  38721. gf: function(c) {
  38722. this.nd = c
  38723. },
  38724. HC: function(c) {
  38725. this.Td = c
  38726. },
  38727. Lda: function() {
  38728. return this.Td
  38729. }
  38730. });
  38731. f.Dh.create = function() {
  38732. return new f.Dh
  38733. };
  38734. f.P4 = f.N.extend({
  38735. Kh: null,
  38736. Td: null,
  38737. ctor: function(c) {
  38738. this.Kh = null;
  38739. this.Td = c
  38740. },
  38741. uda: function(c) {
  38742. if (!c) throw "cc.ComponentContainer.getComponent(): name should be non-null";
  38743. c = c.trim();
  38744. return this.Kh[c]
  38745. },
  38746. add: function(c) {
  38747. if (!c) throw "cc.ComponentContainer.add(): component should be non-null";
  38748. if (c.Td) return f.log("cc.ComponentContainer.add(): Component already added. It can't be added again"), !1;
  38749. null == this.Kh && (this.Kh = {}, this.Td.ds());
  38750. if (this.Kh[c.getName()]) return f.log("cc.ComponentContainer.add(): Component already added. It can't be added again"), !1;
  38751. c.HC(this.Td);
  38752. this.Kh[c.getName()] = c;
  38753. c.ba();
  38754. return !0
  38755. },
  38756. remove: function(c) {
  38757. if (!c) throw "cc.ComponentContainer.remove(): name should be non-null";
  38758. if (!this.Kh) return !1;
  38759. if (c instanceof f.Dh) return this.Faa(c);
  38760. c = c.trim();
  38761. return this.Faa(this.Kh[c])
  38762. },
  38763. Faa: function(c) {
  38764. if (c) return !1;
  38765. c.Ra();
  38766. c.HC(null);
  38767. delete this.Kh[c.getName()];
  38768. return !0
  38769. },
  38770. kk: function() {
  38771. if (this.Kh) {
  38772. var c = this.Kh,
  38773. d;
  38774. for (d in c) {
  38775. var e = c[d];
  38776. e.Ra();
  38777. e.HC(null);
  38778. delete c[d]
  38779. }
  38780. this.Td.UC();
  38781. this.Kh = null
  38782. }
  38783. },
  38784. uNa: function() {
  38785. this.Kh = {}
  38786. },
  38787. I: function(c) {
  38788. if (this.Kh) {
  38789. var d =
  38790. this.Kh,
  38791. e;
  38792. for (e in d) d[e].update(c)
  38793. }
  38794. },
  38795. Jea: function() {
  38796. if (!this.Kh) return !0;
  38797. for (var c in this.Kh) return !1;
  38798. return !0
  38799. }
  38800. });
  38801. var N = N || {};
  38802. N.N = N.N || f.N;
  38803. N.N.extend = N.N.extend || f.N.extend;
  38804. N.v = N.v || f.v;
  38805. N.v.extend = N.v.extend || f.v.extend;
  38806. N.ja = N.ja || f.ja;
  38807. N.ja.extend = N.ja.extend || f.ja.extend;
  38808. N.q = N.q || f.q;
  38809. N.q.extend = N.q.extend || f.q.extend;
  38810. N.Dh = N.Dh || f.Dh;
  38811. N.Dh.extend = N.Dh.extend || f.Dh.extend;
  38812. N.rQa = "v1.3.0.0";
  38813. N.IJa = N.N.extend({
  38814. Ip: function(c, d, e) {
  38815. c = c.substr(c.lastIndexOf("/") + 1, c.length());
  38816. f.log("filename \x3d\x3d %s", c.toString());
  38817. for (var g = [], h = d.actionlist, k = 0; k < h; k++) {
  38818. var m = new ActionObject;
  38819. m.Ip(d.actionlist[k], e);
  38820. g.push(m)
  38821. }
  38822. this.xq[c] = g
  38823. },
  38824. U_: function(c, d) {
  38825. var e = this.xq[c];
  38826. if (e)
  38827. for (var g = 0; g < e.length; g++) {
  38828. var h = e[g];
  38829. if (d == h.getName()) return h
  38830. }
  38831. },
  38832. aFa: function(c, d) {
  38833. var e = this.U_(c, d);
  38834. e && e.play();
  38835. return e
  38836. },
  38837. FFa: function() {
  38838. for (var c in this.xq) delete this.xq[c];
  38839. this.xq = []
  38840. }
  38841. });
  38842. N.iNa = 0.3;
  38843. N.Ipa = 1;
  38844. N.Jpa = 1.1;
  38845. N.sma = 5E6;
  38846. N.Tia = 50;
  38847. N.Uia = 100;
  38848. N.DJa = N.sma / N.Tia / N.Uia;
  38849. N.HJa = !1;
  38850. N.uD = !1;
  38851. N.dv = !1;
  38852. N.MPa = function() {
  38853. return "v1.1.0.0"
  38854. };
  38855. N.F4 = "version";
  38856. N.FJ = 2;
  38857. N.ss = 0.3;
  38858. N.sS = "skeleton";
  38859. N.Wja = "armatures";
  38860. N.k4 = "armature";
  38861. N.pD = "b";
  38862. N.wka = "d";
  38863. N.Uja = "animations";
  38864. N.j4 = "animation";
  38865. N.D4 = "mov";
  38866. N.rS = "f";
  38867. N.Cka = "TextureAtlas";
  38868. N.E4 = "SubTexture";
  38869. N.Bg = "name";
  38870. N.wy = "dr";
  38871. N.hka = "fi";
  38872. N.q4 = "to";
  38873. N.r4 = "drTW";
  38874. N.v4 = "lp";
  38875. N.mD = "sc";
  38876. N.w4 = "dl";
  38877. N.p4 = "dI";
  38878. N.EKa = "vert";
  38879. N.BKa = "frag";
  38880. N.lka = "plist";
  38881. N.oS = "parent";
  38882. N.CJ = "kX";
  38883. N.DJ = "kY";
  38884. N.nD = "cX";
  38885. N.oD = "cY";
  38886. N.qS = "z";
  38887. N.s4 = "evt";
  38888. N.nka = "sd";
  38889. N.oka = "sdE";
  38890. N.EJ = "twE";
  38891. N.pka = "twR";
  38892. N.gka = "twEP";
  38893. N.jka = "isArmature";
  38894. N.fka = "displayType";
  38895. N.kka = "mov";
  38896. N.aka = "bd";
  38897. N.$ja = "bd_src";
  38898. N.Zja = "bd_dst";
  38899. N.xy = "x";
  38900. N.yy = "y";
  38901. N.n4 = "cocos2d_x";
  38902. N.o4 = "cocos2d_y";
  38903. N.A4 = "width";
  38904. N.u4 = "height";
  38905. N.x4 = "pX";
  38906. N.y4 = "pY";
  38907. N.cka = "cocos2d_pX";
  38908. N.dka = "cocos2d_pY";
  38909. N.l4 = "a";
  38910. N.z4 = "r";
  38911. N.t4 = "g";
  38912. N.m4 = "b";
  38913. N.Yja = "aM";
  38914. N.mka = "rM";
  38915. N.ika = "gM";
  38916. N.bka = "bM";
  38917. N.eka = "colorTransform";
  38918. N.pS = "tweenFrame";
  38919. N.CKa = "rotation";
  38920. N.DKa = "uci";
  38921. N.B4 = "con";
  38922. N.vka = "con_vt";
  38923. N.FKa = "movementEventFrame";
  38924. N.HKa = "soundFrame";
  38925. N.C4 = "NaN";
  38926. N.yka = "frame_data";
  38927. N.zka = "mov_bone_data";
  38928. N.GKa = "mov_frame_data";
  38929. N.Aka = "mov_data";
  38930. N.Vja = "animation_data";
  38931. N.xka = "display_data";
  38932. N.Bka = "skin_data";
  38933. N.qka = "bone_data";
  38934. N.Xja = "armature_data";
  38935. N.uka = "contour_data";
  38936. N.Dka = "texture_data";
  38937. N.Eka = "vertex";
  38938. N.rka = "color";
  38939. N.ska = "config_file_path";
  38940. N.tka = "content_scale";
  38941. function gd() {
  38942. this.eH = 1;
  38943. this.filename = "";
  38944. this.sB = this.aP = 0
  38945. }
  38946. N.SO = {
  38947. ZE: [],
  38948. $Na: N.FJ,
  38949. ENa: N.ss,
  38950. CA: 1,
  38951. cz: 0,
  38952. zv: 0,
  38953. X3a: function(c) {
  38954. this.CA = c
  38955. },
  38956. rVa: function() {
  38957. return this.CA
  38958. },
  38959. clear: function() {
  38960. this.ZE = [];
  38961. this.zv = this.cz = 0
  38962. },
  38963. Sba: function(c, d) {
  38964. if (-1 == this.ZE.indexOf(c)) {
  38965. this.ZE.push(c);
  38966. var e = f.path.zp(c).toLowerCase(),
  38967. g = new gd;
  38968. g.filename = c;
  38969. g.GZ = this.usa(c);
  38970. ".xml" == e ? this.Pva(c, g) : ".json" != e && ".exportjson" != e || this.Nva(c, g, d)
  38971. }
  38972. },
  38973. Mva: function(c, d, e, g) {
  38974. if (-1 != this.ZE.indexOf(c)) d && e && (0 == this.zv && 0 == this.cz ? this.RU(d, e, 1) : this.RU(d, e, (this.zv - this.cz) / this.zv));
  38975. else {
  38976. this.zv++;
  38977. this.cz++;
  38978. var h = this;
  38979. f.Q.Dm().g2(this, function() {
  38980. h.Sba(c, g);
  38981. h.cz--;
  38982. h.RU(d, e, (h.zv - h.cz) / h.zv)
  38983. }, 0.1, !1)
  38984. }
  38985. },
  38986. RU: function(c, d, e) {
  38987. if (c && "string" == typeof d) c[d](e);
  38988. else c && "function" == typeof d && d.call(c, e)
  38989. },
  38990. usa: function(c) {
  38991. var d = c.lastIndexOf("/");
  38992. return c = -1 < d ? c.substr(0, d + 1) : ""
  38993. },
  38994. Pva: function(c, d) {
  38995. var e = f.L.zd(c);
  38996. if (!e) throw "Please load the resource first : " + c;
  38997. (e = f.fGa.parse(e).documentElement) && this.Lva(e, d)
  38998. },
  38999. Lva: function(c, d) {
  39000. if (c) {
  39001. d.aP = parseFloat(c.getAttribute(N.F4));
  39002. for (var e = c.querySelectorAll(N.sS +
  39003. " \x3e " + N.Wja + " \x3e " + N.k4 + ""), g = N.Dr, h = 0; h < e.length; h++) {
  39004. var k = this.txa(e[h], d);
  39005. g.rZ(k.name, k, d.filename)
  39006. }
  39007. e = c.querySelectorAll(N.sS + " \x3e " + N.Uja + " \x3e " + N.j4 + "");
  39008. for (h = 0; h < e.length; h++) k = this.rxa(e[h], d), g.qZ(k.name, k, d.filename);
  39009. e = c.querySelectorAll(N.sS + " \x3e " + N.Cka + " \x3e " + N.E4 + "");
  39010. for (h = 0; h < e.length; h++) k = this.Jxa(e[h], d), g.aca(k.name, k, d.filename)
  39011. } else f.log("XML error or XML is empty.")
  39012. },
  39013. txa: function(c, d) {
  39014. var e = c.getAttribute(N.Bg),
  39015. g = new N.UR;
  39016. g.name = e;
  39017. for (var e = c.querySelectorAll(N.k4 +
  39018. " \x3e " + N.pD), h = 0; h < e.length; h++) {
  39019. var k = e[h],
  39020. m = k.getAttribute(N.oS),
  39021. n = null;
  39022. if (m)
  39023. for (var p = 0; p < e.length && (n = e[p], m != e[p].getAttribute(N.Bg)); p++);
  39024. k = this.vxa(k, n, d);
  39025. g.Oba(k)
  39026. }
  39027. return g
  39028. },
  39029. vxa: function(c, d, e) {
  39030. var g = c.getAttribute(N.Bg);
  39031. if ("" != g) {
  39032. d = new N.Z3;
  39033. d.name = g;
  39034. d.yI = c.getAttribute(N.oS) || "";
  39035. d.Sm = parseInt(c.getAttribute(N.qS)) || 0;
  39036. c = c.querySelectorAll(N.pD + " \x3e " + N.wka);
  39037. for (var h, g = 0; g < c.length; g++) h = c[g], h = this.wxa(h, e), d.Uba(h);
  39038. return d
  39039. }
  39040. },
  39041. wxa: function(c) {
  39042. var d = null;
  39043. 1 == (parseFloat(c.getAttribute(N.jka)) ||
  39044. 0) ? (d = new N.hD, d.$k = N.zy) : (d = new N.vq, d.$k = N.us);
  39045. (c = c.getAttribute(N.Bg) || "") && (d.displayName = c);
  39046. return d
  39047. },
  39048. rxa: function(c, d) {
  39049. var e = c.getAttribute(N.Bg),
  39050. g = new N.TR,
  39051. h = N.Dr.wx(e);
  39052. g.name = e;
  39053. for (var e = c.querySelectorAll(N.j4 + " \x3e " + N.D4), k = null, m = 0; m < e.length; m++) k = e[m], k = this.Dxa(k, h, d), g.Vba(k);
  39054. return g
  39055. },
  39056. Dxa: function(c, d, e) {
  39057. var g = c.getAttribute(N.Bg),
  39058. h = new N.i6;
  39059. h.name = g;
  39060. g = g = 0;
  39061. g = parseFloat(c.getAttribute(N.wy)) || 0;
  39062. h.duration = g;
  39063. g = parseFloat(c.getAttribute(N.q4)) || 0;
  39064. h.nu = g;
  39065. g = parseFloat(c.getAttribute(N.r4)) ||
  39066. 0;
  39067. h.XO = g;
  39068. g = c.getAttribute(N.v4);
  39069. h.loop = g ? Boolean(parseFloat(g)) : !0;
  39070. if (g = c.getAttribute(N.EJ)) g != N.C4 ? (g = parseFloat(g) || 0, h.tweenEasing = 2 == g ? N.eb.JC : g) : h.tweenEasing = N.eb.rj;
  39071. c = c.querySelectorAll(N.D4 + " \x3e " + N.pD);
  39072. for (var k = null, g = 0; g < c.length; g++) {
  39073. var k = c[g],
  39074. m = k.getAttribute(N.Bg);
  39075. if (!h.e0(m)) {
  39076. var m = d.xx(m),
  39077. n = m.yI,
  39078. p = null;
  39079. if ("" != n)
  39080. for (var s = 0; s < c.length && (p = c[s], n != p.getAttribute(N.Bg)); s++);
  39081. k = this.Exa(k, p, m, e);
  39082. h.Wba(k)
  39083. }
  39084. }
  39085. return h
  39086. },
  39087. Exa: function(c, d, e, g) {
  39088. var h = new N.h6,
  39089. k;
  39090. c && (k = parseFloat(c.getAttribute(N.mD)) ||
  39091. 0, h.scale = k, k = parseFloat(c.getAttribute(N.w4)) || 0, 0 < k && (k -= 1), h.vm = k);
  39092. var m = 0,
  39093. n = k = 0,
  39094. p = null,
  39095. s = [];
  39096. if (null != d) {
  39097. for (var u = d.querySelectorAll(N.pD + " \x3e " + N.rS), m = 0; m < u.length; m++) s.push(u[m]);
  39098. m = s.length
  39099. }
  39100. var u = 0,
  39101. v = c.getAttribute(N.Bg);
  39102. h.name = v;
  39103. c = c.querySelectorAll(N.pD + " \x3e " + N.rS);
  39104. for (var z = v = 0; z < c.length; z++) {
  39105. var A = c[z];
  39106. if (d)
  39107. for (; v < m && (p ? u < k || u >= k + n : 1);) p = s[v], k += n, n = parseFloat(p.getAttribute(N.wy)), v++;
  39108. A = this.Bxa(A, p, e, g);
  39109. h.xO(A);
  39110. A.oj = u;
  39111. u += A.duration;
  39112. h.duration = u
  39113. }
  39114. d = h.qh;
  39115. e = Math.PI;
  39116. for (m = d.length -
  39117. 1; 0 <= m; m--)
  39118. if (0 < m) {
  39119. g = d[m].skewX - d[m - 1].skewX;
  39120. k = d[m].skewY - d[m - 1].skewY;
  39121. if (g < -e || g > e) d[m - 1].skewX = 0 > g ? d[m - 1].skewX - 2 * e : d[m - 1].skewX + 2 * e;
  39122. if (k < -e || k > e) d[m - 1].skewY = 0 > k ? d[m - 1].skewY - 2 * e : d[m - 1].skewY + 2 * e
  39123. }
  39124. 0 < h.qh.length && (A = new N.hv, A.copy(h.qh[h.qh.length - 1]), A.oj = h.duration, h.xO(A));
  39125. return h
  39126. },
  39127. Bxa: function(c, d, e, g) {
  39128. e = new N.hv;
  39129. e.oC = c.getAttribute(N.kka) || "";
  39130. e.event = c.getAttribute(N.s4) || "";
  39131. e.Hwa = parseInt(c.getAttribute(N.aka)) || N.W3;
  39132. var h = e.blendFunc;
  39133. switch (e.Hwa) {
  39134. case N.W3:
  39135. h.src = f.Mc;
  39136. h.ha = f.Lc;
  39137. break;
  39138. case N.nja:
  39139. h.src =
  39140. f.SRC_ALPHA;
  39141. h.ha = f.ONE;
  39142. break;
  39143. case N.oja:
  39144. h.src = f.ONE_MINUS_SRC_ALPHA;
  39145. h.ha = f.ONE_MINUS_DST_COLOR;
  39146. break;
  39147. case N.pja:
  39148. h.src = f.ONE, h.ha = f.ONE_MINUS_DST_COLOR
  39149. }
  39150. e.IR = c.getAttribute(N.nka) || "";
  39151. e.JR = c.getAttribute(N.oka) || "";
  39152. h = c.getAttribute(N.pS);
  39153. null == h && (h = !0);
  39154. e.uu = Boolean(h);
  39155. g.aP >= N.FJ ? (e.x = parseFloat(c.getAttribute(N.n4)) || 0, e.y = -parseFloat(c.getAttribute(N.o4)) || 0) : (e.x = parseFloat(c.getAttribute(N.xy)) || 0, e.y = -parseFloat(c.getAttribute(N.yy)) || 0);
  39156. e.x *= this.CA;
  39157. e.y *= this.CA;
  39158. e.scaleX = parseFloat(c.getAttribute(N.nD)) ||
  39159. 0;
  39160. e.scaleY = parseFloat(c.getAttribute(N.oD)) || 0;
  39161. e.skewX = f.sg(parseFloat(c.getAttribute(N.CJ)) || 0);
  39162. e.skewY = f.sg(-parseFloat(c.getAttribute(N.DJ)) || 0);
  39163. e.duration = parseFloat(c.getAttribute(N.wy)) || 0;
  39164. e.mj = parseFloat(c.getAttribute(N.p4)) || 0;
  39165. e.Sm = parseFloat(c.getAttribute(N.qS)) || 0;
  39166. e.py = parseFloat(c.getAttribute(N.pka)) || 0;
  39167. h = c.querySelectorAll(N.rS + " \x3e " + N.eka);
  39168. if (0 < h.length) {
  39169. var k = h[0],
  39170. m = h = 0,
  39171. n = 0,
  39172. p = 0,
  39173. s = 0,
  39174. u = 0,
  39175. v = 0,
  39176. z = 100,
  39177. h = parseFloat(k.getAttribute(N.l4)) || h,
  39178. m = parseFloat(k.getAttribute(N.z4)) || m,
  39179. n = parseFloat(k.getAttribute(N.t4)) ||
  39180. n,
  39181. p = parseFloat(k.getAttribute(N.m4)) || p,
  39182. A = k.getAttribute(N.Yja);
  39183. A && (s = parseFloat(A));
  39184. (A = k.getAttribute(N.mka)) && (u = parseFloat(A));
  39185. var B = k.getAttribute(N.ika);
  39186. A && (v = parseFloat(B));
  39187. (k = k.getAttribute(N.bka)) && (z = parseFloat(k));
  39188. e.a = 2.55 * s + h;
  39189. e.r = 2.55 * u + m;
  39190. e.g = 2.55 * v + n;
  39191. e.b = 2.55 * z + p;
  39192. e.Zn = !0
  39193. } - 1 == e.mj && (e.a = 0);
  39194. (c = c.getAttribute(N.EJ)) && (e.tweenEasing = c != N.C4 ? 2 == c ? N.eb.JC : c : N.eb.rj);
  39195. d && (c = new N.Tm, g.aP >= N.FJ ? (c.x = parseFloat(d.getAttribute(N.n4)) || 0, c.y = parseFloat(d.getAttribute(N.o4)) || 0) : (c.x = parseFloat(d.getAttribute(N.xy)) ||
  39196. 0, c.y = parseFloat(d.getAttribute(N.yy)) || 0), c.skewX = parseFloat(d.getAttribute(N.CJ)) || 0, c.skewY = parseFloat(d.getAttribute(N.DJ)) || 0, c.y = -c.y, c.skewX = f.sg(c.skewX), c.skewY = f.sg(-c.skewY), N.Hj.LIa(e, c));
  39197. return e
  39198. },
  39199. Jxa: function(c, d) {
  39200. var e = new N.A7;
  39201. c.getAttribute(N.Bg) && (e.name = c.getAttribute(N.Bg));
  39202. var g, h, k, m = 0;
  39203. d.aP >= N.FJ ? (g = parseFloat(c.getAttribute(N.cka)) || 0, h = parseFloat(c.getAttribute(N.dka)) || 0) : (g = parseFloat(c.getAttribute(N.x4)) || 0, h = parseFloat(c.getAttribute(N.y4)) || 0);
  39204. k = parseFloat(c.getAttribute(N.A4)) ||
  39205. 0;
  39206. m = parseFloat(c.getAttribute(N.u4)) || 0;
  39207. e.GQ = g / k;
  39208. e.HQ = (m - h) / m;
  39209. g = c.querySelectorAll(N.E4 + " \x3e " + N.B4);
  39210. for (h = 0; h < g.length; h++) this.zxa(g[h], d);
  39211. return e
  39212. },
  39213. zxa: function(c) {
  39214. var d = new N.Q4;
  39215. c = c.querySelectorAll(N.B4 + " \x3e " + N.vka);
  39216. for (var e, g = 0; g < c.length; g++) {
  39217. e = c[g];
  39218. var h = r(0, 0);
  39219. h.x = parseFloat(e.getAttribute(N.xy)) || 0;
  39220. h.y = parseFloat(e.getAttribute(N.yy)) || 0;
  39221. d.Vu.push(h)
  39222. }
  39223. return d
  39224. },
  39225. Nva: function(c, d, e) {
  39226. this.Ova(f.L.zd(c), d, e)
  39227. },
  39228. Ova: function(c, d, e) {
  39229. d.eH = c[N.tka] || 1;
  39230. for (var g = c[N.Xja] || [], h, k = 0; k < g.length; k++) h =
  39231. this.uxa(g[k], d), N.Dr.rZ(h.name, h, d.filename);
  39232. g = c[N.Vja] || [];
  39233. for (k = 0; k < g.length; k++) h = this.sxa(g[k], d), N.Dr.qZ(h.name, h, d.filename);
  39234. g = c[N.Dka] || [];
  39235. for (k = 0; k < g.length; k++) h = this.Kxa(g[k], d), N.Dr.aca(h.name, h, d.filename);
  39236. if (e)
  39237. for (c = c[N.ska] || [], k = 0; k < c.length; k++) e = c[k], g = e.lastIndexOf("."), e = e.substring(0, g), g = d.GZ + e + ".plist", e = d.GZ + e + ".png", N.Dr.UG(g, e, d.filename)
  39238. },
  39239. uxa: function(c, d) {
  39240. var e = new N.UR,
  39241. g = c[N.Bg];
  39242. g && (e.name = g);
  39243. d.sB = e.wB = c[N.F4] || 0.1;
  39244. for (var g = c[N.qka], h = 0; h < g.length; h++) e.Oba(this.yxa(g[h],
  39245. d));
  39246. return e
  39247. },
  39248. yxa: function(c, d) {
  39249. var e = new N.Z3;
  39250. this.Gca(e, c, d);
  39251. e.name = c[N.Bg] || "";
  39252. e.yI = c[N.oS] || "";
  39253. for (var g = c[N.xka] || [], h = 0; h < g.length; h++) {
  39254. var k = this.xxa(g[h], d);
  39255. e.Uba(k)
  39256. }
  39257. return e
  39258. },
  39259. xxa: function(c, d) {
  39260. var e = c[N.fka] || N.us,
  39261. g = null;
  39262. switch (e) {
  39263. case N.us:
  39264. g = new N.vq;
  39265. g.displayName = c[N.Bg] || "";
  39266. var h = (c[N.Bka] || [])[0];
  39267. if (h) {
  39268. var k = g.skinData;
  39269. k.x = (h[N.xy] || 0) * this.CA;
  39270. k.y = (h[N.yy] || 0) * this.CA;
  39271. void 0 !== h[N.nD] && (k.scaleX = h[N.nD]);
  39272. void 0 !== h[N.oD] && (k.scaleY = h[N.oD]);
  39273. k.skewX = h[N.CJ] || 0;
  39274. k.skewY = h[N.DJ] || 0;
  39275. k.x *=
  39276. d.eH;
  39277. k.y *= d.eH
  39278. }
  39279. break;
  39280. case N.zy:
  39281. g = new N.hD;
  39282. g.displayName = c[N.Bg] || "";
  39283. break;
  39284. case N.tD:
  39285. g = new N.mK;
  39286. g.displayName = d.GZ + c[N.lka] || "";
  39287. break;
  39288. default:
  39289. g = new N.vq
  39290. }
  39291. g.$k = e;
  39292. return g
  39293. },
  39294. sxa: function(c, d) {
  39295. var e = new N.TR;
  39296. e.name = c[N.Bg] || "";
  39297. for (var g = c[N.Aka] || [], h = 0; h < g.length; h++) {
  39298. var k = this.Gxa(g[h], d);
  39299. e.Vba(k)
  39300. }
  39301. return e
  39302. },
  39303. Gxa: function(c, d) {
  39304. var e = new N.i6;
  39305. e.loop = c[N.v4] || !1;
  39306. e.XO = c[N.r4] || 0;
  39307. e.nu = c[N.q4] || 0;
  39308. e.duration = c[N.wy] || 0;
  39309. void 0 !== c[N.mD] && (e.scale = c[N.mD]);
  39310. e.tweenEasing = c[N.EJ] || N.eb.rj;
  39311. e.name = c[N.Bg] || "";
  39312. for (var g =
  39313. c[N.zka] || [], h = 0; h < g.length; h++) {
  39314. var k = this.Fxa(g[h], d);
  39315. e.Wba(k)
  39316. }
  39317. return e
  39318. },
  39319. Fxa: function(c, d) {
  39320. var e = new N.h6;
  39321. e.vm = c[N.w4] || 0;
  39322. void 0 !== c[N.mD] && (e.scale = c[N.mD]);
  39323. e.name = c[N.Bg] || "";
  39324. for (var g = c[N.yka] || [], h = 0; h < g.length; h++) {
  39325. var k = this.Cxa(g[h], d);
  39326. e.xO(k);
  39327. d.sB < N.ss && (k.oj = e.duration, e.duration += k.duration)
  39328. }
  39329. if (d.sB < N.Ipa)
  39330. for (g = e.qh, k = Math.PI, h = g.length - 1; 0 <= h; h--)
  39331. if (0 < h) {
  39332. var m = g[h].skewX - g[h - 1].skewX,
  39333. n = g[h].skewY - g[h - 1].skewY;
  39334. if (m < -k || m > k) g[h - 1].skewX = 0 > m ? g[h - 1].skewX - 2 * k : g[h - 1].skewX + 2 * k;
  39335. if (n < -k || n >
  39336. k) g[h - 1].skewY = 0 > n ? g[h - 1].skewY - 2 * k : g[h - 1].skewY + 2 * k
  39337. }
  39338. d.sB < N.ss && 0 < e.qh.length && (k = new N.hv, k.copy(e.qh[e.qh.length - 1]), e.xO(k), k.oj = e.duration);
  39339. return e
  39340. },
  39341. Cxa: function(c, d) {
  39342. var e = new N.hv;
  39343. this.Gca(e, c, d);
  39344. e.duration = c[N.wy] || 0;
  39345. e.tweenEasing = c[N.EJ] || N.eb.rj;
  39346. e.mj = c[N.p4] || 0;
  39347. var g = c[N.Zja] || f.Lc;
  39348. e.blendFunc.src = c[N.$ja] || f.Mc;
  39349. e.blendFunc.ha = g;
  39350. e.event = c[N.s4] || null;
  39351. void 0 !== c[N.pS] && (e.uu = c[N.pS]);
  39352. d.sB < N.ss ? e.duration = c[N.wy] || 0 : e.oj = c[N.hka] || 0;
  39353. for (var g = c[N.gka] || [], h = 0; h < g.length; h++) e.zB[h] = g[h];
  39354. return e
  39355. },
  39356. Kxa: function(c) {
  39357. var d = new N.A7;
  39358. d.name = c[N.Bg] || "";
  39359. d.width = c[N.A4] || 0;
  39360. d.height = c[N.u4] || 0;
  39361. d.GQ = c[N.x4] || 0;
  39362. d.HQ = c[N.y4] || 0;
  39363. c = c[N.uka] || [];
  39364. for (var e = 0; e < c.length; e++) {
  39365. var g = this.Axa(c[e]);
  39366. d.jx.push(g)
  39367. }
  39368. return d
  39369. },
  39370. Axa: function(c) {
  39371. var d = new N.Q4;
  39372. c = c[N.Eka] || [];
  39373. for (var e = 0; e < c.length; e++) {
  39374. var g = c[e],
  39375. h = r(0, 0);
  39376. h.x = g[N.xy] || 0;
  39377. h.y = g[N.yy] || 0;
  39378. d.Vu.push(h)
  39379. }
  39380. return d
  39381. },
  39382. Gca: function(c, d, e) {
  39383. c.x = d[N.xy] || 0;
  39384. c.y = d[N.yy] || 0;
  39385. c.x *= e.eH;
  39386. c.y *= e.eH;
  39387. c.Sm = d[N.qS] || 0;
  39388. c.skewX = d[N.CJ] || 0;
  39389. c.skewY = d[N.DJ] || 0;
  39390. void 0 !== d[N.nD] && (c.scaleX =
  39391. d[N.nD]);
  39392. void 0 !== d[N.oD] && (c.scaleY = d[N.oD]);
  39393. if (d = d[N.rka] || null) e.sB < N.Jpa && (d = d[0]), c.a = d[N.l4], c.r = d[N.z4], c.g = d[N.t4], c.b = d[N.m4], c.Zn = !0, delete d
  39394. },
  39395. PFa: function(c) {
  39396. f.Ld(this.ZE, c)
  39397. }
  39398. };
  39399. N.jia = {
  39400. VN: {},
  39401. qsa: [],
  39402. UG: function(c, d) {
  39403. f.Je.vp(c, d)
  39404. },
  39405. xBa: function() {
  39406. return null
  39407. },
  39408. clear: function() {
  39409. this.VN = {};
  39410. this.qsa = []
  39411. }
  39412. };
  39413. N.Hj = N.Hj || N.N.extend({});
  39414. N.Hj.BP = {
  39415. a: 1,
  39416. b: 0,
  39417. G: 0,
  39418. P: 1,
  39419. pa: 0,
  39420. qa: 0
  39421. };
  39422. N.Hj.CP = {
  39423. a: 1,
  39424. b: 0,
  39425. G: 0,
  39426. P: 1,
  39427. pa: 0,
  39428. qa: 0
  39429. };
  39430. N.Hj.Fp = r(0, 0);
  39431. N.Hj.Gp = r(0, 0);
  39432. N.Hj.LIa = function(c, d) {
  39433. this.n1(c, this.BP);
  39434. this.n1(d, this.CP);
  39435. this.CP = f.SR(this.CP);
  39436. this.BP = f.Vg(this.BP, this.CP);
  39437. this.mfa(this.BP, c)
  39438. };
  39439. N.Hj.n1 = function(c, d) {
  39440. if (c.skewX == -c.skewY) {
  39441. var e = Math.sin(c.skewX),
  39442. g = Math.cos(c.skewX);
  39443. d.a = c.scaleX * g;
  39444. d.b = c.scaleX * -e;
  39445. d.G = c.scaleY * e;
  39446. d.P = c.scaleY * g
  39447. } else d.a = c.scaleX * Math.cos(c.skewY), d.b = c.scaleX * Math.sin(c.skewY), d.G = c.scaleY * Math.sin(c.skewX), d.P = c.scaleY * Math.cos(c.skewY);
  39448. d.pa = c.x;
  39449. d.qa = c.y
  39450. };
  39451. N.Hj.mfa = function(c, d) {
  39452. this.Fp.x = 0;
  39453. this.Fp.y = 1;
  39454. this.Fp = f.lv(this.Fp, c);
  39455. this.Fp.x -= c.pa;
  39456. this.Fp.y -= c.qa;
  39457. this.Gp.x = 1;
  39458. this.Gp.y = 0;
  39459. this.Gp = f.lv(this.Gp, c);
  39460. this.Gp.x -= c.pa;
  39461. this.Gp.y -= c.qa;
  39462. d.skewX = -(Math.atan2(this.Fp.y, this.Fp.x) - 1.5707964);
  39463. d.skewY = Math.atan2(this.Gp.y, this.Gp.x);
  39464. d.scaleX = Math.sqrt(c.a * c.a + c.b * c.b);
  39465. d.scaleY = Math.sqrt(c.G * c.G + c.P * c.P);
  39466. d.x = c.pa;
  39467. d.y = c.qa
  39468. };
  39469. N.Hj.r_a = function(c, d) {
  39470. c.x += d.x;
  39471. c.y += d.y;
  39472. c.skewX += d.skewX;
  39473. c.skewY += d.skewY;
  39474. c.scaleX += d.scaleX;
  39475. c.scaleY += d.scaleY
  39476. };
  39477. N.Hj.XDa = function(c, d) {
  39478. c.x -= d.x;
  39479. c.y -= d.y;
  39480. c.skewX -= d.skewX;
  39481. c.skewY -= d.skewY;
  39482. c.scaleX -= d.scaleX;
  39483. c.scaleY -= d.scaleY
  39484. };
  39485. N.eb = {
  39486. pxa: -1,
  39487. rj: 0,
  39488. f3: 1,
  39489. g3: 2,
  39490. JC: 3,
  39491. L1: 4,
  39492. N1: 5,
  39493. M1: 6,
  39494. p_: 7,
  39495. r_: 8,
  39496. q_: 9,
  39497. O1: 10,
  39498. Q1: 11,
  39499. P1: 12,
  39500. R1: 13,
  39501. T1: 14,
  39502. S1: 15,
  39503. P_: 16,
  39504. R_: 17,
  39505. Q_: 18,
  39506. d_: 19,
  39507. Qya: 20,
  39508. e_: 21,
  39509. I_: 22,
  39510. K_: 23,
  39511. J_: 24,
  39512. CZ: 25,
  39513. EZ: 26,
  39514. DZ: 27,
  39515. MZ: 28,
  39516. OZ: 29,
  39517. NZ: 30,
  39518. zia: 1E4
  39519. };
  39520. N.nc = N.nc || N.N.extend({});
  39521. N.yo = 2 * Math.PI;
  39522. N.d6 = Math.PI / 2;
  39523. N.tma = Math.PI;
  39524. N.nc.NIa = function(c, d, e) {
  39525. var g = 0;
  39526. switch (d) {
  39527. case N.eb.pxa:
  39528. g = this.oxa(c, e);
  39529. break;
  39530. case N.eb.rj:
  39531. g = this.rj(c);
  39532. break;
  39533. case N.eb.f3:
  39534. g = this.f3(c);
  39535. break;
  39536. case N.eb.g3:
  39537. g = this.g3(c);
  39538. break;
  39539. case N.eb.JC:
  39540. g = this.JC(c);
  39541. break;
  39542. case N.eb.L1:
  39543. g = this.L1(c);
  39544. break;
  39545. case N.eb.N1:
  39546. g = this.N1(c);
  39547. break;
  39548. case N.eb.M1:
  39549. g = this.M1(c);
  39550. break;
  39551. case N.eb.p_:
  39552. g = this.p_(c);
  39553. break;
  39554. case N.eb.r_:
  39555. g = this.r_(c);
  39556. break;
  39557. case N.eb.q_:
  39558. g = this.q_(c);
  39559. break;
  39560. case N.eb.O1:
  39561. g = this.O1(c);
  39562. break;
  39563. case N.eb.Q1:
  39564. g = this.Q1(c);
  39565. break;
  39566. case N.eb.P1:
  39567. g = this.P1(c);
  39568. break;
  39569. case N.eb.R1:
  39570. g =
  39571. this.R1(c);
  39572. break;
  39573. case N.eb.T1:
  39574. g = this.T1(c);
  39575. break;
  39576. case N.eb.S1:
  39577. g = this.S1(c);
  39578. break;
  39579. case N.eb.P_:
  39580. g = this.P_(c);
  39581. break;
  39582. case N.eb.R_:
  39583. g = this.R_(c);
  39584. break;
  39585. case N.eb.Q_:
  39586. g = this.Q_(c);
  39587. break;
  39588. case N.eb.d_:
  39589. g = this.d_(c);
  39590. break;
  39591. case N.eb.Qya:
  39592. g = this.Vwa(c);
  39593. break;
  39594. case N.eb.e_:
  39595. g = this.e_(c);
  39596. break;
  39597. case N.eb.I_:
  39598. g = this.I_(c, e);
  39599. break;
  39600. case N.eb.K_:
  39601. g = this.K_(c, e);
  39602. break;
  39603. case N.eb.J_:
  39604. g = this.J_(c, e);
  39605. break;
  39606. case N.eb.CZ:
  39607. g = this.CZ(c);
  39608. break;
  39609. case N.eb.EZ:
  39610. g = this.EZ(c);
  39611. break;
  39612. case N.eb.DZ:
  39613. g = this.DZ(c);
  39614. break;
  39615. case N.eb.MZ:
  39616. g = this.MZ(c);
  39617. break;
  39618. case N.eb.OZ:
  39619. g = this.OZ(c);
  39620. break;
  39621. case N.eb.NZ:
  39622. g = this.NZ(c);
  39623. break;
  39624. default:
  39625. g = this.JC(c)
  39626. }
  39627. return g
  39628. };
  39629. N.nc.rj = function(c) {
  39630. return c
  39631. };
  39632. N.nc.f3 = function(c) {
  39633. return -1 * Math.cos(c * N.d6) + 1
  39634. };
  39635. N.nc.g3 = function(c) {
  39636. return Math.sin(c * N.d6)
  39637. };
  39638. N.nc.JC = function(c) {
  39639. return -0.5 * (Math.cos(N.tma * c) - 1)
  39640. };
  39641. N.nc.L1 = function(c) {
  39642. return c * c
  39643. };
  39644. N.nc.N1 = function(c) {
  39645. return -1 * c * (c - 2)
  39646. };
  39647. N.nc.M1 = function(c) {
  39648. c *= 2;
  39649. if (1 > c) return 0.5 * c * c;
  39650. --c;
  39651. return -0.5 * (c * (c - 2) - 1)
  39652. };
  39653. N.nc.p_ = function(c) {
  39654. return c * c * c
  39655. };
  39656. N.nc.r_ = function(c) {
  39657. c -= 1;
  39658. return c * c * c + 1
  39659. };
  39660. N.nc.q_ = function(c) {
  39661. c *= 2;
  39662. if (1 > c) return 0.5 * c * c * c;
  39663. c -= 2;
  39664. return 0.5 * (c * c * c + 2)
  39665. };
  39666. N.nc.O1 = function(c) {
  39667. return c * c * c * c
  39668. };
  39669. N.nc.Q1 = function(c) {
  39670. c -= 1;
  39671. return -(c * c * c * c - 1)
  39672. };
  39673. N.nc.P1 = function(c) {
  39674. c *= 2;
  39675. if (1 > c) return 0.5 * c * c * c * c;
  39676. c -= 2;
  39677. return -0.5 * (c * c * c * c - 2)
  39678. };
  39679. N.nc.R1 = function(c) {
  39680. return c * c * c * c * c
  39681. };
  39682. N.nc.T1 = function(c) {
  39683. c -= 1;
  39684. return c * c * c * c * c + 1
  39685. };
  39686. N.nc.S1 = function(c) {
  39687. c *= 2;
  39688. if (1 > c) return 0.5 * c * c * c * c * c;
  39689. c -= 2;
  39690. return 0.5 * (c * c * c * c * c + 2)
  39691. };
  39692. N.nc.P_ = function(c) {
  39693. return 0 == c ? 0 : Math.pow(2, 10 * (c - 1)) - 0.001
  39694. };
  39695. N.nc.R_ = function(c) {
  39696. return 1 == c ? 1 : -Math.pow(2, -10 * c) + 1
  39697. };
  39698. N.nc.Q_ = function(c) {
  39699. c /= 0.5;
  39700. return c = 1 > c ? 0.5 * Math.pow(2, 10 * (c - 1)) : 0.5 * (-Math.pow(2, -10 * (c - 1)) + 2)
  39701. };
  39702. N.nc.d_ = function(c) {
  39703. return -1 * (Math.sqrt(1 - c * c) - 1)
  39704. };
  39705. N.nc.Vwa = function(c) {
  39706. c -= 1;
  39707. return Math.sqrt(1 - c * c)
  39708. };
  39709. N.nc.e_ = function(c) {
  39710. c *= 2;
  39711. if (1 > c) return -0.5 * (Math.sqrt(1 - c * c) - 1);
  39712. c -= 2;
  39713. return 0.5 * (Math.sqrt(1 - c * c) + 1)
  39714. };
  39715. N.nc.I_ = function(c, d) {
  39716. var e = 0.3;
  39717. 0 < d.length && (e = d[0]);
  39718. var g = 0;
  39719. 0 == c || 1 == c ? g = c : (c -= 1, g = -Math.pow(2, 10 * c) * Math.sin((c - e / 4) * N.yo / e));
  39720. return g
  39721. };
  39722. N.nc.K_ = function(c, d) {
  39723. var e = 0.3;
  39724. 0 < d.length && (e = d[0]);
  39725. var g = 0;
  39726. return g = 0 == c || 1 == c ? c : Math.pow(2, -10 * c) * Math.sin((c - e / 4) * N.yo / e) + 1
  39727. };
  39728. N.nc.J_ = function(c, d) {
  39729. var e = 0.3;
  39730. 0 < d.length && (e = d[0]);
  39731. var g = 0;
  39732. 0 == c || 1 == c ? g = c : (e || (e = 0.3 * 1.5), g = e / 4, c = 2 * c - 1, g = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin((c - g) * N.yo / e) : Math.pow(2, -10 * c) * Math.sin((c - g) * N.yo / e) * 0.5 + 1);
  39733. return g
  39734. };
  39735. N.nc.CZ = function(c) {
  39736. return c * c * (2.70158 * c - 1.70158)
  39737. };
  39738. N.nc.EZ = function(c) {
  39739. c -= 1;
  39740. return c * c * (2.70158 * c + 1.70158) + 1
  39741. };
  39742. N.nc.DZ = function(c) {
  39743. c *= 2;
  39744. if (1 > c) return c * c * (3.5949095 * c - 2.5949095) / 2;
  39745. c -= 2;
  39746. return c * c * (3.5949095 * c + 2.5949095) / 2 + 1
  39747. };
  39748. N.Er = function(c) {
  39749. if (c < 1 / 2.75) return 7.5625 * c * c;
  39750. if (c < 2 / 2.75) return c -= 1.5 / 2.75, 7.5625 * c * c + 0.75;
  39751. if (c < 2.5 / 2.75) return c -= 2.25 / 2.75, 7.5625 * c * c + 0.9375;
  39752. c -= 2.625 / 2.75;
  39753. return 7.5625 * c * c + 0.984375
  39754. };
  39755. N.nc.MZ = function(c) {
  39756. return 1 - N.Er(1 - c)
  39757. };
  39758. N.nc.OZ = function(c) {
  39759. return N.Er(c)
  39760. };
  39761. N.nc.NZ = function(c) {
  39762. var d = 0;
  39763. return d = 0.5 > c ? 0.5 * (1 - N.Er(1 - 2 * c)) : 0.5 * N.Er(2 * c - 1) + 0.5
  39764. };
  39765. N.nc.oxa = function(c, d) {
  39766. if (0 < d.length) {
  39767. var e = 1 - c;
  39768. return d[1] * e * e * e + 3 * d[3] * c * e * e + 3 * d[5] * c * c * e + d[7] * c * c * c
  39769. }
  39770. return c
  39771. };
  39772. N.EB = function(c, d) {
  39773. for (; c > d;) c -= d;
  39774. return c
  39775. };
  39776. function vd(c) {
  39777. c && c.wh && c.wh()
  39778. }
  39779. N.Nea = function(c, d, e) {
  39780. var g = r(0, 0);
  39781. e && (g = c.yi(d));
  39782. c = c.e();
  39783. return f.Bu(x(0, 0, c.width, c.height), g)
  39784. };
  39785. N.zMa = N.Nea;
  39786. N.Pna = N.Nea;
  39787. N.vRa = function(c, d, e, g, h) {
  39788. var k = r(0, 0);
  39789. g && !h && (k.x = Math.pow(1 - c, 2) * d.x + 2 * c * (1 - c) * e.x + Math.pow(c, 2) * g.x, k.y = Math.pow(1 - c, 2) * d.y + 2 * c * (1 - c) * e.y + Math.pow(c, 2) * g.y);
  39790. h && (k.x = d.x * Math.pow(1 - c, 3) + 3 * c * e.x * Math.pow(1 - c, 2) + 3 * g.x * Math.pow(c, 2) * (1 - c) + h.x * Math.pow(c, 3), k.y = d.y * Math.pow(1 - c, 3) + 3 * c * e.y * Math.pow(1 - c, 2) + 3 * g.y * Math.pow(c, 2) * (1 - c) + h.y * Math.pow(c, 3));
  39791. return k
  39792. };
  39793. N.wRa = function(c, d, e, g, h) {
  39794. var k = r(0, 0);
  39795. k.x = d.x + e * Math.cos(g + h * c);
  39796. k.y = d.y + e * Math.sin(g + h * c);
  39797. return k
  39798. };
  39799. function wd() {
  39800. this.H1 = [];
  39801. this.zZ = [];
  39802. this.lB = [];
  39803. this.q3 = []
  39804. }
  39805. N.Dr = {
  39806. Ms: {},
  39807. Ns: {},
  39808. Ut: {},
  39809. oqa: !1,
  39810. sN: {},
  39811. f1a: function(c) {
  39812. for (var d = this.zH(c), e = 0; e < d.zZ.length; e++) {
  39813. var g = d.zZ[e];
  39814. this.MFa(g)
  39815. }
  39816. for (e = 0; e < d.lB.length; e++) g = d.lB[e], this.KFa(g);
  39817. for (e = 0; e < d.q3.length; e++) g = d.q3[e], this.WFa(g);
  39818. for (e = 0; e < d.H1.length; e++) g = d.H1[e], f.Je.VFa(g);
  39819. delete this.sN[c];
  39820. N.SO.PFa(c)
  39821. },
  39822. rZ: function(c, d, e) {
  39823. this.Ns && (this.zH(e).zZ.push(c), this.Ns[c] = d)
  39824. },
  39825. MFa: function(c) {
  39826. this.Ns[c] && delete this.Ns[c]
  39827. },
  39828. wx: function(c) {
  39829. var d = null;
  39830. this.Ns && (d = this.Ns[c]);
  39831. return d
  39832. },
  39833. gSa: function() {
  39834. return this.Ns
  39835. },
  39836. qZ: function(c, d, e) {
  39837. this.Ms && (this.zH(e).lB.push(c), this.Ms[c] = d)
  39838. },
  39839. KFa: function(c) {
  39840. this.Ms[c] && delete this.Ms[c]
  39841. },
  39842. mda: function(c) {
  39843. var d = null;
  39844. this.Ms[c] && (d = this.Ms[c]);
  39845. return d
  39846. },
  39847. aSa: function() {
  39848. return this.Ms
  39849. },
  39850. aca: function(c, d, e) {
  39851. this.Ut && (this.zH(e).q3.push(c), this.Ut[c] = d)
  39852. },
  39853. WFa: function(c) {
  39854. this.Ut[c] && delete this.Ut[c]
  39855. },
  39856. wBa: function(c) {
  39857. var d = null;
  39858. this.Ut && (d = this.Ut[c]);
  39859. return d
  39860. },
  39861. iWa: function() {
  39862. return this.Ut
  39863. },
  39864. Jva: function() {
  39865. var c, d, e, g = !1;
  39866. 1 == arguments.length ? (e = arguments[0], g = !0, this.BO(e)) : 3 == arguments.length &&
  39867. (c = arguments[0], d = arguments[1], e = arguments[2], this.BO(e), this.UG(d, c, e));
  39868. N.SO.Sba(e, g)
  39869. },
  39870. kPa: function() {
  39871. var c, d, e, g, h, k = !1;
  39872. 3 == arguments.length ? (e = arguments[0], h = arguments[1], g = arguments[2], k = !0, this.BO(e)) : 5 == arguments.length && (c = arguments[0], d = arguments[1], e = arguments[2], h = arguments[3], g = arguments[4], this.BO(e), this.UG(d, c, e));
  39873. N.SO.Mva(e, g, h, k)
  39874. },
  39875. UG: function(c, d, e) {
  39876. this.zH(e).H1.push(c);
  39877. N.jia.UG(c, d)
  39878. },
  39879. qXa: function() {
  39880. return this.oqa
  39881. },
  39882. BO: function(c) {
  39883. this.sN[c] || (this.sN[c] = new wd)
  39884. },
  39885. zH: function(c) {
  39886. return this.sN[c]
  39887. },
  39888. clear: function() {
  39889. this.Ms = {};
  39890. this.Ns = {};
  39891. this.Ut = {};
  39892. N.jia.clear();
  39893. N.SO.clear()
  39894. }
  39895. };
  39896. N.W3 = 0;
  39897. N.$Ja = 1;
  39898. N.VJa = 2;
  39899. N.oja = 3;
  39900. N.aKa = 4;
  39901. N.pja = 5;
  39902. N.bKa = 6;
  39903. N.YJa = 7;
  39904. N.nja = 8;
  39905. N.cKa = 9;
  39906. N.WJa = 10;
  39907. N.ZJa = 11;
  39908. N.UJa = 12;
  39909. N.XJa = 13;
  39910. N.us = 0;
  39911. N.zy = 1;
  39912. N.tD = 2;
  39913. N.QJ = 3;
  39914. N.Tm = N.N.extend({
  39915. x: 0,
  39916. y: 0,
  39917. Sm: 0,
  39918. skewX: 0,
  39919. skewY: 0,
  39920. scaleX: 1,
  39921. scaleY: 1,
  39922. py: 0,
  39923. Zn: !1,
  39924. r: 255,
  39925. g: 255,
  39926. b: 255,
  39927. a: 255,
  39928. ctor: function() {
  39929. this.skewY = this.skewX = this.Sm = this.y = this.x = 0;
  39930. this.scaleY = this.scaleX = 1;
  39931. this.py = 0;
  39932. this.Zn = !1;
  39933. this.a = this.b = this.g = this.r = 255
  39934. },
  39935. copy: function(c) {
  39936. this.x = c.x;
  39937. this.y = c.y;
  39938. this.Sm = c.Sm;
  39939. this.scaleX = c.scaleX;
  39940. this.scaleY = c.scaleY;
  39941. this.skewX = c.skewX;
  39942. this.skewY = c.skewY;
  39943. this.py = c.py;
  39944. this.Zn = c.Zn;
  39945. this.r = c.r;
  39946. this.g = c.g;
  39947. this.b = c.b;
  39948. this.a = c.a
  39949. },
  39950. F: function(c) {
  39951. this.r = c.r;
  39952. this.g = c.g;
  39953. this.b = c.b;
  39954. this.a = c.a
  39955. },
  39956. $a: function() {
  39957. return f.color(this.r, this.g, this.b, this.a)
  39958. },
  39959. n3: function(c, d, e) {
  39960. this.x = d.x - c.x;
  39961. this.y = d.y - c.y;
  39962. this.scaleX = d.scaleX - c.scaleX;
  39963. this.scaleY = d.scaleY - c.scaleY;
  39964. this.skewX = d.skewX - c.skewX;
  39965. this.skewY = d.skewY - c.skewY;
  39966. this.Zn || c.Zn || d.Zn ? (this.a = d.a - c.a, this.r = d.r - c.r, this.g = d.g - c.g, this.b = d.b - c.b, this.Zn = !0) : (this.a = this.r = this.g = this.b = 0, this.Zn = !1);
  39967. e && (this.skewX > f.PI && (this.skewX -= N.yo), this.skewX < -f.PI && (this.skewX += N.yo), this.skewY > f.PI && (this.skewY -= N.yo), this.skewY < -f.PI && (this.skewY +=
  39968. N.yo));
  39969. d.py && (this.skewX += d.py * N.yo, this.skewY -= d.py * N.yo)
  39970. }
  39971. });
  39972. N.Ay = N.N.extend({
  39973. $k: N.QJ,
  39974. displayName: "",
  39975. ctor: function() {
  39976. this.$k = N.QJ
  39977. },
  39978. iQa: function(c) {
  39979. var d = c.lastIndexOf("."); - 1 != d && (c = c.substring(0, d));
  39980. return c
  39981. },
  39982. copy: function(c) {
  39983. this.displayName = c.displayName;
  39984. this.$k = c.$k
  39985. }
  39986. });
  39987. N.vq = N.Ay.extend({
  39988. skinData: null,
  39989. ctor: function() {
  39990. this.skinData = new N.Tm;
  39991. this.$k = N.us
  39992. },
  39993. copy: function(c) {
  39994. N.Ay.prototype.copy.call(this, c);
  39995. this.skinData = c.skinData
  39996. }
  39997. });
  39998. N.hD = N.Ay.extend({
  39999. displayName: "",
  40000. ctor: function() {
  40001. this.displayName = "";
  40002. this.$k = N.zy
  40003. }
  40004. });
  40005. N.mK = N.Ay.extend({
  40006. ctor: function() {
  40007. this.$k = N.tD
  40008. }
  40009. });
  40010. N.Z3 = N.Tm.extend({
  40011. VO: null,
  40012. name: "",
  40013. yI: "",
  40014. Iwa: null,
  40015. ctor: function() {
  40016. this.VO = [];
  40017. this.yI = this.name = "";
  40018. this.Iwa = null
  40019. },
  40020. j: function() {},
  40021. Uba: function(c) {
  40022. this.VO.push(c)
  40023. },
  40024. zm: function(c) {
  40025. return this.VO[c]
  40026. }
  40027. });
  40028. N.UR = N.N.extend({
  40029. aH: null,
  40030. name: "",
  40031. wB: 0.1,
  40032. ctor: function() {
  40033. this.aH = {};
  40034. this.name = "";
  40035. this.wB = 0.1
  40036. },
  40037. j: function() {
  40038. return !0
  40039. },
  40040. Oba: function(c) {
  40041. this.aH[c.name] = c
  40042. },
  40043. wSa: function() {
  40044. return this.aH
  40045. },
  40046. xx: function(c) {
  40047. return this.aH[c]
  40048. }
  40049. });
  40050. N.hv = N.Tm.extend({
  40051. duration: 0,
  40052. tweenEasing: 0,
  40053. oH: 0,
  40054. zB: null,
  40055. mj: -1,
  40056. oC: "",
  40057. event: "",
  40058. IR: "",
  40059. JR: "",
  40060. blendFunc: 0,
  40061. oj: 0,
  40062. uu: !0,
  40063. ctor: function() {
  40064. N.Tm.prototype.ctor.call(this);
  40065. this.duration = 1;
  40066. this.tweenEasing = N.eb.rj;
  40067. this.oH = 0;
  40068. this.zB = [];
  40069. this.mj = 0;
  40070. this.JR = this.IR = this.event = this.oC = "";
  40071. this.blendFunc = new f.Um(f.Mc, f.Lc);
  40072. this.oj = 0;
  40073. this.uu = !0
  40074. },
  40075. copy: function(c) {
  40076. N.Tm.prototype.copy.call(this, c);
  40077. this.duration = c.duration;
  40078. this.tweenEasing = c.tweenEasing;
  40079. this.mj = c.mj;
  40080. this.oC = c.oC;
  40081. this.event = c.event;
  40082. this.IR = c.IR;
  40083. this.JR = c.JR;
  40084. this.blendFunc = c.blendFunc;
  40085. this.uu = c.uu;
  40086. this.oH = c.oH;
  40087. this.zB = [];
  40088. if (0 != this.oH)
  40089. for (var d = 0; d < this.oH; d++) this.zB[d] = c.zB[d]
  40090. }
  40091. });
  40092. N.h6 = N.N.extend({
  40093. vm: 0,
  40094. scale: 1,
  40095. duration: 0,
  40096. qh: null,
  40097. name: "",
  40098. ctor: function() {
  40099. this.vm = 0;
  40100. this.scale = 1;
  40101. this.duration = 0;
  40102. this.qh = [];
  40103. this.name = ""
  40104. },
  40105. j: function() {
  40106. this.qh = []
  40107. },
  40108. xO: function(c) {
  40109. this.qh.push(c)
  40110. },
  40111. Cda: function(c) {
  40112. return this.qh[c]
  40113. }
  40114. });
  40115. N.i6 = N.N.extend({
  40116. l1: null,
  40117. duration: 0,
  40118. scale: 1,
  40119. nu: 0,
  40120. XO: N.eb.rj,
  40121. loop: !0,
  40122. tweenEasing: 2,
  40123. name: "",
  40124. ctor: function() {
  40125. this.name = "";
  40126. this.duration = 0;
  40127. this.scale = 1;
  40128. this.XO = this.nu = 0;
  40129. this.loop = !0;
  40130. this.tweenEasing = N.eb.rj;
  40131. this.l1 = {}
  40132. },
  40133. Wba: function(c) {
  40134. this.l1[c.name] = c
  40135. },
  40136. e0: function(c) {
  40137. return this.l1[c]
  40138. }
  40139. });
  40140. N.TR = N.N.extend({
  40141. qQ: null,
  40142. iI: null,
  40143. name: "",
  40144. ctor: function() {
  40145. this.qQ = {};
  40146. this.iI = []
  40147. },
  40148. Vba: function(c) {
  40149. this.qQ[c.name] = c;
  40150. this.iI.push(c.name)
  40151. },
  40152. Fda: function(c) {
  40153. return this.qQ[c]
  40154. },
  40155. Gda: function() {
  40156. return Object.keys(this.qQ).length
  40157. }
  40158. });
  40159. function xd(c, d) {
  40160. this.x = c || 0;
  40161. this.y = d || 0
  40162. }
  40163. N.Q4 = N.N.extend({
  40164. Vu: null,
  40165. ctor: function() {
  40166. this.Vu = []
  40167. },
  40168. j: function() {
  40169. this.Vu = [];
  40170. return !0
  40171. },
  40172. FPa: function(c) {
  40173. c = xd(c.x, c.y);
  40174. this.Vu.push(c)
  40175. }
  40176. });
  40177. N.A7 = N.N.extend({
  40178. height: 0,
  40179. width: 0,
  40180. GQ: 0,
  40181. HQ: 0,
  40182. name: "",
  40183. jx: null,
  40184. ctor: function() {
  40185. this.width = this.height = 0;
  40186. this.HQ = this.GQ = 0.5;
  40187. this.name = "";
  40188. this.jx = []
  40189. },
  40190. j: function() {
  40191. this.jx = []
  40192. },
  40193. Rba: function(c) {
  40194. this.jx.push(c)
  40195. },
  40196. iP: function(c) {
  40197. return this.jx[c]
  40198. }
  40199. });
  40200. N.RJ = N.N.extend({
  40201. at: null,
  40202. Jj: null,
  40203. iF: null,
  40204. ctor: function() {
  40205. this.iF = this.Jj = this.at = null
  40206. },
  40207. j: function() {
  40208. return !0
  40209. },
  40210. NI: function(c) {
  40211. this.at = c
  40212. },
  40213. vTa: function() {
  40214. return this.at
  40215. },
  40216. HGa: function(c) {
  40217. this.Jj = c
  40218. },
  40219. XSa: function() {
  40220. return this.Jj
  40221. },
  40222. FC: function(c) {
  40223. this.iF = c
  40224. },
  40225. zm: function() {
  40226. return this.iF
  40227. },
  40228. wh: function() {
  40229. vd(this.at);
  40230. this.at = null;
  40231. vd(this.iF);
  40232. this.iF = null;
  40233. vd(this.Jj);
  40234. this.Jj = null
  40235. }
  40236. });
  40237. N.RJ.create = function() {
  40238. var c = new N.RJ;
  40239. return c && c.j() ? c : null
  40240. };
  40241. N.Xg = N.Xg || N.N.extend({});
  40242. N.Xg.tZ = function(c, d, e) {
  40243. switch (e.$k) {
  40244. case N.us:
  40245. this.Wva(c, d, e);
  40246. break;
  40247. case N.tD:
  40248. this.Tva(c, d, e);
  40249. break;
  40250. case N.zy:
  40251. this.Iva(c, d, e)
  40252. }
  40253. };
  40254. N.Xg.jxa = function(c, d) {
  40255. switch (d.zm().$k) {
  40256. case N.us:
  40257. this.Bca(c, d);
  40258. break;
  40259. case N.tD:
  40260. this.Aca(c, d);
  40261. break;
  40262. case N.zy:
  40263. this.yca(c, d)
  40264. }
  40265. };
  40266. N.Xg.psa = {
  40267. a: 1,
  40268. b: 0,
  40269. G: 0,
  40270. P: 1,
  40271. pa: 0,
  40272. qa: 0
  40273. };
  40274. N.Xg.ZIa = function(c, d, e) {
  40275. var g = c.PB();
  40276. if (g) {
  40277. switch (c.b0()) {
  40278. case N.us:
  40279. e && g.Dia();
  40280. break;
  40281. case N.tD:
  40282. this.cJa(c, g, d);
  40283. break;
  40284. case N.zy:
  40285. this.XIa(g, d);
  40286. break;
  40287. default:
  40288. d = c.KUa(), g.rGa(d)
  40289. }
  40290. if ((N.uD || N.dv) && e && (g = c.Nd.dn, e = g.Jj)) {
  40291. d = g.at;
  40292. var h = d.se(),
  40293. g = this.psa;
  40294. g.a = h.a;
  40295. g.b = h.b;
  40296. g.G = h.G;
  40297. g.P = h.P;
  40298. g.pa = h.pa;
  40299. g.qa = h.qa;
  40300. d = d.Bp();
  40301. d = f.lv(d, g);
  40302. g.pa = d.x;
  40303. g.qa = d.y;
  40304. c = f.Vg(g, c.Qc.se());
  40305. e.bi(c)
  40306. }
  40307. }
  40308. };
  40309. N.Xg.Wva = function(c, d, e) {
  40310. var g = new N.vq;
  40311. g.copy(e);
  40312. d.FC(g);
  40313. this.Bca(c, d)
  40314. };
  40315. N.Xg.Bca = function(c, d) {
  40316. var e = null,
  40317. g = d.zm(),
  40318. e = g.displayName,
  40319. h = e.lastIndexOf("."); - 1 != h && (e = e.substring(0, h));
  40320. e = "" == e ? N.Ao.create() : N.Ao.Cca(e + ".png");
  40321. d.NI(e);
  40322. e.m2(c);
  40323. this.F0(c, d, g.displayName, e);
  40324. (h = c.Qc) && (h.wx().wB >= N.ss ? e.ms(g.skinData) : e.ms(c.xx()))
  40325. };
  40326. N.Xg.F0 = function(c, d, e, g) {
  40327. var h = e.lastIndexOf("."); - 1 != h && (e = e.substring(0, h));
  40328. (e = N.Dr.wBa(e)) && g.S(e.GQ, e.HQ);
  40329. (N.uD || N.dv) && e && 0 < e.jx.length && (c = N.JJ.create(c), c.Kva(e.jx), d.HGa(c))
  40330. };
  40331. N.Xg.Iva = function(c, d, e) {
  40332. var g = new N.hD;
  40333. g.copy(e);
  40334. d.FC(g);
  40335. this.yca(c, d)
  40336. };
  40337. N.Xg.yca = function(c, d) {
  40338. var e = N.tk.create(d.zm().displayName, c);
  40339. d.NI(e)
  40340. };
  40341. N.Xg.XIa = function(c, d) {
  40342. c && (c.kd(), c.update(d))
  40343. };
  40344. N.Xg.Tva = function(c, d, e) {
  40345. var g = new N.mK;
  40346. g.copy(e);
  40347. d.FC(g);
  40348. this.Aca(c, d)
  40349. };
  40350. N.Xg.Aca = function(c, d) {
  40351. var e = f.A.create(d.zm().displayName);
  40352. e.Yp();
  40353. e.De();
  40354. c.Qc && e.aq(c.Qc);
  40355. d.NI(e)
  40356. };
  40357. N.Xg.cJa = function(c, d, e) {
  40358. var g = new N.Tm;
  40359. N.Hj.mfa(c.du, g);
  40360. d.o(g.x, g.y);
  40361. d.jb(g.scaleX);
  40362. d.tb(g.scaleY);
  40363. d.update(e)
  40364. };
  40365. N.GS = N.N.extend({
  40366. fg: null,
  40367. dn: null,
  40368. Te: null,
  40369. Uo: -1,
  40370. fM: !1,
  40371. ld: null,
  40372. Na: !0,
  40373. IL: null,
  40374. ctor: function() {
  40375. this.fg = [];
  40376. this.Te = this.dn = null;
  40377. this.Uo = -1;
  40378. this.fM = !1;
  40379. this.ld = null;
  40380. this.Na = !0;
  40381. this.IL = N.QJ
  40382. },
  40383. j: function(c) {
  40384. this.ld = c;
  40385. this.uea(c.xx());
  40386. return !0
  40387. },
  40388. tZ: function(c, d) {
  40389. var e = null;
  40390. 0 <= d && d < this.fg.length ? e = this.fg[d] : (e = N.RJ.create(), this.fg.push(e));
  40391. var g = null;
  40392. if (c instanceof N.Ao) {
  40393. c.m2(this.ld);
  40394. g = new N.vq;
  40395. N.Xg.F0(this.ld, e, c.Lv, c);
  40396. var h = e.zm();
  40397. if (h instanceof N.vq) c.ms(h.skinData), g.skinData = h.skinData;
  40398. else
  40399. for (h = this.fg.length -
  40400. 2; 0 <= h; h--) {
  40401. var k = this.fg[h].zm();
  40402. if (k instanceof N.vq) {
  40403. c.ms(k.skinData);
  40404. g.skinData = k.skinData;
  40405. break
  40406. }
  40407. }
  40408. } else c instanceof f.A ? (g = new N.mK, c.Yp(), c.De(), (h = this.ld.Qc) && c.aq(h)) : c instanceof N.tk ? (h = c, g = new N.hD, g.displayName = h.getName(), h.Ku(this.ld)) : g = new N.Ay;
  40409. e.NI(c);
  40410. e.FC(g);
  40411. d == this.Uo && (this.Uo = -1, this.Fr(d, !1))
  40412. },
  40413. rNa: function(c, d) {
  40414. var e = null;
  40415. if (d instanceof N.Ao) {
  40416. d.m2(this.ld);
  40417. e = new N.vq;
  40418. e.displayName = d.Lv;
  40419. N.Xg.F0(this.ld, c, d.Lv, d);
  40420. var g = c.zm();
  40421. if (g instanceof N.vq) d.ms(g.skinData);
  40422. else {
  40423. for (var g = !1, h = this.fg.length - 2; 0 <= h; h--) {
  40424. var k = this.fg[h].zm();
  40425. if (k) {
  40426. g = !0;
  40427. d.ms(k.skinData);
  40428. e.skinData = k.skinData;
  40429. break
  40430. }
  40431. }
  40432. g || d.ms(new N.Tm);
  40433. d.ms(new N.Tm)
  40434. }
  40435. } else d instanceof f.A ? (e = new N.mK, e.displayName = d.jN) : d instanceof N.tk ? (e = new N.hD, e.displayName = d.getName(), d.Ku(this.ld)) : e = new N.Ay;
  40436. c.NI(d);
  40437. c.FC(e)
  40438. },
  40439. lga: function(c) {
  40440. this.fg.splice(c, 1);
  40441. c == this.Uo && this.fR(null)
  40442. },
  40443. oTa: function() {
  40444. return this.fg
  40445. },
  40446. Fr: function(c, d) {
  40447. if (c >= this.fg.length) f.log("the index value is out of range");
  40448. else if (this.fM = d, 0 > c) this.Uo =
  40449. c, this.Te && (this.Te.Yp(!0), this.fR(null), this.Te = null);
  40450. else if (this.Uo != c) {
  40451. this.Uo = c;
  40452. var e = this.fg[this.Uo];
  40453. e && this.fR(e)
  40454. }
  40455. },
  40456. oca: function(c, d) {
  40457. for (var e = 0; e < this.fg.length; e++)
  40458. if (this.fg[e].zm().displayName == c) {
  40459. this.Fr(e, d);
  40460. break
  40461. }
  40462. },
  40463. fR: function(c) {
  40464. var d = this.dn;
  40465. (N.uD || N.dv) && d && d.Jj && d.Jj.setActive(!1);
  40466. d = this.dn = c;
  40467. (N.uD || N.dv) && d && d.Jj && d.Jj.setActive(!0);
  40468. c = null == d ? null : d.at;
  40469. this.Te && (this.Te instanceof N.tk && this.ld.s2(null), this.Te.Yp(!0), this.Te = null);
  40470. (this.Te = c) ? (c instanceof N.tk ? this.ld.s2(c) :
  40471. c instanceof f.A && c.tga(), c.wb && (c.F(this.ld.ou()), c.J(this.ld.kb)), this.IL = this.dn.zm().$k) : this.IL = N.QJ
  40472. },
  40473. PB: function() {
  40474. return this.Te
  40475. },
  40476. b0: function() {
  40477. return this.IL
  40478. },
  40479. fTa: function() {
  40480. return this.Uo
  40481. },
  40482. eTa: function() {
  40483. return this.dn
  40484. },
  40485. nTa: function(c) {
  40486. return this.fg[c]
  40487. },
  40488. uea: function(c) {
  40489. this.fg = [];
  40490. if (c) {
  40491. c = c.VO;
  40492. for (var d = 0; d < c.length; d++) {
  40493. var e = c[d],
  40494. g = N.RJ.create();
  40495. g.FC(e);
  40496. N.Xg.jxa(this.ld, g);
  40497. this.fg.push(g)
  40498. }
  40499. }
  40500. },
  40501. cxa: function(c, d) {
  40502. var e = r(0, 0);
  40503. void 0 === d ? (e.x = c.x, e.y = c.y) : (e.x = c, e.y = d);
  40504. if (!this.Na || 0 > this.Uo) return !1;
  40505. var g = !1;
  40506. switch (this.dn.zm().$k) {
  40507. case N.us:
  40508. var g = r(0, 0),
  40509. h = this.dn.at,
  40510. h = h.Za(0),
  40511. g = N.Pna(h, e, g)
  40512. }
  40513. return g
  40514. },
  40515. za: function(c) {
  40516. this.Te && (this.Na = c, this.Te.za(c))
  40517. },
  40518. V0: function() {
  40519. return this.Na
  40520. },
  40521. e: function() {
  40522. return this.Te ? this.Te.e() : t(0, 0)
  40523. },
  40524. Ee: function() {
  40525. return this.Te ? this.Te.Ee() : x(0, 0, 0, 0)
  40526. },
  40527. bk: function() {
  40528. return this.Te ? this.Te.bk() : r(0, 0)
  40529. },
  40530. Bp: function() {
  40531. return this.Te ? this.Te.Bp() : r(0, 0)
  40532. },
  40533. XTa: function() {
  40534. return this.fM
  40535. },
  40536. wh: function() {
  40537. this.fg = [];
  40538. this.Te && (this.Te.Yp(!0), this.Te = null)
  40539. }
  40540. });
  40541. N.GS.create = function(c) {
  40542. var d = new N.GS;
  40543. return d && d.j(c) ? d : null
  40544. };
  40545. N.Ao = N.q.extend({
  40546. wY: null,
  40547. ij: null,
  40548. xY: null,
  40549. Lv: "",
  40550. Qc: null,
  40551. ta: "Skin",
  40552. ctor: function() {
  40553. f.q.prototype.ctor.call(this);
  40554. this.ij = this.wY = null;
  40555. this.Lv = "";
  40556. this.xY = {
  40557. a: 1,
  40558. b: 0,
  40559. G: 0,
  40560. P: 1,
  40561. pa: 0,
  40562. qa: 0
  40563. };
  40564. this.Qc = null
  40565. },
  40566. hl: function(c) {
  40567. var d = f.q.prototype.hl.call(this, c);
  40568. this.Lv = c;
  40569. return d
  40570. },
  40571. Ge: function(c) {
  40572. var d = f.q.prototype.Ge.call(this, c);
  40573. this.Lv = c;
  40574. return d
  40575. },
  40576. ms: function(c) {
  40577. this.wY = c;
  40578. this.jb(c.scaleX);
  40579. this.tb(c.scaleY);
  40580. this.M2(f.yC(c.skewX));
  40581. this.N2(f.yC(-c.skewY));
  40582. this.o(c.x, c.y);
  40583. c = this.se();
  40584. var d = this.xY;
  40585. d.a = c.a;
  40586. d.b = c.b;
  40587. d.G = c.G;
  40588. d.P = c.P;
  40589. d.pa = c.pa;
  40590. d.qa = c.qa;
  40591. this.Dia()
  40592. },
  40593. mBa: function() {
  40594. return this.wY
  40595. },
  40596. m2: function(c) {
  40597. this.ij = c
  40598. },
  40599. nda: function() {
  40600. return this.ij
  40601. },
  40602. Dia: function() {
  40603. var c = this.Pf = f.Vg(this.xY, this.ij.du),
  40604. d = this.Qc;
  40605. d && d.LB() && (this.Pf = f.Vg(c, d.se()));
  40606. f.K === f.fb && (c = this.Pf, c.b *= -1, c.G *= -1, c.b = [c.G, c.G = c.b][0])
  40607. },
  40608. Ee: function() {
  40609. var c = x(0, 0, this.m.width, this.m.height),
  40610. d = this.se();
  40611. f.K === f.fb && (d.b *= -1, d.G *= -1, d.b = [d.G, d.G = d.b][0]);
  40612. return f.Ki(c, d)
  40613. },
  40614. Sza: function() {
  40615. return this.Lv
  40616. },
  40617. il: function() {
  40618. return f.Vg(this.Pf, this.ij.Qc.il())
  40619. },
  40620. t_a: function() {
  40621. var c = this.Pf,
  40622. d = this.Qb,
  40623. d = f.lv(d, c);
  40624. c.pa = d.x;
  40625. c.qa = d.y;
  40626. return f.Vg(c, this.ij.Qc.il())
  40627. }
  40628. });
  40629. N.Ao.prototype.se = f.v.prototype.VM;
  40630. q = N.Ao.prototype;
  40631. f.d(q, "skinData", q.mBa, q.ms);
  40632. f.d(q, "displayName", q.Sza);
  40633. q = null;
  40634. N.Ao.create = function(c, d) {
  40635. var e = arguments.length,
  40636. g = new N.Ao;
  40637. if (0 === e) {
  40638. if (g.j()) return g
  40639. } else if (g && g.Ge(c, d)) return g;
  40640. return null
  40641. };
  40642. N.Ao.Cca = function(c) {
  40643. var d = new N.Ao;
  40644. return d && d.hl(c) ? d : null
  40645. };
  40646. N.wJ = -4;
  40647. N.dD = -3;
  40648. N.eD = -2;
  40649. N.J3 = -1;
  40650. N.QR = 0;
  40651. N.Sia = 1;
  40652. N.cD = 2;
  40653. N.wk = N.N.extend({
  40654. lp: 1,
  40655. $l: !0,
  40656. qt: !0,
  40657. am: !1,
  40658. Hk: 0,
  40659. yn: 0,
  40660. Ok: 0,
  40661. gO: 0,
  40662. CO: null,
  40663. dh: 0,
  40664. Pj: 0,
  40665. jh: 0,
  40666. Bz: null,
  40667. Msa: !1,
  40668. ctor: function() {
  40669. this.lp = 1;
  40670. this.qt = this.$l = !0;
  40671. this.am = !1;
  40672. this.yn = this.Pj = this.Hk = this.dh = 0;
  40673. this.Ok = N.Sia;
  40674. this.gO = N.eb.rj;
  40675. this.CO = 1 / 60;
  40676. this.Pj = this.Bz = 0;
  40677. this.Msa = !1
  40678. },
  40679. pause: function() {
  40680. this.qt = !0;
  40681. this.am = !1
  40682. },
  40683. lk: function() {
  40684. this.qt = !1;
  40685. this.am = !0
  40686. },
  40687. stop: function() {
  40688. this.$l = !0;
  40689. this.am = !1
  40690. },
  40691. play: function(c, d) {
  40692. this.qt = this.$l = !1;
  40693. this.am = !0;
  40694. this.dh = 0;
  40695. this.jh = c;
  40696. this.gO = d
  40697. },
  40698. update: function(c) {
  40699. if (this.$l || this.qt || 0 >=
  40700. this.yn) return !1;
  40701. var d = this.jh,
  40702. e = this.dh;
  40703. 0 >= d ? (this.Hk = 1, e = 0) : (e += c / this.CO * this.lp, this.Hk = e / d, e = N.EB(e, d));
  40704. this.dh = e;
  40705. this.B3();
  40706. return !0
  40707. },
  40708. B3: function() {},
  40709. jea: function(c) {
  40710. var d = this.Ok;
  40711. d == N.dD ? d = N.cD : d == N.eD && (d = N.QR);
  40712. this.Ok = d;
  40713. this.Bz = c;
  40714. this.jh = this.Pj
  40715. },
  40716. Lza: function() {
  40717. return this.Bz = (this.yn - 1) * this.Hk
  40718. },
  40719. aDa: function() {
  40720. return this.qt
  40721. },
  40722. UCa: function() {
  40723. return this.$l
  40724. },
  40725. Mza: function() {
  40726. return this.Hk
  40727. },
  40728. aBa: function() {
  40729. return this.yn
  40730. },
  40731. Eda: function() {
  40732. return this.Ok
  40733. },
  40734. GBa: function() {
  40735. return this.gO
  40736. },
  40737. bSa: function() {
  40738. return this.CO
  40739. },
  40740. t2a: function(c) {
  40741. this.CO = c
  40742. },
  40743. uVa: function() {
  40744. return this.lp
  40745. },
  40746. qR: function(c) {
  40747. this.lp = c
  40748. },
  40749. Lea: function() {
  40750. return this.am
  40751. }
  40752. });
  40753. q = N.wk.prototype;
  40754. f.d(q, "currentFrameIndex", q.Lza);
  40755. f.d(q, "paused", q.aDa);
  40756. f.d(q, "completed", q.UCa);
  40757. f.d(q, "currentPercent", q.Mza);
  40758. f.d(q, "rawDuration", q.aBa);
  40759. f.d(q, "loop", q.Eda);
  40760. f.d(q, "tweenEasing", q.GBa);
  40761. f.d(q, "playing", q.Lea);
  40762. q = null;
  40763. N.gK = {
  40764. start: 0,
  40765. complete: 1,
  40766. PDa: 2
  40767. };
  40768. N.O3 = N.N.extend({
  40769. E8: null,
  40770. Rs: null,
  40771. jm: null,
  40772. ctor: function(c, d, e) {
  40773. this.Mh = e;
  40774. this.Rs = d;
  40775. this.jm = c
  40776. },
  40777. call: function() {
  40778. this.Rs && this.Rs.apply(this.jm, this.E8)
  40779. },
  40780. Ega: function(c) {
  40781. this.E8 = c
  40782. }
  40783. });
  40784. function yd() {
  40785. this.armature = null;
  40786. this.qfa = this.rfa = ""
  40787. }
  40788. function zd() {
  40789. this.ij = null;
  40790. this.kda = "";
  40791. this.currentFrameIndex = this.Cfa = 0
  40792. }
  40793. N.yJ = N.wk.extend({
  40794. gu: null,
  40795. cr: null,
  40796. Qc: null,
  40797. gw: "",
  40798. Jta: 0,
  40799. rp: 0,
  40800. fj: null,
  40801. Sz: null,
  40802. qA: null,
  40803. Ot: 1,
  40804. Lr: !1,
  40805. gW: null,
  40806. eX: null,
  40807. userObject: null,
  40808. er: null,
  40809. lw: !1,
  40810. SM: !1,
  40811. ap: 0,
  40812. ctor: function() {
  40813. N.wk.prototype.ctor.call(this);
  40814. this.cr = this.gu = null;
  40815. this.gw = "";
  40816. this.Qc = null;
  40817. this.rp = this.Jta = 0;
  40818. this.fj = [];
  40819. this.qA = this.Sz = null;
  40820. this.Ot = 1;
  40821. this.Lr = !1;
  40822. this.gW = [];
  40823. this.eX = [];
  40824. this.userObject = null;
  40825. this.er = [];
  40826. this.SM = this.lw = !1;
  40827. this.ap = 0
  40828. },
  40829. j: function(c) {
  40830. this.Qc = c;
  40831. this.fj = [];
  40832. return !0
  40833. },
  40834. pause: function() {
  40835. for (var c = 0; c < this.fj.length; c++) this.fj[c].pause();
  40836. N.wk.prototype.pause.call(this)
  40837. },
  40838. lk: function() {
  40839. for (var c = 0; c < this.fj.length; c++) this.fj[c].lk();
  40840. N.wk.prototype.lk.call(this)
  40841. },
  40842. stop: function() {
  40843. for (var c = 0; c < this.fj.length; c++) this.fj[c].stop();
  40844. this.fj = [];
  40845. N.wk.prototype.stop.call(this)
  40846. },
  40847. Rha: function(c) {
  40848. if (c != this.Ot) {
  40849. this.Ot = c;
  40850. this.lp = this.cr ? this.Ot * this.cr.scale : this.Ot;
  40851. c = this.Qc.Jh;
  40852. for (var d in c) {
  40853. var e = c[d];
  40854. e.bu.qR(this.lp);
  40855. e.Ul && e.Ul.cl().qR(this.lp)
  40856. }
  40857. }
  40858. },
  40859. pBa: function() {
  40860. return this.Ot
  40861. },
  40862. wza: function() {
  40863. return this.Ot
  40864. },
  40865. vGa: function(c) {
  40866. return this.Rha(c)
  40867. },
  40868. play: function(c, d, e) {
  40869. if (null == this.gu) f.log("this.animationData can not be null");
  40870. else if (this.cr = this.gu.Fda(c), null == this.cr) f.log("this._movementData can not be null");
  40871. else {
  40872. void 0 === d && (d = -1);
  40873. void 0 === e && (e = -1);
  40874. var g = this.cr;
  40875. this.yn = g.duration;
  40876. this.gw = c;
  40877. this.lp = this.Ot * g.scale;
  40878. d = -1 == d ? g.nu : d;
  40879. c = g.XO;
  40880. c = 0 == c ? this.yn : c;
  40881. var h = g.tweenEasing;
  40882. e = 0 > e ? g.loop : Boolean(e);
  40883. this.lw = !1;
  40884. N.wk.prototype.play.call(this, d, h);
  40885. 0 == this.yn ? this.Ok = N.wJ : (this.Ok = e ? N.eD : N.dD, this.Pj = c);
  40886. this.fj = [];
  40887. var k, m = this.Qc.Jh,
  40888. n;
  40889. for (n in m) {
  40890. var p =
  40891. m[n];
  40892. k = g.e0(p.getName());
  40893. var s = p.bu;
  40894. k && 0 < k.qh.length ? (this.fj.push(s), k.duration = g.duration, s.play(k, d, c, e, h), s.qR(this.lp), p.Ul && p.Ul.cl().qR(this.lp)) : p.FP || (p.Nd.Fr(-1, !1), s.stop())
  40895. }
  40896. this.Qc.update(0)
  40897. }
  40898. },
  40899. q0a: function(c, d, e) {
  40900. this.er = [];
  40901. this.SM = e;
  40902. this.lw = !0;
  40903. for (e = this.ap = 0; e < c.length; e++) this.er.push({
  40904. name: c[e],
  40905. nu: d
  40906. });
  40907. this.C3()
  40908. },
  40909. C3: function() {
  40910. if (this.lw) {
  40911. if (this.SM) {
  40912. var c = this.er[this.ap];
  40913. this.play(c.name, c.nu, -1, 0);
  40914. this.ap++;
  40915. this.ap >= this.er.length && (this.ap = 0)
  40916. } else this.ap < this.er.length ? (c = this.er[this.ap],
  40917. this.play(c.name, c.nu, -1, 0), this.ap++) : this.lw = !1;
  40918. this.lw = !0
  40919. }
  40920. },
  40921. xP: function(c) {
  40922. if (!this.cr || 0 > c || c >= this.cr.duration) f.log("Please ensure you have played a movement, and the frameIndex is in the range.");
  40923. else {
  40924. var d = this.Lr;
  40925. this.am = this.Lr = !0;
  40926. this.$l = this.qt = !1;
  40927. N.wk.prototype.jea.call(this, c);
  40928. this.Hk = this.Bz / (this.cr.duration - 1);
  40929. this.dh = this.jh * this.Hk;
  40930. for (var e = 0; e < this.fj.length; e++) this.fj[e].xP(c);
  40931. this.Qc.update(0);
  40932. this.Lr = d
  40933. }
  40934. },
  40935. VBa: function(c) {
  40936. this.xP(c);
  40937. this.pause()
  40938. },
  40939. cFa: function(c, d, e, g) {
  40940. "undefined" ==
  40941. typeof d && (d = -1);
  40942. "undefined" == typeof g && (g = -1);
  40943. e = this.gu.iI; - 1 > c || c >= e.length || this.play(e[c], d, g, 0)
  40944. },
  40945. o0a: function(c, d, e, g, h) {
  40946. f.log("playByIndex is deprecated. Use playWithIndex instead.");
  40947. this.cFa(c, d, e, g, h)
  40948. },
  40949. p0a: function(c, d, e) {
  40950. this.er = [];
  40951. this.SM = e;
  40952. this.lw = !0;
  40953. this.ap = 0;
  40954. e = this.gu.iI;
  40955. for (var g = 0; g < c.length; g++) this.er.push({
  40956. name: e[c[g]],
  40957. nu: d
  40958. });
  40959. this.C3()
  40960. },
  40961. Gda: function() {
  40962. return this.gu.Gda()
  40963. },
  40964. update: function(c) {
  40965. if (N.wk.prototype.update.call(this, c))
  40966. for (var d = 0; d < this.fj.length; d++) this.fj[d].update(c);
  40967. for (c = this.gW; 0 < c.length;) d = c.shift(), this.Lr = !0, this.Owa([d.ij, d.kda, d.Cfa, d.currentFrameIndex]), this.Lr = !1;
  40968. for (c = this.eX; 0 < c.length;) d = c.shift(), this.Pwa([d.armature, d.rfa, d.qfa])
  40969. },
  40970. B3: function() {
  40971. var c = this.Hk;
  40972. if (1 <= c) {
  40973. switch (this.Ok) {
  40974. case N.dD:
  40975. if (this.Ok = N.cD, this.dh = (c - 1) * this.jh, c = this.dh / this.Pj, 1 > c) {
  40976. this.jh = this.Pj;
  40977. this.sQ(this.Qc, N.gK.start, this.gw);
  40978. break
  40979. }
  40980. case N.cD:
  40981. case N.wJ:
  40982. c = 1;
  40983. this.$l = !0;
  40984. this.am = !1;
  40985. this.sQ(this.Qc, N.gK.complete, this.gw);
  40986. this.C3();
  40987. break;
  40988. case N.eD:
  40989. this.Ok = N.QR;
  40990. c = N.EB(c, 1);
  40991. this.dh = 0 == this.jh ? 0 : N.EB(this.dh, this.jh);
  40992. this.jh = 0 < this.Pj ? this.Pj : 1;
  40993. this.sQ(this, N.gK.start, this.gw);
  40994. break;
  40995. default:
  40996. this.dh = N.EB(this.dh, this.jh), this.rp = 0, this.sQ(this.Qc, N.gK.PDa, this.gw)
  40997. }
  40998. this.Hk = c
  40999. }
  41000. },
  41001. hTa: function() {
  41002. return this.$l ? "" : this.gw
  41003. },
  41004. jHa: function(c, d) {
  41005. this.qA = new N.O3(d, c)
  41006. },
  41007. Pwa: function(c) {
  41008. this.qA && (this.qA.Ega(c), this.qA.call())
  41009. },
  41010. j3a: function(c, d) {
  41011. this.Sz = new N.O3(d, c)
  41012. },
  41013. Owa: function(c) {
  41014. this.Sz && (this.Sz.Ega(c), this.Sz.call())
  41015. },
  41016. sQ: function(c, d, e) {
  41017. if (this.qA) {
  41018. var g = new yd;
  41019. g.armature = c;
  41020. g.rfa = d;
  41021. g.qfa = e;
  41022. this.eX.push(g)
  41023. }
  41024. },
  41025. oza: function(c, d, e, g) {
  41026. if (this.Sz) {
  41027. var h = new zd;
  41028. h.ij = c;
  41029. h.kda = d;
  41030. h.Cfa = e;
  41031. h.currentFrameIndex = g;
  41032. this.gW.push(h)
  41033. }
  41034. },
  41035. Bga: function(c) {
  41036. this.gu = c
  41037. },
  41038. mda: function() {
  41039. return this.gu
  41040. },
  41041. WHa: function(c) {
  41042. this.userObject = c
  41043. },
  41044. JBa: function() {
  41045. return this.userObject
  41046. },
  41047. FXa: function() {
  41048. return this.Lr
  41049. },
  41050. s3a: function(c) {
  41051. this.Lr = c
  41052. }
  41053. });
  41054. q = N.yJ.prototype;
  41055. f.d(q, "speedScale", q.pBa, q.Rha);
  41056. f.d(q, "animationScale", q.wza, q.vGa);
  41057. q = null;
  41058. N.yJ.create = function(c) {
  41059. var d = new N.yJ;
  41060. return d && d.j(c) ? d : null
  41061. };
  41062. N.nU = N.wk.extend({
  41063. Id: null,
  41064. Nf: null,
  41065. Tc: null,
  41066. Dq: null,
  41067. Wi: null,
  41068. ld: null,
  41069. Tz: 0,
  41070. Cv: 0,
  41071. Ow: 0,
  41072. rp: 0,
  41073. Tq: 0,
  41074. wd: null,
  41075. zA: !1,
  41076. ctor: function() {
  41077. N.wk.prototype.ctor.call(this);
  41078. this.Wi = this.ld = this.Dq = this.Tc = this.Nf = this.Id = null;
  41079. this.Tz = N.eb.rj;
  41080. this.Tq = this.rp = 0;
  41081. this.wd = null;
  41082. this.zA = !1
  41083. },
  41084. j: function(c) {
  41085. this.Tc = new N.hv;
  41086. this.Dq = new N.hv;
  41087. this.ld = c;
  41088. this.Id = this.ld.Id;
  41089. this.Id.mj = -1;
  41090. if (c = c.Qc) this.wd = c.cl();
  41091. return !0
  41092. },
  41093. play: function(c, d, e, g, h) {
  41094. N.wk.prototype.play.call(this, d, h);
  41095. this.Ok = g ? N.eD : N.dD;
  41096. this.Tq = this.rp = this.Cv = this.Ow =
  41097. 0;
  41098. h = c != this.Wi;
  41099. this.Wi = c;
  41100. this.yn = this.Wi.duration;
  41101. c = this.Wi.Cda(0);
  41102. this.Id.mj = c.mj;
  41103. this.ld.Qc.wx().wB >= N.ss && (N.Hj.XDa(this.Id, this.ld.xx()), this.Id.scaleX += 1, this.Id.scaleY += 1);
  41104. 0 == this.yn || 1 == this.Wi.qh.length ? (this.Ok = N.wJ, 0 == d ? this.Fu(c, c) : this.Fu(this.Id, c), this.Tz = N.eb.rj) : 1 < this.Wi.qh.length && (this.Pj = e * this.Wi.scale, g && 0 != this.Wi.vm ? this.Fu(this.Id, this.w3(this.Eia(1 - this.Wi.vm), this.Dq)) : h && 0 != d ? this.Fu(this.Id, c) : this.Fu(c, c));
  41105. this.w3(0)
  41106. },
  41107. xP: function(c) {
  41108. N.wk.prototype.jea.call(this, c);
  41109. this.Tq =
  41110. this.rp = this.Cv = this.Ow = 0;
  41111. this.am = !0;
  41112. this.$l = this.qt = !1;
  41113. this.Hk = this.Bz / (this.yn - 1);
  41114. this.dh = this.jh * this.Hk
  41115. },
  41116. VBa: function(c) {
  41117. this.xP(c);
  41118. this.pause()
  41119. },
  41120. B3: function() {
  41121. var c = this.Hk,
  41122. d = this.Ok;
  41123. if (1 <= c) switch (d) {
  41124. case N.wJ:
  41125. c = 1;
  41126. this.$l = !0;
  41127. this.am = !1;
  41128. break;
  41129. case N.dD:
  41130. d = N.cD;
  41131. c = 0 >= this.Pj ? 1 : (c - 1) * this.jh / this.Pj;
  41132. 1 <= c ? (c = 1, this.$l = !0, this.am = !1) : (this.jh = this.Pj, this.dh = c * this.jh, this.Tq = this.rp = this.Cv = this.Ow = 0);
  41133. break;
  41134. case N.eD:
  41135. d = N.QR;
  41136. this.jh = 0 < this.Pj ? this.Pj : 1;
  41137. 0 != this.Wi.vm ? (this.dh = (1 - this.Wi.vm) * this.jh,
  41138. c = this.dh / this.jh) : this.dh = c = 0;
  41139. this.Tq = this.rp = this.Cv = this.Ow = 0;
  41140. break;
  41141. case N.cD:
  41142. c = 1;
  41143. this.$l = !0;
  41144. this.am = !1;
  41145. break;
  41146. default:
  41147. this.dh = N.EB(this.dh, this.jh), this.Cv = this.Ow = 0
  41148. }
  41149. 1 > c && d < N.J3 && (c = Math.sin(c * f.PI / 2));
  41150. this.Hk = c;
  41151. this.Ok = d;
  41152. d > N.J3 && (c = this.Eia(c));
  41153. this.Tz != N.eb.zia && this.w3(c)
  41154. },
  41155. Fu: function(c, d, e) {
  41156. "undefined" == typeof e && (e = !0);
  41157. 0 > c.mj && 0 <= d.mj ? (this.Tc.copy(d), this.Dq.n3(d, d, e)) : 0 > d.mj && 0 <= c.mj ? (this.Tc.copy(c), this.Dq.n3(d, d, e)) : (this.Tc.copy(c), this.Dq.n3(c, d, e));
  41158. c.uu || (this.Id.copy(c), this.Id.uu = !0);
  41159. this.pwa(c)
  41160. },
  41161. pwa: function(c) {
  41162. if (c) {
  41163. var d = this.ld,
  41164. e = c.mj,
  41165. g = d.Nd;
  41166. g.fM || (g.Fr(e, !1), (e = g.PB()) && e.ce(c.blendFunc));
  41167. this.Id.Sm = c.Sm;
  41168. d.jJa();
  41169. (d = d.Ul) && "" != c.oC && d.cl().play(c.oC)
  41170. }
  41171. },
  41172. w3: function(c, d) {
  41173. d || (d = this.Id);
  41174. var e = this.Tc,
  41175. g = this.Dq;
  41176. e.uu || (c = 0);
  41177. d.x = e.x + c * g.x;
  41178. d.y = e.y + c * g.y;
  41179. d.scaleX = e.scaleX + c * g.scaleX;
  41180. d.scaleY = e.scaleY + c * g.scaleY;
  41181. d.skewX = e.skewX + c * g.skewX;
  41182. d.skewY = e.skewY + c * g.skewY;
  41183. this.ld.SHa(!0);
  41184. d && g.Zn && this.MIa(c, d);
  41185. return d
  41186. },
  41187. MIa: function(c, d) {
  41188. var e = this.Tc,
  41189. g = this.Dq;
  41190. d.a = e.a + c * g.a;
  41191. d.r = e.r + c *
  41192. g.r;
  41193. d.g = e.g + c * g.g;
  41194. d.b = e.b + c * g.b;
  41195. this.ld.oo()
  41196. },
  41197. Eia: function(c) {
  41198. 1 < c && 0 != this.Wi.vm && (c = N.EB(c, 1));
  41199. var d = (this.yn - 1) * c,
  41200. e, g, h = this.Ow,
  41201. k = this.Cv,
  41202. m = this.rp;
  41203. if (d < h || d >= h + k) {
  41204. var k = this.Wi.qh.length,
  41205. n = this.Wi.qh;
  41206. if (d < n[0].oj) return e = g = n[0], this.Fu(e, g), c;
  41207. if (d >= n[k - 1].oj) {
  41208. if (this.zA) return e = g = n[k - 1], this.Fu(e, g), c;
  41209. this.zA = !0
  41210. } else this.zA = !1;
  41211. do
  41212. if (this.Tq = m, e = n[this.Tq], h = e.oj, m = this.Tq + 1, m >= k && (m = 0), g = n[m], e.event && !this.wd.Lr && this.wd.oza(this.ld, e.event, e.oj, d), d == e.oj || this.zA && this.Tq == k - 1) break;
  41213. while (d <
  41214. e.oj || d >= g.oj);
  41215. k = g.oj - e.oj;
  41216. this.Tz = e.tweenEasing;
  41217. this.Fu(e, g, !1);
  41218. this.Ow = h;
  41219. this.Cv = k;
  41220. this.rp = m
  41221. }
  41222. c = 0 == k ? 0 : (d - h) / k;
  41223. d = this.Tz != N.eb.rj ? this.Tz : this.gO;
  41224. d == N.eb.zia || d == N.eb.rj || this.zA || (c = N.nc.NIa(c, d, this.Tc.zB));
  41225. return c
  41226. },
  41227. Xx: function(c) {
  41228. this.wd = c
  41229. },
  41230. cl: function() {
  41231. return this.wd
  41232. },
  41233. wh: function() {
  41234. this.Dq = this.Tc = null
  41235. }
  41236. });
  41237. N.nU.create = function(c) {
  41238. var d = new N.nU;
  41239. return d && d.j(c) ? d : null
  41240. };
  41241. N.nMa = 32;
  41242. N.N4 = N.N.extend({
  41243. X8: 0,
  41244. v$: 0,
  41245. ctor: function(c, d) {
  41246. this.X8 = c || 0;
  41247. this.v$ = d || 0
  41248. },
  41249. Iia: function(c) {
  41250. c.sQa = this.X8;
  41251. c.group = this.v$
  41252. }
  41253. });
  41254. N.Qka = N.N.extend({
  41255. shape: null,
  41256. n_: null,
  41257. colliderFilter: null,
  41258. PE: null,
  41259. ctor: function(c) {
  41260. this.shape = null;
  41261. this.n_ = c;
  41262. this.colliderFilter = new N.N4;
  41263. N.dv && (this.PE = [])
  41264. },
  41265. iP: function() {
  41266. return this.n_
  41267. },
  41268. R2a: function(c) {
  41269. this.n_ = c
  41270. },
  41271. PVa: function() {
  41272. return this.shape
  41273. },
  41274. KHa: function(c) {
  41275. this.shape = c
  41276. },
  41277. zx: function() {
  41278. return this.colliderFilter
  41279. },
  41280. js: function(c) {
  41281. this.colliderFilter = c
  41282. },
  41283. ISa: function() {
  41284. return this.PE
  41285. }
  41286. });
  41287. N.JJ = N.N.extend({
  41288. hi: null,
  41289. ld: null,
  41290. ei: null,
  41291. ah: !1,
  41292. bM: null,
  41293. ctor: function() {
  41294. this.hi = [];
  41295. this.ei = this.ld = null;
  41296. this.ah = !1;
  41297. this.bM = null
  41298. },
  41299. j: function(c) {
  41300. this.hi = [];
  41301. c && (this.ld = c);
  41302. this.bM = new N.N4;
  41303. return !0
  41304. },
  41305. Rba: function(c) {
  41306. var d = new N.Qka(c);
  41307. this.hi.push(d);
  41308. if (N.dv) {
  41309. d = d.PE;
  41310. c = c.Vu;
  41311. for (var e = 0; e < c.length; e++) d.push(new xd(0, 0))
  41312. }
  41313. },
  41314. Kva: function(c) {
  41315. for (var d = 0; d < c.length; d++) this.Rba(c[d])
  41316. },
  41317. l1a: function(c) {
  41318. for (var d = this.hi, e = 0; e < d.length; e++)
  41319. if (d[e].iP() == c) {
  41320. d.splice(e, 1);
  41321. break
  41322. }
  41323. },
  41324. kk: function() {
  41325. this.hi = []
  41326. },
  41327. js: function(c) {
  41328. this.bM =
  41329. c;
  41330. for (var d = 0; d < this.hi.length; d++) {
  41331. var e = this.hi[d];
  41332. e.js(c);
  41333. N.uD && e.shape && e.zx().Iia(e.shape)
  41334. }
  41335. },
  41336. zx: function() {
  41337. return this.bM
  41338. },
  41339. setActive: function(c) {
  41340. if (this.ah != c) {
  41341. this.ah = c;
  41342. c = this.ei;
  41343. var d;
  41344. if (c)
  41345. if (d = null, this.ah)
  41346. for (var e = 0; e < this.hi.length; e++) d = this.hi[e], d = d.shape, c.h3.Uva(d);
  41347. else
  41348. for (e = 0; e < this.hi.length; e++) d = this.hi[e], d = d.shape, c.h3.u1a(d)
  41349. }
  41350. },
  41351. vza: function() {
  41352. return this.ah
  41353. },
  41354. Z_: function() {
  41355. return this.hi
  41356. },
  41357. bCa: r(0, 0),
  41358. bi: function(c) {
  41359. if (this.ah)
  41360. for (var d = null, e = this.ei, g = this.bCa, h = 0; h < this.hi.length; h++) {
  41361. var d =
  41362. this.hi[h],
  41363. k = d.iP(),
  41364. m = null;
  41365. e && (m = d.shape);
  41366. for (var k = k.Vu, n = d.PE, d = 0; d < k.length; d++)
  41367. if (g.x = k[d].x, g.y = k[d].y, g = f.lv(g, c), m && (m.zg[2 * d] = g.x, m.zg[2 * d + 1] = g.y), N.dv) {
  41368. var p = r(0, 0);
  41369. p.x = g.x;
  41370. p.y = g.y;
  41371. n[d] = p
  41372. }
  41373. if (m)
  41374. for (d = 0; d < k.length; d++) n = cp.ga.normalize(cp.ga.m0a(cp.ga.sub(m.zg[(d + 1) % m.zg.length], m.zg[d]))), m.Awa[d].Xr = n, m.Awa[d].P = cp.ga.aRa(n, m.zg[d])
  41375. }
  41376. },
  41377. W_: function() {
  41378. return this.ei
  41379. },
  41380. cR: function(c) {
  41381. this.ei = c;
  41382. for (var d = 0; d < this.hi.length; d++) {
  41383. c = this.hi[d];
  41384. for (var e = [], g = c.iP().Vu, d = 0; d < g.length; d++) {
  41385. var h = g[d];
  41386. e.push(h.x);
  41387. e.push(h.y)
  41388. }
  41389. e = new cp.qMa(this.ei, e, cp.U5a);
  41390. e.o2a = !0;
  41391. e.data = this.ld;
  41392. this.ah && this.ei.h3.Uva(e);
  41393. c.KHa(e);
  41394. c.zx().Iia(e)
  41395. }
  41396. }
  41397. });
  41398. q = N.JJ.prototype;
  41399. f.d(q, "colliderFilter", q.zx, q.js);
  41400. f.d(q, "active", q.vza, q.setActive);
  41401. f.d(q, "body", q.W_, q.cR);
  41402. q = null;
  41403. N.JJ.create = function(c) {
  41404. var d = new N.JJ;
  41405. return d && d.j(c) ? d : null
  41406. };
  41407. N.tk = N.ja.extend({
  41408. wd: null,
  41409. hu: null,
  41410. batchNode: null,
  41411. name: "",
  41412. lva: null,
  41413. gN: null,
  41414. Jh: null,
  41415. Xt: null,
  41416. kqa: null,
  41417. dp: null,
  41418. version: 0,
  41419. az: !0,
  41420. ei: null,
  41421. VN: null,
  41422. B: null,
  41423. ta: "Armature",
  41424. ctor: function(c, d) {
  41425. f.ja.prototype.ctor.call(this);
  41426. this.batchNode = this.hu = this.wd = null;
  41427. this.name = "";
  41428. this.Xt = this.Jh = this.gN = this.lva = null;
  41429. this.kqa = {};
  41430. this.dp = r(0, 0);
  41431. this.version = 0;
  41432. this.az = !0;
  41433. this.B = this.VN = this.ei = null;
  41434. d && N.tk.prototype.j.call(this, c, d)
  41435. },
  41436. j: function(c, d) {
  41437. f.ja.prototype.j.call(this);
  41438. d && (this.gN = d);
  41439. this.Cf();
  41440. this.wd = new N.yJ;
  41441. this.wd.j(this);
  41442. this.Jh = {};
  41443. this.Xt = [];
  41444. this.VN = {};
  41445. this.B = {
  41446. src: f.Mc,
  41447. ha: f.Lc
  41448. };
  41449. this.name = c ? c : "";
  41450. var e = N.Dr;
  41451. if ("" != c) {
  41452. var g = e.mda(c);
  41453. if (!g) return f.log("AnimationData not exist! "), !1;
  41454. this.wd.Bga(g);
  41455. this.hu = e = e.wx(c);
  41456. var e = e.aH,
  41457. h;
  41458. for (h in e) {
  41459. var e = this.zca(String(h)),
  41460. k = g.Fda(g.iI[0]);
  41461. k && (k = k.e0(e.getName())) && !(0 >= k.qh.length) && (k = k.Cda(0)) && (e.Id.copy(k), e.Fr(k.mj, !1))
  41462. }
  41463. this.update(0);
  41464. this.bJa()
  41465. } else this.name = "new_armature", this.hu = new N.UR, this.hu.name = this.name, g = new N.TR, g.name = this.name, e.rZ(this.name, this.hu), e.qZ(this.name,
  41466. g), this.wd.Bga(g);
  41467. f.K === f.na && this.WI(f.xg.be(f.uK));
  41468. this.Hu(!0);
  41469. this.Gu(!0);
  41470. return !0
  41471. },
  41472. ba: function() {
  41473. f.ja.prototype.ba.call(this);
  41474. this.ds()
  41475. },
  41476. Ra: function() {
  41477. f.ja.prototype.Ra.call(this);
  41478. this.UC()
  41479. },
  41480. zca: function(c) {
  41481. var d = this.nda(c);
  41482. if (d) return d;
  41483. var d = this.hu.xx(c),
  41484. e = d.yI,
  41485. g = null;
  41486. "" != e ? (this.zca(e), g = N.rs.create(c), this.Nba(g, e)) : (g = N.rs.create(c), this.Nba(g, ""));
  41487. g.Gga(d);
  41488. g.Nd.Fr(-1, !1);
  41489. return g
  41490. },
  41491. Nba: function(c, d) {
  41492. if (c)
  41493. if (this.Jh[c.getName()]) f.log("bone already added. It can't be added again");
  41494. else {
  41495. if (d) {
  41496. var e =
  41497. this.Jh[d];
  41498. e ? e.Pba(c) : this.Xt.push(c)
  41499. } else this.Xt.push(c);
  41500. c.WQ(this);
  41501. this.Jh[c.getName()] = c;
  41502. this.n(c)
  41503. } else f.log("Argument must be non-nil")
  41504. },
  41505. i1a: function(c, d) {
  41506. c ? (c.WQ(null), c.Yp(d), f.Ld(this.Xt, c), delete this.Jh[c.getName()], this.removeChild(c, !0)) : f.log("bone must be added to the bone dictionary!")
  41507. },
  41508. nda: function(c) {
  41509. return this.Jh[c]
  41510. },
  41511. gQa: function(c, d) {
  41512. if (c) {
  41513. var e = c.oP();
  41514. e && (f.Ld(e.Ek, c), c.Ku(null));
  41515. d && ((e = this.Jh[d]) ? (e.Pba(c), f.Ld(this.Xt, c)) : this.Xt.push(c))
  41516. } else f.log("bone must be added to the bone dictionary!")
  41517. },
  41518. xSa: function() {
  41519. return this.Jh
  41520. },
  41521. bJa: function() {
  41522. var c = this.SZ();
  41523. this.Ga(c);
  41524. var d = this.dp;
  41525. d.x = -c.x;
  41526. d.y = -c.y;
  41527. 0 != c.width && 0 != c.height && this.S(d.x / c.width, d.y / c.height)
  41528. },
  41529. update: function(c) {
  41530. this.wd.update(c);
  41531. for (var d = this.Xt, e = 0; e < d.length; e++) d[e].update(c);
  41532. this.az = !1
  41533. },
  41534. se: null,
  41535. VM: function() {
  41536. if (this.Wk) {
  41537. this.az = !0;
  41538. var c = this.oa.x,
  41539. d = this.oa.y,
  41540. e = this.Qb.x,
  41541. g = -e,
  41542. h = this.Qb.y,
  41543. k = -h,
  41544. m = this.ka,
  41545. n = this.ra;
  41546. this.mn && (c += e, d += h);
  41547. var p = 1,
  41548. s = 0,
  41549. u = 1,
  41550. v = 0;
  41551. if (0 !== this.bj || 0 !== this.hm) p = Math.cos(-this.Cn), s = Math.sin(-this.Cn),
  41552. u = Math.cos(-this.Aw), v = Math.sin(-this.Aw);
  41553. var c = c + (u * this.dp.x * this.ka + -s * this.dp.y * this.ra),
  41554. d = d + (v * this.dp.x * this.ka + p * this.dp.y * this.ra),
  41555. z = this.og || this.pg;
  41556. z || 0 === e && 0 === h || (c += u * g * m + -s * k * n, d += v * g * m + p * k * n);
  41557. c = {
  41558. a: u * m,
  41559. b: v * m,
  41560. G: -s * n,
  41561. P: p * n,
  41562. pa: c,
  41563. qa: d
  41564. };
  41565. z && (c = f.Vg({
  41566. a: 1,
  41567. b: Math.tan(f.sg(this.pg)),
  41568. G: Math.tan(f.sg(this.og)),
  41569. P: 1,
  41570. pa: 0,
  41571. qa: 0
  41572. }, c), 0 !== e || 0 !== h) && (c = f.xJ(c, g, k));
  41573. this.Aq && (c = f.Vg(c, this.Zy), this.Aq = !1);
  41574. this.Pf = c;
  41575. this.Wk = !1
  41576. }
  41577. return this.Pf
  41578. },
  41579. cta: function() {
  41580. this.Pf || (this.Pf = {
  41581. a: 1,
  41582. b: 0,
  41583. G: 0,
  41584. P: 1,
  41585. pa: 0,
  41586. qa: 0
  41587. });
  41588. if (this.Wk) {
  41589. this.az = !0;
  41590. var c = this.Pf;
  41591. c.pa = this.oa.x;
  41592. c.qa = this.oa.y;
  41593. var d = 1,
  41594. e = 0;
  41595. this.bj && (d = Math.cos(-this.Cn), e = Math.sin(-this.Cn));
  41596. c.a = c.P = d;
  41597. c.G = -e;
  41598. c.b = e;
  41599. var g = this.ka,
  41600. h = this.ra,
  41601. k = this.Qb.x,
  41602. m = this.Qb.y,
  41603. n = 1E-6 > g && -1E-6 < g ? 1E-6 : g,
  41604. p = 1E-6 > h && -1E-6 < h ? 1E-6 : h;
  41605. c.pa += d * this.dp.x * g + -e * this.dp.y * h;
  41606. c.qa += e * this.dp.x * g + d * this.dp.y * h;
  41607. if (this.og || this.pg) {
  41608. var s = Math.tan(-this.og * Math.PI / 180),
  41609. u = Math.tan(-this.pg * Math.PI / 180),
  41610. v = m * s * n,
  41611. z = k * u * p;
  41612. c.a = d + -e * u;
  41613. c.G = d * s + -e;
  41614. c.b = e + d * u;
  41615. c.P = e * s + d;
  41616. c.pa += d * v + -e * z;
  41617. c.qa += e * v + d * z
  41618. }
  41619. if (1 !==
  41620. g || 1 !== h) c.a *= n, c.b *= n, c.G *= p, c.P *= p;
  41621. c.pa += d * -k * n + -e * -m * p;
  41622. c.qa += e * -k * n + d * -m * p;
  41623. this.mn && (c.pa += k, c.qa += m);
  41624. this.Aq && (this.Pf = f.Vg(this.Pf, this.Zy), this.Aq = !1);
  41625. c.pa |= 0;
  41626. c.qa |= 0;
  41627. this.Wk = !1
  41628. }
  41629. return this.Pf
  41630. },
  41631. ma: function() {},
  41632. ce: function(c) {
  41633. this.B = c
  41634. },
  41635. ck: function() {
  41636. return this.B
  41637. },
  41638. SZ: function() {
  41639. for (var c = 0, d = 0, e = 0, g = 0, h = !0, g = x(0, 0, 0, 0), k = 0; k < this.i.length; k++)
  41640. if (c = this.i[k], c instanceof N.rs) {
  41641. var m = c.Nd.Ee();
  41642. h ? (c = f.fo(m), d = f.ho(m), e = f.Vp(m), g = f.Wp(m), h = !1) : (c = f.fo(m) < f.fo(g) ? f.fo(m) : f.fo(g), d = f.ho(m) < f.ho(g) ?
  41643. f.ho(m) : f.ho(g), e = f.Vp(m) > f.Vp(g) ? f.Vp(m) : f.Vp(g), g = f.Wp(m) > f.Wp(g) ? f.Wp(m) : f.Wp(g));
  41644. g = x(c, d, e - c, g - d)
  41645. }
  41646. return f.Ki(g, this.se())
  41647. },
  41648. vSa: function(c, d) {
  41649. for (var e = this.i.length - 1; 0 <= e; e--) {
  41650. var g = this.i[e];
  41651. if (g instanceof N.rs && g.Nd.cxa(c, d)) return g
  41652. }
  41653. return null
  41654. },
  41655. xBa: function() {
  41656. return null
  41657. },
  41658. Ku: function(c) {
  41659. this.gN = c;
  41660. for (var d in this.Jh) this.Jh[d].WQ(this)
  41661. },
  41662. js: function(c) {
  41663. for (var d in this.Jh) this.Jh[d].js(c)
  41664. },
  41665. dRa: function() {
  41666. f.If.wj(255, 255, 255, 255);
  41667. f.If.Ju(1);
  41668. for (var c in this.Jh)
  41669. for (var d = this.Jh[c].Z_(),
  41670. e = 0; e < d.length; e++) {
  41671. var g = d[e].PE;
  41672. f.If.Sf(g, g.length, !0)
  41673. }
  41674. },
  41675. oP: function() {
  41676. return this.gN
  41677. },
  41678. cl: function() {
  41679. return this.wd
  41680. },
  41681. Xx: function(c) {
  41682. this.wd = c
  41683. },
  41684. wx: function() {
  41685. return this.hu
  41686. },
  41687. w2a: function(c) {
  41688. this.hu = c
  41689. },
  41690. getName: function() {
  41691. return this.name
  41692. },
  41693. gf: function(c) {
  41694. this.name = c
  41695. },
  41696. LB: function() {
  41697. return this.batchNode
  41698. },
  41699. is: function(c) {
  41700. this.batchNode = c
  41701. },
  41702. HWa: function() {
  41703. return this.version
  41704. },
  41705. setVersion: function(c) {
  41706. this.version = c
  41707. },
  41708. hSa: function() {
  41709. return this.az
  41710. },
  41711. W_: function() {
  41712. return this.ei
  41713. },
  41714. cR: function(c) {
  41715. if (this.ei != c) {
  41716. this.ei =
  41717. c;
  41718. this.ei.data = this;
  41719. var d, e;
  41720. for (c = 0; c < this.i.length; c++)
  41721. if (d = this.i[c], d instanceof N.rs) {
  41722. d = d.Nd.fg;
  41723. for (var g = 0; g < d.length; g++) e = d[g], (e = e.Jj) && e.cR(this.ei)
  41724. }
  41725. }
  41726. },
  41727. QVa: function() {
  41728. return this.ei ? this.ei.U4a : []
  41729. }
  41730. });
  41731. N.tk.prototype.se = f.K == f.na ? N.tk.prototype.VM : N.tk.prototype.cta;
  41732. q = N.tk.prototype;
  41733. f.d(q, "parentBone", q.oP, q.Ku);
  41734. f.d(q, "body", q.W_, q.cR);
  41735. f.d(q, "colliderFilter", null, q.js);
  41736. q = null;
  41737. N.tk.create = function(c, d) {
  41738. var e = new N.tk;
  41739. return e && e.j(c, d) ? e : null
  41740. };
  41741. N.rs = N.ja.extend({
  41742. Eq: null,
  41743. Qc: null,
  41744. Ul: null,
  41745. Nd: null,
  41746. FP: !1,
  41747. bu: null,
  41748. Id: null,
  41749. name: "",
  41750. Ek: null,
  41751. parentBone: null,
  41752. tm: !1,
  41753. du: null,
  41754. B: 0,
  41755. IO: !1,
  41756. tO: null,
  41757. QU: null,
  41758. f9: 0,
  41759. ta: "Bone",
  41760. ctor: function() {
  41761. f.ja.prototype.ctor.call(this);
  41762. this.Nd = this.Ul = this.Qc = this.Eq = null;
  41763. this.FP = !1;
  41764. this.Id = this.bu = null;
  41765. this.name = "";
  41766. this.Ek = [];
  41767. this.parentBone = null;
  41768. this.tm = !0;
  41769. this.du = {
  41770. a: 1,
  41771. b: 0,
  41772. G: 0,
  41773. P: 1,
  41774. pa: 0,
  41775. qa: 0
  41776. };
  41777. this.B = new f.Um(f.Mc, f.Lc);
  41778. this.IO = !1
  41779. },
  41780. wh: function() {
  41781. vd(this.Id);
  41782. for (var c = 0; c < this.Ek.length; c++) vd(this.Ek[c]);
  41783. this.Ek = [];
  41784. vd(this.bu);
  41785. vd(this.Nd);
  41786. vd(this.Eq);
  41787. vd(this.Ul)
  41788. },
  41789. j: function(c) {
  41790. f.ja.prototype.j.call(this);
  41791. c && (this.name = c);
  41792. this.Id = new N.hv;
  41793. this.bu = new N.nU;
  41794. this.bu.j(this);
  41795. this.Nd = new N.GS;
  41796. this.Nd.j(this);
  41797. this.tO = new N.Tm;
  41798. this.Eq = new N.Tm;
  41799. return !0
  41800. },
  41801. Gga: function(c) {
  41802. c ? (this.Eq = c, this.name = this.Eq.name, this.tl(this.Eq.Sm), this.Nd.uea(c)) : f.log("boneData must not be null")
  41803. },
  41804. xx: function() {
  41805. return this.Eq
  41806. },
  41807. WQ: function(c) {
  41808. (this.Qc = c) ? (this.bu.Xx(this.Qc.cl()), this.f9 = this.Qc.wx().wB, this.QU = this.Qc.oP()) : this.QU = null
  41809. },
  41810. xza: function() {
  41811. return this.Qc
  41812. },
  41813. update: function(c) {
  41814. var d = this.parentBone,
  41815. e = this.Qc,
  41816. g = this.Id,
  41817. h = this.du,
  41818. k = this.tO,
  41819. m = this.QU;
  41820. d && (this.tm = this.tm || d.tm);
  41821. m && !this.tm && (this.tm = m.tm);
  41822. this.tm && (this.f9 >= N.ss && (d = this.Eq, g.x += d.x, g.y += d.y, g.skewX += d.skewX, g.skewY += d.skewY, g.scaleX += d.scaleX, g.scaleY += d.scaleY, g.scaleX -= 1, g.scaleY -= 1), k.x = g.x + this.oa.x, k.y = g.y + this.oa.y, k.scaleX = g.scaleX * this.ka, k.scaleY = g.scaleY * this.ra, k.skewX = g.skewX + this.og + this.bj, k.skewY = g.skewY + this.pg - this.hm, this.parentBone ? this.cca(this.parentBone) : m && this.cca(m),
  41823. N.Hj.n1(k, h), m && (this.du = f.Vg(h, e.se())));
  41824. N.Xg.ZIa(this, c, this.tm || e.az);
  41825. e = this.Ek;
  41826. for (g = 0; g < e.length; g++) e[g].update(c);
  41827. this.tm = !1
  41828. },
  41829. cca: function(c) {
  41830. var d = this.tO,
  41831. e = c.du;
  41832. c = c.tO;
  41833. var g = d.x,
  41834. h = d.y;
  41835. d.x = g * e.a + h * e.G + c.x;
  41836. d.y = g * e.b + h * e.P + c.y;
  41837. d.scaleX *= c.scaleX;
  41838. d.scaleY *= c.scaleY;
  41839. d.skewX += c.skewX;
  41840. d.skewY += c.skewY
  41841. },
  41842. I: function(c) {
  41843. if (this.Na) {
  41844. var d = this.Nd.PB();
  41845. d && d.I(c)
  41846. }
  41847. },
  41848. Wb: function(c) {
  41849. this.rd = f.color(255, 255, 255);
  41850. f.ja.prototype.Wb.call(this, c);
  41851. this.oo()
  41852. },
  41853. hc: function(c) {
  41854. this.Lg = 255;
  41855. f.ja.prototype.hc.call(this,
  41856. c);
  41857. this.oo()
  41858. },
  41859. F: function(c) {
  41860. f.ja.prototype.F.call(this, c);
  41861. this.oo()
  41862. },
  41863. J: function(c) {
  41864. f.ja.prototype.J.call(this, c);
  41865. this.oo()
  41866. },
  41867. oo: function() {
  41868. var c = this.Nd.PB();
  41869. if (c && c.wb) {
  41870. var d = this.Ab,
  41871. e = this.Id,
  41872. g = this.kb * e.a / 255,
  41873. d = f.color(d.r * e.r / 255, d.g * e.g / 255, d.b * e.b / 255);
  41874. c.J(g);
  41875. c.F(d)
  41876. }
  41877. },
  41878. jJa: function() {
  41879. this.Qc.wx().wB >= N.ss ? this.tl(this.Id.Sm + this.Eq.Sm) : this.tl(this.Id.Sm)
  41880. },
  41881. Pba: function(c) {
  41882. c ? c.parentBone ? f.log("child already added. It can't be added again") : 0 > this.Ek.indexOf(c) && (this.Ek.push(c), c.Ku(this)) : f.log("Argument must be non-nil")
  41883. },
  41884. kga: function(c, d) {
  41885. for (var e = 0; e < this.Ek.length; e++)
  41886. if (this.Ek[e] == c) {
  41887. if (d)
  41888. for (var g = c.Ek, h = 0; h < g.length; h++) c.kga(g[h], d);
  41889. c.Ku(null);
  41890. c.Nd.fR(null);
  41891. f.Ld(this.Ek, c)
  41892. }
  41893. },
  41894. Yp: function(c) {
  41895. this.parentBone && this.parentBone.kga(this, c)
  41896. },
  41897. Ku: function(c) {
  41898. this.parentBone = c
  41899. },
  41900. oP: function() {
  41901. return this.parentBone
  41902. },
  41903. s2: function(c) {
  41904. this.Ul != c && (null == c && this.Ul && this.Ul.Ku(null), this.Ul = c)
  41905. },
  41906. Fza: function() {
  41907. return this.Ul
  41908. },
  41909. Gza: function() {
  41910. return this.Ek
  41911. },
  41912. EBa: function() {
  41913. return this.bu
  41914. },
  41915. tl: function(c) {
  41916. this.fPa != c && f.v.prototype.tl.call(this,
  41917. c)
  41918. },
  41919. SHa: function(c) {
  41920. this.tm = c
  41921. },
  41922. bYa: function() {
  41923. return this.tm
  41924. },
  41925. s_a: function() {
  41926. return this.du
  41927. },
  41928. il: function() {
  41929. return f.Vg(this.du, this.Qc.il())
  41930. },
  41931. PB: function() {
  41932. return this.Nd.PB()
  41933. },
  41934. b0: function() {
  41935. return this.Nd.b0()
  41936. },
  41937. tZ: function(c, d) {
  41938. return this.Nd.tZ(c, d || 0)
  41939. },
  41940. lga: function(c) {
  41941. this.Nd.lga(c)
  41942. },
  41943. Vva: function(c, d) {
  41944. return this.Nd.Vva(c, d || 0)
  41945. },
  41946. hQa: function(c, d) {
  41947. f.log("changeDisplayByIndex is deprecated. Use changeDisplayWithIndex instead.");
  41948. this.Fr(c, d)
  41949. },
  41950. Fr: function(c, d) {
  41951. this.Nd.Fr(c, d)
  41952. },
  41953. oca: function(c, d) {
  41954. this.Nd.oca(c,
  41955. d)
  41956. },
  41957. Z_: function() {
  41958. var c = this.Nd.dn;
  41959. return c && (c = c.Jj) ? c.Z_() : []
  41960. },
  41961. js: function(c) {
  41962. for (var d = this.Nd.fg, e = 0; e < d.length; e++) {
  41963. var g = d[e].Jj;
  41964. g && g.js(c)
  41965. }
  41966. },
  41967. zx: function() {
  41968. var c = this.Nd.dn;
  41969. return c && (c = c.Jj) ? c.zx() : null
  41970. },
  41971. $2a: function(c) {
  41972. this.Nd = c
  41973. },
  41974. wTa: function() {
  41975. return this.Nd
  41976. },
  41977. t3a: function(c) {
  41978. this.FP = c
  41979. },
  41980. fUa: function() {
  41981. return this.FP
  41982. },
  41983. FBa: function() {
  41984. return this.Id
  41985. },
  41986. gf: function(c) {
  41987. this.name = c
  41988. },
  41989. getName: function() {
  41990. return this.name
  41991. },
  41992. ce: function(c) {
  41993. if (this.B.src != c.src || this.B.ha != c.ha) this.B = c, this.IO = !0
  41994. },
  41995. ck: function() {
  41996. return this.B
  41997. },
  41998. D2a: function(c) {
  41999. this.IO = c
  42000. },
  42001. vXa: function() {
  42002. return this.IO
  42003. }
  42004. });
  42005. q = N.rs.prototype;
  42006. f.d(q, "boneData", q.xx, q.Gga);
  42007. f.d(q, "armature", q.xza, q.WQ);
  42008. f.d(q, "childArmature", q.Fza, q.s2);
  42009. f.d(q, "childrenBone", q.Gza);
  42010. f.d(q, "tween", q.EBa);
  42011. f.d(q, "tweenData", q.FBa);
  42012. f.d(q, "colliderFilter", q.zx, q.js);
  42013. q = null;
  42014. N.rs.create = function(c) {
  42015. var d = new N.rs;
  42016. return d && d.j(c) ? d : null
  42017. };
  42018. N.s5 = 0;
  42019. N.u5 = 1;
  42020. N.t5 = 2;
  42021. N.v5 = 3;
  42022. N.r5 = 4;
  42023. N.Hla = 5;
  42024. N.jc = {
  42025. LKa: -1,
  42026. iv: 0,
  42027. Zna: 1,
  42028. aoa: 2,
  42029. $na: 3,
  42030. kna: 4,
  42031. mna: 5,
  42032. lna: 6,
  42033. Rka: 7,
  42034. Tka: 8,
  42035. Ska: 9,
  42036. nna: 10,
  42037. pna: 11,
  42038. ona: 12,
  42039. qna: 13,
  42040. sna: 14,
  42041. rna: 15,
  42042. Cla: 16,
  42043. Ela: 17,
  42044. Dla: 18,
  42045. Nka: 19,
  42046. Pka: 20,
  42047. Oka: 21,
  42048. ula: 22,
  42049. wla: 23,
  42050. vla: 24,
  42051. yja: 25,
  42052. Aja: 26,
  42053. zja: 27,
  42054. Dja: 28,
  42055. Fja: 29,
  42056. Eja: 30
  42057. };
  42058. N.qo = N.N.extend({
  42059. Hr: 0,
  42060. xm: 0,
  42061. Ap: 0,
  42062. RRa: null,
  42063. time: 0,
  42064. ctor: function() {
  42065. this.time = this.Ap = this.xm = this.Hr = 0
  42066. },
  42067. Ir: function() {
  42068. return null
  42069. },
  42070. wF: function(c) {
  42071. if (null === c) return console.error("Action cannot be null!"), null;
  42072. var d;
  42073. switch (this.xm) {
  42074. case N.jc.iv:
  42075. d = c;
  42076. break;
  42077. case N.jc.Zna:
  42078. d = c.sa(f.Nya());
  42079. break;
  42080. case N.jc.aoa:
  42081. d = c.sa(f.Pya());
  42082. break;
  42083. case N.jc.$na:
  42084. d = c.sa(f.Oya());
  42085. break;
  42086. case N.jc.kna:
  42087. d = c.sa(f.Eya());
  42088. break;
  42089. case N.jc.mna:
  42090. d = c.sa(f.Gya());
  42091. break;
  42092. case N.jc.lna:
  42093. d = c.sa(f.Fya());
  42094. break;
  42095. case N.jc.Rka:
  42096. d = c.sa(f.vya());
  42097. break;
  42098. case N.jc.Tka:
  42099. d = c.sa(f.xya());
  42100. break;
  42101. case N.jc.Ska:
  42102. d = c.sa(f.wya());
  42103. break;
  42104. case N.jc.nna:
  42105. d = c.sa(f.Hya());
  42106. break;
  42107. case N.jc.pna:
  42108. d = c.sa(f.Jya());
  42109. break;
  42110. case N.jc.ona:
  42111. d = c.sa(f.Iya());
  42112. break;
  42113. case N.jc.qna:
  42114. d = c.sa(f.Kya());
  42115. break;
  42116. case N.jc.sna:
  42117. d = c.sa(f.Mya());
  42118. break;
  42119. case N.jc.rna:
  42120. d = c.sa(f.Lya());
  42121. break;
  42122. case N.jc.Cla:
  42123. d = c.sa(f.yya());
  42124. break;
  42125. case N.jc.Ela:
  42126. d = c.sa(f.Aya());
  42127. break;
  42128. case N.jc.Dla:
  42129. d = c.sa(f.zya());
  42130. break;
  42131. case N.jc.Nka:
  42132. d = c.sa(f.sya());
  42133. break;
  42134. case N.jc.Pka:
  42135. d = c.sa(f.uya());
  42136. break;
  42137. case N.jc.Oka:
  42138. d = c.sa(f.tya());
  42139. break;
  42140. case N.jc.ula:
  42141. d = c.sa(f.Xca());
  42142. break;
  42143. case N.jc.wla:
  42144. d = c.sa(f.Zca());
  42145. break;
  42146. case N.jc.vla:
  42147. d = c.sa(f.Yca());
  42148. break;
  42149. case N.jc.yja:
  42150. d = c.sa(f.lya());
  42151. break;
  42152. case N.jc.Aja:
  42153. d = c.sa(f.nya());
  42154. break;
  42155. case N.jc.zja:
  42156. d = c.sa(f.mya());
  42157. break;
  42158. case N.jc.Dja:
  42159. d = c.sa(f.pya());
  42160. break;
  42161. case N.jc.Fja:
  42162. d = c.sa(f.rya());
  42163. break;
  42164. case N.jc.Eja:
  42165. d = c.sa(f.qya())
  42166. }
  42167. return d
  42168. },
  42169. OI: function(c) {
  42170. this.Upa = [];
  42171. for (var d = 0; d < c.length; d++) this.Upa.push(c[d])
  42172. },
  42173. Iu: function(c) {
  42174. this.QL = c
  42175. }
  42176. });
  42177. N.bja = N.qo.extend({
  42178. oa: null,
  42179. ctor: function() {
  42180. N.qo.prototype.ctor.call(this);
  42181. this.oa = r(0, 0);
  42182. this.Hr = N.s5
  42183. },
  42184. o: function(c, d) {
  42185. void 0 === d ? (this.oa.x = c.x, this.oa.y = c.y) : (this.oa.x = c, this.oa.y = d)
  42186. },
  42187. Od: function() {
  42188. return this.oa
  42189. },
  42190. Ir: function(c) {
  42191. c = f.Dc.create(c, this.oa);
  42192. c.xm = this.xm || N.jc.iv;
  42193. return this.wF(c)
  42194. }
  42195. });
  42196. N.fja = N.qo.extend({
  42197. ka: 1,
  42198. ra: 1,
  42199. ctor: function() {
  42200. N.qo.prototype.ctor.call(this);
  42201. this.ra = this.ka = 1;
  42202. this.Hr = N.u5
  42203. },
  42204. jb: function(c) {
  42205. this.ka = c
  42206. },
  42207. sP: function() {
  42208. return this.ka
  42209. },
  42210. tb: function(c) {
  42211. this.ra = c
  42212. },
  42213. BH: function() {
  42214. return this.ra
  42215. },
  42216. Ir: function(c) {
  42217. c = f.Db.create(c, this.ka, this.ra);
  42218. c.xm = this.xm || N.jc.iv;
  42219. return this.wF(c)
  42220. }
  42221. });
  42222. N.eja = N.qo.extend({
  42223. LA: 0,
  42224. ctor: function() {
  42225. N.qo.prototype.ctor.call(this);
  42226. this.LA = 0;
  42227. this.Hr = N.t5
  42228. },
  42229. yh: function(c) {
  42230. this.LA = c
  42231. },
  42232. Cx: function() {
  42233. return this.LA
  42234. },
  42235. Ir: function(c) {
  42236. c = f.pv.create(c, this.LA);
  42237. c.xm = this.xm || N.jc.iv;
  42238. return this.wF(c)
  42239. }
  42240. });
  42241. N.Yia = N.qo.extend({
  42242. Ib: 255,
  42243. ctor: function() {
  42244. N.qo.prototype.ctor.call(this);
  42245. this.Ib = 255;
  42246. this.Hr = N.r5
  42247. },
  42248. J: function(c) {
  42249. this.Ib = c
  42250. },
  42251. vb: function() {
  42252. return this.Ib
  42253. },
  42254. Ir: function(c) {
  42255. c = f.Xc.create(c, this.Ib);
  42256. c.xm = this.xm || N.jc.iv;
  42257. return this.wF(c)
  42258. }
  42259. });
  42260. N.gja = N.qo.extend({
  42261. Ea: null,
  42262. ctor: function() {
  42263. N.qo.prototype.ctor.call(this);
  42264. this.Ea = f.color(255, 255, 255, 255);
  42265. this.Hr = N.v5
  42266. },
  42267. F: function(c) {
  42268. var d = this.Ea;
  42269. d.r = c.r;
  42270. d.g = c.g;
  42271. d.b = c.b
  42272. },
  42273. $a: function() {
  42274. var c = this.Ea;
  42275. return f.color(c.r, c.g, c.b, c.a)
  42276. },
  42277. Ir: function(c) {
  42278. c = f.Vy.create(c, this.Ea.r, this.Ea.g, this.Ea.b);
  42279. c.xm = this.xm || N.jc.iv;
  42280. return this.wF(c)
  42281. }
  42282. });
  42283. N.actionManager = {
  42284. xq: {},
  42285. Ip: function(c, d, e) {
  42286. c = c.substr(c.lastIndexOf("/") + 1, c.length);
  42287. d = d.actionlist;
  42288. for (var g = [], h = 0; h < d.length; h++) {
  42289. var k = new N.dja;
  42290. k.Ip(d[h], e);
  42291. g.push(k)
  42292. }
  42293. this.xq[c] = g
  42294. },
  42295. U_: function(c, d) {
  42296. var e = this.xq[c];
  42297. if (!e) return null;
  42298. for (var g = 0; g < e.length; g++) {
  42299. var h = e[g];
  42300. if (d == h.getName()) return h
  42301. }
  42302. return null
  42303. },
  42304. aFa: function(c, d, e) {
  42305. (c = this.U_(c, d)) && c.play(e)
  42306. },
  42307. FFa: function() {
  42308. this.xq = {}
  42309. },
  42310. clear: function() {
  42311. this.xq = {}
  42312. }
  42313. };
  42314. N.cja = N.N.extend({
  42315. Xqa: 0,
  42316. Zqa: 0,
  42317. Xk: 0,
  42318. zq: 0,
  42319. vqa: null,
  42320. Yy: null,
  42321. Qe: null,
  42322. Ri: null,
  42323. Pv: 0,
  42324. ctor: function() {
  42325. this.Zqa = this.Xqa = 0;
  42326. this.Xk = 0.1;
  42327. this.zq = 0;
  42328. this.Qe = this.Yy = this.vqa = null;
  42329. this.Ri = [];
  42330. this.Pv = N.Hla;
  42331. for (var c = 0; c < this.Pv; c++) this.Ri.push([])
  42332. },
  42333. Ip: function(c, d) {
  42334. this.Vx(c.ActionTag);
  42335. for (var e = c.actionframelist, g = 0; g < e.length; g++) {
  42336. for (var h = e[g], k = h.tweenType, m = h.tweenParameter, n = [], p = 0; p < m; p++) n.push(h.tweenParameter[p]);
  42337. if (void 0 !== h.positionx) {
  42338. var p = h.positionx,
  42339. s = h.positiony,
  42340. m = new N.bja;
  42341. m.Iu(k);
  42342. m.OI(n);
  42343. m.o(p,
  42344. s);
  42345. p = this.Ri[N.s5];
  42346. p.push(m)
  42347. }
  42348. void 0 !== h.scalex && (p = h.scalex, s = h.scaley, m = new N.fja, m.Iu(k), m.OI(n), m.jb(p), m.tb(s), p = this.Ri[N.u5], p.push(m));
  42349. void 0 !== h.rotation && (p = h.rotation, m = new N.eja, m.Iu(k), m.OI(n), m.yh(p), p = this.Ri[N.t5], p.push(m));
  42350. void 0 !== h.opacity && (p = h.opacity, m = new N.Yia, m.Iu(k), m.OI(n), m.J(p), p = this.Ri[N.r5], p.push(m));
  42351. void 0 !== h.colorr && (p = h.colorr, s = h.colorg, h = h.colorb, m = new N.gja, m.Iu(k), m.OI(n), m.F(f.color(p, s, h)), p = this.Ri[N.v5], p.push(m))
  42352. }
  42353. this.fCa(d)
  42354. },
  42355. fCa: function(c) {
  42356. c instanceof
  42357. y && (c = Dc(c, this.zq)) && this.ul(c)
  42358. },
  42359. eJ: function(c) {
  42360. this.Xk = c;
  42361. this.CFa()
  42362. },
  42363. HBa: function() {
  42364. return this.Xk
  42365. },
  42366. Vx: function(c) {
  42367. this.zq = c
  42368. },
  42369. lda: function() {
  42370. return this.zq
  42371. },
  42372. ul: function(c) {
  42373. this.rA = c
  42374. },
  42375. JAa: function() {
  42376. return this.rA
  42377. },
  42378. V_: function() {
  42379. return this.rA instanceof f.v || this.rA instanceof y ? this.rA : null
  42380. },
  42381. iXa: function(c, d) {
  42382. null != d && this.Ri[d.Hr].splice(c, 0, d)
  42383. },
  42384. tPa: function(c) {
  42385. c && this.Ri[c.Hr].push(c)
  42386. },
  42387. JQa: function(c) {
  42388. null != c && f.Ld(this.Ri[c.Hr], c)
  42389. },
  42390. nQa: function() {
  42391. for (var c = 0; c < this.Pv; c++) this.Ri[c] = []
  42392. },
  42393. CFa: function() {
  42394. if (null ==
  42395. this.rA) return null;
  42396. for (var c = [], d = 0; d < this.Pv; d++) {
  42397. var e = this.Ri[d];
  42398. if (!(0 >= e.length)) {
  42399. for (var g = [], h = 0; h < e.length; h++) {
  42400. var k = e[h];
  42401. 0 != h && (k = k.Ir((k.Ap - e[h - 1].Ap) * this.Xk)) && g.push(k)
  42402. }
  42403. g && (e = f.X.create(g), null != e && c.push(e))
  42404. }
  42405. }
  42406. this.Qe = null;
  42407. return this.Yy = f.fe.create(c)
  42408. },
  42409. $Ea: function(c) {
  42410. null != this.rA && null != this.Yy && (this.Qe = c ? f.X.create(this.Yy, c) : f.X.create(this.Yy), this.V())
  42411. },
  42412. V: function() {
  42413. var c = this.V_();
  42414. null != c && null != this.Qe && c.V(this.Qe)
  42415. },
  42416. hJ: function() {
  42417. var c = this.V_();
  42418. null != c && null != this.Qe && (this.Qe.gk() ||
  42419. c.hJ(this.Qe))
  42420. },
  42421. Yza: function() {
  42422. for (var c = 99999, d = !1, e = 0; e < this.Pv; e++) {
  42423. var g = this.Ri[e];
  42424. 0 >= g.length || (d = !0, g = g[0].Ap, c = c > g ? g : c)
  42425. }
  42426. d || (c = 0);
  42427. return c
  42428. },
  42429. pAa: function() {
  42430. for (var c = -1, d = !1, e = 0; e < this.Pv; e++) {
  42431. var g = this.Ri[e];
  42432. 0 >= g.length || (d = !0, g = g[g.length - 1].Ap, c = c < g ? g : c)
  42433. }
  42434. d || (c = 0);
  42435. return c
  42436. },
  42437. TIa: function(c) {
  42438. for (var d = !1, e = this.Xk, g = 0; g < this.Pv; g++) {
  42439. var h = this.Ri[g];
  42440. if (null != h)
  42441. for (var k = 0; k < h.length; k++) {
  42442. var m = h[k];
  42443. if (m.Ap * e == c) {
  42444. this.YO(1, 1, m);
  42445. d = !0;
  42446. break
  42447. } else if (m.Ap * e > c) {
  42448. 0 == k ? (this.YO(1, 1, m), d = !1) : (d = h[k -
  42449. 1], h = (m.Ap - d.Ap) * e, k = c - d.Ap * e, this.YO(h, 1, d), this.YO(h, k / h, m), d = !0);
  42450. break
  42451. }
  42452. }
  42453. }
  42454. return d
  42455. },
  42456. YO: function(c, d, e) {
  42457. c = e.Ir(c);
  42458. e = this.V_();
  42459. null != c && null != e && (c.R(e), c.update(d))
  42460. },
  42461. OCa: function() {
  42462. return null == this.Qe ? !0 : this.Qe.gk()
  42463. }
  42464. });
  42465. N.dja = N.N.extend({
  42466. Ak: null,
  42467. nd: "",
  42468. Tj: !1,
  42469. tX: !1,
  42470. oaa: !1,
  42471. Xk: 0,
  42472. yL: 0,
  42473. nh: null,
  42474. cW: 0,
  42475. ctor: function() {
  42476. this.Ak = [];
  42477. this.nd = "";
  42478. this.oaa = this.tX = this.Tj = !1;
  42479. this.Xk = 0.1;
  42480. this.cW = this.yL = 0;
  42481. this.nh = new f.Uy;
  42482. f.Q.Dm().UQ(this.nh, 0, !1)
  42483. },
  42484. gf: function(c) {
  42485. this.nd = c
  42486. },
  42487. getName: function() {
  42488. return this.nd
  42489. },
  42490. mR: function(c) {
  42491. this.Tj = c
  42492. },
  42493. Eda: function() {
  42494. return this.Tj
  42495. },
  42496. eJ: function(c) {
  42497. this.Xk = c;
  42498. c = this.Ak.length;
  42499. for (var d = 0; d < c; d++) this.Ak[d].eJ(this.Xk)
  42500. },
  42501. HBa: function() {
  42502. return this.Xk
  42503. },
  42504. kTa: function() {
  42505. return this.yL
  42506. },
  42507. T2a: function(c) {
  42508. this.yL =
  42509. c
  42510. },
  42511. vWa: function() {
  42512. return this.cW
  42513. },
  42514. Lea: function() {
  42515. return this.oaa
  42516. },
  42517. Ip: function(c, d) {
  42518. this.gf(c.name);
  42519. this.mR(c.loop);
  42520. this.eJ(c.unittime);
  42521. for (var e = c.actionnodelist, g = 0, h = 0; h < e.length; h++) {
  42522. var k = new N.cja;
  42523. k.Ip(e[h], d);
  42524. k.eJ(this.Xk);
  42525. this.Ak.push(k);
  42526. k = k.pAa() - k.Yza();
  42527. k > g && (g = k)
  42528. }
  42529. this.cW = g * this.Xk
  42530. },
  42531. jPa: function(c) {
  42532. c && (this.Ak.push(c), c.eJ(this.Xk))
  42533. },
  42534. U0a: function(c) {
  42535. null != c && f.Ld(this.Ak, c)
  42536. },
  42537. play: function(c) {
  42538. this.stop();
  42539. this.gJa(0);
  42540. for (var d = this.Ak.length, e = 0; e < d; e++) this.Ak[e].$Ea(c);
  42541. this.Tj && this.nh.g2(this,
  42542. this.dia, 0, f.mv, 0, !1)
  42543. },
  42544. pause: function() {
  42545. this.tX = !0
  42546. },
  42547. stop: function() {
  42548. for (var c = 0; c < this.Ak.length; c++) this.Ak[c].hJ();
  42549. this.nh.A3(this, this.dia);
  42550. this.tX = !1
  42551. },
  42552. gJa: function(c) {
  42553. this.yL = c;
  42554. for (var d = 0; d < this.Ak.length; d++) this.Ak[d].TIa(c)
  42555. },
  42556. dia: function() {
  42557. if (this.Tj) {
  42558. for (var c = !0, d = this.Ak, e = 0; e < d.length; e++)
  42559. if (!1 == d[e].OCa()) {
  42560. c = !1;
  42561. break
  42562. }
  42563. c && this.play()
  42564. }
  42565. }
  42566. });
  42567. N.vS = N.Dh.extend({
  42568. Ui: null,
  42569. Ja: "",
  42570. ctor: function() {
  42571. f.Dh.prototype.ctor.call(this);
  42572. this.Ui = {};
  42573. this.Ja = "";
  42574. this.nd = "CCComAttribute"
  42575. },
  42576. j: function() {
  42577. this.Ui = {};
  42578. return !0
  42579. },
  42580. u3a: function(c, d) {
  42581. c ? this.Ui[c] = d : f.log("Argument must be non-nil")
  42582. },
  42583. a3a: function(c, d) {
  42584. c ? this.Ui[c] = d : f.log("Argument must be non-nil")
  42585. },
  42586. f3a: function(c, d) {
  42587. c ? this.Ui[c] = d : f.log("Argument must be non-nil")
  42588. },
  42589. E2a: function(c, d) {
  42590. c ? this.Ui[c] = d : f.log("Argument must be non-nil")
  42591. },
  42592. wa: function(c, d) {
  42593. c ? this.Ui[c] = d : f.log("Argument must be non-nil")
  42594. },
  42595. ul: function(c,
  42596. d) {
  42597. c ? this.Ui[c] = d : f.log("Argument must be non-nil")
  42598. },
  42599. hUa: function(c) {
  42600. return parseInt(this.Ui[c] || 0)
  42601. },
  42602. DTa: function(c) {
  42603. return parseFloat(this.Ui[c] || 0)
  42604. },
  42605. VTa: function(c) {
  42606. return parseFloat(this.Ui[c] || 0)
  42607. },
  42608. ySa: function(c) {
  42609. return Boolean(this.Ui[c] || !1)
  42610. },
  42611. qc: function(c) {
  42612. return this.Ui[c] || ""
  42613. },
  42614. JAa: function(c) {
  42615. return this.Ui[c]
  42616. },
  42617. parse: function(c) {
  42618. this.Ui = f.L.zd(c)
  42619. }
  42620. });
  42621. N.vS.create = function() {
  42622. var c = new N.vS;
  42623. return c && c.j() ? c : null
  42624. };
  42625. N.LJ = N.Dh.extend({
  42626. Ja: "",
  42627. Tj: !1,
  42628. ctor: function() {
  42629. f.Dh.prototype.ctor.call(this);
  42630. this.nd = "Audio"
  42631. },
  42632. j: function() {
  42633. return !0
  42634. },
  42635. ba: function() {},
  42636. Ra: function() {
  42637. this.tIa(!0);
  42638. this.iJ()
  42639. },
  42640. end: function() {
  42641. f.pe.end()
  42642. },
  42643. kFa: function(c) {
  42644. f.L.load(c)
  42645. },
  42646. bFa: function(c, d) {
  42647. c ? f.pe.Qfa(c, d) : f.pe.Qfa(this.Ja, this.Tj)
  42648. },
  42649. tIa: function(c) {
  42650. f.pe.pia(c)
  42651. },
  42652. j0a: function() {
  42653. f.pe.G1()
  42654. },
  42655. J1a: function() {
  42656. f.pe.vga()
  42657. },
  42658. N1a: function() {
  42659. f.pe.dGa()
  42660. },
  42661. X5a: function() {
  42662. return !1
  42663. },
  42664. tXa: function() {
  42665. return f.pe.VP()
  42666. },
  42667. sSa: function() {
  42668. return f.pe.GAa()
  42669. },
  42670. B2a: function(c) {
  42671. f.pe.kHa(c)
  42672. },
  42673. xda: function() {
  42674. return f.pe.xda()
  42675. },
  42676. Uga: function(c) {
  42677. f.pe.Uga(c)
  42678. },
  42679. zI: function(c, d) {
  42680. return c ? f.pe.zI(c, d) : f.pe.zI(this.Ja, this.Tj)
  42681. },
  42682. F1: function(c) {
  42683. f.pe.F1(c)
  42684. },
  42685. E1: function() {
  42686. f.pe.E1()
  42687. },
  42688. c2: function(c) {
  42689. f.pe.c2(c)
  42690. },
  42691. b2: function() {
  42692. f.pe.b2()
  42693. },
  42694. k3: function(c) {
  42695. f.pe.k3(c)
  42696. },
  42697. iJ: function() {
  42698. f.pe.iJ()
  42699. },
  42700. lFa: function(c) {
  42701. this.$ga(c);
  42702. this.mR(!1)
  42703. },
  42704. z3: function(c) {
  42705. f.pe.z3(c)
  42706. },
  42707. $ga: function(c) {
  42708. this.Ja = c
  42709. },
  42710. mR: function(c) {
  42711. this.Tj = c
  42712. },
  42713. getFile: function() {
  42714. return this.Ja
  42715. },
  42716. JXa: function() {
  42717. return this.Tj
  42718. }
  42719. });
  42720. N.LJ.create = function() {
  42721. var c = new N.LJ;
  42722. return c && c.j() ? c : null
  42723. };
  42724. N.O4 = N.Dh.extend({
  42725. ctor: function() {
  42726. f.Dh.prototype.ctor.call(this);
  42727. this.nd = "ComController"
  42728. },
  42729. j: function() {
  42730. return !0
  42731. },
  42732. ba: function() {
  42733. null != this.Td && this.Td.ds()
  42734. },
  42735. Ra: function() {},
  42736. update: function() {},
  42737. isEnabled: function() {
  42738. return this.$c
  42739. },
  42740. Lb: function() {
  42741. this.$c = b
  42742. }
  42743. });
  42744. N.O4.create = function() {
  42745. var c = new N.O4;
  42746. return c && c.j() ? c : null
  42747. };
  42748. N.cv = N.Dh.extend({
  42749. Ht: null,
  42750. ctor: function(c, d) {
  42751. f.Dh.prototype.ctor.call(this);
  42752. this.Ht = c;
  42753. this.nd = d
  42754. },
  42755. ba: function() {
  42756. this.Td && this.Td.n(this.Ht)
  42757. },
  42758. Ra: function() {
  42759. this.Td && (this.Td.removeChild(this.Ht, !0), this.Ht = null)
  42760. },
  42761. JUa: function() {
  42762. return this.Ht
  42763. },
  42764. I3a: function(c) {
  42765. this.Ht = c
  42766. }
  42767. });
  42768. N.cv.create = function(c, d) {
  42769. var e = new N.cv(c, d);
  42770. return e && e.j() ? e : null
  42771. };
  42772. N.jI = {
  42773. hO: {},
  42774. Pxa: function() {
  42775. this.dA = null
  42776. },
  42777. fH: function(c) {
  42778. var d = null;
  42779. (c = this.hO[c]) && (d = new c.lt);
  42780. return d
  42781. },
  42782. gga: function(c) {
  42783. this.hO[c.ta] = c
  42784. },
  42785. BQa: function(c) {
  42786. var d = null;
  42787. "Panel" === c ? c = "Layout" : "TextArea" === c ? c = "Label" : "TextButton" === c && (c = "Button");
  42788. (c = this.hO[c]) && c.lt && (d = c.lt);
  42789. return d
  42790. },
  42791. lxa: function(c) {
  42792. var d = null;
  42793. (c = this.hO[c]) && c.lt && (d = c.lt);
  42794. return d
  42795. }
  42796. };
  42797. N.r7 = N.N.extend({
  42798. ta: "",
  42799. lt: null,
  42800. ctor: function(c, d) {
  42801. d ? (this.ta = c, this.lt = d) : (this.ta = c.ta, this.lt = c.lt);
  42802. N.jI.gga(this)
  42803. }
  42804. });
  42805. N.n2a = function(c) {
  42806. c = N.t3.get(c);
  42807. if (null != c)
  42808. for (var d = 0; d < c.length; d++);
  42809. };
  42810. N.P0a = function(c, d) {
  42811. new N.r7(c, d)
  42812. };
  42813. N.t3 = {
  42814. gn: {},
  42815. uba: {},
  42816. dr: [],
  42817. Pxa: function() {
  42818. this.kk();
  42819. this.dA = null
  42820. },
  42821. parse: function(c) {
  42822. for (var d = 0; d < c.length; ++d) {
  42823. var e = c[d],
  42824. g = N.lU.create();
  42825. g.CC(e);
  42826. for (var e = g.LG, h = 0; h < e.length; h++) this.add(e[h], g);
  42827. this.uba[g.ni] = g
  42828. }
  42829. },
  42830. get: function(c) {
  42831. return this.gn[c]
  42832. },
  42833. DBa: function(c) {
  42834. return this.uba[c]
  42835. },
  42836. add: function(c, d) {
  42837. var e = this.gn[c];
  42838. e || (e = []); - 1 == e.indexOf(d) && (e.push(d), this.gn[c] = e)
  42839. },
  42840. kk: function() {
  42841. for (var c in this.gn)
  42842. for (var d = this.gn[c], e = 0; e < d.length; e++) d[e].kk();
  42843. this.gn = {}
  42844. },
  42845. remove: function(c, d) {
  42846. if (d) return this.Wta(c,
  42847. d);
  42848. var e = !1,
  42849. g = this.gn[c];
  42850. if (g) {
  42851. for (e = 0; e < g.length; e++) {
  42852. var h = g[e];
  42853. h && h.kk()
  42854. }
  42855. delete this.gn[c];
  42856. e = !0
  42857. }
  42858. return e
  42859. },
  42860. Wta: function(c, d) {
  42861. var e = !1;
  42862. do {
  42863. var g = this.gn[c];
  42864. if (g) {
  42865. for (e = 0; e < g.length; e++) {
  42866. var h = g[e];
  42867. if (h && h == d) {
  42868. h.kk();
  42869. g.splice(e, 1);
  42870. break
  42871. }
  42872. }
  42873. e = !0
  42874. }
  42875. } while (0);
  42876. return e
  42877. },
  42878. B1a: function(c) {
  42879. c = this.DBa(c);
  42880. if (!c) return !1;
  42881. for (var d = c.LG, e = 0; e < d.length; e++) this.remove(d[e], c);
  42882. return !0
  42883. },
  42884. Jea: function() {
  42885. return !this.gn || 0 >= this.gn.length
  42886. },
  42887. lPa: function(c, d, e) {
  42888. if (null != c && null != e && null != d) {
  42889. for (var g, h = !1, k = 0; k < this.dr.length; k++)(g =
  42890. this.dr[k]) && g[0] == c && (g.Lba(d, e), h = !0);
  42891. h || (g = new N.ija, c.cl().jHa(g.owa, g), g.Lba(d, e), this.dr.push([c, g]))
  42892. }
  42893. },
  42894. g1a: function(c, d, e) {
  42895. if (null != c && null != d && null != e)
  42896. for (var g, h = 0; h < this.dr.length; h++)(g = this.dr[h]) && g[0] == c && g.LFa(e, d)
  42897. },
  42898. e1a: function(c) {
  42899. if (null != c)
  42900. for (var d, e = 0; e < this.dr.length; e++)
  42901. if ((d = this.dr[e]) && d[0] == c) {
  42902. this.dr.splice(e, 1);
  42903. break
  42904. }
  42905. },
  42906. W0a: function() {
  42907. this.dr = []
  42908. },
  42909. version: function() {
  42910. return "1.2.0.0"
  42911. }
  42912. };
  42913. N.ija = N.N.extend({
  42914. bw: null,
  42915. ctor: function() {
  42916. this.bw = []
  42917. },
  42918. owa: function(c, d, e) {
  42919. for (var g, h, k = 0; k < this.bw.length; k++) g = this.bw[k], h = g[0], (g = g[1]) && g.call(h, c, d, e)
  42920. },
  42921. Lba: function(c, d) {
  42922. this.bw.push([d, c])
  42923. },
  42924. LFa: function(c, d) {
  42925. for (var e, g = 0; g < this.bw.length; g++) e = this.bw[g], e[0] == d && this.bw.splice(g, 1)
  42926. }
  42927. });
  42928. N.tKa = N.N.extend({
  42929. ctor: function() {},
  42930. j: function() {
  42931. return !0
  42932. },
  42933. w_: function() {
  42934. return !0
  42935. },
  42936. CC: function() {},
  42937. kk: function() {}
  42938. });
  42939. N.sKa = N.N.extend({
  42940. ctor: function() {},
  42941. j: function() {
  42942. return !0
  42943. },
  42944. Yxa: function() {},
  42945. CC: function() {},
  42946. kk: function() {}
  42947. });
  42948. N.lU = N.N.extend({
  42949. Ys: null,
  42950. wv: null,
  42951. ni: 0,
  42952. UL: !0,
  42953. LG: null,
  42954. ctor: function() {
  42955. this.ni = 0;
  42956. this.UL = !0
  42957. },
  42958. j: function() {
  42959. this.Ys = [];
  42960. this.wv = [];
  42961. this.LG = [];
  42962. return !0
  42963. },
  42964. w_: function() {
  42965. if (!this.UL || 0 == this.Ys.length) return !0;
  42966. for (var c = !0, d = null, e = 0; e < this.Ys.length; e++)(d = this.Ys[e]) && d.w_ && (c = c && d.w_());
  42967. return c
  42968. },
  42969. Yxa: function() {
  42970. if (this.UL && 0 != this.wv.length)
  42971. for (var c = 0; c < this.wv.length; c++);
  42972. },
  42973. kk: function() {
  42974. for (var c = null, d = 0; d < this.Ys.length; d++)(c = this.Ys[d]) && c.kk();
  42975. this.Ys = [];
  42976. for (d = 0; d < this.wv.length; d++)(c = this.wv[d]) &&
  42977. c.kk();
  42978. this.wv = []
  42979. },
  42980. CC: function(c) {
  42981. this.ni = c.id || 0;
  42982. for (var d = c.conditions || [], e = 0; e < d.length; e++) {
  42983. var g = d[e],
  42984. h = g.classname,
  42985. k = N.jI.fH(h);
  42986. k ? (k.CC(g), k.j(), this.Ys.push(k)) : f.log("class named classname(" + h + ") can not implement!")
  42987. }
  42988. d = c.actions || [];
  42989. for (e = 0; e < d.length; e++) g = d[e], h = g.classname, (k = N.jI.fH(h)) ? (k.CC(g), k.j(), this.wv.push(k)) : f.log("class named classname(" + h + ") can not implement!");
  42990. c = c.events || [];
  42991. for (e = 0; e < c.length; e++) g = c[e], g = g.id, 0 > g || this.LG.push(g)
  42992. },
  42993. fAa: function() {
  42994. return this.ni
  42995. },
  42996. b3a: function(c) {
  42997. this.UL =
  42998. c
  42999. },
  43000. QTa: function() {
  43001. return this.LG
  43002. }
  43003. });
  43004. N.lU.create = function() {
  43005. var c = new N.lU;
  43006. return c.j() ? c : null
  43007. };
  43008. N.rk = {
  43009. Ja: "",
  43010. faa: !1,
  43011. eW: {},
  43012. WW: {},
  43013. XW: {},
  43014. LBa: function(c) {
  43015. if (!c) return 0;
  43016. var d = c.length;
  43017. if (7 > d) return 0;
  43018. var e = c.indexOf("."),
  43019. g = c.substr(0, e);
  43020. c = c.substr(e + 1, d - 1);
  43021. var e = c.indexOf("."),
  43022. h = c.substr(0, e);
  43023. c = c.substr(e + 1, d - 1);
  43024. var e = c.indexOf("."),
  43025. k = c.substr(0, e);
  43026. c = c.substr(e + 1, d - 1);
  43027. e = c.indexOf(".");
  43028. return 1E3 * parseInt(g) + 100 * parseInt(h) + 10 * parseInt(k) + parseInt(-1 == e ? c : c.substr(0, e))
  43029. },
  43030. LR: function(c, d) {
  43031. this.eW[c] = d
  43032. },
  43033. STa: function(c) {
  43034. return this.eW[c]
  43035. },
  43036. nJa: function(c) {
  43037. var d = f.L.zd(c);
  43038. if (!d) throw "Please load the resource first : " +
  43039. c;
  43040. var e = f.path.dirname(c);
  43041. this.Ja = "" == e ? e : e + "/";
  43042. var e = d.version,
  43043. g = this.LBa(e);
  43044. c = (e ? 250 > g ? new N.o8 : new N.Kpa : new N.o8).o_(d, this.Ja, c);
  43045. if (!e || 250 > g) this.faa = !0;
  43046. return c
  43047. },
  43048. clear: function() {
  43049. this.Ja = "";
  43050. this.faa = !1;
  43051. this.eW = {}
  43052. },
  43053. Q0a: function(c, d, e, g) {
  43054. d = N.jI;
  43055. var h = new N.r7(c, e);
  43056. d.gga(h);
  43057. e && (this.WW[c] = e);
  43058. g && (this.XW[c] = g)
  43059. },
  43060. TTa: function() {
  43061. return this.Ja
  43062. },
  43063. jVa: function() {
  43064. return this.WW
  43065. },
  43066. iVa: function() {
  43067. return this.XW
  43068. }
  43069. };
  43070. N.n8 = N.N.extend({
  43071. Ja: "",
  43072. o_: function() {},
  43073. aD: function() {}
  43074. });
  43075. N.o8 = N.n8.extend({
  43076. o_: function(c, d, e) {
  43077. this.Ja = "" == d ? d : f.path.join(d, "/");
  43078. for (var g = c.textures, h = 0; h < g.length; h++) {
  43079. var k = d,
  43080. k = k + g[h];
  43081. f.Je.vp(k)
  43082. }
  43083. d = c.designWidth;
  43084. g = c.designHeight;
  43085. 0 >= d || 0 >= g ? (f.log("Read design size error!"), N.rk.LR(e, f.Q.Y)) : N.rk.LR(e, t(d, g));
  43086. h = this.aD(c.widgetTree);
  43087. k = h.e();
  43088. 0 == k.width && 0 == k.height && h.Df(t(d, g));
  43089. N.actionManager.Ip(e, c.animation, h);
  43090. return h
  43091. },
  43092. aD: function(c) {
  43093. var d = null,
  43094. e = c.classname,
  43095. g = c.options;
  43096. "Button" == e ? (d = Ec.create(), this.UI(d, g)) : "CheckBox" == e ? (d = Fc.create(), this.Aha(d,
  43097. g)) : "Label" == e ? (d = Jc.create(), this.G2(d, g)) : "LabelAtlas" == e ? (d = Lc.create(), this.Cha(d, g)) : "LoadingBar" == e ? (d = Hc.create(), this.Eha(d, g)) : "ScrollView" == e ? (d = F.create(), this.H2(d, g)) : "TextArea" == e ? (d = Jc.create(), this.G2(d, g)) : "TextButton" == e ? (d = Ec.create(), this.UI(d, g)) : "TextField" == e ? (d = Pc.create(), this.Gha(d, g)) : "ImageView" == e ? (d = Gc.create(), this.Bha(d, g)) : "Panel" == e ? (d = D.create(), this.Mu(d, g)) : "Slider" == e ? (d = Ic.create(), this.Fha(d, g)) : "LabelBMFont" == e ? (d = Mc.create(), this.Dha(d, g)) : "DragPanel" == e &&
  43098. (d = F.create(), this.H2(d, g));
  43099. c = c.children;
  43100. for (e = 0; e < c.length; e++)(g = this.aD(c[e])) && d.n(g);
  43101. return d
  43102. },
  43103. Ie: function(c, d) {
  43104. void 0 !== d.ignoreSize && c.df(d.ignoreSize);
  43105. c.Df(t(d.width, d.height));
  43106. c.Nm(d.tag);
  43107. c.Vx(d.actiontag);
  43108. c.Om(d.touchAble);
  43109. var e = d.name;
  43110. c.gf(e ? e : "default");
  43111. c.o(r(d.x, d.y));
  43112. void 0 !== d.scaleX && c.jb(d.scaleX);
  43113. void 0 !== d.scaleY && c.tb(d.scaleY);
  43114. void 0 !== d.rotation && c.yh(d.rotation);
  43115. void 0 !== d.visible && c.za(d.visible);
  43116. c.tl(d.ZOrder)
  43117. },
  43118. F2: function() {},
  43119. zha: function() {},
  43120. Bd: function(c, d) {
  43121. void 0 !== d.opacity &&
  43122. c.J(d.opacity);
  43123. c.F(f.color(void 0 !== d.colorR ? d.colorR : 255, void 0 !== d.colorG ? d.colorG : 255, void 0 !== d.colorB ? d.colorB : 255));
  43124. c.S(void 0 !== d.anchorPointX ? d.anchorPointX : c.Cr == y.sE ? 0.5 : 0, void 0 !== d.anchorPointY ? d.anchorPointY : c.Cr == y.sE ? 0.5 : 0);
  43125. var e = d.flipY;
  43126. c.Pd(d.flipX);
  43127. c.Yf(e)
  43128. },
  43129. UI: function(c, d) {
  43130. this.Ie(c, d);
  43131. var e = d.scale9Enable;
  43132. c.zh(e);
  43133. var g = d.normal,
  43134. h = d.pressed,
  43135. k = d.disabled,
  43136. m = g ? this.Ja + g : null,
  43137. n = h ? this.Ja + h : null,
  43138. p = k ? this.Ja + k : null,
  43139. s = d.useMergedTexture;
  43140. e ? (s ? c.Ur(g, h, k, y.cb) : c.Ur(m, n, p), void 0 !== d.scale9Width &&
  43141. void 0 !== d.scale9Height && c.Df(t(d.scale9Width, d.scale9Height))) : s ? c.Ur(g, h, k, y.cb) : c.Ur(m, n, p);
  43142. void 0 !== d.text && (e = d.text || "") && c.jy(e);
  43143. void 0 !== d.fontSize && c.iy(d.fontSize);
  43144. void 0 !== d.fontName && c.hy(d.fontName);
  43145. e = f.color(void 0 !== d.textColorR ? d.textColorR : 255, void 0 !== d.textColorG ? d.textColorG : 255, void 0 !== d.textColorB ? d.textColorB : 255);
  43146. c.gy(e);
  43147. this.Bd(c, d)
  43148. },
  43149. Aha: function(c, d) {
  43150. this.Ie(c, d);
  43151. var e = d.backGroundBox,
  43152. g = d.backGroundBoxSelected,
  43153. h = d.frontCross,
  43154. k = d.backGroundBoxDisabled,
  43155. m = d.frontCrossDisabled,
  43156. n = this.Ja,
  43157. p = e ? n + e : null,
  43158. s = g ? n + g : null,
  43159. u = h ? n + h : null,
  43160. v = k ? n + k : null,
  43161. n = m ? n + m : null;
  43162. d.useMergedTexture ? c.Ur(e, g, h, k, m, y.cb) : c.Ur(p, s, u, v, n);
  43163. c.fy(d.selectedState || !1);
  43164. this.Bd(c, d)
  43165. },
  43166. Bha: function(c, d) {
  43167. this.Ie(c, d);
  43168. var e = d.fileName,
  43169. g = d.scale9Enable || !1;
  43170. c.zh(g);
  43171. var h = this.Ja,
  43172. k = null;
  43173. e && (k = h + e);
  43174. h = d.useMergedTexture;
  43175. g ? (h ? c.Wf(e, y.cb) : c.Wf(k), void 0 !== d.scale9Width && void 0 !== d.scale9Height && c.Df(t(d.scale9Width, d.scale9Height)), c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight))) : h ? c.Wf(e, y.cb) : c.Wf(k);
  43176. this.Bd(c, d)
  43177. },
  43178. G2: function(c, d) {
  43179. this.Ie(c, d);
  43180. c.BR(d.touchScaleEnable);
  43181. c.wa(d.text);
  43182. void 0 !== d.fontSize && c.Qd(d.fontSize);
  43183. void 0 !== d.fontName && c.de(d.fontName);
  43184. void 0 !== d.areaWidth && void 0 !== d.areaHeight && c.Ou(t(d.areaWidth, d.areaHeight));
  43185. d.hAlignment && c.ns(d.hAlignment);
  43186. d.vAlignment && c.os(d.vAlignment);
  43187. this.Bd(c, d)
  43188. },
  43189. Cha: function(c, d) {
  43190. this.Ie(c, d);
  43191. var e = void 0 !== d.charMapFile,
  43192. g = void 0 !== d.itemWidth,
  43193. h = void 0 !== d.itemHeight,
  43194. k = void 0 !== d.startCharMap;
  43195. void 0 !== d.stringValue && e && g && h && k && d.charMapFile &&
  43196. c.setProperty(d.stringValue, this.Ja + d.charMapFile, d.itemWidth, d.itemHeight, d.startCharMap);
  43197. this.Bd(c, d)
  43198. },
  43199. Mu: function(c, d) {
  43200. this.Ie(c, d);
  43201. c instanceof F || c instanceof H || c.Zp(d.clipAble);
  43202. var e = d.backGroundScale9Enable;
  43203. c.$Q(e);
  43204. var g = d.bgColorR,
  43205. h = d.bgColorG,
  43206. k = d.bgColorB,
  43207. m = d.bgStartColorR,
  43208. n = d.bgStartColorG,
  43209. p = d.bgStartColorB,
  43210. s = d.bgEndColorR,
  43211. u = d.bgEndColorG,
  43212. v = d.bgEndColorB;
  43213. c.ZQ(r(d.vectorX, d.vectorY));
  43214. var z = d.bgColorOpacity;
  43215. c.YQ(d.colorType);
  43216. c.Du(f.color(m, n, p), f.color(s, u, v));
  43217. c.Du(f.color(g, h, k));
  43218. c.XQ(z);
  43219. h = (g = d.backGroundImage) ? this.Ja + g : null;
  43220. d.useMergedTexture ? c.Eu(g, y.cb) : c.Eu(h);
  43221. e && c.KI(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight));
  43222. this.Bd(c, d)
  43223. },
  43224. H2: function(c, d) {
  43225. this.Mu(c, d);
  43226. c.ay(t(d.innerWidth, d.innerHeight));
  43227. c.xh(d.direction);
  43228. c.dR(d.bounceEnable);
  43229. this.Bd(c, d)
  43230. },
  43231. Z3a: function(c, d) {
  43232. this.Ie(c, d);
  43233. (c instanceof F || c instanceof H) && c.Zp(d.clipAble);
  43234. this.Bd(c, d)
  43235. },
  43236. Fha: function(c, d) {
  43237. this.Ie(c, d);
  43238. var e = d.barTextureScale9Enable || !1;
  43239. c.zh(e);
  43240. var g = d.length,
  43241. h = d.useMergedTexture;
  43242. if (void 0 !==
  43243. d.barFileName)
  43244. if (e) {
  43245. var k = (e = d.barFileName) ? this.Ja + e : null;
  43246. h ? c.ik(e, y.cb) : c.ik(k);
  43247. c.Df(t(g, c.e().height))
  43248. } else k = (e = d.barFileName) ? this.Ja + e : null, h ? c.ik(e, y.cb) : c.ik(k);
  43249. var g = d.ballNormal,
  43250. e = d.ballPressed,
  43251. k = d.ballDisabled,
  43252. m = g ? this.Ja + g : null,
  43253. n = e ? this.Ja + e : null,
  43254. p = k ? this.Ja + k : null;
  43255. h ? c.jfa(g, e, k, y.cb) : c.jfa(m, n, p);
  43256. c.Fi(d.percent);
  43257. k = (e = d.progressBarFileName) ? this.Ja + e : null;
  43258. h ? c.wu(e, y.cb) : c.wu(k);
  43259. this.Bd(c, d)
  43260. },
  43261. BHa: function(c, d) {
  43262. this.Ie(c, d);
  43263. c.wa(d.text);
  43264. void 0 !== d.fontSize && c.Qd(d.fontSize);
  43265. c.F(f.color(d.colorR,
  43266. d.colorG, d.colorB));
  43267. c.de(d.fontName);
  43268. void 0 !== d.areaWidth && void 0 !== d.areaHeight && c.Ou(t(d.areaWidth, d.areaHeight));
  43269. d.hAlignment && c.ns(d.hAlignment);
  43270. d.vAlignment && c.os(d.vAlignment);
  43271. this.Bd(c, d)
  43272. },
  43273. CHa: function(c, d) {
  43274. this.UI(c, d);
  43275. c.jy(d.text || "");
  43276. c.gy(f.color(void 0 !== d.textColorR ? d.textColorR : 255, void 0 !== d.textColorG ? d.textColorG : 255, void 0 !== d.textColorB ? d.textColorB : 255));
  43277. void 0 !== d.fontSize && c.iy(d.fontSize);
  43278. void 0 !== d.fontName && c.hy(d.fontName);
  43279. this.Bd(c, d)
  43280. },
  43281. Gha: function(c, d) {
  43282. this.Ie(c, d);
  43283. void 0 !==
  43284. d.placeHolder && c.Gi(d.placeHolder);
  43285. c.wa(d.text);
  43286. void 0 !== d.fontSize && c.Qd(d.fontSize);
  43287. void 0 !== d.fontName && c.de(d.fontName);
  43288. void 0 !== d.touchSizeWidth && void 0 !== d.touchSizeHeight && c.Z2(t(d.touchSizeWidth, d.touchSizeHeight));
  43289. var e = d.maxLengthEnable;
  43290. c.cy(e);
  43291. e && c.ks(d.maxLength);
  43292. e = d.passwordEnable;
  43293. c.dy(e);
  43294. e && c.IC(d.passwordStyleText);
  43295. this.Bd(c, d)
  43296. },
  43297. Eha: function(c, d) {
  43298. this.Ie(c, d);
  43299. var e = d.texture,
  43300. g = e ? this.Ja + e : null;
  43301. d.useMergedTexture ? c.Wf(e, y.cb) : c.Wf(g);
  43302. c.xh(d.direction);
  43303. c.Fi(d.percent);
  43304. this.Bd(c, d)
  43305. },
  43306. zHa: function(c,
  43307. d) {
  43308. this.Mu(c, d)
  43309. },
  43310. AHa: function(c, d) {
  43311. this.Mu(c, d)
  43312. },
  43313. Dha: function(c, d) {
  43314. this.Ie(c, d);
  43315. c.GC(this.Ja + d.fileName);
  43316. c.wa(d.text);
  43317. this.Bd(c, d)
  43318. }
  43319. });
  43320. N.Kpa = N.n8.extend({
  43321. o_: function(c, d, e) {
  43322. this.Ja = "" == d ? d : f.path.join(d, "/");
  43323. for (var g = c.textures, h = 0; h < g.length; h++) {
  43324. var k = d,
  43325. k = k + g[h];
  43326. f.Je.vp(k)
  43327. }
  43328. d = c.designWidth;
  43329. g = c.designHeight;
  43330. 0 >= d || 0 >= g ? (f.log("Read design size error!"), N.rk.LR(e, f.Q.Y)) : N.rk.LR(e, t(d, g));
  43331. h = this.aD(c.widgetTree);
  43332. k = h.e();
  43333. 0 == k.width && 0 == k.height && h.Df(t(d, g));
  43334. N.actionManager.Ip(e, c.animation, h);
  43335. return h
  43336. },
  43337. F2: function(c, d, e) {
  43338. c.Cd(d, e)
  43339. },
  43340. zha: function(c, d, e) {
  43341. var g = N.rk,
  43342. h = g.WW[c],
  43343. g = g.XW[c];
  43344. h && g && h.l2a.call(this, c, d, e)
  43345. },
  43346. aD: function(c) {
  43347. var d =
  43348. null,
  43349. e = c.classname,
  43350. g = c.options;
  43351. "Button" == e ? d = Ec.create() : "CheckBox" == e ? d = Fc.create() : "Label" == e ? d = Jc.create() : "LabelAtlas" == e ? d = Lc.create() : "LoadingBar" == e ? d = Hc.create() : "ScrollView" == e ? d = F.create() : "TextArea" == e ? d = Jc.create() : "TextButton" == e ? d = Ec.create() : "TextField" == e ? d = Pc.create() : "ImageView" == e ? d = Gc.create() : "Panel" == e ? d = D.create() : "Slider" == e ? d = Ic.create() : "LabelBMFont" == e ? d = Mc.create() : "DragPanel" == e ? d = F.create() : "ListView" == e ? d = H.create() : "PageView" == e ? d = fd.create() : "Widget" == e && (d = y.create());
  43352. var h = e;
  43353. switch (h) {
  43354. case "Panel":
  43355. h = "Layout";
  43356. break;
  43357. case "TextArea":
  43358. h = "Label";
  43359. break;
  43360. case "TextButton":
  43361. h = "Button"
  43362. }
  43363. if (h = N.jI.lxa(h + "Reader")) this.F2(h, d, g);
  43364. else {
  43365. var k;
  43366. d instanceof Ec ? k = N.e4 : d instanceof Fc ? k = N.M4 : d instanceof Gc ? k = N.F5 : d instanceof Lc ? k = N.U5 : d instanceof Nc ? k = N.V5 : d instanceof Jc ? k = N.W5 : d instanceof Hc ? k = N.b6 : d instanceof Ic ? k = N.l7 : d instanceof Pc ? k = N.y7 : d instanceof H ? k = N.a6 : d instanceof F ? k = N.OT : d instanceof fd ? k = N.L6 : d instanceof D ? k = N.eK : d instanceof y && (k = N.Pe);
  43367. this.F2(k, d, g);
  43368. g || f.log("GetParseError");
  43369. this.zha(e, d, g)
  43370. }
  43371. c = c.children;
  43372. for (e = 0; e < c.length; e++)
  43373. if (g = this.aD(c[e])) d instanceof fd ? d.AO(g) : d instanceof H ? d.Sfa(g) : (d instanceof D && (g.vh == y.H6 && (k = g.Od(), h = d.bk(), g.D2(r(k.x + h.x, k.y + h.y))), k = d.Bp(), g.o(r(g.Vc() + k.x, g.Zd() + k.y))), d.n(g));
  43374. return d
  43375. },
  43376. Ie: function(c, d) {
  43377. var e = d.name;
  43378. c.gf(e ? e : "default");
  43379. void 0 !== d.ignoreSize && c.df(d.ignoreSize);
  43380. c.P2(d.sizeType);
  43381. c.E2(d.positionType);
  43382. c.Oha(r(d.sizePercentX, d.sizePercentY));
  43383. c.D2(r(d.positionPercentX, d.positionPercentY));
  43384. c.Df(t(d.width, d.height));
  43385. c.Nm(d.tag);
  43386. c.Vx(d.actiontag);
  43387. c.Om(d.touchAble);
  43388. c.o(r(d.x, d.y));
  43389. void 0 !== d.scaleX && c.jb(d.scaleX);
  43390. void 0 !== d.scaleY && c.tb(d.scaleY);
  43391. void 0 !== d.rotation && c.yh(d.rotation);
  43392. void 0 !== d.visible && c.za(d.visible);
  43393. c.tl(d.ZOrder);
  43394. if (e = d.layoutParameter) {
  43395. var g;
  43396. switch (e.type) {
  43397. case 1:
  43398. g = nc.create();
  43399. g.vc(e.gravity);
  43400. break;
  43401. case 2:
  43402. g = E.create(), g.sR(e.relativeName), g.tR(e.relativeToName), g.VQ(e.align)
  43403. }
  43404. g.lo(new rc(e.marginLeft, e.marginTop, e.marginRight, e.marginDown));
  43405. c.by(g)
  43406. }
  43407. },
  43408. Bd: function(c, d) {
  43409. void 0 !== d.opacity && c.J(d.opacity);
  43410. c.F(f.color(void 0 !== d.colorR ? d.colorR : 255, void 0 !== d.colorG ? d.colorG : 255, void 0 !== d.colorB ? d.colorB : 255));
  43411. c.S(void 0 !== d.anchorPointX ? d.anchorPointX : c.Cr == y.sE ? 0.5 : 0, void 0 !== d.anchorPointY ? d.anchorPointY : c.Cr == y.sE ? 0.5 : 0);
  43412. var e = d.flipY;
  43413. c.Pd(d.flipX);
  43414. c.Yf(e)
  43415. },
  43416. UI: function(c, d) {
  43417. this.Ie(c, d);
  43418. var e = d.scale9Enable;
  43419. c.zh(e);
  43420. var g = d.normalData;
  43421. switch (g.resourceType) {
  43422. case 0:
  43423. g = g.path;
  43424. c.Hx(g ? this.Ja + g : null);
  43425. break;
  43426. case 1:
  43427. g = g.path, c.Hx(g, y.cb)
  43428. }
  43429. g = d.pressedData;
  43430. switch (g.resourceType) {
  43431. case 0:
  43432. g = g.path;
  43433. c.Ix(g ? this.Ja +
  43434. g : null);
  43435. break;
  43436. case 1:
  43437. g = g.path, c.Ix(g, y.cb)
  43438. }
  43439. g = d.disabledData;
  43440. switch (g.resourceType) {
  43441. case 0:
  43442. g = g.path;
  43443. c.Gx(g ? this.Ja + g : null);
  43444. break;
  43445. case 1:
  43446. g = g.path, c.Gx(g, y.cb)
  43447. }
  43448. e && (c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), void 0 !== d.scale9Width && void 0 !== d.scale9Height && c.Df(t(d.scale9Width, d.scale9Height)));
  43449. void 0 !== d.text && (e = d.text || "") && c.jy(e);
  43450. void 0 !== d.fontSize && c.iy(d.fontSize);
  43451. void 0 !== d.fontName && c.hy(d.fontName);
  43452. e = f.color(void 0 !== d.textColorR ? d.textColorR : 255, void 0 !== d.textColorG ?
  43453. d.textColorG : 255, void 0 !== d.textColorB ? d.textColorB : 255);
  43454. c.gy(e);
  43455. this.Bd(c, d)
  43456. },
  43457. Aha: function(c, d) {
  43458. this.Ie(c, d);
  43459. var e = d.backGroundBoxData;
  43460. switch (e.resourceType) {
  43461. case 0:
  43462. e = e.path;
  43463. c.jC(e ? this.Ja + e : null);
  43464. break;
  43465. case 1:
  43466. e = e.path, c.jC(e, y.cb)
  43467. }
  43468. e = d.backGroundBoxSelectedData;
  43469. switch (e.resourceType) {
  43470. case 0:
  43471. e = e.path;
  43472. c.lC(e ? this.Ja + e : null);
  43473. break;
  43474. case 1:
  43475. e = e.path, c.lC(e, y.cb)
  43476. }
  43477. e = d.frontCrossData;
  43478. switch (e.resourceType) {
  43479. case 0:
  43480. e = e.path;
  43481. c.mC(e ? this.Ja + e : null);
  43482. break;
  43483. case 1:
  43484. e = e.path, c.mC(e, y.cb)
  43485. }
  43486. e = d.backGroundBoxDisabledData;
  43487. switch (e.resourceType) {
  43488. case 0:
  43489. e = e.path;
  43490. c.kC(e ? this.Ja + e : null);
  43491. break;
  43492. case 1:
  43493. e = e.path, c.kC(e, y.cb)
  43494. }
  43495. switch (d.frontCrossDisabledData.resourceType) {
  43496. case 0:
  43497. e = d.path;
  43498. c.nC(e ? this.Ja + e : null);
  43499. break;
  43500. case 1:
  43501. e = d.path, c.nC(e, y.cb)
  43502. }
  43503. c.fy(d.selectedState || !1);
  43504. c.fy(d, "selectedState");
  43505. this.Bd(c, d)
  43506. },
  43507. Bha: function(c, d) {
  43508. this.Ie(c, d);
  43509. var e = d.fileNameData;
  43510. switch (e.resourceType) {
  43511. case 0:
  43512. var g = this.Ja;
  43513. (e = e.path) && c.Wf(g + e);
  43514. break;
  43515. case 1:
  43516. e = e.path, c.Wf(e, y.cb)
  43517. }
  43518. g = d.scale9Enable || !1;
  43519. c.zh(g);
  43520. g && (void 0 !== d.scale9Width && void 0 !== d.scale9Height &&
  43521. c.Df(t(d.scale9Width, d.scale9Height)), c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)));
  43522. this.Bd(c, d)
  43523. },
  43524. G2: function(c, d) {
  43525. this.Ie(c, d);
  43526. c.BR(d.touchScaleEnable);
  43527. c.wa(d.text);
  43528. void 0 !== d.fontSize && c.Qd(d.fontSize);
  43529. void 0 !== d.fontName && c.de(d.fontName);
  43530. void 0 !== d.areaWidth && void 0 !== d.areaHeight && c.Ou(t(d.areaWidth, d.areaHeight));
  43531. d.hAlignment && c.ns(d.hAlignment);
  43532. d.vAlignment && c.os(d.vAlignment);
  43533. this.Bd(c, d)
  43534. },
  43535. Cha: function(c, d) {
  43536. this.Ie(c, d);
  43537. var e = void 0 !== d.charMapFile,
  43538. g = void 0 !== d.itemWidth,
  43539. h = void 0 !== d.itemHeight,
  43540. k = void 0 !== d.startCharMap;
  43541. if (void 0 !== d.stringValue && e && g && h && k) switch (e = d.charMapFileData, e.resourceType) {
  43542. case 0:
  43543. c.setProperty(d.stringValue, this.Ja + e.path, d.itemWidth, d.itemHeight, d.startCharMap);
  43544. break;
  43545. case 1:
  43546. f.log("Wrong res type of LabelAtlas!")
  43547. }
  43548. this.Bd(c, d)
  43549. },
  43550. Mu: function(c, d) {
  43551. this.Ie(c, d);
  43552. c instanceof F || c instanceof H || c.Zp(d.clipAble);
  43553. var e = d.backGroundScale9Enable;
  43554. c.$Q(e);
  43555. var g = d.bgColorR,
  43556. h = d.bgColorG,
  43557. k = d.bgColorB,
  43558. m = d.bgStartColorR,
  43559. n = d.bgStartColorG,
  43560. p = d.bgStartColorB,
  43561. s = d.bgEndColorR,
  43562. u = d.bgEndColorG,
  43563. v = d.bgEndColorB;
  43564. c.ZQ(r(d.vectorX, d.vectorY));
  43565. var z = d.bgColorOpacity;
  43566. c.YQ(d.colorType);
  43567. c.Du(f.color(m, n, p), f.color(s, u, v));
  43568. c.Du(f.color(g, h, k));
  43569. c.XQ(z);
  43570. g = d.backGroundImageData || {};
  43571. switch (g.resourceType) {
  43572. case 0:
  43573. g = g.path;
  43574. c.Eu(g ? this.Ja + g : null);
  43575. break;
  43576. case 1:
  43577. g = g.path, c.Eu(g, y.cb)
  43578. }
  43579. e && c.KI(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight));
  43580. c.Mm(d.layoutType);
  43581. this.Bd(c, d)
  43582. },
  43583. H2: function(c, d) {
  43584. this.Mu(c, d);
  43585. c.ay(t(d.innerWidth, d.innerHeight));
  43586. c.xh(d.direction);
  43587. c.dR(d.bounceEnable);
  43588. this.Bd(c, d)
  43589. },
  43590. Fha: function(c, d) {
  43591. this.Ie(c, d);
  43592. var e = d.barTextureScale9Enable || !1;
  43593. c.zh(e);
  43594. var g = d.length;
  43595. if (void 0 !== d.barFileName)
  43596. if (e) {
  43597. var e = d.barFileNameData,
  43598. h = e.resourceType;
  43599. switch (h) {
  43600. case 0:
  43601. e = (e = e.path) ? this.Ja + e : null;
  43602. c.ik(e);
  43603. break;
  43604. case 1:
  43605. e = e.path, c.ik(e, y.cb)
  43606. }
  43607. c.Df(t(g, c.e().height))
  43608. } else switch (e = d.barFileNameData, h = e.resourceType, h) {
  43609. case 0:
  43610. e = (e = e.path) ? this.Ja + e : null;
  43611. c.ik(e);
  43612. break;
  43613. case 1:
  43614. e = e.path, c.ik(e, y.cb)
  43615. }
  43616. g = d.ballNormalData;
  43617. switch (g.resourceType) {
  43618. case 0:
  43619. g = g.path;
  43620. c.hC(g ? this.Ja + g : null);
  43621. break;
  43622. case 1:
  43623. g = g.path, c.hC(g, y.cb)
  43624. }
  43625. g = d.ballPressedData;
  43626. switch (g.resourceType) {
  43627. case 0:
  43628. g = g.path;
  43629. c.iC(g ? this.Ja + g : null);
  43630. break;
  43631. case 1:
  43632. g = g.path, c.iC(g, y.cb)
  43633. }
  43634. g = d.ballDisabledData;
  43635. switch (g.resourceType) {
  43636. case 0:
  43637. g = g.path;
  43638. c.gC(g ? this.Ja + g : null);
  43639. break;
  43640. case 1:
  43641. g = g.path, c.gC(g, y.cb)
  43642. }
  43643. g = d.progressBarData;
  43644. switch (g.resourceType) {
  43645. case 0:
  43646. e = (e = g.path) ? this.Ja + e : null;
  43647. c.wu(e);
  43648. break;
  43649. case 1:
  43650. e = g.path, c.wu(e, y.cb)
  43651. }
  43652. this.Bd(c, d);
  43653. c.Fi(d.percent)
  43654. },
  43655. BHa: function(c, d) {
  43656. this.Ie(c, d);
  43657. c.wa(d.text);
  43658. void 0 !== d.fontSize && c.Qd(d.fontSize);
  43659. c.F(f.color(d.colorR,
  43660. d.colorG, d.colorB));
  43661. c.de(d.fontName);
  43662. void 0 !== d.areaWidth && void 0 !== d.areaHeight && c.Ou(t(d.areaWidth, d.areaHeight));
  43663. d.hAlignment && c.ns(d.hAlignment);
  43664. d.vAlignment && c.os(d.vAlignment);
  43665. this.Bd(c, d)
  43666. },
  43667. CHa: function(c, d) {
  43668. this.UI(c, d);
  43669. c.jy(d.text || "");
  43670. c.gy(f.color(void 0 !== d.textColorR ? d.textColorR : 255, void 0 !== d.textColorG ? d.textColorG : 255, void 0 !== d.textColorB ? d.textColorB : 255));
  43671. void 0 !== d.fontSize && c.iy(d.fontSize);
  43672. void 0 !== d.fontName && c.hy(d.fontName);
  43673. this.Bd(c, d)
  43674. },
  43675. Gha: function(c, d) {
  43676. this.Ie(c, d);
  43677. void 0 !==
  43678. d.placeHolder && c.Gi(d.placeHolder);
  43679. c.wa(d.text);
  43680. void 0 !== d.fontSize && c.Qd(d.fontSize);
  43681. void 0 !== d.fontName && c.de(d.fontName);
  43682. void 0 !== d.touchSizeWidth && void 0 !== d.touchSizeHeight && c.Z2(t(d.touchSizeWidth, d.touchSizeHeight));
  43683. var e = d.maxLengthEnable;
  43684. c.cy(e);
  43685. e && c.ks(d.maxLength);
  43686. e = d.passwordEnable;
  43687. c.dy(e);
  43688. e && c.IC(d.passwordStyleText);
  43689. this.Bd(c, d)
  43690. },
  43691. Eha: function(c, d) {
  43692. this.Ie(c, d);
  43693. var e = d.textureData;
  43694. switch (e.resourceType) {
  43695. case 0:
  43696. var g = this.Ja;
  43697. (e = e.path) && c.Wf(g + e);
  43698. break;
  43699. case 1:
  43700. e = e.path, c.Wf(e, y.cb)
  43701. }
  43702. g = d.scale9Enable;
  43703. c.zh(g);
  43704. g && (c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), c.Df(t(d.width, d.height)));
  43705. c.xh(d.direction);
  43706. c.Fi(d.percent);
  43707. this.Bd(c, d)
  43708. },
  43709. zHa: function(c, d) {
  43710. this.Mu(c, d);
  43711. c.ay(t(d.innerWidth || 0, d.innerHeight || 0));
  43712. c.xh(d.direction || 0);
  43713. c.vc(d.gravity || 0);
  43714. c.y2(d.itemMargin || 0)
  43715. },
  43716. AHa: function(c, d) {
  43717. this.Mu(c, d)
  43718. },
  43719. Dha: function(c, d) {
  43720. this.Ie(c, d);
  43721. var e = d.fileNameData;
  43722. switch (e.resourceType) {
  43723. case 0:
  43724. c.GC(this.Ja + e.path);
  43725. break;
  43726. case 1:
  43727. f.log("Wrong res type of LabelAtlas!")
  43728. }
  43729. c.wa(d.text);
  43730. this.Bd(c,
  43731. d)
  43732. }
  43733. });
  43734. N.X1a = {
  43735. eV: "",
  43736. T$: null,
  43737. dY: null,
  43738. nf: null,
  43739. DQa: function(c) {
  43740. this.nf = null;
  43741. this.eV = f.path.dirname(c);
  43742. var d = f.L.zd(c);
  43743. if (!d) throw "Please load the resource first : " + c;
  43744. this.nf = this.fH(d, null);
  43745. N.t3.parse(d.Triggers || []);
  43746. return this.nf
  43747. },
  43748. fH: function(c, d) {
  43749. var e = c.classname;
  43750. if ("CCNode" == e) {
  43751. var g = null;
  43752. d ? (g = f.v.create(), d.n(g)) : g = f.v.create();
  43753. this.yHa(g, c);
  43754. for (var h = c.components, k = 0; k < h.length; k++) {
  43755. var m = h[k];
  43756. if (!m) break;
  43757. var e = m.classname,
  43758. n = m.name,
  43759. p = m.fileData,
  43760. s = "",
  43761. u = "",
  43762. v = 0;
  43763. null != p && (v = void 0 !== p.resourceType ? p.resourceType :
  43764. -1, s = f.path.join(this.eV, p.path), u = p.plistFile);
  43765. var z = f.path.zp(s);
  43766. if ("CCSprite" == e) {
  43767. e = null;
  43768. if (0 == v) {
  43769. if (".png" != z) continue;
  43770. e = f.q.create(s)
  43771. } else if (1 == v) {
  43772. if (".plist" != z) continue;
  43773. u = f.path.join(this.eV, u);
  43774. f.Je.vp(u, f.path.c_(u, ".png"));
  43775. e = f.q.create("#" + p.path)
  43776. } else continue;
  43777. s = N.cv.create(e, "CCSprite");
  43778. null != n && s.gf(n);
  43779. g.fu(s);
  43780. this.Ss(e, m)
  43781. } else if ("CCTMXTiledMap" == e) p = null, 0 == v && ".tmx" == z && (p = f.xK.create(s), s = N.cv.create(p, "CCTMXTiledMap"), null != n && s.gf(n), g.fu(s), this.Ss(p, m));
  43782. else if ("CCParticleSystemQuad" ==
  43783. e) ".plist" == z && (z = null, 0 == v ? (z = f.A.create(s), z.o(0, 0), s = N.cv.create(z, "CCParticleSystemQuad"), null != n && s.gf(n), g.fu(s), this.Ss(z, m)) : f.log("unknown resourcetype on CCParticleSystemQuad!"));
  43784. else if ("CCArmature" == e) 0 == v && ((v = f.L.zd(s)) || f.log("Please load the resource [%s] first!", s), v = v.armature_data[0].name, N.Dr.Jva(s), v = N.tk.create(v), s = N.cv.create(v, "CCArmature"), null != n && s.gf(n), g.fu(s), (n = m.selectedactionname) && v.cl() && v.cl().play(n), this.Ss(v, m));
  43785. else if ("CCComAudio" == e) {
  43786. var A = null;
  43787. 0 == v && (A =
  43788. N.LJ.create(), A.lFa(s), n && A.gf(n), g.fu(A), this.Ss(A, m))
  43789. } else "CCComAttribute" == e ? (z = null, 0 == v ? (z = N.vS.create(), "" != s && z.parse(s), n && z.gf(n), g.fu(z), this.Ss(z, m)) : f.log("unknown resourcetype on CCComAttribute!")) : "CCBackgroundAudio" == e ? z && 0 == v && (A = N.LJ.create(), A.kFa(s), A.$ga(s), v = Boolean(m.loop || 0), A.mR(v), n && A.gf(n), g.fu(A), A.bFa(s, v), this.Ss(A, m)) : "GUIComponent" == e && (s = N.rk.nJa(s), s = N.cv.create(s, "GUIComponent"), null != n && s.gf(n), g.fu(s), this.Ss(A, m))
  43790. }
  43791. h = c.gameobjects;
  43792. for (k = 0; k < h.length; k++) {
  43793. m = h[k];
  43794. if (!m) break;
  43795. this.fH(m, g)
  43796. }
  43797. return g
  43798. }
  43799. return null
  43800. },
  43801. tfa: function(c, d) {
  43802. if (null == c) return null;
  43803. for (var e = null, g = c.re(), h = 0; h < g.length && (!(e = g[h]) || e.Em() != d) && !(e = this.tfa(e, d)); h++);
  43804. return e
  43805. },
  43806. nP: function(c) {
  43807. return null == this.nf ? null : this.nf.Em() == c ? this.nf : this.tfa(this.nf, c)
  43808. },
  43809. yHa: function(c, d) {
  43810. c.o("undefined" === typeof d.x ? 0 : d.x, "undefined" === typeof d.y ? 0 : d.y);
  43811. c.za(Boolean("undefined" === typeof d.visible ? 1 : d.visible));
  43812. c.Nm("undefined" === typeof d.objecttag ? -1 : d.objecttag);
  43813. c.tl("undefined" === typeof d.zorder ?
  43814. 0 : d.zorder);
  43815. var e = "undefined" === typeof d.scaley ? 1 : d.scaley;
  43816. c.jb("undefined" === typeof d.scalex ? 1 : d.scalex);
  43817. c.tb(e);
  43818. c.yh("undefined" === typeof d.rotation ? 0 : d.rotation)
  43819. },
  43820. ZI: function(c, d) {
  43821. this.T$ = d;
  43822. this.dY = c
  43823. },
  43824. Ss: function(c, d) {
  43825. this.dY && this.dY.call(this.T$, c, d)
  43826. },
  43827. version: function() {
  43828. return "1.2.0.0"
  43829. },
  43830. clear: function() {
  43831. N.t3.kk();
  43832. f.pe.end()
  43833. }
  43834. };
  43835. N.nNa = N.N.extend({
  43836. Cd: function() {}
  43837. });
  43838. N.Pe = {
  43839. ek: function() {
  43840. return N.Pe
  43841. },
  43842. Cd: function(c, d) {
  43843. var e = d.ignoreSize;
  43844. e && c.df(e);
  43845. c.P2(d.sizeType);
  43846. c.E2(d.positionType);
  43847. c.Oha(r(d.sizePercentX, d.sizePercentY));
  43848. c.D2(r(d.positionPercentX, d.positionPercentY));
  43849. c.Df(t(d.width, d.height));
  43850. c.Nm(d.tag);
  43851. c.Vx(d.actiontag);
  43852. c.Om(d.touchAble);
  43853. e = d.name;
  43854. c.gf(e ? e : "default");
  43855. c.o(r(d.x, d.y));
  43856. (e = d.scalex) && c.jb(e);
  43857. (e = d.scaleY) && c.tb(e);
  43858. (e = d.rotation) && c.yh(e);
  43859. (e = d.visible) && c.za(e);
  43860. c.tl(d.ZOrder);
  43861. if (d.layoutParameter) {
  43862. var e = d.layoutParameter,
  43863. g = null;
  43864. switch (e.type) {
  43865. case 1:
  43866. g =
  43867. new nc;
  43868. g.vc(e.gravity);
  43869. break;
  43870. case 2:
  43871. var h = g = new E;
  43872. h.sR(e.relativeName);
  43873. h.tR(e.relativeToName);
  43874. h.VQ(e.align)
  43875. }
  43876. g && (g.lo(e.marginLeft, e.marginTop, e.marginRight, e.marginDown), c.by(g))
  43877. }
  43878. },
  43879. ko: function(c, d) {
  43880. var e = d.opacity;
  43881. e && c.J(e);
  43882. c.F(f.color(d.colorR || 255, d.colorG || 255, d.colorB || 255));
  43883. c.S(r(d.anchorPointX || (c.Cr === N.Lpa ? 0.5 : 0), d.anchorPointY || (c.Cr === N.Lpa ? 0.5 : 0)))
  43884. }
  43885. };
  43886. N.e4 = {
  43887. ek: function() {
  43888. return N.e4
  43889. },
  43890. Cd: function(c, d) {
  43891. N.Pe.Cd.call(this, c, d);
  43892. var e = N.rk.Ja,
  43893. g = d.scale9Enable;
  43894. c.zh(g);
  43895. var h = d.normalData;
  43896. switch (h.resourceType) {
  43897. case 0:
  43898. h = h.path;
  43899. c.Hx(h && "" !== h ? e + h : null);
  43900. break;
  43901. case 1:
  43902. h = h.path, c.Hx(h, 1)
  43903. }
  43904. h = d.pressedData;
  43905. switch (h.resourceType) {
  43906. case 0:
  43907. h = h.path;
  43908. c.Ix(h && "" !== h ? e + h : null);
  43909. break;
  43910. case 1:
  43911. h = h.path, c.Ix(h, 1)
  43912. }
  43913. h = d.disabledData;
  43914. switch (h.resourceType) {
  43915. case 0:
  43916. h = h.path;
  43917. c.Gx(h && "" !== h ? e + h : null);
  43918. break;
  43919. case 1:
  43920. h = h.path, c.Gx(h, 1)
  43921. }
  43922. g && (c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth,
  43923. d.capInsetsHeight)), e = d.scale9Height, d.scale9Width && e && c.Df(t(d.scale9Width, d.scale9Height)));
  43924. d.text && (e = d.text) && c.jy(e);
  43925. c.gy(f.color(d.textColorR ? d.textColorR : 255, d.textColorG ? d.textColorG : 255, d.textColorB ? d.textColorB : 255));
  43926. d.fontSize && c.iy(d.fontSize);
  43927. d.fontName && c.hy(d.fontName);
  43928. N.Pe.ko.call(this, c, d)
  43929. }
  43930. };
  43931. N.M4 = {
  43932. ek: function() {
  43933. return N.M4
  43934. },
  43935. Cd: function(c, d) {
  43936. N.Pe.Cd.call(this, c, d);
  43937. var e = N.rk.Ja,
  43938. g = d.backGroundBoxData;
  43939. switch (g.resourceType) {
  43940. case 0:
  43941. g = g.path;
  43942. c.jC(g && "" !== g ? e + g : null);
  43943. break;
  43944. case 1:
  43945. g = g.path, c.jC(g, 1)
  43946. }
  43947. g = d.backGroundBoxSelectedData;
  43948. switch (g.resourceType) {
  43949. case 0:
  43950. g = g.path;
  43951. c.lC(g && "" !== g ? e + g : null);
  43952. break;
  43953. case 1:
  43954. g = g.path, c.lC(g, 1)
  43955. }
  43956. g = d.frontCrossData;
  43957. switch (g.resourceType) {
  43958. case 0:
  43959. g = g.path;
  43960. c.mC(g && "" !== g ? e + g : null);
  43961. break;
  43962. case 1:
  43963. g = g.path, c.mC(g, 1)
  43964. }
  43965. g = d.backGroundBoxDisabledData;
  43966. switch (g.resourceType) {
  43967. case 0:
  43968. g =
  43969. g.path;
  43970. c.kC(g && "" !== g ? e + g : null);
  43971. break;
  43972. case 1:
  43973. g = g.path, c.kC(g, 1)
  43974. }
  43975. switch (d.frontCrossDisabledData.resourceType) {
  43976. case 0:
  43977. g = d.path;
  43978. c.nC(g && "" !== g ? e + g : null);
  43979. break;
  43980. case 1:
  43981. g = d.path, c.nC(g, 1)
  43982. }
  43983. N.Pe.ko.call(this, c, d)
  43984. }
  43985. };
  43986. N.F5 = {
  43987. ek: function() {
  43988. return N.F5
  43989. },
  43990. Cd: function(c, d) {
  43991. N.Pe.Cd.call(this, c, d);
  43992. var e = N.rk.Ja,
  43993. g = d.fileNameData;
  43994. switch (g.resourceType) {
  43995. case 0:
  43996. (g = g.path) && "" !== g && c.Wf(e + g);
  43997. break;
  43998. case 1:
  43999. g = g.path, c.Wf(g, 1)
  44000. }
  44001. e = !1;
  44002. d.scale9Enable && (e = d.scale9Enable);
  44003. c.zh(e);
  44004. e && (e = d.scale9Height, d.scale9Width && e && c.Df(t(d.scale9Width, d.scale9Height)), c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)));
  44005. N.Pe.ko.call(this, c, d)
  44006. }
  44007. };
  44008. N.U5 = {
  44009. ek: function() {
  44010. return N.U5
  44011. },
  44012. Cd: function(c, d) {
  44013. N.Pe.Cd.call(this, c, d);
  44014. var e = N.rk.Ja,
  44015. g = d.charMapFileData || d.charMapFile,
  44016. h = d.itemWidth,
  44017. k = d.itemHeight,
  44018. m = d.startCharMap;
  44019. if (d.stringValue && g && h && k && m) switch (g = d.charMapFileData, g.resourceType) {
  44020. case 0:
  44021. c.setProperty(d.stringValue, e + g.path, d.itemWidth, d.itemHeight, d.startCharMap);
  44022. break;
  44023. case 1:
  44024. f.log("Wrong res type of LabelAtlas!")
  44025. }
  44026. N.Pe.ko.call(this, c, d)
  44027. }
  44028. };
  44029. N.V5 = {
  44030. ek: function() {
  44031. return N.V5
  44032. },
  44033. Cd: function(c, d) {
  44034. N.Pe.Cd.call(this, c, d);
  44035. var e = N.rk.Ja,
  44036. g = d.fileNameData;
  44037. switch (g.resourceType) {
  44038. case 0:
  44039. c.GC(e + g.path);
  44040. break;
  44041. case 1:
  44042. f.log("Wrong res type of LabelAtlas!")
  44043. }
  44044. c.wa(d.text);
  44045. N.Pe.ko.call(this, c, d)
  44046. }
  44047. };
  44048. N.W5 = {
  44049. ek: function() {
  44050. return N.W5
  44051. },
  44052. Cd: function(c, d) {
  44053. N.Pe.Cd.call(this, c, d);
  44054. c.BR(d.touchScaleEnable);
  44055. c.wa(d.text);
  44056. d.fontSize && c.Qd(d.fontSize);
  44057. d.fontName && c.de(d.fontName);
  44058. var e = d.areaHeight;
  44059. d.areaWidth && e && c.Ou(t(d.areaWidth, d.areaHeight));
  44060. d.hAlignment && c.ns(d.hAlignment);
  44061. d.vAlignment && c.os(d.vAlignment);
  44062. N.Pe.ko.call(this, c, d)
  44063. }
  44064. };
  44065. N.eK = {
  44066. ek: function() {
  44067. return N.eK
  44068. },
  44069. Cd: function(c, d) {
  44070. N.Pe.Cd.call(this, c, d);
  44071. var e = N.rk.Ja,
  44072. g = 0,
  44073. h = 0;
  44074. d.adaptScreen ? (h = f.Q.Y, g = h.width, h = h.height) : (g = d.width, h = d.height);
  44075. c.Df(t(g, h));
  44076. c.Zp(d.clipAble);
  44077. g = d.backGroundScale9Enable;
  44078. c.$Q(g);
  44079. var h = d.bgColorR,
  44080. k = d.bgColorG,
  44081. m = d.bgColorB,
  44082. n = d.bgStartColorR,
  44083. p = d.bgStartColorG,
  44084. s = d.bgStartColorB,
  44085. u = d.bgEndColorR,
  44086. v = d.bgEndColorG,
  44087. z = d.bgEndColorB;
  44088. c.ZQ(r(d.vectorX, d.vectorY));
  44089. var A = d.bgColorOpacity;
  44090. c.YQ(d.colorType);
  44091. c.Du(f.color(n, p, s), f.color(u, v, z));
  44092. c.Du(f.color(h, k, m));
  44093. c.XQ(A);
  44094. if (h = d.backGroundImageData) switch (h.resourceType) {
  44095. case 0:
  44096. h = h.path;
  44097. c.Eu(h && "" !== h ? e + h : null);
  44098. break;
  44099. case 1:
  44100. h = h.path, c.Eu(h, 1)
  44101. }
  44102. g && c.KI(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight));
  44103. c.Mm(d.layoutType);
  44104. N.Pe.ko.call(this, c, d)
  44105. }
  44106. };
  44107. N.OT = {
  44108. ek: function() {
  44109. return N.OT
  44110. },
  44111. Cd: function(c, d) {
  44112. N.eK.Cd.call(this, c, d);
  44113. c.ay(t(d.innerWidth, d.innerHeight));
  44114. c.xh(d.direction);
  44115. c.dR(d.bounceEnable);
  44116. N.Pe.ko.call(this, c, d)
  44117. }
  44118. };
  44119. N.a6 = {
  44120. ek: function() {
  44121. return N.a6
  44122. },
  44123. Cd: function(c, d) {
  44124. N.OT.Cd.call(this, c, d);
  44125. c.xh(d.direction);
  44126. c.vc(d.gravity);
  44127. c.y2(d.itemMargin)
  44128. }
  44129. };
  44130. N.b6 = {
  44131. ek: function() {
  44132. return N.b6
  44133. },
  44134. Cd: function(c, d) {
  44135. N.Pe.Cd.call(this, c, d);
  44136. var e = N.rk.Ja,
  44137. g = d.textureData;
  44138. switch (g.resourceType) {
  44139. case 0:
  44140. (g = g.path) && "" !== g && c.Wf(e + g);
  44141. break;
  44142. case 1:
  44143. g = g.path, c.Wf(g, 1)
  44144. }
  44145. e = d.scale9Enable;
  44146. c.zh(e);
  44147. e && (c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), c.Df(t(d.width, d.height)));
  44148. c.xh(d.direction);
  44149. c.Fi(d.percent);
  44150. N.Pe.ko.call(this, c, d)
  44151. }
  44152. };
  44153. N.L6 = {
  44154. mXa: null,
  44155. ek: function() {
  44156. return N.L6
  44157. },
  44158. Cd: function(c, d) {
  44159. N.eK.Cd.call(this, c, d)
  44160. }
  44161. };
  44162. N.l7 = {
  44163. ek: function() {
  44164. return N.l7
  44165. },
  44166. Cd: function(c, d) {
  44167. N.Pe.Cd.call(this, c, d);
  44168. var e = N.rk.Ja,
  44169. g = d.scale9Enable;
  44170. c.zh(g);
  44171. var h = d.length;
  44172. if (d.barFileName) {
  44173. if (g) {
  44174. var g = d.barFileNameData,
  44175. k = d.resourceType;
  44176. switch (k) {
  44177. case 0:
  44178. g = (g = g.path) && "" !== g ? e + g : null;
  44179. c.ik(g);
  44180. break;
  44181. case 1:
  44182. g = g.path, c.ik(g, 1)
  44183. }
  44184. c.Df(t(h, c.e().height))
  44185. }
  44186. } else switch (g = d.barFileNameData, k = g.resourceType, k) {
  44187. case 0:
  44188. g = (g = g.path) && "" !== g ? e + g : null;
  44189. c.ik(g);
  44190. break;
  44191. case 1:
  44192. g = g.path, c.ik(g, 1)
  44193. }
  44194. h = d.ballNormalData;
  44195. switch (h.resourceType) {
  44196. case 0:
  44197. h = h.path;
  44198. c.hC(h && "" !==
  44199. h ? e + h : null);
  44200. break;
  44201. case 1:
  44202. h = h.path, c.hC(h, 1)
  44203. }
  44204. h = d.ballPressedData;
  44205. switch (h.resourceType) {
  44206. case 0:
  44207. h = h.path;
  44208. c.iC(h && "" !== h ? e + h : null);
  44209. break;
  44210. case 1:
  44211. h = h.path, c.iC(h, 1)
  44212. }
  44213. h = d.ballDisabledData;
  44214. switch (h.resourceType) {
  44215. case 0:
  44216. h = h.path;
  44217. c.gC(h && "" !== h ? e + h : null);
  44218. break;
  44219. case 1:
  44220. h = h.path, c.gC(h, 1)
  44221. }
  44222. h = d.progressBarData;
  44223. switch (h.resourceType) {
  44224. case 0:
  44225. g = (g = h.path) && "" !== g ? e + g : null;
  44226. c.wu(g);
  44227. break;
  44228. case 1:
  44229. g = h.path, c.wu(g, 1)
  44230. }
  44231. N.Pe.ko.call(this, c, d)
  44232. }
  44233. };
  44234. N.y7 = {
  44235. ek: function() {
  44236. return N.y7
  44237. },
  44238. Cd: function(c, d) {
  44239. N.Pe.Cd.call(this, c, d);
  44240. var e = d.placeHolder;
  44241. e && c.Gi(e);
  44242. c.wa(d.text);
  44243. (e = d.fontSize1) && c.Qd(e);
  44244. (e = d.fontName) && c.de(e);
  44245. var e = d.touchSizeWidth,
  44246. g = d.touchSizeHeight;
  44247. e && g && c.Z2(e, g);
  44248. e = d.maxLengthEnable;
  44249. c.cy(e);
  44250. e && c.ks(d.maxLength);
  44251. e = d.passwordEnable;
  44252. c.dy(e);
  44253. e && c.IC(d.passwordStyleText);
  44254. e = d.areaWidth;
  44255. g = d.areaHeight;
  44256. e && g && c.Ou(t(e, g));
  44257. (e = d.hAlignment) && c.ns(e);
  44258. (e = d.vAlignment) && c.os(e);
  44259. N.Pe.ko.call(this, c, d)
  44260. }
  44261. };
  44262. function Ad(c, d) {
  44263. this.name = c;
  44264. this.parent = d
  44265. }
  44266. Ad.prototype = {
  44267. length: 0,
  44268. x: 0,
  44269. y: 0,
  44270. tea: !0,
  44271. sea: !0
  44272. };
  44273. function Bd(c, d) {
  44274. this.name = c;
  44275. this.boneData = d
  44276. }
  44277. Bd.prototype = {
  44278. AZ: null,
  44279. wZ: !1
  44280. };
  44281. function Cd(c, d) {
  44282. this.data = c;
  44283. this.parent = d;
  44284. this.Pu()
  44285. }
  44286. Cd.prototype = {
  44287. x: 0,
  44288. y: 0,
  44289. Hm: 0,
  44290. Op: 0,
  44291. Qm: 0,
  44292. Im: 0,
  44293. m11: 0,
  44294. Rm: 0,
  44295. uJ: 0,
  44296. ry: 1,
  44297. sy: 1,
  44298. YC: function(c, d) {
  44299. var e = this.parent;
  44300. null != e ? (this.Qm = this.x * e.Hm + this.y * e.Op + e.Qm, this.Rm = this.x * e.Im + this.y * e.m11 + e.Rm, this.data.tea ? (this.ry = e.ry * this.scaleX, this.sy = e.sy * this.scaleY) : (this.ry = this.scaleX, this.sy = this.scaleY), this.uJ = this.data.sea ? e.uJ + this.rotation : this.rotation) : (this.Qm = c ? -this.x : this.x, this.Rm = !1 != d ? -this.y : this.y, this.ry = this.scaleX, this.sy = this.scaleY, this.uJ = this.rotation);
  44301. var g = this.uJ * Math.PI / 180,
  44302. e = Math.cos(g),
  44303. g = Math.sin(g);
  44304. this.Hm = e * this.ry;
  44305. this.Im = g * this.ry;
  44306. this.Op = -g * this.sy;
  44307. this.m11 = e * this.sy;
  44308. c && (this.Hm = -this.Hm, this.Op = -this.Op);
  44309. !1 != d && (this.Im = -this.Im, this.m11 = -this.m11)
  44310. },
  44311. Pu: function() {
  44312. var c = this.data;
  44313. this.x = c.x;
  44314. this.y = c.y;
  44315. this.rotation = c.rotation;
  44316. this.scaleX = c.scaleX;
  44317. this.scaleY = c.scaleY
  44318. }
  44319. };
  44320. function Dd(c, d, e) {
  44321. this.data = c;
  44322. this.yl = d;
  44323. this.ij = e;
  44324. this.Pu()
  44325. }
  44326. Dd.prototype = {
  44327. nqa: 0,
  44328. Xh: null,
  44329. Yx: function(c) {
  44330. this.Xh = c;
  44331. this.nqa = this.yl.time
  44332. },
  44333. Pu: function() {
  44334. var c = this.data;
  44335. this.r = c.r;
  44336. this.g = c.g;
  44337. this.b = c.b;
  44338. this.a = c.a;
  44339. for (var d = this.yl.data.Ef, e = 0, g = d.length; e < g; e++)
  44340. if (d[e] == c) {
  44341. this.Yx(c.AZ ? Ed(this.yl, e, c.AZ) : null);
  44342. break
  44343. }
  44344. }
  44345. };
  44346. function Fd(c) {
  44347. this.name = c;
  44348. this.EO = {}
  44349. }
  44350. Fd.prototype = {
  44351. rH: function(c, d) {
  44352. return this.EO[c + ":" + d]
  44353. }
  44354. };
  44355. function Gd(c, d, e) {
  44356. this.name = c;
  44357. this.via = d;
  44358. this.duration = e
  44359. }
  44360. Gd.prototype = {
  44361. apply: function(c, d, e, g, h) {
  44362. g && 0 != this.duration && (e %= this.duration, d %= this.duration);
  44363. g = this.via;
  44364. for (var k = 0, m = g.length; k < m; k++) g[k].apply(c, d, e, h, 1)
  44365. }
  44366. };
  44367. function Hd(c, d, e) {
  44368. var g = 0,
  44369. h = Math.floor(c.length / e) - 2;
  44370. if (0 == h) return e;
  44371. for (var k = h >>> 1;;) {
  44372. c[(k + 1) * e] <= d ? g = k + 1 : h = k;
  44373. if (g == h) return (g + 1) * e;
  44374. k = g + h >>> 1
  44375. }
  44376. }
  44377. function Id(c) {
  44378. this.lj = [];
  44379. this.lj.length = 6 * (c - 1)
  44380. }
  44381. Id.prototype = {};
  44382. function Jd(c, d, e) {
  44383. e = 0 > e ? 0 : 1 < e ? 1 : e;
  44384. var g = 6 * d,
  44385. h = c.lj;
  44386. d = h[g];
  44387. if (!d) return e;
  44388. if (-1 == d) return 0;
  44389. c = h[g + 1];
  44390. for (var k = h[g + 2], m = h[g + 3], n = h[g + 4], p = h[g + 5], g = d, h = c, s = 8;;) {
  44391. if (g >= e) return d = g - d, c = h - c, c + (h - c) * (e - d) / (g - d);
  44392. if (0 == s) break;
  44393. s--;
  44394. d += k;
  44395. c += m;
  44396. k += n;
  44397. m += p;
  44398. g += d;
  44399. h += c
  44400. }
  44401. return h + (1 - h) * (e - g) / (1 - g)
  44402. }
  44403. function Kd(c) {
  44404. this.lj = new Id(c);
  44405. this.frames = [];
  44406. this.frames.length = 2 * c
  44407. }
  44408. Kd.prototype = {
  44409. ex: 0,
  44410. Am: function() {
  44411. return this.frames.length / 2
  44412. },
  44413. Lm: function(c, d, e) {
  44414. c *= 2;
  44415. this.frames[c] = d;
  44416. this.frames[c + 1] = e
  44417. },
  44418. apply: function(c, d, e, g, h) {
  44419. d = this.frames;
  44420. if (!(e < d[0])) {
  44421. c = c.xd[this.ex];
  44422. if (e >= d[d.length - 2]) d = c.data.rotation + d[d.length - 1] - c.rotation;
  44423. else {
  44424. var k = Hd(d, e, 2);
  44425. g = d[k - 1];
  44426. var m = d[k];
  44427. e = 1 - (e - m) / (d[k - 2] - m);
  44428. e = Jd(this.lj, k / 2 - 1, e);
  44429. for (d = d[k + 1] - g; 180 < d;) d -= 360;
  44430. for (; - 180 > d;) d += 360;
  44431. d = c.data.rotation + (g + d * e) - c.rotation
  44432. }
  44433. for (; 180 < d;) d -= 360;
  44434. for (; - 180 > d;) d += 360;
  44435. c.rotation += d * h
  44436. }
  44437. }
  44438. };
  44439. function Ld(c) {
  44440. this.lj = new Id(c);
  44441. this.frames = [];
  44442. this.frames.length = 3 * c
  44443. }
  44444. Ld.prototype = {
  44445. ex: 0,
  44446. Am: function() {
  44447. return this.frames.length / 3
  44448. },
  44449. Lm: function(c, d, e, g) {
  44450. c *= 3;
  44451. this.frames[c] = d;
  44452. this.frames[c + 1] = e;
  44453. this.frames[c + 2] = g
  44454. },
  44455. apply: function(c, d, e, g, h) {
  44456. d = this.frames;
  44457. if (!(e < d[0]))
  44458. if (c = c.xd[this.ex], e >= d[d.length - 3]) c.x += (c.data.x + d[d.length - 2] - c.x) * h, c.y += (c.data.y + d[d.length - 1] - c.y) * h;
  44459. else {
  44460. g = Hd(d, e, 3);
  44461. var k = d[g - 2],
  44462. m = d[g - 1],
  44463. n = d[g];
  44464. e = 1 - (e - n) / (d[g + -3] - n);
  44465. e = Jd(this.lj, g / 3 - 1, e);
  44466. c.x += (c.data.x + k + (d[g + 1] - k) * e - c.x) * h;
  44467. c.y += (c.data.y + m + (d[g + 2] - m) * e - c.y) * h
  44468. }
  44469. }
  44470. };
  44471. function Md(c) {
  44472. this.lj = new Id(c);
  44473. this.frames = [];
  44474. this.frames.length = 3 * c
  44475. }
  44476. Md.prototype = {
  44477. ex: 0,
  44478. Am: function() {
  44479. return this.frames.length / 3
  44480. },
  44481. Lm: function(c, d, e, g) {
  44482. c *= 3;
  44483. this.frames[c] = d;
  44484. this.frames[c + 1] = e;
  44485. this.frames[c + 2] = g
  44486. },
  44487. apply: function(c, d, e, g, h) {
  44488. d = this.frames;
  44489. if (!(e < d[0]))
  44490. if (c = c.xd[this.ex], e >= d[d.length - 3]) c.scaleX += (c.data.scaleX - 1 + d[d.length - 2] - c.scaleX) * h, c.scaleY += (c.data.scaleY - 1 + d[d.length - 1] - c.scaleY) * h;
  44491. else {
  44492. g = Hd(d, e, 3);
  44493. var k = d[g - 2],
  44494. m = d[g - 1],
  44495. n = d[g];
  44496. e = 1 - (e - n) / (d[g + -3] - n);
  44497. e = Jd(this.lj, g / 3 - 1, e);
  44498. c.scaleX += (c.data.scaleX - 1 + k + (d[g + 1] - k) * e - c.scaleX) * h;
  44499. c.scaleY += (c.data.scaleY -
  44500. 1 + m + (d[g + 2] - m) * e - c.scaleY) * h
  44501. }
  44502. }
  44503. };
  44504. function Nd(c) {
  44505. this.lj = new Id(c);
  44506. this.frames = [];
  44507. this.frames.length = 5 * c
  44508. }
  44509. Nd.prototype = {
  44510. KC: 0,
  44511. Am: function() {
  44512. return this.frames.length / 5
  44513. },
  44514. Lm: function(c, d, e, g, h, k) {
  44515. c *= 5;
  44516. this.frames[c] = d;
  44517. this.frames[c + 1] = e;
  44518. this.frames[c + 2] = g;
  44519. this.frames[c + 3] = h;
  44520. this.frames[c + 4] = k
  44521. },
  44522. apply: function(c, d, e, g, h) {
  44523. d = this.frames;
  44524. if (!(e < d[0]))
  44525. if (c = c.Ef[this.KC], e >= d[d.length - 5]) h = d.length - 1, c.r = d[h - 3], c.g = d[h - 2], c.b = d[h - 1], c.a = d[h];
  44526. else {
  44527. g = Hd(d, e, 5);
  44528. var k = d[g - 4],
  44529. m = d[g - 3],
  44530. n = d[g - 2],
  44531. p = d[g - 1],
  44532. s = d[g];
  44533. e = 1 - (e - s) / (d[g - 5] - s);
  44534. e = Jd(this.lj, g / 5 - 1, e);
  44535. k += (d[g + 1] - k) * e;
  44536. m += (d[g + 2] - m) * e;
  44537. n += (d[g + 3] - n) * e;
  44538. d = p + (d[g + 4] - p) * e;
  44539. 1 > h ? (c.r += (k - c.r) * h, c.g += (m - c.g) * h, c.b += (n - c.b) * h, c.a += (d - c.a) * h) : (c.r = k, c.g = m, c.b = n, c.a = d)
  44540. }
  44541. }
  44542. };
  44543. function Od(c) {
  44544. this.lj = new Id(c);
  44545. this.frames = [];
  44546. this.frames.length = c;
  44547. this.BZ = [];
  44548. this.BZ.length = c
  44549. }
  44550. Od.prototype = {
  44551. KC: 0,
  44552. Am: function() {
  44553. return this.frames.length
  44554. },
  44555. Lm: function(c, d, e) {
  44556. this.frames[c] = d;
  44557. this.BZ[c] = e
  44558. },
  44559. apply: function(c, d, e) {
  44560. d = this.frames;
  44561. e < d[0] || (e = this.BZ[e >= d[d.length - 1] ? d.length - 1 : Hd(d, e, 1) - 1], c.Ef[this.KC].Yx(e ? Ed(c, this.KC, e) : null))
  44562. }
  44563. };
  44564. function Pd(c) {
  44565. this.frames = [];
  44566. this.frames.length = c;
  44567. this.ym = [];
  44568. this.ym.length = c
  44569. }
  44570. Pd.prototype = {
  44571. Am: function() {
  44572. return this.frames.length
  44573. },
  44574. Lm: function(c, d, e) {
  44575. this.frames[c] = d;
  44576. this.ym[c] = e
  44577. },
  44578. apply: function(c, d, e, g, h) {
  44579. if (g) {
  44580. var k = this.frames,
  44581. m = k.length;
  44582. if (d > e) this.apply(c, d, Number.MAX_VALUE, g, h), d = -1;
  44583. else if (d >= k[m - 1]) return;
  44584. if (!(e < k[0])) {
  44585. if (d < k[0]) c = 0;
  44586. else
  44587. for (c = Hd(k, d, 1), d = k[c]; 0 < c && k[c - 1] == d;) c--;
  44588. for (d = this.ym; c < m && e >= k[c]; c++) g.push(d[c])
  44589. }
  44590. }
  44591. }
  44592. };
  44593. function Qd(c) {
  44594. this.frames = [];
  44595. this.frames.length = c;
  44596. this.B_ = [];
  44597. this.B_.length = c
  44598. }
  44599. Qd.prototype = {
  44600. Am: function() {
  44601. return this.frames.length
  44602. },
  44603. Lm: function(c, d, e) {
  44604. this.frames[c] = d;
  44605. this.B_[c] = e
  44606. },
  44607. apply: function(c, d, e) {
  44608. var g = this.frames;
  44609. if (!(e < g[0])) {
  44610. d = c.mu;
  44611. var h = c.Ef;
  44612. if (e = this.B_[e >= g[g.length - 1] ? g.length - 1 : Hd(g, e, 1) - 1])
  44613. for (g = 0, k = e.length; g < k; g++) d[g] = c.Ef[e[g]];
  44614. else
  44615. for (var g = 0, k = h.length; g < k; g++) d[g] = h[g]
  44616. }
  44617. }
  44618. };
  44619. function Rd() {
  44620. this.xd = [];
  44621. this.Ef = [];
  44622. this.gia = [];
  44623. this.ym = [];
  44624. this.lB = []
  44625. }
  44626. Rd.prototype = {
  44627. u_: null,
  44628. pH: function(c) {
  44629. for (var d = this.xd, e = 0, g = d.length; e < g; e++)
  44630. if (d[e].name == c) return d[e];
  44631. return null
  44632. },
  44633. cda: function(c) {
  44634. for (var d = this.xd, e = 0, g = d.length; e < g; e++)
  44635. if (d[e].name == c) return e;
  44636. return -1
  44637. },
  44638. S_: function(c) {
  44639. for (var d = this.Ef, e = 0, g = d.length; e < g; e++)
  44640. if (d[e].name == c) return d[e];
  44641. return null
  44642. },
  44643. qH: function(c) {
  44644. for (var d = this.Ef, e = 0, g = d.length; e < g; e++)
  44645. if (d[e].name == c) return e;
  44646. return -1
  44647. }
  44648. };
  44649. function Sd(c, d) {
  44650. for (var e = c.lB, g = 0, h = e.length; g < h; g++)
  44651. if (e[g].name == d) return e[g];
  44652. return null
  44653. }
  44654. function Td(c) {
  44655. this.data = c;
  44656. this.xd = [];
  44657. for (var d = 0, e = c.xd.length; d < e; d++) {
  44658. var g = c.xd[d];
  44659. this.xd.push(new Cd(g, g.parent ? this.xd[c.xd.indexOf(g.parent)] : null))
  44660. }
  44661. this.Ef = [];
  44662. this.mu = [];
  44663. d = 0;
  44664. for (e = c.Ef.length; d < e; d++) g = c.Ef[d], g = new Dd(g, this, this.xd[c.xd.indexOf(g.boneData)]), this.Ef.push(g), this.mu.push(g)
  44665. }
  44666. Td.prototype = {
  44667. x: 0,
  44668. y: 0,
  44669. fJ: null,
  44670. time: 0,
  44671. gda: !1,
  44672. hda: !1,
  44673. YC: function() {
  44674. for (var c = this.gda, d = this.hda, e = this.xd, g = 0, h = e.length; g < h; g++) e[g].YC(c, d)
  44675. },
  44676. Pu: function() {
  44677. this.n2();
  44678. this.Q2()
  44679. },
  44680. n2: function() {
  44681. for (var c = this.xd, d = 0, e = c.length; d < e; d++) c[d].Pu()
  44682. },
  44683. Q2: function() {
  44684. for (var c = this.Ef, d = 0, e = c.length; d < e; d++) c[d].Pu(d)
  44685. },
  44686. pH: function(c) {
  44687. for (var d = this.xd, e = 0, g = d.length; e < g; e++)
  44688. if (d[e].data.name == c) return d[e];
  44689. return null
  44690. },
  44691. cda: function(c) {
  44692. for (var d = this.xd, e = 0, g = d.length; e < g; e++)
  44693. if (d[e].data.name == c) return e;
  44694. return -1
  44695. },
  44696. S_: function(c) {
  44697. for (var d = this.Ef, e = 0, g = d.length; e < g; e++)
  44698. if (d[e].data.name == c) return d[e];
  44699. return null
  44700. },
  44701. qH: function(c) {
  44702. for (var d = this.Ef, e = 0, g = d.length; e < g; e++)
  44703. if (d[e].data.name == c) return e;
  44704. return -1
  44705. },
  44706. Qha: function(c) {
  44707. if (this.fJ && c) {
  44708. var d = this.fJ;
  44709. console.log(d.EO);
  44710. for (var e in d.EO) {
  44711. var g = e.indexOf(":"),
  44712. d = parseInt(e.substring(0, g)),
  44713. h = e.substring(g + 1),
  44714. g = this.Ef[d];
  44715. g.Xh && g.Xh.name == h && (d = c.rH(d, h)) && g.Yx(d)
  44716. }
  44717. }
  44718. this.fJ = c
  44719. },
  44720. Yx: function(c, d) {
  44721. for (var e = this.Ef, g = 0, h = e.length; g < h; g++) {
  44722. var k = e[g];
  44723. if (k.data.name ==
  44724. c) {
  44725. e = null;
  44726. if (d && (e = this.rH(g, d), !e)) throw "Attachment not found: " + d + ", for slot: " + c;
  44727. k.Yx(e);
  44728. return
  44729. }
  44730. }
  44731. throw "Slot not found: " + c;
  44732. },
  44733. update: function(c) {
  44734. this.time += c
  44735. }
  44736. };
  44737. function Ed(c, d, e) {
  44738. if (c.fJ) {
  44739. var g = c.fJ.rH(d, e);
  44740. if (g) return g
  44741. }
  44742. return c.data.u_ ? c.data.u_.rH(d, e) : null
  44743. }
  44744. function Ud(c) {
  44745. this.name = c
  44746. }
  44747. Ud.prototype = {
  44748. RP: 0,
  44749. bP: 0,
  44750. stringValue: null
  44751. };
  44752. function Vd(c) {
  44753. this.data = c
  44754. }
  44755. Vd.prototype = {
  44756. RP: 0,
  44757. bP: 0,
  44758. stringValue: null
  44759. };
  44760. var Wd = {
  44761. region: 0,
  44762. Lwa: 1
  44763. };
  44764. function Xd(c) {
  44765. this.name = c;
  44766. this.offset = [];
  44767. this.offset.length = 8;
  44768. this.fq = [];
  44769. this.fq.length = 8
  44770. }
  44771. Xd.prototype = {
  44772. x: 0,
  44773. y: 0,
  44774. Sx: null,
  44775. $fa: 0,
  44776. aga: 0,
  44777. dga: 0,
  44778. Zfa: 0,
  44779. cga: 0,
  44780. bga: 0
  44781. };
  44782. function Yd(c, d, e, g, h) {
  44783. d += g.Qm;
  44784. e += g.Rm;
  44785. var k = g.Hm,
  44786. m = g.Op,
  44787. n = g.Im;
  44788. g = g.m11;
  44789. c = c.offset;
  44790. h[0] = c[0] * k + c[1] * m + d;
  44791. h[1] = c[0] * n + c[1] * g + e;
  44792. h[2] = c[2] * k + c[3] * m + d;
  44793. h[3] = c[2] * n + c[3] * g + e;
  44794. h[4] = c[4] * k + c[5] * m + d;
  44795. h[5] = c[4] * n + c[5] * g + e;
  44796. h[6] = c[6] * k + c[7] * m + d;
  44797. h[7] = c[6] * n + c[7] * g + e
  44798. }
  44799. function Zd(c) {
  44800. this.name = c;
  44801. this.k = []
  44802. }
  44803. Zd.prototype = {};
  44804. function $d(c) {
  44805. this.fia = c;
  44806. this.bca = {}
  44807. }
  44808. $d.prototype = {
  44809. Mxa: 0,
  44810. mha: function(c, d, e) {
  44811. this.bca[c.name + ":" + d.name] = e
  44812. }
  44813. };
  44814. function ae(c, d, e) {
  44815. return (d = c.bca[d.name + ":" + e.name]) ? d : c.Mxa
  44816. }
  44817. function be() {}
  44818. be.prototype = {
  44819. next: null,
  44820. zu: null,
  44821. wd: null,
  44822. vm: 0,
  44823. time: 0,
  44824. dC: -1,
  44825. sx: 0,
  44826. r3: 1,
  44827. hI: 0,
  44828. oQ: 0,
  44829. Sp: null,
  44830. Rp: null,
  44831. sC: null,
  44832. tC: null
  44833. };
  44834. function ce(c) {
  44835. this.data = c;
  44836. this.ai = [];
  44837. this.ym = []
  44838. }
  44839. ce.prototype = {
  44840. Sp: null,
  44841. Rp: null,
  44842. sC: null,
  44843. tC: null,
  44844. r3: 1,
  44845. update: function(c) {
  44846. c *= this.r3;
  44847. for (var d = 0; d < this.ai.length; d++) {
  44848. var e = this.ai[d];
  44849. if (e) {
  44850. var g = c * e.r3;
  44851. e.time += g;
  44852. e.zu && (e.zu.time += g, e.hI += g);
  44853. (g = e.next) ? e.dC >= g.vm && de(this, d, g): !e.loop && e.dC >= e.sx && this.MO(d)
  44854. }
  44855. }
  44856. },
  44857. apply: function(c) {
  44858. for (var d = 0; d < this.ai.length; d++) {
  44859. var e = this.ai[d];
  44860. if (e) {
  44861. this.ym.length = 0;
  44862. var g = e.time,
  44863. h = e.dC,
  44864. k = e.sx,
  44865. m = e.loop;
  44866. !m && g > k && (g = k);
  44867. var n = e.zu;
  44868. if (n) {
  44869. var p = n.time;
  44870. !n.loop && p > n.sx && (p = n.sx);
  44871. n.wd.apply(c, p, p, n.loop, null);
  44872. var s = e.hI /
  44873. e.oQ;
  44874. 1 <= s && (s = 1, e.zu = null);
  44875. var u = e.wd,
  44876. n = c,
  44877. p = e.dC,
  44878. v = g,
  44879. z = this.ym;
  44880. m && 0 != u.duration && (v %= u.duration, p %= u.duration);
  44881. for (var u = u.via, A = 0, B = u.length; A < B; A++) u[A].apply(n, p, v, z, s)
  44882. } else e.wd.apply(c, e.dC, g, m, this.ym);
  44883. n = 0;
  44884. for (p = this.ym.length; n < p; n++) v = this.ym[n], null != e.tC && e.tC(d, v), null != this.tC && this.tC(d, v);
  44885. if (m ? h % k > g % k : h < k && g >= k) g = Math.floor(g / k), e.sC && e.sC(d, g), this.sC && this.sC(d, g);
  44886. e.dC = e.time
  44887. }
  44888. }
  44889. },
  44890. qca: function() {
  44891. for (var c = 0, d = this.ai.length; c < d; c++) this.MO(c);
  44892. this.ai.length = 0
  44893. },
  44894. MO: function(c) {
  44895. if (!(c >=
  44896. this.ai.length)) {
  44897. var d = this.ai[c];
  44898. d && (null != d.Rp && d.Rp(c), null != this.Rp && this.Rp(c), this.ai[c] = null)
  44899. }
  44900. },
  44901. Xx: function(c, d, e) {
  44902. var g = new be;
  44903. g.wd = d;
  44904. g.loop = e;
  44905. g.sx = d.duration;
  44906. de(this, c, g);
  44907. return g
  44908. },
  44909. TG: function(c, d, e, g) {
  44910. var h = new be;
  44911. h.wd = d;
  44912. h.loop = e;
  44913. h.sx = d.duration;
  44914. if (e = ee(this, c)) {
  44915. for (; e.next;) e = e.next;
  44916. e.next = h
  44917. } else this.ai[c] = h;
  44918. 0 >= g && (g = e ? g + (e.sx - ae(this.data, e.wd, d)) : 0);
  44919. h.vm = g;
  44920. return h
  44921. },
  44922. vda: function(c) {
  44923. return c >= this.ai.length ? null : this.ai[c]
  44924. }
  44925. };
  44926. function de(c, d, e) {
  44927. var g = ee(c, d);
  44928. if (g) {
  44929. var h = g.zu;
  44930. g.zu = null;
  44931. null != g.Rp && g.Rp(d);
  44932. null != c.Rp && c.Rp(d);
  44933. e.oQ = ae(c.data, g.wd, e.wd);
  44934. 0 < e.oQ && (e.hI = 0, e.zu = h && 0.5 > g.hI / g.oQ ? h : g)
  44935. }
  44936. c.ai[d] = e;
  44937. null != e.Sp && e.Sp(d);
  44938. null != c.Sp && c.Sp(d)
  44939. }
  44940. function ee(c, d) {
  44941. if (d < c.ai.length) return c.ai[d];
  44942. for (; d >= c.ai.length;) c.ai.push(null);
  44943. return null
  44944. }
  44945. function fe(c) {
  44946. this.uwa = c
  44947. }
  44948. fe.prototype = {};
  44949. function ge(c, d, e) {
  44950. var g = e.curve;
  44951. if (g)
  44952. if ("stepped" == g) c.lj.lj[6 * d] = -1;
  44953. else if (g instanceof Array) {
  44954. e = g[0];
  44955. var h = g[1],
  44956. k = g[2],
  44957. m = g[3],
  44958. n = 0.1 * 0.1,
  44959. g = 0.1 * n,
  44960. p = 3 * 0.1,
  44961. s = 3 * n,
  44962. n = 6 * n,
  44963. u = 6 * g,
  44964. v = 2 * -e + k,
  44965. z = 2 * -h + m,
  44966. k = 3 * (e - k) + 1,
  44967. m = 3 * (h - m) + 1;
  44968. d *= 6;
  44969. c = c.lj.lj;
  44970. c[d] = e * p + v * s + k * g;
  44971. c[d + 1] = h * p + z * s + m * g;
  44972. c[d + 2] = v * n + k * u;
  44973. c[d + 3] = z * n + m * u;
  44974. c[d + 4] = k * u;
  44975. c[d + 5] = m * u
  44976. }
  44977. }
  44978. function he(c, d) {
  44979. if (8 != c.length) throw "Color hexidecimal length must be 8, recieved: " + c;
  44980. return parseInt(c.substring(2 * d, 2 * d + 2), 16) / 255
  44981. }
  44982. function ie(c, d) {
  44983. this.qEa = [];
  44984. this.ega = [];
  44985. var e = new je(c),
  44986. g = [];
  44987. g.length = 4;
  44988. for (var h = null;;) {
  44989. var k = ke(e);
  44990. if (null == k) break;
  44991. k = e.trim(k);
  44992. if (0 == k.length) h = null;
  44993. else if (h) {
  44994. var m = new le;
  44995. m.name = k;
  44996. m.page = h;
  44997. m.rotate = "true" == me(e);
  44998. ne(e, g);
  44999. var k = parseInt(g[0]),
  45000. n = parseInt(g[1]);
  45001. ne(e, g);
  45002. var p = parseInt(g[0]),
  45003. s = parseInt(g[1]);
  45004. m.Da = k / h.width;
  45005. m.ga = n / h.height;
  45006. m.rotate ? (m.x3 = (k + s) / h.width, m.E3 = (n + p) / h.height) : (m.x3 = (k + p) / h.width, m.E3 = (n + s) / h.height);
  45007. m.x = k;
  45008. m.y = n;
  45009. m.width = Math.abs(p);
  45010. m.height = Math.abs(s);
  45011. 4 == ne(e, g) && (m.iIa = [parseInt(g[0]), parseInt(g[1]), parseInt(g[2]), parseInt(g[3])], 4 == ne(e, g) && (m.pEa = [parseInt(g[0]), parseInt(g[1]), parseInt(g[2]), parseInt(g[3])], ne(e, g)));
  45012. m.Efa = parseInt(g[0]);
  45013. m.Dfa = parseInt(g[1]);
  45014. ne(e, g);
  45015. m.offsetX = parseInt(g[0]);
  45016. m.offsetY = parseInt(g[1]);
  45017. m.index = parseInt(me(e));
  45018. this.ega.push(m)
  45019. } else h = new oe, h.name = k, h.kza = pe[me(e)], ne(e, g), h.nfa = qe[g[0]], h.kfa = qe[g[1]], m = me(e), h.y3 = re, h.F3 = re, "x" == m ? h.y3 = se : "y" == m ? h.F3 = se : "xy" == m && (h.y3 = h.F3 = se), d.load(h, k, this), this.qEa.push(h)
  45020. }
  45021. }
  45022. ie.prototype = {};
  45023. var pe = {
  45024. SJa: 0,
  45025. wLa: 1,
  45026. PLa: 2,
  45027. RGB565: 3,
  45028. uMa: 4,
  45029. tMa: 5,
  45030. vMa: 6
  45031. },
  45032. qe = {
  45033. YLa: 0,
  45034. iv: 1,
  45035. SLa: 2,
  45036. WLa: 3,
  45037. ULa: 4,
  45038. VLa: 5,
  45039. TLa: 6
  45040. },
  45041. re = 1,
  45042. se = 2;
  45043. function oe() {}
  45044. oe.prototype = {
  45045. kza: null,
  45046. nfa: null,
  45047. kfa: null,
  45048. y3: null,
  45049. F3: null,
  45050. Sx: null
  45051. };
  45052. function le() {}
  45053. le.prototype = {
  45054. page: null,
  45055. x: 0,
  45056. y: 0,
  45057. Da: 0,
  45058. ga: 0,
  45059. x3: 0,
  45060. E3: 0,
  45061. Efa: 0,
  45062. Dfa: 0,
  45063. index: 0,
  45064. rotate: !1,
  45065. iIa: null,
  45066. pEa: null
  45067. };
  45068. function je(c) {
  45069. this.ffa = c.split(/\r\n|\r|\n/)
  45070. }
  45071. je.prototype = {
  45072. index: 0,
  45073. trim: function(c) {
  45074. return c.replace(/^\s+|\s+$/g, "")
  45075. }
  45076. };
  45077. function ne(c, d) {
  45078. var e = ke(c),
  45079. g = e.indexOf(":");
  45080. if (-1 == g) throw "Invalid line: " + e;
  45081. for (var h = 0, g = g + 1; 3 > h; h++) {
  45082. var k = e.indexOf(",", g);
  45083. if (-1 == k) {
  45084. if (0 == h) throw "Invalid line: " + e;
  45085. break
  45086. }
  45087. d[h] = c.trim(e.substr(g, k - g));
  45088. g = k + 1
  45089. }
  45090. d[h] = c.trim(e.substring(g));
  45091. return h + 1
  45092. }
  45093. function me(c) {
  45094. var d = ke(c),
  45095. e = d.indexOf(":");
  45096. if (-1 == e) throw "Invalid line: " + d;
  45097. return c.trim(d.substring(e + 1))
  45098. }
  45099. function ke(c) {
  45100. return c.index >= c.ffa.length ? null : c.ffa[c.index++]
  45101. }
  45102. function te(c) {
  45103. this.rwa = c
  45104. }
  45105. te.prototype = {};
  45106. var we = f.ja.extend({
  45107. $e: null,
  45108. cua: null,
  45109. Wt: 1,
  45110. BL: !1,
  45111. AL: !1,
  45112. lN: !1,
  45113. xta: null,
  45114. xNa: null,
  45115. B: null,
  45116. ctor: function() {
  45117. f.ja.prototype.ctor.call(this);
  45118. this.B = {
  45119. src: f.Mc,
  45120. ha: f.Lc
  45121. }
  45122. },
  45123. j: function() {
  45124. f.v.prototype.j.call(this);
  45125. this.ee(!0);
  45126. this.B.src = f.ONE;
  45127. this.B.ha = f.ONE_MINUS_SRC_ALPHA;
  45128. f.K === f.na && this.WI(f.xg.be(f.zo));
  45129. this.ds()
  45130. },
  45131. V2a: function(c) {
  45132. this.BL = c
  45133. },
  45134. U2a: function(c) {
  45135. this.AL = c
  45136. },
  45137. RHa: function(c) {
  45138. this.Wt = c
  45139. },
  45140. KP: function(c, d, e) {
  45141. var g, h, k, m;
  45142. if ("string" == typeof c) {
  45143. if ("string" == typeof d) {
  45144. var n = f.L.zd(d);
  45145. ue.yGa(d);
  45146. h = new ie(n,
  45147. ue)
  45148. } else h = d;
  45149. k = e || 1 / f.Q.Vl;
  45150. var p = new fe(new te(h));
  45151. p.scale = k;
  45152. for (var s = f.L.zd(c), u = new Rd, v = s.bones, z = 0, A = v.length; z < A; z++) {
  45153. var B = v[z],
  45154. C = null;
  45155. if (B.parent && (C = u.pH(B.parent), !C)) throw "Parent bone not found: " + B.parent;
  45156. var G = new Ad(B.name, C);
  45157. G.length = (B.length || 0) * p.scale;
  45158. G.x = (B.x || 0) * p.scale;
  45159. G.y = (B.y || 0) * p.scale;
  45160. G.rotation = B.rotation || 0;
  45161. G.scaleX = B.scaleX || 1;
  45162. G.scaleY = B.scaleY || 1;
  45163. G.tea = !B.inheritScale || "true" == B.inheritScale;
  45164. G.sea = !B.inheritRotation || "true" == B.inheritRotation;
  45165. u.xd.push(G)
  45166. }
  45167. for (var L =
  45168. s.slots, z = 0, A = L.length; z < A; z++) {
  45169. var O = L[z],
  45170. G = u.pH(O.bone);
  45171. if (!G) throw "Slot bone not found: " + O.bone;
  45172. var R = new Bd(O.name, G),
  45173. M = O.color;
  45174. M && (R.r = he(M, 0), R.g = he(M, 1), R.b = he(M, 2), R.a = he(M, 3));
  45175. R.AZ = O.attachment;
  45176. R.wZ = O.additive && "true" == O.additive;
  45177. u.Ef.push(R)
  45178. }
  45179. var K = s.skins,
  45180. P;
  45181. for (P in K)
  45182. if (K.hasOwnProperty(P)) {
  45183. var I = K[P],
  45184. J = new Fd(P),
  45185. V;
  45186. for (V in I)
  45187. if (I.hasOwnProperty(V)) {
  45188. var ma = u.qH(V),
  45189. W = I[V],
  45190. fa;
  45191. for (fa in W)
  45192. if (W.hasOwnProperty(fa)) {
  45193. var ta, Y = p,
  45194. wa = fa,
  45195. Z = W[fa],
  45196. wa = Z.name || wa,
  45197. Oa = Wd[Z.type || "region"],
  45198. Q = void 0;
  45199. a: {
  45200. switch (Oa) {
  45201. case Wd.Lwa:
  45202. Q =
  45203. new Zd(wa);
  45204. break a;
  45205. case Wd.region:
  45206. var oa;
  45207. b: {
  45208. for (var ob = Y.uwa.rwa.ega, Pa = 0, Ub = ob.length; Pa < Ub; Pa++)
  45209. if (ob[Pa].name == wa) {
  45210. oa = ob[Pa];
  45211. break b
  45212. }
  45213. oa = null
  45214. }
  45215. if (!oa) throw "Region not found in atlas: " + wa + " (" + Oa + ")";
  45216. var za = new Xd(wa);
  45217. za.Sx = oa;
  45218. var mb = oa.Da,
  45219. nb = oa.ga,
  45220. Ja = oa.x3,
  45221. Ob = oa.E3,
  45222. ua = za.fq;
  45223. oa.rotate ? (ua[2] = mb, ua[3] = Ob, ua[4] = mb, ua[5] = nb, ua[6] = Ja, ua[7] = nb, ua[0] = Ja, ua[1] = Ob) : (ua[0] = mb, ua[1] = Ob, ua[2] = mb, ua[3] = nb, ua[4] = Ja, ua[5] = nb, ua[6] = Ja, ua[7] = Ob);
  45224. za.$fa = oa.offsetX;
  45225. za.aga = oa.offsetY;
  45226. za.dga = oa.width;
  45227. za.Zfa = oa.height;
  45228. za.cga = oa.Efa;
  45229. za.bga = oa.Dfa;
  45230. Q = za;
  45231. break a
  45232. }
  45233. throw "Unknown attachment type: " + Oa;
  45234. }
  45235. if (Oa == Wd.region) {
  45236. Q.x = (Z.x || 0) * Y.scale;
  45237. Q.y = (Z.y || 0) * Y.scale;
  45238. Q.scaleX = Z.scaleX || 1;
  45239. Q.scaleY = Z.scaleY || 1;
  45240. Q.rotation = Z.rotation || 0;
  45241. Q.width = (Z.width || 32) * Y.scale;
  45242. Q.height = (Z.height || 32) * Y.scale;
  45243. var hd = Q.width / Q.cga * Q.scaleX,
  45244. id = Q.height / Q.bga * Q.scaleY,
  45245. xc = -Q.width / 2 * Q.scaleX + Q.$fa * hd,
  45246. yc = -Q.height / 2 * Q.scaleY + Q.aga * id,
  45247. jd = xc + Q.dga * hd,
  45248. kd = yc + Q.Zfa * id,
  45249. ld = Q.rotation * Math.PI / 180,
  45250. Pb = Math.cos(ld),
  45251. Qb = Math.sin(ld),
  45252. md = xc * Pb + Q.x,
  45253. nd = xc * Qb,
  45254. od =
  45255. yc * Pb + Q.y,
  45256. pd = yc * Qb,
  45257. qd = jd * Pb + Q.x,
  45258. rd = jd * Qb,
  45259. sd = kd * Pb + Q.y,
  45260. td = kd * Qb,
  45261. Va = Q.offset;
  45262. Va[0] = md - pd;
  45263. Va[1] = od + nd;
  45264. Va[2] = md - td;
  45265. Va[3] = sd + nd;
  45266. Va[4] = qd - td;
  45267. Va[5] = sd + rd;
  45268. Va[6] = qd - pd;
  45269. Va[7] = od + rd
  45270. } else if (Oa == Wd.SZ)
  45271. for (var ud = Z.vertices, Cc = 0, ze = ud.length; Cc < ze; Cc++) Q.k.push(ud[Cc] * Y.scale);
  45272. ta = Q;
  45273. null != ta && (J.EO[ma + ":" + fa] = ta)
  45274. }
  45275. }
  45276. u.gia.push(J);
  45277. "default" == J.name && (u.u_ = J)
  45278. }
  45279. var zc = s.events,
  45280. Rb;
  45281. for (Rb in zc)
  45282. if (zc.hasOwnProperty(Rb)) {
  45283. var Ac = zc[Rb],
  45284. Sb = new Ud(Rb);
  45285. Sb.RP = Ac["int"] || 0;
  45286. Sb.bP = Ac["float"] || 0;
  45287. Sb.stringValue = Ac.string || null;
  45288. u.ym.push(Sb)
  45289. }
  45290. var Bc = s.animations,
  45291. Tb;
  45292. for (Tb in Bc)
  45293. if (Bc.hasOwnProperty(Tb)) {
  45294. var mf = p,
  45295. nf = Tb,
  45296. cc = Bc[Tb],
  45297. tb = u,
  45298. hb = [],
  45299. Fa = 0,
  45300. Sc = cc.bones,
  45301. ub = void 0;
  45302. for (ub in Sc)
  45303. if (Sc.hasOwnProperty(ub)) {
  45304. var Tc = tb.cda(ub);
  45305. if (-1 == Tc) throw "Bone not found: " + ub;
  45306. var Uc = Sc[ub],
  45307. Aa;
  45308. for (Aa in Uc)
  45309. if (Uc.hasOwnProperty(Aa)) {
  45310. var Ba = Uc[Aa];
  45311. if ("rotate" == Aa) {
  45312. var X = new Kd(Ba.length);
  45313. X.ex = Tc;
  45314. for (var ra = 0, ea = 0, Ia = Ba.length; ea < Ia; ea++) {
  45315. var ya = Ba[ea];
  45316. X.Lm(ra, ya.time, ya.angle);
  45317. ge(X, ra, ya);
  45318. ra++
  45319. }
  45320. hb.push(X);
  45321. Fa = Math.max(Fa, X.frames[2 * X.Am() - 2])
  45322. } else if ("translate" ==
  45323. Aa || "scale" == Aa) {
  45324. var Vc = 1;
  45325. "scale" == Aa ? X = new Md(Ba.length) : (X = new Ld(Ba.length), Vc = mf.scale);
  45326. X.ex = Tc;
  45327. ea = ra = 0;
  45328. for (Ia = Ba.length; ea < Ia; ea++) ya = Ba[ea], X.Lm(ra, ya.time, (ya.x || 0) * Vc, (ya.y || 0) * Vc), ge(X, ra, ya), ra++;
  45329. hb.push(X);
  45330. Fa = Math.max(Fa, X.frames[3 * X.Am() - 3])
  45331. } else throw "Invalid timeline type for a bone: " + Aa + " (" + ub + ")";
  45332. }
  45333. }
  45334. var Wc = cc.slots,
  45335. Eb = void 0;
  45336. for (Eb in Wc)
  45337. if (Wc.hasOwnProperty(Eb)) {
  45338. var Xc = Wc[Eb],
  45339. Fb = tb.qH(Eb);
  45340. for (Aa in Xc)
  45341. if (Xc.hasOwnProperty(Aa))
  45342. if (Ba = Xc[Aa], "color" == Aa) {
  45343. X = new Nd(Ba.length);
  45344. X.KC = Fb;
  45345. ea = ra = 0;
  45346. for (Ia = Ba.length; ea < Ia; ea++) {
  45347. var ya = Ba[ea],
  45348. dc = ya.color,
  45349. of = he(dc, 0),
  45350. pf = he(dc, 1),
  45351. qf = he(dc, 2),
  45352. rf = he(dc, 3);
  45353. X.Lm(ra, ya.time, of, pf, qf, rf);
  45354. ge(X, ra, ya);
  45355. ra++
  45356. }
  45357. hb.push(X);
  45358. Fa = Math.max(Fa, X.frames[5 * X.Am() - 5])
  45359. } else if ("attachment" == Aa) {
  45360. X = new Od(Ba.length);
  45361. X.KC = Fb;
  45362. ea = ra = 0;
  45363. for (Ia = Ba.length; ea < Ia; ea++) ya = Ba[ea], X.Lm(ra++, ya.time, ya.name);
  45364. hb.push(X);
  45365. Fa = Math.max(Fa, X.frames[X.Am() - 1])
  45366. } else throw "Invalid timeline type for a slot: " + Aa + " (" + Eb + ")";
  45367. }
  45368. var ec = cc.events;
  45369. if (ec) {
  45370. X = new Pd(ec.length);
  45371. ea = ra = 0;
  45372. for (Ia = ec.length; ea <
  45373. Ia; ea++) {
  45374. var Sa = ec[ea],
  45375. ib;
  45376. a: {
  45377. for (var Yc = tb.ym, fc = 0, sf = Yc.length; fc < sf; fc++)
  45378. if (Yc[fc].name == Sa.name) {
  45379. ib = Yc[fc];
  45380. break a
  45381. }
  45382. ib = null
  45383. }
  45384. if (!ib) throw "Event not found: " + Sa.name;
  45385. var gc = new Vd(ib);
  45386. gc.RP = Sa.hasOwnProperty("int") ? Sa["int"] : ib.RP;
  45387. gc.bP = Sa.hasOwnProperty("float") ? Sa["float"] : ib.bP;
  45388. gc.stringValue = Sa.hasOwnProperty("string") ? Sa.string : ib.stringValue;
  45389. X.Lm(ra++, Sa.time, gc)
  45390. }
  45391. hb.push(X);
  45392. Fa = Math.max(Fa, X.frames[X.Am() - 1])
  45393. }
  45394. var hc = cc.draworder;
  45395. if (hc) {
  45396. for (var X = new Qd(hc.length), Gb = tb.Ef.length, ea = ra = 0, Ia = hc.length; ea <
  45397. Ia; ea++) {
  45398. var Zc = hc[ea],
  45399. jb = null;
  45400. if (Zc.offsets) {
  45401. jb = [];
  45402. jb.length = Gb;
  45403. for (var Ga = Gb - 1; 0 <= Ga; Ga--) jb[Ga] = -1;
  45404. var $c = Zc.offsets,
  45405. ic = [];
  45406. ic.length = Gb - $c.length;
  45407. for (var vb = 0, ad = 0, Ga = 0, tf = $c.length; Ga < tf; Ga++) {
  45408. var bd = $c[Ga],
  45409. Fb = tb.qH(bd.slot);
  45410. if (-1 == Fb) throw "Slot not found: " + bd.slot;
  45411. for (; vb != Fb;) ic[ad++] = vb++;
  45412. jb[vb + bd.offset] = vb++
  45413. }
  45414. for (; vb < Gb;) ic[ad++] = vb++;
  45415. for (Ga = Gb - 1; 0 <= Ga; Ga--) - 1 == jb[Ga] && (jb[Ga] = ic[--ad])
  45416. }
  45417. X.Lm(ra++, Zc.time, jb)
  45418. }
  45419. hb.push(X);
  45420. Fa = Math.max(Fa, X.frames[X.Am() - 1])
  45421. }
  45422. tb.lB.push(new Gd(nf, hb, Fa))
  45423. }
  45424. g = u;
  45425. m = !0
  45426. } else g = c, m = d;
  45427. this.LHa(g, m);
  45428. this.j()
  45429. },
  45430. SZ: function() {
  45431. for (var c = f.gv, d = f.gv, e = f.p5, g = f.p5, h = this.ka, k = this.ra, m = [], n = this.$e.Ef, p = 0, s = n.length; p < s; ++p) {
  45432. var u = n[p];
  45433. if (u.Xh && 0 == u.Xh.type) {
  45434. var v = u.yl.x,
  45435. z = u.yl.y,
  45436. A = u.ij,
  45437. B = m,
  45438. u = u.Xh.offset,
  45439. v = v + A.Qm,
  45440. z = z + A.Rm;
  45441. B[0] = u[0] * A.Hm + u[1] * A.Op + v;
  45442. B[1] = u[0] * A.Im + u[1] * A.m11 + z;
  45443. B[2] = u[2] * A.Hm + u[3] * A.Op + v;
  45444. B[3] = u[2] * A.Im + u[3] * A.m11 + z;
  45445. B[4] = u[4] * A.Hm + u[5] * A.Op + v;
  45446. B[5] = u[4] * A.Im + u[5] * A.m11 + z;
  45447. B[6] = u[6] * A.Hm + u[7] * A.Op + v;
  45448. B[7] = u[6] * A.Im + u[7] * A.m11 + z;
  45449. c = Math.min(c, m[0] * h, m[6] * h, m[2] *
  45450. h, m[4] * h);
  45451. d = Math.min(d, m[1] * k, m[7] * k, m[3] * k, m[5] * k);
  45452. e = Math.max(e, m[0] * h, m[6] * h, m[2] * h, m[4] * h);
  45453. g = Math.max(g, m[1] * k, m[7] * k, m[3] * k, m[5] * k)
  45454. }
  45455. }
  45456. h = this.Od();
  45457. return x(h.x + c, h.y + d, e - c, g - d)
  45458. },
  45459. YC: function() {
  45460. this.$e.YC()
  45461. },
  45462. Pu: function() {
  45463. this.$e.Pu()
  45464. },
  45465. n2: function() {
  45466. this.$e.n2()
  45467. },
  45468. Q2: function() {
  45469. this.$e.Q2()
  45470. },
  45471. pH: function(c) {
  45472. return this.$e.pH(c)
  45473. },
  45474. S_: function(c) {
  45475. return this.$e.S_(c)
  45476. },
  45477. Qha: function(c) {
  45478. var d = this.$e,
  45479. e;
  45480. a: {
  45481. e = d.data.gia;
  45482. for (var g = 0, h = e.length; g < h; g++)
  45483. if (e[g].name == c) {
  45484. e = e[g];
  45485. break a
  45486. }
  45487. e = null
  45488. }
  45489. if (!e) throw "Skin not found: " +
  45490. c;
  45491. d.Qha(e)
  45492. },
  45493. rH: function(c, d) {
  45494. var e = this.$e;
  45495. return Ed(e, e.data.qH(c), d)
  45496. },
  45497. Yx: function(c, d) {
  45498. return this.$e.Yx(c, d)
  45499. },
  45500. ee: function(c) {
  45501. this.lN = c
  45502. },
  45503. vg: function() {
  45504. return this.lN
  45505. },
  45506. LHa: function(c, d) {
  45507. var e = this.$e = new Td(c);
  45508. this.cua = 0 == e.xd.length ? null : e.xd[0];
  45509. this.xta = d;
  45510. if (f.K === f.fb)
  45511. for (var e = this.$e, g, h, k = 0, m = e.mu.length; k < m; k++) {
  45512. var n = e.mu[k];
  45513. g = n.Xh;
  45514. g instanceof Xd && (g = g.Sx, h = x(g.x, g.y, g.width, g.height), g = f.q.create(g.page.fa, h, g.rotate), this.n(g, -1), n.Dca = g)
  45515. }
  45516. },
  45517. DH: function(c) {
  45518. return c.Sx.page.Sx
  45519. },
  45520. ck: function() {
  45521. return this.B
  45522. },
  45523. ce: function(c) {
  45524. this.B = c
  45525. },
  45526. update: function(c) {
  45527. this.$e.update(c);
  45528. if (f.K === f.fb) {
  45529. this.$a();
  45530. this.$e.YC();
  45531. c = this.$e.mu;
  45532. for (var d = 0, e = c.length; d < e; d++) {
  45533. var g = c[d],
  45534. h = g.Xh,
  45535. k = g.Dca;
  45536. if (h instanceof Xd) {
  45537. if (!k) {
  45538. var m = h.Sx,
  45539. m = f.q.create(m.page.fa, x(m.x, m.y, m.width, m.height), m.rotate);
  45540. this.n(m, -1);
  45541. g.Dca = m
  45542. }
  45543. k.za(!0);
  45544. k.ce(f.Mc, g.data.wZ ? f.ONE : f.Lc);
  45545. m = g.ij;
  45546. k.o(m.Qm + h.x * m.Hm + h.y * m.Op, m.Rm + h.x * m.Im + h.y * m.m11);
  45547. k.ib(m.ry, m.sy);
  45548. k.yh(-(g.ij.uJ + h.rotation))
  45549. } else k && k.za(!1)
  45550. }
  45551. }
  45552. },
  45553. ma: null,
  45554. fn: function() {
  45555. f.qC(this);
  45556. var c = this.$a(),
  45557. d = this.$e;
  45558. d.r = c.r / 255;
  45559. d.g = c.g / 255;
  45560. d.b = c.b / 255;
  45561. d.a = this.vb() / 255;
  45562. this.lN && (d.r *= d.a, d.g *= d.a, d.b *= d.a);
  45563. var e, g, h, k, m, n = new f.Yc,
  45564. p = this.B,
  45565. c = 0;
  45566. for (m = d.Ef.length; c < m; c++)
  45567. if (k = d.mu[c], k.Xh && 0 == k.Xh.type) {
  45568. h = k.Xh;
  45569. var s = this.DH(h);
  45570. k.data.wZ != e ? (g && (g.yB(), g.AC()), e = !e, f.Fm(p.src, e ? f.ONE : p.ha)) : s != g && g && (g.yB(), g.AC());
  45571. g = s;
  45572. s = g.Vb;
  45573. if (g.cg == s && (g.yB(), g.AC(), !g.NQ(2 * g.cg))) return;
  45574. ve(h, k, n, this.lN);
  45575. g.rJ(n, s)
  45576. }
  45577. g && (g.yB(), g.AC());
  45578. e = f.If;
  45579. if (this.BL)
  45580. for (e.wj(0, 0, 255, 255), e.Ju(1), c = 0, m = d.Ef.length; c < m; c++) k = d.mu[c],
  45581. k.Xh && 0 == k.Xh.type && (h = k.Xh, n = new f.Yc, ve(h, k, n), g = [], g.push(r(n.T.k.x, n.T.k.y)), g.push(r(n.aa.k.x, n.aa.k.y)), g.push(r(n.W.k.x, n.W.k.y)), g.push(r(n.Z.k.x, n.Z.k.y)), e.Sf(g, 4, !0));
  45582. if (this.AL) {
  45583. e.Ju(2);
  45584. e.wj(255, 0, 0, 255);
  45585. c = 0;
  45586. for (m = d.xd.length; c < m; c++) n = d.xd[c], e.Sn(r(n.Qm, n.Rm), r(n.data.length * n.Hm + n.Qm, n.data.length * n.Im + n.Rm));
  45587. e.C2(4);
  45588. e.wj(0, 0, 255, 255);
  45589. c = 0;
  45590. for (m = d.xd.length; c < m; c++) n = d.xd[c], e.C_(r(n.Qm, n.Rm)), 0 == c && e.wj(0, 255, 0, 255)
  45591. }
  45592. },
  45593. Rq: function() {
  45594. if (this.BL || this.AL) {
  45595. var c = this.$e,
  45596. d, e, g, h, k = f.If;
  45597. if (this.BL) {
  45598. k.wj(0, 0, 255, 255);
  45599. k.Ju(1);
  45600. var m = [];
  45601. g = 0;
  45602. for (h = c.Ef.length; g < h; g++)
  45603. if (e = c.mu[g], e.Xh && 0 == e.Xh.type) {
  45604. d = e.Xh;
  45605. var n = m;
  45606. if (n) {
  45607. var p = {};
  45608. Yd(d, e.yl.x, e.yl.y, e.ij, p);
  45609. n.length = 0;
  45610. n.push(r(p[0], p[1]));
  45611. n.push(r(p[6], p[7]));
  45612. n.push(r(p[4], p[5]));
  45613. n.push(r(p[2], p[3]))
  45614. }
  45615. k.Sf(m, 4, !0)
  45616. }
  45617. }
  45618. if (this.AL) {
  45619. k.Ju(2);
  45620. k.wj(255, 0, 0, 255);
  45621. g = 0;
  45622. for (h = c.xd.length; g < h; g++) d = c.xd[g], k.Sn(r(d.Qm, d.Rm), r(d.data.length * d.Hm + d.Qm, d.data.length * d.Im + d.Rm));
  45623. k.C2(4);
  45624. k.wj(0, 0, 255, 255);
  45625. g = 0;
  45626. for (h = c.xd.length; g < h; g++) d = c.xd[g], k.C_(r(d.Qm,
  45627. d.Rm)), 0 === g && k.wj(0, 255, 0, 255)
  45628. }
  45629. }
  45630. }
  45631. });
  45632. we.prototype.ma = f.K === f.na ? we.prototype.fn : we.prototype.Rq;
  45633. we.mxa = function(c, d) {
  45634. var e = new we;
  45635. e.KP.apply(e, arguments);
  45636. return e
  45637. };
  45638. we.create = function(c, d, e) {
  45639. var g = new we;
  45640. g.KP.apply(g, arguments);
  45641. return g
  45642. };
  45643. var ue = {
  45644. iia: null,
  45645. yGa: function(c) {
  45646. this.iia = c
  45647. },
  45648. load: function(c, d) {
  45649. var e = f.path.join(f.path.dirname(this.iia), d);
  45650. f.K === f.na ? (e = f.nb.vd(e), c.Sx = f.wq.create(e, 128), c.width = e.h0(), c.height = e.g0()) : c.fa = f.nb.vd(e)
  45651. },
  45652. E5a: function() {}
  45653. };
  45654. function ve(c, d, e, g) {
  45655. var h = {};
  45656. Yd(c, d.yl.x, d.yl.y, d.ij, h);
  45657. var k = d.yl.r * d.r * 255,
  45658. m = d.yl.g * d.g * 255,
  45659. n = d.yl.b * d.b * 255;
  45660. d = d.yl.a * d.a;
  45661. g && (k *= d, m *= d, n *= d);
  45662. e.T.D.r = e.Z.D.r = e.W.D.r = e.aa.D.r = k;
  45663. e.T.D.g = e.Z.D.g = e.W.D.g = e.aa.D.g = m;
  45664. e.T.D.b = e.Z.D.b = e.W.D.b = e.aa.D.b = n;
  45665. e.T.D.a = e.Z.D.a = e.W.D.a = e.aa.D.a = 255 * d;
  45666. e.T.k.x = h[0];
  45667. e.T.k.y = h[1];
  45668. e.Z.k.x = h[2];
  45669. e.Z.k.y = h[3];
  45670. e.W.k.x = h[4];
  45671. e.W.k.y = h[5];
  45672. e.aa.k.x = h[6];
  45673. e.aa.k.y = h[7];
  45674. e.T.t.Da = c.fq[0];
  45675. e.T.t.ga = c.fq[1];
  45676. e.Z.t.Da = c.fq[2];
  45677. e.Z.t.ga = c.fq[3];
  45678. e.W.t.Da = c.fq[4];
  45679. e.W.t.ga = c.fq[5];
  45680. e.aa.t.Da =
  45681. c.fq[6];
  45682. e.aa.t.ga = c.fq[7]
  45683. }
  45684. var xe = we.extend({
  45685. Ic: null,
  45686. ad: null,
  45687. bg: null,
  45688. j: function() {
  45689. this._super();
  45690. this.wGa(new $d(this.$e.data))
  45691. },
  45692. wGa: function(c) {
  45693. c = new ce(c);
  45694. c.Sp = this.jta.bind(this);
  45695. c.sC = this.gta.bind(this);
  45696. c.Rp = this.hta.bind(this);
  45697. c.tC = this.ita.bind(this);
  45698. this.Ic = c
  45699. },
  45700. mha: function(c, d, e) {
  45701. var g = this.Ic.data,
  45702. h = Sd(g.fia, c);
  45703. if (!h) throw "Animation not found: " + c;
  45704. c = Sd(g.fia, d);
  45705. if (!c) throw "Animation not found: " + d;
  45706. g.mha(h, c, e)
  45707. },
  45708. u2a: function(c, d) {
  45709. this.ad = c;
  45710. this.bg = d
  45711. },
  45712. Xx: function(c, d, e) {
  45713. var g = Sd(this.$e.data, d);
  45714. return g ? this.Ic.Xx(c, g,
  45715. e) : (f.log("Spine: Animation not found: " + d), 0)
  45716. },
  45717. TG: function(c, d, e, g) {
  45718. var h = Sd(this.$e.data, d);
  45719. return h ? this.Ic.TG(c, h, e, g) : (f.log("Spine: Animation not found:" + d), 0)
  45720. },
  45721. vda: function(c) {
  45722. return this.Ic.vda(c)
  45723. },
  45724. qca: function() {
  45725. this.Ic.qca()
  45726. },
  45727. MO: function(c) {
  45728. this.Ic.MO(c)
  45729. },
  45730. update: function(c) {
  45731. this._super(c);
  45732. c *= this.Wt;
  45733. this.Ic.update(c);
  45734. this.Ic.apply(this.$e);
  45735. this.$e.YC()
  45736. },
  45737. jta: function(c) {
  45738. this.TK(c, 0, null, 0)
  45739. },
  45740. hta: function(c) {
  45741. this.TK(c, 1, null, 0)
  45742. },
  45743. gta: function(c, d) {
  45744. this.TK(c, 2, null, d)
  45745. },
  45746. ita: function(c, d) {
  45747. this.TK(c,
  45748. 3, d, 0)
  45749. },
  45750. TK: function(c, d, e, g) {
  45751. this.ad && this.bg && this.bg.call(this.ad, this, c, d, e, g)
  45752. }
  45753. });
  45754. xe.mxa = function(c) {
  45755. var d = new xe;
  45756. d.KP.apply(d, arguments);
  45757. return d
  45758. };
  45759. xe.create = function(c, d, e) {
  45760. var g = new xe;
  45761. g.KP.apply(g, arguments);
  45762. return g
  45763. };
  45764. f.r0a = {
  45765. hp: {},
  45766. D0a: function(c) {
  45767. if (c instanceof f.v) {
  45768. var d = c.constructor.prototype.IU;
  45769. if (!d) {
  45770. var e = {
  45771. writable: !0,
  45772. enumerable: !1,
  45773. configurable: !0
  45774. };
  45775. e.value = da.Hda();
  45776. Object.defineProperty(c.constructor.prototype, "__pid", e)
  45777. }
  45778. this.hp[d] || (this.hp[d] = []);
  45779. c.G5a();
  45780. this.hp[d].push(c)
  45781. }
  45782. },
  45783. ZBa: function(c) {
  45784. return (c = this.hp[c.prototype.IU]) && 0 != c.length ? !0 : !1
  45785. },
  45786. p1a: function(c) {
  45787. var d = c.constructor.prototype.IU;
  45788. if (d && (d = this.hp[d]))
  45789. for (var e = 0; e < d.length; e++) c === d[e] && (c.wh(), d.splice(e, 1))
  45790. },
  45791. aUa: function(c) {
  45792. if (this.ZBa(c)) {
  45793. var d =
  45794. this.hp[c.prototype.IU],
  45795. e = Array.prototype.slice.call(arguments);
  45796. e.shift();
  45797. d = d.pop();
  45798. d.PQ.apply(d, e);
  45799. return d
  45800. }
  45801. },
  45802. cRa: function() {
  45803. for (var c in this.hp)
  45804. for (var d = 0; d < this.hp[c].length; d++) this.hp[c][d].wh();
  45805. this.hp = {}
  45806. }
  45807. };
  45808. var Ha = {
  45809. ica: "res/bg.png",
  45810. jca: "res/board.png",
  45811. qwa: "res/arron.png",
  45812. dCa: "res/icon.png",
  45813. qxa: "res/data_img_10_01.png"
  45814. },
  45815. ye = [Ha.ica, Ha.jca, Ha.qwa, Ha.dCa, Ha.qxa, "res/LevelNumbers.png", "res/LevelNumbers.fnt", "res/data_img_01_list4.png", "res/data_img_01_list4.plist", "res/data_img_01_list5.png", "res/data_img_01_list5.plist"];
  45816. for (var S = [], Ae = [], Be = 0; 7 > Be; Be++) {
  45817. S.push([]);
  45818. for (var Ce = 0; 6 > Ce; Ce++) S[Be][Ce] = 0, Ae[Ce] = !1
  45819. }
  45820. var De = [0, 50, 150, 300, 500, 800, 1200, 2E3, 3E3, 5E3],
  45821. Ee = [50, 150, 300, 500, 800, 1200, 2E3, 3E3, 5E3, 999999],
  45822. Fe = [99.5, 90, 80, 70, 60, 50, 40, 30, 20, 10],
  45823. Ge = [99.5, 99.4, 89.9, 79.9, 69.9, 59.9, 49.9, 39.9, 29.9, 19.9],
  45824. He = [0, 100, 300, 600, 1E3, 1500, 2200, 3E3, 4E3, 5500, 7500, 1E4, 15E3],
  45825. Ie = [100, 300, 600, 1E3, 1500, 2200, 3E3, 4E3, 5500, 7500, 1E4, 15E3, 2E4],
  45826. Je = [1, 5.5, 10.5, 15.5, 20.5, 25.5, 30.5, 40.5, 50.5, 60.5, 70.5, 80.5, 90.5],
  45827. Ke = [5.5, 10.5, 15.5, 20.5, 25.5, 30.5, 40.5, 50.5, 60.5, 70.5, 80.5, 90.5, 99.5],
  45828. Le = 0,
  45829. Me = 0,
  45830. T, Ne, Oe = 9999,
  45831. Pe = !1,
  45832. Qe = 9999,
  45833. Re = !1,
  45834. Se = 2E5,
  45835. Te = !1,
  45836. Ue =
  45837. 0,
  45838. Ve = 0,
  45839. We = !0,
  45840. Xe = !0,
  45841. U = 0,
  45842. Ye = 0,
  45843. Ze = 0,
  45844. $e = !1,
  45845. af = 0,
  45846. bf = !1,
  45847. cf = null,
  45848. df = null,
  45849. ef = !0,
  45850. $ = f.Je,
  45851. ff = 0,
  45852. gf = !1,
  45853. hf = !1,
  45854. jf = !1,
  45855. kf = 0,
  45856. lf = 0,
  45857. uf = !1,
  45858. wf = f.Me.extend({
  45859. mQa: null,
  45860. HZ: null,
  45861. Xd: null,
  45862. Tca: 0,
  45863. Zxa: 9999,
  45864. aya: 9999,
  45865. Yd: null,
  45866. Uca: 0,
  45867. $xa: 9999,
  45868. bya: 9999,
  45869. O: null,
  45870. qe: 0,
  45871. zXa: !0,
  45872. ZB: !0,
  45873. cYa: !0,
  45874. $G: null,
  45875. $O: null,
  45876. XPa: 0,
  45877. Pr: !0,
  45878. ctor: function() {
  45879. this._super();
  45880. f.Je.vp("res/data_img_01_list4.plist");
  45881. f.Je.vp("res/data_img_01_list5.plist");
  45882. var c = f.Q.Y;
  45883. this.O = 62;
  45884. var d = f.q.create(Ha.ica);
  45885. d.Wa({
  45886. x: 200,
  45887. y: c.height / 2,
  45888. scale: 1,
  45889. anchorX: 0.5,
  45890. anchorY: 0.5
  45891. });
  45892. this.n(d, 0);
  45893. this.HZ = f.q.create(Ha.jca);
  45894. this.HZ.Wa({
  45895. x: 200,
  45896. y: 65,
  45897. scale: 1,
  45898. anchorX: 0.5,
  45899. anchorY: 0
  45900. });
  45901. this.n(this.HZ, 0);
  45902. this.qe = 81;
  45903. var e = c.height - 10,
  45904. d = f.q.create(f.Je.Ca("data_img_06.png"));
  45905. d.Wa({
  45906. x: 350,
  45907. y: e,
  45908. scale: 1,
  45909. anchorX: 1,
  45910. anchorY: 1
  45911. });
  45912. this.n(d, 1);
  45913. var g = f.q.create(f.Je.Ca("data_img_09.png"));
  45914. g.Wa({
  45915. x: 10,
  45916. y: e,
  45917. scale: 1,
  45918. anchorX: 0,
  45919. anchorY: 1
  45920. });
  45921. this.n(g, 1);
  45922. var h = f.ws.create();
  45923. h.x = 0;
  45924. h.y = 0;
  45925. this.n(h, 1);
  45926. var k = f.q.create("res/data_img_10_01.png");
  45927. k.Wa({
  45928. x: 200,
  45929. y: c.height / 2,
  45930. scale: 1,
  45931. anchorX: 0.5,
  45932. anchorY: 0.5
  45933. });
  45934. this.n(k, 1E3, 7007);
  45935. k.visible = !1;
  45936. c = f.Il.create(f.Je.Ca("help.png"), f.Je.Ca("help.png"), function() {
  45937. var c = this.Za(7007);
  45938. null != c && (jf = c.visible = !0)
  45939. }, this);
  45940. c.Wa({
  45941. x: 395,
  45942. y: e - 10,
  45943. anchorX: 1,
  45944. anchorY: 1
  45945. });
  45946. h.n(c);
  45947. Ze = Ye = U = 0;
  45948. df = window.localStorage;
  45949. cf = df.getItem("isStorage");
  45950. c = df.getItem("G3WE2AFG34");
  45951. null != c && (U = parseInt(c));
  45952. c = df.getItem("JDI392FS39K");
  45953. null != c && (Ye = parseInt(c));
  45954. c = df.getItem("DS2G34AH85F");
  45955. null != c && (Ze = parseInt(c));
  45956. kf = df.getItem("FK38USJSK2E");
  45957. lf = df.getItem("SJ903JLSHNQ");
  45958. c = f.qq.create(Ye.toString(), "res/LevelNumbers.fnt");
  45959. c.anchorX =
  45960. 0;
  45961. c.anchorY = 0.5;
  45962. c.x = g.x + 0.6 * g.width;
  45963. c.y = g.y - 0.6 * g.height;
  45964. this.n(c, 1, 5050);
  45965. af = d.x - 0.65 * d.width;
  45966. numberFirstY = d.y - 0.6 * d.height;
  45967. d = f.qq.create(U.toString(), "res/LevelNumbers.fnt");
  45968. d.anchorX = 0;
  45969. d.anchorY = 0.5;
  45970. d.x = af;
  45971. d.y = numberFirstY;
  45972. this.n(d, 1, 4050);
  45973. null != cf && this.qCa();
  45974. this.ds();
  45975. return !0
  45976. },
  45977. qCa: function() {
  45978. var c = df.getItem("DJIOSI3JSA");
  45979. if (null != c) {
  45980. for (var d = !1, c = c.split("|"), e = 0; e < c.length; e++) {
  45981. for (var g = 9999, h = 9999, k = 9999, m = c[e].split(","), n = 0; n < m.length; n++) 0 == n ? g = m[n] : 1 == n ? h = m[n] : 2 == n && (k = m[n]);
  45982. g = parseInt(g);
  45983. h = parseInt(h);
  45984. k = parseInt(k);
  45985. 0 <= g && 7 > g && 0 <= h && 6 > h && (2 == k || 4 == k || 8 == k || 16 == k || 32 == k || 64 == k || 128 == k || 256 == k || 512 == k || 1024 == k || 2048 == k) && (d = !0, S[g][h] = k, k = f.q.create($.Ca("number" + k + ".png")), k.Wa({
  45986. x: 14 + this.O * h + 0.5 * this.O,
  45987. y: this.qe + this.O * g,
  45988. scale: 1,
  45989. anchorX: 0.5,
  45990. anchorY: 0
  45991. }), this.n(k, 1, parseInt(1E3 + 10 * g + h)))
  45992. }
  45993. d || this.D0()
  45994. } else this.D0()
  45995. },
  45996. D0: function() {
  45997. var c = Math.round(1 * f.U1()),
  45998. d = c + 2;
  45999. S[0][c] = 2;
  46000. S[0][d] = 4;
  46001. S[0][d + 2] = 8;
  46002. for (c = 0; 7 > c; c++)
  46003. for (d = 0; 6 > d; d++)
  46004. if (c = parseInt(c), d = parseInt(d), 0 < S[c][d]) {
  46005. var e = f.q.create($.Ca("number" +
  46006. S[c][d] + ".png"));
  46007. e.Wa({
  46008. x: 14 + this.O * d + 0.5 * this.O,
  46009. y: this.qe + this.O * c,
  46010. scale: 1,
  46011. anchorX: 0.5,
  46012. anchorY: 0
  46013. });
  46014. this.n(e, 1, 1E3 + 10 * c + d)
  46015. }
  46016. },
  46017. eza: function() {
  46018. if (uf) {
  46019. var c = 14 + 1.5 * T.O + T.O,
  46020. d = T.qe + 7 * T.O + 14,
  46021. e = f.q.create($.Ca("number2.png"));
  46022. e.Wa({
  46023. x: c,
  46024. y: d,
  46025. scale: 1,
  46026. anchorX: 0.5,
  46027. anchorY: 0
  46028. });
  46029. T.n(e, 200, 6500);
  46030. c = 14 + 2.5 * T.O + T.O;
  46031. e = f.q.create($.Ca("number8.png"));
  46032. e.Wa({
  46033. x: c,
  46034. y: d,
  46035. scale: 1,
  46036. anchorX: 0.5,
  46037. anchorY: 0
  46038. });
  46039. T.n(e, 200, 6501);
  46040. c = 14 + 2.5 * T.O + T.O;
  46041. d = T.qe + 5 * T.O;
  46042. e = f.q.create($.Ca("hand.png"));
  46043. e.Wa({
  46044. x: c,
  46045. y: d,
  46046. scale: 1,
  46047. anchorX: 0.5,
  46048. anchorY: 0
  46049. });
  46050. T.n(e,
  46051. 200, 6502);
  46052. e.scale = 1.4;
  46053. c = f.fe.create(f.Db.create(0.2, 1), f.pv.create(0.2, 10));
  46054. c = f.X.create(c, f.Nb.create(0.4), f.ua.create(T.fza, e, 1));
  46055. e.V(c);
  46056. c = 14 + 2.5 * T.O + T.O;
  46057. d = T.qe;
  46058. e = f.q.create($.Ca("number2.png"));
  46059. e.Wa({
  46060. x: c,
  46061. y: d,
  46062. scale: 1,
  46063. anchorX: 0.5,
  46064. anchorY: 0
  46065. });
  46066. T.n(e, 200, 6503);
  46067. c = f.Q.Y;
  46068. d = f.q.create($.Ca("rawssdataNait.png"));
  46069. d.Wa({
  46070. x: c.width / 2,
  46071. y: c.height / 2,
  46072. scale: 1,
  46073. anchorX: 0.5,
  46074. anchorY: 0.5
  46075. });
  46076. T.n(d, 1E3, 6001);
  46077. d = f.q.create($.Ca("rawssdataNait6.png"));
  46078. d.Wa({
  46079. x: 10,
  46080. y: c.height - 160,
  46081. scale: 1,
  46082. anchorX: 0,
  46083. anchorY: 1
  46084. });
  46085. T.n(d, 1E3, 6100)
  46086. }
  46087. },
  46088. fza: function() {
  46089. if (uf) {
  46090. var c = T.Za(6500),
  46091. d = T.Za(6501),
  46092. e = T.Za(6502),
  46093. g = T.qe + 7 * T.O + 14,
  46094. h = T.O,
  46095. k = T.O,
  46096. m = f.Dc.create(0.8, r(c.x - h, g)),
  46097. n = f.Dc.create(0.8, r(c.x + k, g)),
  46098. m = f.X.create(m, n, f.Nb.create(0.4), f.ua.create(T.gza, c, 0));
  46099. c.V(m);
  46100. c = f.Dc.create(0.8, r(d.x - h, g));
  46101. g = f.Dc.create(0.8, r(d.x + k, g));
  46102. g = f.X.create(c, g);
  46103. d.V(g);
  46104. d = f.Dc.create(0.8, r(e.x - h, e.y));
  46105. k = f.Dc.create(0.8, r(e.x + k, e.y));
  46106. k = f.X.create(d, k);
  46107. e.V(k)
  46108. }
  46109. },
  46110. gza: function() {
  46111. if (uf) {
  46112. var c = T.Za(6001),
  46113. d = f.X.create(f.Xc.create(0.7, 0), f.ua.create(T.vj, c, 6001));
  46114. c.V(d);
  46115. c = f.Q.Y;
  46116. d = f.q.create($.Ca("rawssdataNait2.png"));
  46117. d.Wa({
  46118. x: c.width / 2,
  46119. y: c.height / 2 + 70,
  46120. scale: 1,
  46121. anchorX: 0.8,
  46122. anchorY: 0
  46123. });
  46124. T.n(d, 1E3, 6002);
  46125. d.opacity = 0;
  46126. d.V(f.Xc.create(0.7, 255));
  46127. c = T.Za(6502);
  46128. d = f.Dc.create(0.4, r(c.x, c.y - 140));
  46129. d = f.X.create(f.Nb.create(1.4), d, f.ua.create(T.hza, c, 0));
  46130. c.V(d)
  46131. }
  46132. },
  46133. hza: function() {
  46134. if (uf) {
  46135. var c = T.Za(6500),
  46136. d = 14 + 2.5 * T.O + T.O,
  46137. e = T.qe + T.O,
  46138. g = f.Dc.create(0.4, r(d, e)),
  46139. g = f.X.create(g, f.ua.create(T.gCa, c, 1));
  46140. c.V(g);
  46141. c = T.Za(6501);
  46142. d = f.Dc.create(0.4, r(d + T.O, e - T.O));
  46143. c.V(d);
  46144. d = T.Za(6502);
  46145. e = f.X.create(f.Xc.create(0.2,
  46146. 0), f.ua.create(T.vj, d, 6502));
  46147. d.V(e)
  46148. }
  46149. },
  46150. gCa: function() {
  46151. if (uf) {
  46152. var c = T.Za(6002),
  46153. d = f.X.create(f.Xc.create(0.7, 0), f.ua.create(T.vj, c, 6002));
  46154. c.V(d);
  46155. c = f.Q.Y;
  46156. d = f.q.create($.Ca("rawssdataNait3.png"));
  46157. d.Wa({
  46158. x: c.width / 2,
  46159. y: c.height / 2 - 120,
  46160. scale: 1,
  46161. anchorX: 0.5,
  46162. anchorY: 0.5
  46163. });
  46164. T.n(d, 1E3, 6003);
  46165. d.opacity = 0;
  46166. d.V(f.Xc.create(0.7, 255));
  46167. c = T.Za(6503);
  46168. null != c && T.removeChild(c, !0);
  46169. var d = 14 + 2.5 * T.O + T.O,
  46170. e = T.qe,
  46171. c = f.q.create($.Ca("number4.png"));
  46172. c.Wa({
  46173. x: d,
  46174. y: e,
  46175. scale: 1,
  46176. anchorX: 0.5,
  46177. anchorY: 0
  46178. });
  46179. T.n(c, 1, 7002);
  46180. d = f.fe.create(f.Dc.create(0.4,
  46181. r(d, e)), f.Xc.create(0.4, 0));
  46182. e = T.Za(6500);
  46183. d = f.X.create(d, f.ua.create(T.vj, e, 6500));
  46184. e.V(d);
  46185. d = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.Nb.create(0.6), f.ua.create(T.hCa, c, 0));
  46186. c.V(d)
  46187. }
  46188. },
  46189. hCa: function() {
  46190. if (uf) {
  46191. var c = T.Za(6003),
  46192. d = f.X.create(f.Xc.create(0.7, 0), f.ua.create(T.vj, c, 6003));
  46193. c.V(d);
  46194. c = f.Q.Y;
  46195. d = f.q.create($.Ca("rawssdataNait4.png"));
  46196. d.Wa({
  46197. x: c.width / 2,
  46198. y: c.height / 2,
  46199. scale: 1,
  46200. anchorX: 0.5,
  46201. anchorY: 0
  46202. });
  46203. T.n(d, 1E3, 6004);
  46204. d.opacity = 0;
  46205. d.V(f.Xc.create(0.7, 255));
  46206. c = f.X.create(f.Nb.create(1.2), f.ua.create(T.iCa,
  46207. this, 0));
  46208. this.V(c)
  46209. }
  46210. },
  46211. iCa: function() {
  46212. if (uf) {
  46213. var c = 14 + 2.5 * T.O + T.O,
  46214. d = T.qe + 7 * T.O + 14,
  46215. e = f.q.create($.Ca("number4.png"));
  46216. e.Wa({
  46217. x: c,
  46218. y: d,
  46219. scale: 1,
  46220. anchorX: 0.5,
  46221. anchorY: 0
  46222. });
  46223. T.n(e, 200, 6600);
  46224. c = 14 + 3.5 * T.O + T.O;
  46225. e = f.q.create($.Ca("number16.png"));
  46226. e.Wa({
  46227. x: c,
  46228. y: d,
  46229. scale: 1,
  46230. anchorX: 0.5,
  46231. anchorY: 0
  46232. });
  46233. T.n(e, 200, 6601);
  46234. c = f.Dc.create(0.1, r(c - T.O, d + T.O));
  46235. e.V(c);
  46236. c = 14 + 2.5 * T.O + T.O;
  46237. d = T.qe + 5 * T.O;
  46238. e = f.q.create($.Ca("hand.png"));
  46239. e.Wa({
  46240. x: c,
  46241. y: d,
  46242. scale: 1,
  46243. anchorX: 0.5,
  46244. anchorY: 0
  46245. });
  46246. T.n(e, 200, 6602);
  46247. e.scale = 1.4;
  46248. c = f.fe.create(f.Db.create(0.2, 1), f.pv.create(0.2,
  46249. 10));
  46250. c = f.X.create(c, f.Nb.create(1.2), f.ua.create(T.jCa, e, 1));
  46251. e.V(c)
  46252. }
  46253. },
  46254. jCa: function() {
  46255. if (uf) {
  46256. var c = T.Za(6004),
  46257. d = f.X.create(f.Xc.create(0.7, 0), f.ua.create(T.vj, c, 6004));
  46258. c.V(d);
  46259. c = f.Q.Y;
  46260. d = f.q.create($.Ca("rawssdataNait2.png"));
  46261. d.Wa({
  46262. x: c.width / 2,
  46263. y: c.height / 2 + 70,
  46264. scale: 1,
  46265. anchorX: 1,
  46266. anchorY: 0
  46267. });
  46268. T.n(d, 1E3, 6005);
  46269. d.opacity = 0;
  46270. d.V(f.Xc.create(0.7, 255));
  46271. c = T.Za(6602);
  46272. d = f.Dc.create(0.4, r(c.x, c.y - 140));
  46273. d = f.X.create(f.Nb.create(1.2), d, f.ua.create(T.kCa, c, 0));
  46274. c.V(d)
  46275. }
  46276. },
  46277. kCa: function() {
  46278. if (uf) {
  46279. var c = T.Za(6005),
  46280. d = f.X.create(f.Xc.create(0.7,
  46281. 0), f.ua.create(T.vj, c, 6005));
  46282. c.V(d);
  46283. var e = T.Za(6600),
  46284. d = 14 + 2.5 * T.O + T.O,
  46285. c = T.qe + T.O,
  46286. g = f.Dc.create(0.4, r(d, c)),
  46287. g = f.X.create(g, f.ua.create(T.lCa, e, 1));
  46288. e.V(g);
  46289. e = T.Za(6601);
  46290. d = f.Dc.create(1, r(d, c));
  46291. e.V(d);
  46292. c = T.Za(6602);
  46293. d = f.X.create(f.Xc.create(0.2, 0), f.ua.create(T.vj, c, 6602));
  46294. c.V(d)
  46295. }
  46296. },
  46297. lCa: function() {
  46298. if (uf) {
  46299. var c = T.Za(7002);
  46300. null != c && T.removeChild(c, !0);
  46301. var c = 14 + 2.5 * T.O + T.O,
  46302. d = T.qe,
  46303. e = f.fe.create(f.Dc.create(0.4, r(c, d)), f.Xc.create(0.4, 0)),
  46304. g = T.Za(6600),
  46305. e = f.X.create(f.Nb.create(0.1), e, f.ua.create(T.vj, g, 6600));
  46306. g.V(e);
  46307. g = f.q.create($.Ca("number8.png"));
  46308. g.Wa({
  46309. x: c,
  46310. y: d,
  46311. scale: 1,
  46312. anchorX: 0.5,
  46313. anchorY: 0
  46314. });
  46315. T.n(g, 1, 6603);
  46316. c = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.ua.create(T.mCa, g, 0));
  46317. g.V(c)
  46318. }
  46319. },
  46320. mCa: function() {
  46321. if (uf) {
  46322. var c = T.Za(6603);
  46323. null != c && T.removeChild(c, !0);
  46324. var c = 14 + 2.5 * T.O + T.O,
  46325. d = T.qe,
  46326. e = f.fe.create(f.Dc.create(0.4, r(c, d)), f.Xc.create(0.4, 0)),
  46327. g = T.Za(6501),
  46328. e = f.X.create(f.Nb.create(0.1), e, f.ua.create(T.vj, g, 6501));
  46329. g.V(e);
  46330. g = f.q.create($.Ca("number16.png"));
  46331. g.Wa({
  46332. x: c,
  46333. y: d,
  46334. scale: 1,
  46335. anchorX: 0.5,
  46336. anchorY: 0
  46337. });
  46338. T.n(g,
  46339. 1, 6605);
  46340. c = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.ua.create(T.nCa, g, 0));
  46341. g.V(c)
  46342. }
  46343. },
  46344. nCa: function() {
  46345. if (uf) {
  46346. var c = T.Za(6605);
  46347. null != c && T.removeChild(c, !0);
  46348. var c = 14 + 2.5 * T.O + T.O,
  46349. d = T.qe,
  46350. e = f.fe.create(f.Dc.create(0.4, r(c, d)), f.Xc.create(0.4, 0)),
  46351. g = T.Za(6601),
  46352. e = f.X.create(f.Nb.create(0.1), e, f.ua.create(T.vj, g, 6601));
  46353. g.V(e);
  46354. g = f.q.create($.Ca("number32.png"));
  46355. g.Wa({
  46356. x: c,
  46357. y: d,
  46358. scale: 1,
  46359. anchorX: 0.5,
  46360. anchorY: 0
  46361. });
  46362. T.n(g, 1, 1003);
  46363. S[0][3] = 32;
  46364. c = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.ua.create(T.oCa,
  46365. g, 0));
  46366. g.V(c)
  46367. }
  46368. },
  46369. oCa: function() {
  46370. if (uf) {
  46371. T.te(6100, !0);
  46372. var c = f.Q.Y,
  46373. d = f.q.create($.Ca("rawssdataNait5.png"));
  46374. d.Wa({
  46375. x: c.width / 2,
  46376. y: c.height / 2,
  46377. scale: 1,
  46378. anchorX: 0.5,
  46379. anchorY: 0.5
  46380. });
  46381. T.n(d, 1E3, 6005);
  46382. d.opacity = 0;
  46383. c = f.X.create(f.Xc.create(0.4, 255), f.Nb.create(0.7), f.Xc.create(0.7, 0), f.ua.create(T.vj, d, 6005));
  46384. d.V(c);
  46385. df.setItem("isStorage", 3);
  46386. cf = 3;
  46387. uf = !1;
  46388. vf = !0;
  46389. T.KR()
  46390. }
  46391. },
  46392. update: function(c) {
  46393. if (!Te) {
  46394. if (We) {
  46395. We = !1;
  46396. if (null == cf) {
  46397. uf = !0;
  46398. this.eza();
  46399. return
  46400. }
  46401. 1 == Ze ? (Ze = 3, Ne.visible = !0, Ne.uZ(2), T.Pr = !1) : $e ? ($e = !1, Ne.visible = !0, Ne.uZ(3),
  46402. T.Pr = !1) : (vf = !0, this.KR())
  46403. }
  46404. Ve += c;
  46405. 1E3 < Ve && (Ve = 0);
  46406. ef || 1 != getCallback() || (T.qga(), ef = !0)
  46407. }
  46408. },
  46409. rQ: function() {
  46410. if (!Te) {
  46411. for (var c = Me = 0; 7 > c; c++)
  46412. for (var d = 0; 6 > d; d++)
  46413. if (c = parseInt(c), d = parseInt(d), 0 < S[c][d] && 0 < c && 0 == S[c - 1][d]) {
  46414. var e = T.Za(1E3 + 10 * c + d),
  46415. g = 14 + 0.5 * T.O + T.O * d,
  46416. h = T.qe + T.O * (c - 1);
  46417. e.tag = 1E3 + 10 * (c - 1) + d;
  46418. g = f.X.create(f.Dc.create(0.2, r(g, h)), f.ua.create(T.TDa, e, 0));
  46419. e.V(g);
  46420. S[c - 1][d] = S[c][d];
  46421. S[c][d] = 0;
  46422. Me++;
  46423. Ue++
  46424. }
  46425. if (0 == Me)
  46426. if (0 == Ue) {
  46427. for (c = 0; 6 > c; c++)
  46428. if (0 < S[6][c]) {
  46429. Te = !0;
  46430. Ne.visible = !0;
  46431. Ne.uZ(1);
  46432. return
  46433. }
  46434. hf ? gf ? (T.ZB = !0, T.KR()) :
  46435. (gf = !0, ff = 1, T.Sca()) : (hf = !0, ff = 1, T.Rca())
  46436. } else T.i_()
  46437. }
  46438. },
  46439. TDa: function() {
  46440. Me--;
  46441. 0 >= Me && (Ue = 1, T.rQ())
  46442. },
  46443. i_: function() {
  46444. if (!Te) {
  46445. Xe = !0;
  46446. for (var c = 0; 7 > c; c++)
  46447. for (var d = 0; 6 > d; d++)
  46448. if (c = parseInt(c), d = parseInt(d), 0 < S[c][d] && 0 < c && Xe && 0 < S[c - 1][d] && S[c][d] == S[c - 1][d]) {
  46449. var e = T.Za(1E3 + 10 * (c - 1) + d);
  46450. null != e && T.removeChild(e, !0);
  46451. e = T.Za(1E3 + 10 * c + d);
  46452. null != e && (Se++, e.tag = Se);
  46453. var g = 14 + 0.5 * T.O + T.O * d,
  46454. h = T.qe + T.O * (c - 1),
  46455. k = 2 * S[c - 1][d],
  46456. m = k;
  46457. 4096 == k && (m = 2048);
  46458. m = f.q.create($.Ca("number" + m + ".png"));
  46459. m.Wa({
  46460. x: g,
  46461. y: h,
  46462. scale: 1,
  46463. anchorX: 0.5,
  46464. anchorY: 0
  46465. });
  46466. T.n(m, 1, 1E3 + 10 * (c - 1) + d);
  46467. S[c - 1][d] = k;
  46468. S[c][d] = 0;
  46469. var n = f.fe.create(f.Dc.create(0.4, r(g, h)), f.Xc.create(0.4, 0)),
  46470. n = f.X.create(n, f.ua.create(T.vj, e, Se));
  46471. e.V(n);
  46472. e = [g, h, k, c - 1, d];
  46473. n = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.ua.create(T.dda, m, e));
  46474. m.V(n);
  46475. Xe = !1;
  46476. break
  46477. }
  46478. if (Xe)
  46479. if (bf) T.JDa();
  46480. else {
  46481. e = !0;
  46482. bf = !1;
  46483. for (c = 0; 7 > c; c++)
  46484. for (d = 0; 6 > d; d++)
  46485. if (c = parseInt(c), d = parseInt(d), 0 < S[c][d] && 0 < d && e && 0 < S[c][d - 1] && S[c][d] == S[c][d - 1]) {
  46486. e = T.Za(1E3 + 10 * c + (d - 1));
  46487. null != e && T.removeChild(e, !0);
  46488. e = T.Za(1E3 + 10 * c + d);
  46489. null != e && (Se++,
  46490. e.tag = Se);
  46491. g = 14 + 0.5 * T.O + T.O * (d - 1);
  46492. h = T.qe + T.O * c;
  46493. m = k = 2 * S[c][d - 1];
  46494. 4096 == k && (m = 2048);
  46495. m = f.q.create($.Ca("number" + m + ".png"));
  46496. m.Wa({
  46497. x: g,
  46498. y: h,
  46499. scale: 1,
  46500. anchorX: 0.5,
  46501. anchorY: 0
  46502. });
  46503. T.n(m, 1, 1E3 + 10 * c + (d - 1));
  46504. S[c][d - 1] = k;
  46505. S[c][d] = 0;
  46506. n = f.fe.create(f.Dc.create(0.4, r(g, h)), f.Xc.create(0.4, 0));
  46507. n = f.X.create(n, f.ua.create(T.vj, e, Se));
  46508. e.V(n);
  46509. e = [g, h, k, c, d - 1];
  46510. n = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.ua.create(T.dda, m, e));
  46511. m.V(n);
  46512. g = !1;
  46513. for (e = 0; 7 > e; e++)
  46514. if (e = parseInt(e), 0 < S[e][d]) {
  46515. g = !0;
  46516. break
  46517. }
  46518. if (!g && (g = parseInt(d), 5 > d))
  46519. for (d +=
  46520. 1; 6 > d; d++)
  46521. if (d = parseInt(d), g + 1 == d) {
  46522. h = !1;
  46523. for (e = 0; 7 > e; e++)
  46524. if (0 < S[e][d]) {
  46525. h = !0;
  46526. break
  46527. }
  46528. h && 0 < d && (bf = !0, Ae[d] = !0, g = d)
  46529. } else break;
  46530. e = !1;
  46531. break
  46532. }
  46533. e && (Ue = 0, T.rQ())
  46534. }
  46535. }
  46536. },
  46537. dda: function(c, d) {
  46538. var e = d[0],
  46539. g = d[1] + 0.4 * T.O,
  46540. h = d[2],
  46541. k = d[3],
  46542. m = d[4];
  46543. Se++;
  46544. var n = f.q.create($.Ca("data.dat_000034.png"));
  46545. n.Wa({
  46546. x: e,
  46547. y: g,
  46548. scale: 1,
  46549. anchorX: 0.5,
  46550. anchorY: 0
  46551. });
  46552. T.n(n, 1E4, Se);
  46553. e = f.fe.create(f.Xc.create(0.2, 255), f.Dc.create(0.4, r(e, g + 20)));
  46554. e = f.X.create(e, f.ua.create(T.vj, n, Se));
  46555. n.V(e);
  46556. T.hha(1);
  46557. if (2048 == h && 0 == Ze) We = !0, Ze = 1;
  46558. else if (100 == U || 300 == U || 500 ==
  46559. U || 1E3 == U || 1500 == U || 2E3 == U || 2500 == U || 3E3 == U || 3500 == U || 4E3 == U || 4500 == U || 5E3 == U || 5500 == U || 6E3 == U || 6500 == U || 7E3 == U || 7500 == U || 8E3 == U || 8500 == U || 9E3 == U || 9500 == U || 1E4 == U) $e = We = !0;
  46560. 2048 == h && T.iha(1);
  46561. 4096 == h && (S[k][m] = 0, h = T.Za(1E3 + 10 * k + m), null != h && T.removeChild(h, !0));
  46562. Ue = 1;
  46563. T.rQ()
  46564. },
  46565. JDa: function() {
  46566. if (!Te) {
  46567. Le = 0;
  46568. for (var c = !1, d = 0; 6 > d; d++)
  46569. if (d = parseInt(d), Ae[d])
  46570. for (var e = 0; 7 > e; e++)
  46571. if (e = parseInt(e), 0 < S[e][d]) {
  46572. Le++;
  46573. var c = T.Za(1E3 + 10 * e + d),
  46574. g = d - 1;
  46575. c.tag = 1E3 + 10 * e + g;
  46576. var h = f.Dc.create(0.4, r(14 + 0.5 * T.O + T.O * g, T.qe + T.O * e)),
  46577. h = f.X.create(h, f.ua.create(T.dza, c, 0));
  46578. c.V(h);
  46579. S[e][g] = S[e][d];
  46580. S[e][d] = 0;
  46581. c = !0
  46582. }
  46583. for (d = 0; 6 > d; d++) Ae[d] = !1;
  46584. bf = !1;
  46585. c || (Ue = 1, T.rQ())
  46586. }
  46587. },
  46588. dza: function() {
  46589. Le--;
  46590. 0 >= Le && T.i_()
  46591. },
  46592. KR: function() {
  46593. if (T.ZB) {
  46594. T.ZB = !1;
  46595. T.Pr = !0;
  46596. for (var c = 2, d = 4, e = 0; 2 > e; e++) {
  46597. var g = 14 + 2.5 * T.O + T.O * e,
  46598. h = T.qe + 7 * T.O + 14;
  46599. if (0 == e) {
  46600. var k = Math.round(3 * f.U1()) + 1;
  46601. 1 == k ? c = 2 : 2 == k ? c = 4 : 3 == k ? c = 8 : 4 == k && (c = 16);
  46602. null == kf || 2 != kf && 4 != kf && 8 != kf && 16 != kf || (c = kf);
  46603. T.Xd = f.q.create($.Ca("number" + c + ".png"));
  46604. T.Xd.Wa({
  46605. x: g,
  46606. y: h,
  46607. scale: 1,
  46608. anchorX: 0.5,
  46609. anchorY: 0
  46610. });
  46611. T.n(T.Xd, 200, 3E3);
  46612. df.setItem("FK38USJSK2E", c);
  46613. kf = 0;
  46614. Oe = 2;
  46615. Pe = !1;
  46616. T.Tca = c
  46617. } else if (1 == e) {
  46618. for (var m = 0; 100 > m && (k = Math.round(3 * f.U1()) + 1, 1 == k ? d = 2 : 2 == k ? d = 4 : 3 == k ? d = 8 : 4 == k && (d = 16), c == d); m++);
  46619. c == d && (2 == c ? d = 4 : 4 == c ? d = 2 : 8 == c ? d = 4 : 16 == c && (d = 8));
  46620. null == lf || 2 != lf && 4 != lf && 8 != lf && 16 != lf || (d = lf);
  46621. T.Yd = f.q.create($.Ca("number" + d + ".png"));
  46622. T.Yd.Wa({
  46623. x: g,
  46624. y: h,
  46625. scale: 1,
  46626. anchorX: 0.5,
  46627. anchorY: 0
  46628. });
  46629. T.n(T.Yd, 200, 3001);
  46630. df.setItem("SJ903JLSHNQ", d);
  46631. lf = 0;
  46632. Qe = 3;
  46633. Re = !1;
  46634. T.Uca = d
  46635. }
  46636. }
  46637. this.bia(!0)
  46638. }
  46639. },
  46640. bia: function(c) {
  46641. for (var d, e = 0; 7 > e; e++)
  46642. for (var g = 0; 6 > g; g++) {
  46643. var h = 0;
  46644. c &&
  46645. (h = S[e][g]);
  46646. d = 0 == e && 0 == g ? e + "," + g + "," + h + "|" : 6 == e && 5 == g ? d + e + "," + g + "," + h : d + e + "," + g + "," + h + "|"
  46647. }
  46648. c ? (df.setItem("G3WE2AFG34", U), df.setItem("JDI392FS39K", Ye), df.setItem("DS2G34AH85F", Ze)) : (df.setItem("G3WE2AFG34", 0), df.setItem("JDI392FS39K", 0), df.setItem("DS2G34AH85F", 0));
  46649. df.setItem("DJIOSI3JSA", d)
  46650. },
  46651. ba: function() {
  46652. this._super();
  46653. f.Qa.addListener({
  46654. event: f.Xa.zs,
  46655. rc: function(c) {
  46656. if (Te || !T.Pr || !0 == Ne.visible) return !1;
  46657. if (uf) T.te(6500, !0), T.te(6501, !0), T.te(6502, !0), T.te(6503, !0), T.te(6001, !0), T.te(6002, !0), T.te(6003, !0), T.te(6004, !0), T.te(6005, !0), T.te(7002, !0), T.te(6600, !0), T.te(6601, !0), T.te(6602, !0), T.te(6603, !0), T.te(6604, !0), T.te(6605, !0), T.te(6100, !0), df.setItem("isStorage", 3), cf = 3, T.D0(), uf = !1, vf = !0, T.KR();
  46658. else {
  46659. if (jf) {
  46660. var d = T.Za(7007);
  46661. if (null != d) return jf = d.visible = !1
  46662. }
  46663. Ve = 0;
  46664. T.$G = c.cf();
  46665. T.$O = c.cf();
  46666. return !0
  46667. }
  46668. },
  46669. hd: function(c) {
  46670. if (!Te && !0 != Ne.visible && !T.ZB && T.Pr) {
  46671. var d = c.cf(),
  46672. e = Math.abs(T.$O.x - d.x);
  46673. 15 < Math.abs(Math.abs(d.x - T.$G.x)) && 5 < e && (d = T.$O.x - d.x, T.Xd.x -= d, T.Yd.x -= d);
  46674. T.$O = c.cf()
  46675. }
  46676. },
  46677. gd: function(c) {
  46678. if (!Te &&
  46679. !0 != Ne.visible && !T.ZB && T.Pr) {
  46680. var d = c.cf();
  46681. c = Math.abs(d.y - T.$G.y);
  46682. if (Oe <= Qe)
  46683. if (T.Xd.x < 14 + 0.5 * T.O) {
  46684. var e = 14 + 0.5 * T.O - T.Xd.x;
  46685. T.Xd.x = 14 + 0.5 * T.O;
  46686. T.Yd.x += e
  46687. } else T.Yd.x > 14 + 6 * T.O - 0.5 * T.O && (e = T.Yd.x - (14 + 6 * T.O - 0.5 * T.O), T.Yd.x = 14 + 6 * T.O - 0.5 * T.O, T.Xd.x -= e);
  46688. else T.Yd.x < 14 + 0.5 * T.O ? (e = 14 + 0.5 * T.O - T.Yd.x, T.Yd.x = 14 + 0.5 * T.O, T.Xd.x += e) : T.Xd.x > 14 + 6 * T.O - 0.5 * T.O && (e = T.Xd.x - (14 + 6 * T.O - 0.5 * T.O), T.Xd.x = 14 + 6 * T.O - 0.5 * T.O, T.Yd.x -= e);
  46689. for (var e = 9999, g = 0; 6 > g; g++)
  46690. if (T.Xd.x > 14 + T.O * g && T.Xd.x <= 14 + T.O * (g + 1)) {
  46691. e = g;
  46692. break
  46693. }
  46694. 9999 != e && (Oe = e, T.Xd.x =
  46695. 14 + 0.5 * T.O + T.O * Oe);
  46696. e = 9999;
  46697. for (g = 0; 6 > g; g++)
  46698. if (T.Yd.x > 14 + T.O * g && T.Yd.x <= 14 + T.O * (g + 1)) {
  46699. e = g;
  46700. break
  46701. }
  46702. 9999 != e && (Qe = e, T.Yd.x = 14 + 0.5 * T.O + T.O * Qe);
  46703. e = Math.abs(d.x - T.$G.x);
  46704. ff = 2;
  46705. if (0.4 > Ve && 50 < c && 70 > e && T.$G.y > d.y) {
  46706. if (Oe != Qe) {
  46707. hf = gf = !0;
  46708. T.Pca();
  46709. T.Qca();
  46710. return
  46711. }
  46712. if (Re) {
  46713. (c = T.Pca()) ? (hf = gf = !0, T.Rca()) : (ff--, hf = !1);
  46714. return
  46715. }
  46716. if (Pe) {
  46717. (c = T.Qca()) ? (hf = gf = !0, T.Sca()) : (ff--, gf = !1);
  46718. return
  46719. }
  46720. }
  46721. d = T.qe + 7 * T.O + 14;
  46722. 10 > e && 10 > c && (Oe < Qe ? (Qe = Oe, Re = !0, T.Yd.y = d + T.O) : Oe == Qe ? 0 == Oe ? Re ? (Oe += 1, Qe = Oe - 1, T.Yd.y = d, Re = !1) : Pe && (Qe = Oe + 1, T.Xd.y = d, Pe = !1) : 5 == Oe ?
  46723. Re ? (Qe = Oe - 1, T.Yd.y = d, Re = !1) : Pe && (Oe -= 1, T.Xd.y = d, Pe = !1) : Re ? (Qe = Oe - 1, T.Yd.y = d, Re = !1) : Pe && (Qe = Oe + 1, T.Xd.y = d, Pe = !1) : Oe > Qe && (Qe = Oe, Pe = !0, T.Xd.y = d + T.O), T.Xd.x = 14 + 0.5 * T.O + T.O * Oe, T.Yd.x = 14 + 0.5 * T.O + T.O * Qe)
  46724. }
  46725. }
  46726. }, this)
  46727. },
  46728. lH: function(c) {
  46729. var d = f.Dc.create(0.4, r(14 + 0.5 * T.O + T.O * Oe, T.qe + T.O * c));
  46730. T.Zxa = c;
  46731. T.aya = Oe;
  46732. T.Xd.tag = 1E3 + 10 * c + Oe;
  46733. S[c][Oe] = T.Tca;
  46734. c = f.X.create(d, f.ua.create(T.$ca, T.Xd, 1));
  46735. T.Xd.V(c);
  46736. T.Pr = !1
  46737. },
  46738. mH: function(c) {
  46739. var d = f.Dc.create(0.4, r(14 + 0.5 * T.O + T.O * Qe, T.qe + T.O * c));
  46740. T.$xa = c;
  46741. T.bya = Qe;
  46742. T.Yd.tag = 1E3 + 10 * c + Qe;
  46743. S[c][Qe] =
  46744. T.Uca;
  46745. c = f.X.create(d, f.ua.create(T.$ca, T.Yd, 2));
  46746. T.Yd.V(c);
  46747. T.Pr = !1
  46748. },
  46749. Pca: function() {
  46750. for (var c = 5; 0 <= c; c--) {
  46751. if (0 < S[c][Oe]) {
  46752. if (5 == c) return T.lH(c + 1), !1;
  46753. T.lH(c + 1);
  46754. return !0
  46755. }
  46756. if (0 == c) return T.lH(c), !0
  46757. }
  46758. },
  46759. Qca: function() {
  46760. for (var c = 5; 0 <= c; c--) {
  46761. if (0 < S[c][Qe]) {
  46762. if (5 == c) return T.mH(c + 1), !1;
  46763. T.mH(c + 1);
  46764. return !0
  46765. }
  46766. if (0 == c) return T.mH(c), !0
  46767. }
  46768. },
  46769. Rca: function() {
  46770. for (var c = 5; 0 <= c; c--) {
  46771. if (0 < S[c][Qe]) {
  46772. T.mH(c + 1);
  46773. break
  46774. }
  46775. if (0 == c) {
  46776. T.mH(c);
  46777. break
  46778. }
  46779. }
  46780. },
  46781. Sca: function() {
  46782. for (var c = 5; 0 <= c; c--) {
  46783. if (0 < S[c][Oe]) {
  46784. T.lH(c + 1);
  46785. break
  46786. }
  46787. if (0 == c) {
  46788. T.lH(c);
  46789. break
  46790. }
  46791. }
  46792. },
  46793. Ra: function() {
  46794. this._super()
  46795. },
  46796. $ca: function() {
  46797. ff--;
  46798. 0 >= ff && T.i_()
  46799. },
  46800. vj: function(c, d) {
  46801. T.te(d)
  46802. },
  46803. $Fa: function() {
  46804. if (vf) {
  46805. vf = !1;
  46806. for (var c = 0; 7 > c; c++)
  46807. for (var d = 0; 6 > d; d++) S[c][d] = 0, Ae[d] = !1, T.te(1E3 + 10 * c + d);
  46808. Se = 2E5;
  46809. T.te(3E3);
  46810. T.te(3001);
  46811. Ne.visible = !1;
  46812. S[0][0] = 2;
  46813. S[0][2] = 4;
  46814. S[0][4] = 8;
  46815. T.qe = 81;
  46816. for (c = 0; 7 > c; c++)
  46817. for (d = 0; 6 > d; d++)
  46818. if (0 < S[c][d]) {
  46819. var e = f.q.create($.Ca("number" + S[c][d] + ".png"));
  46820. e.Wa({
  46821. x: 14 + T.O * d + 0.5 * T.O,
  46822. y: T.qe + T.O * c,
  46823. scale: 1,
  46824. anchorX: 0.5,
  46825. anchorY: 0
  46826. });
  46827. T.n(e, 1, 1E3 + 10 * c + d)
  46828. }
  46829. Te = !1;
  46830. We = T.ZB = !0;
  46831. U = 0;
  46832. T.hha(0);
  46833. Ye = 0;
  46834. T.iha(0)
  46835. }
  46836. },
  46837. qga: function() {
  46838. Te = Ne.visible = !1;
  46839. ef = T.Pr = !0
  46840. },
  46841. hha: function(c) {
  46842. U += c;
  46843. c = T.Za(4050);
  46844. if (null != c) {
  46845. c.wa(U.toString());
  46846. var d = f.X.create(f.Db.create(0.2, 1.4), f.Db.create(0.2, 1));
  46847. c.V(d)
  46848. }
  46849. },
  46850. iha: function(c) {
  46851. Ye += c;
  46852. c = T.Za(5050);
  46853. if (null != c) {
  46854. c.wa(Ye.toString());
  46855. var d = f.X.create(f.Db.create(0.2, 1.4), f.Db.create(0.2, 1));
  46856. c.V(d)
  46857. }
  46858. }
  46859. }),
  46860. vf = !0,
  46861. xf = f.Me.extend({
  46862. iB: !1,
  46863. Z5a: null,
  46864. Qg: null,
  46865. wg: null,
  46866. xi: null,
  46867. Gr: null,
  46868. ix: null,
  46869. Zk: null,
  46870. ctor: function() {
  46871. this._super();
  46872. this.Qg = new f.q($.Ca("data_img_04.png"));
  46873. this.Qg.x = f.gq.width / 2;
  46874. this.Qg.anchorY =
  46875. 0.2;
  46876. this.Qg.y = f.gq.height / 2;
  46877. this.n(this.Qg);
  46878. var c = this.Qg.x + 0.5 * this.Qg.width - 20,
  46879. d = this.Qg.y - 0.2 * this.Qg.height + 20;
  46880. this.Gr = f.Il.create($.Ca("data_img_01.png"), $.Ca("data_img_01.png"), function() {
  46881. clickShareSet()
  46882. }, this);
  46883. this.Gr.Wa({
  46884. x: c,
  46885. y: d,
  46886. anchorX: 1,
  46887. anchorY: 0
  46888. });
  46889. var e = f.ws.create(this.Gr);
  46890. e.x = 0;
  46891. e.y = 0;
  46892. this.n(e, 1);
  46893. this.Gr.visible = !1;
  46894. this.ku = f.Il.create($.Ca("data_img_10_03.png"), $.Ca("data_img_10_03.png"), function() {
  46895. clickShareSet()
  46896. }, this);
  46897. this.ku.Wa({
  46898. x: c,
  46899. y: d,
  46900. anchorX: 1,
  46901. anchorY: 0
  46902. });
  46903. e.n(this.ku);
  46904. this.ku.visible = !1;
  46905. this.xi = f.Il.create($.Ca("data_img_10_02.png"), $.Ca("data_img_10_02.png"), function() {
  46906. clickShareSet()
  46907. }, this);
  46908. this.xi.Wa({
  46909. x: c,
  46910. y: d,
  46911. anchorX: 1,
  46912. anchorY: 0
  46913. });
  46914. e.n(this.xi);
  46915. this.xi.visible = !1;
  46916. this.lu = f.Il.create($.Ca("data_img_09_01.png"), $.Ca("data_img_09_01.png"), function() {
  46917. clickShareSet()
  46918. }, this);
  46919. this.lu.Wa({
  46920. x: c,
  46921. y: d,
  46922. anchorX: 1,
  46923. anchorY: 0
  46924. });
  46925. e.n(this.lu);
  46926. this.lu.visible = !1;
  46927. this.Rn = f.Il.create($.Ca("data_img_09_02.png"), $.Ca("data_img_09_02.png"), function() {
  46928. clickShareSet()
  46929. }, this);
  46930. this.Rn.Wa({
  46931. x: c,
  46932. y: d,
  46933. anchorX: 1,
  46934. anchorY: 0
  46935. });
  46936. e.n(this.Rn);
  46937. this.Rn.visible = !1;
  46938. c = this.Qg.x - 0.5 * this.Qg.width + 20;
  46939. this.ix = f.Il.create($.Ca("data_img_02.png"), $.Ca("data_img_02.png"), function() {
  46940. T.$Fa();
  46941. shareSet("\u65cb\u8f6c\u5e76\u4e0b\u843d\u6570\u5b57\uff0c\u76f8\u540c\u7684\u6570\u5b57\u78b0\u649e\u540e\u7ffb\u500d\uff0c\u770b\u4f60\u591a\u5c11\u6b21\u80fd\u641e\u52302048")
  46942. }, this);
  46943. this.ix.Wa({
  46944. x: c,
  46945. y: d,
  46946. anchorX: 0,
  46947. anchorY: 0
  46948. });
  46949. e.n(this.ix);
  46950. this.ix.visible = !1;
  46951. this.Zk = f.Il.create($.Ca("data_img_07.png"), $.Ca("data_img_07.png"), function() {
  46952. T.qga()
  46953. },
  46954. this);
  46955. this.Zk.Wa({
  46956. x: c,
  46957. y: d,
  46958. anchorX: 0,
  46959. anchorY: 0
  46960. });
  46961. e.n(this.Zk);
  46962. this.Zk.visible = !1;
  46963. c = this.Qg.x;
  46964. this.dH = f.Il.create($.Ca("data_img_14_01.png"), $.Ca("data_img_14_01.png"), function() {
  46965. clickSC()
  46966. }, this);
  46967. this.dH.Wa({
  46968. x: c,
  46969. y: d,
  46970. anchorX: 0.5,
  46971. anchorY: 0
  46972. });
  46973. e.n(this.dH)
  46974. },
  46975. ba: function() {
  46976. this._super()
  46977. },
  46978. Ra: function() {
  46979. this._super()
  46980. },
  46981. uZ: function(c) {
  46982. null != this.wg && this.removeChild(this.wg, !0);
  46983. if (1 == c) {
  46984. this.ix.visible = !0;
  46985. this.Zk.visible = !1;
  46986. this.xi.visible = !1;
  46987. this.lu.visible = !1;
  46988. this.Rn.visible = !1;
  46989. this.dH.x = this.Qg.x;
  46990. T.bia(!1);
  46991. c = 1;
  46992. for (var d = 0; 12 >= d; d++)
  46993. if (U <= Ie[d]) {
  46994. if (0 < U) {
  46995. c = Ie[d] - He[d];
  46996. var e = U - He[d];
  46997. c = e / c;
  46998. e = Ke[d] - Je[d];
  46999. c = c * e + Je[d];
  47000. c = this.T_(parseFloat(c))
  47001. }
  47002. break
  47003. }
  47004. 60.5 <= c ? (d = "\u5171\u5b8c\u6210" + U + "\u6b21\u5408\u5e76\uff0c\u667a\u6167\u3001\u8010\u5fc3\u3001\u8fd0\u6c14\u90fd\u5c5e\u4e8e\u6781\u54c1\uff0c\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6\uff0c\u4e00\u5b9a\u8981\u70ab\u7ed9\u597d\u53cb\u770b\u770b\u5662", this.Gr.visible = !0, this.ku.visible = !1) : 20.5 <= c && 60.5 > c ? (d = "\u5171\u5b8c\u6210" + U + "\u6b21\u5408\u5e76\uff0c\u5f88\u6709\u667a\u6167\u548c\u8010\u5fc3\u5662\uff0c\u8bb0\u5f97\u53bb\u5206\u4eab\u4fdd\u5b58\u8fd9\u4e2a\u8bb0\u5f55\u5662",
  47005. this.Gr.visible = !0, this.ku.visible = !1) : (d = "\u5171\u5b8c\u6210\u4e86" + U + "\u6b21\u5408\u5e76\uff0c\u8fd8\u4e0d\u9519\u5662\uff0c\u76f8\u4fe1\u4f60\u8fd8\u80fd\u505a\u7684\u66f4\u597d\uff0c\u5206\u4eab\u4e0b\u8ba9\u597d\u53cb\u7ed9\u4e9b\u9f13\u52b1\u5427", this.Gr.visible = !1, this.ku.visible = !0);
  47006. c = 0 < Ye ? "\u6211\u5b8c\u6210" + U + "\u6b21\u5408\u5e76,\u641e\u5b9a\u4e86" + Ye + "\u4e2a\u201c2048\u201d\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6" : "\u6211\u5b8c\u6210" + U + "\u6b21\u5408\u5e76,\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6";
  47007. window.__score = U; /*play68_submitScore(U);*/
  47008. // Play68.setRankingScoreDesc(U);
  47009. shareSet(c);
  47010. this.wg = new f.ia(d, "\u5b8b\u4f53", 22, t(0.8 * f.gq.width, 270), f.Bo);
  47011. this.wg.x = this.Qg.x;
  47012. this.wg.y = this.Qg.y - 5;
  47013. this.wg.anchorY = 0.5;
  47014. this.wg.color = f.color(250, 120, 5);
  47015. this.n(this.wg)
  47016. } else if (2 == c) {
  47017. this.ix.visible = !1;
  47018. this.Gr.visible = !1;
  47019. this.lu.visible = !1;
  47020. this.ku.visible = !1;
  47021. this.Zk.visible = !0;
  47022. ef = !1;;
  47023. c = 99.5;
  47024. for (d = 0; 9 >= d; d++)
  47025. if (U <= Ee[d]) {
  47026. 0 < U && (c = Ee[d] - De[d], e = U - De[d], c = e / c, e = Ge[d] - Fe[d], c = c * e + Fe[d], c = this.T_(parseFloat(c)));
  47027. break
  47028. }
  47029. if (80 <= c) {
  47030. d = "\u4eba\u54c1\u592a\u597d\u4e86\uff0c\u7adf\u7136\u53ea\u7528" +
  47031. U + "\u6b21\u5c31 \u641e\u5b9a\u4e862048\uff0c\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6\uff0c \u5feb\u53bb\u5206\u4eab\u6c38\u4e45\u7559\u5ff5\u5427";
  47032. this.xi.visible = !0;
  47033. this.Rn.visible = !1;
  47034. var e = this.xi.x - this.xi.width,
  47035. g = this.Zk.x + this.Zk.width
  47036. } else 60 <= c && 80 > c ? (d = "\u8fd0\u6c14\u4e0d\u9519\uff0c\u7528\u4e86" + U + "\u6b21\u5c31 \u641e\u5b9a\u4e862048\uff0c\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6\uff0c\u522b\u5fd8\u4e86\u5206\u4eab\u4fdd\u5b58\u4e0b\u8fd9\u4e2a\u8bb0\u5f55", this.xi.visible = !0, this.Rn.visible = !1, e = this.xi.x - this.xi.width) : 30 <= c && 60 > c ? (d = "\u8f9b\u82e6\u4e86\uff0c\u7528\u4e86" + U + "\u6b21\u7ec8\u4e8e\u641e\u5b9a\u4e862048\uff0c\u5206\u4eab\u53ef\u4ee5\u6c38\u4e45\u4fdd\u5b58\u8fd9\u4e2a\u8bb0\u5f55\u5662", this.xi.visible = !0, this.Rn.visible = !1, e = this.xi.x - this.xi.width) : (d = "\u8010\u5fc3\u503c\u5f97\u9f13\u52b1\uff0c\u7528\u4e86" + U + "\u6b21\u7ec8\u4e8e\u641e\u5b9a2048\uff0c\u5206\u4eab\u7559\u7eaa\u5ff5\u5427", this.xi.visible = !1, this.Rn.visible = !0, e = this.Rn.x - this.Rn.width), g = this.Zk.x + this.Zk.width;
  47037. e = g + (e - g) / 2;
  47038. this.dH.x = e;
  47039. c = "\u6211\u5408\u5e76\u4e86" + U + "\u6b21\u540e\uff0c\u641e\u5b9a\u4e862048\uff0c\u8d85\u8fc7" + c + "%\u7684\u73a9\u5bb6"; /*play68_submitScore(U);*/
  47040. window.__score = U;
  47041. shareSet(c);
  47042. this.wg = new f.ia(d, "\u5b8b\u4f53", 22, t(0.8 * f.gq.width, 270), f.Bo);
  47043. this.wg.x = this.Qg.x;
  47044. this.wg.y = this.Qg.y - 10;
  47045. this.wg.anchorY = 0.5;
  47046. this.wg.color = f.color(250, 120, 5);
  47047. this.n(this.wg)
  47048. } else if (3 == c) {
  47049. this.ix.visible = !1;
  47050. this.xi.visible = !1;
  47051. this.Rn.visible = !1;
  47052. this.Gr.visible = !1;
  47053. this.ku.visible = !1;
  47054. this.lu.visible = !0;
  47055. this.Zk.visible = !0;
  47056. e = this.lu.x - this.lu.width;
  47057. g = this.Zk.x + this.Zk.width;
  47058. this.dH.x = g + (e - g) / 2;
  47059. ef = !1;
  47060. c = 1;
  47061. for (d = 0; 12 >= d; d++)
  47062. if (U <= Ie[d]) {
  47063. 0 < U && (c = Ie[d] - He[d], e = U - He[d], c = e / c, e = Ke[d] - Je[d], c = c * e + Je[d], c = this.T_(parseFloat(c)));
  47064. break
  47065. }
  47066. d = 100 == U ? "\u5df2\u7ecf\u5b8c\u6210\u4e86" + U + "\u6b21\u5408\u5e76\uff0c\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6\uff0c\u5206\u4eab\u8ba9\u597d\u53cb\u9001\u9c9c\u82b1\u5427" : 300 == U || 500 == U ? "\u5df2\u7ecf\u5b8c\u6210" + U + "\u6b21\u5408\u5e76\uff0c\u6392\u540d\u53c8\u524d\u8fdb\u4e86\uff0c\u5df2\u7ecf\u8d85\u8fc7\u4e86" +
  47067. c + "%\u7684\u73a9\u5bb6\uff0c\u5206\u4eab\u8ba9\u670b\u53cb\u89c1\u8bc6\u4e0b\u4f60\u7684\u6218\u679c\u5427" : "\u5df2\u7ecf\u5b8c\u6210\u4e86" + U + "\u6b21\u5408\u5e76\uff0c\u6392\u540d\u7a33\u6b65\u524d\u8fdb\uff0c\u5df2\u7ecf\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6\uff0c\u5206\u4eab\u8ba9\u597d\u53cb\u7fa1\u6155\u4f60\u7684\u667a\u6167\u5427";
  47068. c = "\u6211\u5df2\u7ecf\u5b8c\u6210" + U + "\u6b21\u5408\u5e76\uff0c\u51fb\u8d25" + c + "%\u7684\u73a9\u5bb6\uff0c\u8fd8\u5728\u7ee7\u7eed\u52aa\u529b";
  47069. window.__score = U; /*play68_submitScore(window.__score);*/
  47070. shareSet(c);
  47071. this.wg =
  47072. new f.ia(d, "\u5b8b\u4f53", 22, t(0.8 * f.gq.width, 270), f.Bo);
  47073. this.wg.x = this.Qg.x;
  47074. this.wg.y = this.Qg.y - 5;
  47075. this.wg.anchorY = 0.5;
  47076. this.wg.color = f.color(250, 120, 5);
  47077. this.n(this.wg)
  47078. }
  47079. },
  47080. T_: function(c) {
  47081. return Math.round(c * Math.pow(10, 2)) / Math.pow(10, 2)
  47082. }
  47083. }),
  47084. yf = f.tq.extend({
  47085. ba: function() {
  47086. this._super();
  47087. T = new wf;
  47088. this.n(T);
  47089. Ne = new xf;
  47090. this.n(Ne, 1E4, 3002);
  47091. Ne.visible = !1
  47092. }
  47093. });
  47094. f.vf.Sp = function() {
  47095. f.view.u2(400, 660, f.Dj.SHOW_ALL);
  47096. f.view.aGa(!0);
  47097. f.VW = "res/icon.png";
  47098. f.qNa = " ";
  47099. f.eT.K1(ye, function() {
  47100. f.Q.f2(new yf)
  47101. }, this)
  47102. };
  47103. f.vf.eGa();