12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079 |
- function e(c) {
- throw c;
- }
- var m = void 0,
- q = !0,
- s = null,
- t = !1;
- function da() {
- return function(c) {
- return c
- }
- }
- function u() {
- return function() {}
- }
- function x(c) {
- return function(d) {
- this[c] = d
- }
- }
- function A(c) {
- return function() {
- return this[c]
- }
- }
- function B(c) {
- return function() {
- return c
- }
- }
- var C = C || {};
- C.U = C.U || {};
- C.n = {};
- H = window;
- H = Object.prototype;
- delete window._p;
- C.bd = function(c) {
- return document.createElement(c)
- };
- C.qb = function(c, d, f, g) {
- c.addEventListener(d, f, g)
- };
- C.iaa = "undefined" !== typeof require && require("fs");
- C.pda = function(c, d) {
- if (c) if (c instanceof Array) for (var f = 0,
- g = c.length; f < g && d.call(m, c[f], f) !== t; f++);
- else for (f in c) if (d.call(m, c[f], f) === t) break
- };
- C.g1 = function(c) {
- if (!c) return C.log("invalid URL"),
- t;
- var d = c.indexOf("://");
- if ( - 1 == d) return t;
- d = c.indexOf("/", d + 3);
- return ( - 1 == d ? c: c.substring(0, d)) != location.origin
- };
- C.async = {
- B9: function(c) {
- var d = this.Uca;
- if (!d.d0) {
- var f = d.length,
- g = d.$ga,
- h = d.ega,
- k = h.mg,
- n = h.Nca,
- p = h.O3,
- h = h.z6a;
- if (c) {
- if (d.d0 = c, k) return k.call(n, c)
- } else {
- var r = Array.apply(s, arguments).slice(1),
- v = r.length;
- 0 == v ? r = s: 1 == v && (r = r[0]);
- g[this.index] = r;
- d.count--;
- p && p.call(h, r, f - d.count, f);
- 0 == d.count && k && k.apply(n, [s, g])
- }
- }
- },
- s$: u(),
- X0a: function(c, d, f) {
- var g = C.async;
- f !== m ? ("function" == typeof d && (d = {
- O3: d
- }), d.mg = f || d.mg) : d !== m ? "function" == typeof d && (d = {
- mg: d
- }) : c !== m ? d = {}: e("arguments error!");
- var h = (f = c instanceof Array) ? c.length: Object.keys(c).length;
- if (0 == h) d.mg && d.mg.call(d.Nca, s);
- else {
- var k = {
- length: h,
- count: h,
- ega: d,
- $ga: f ? [] : {}
- };
- C.pda(c,
- function(c, f) {
- if (k.d0) return t;
- var h = !d.mg && !d.O3 ? g.s$: g.B9.bind({
- Uca: k,
- index: f
- });
- c(h, f)
- })
- }
- },
- map: function(c, d, f) {
- var g = this,
- h = arguments.length;
- "function" == typeof d && (d = {
- n1: d
- });
- 3 === h ? d.mg = f || d.mg: 2 > h && e("arguments error!");
- "function" == typeof d && (d = {
- n1: d
- });
- f !== m ? d.mg = f || d.mg: c === m && e("arguments error!");
- var k = (h = c instanceof Array) ? c.length: Object.keys(c).length;
- if (0 === k) d.mg && d.mg.call(d.Nca, s);
- else {
- var n = {
- length: k,
- count: k,
- ega: d,
- $ga: h ? [] : {}
- };
- C.pda(c,
- function(c, f) {
- if (n.d0) return t;
- var h = !d.mg ? g.s$: g.B9.bind({
- Uca: n,
- index: f
- });
- d.n1.call(d.EDa, c, f, h)
- })
- }
- }
- };
- C.path = {
- join: function() {
- for (var c = arguments.length,
- d = "",
- f = 0; f < c; f++) d = (d + ("" == d ? "": "/") + arguments[f]).replace(/(\/|\\\\)$/, "");
- return d
- },
- Cp: function(c) {
- return (c = /(\.[^\.\/\?\\]*)(\?.*)?$/.exec(c)) ? c[1] : s
- },
- c0a: function(c) {
- if (c) {
- var d = c.lastIndexOf(".");
- if ( - 1 !== d) return c.substring(0, d)
- }
- return c
- },
- lxa: function(c, d) {
- var f = c.indexOf("?");
- 0 < f && (c = c.substring(0, f));
- f = /(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(c.replace(/(\/|\\\\)$/, ""));
- if (!f) return s;
- f = f[2];
- return d && c.substring(c.length - d.length).toLowerCase() == d.toLowerCase() ? f.substring(0, f.length - d.length) : f
- },
- dirname: function(c) {
- return c.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/, "$2")
- },
- s_: function(c, d) {
- d = d || "";
- var f = c.indexOf("?"),
- g = "";
- 0 < f && (g = c.substring(f), c = c.substring(0, f));
- f = c.lastIndexOf(".");
- return 0 > f ? c + d + g: c.substring(0, f) + d + g
- },
- BB: function(c, d, f) {
- if (0 == d.indexOf(".")) return this.s_(c, d);
- var g = c.indexOf("?"),
- h = "";
- f = f ? this.Cp(c) : "";
- 0 < g && (h = c.substring(g), c = c.substring(0, g));
- g = c.lastIndexOf("/");
- return c.substring(0, 0 >= g ? 0 : g + 1) + d + f + h
- }
- };
- C.M = {
- paa: {},
- KN: {},
- wta: {},
- Hv: {},
- dR: "",
- dxa: "",
- fj: {},
- cI: function() {
- return window.XMLHttpRequest ? new window.XMLHttpRequest: new ActiveXObject("MSXML2.XMLHTTP")
- },
- N$: function(c) {
- var d = c[0],
- f = c[1],
- g = c[2],
- h = ["", s, s];
- 1 === c.length ? h[1] = d instanceof Array ? d: [d] : 2 === c.length ? "function" == typeof f ? (h[1] = d instanceof Array ? d: [d], h[2] = f) : (h[0] = d || "", h[1] = f instanceof Array ? f: [f]) : 3 === c.length ? (h[0] = d || "", h[1] = f instanceof Array ? f: [f], h[2] = g) : e("arguments error to load js!");
- return h
- },
- nEa: function(c, d, f) {
- var g = this,
- h = g.paa,
- k = g.N$(arguments); - 1 < navigator.userAgent.indexOf("Trident/5") ? g.uaa(k[0], k[1], 0, k[2]) : C.async.map(k[1],
- function(c, d, f) {
- c = C.path.join(k[0], c);
- if (h[c]) return f(s);
- g.C9(c, t, f)
- },
- k[2])
- },
- Jfa: function(c, d, f) {
- var g = this.zta(),
- h = this.N$(arguments);
- this.nEa(h[0], h[1],
- function(c) {
- c && e(c);
- g.parentNode.removeChild(g);
- if (h[2]) h[2]()
- })
- },
- C9: function(c, d, f) {
- var g = document,
- h = C.bd("script");
- h.async = d;
- h.src = c;
- this.paa[c] = q;
- C.qb(h, "load",
- function() {
- this.removeEventListener("load", arguments.callee, t);
- f()
- },
- t);
- C.qb(h, "error",
- function() {
- f("Load " + c + " failed!")
- },
- t);
- g.body.appendChild(h)
- },
- uaa: function(c, d, f, g) {
- if (f >= d.length) g && g();
- else {
- var h = this;
- h.C9(C.path.join(c, d[f]), t,
- function(k) {
- if (k) return g(k);
- h.uaa(c, d, f + 1, g)
- })
- }
- },
- zta: function() {
- var c = document,
- d = c.getElementById("cocos2d_loadJsImg");
- if (!d) {
- d = C.bd("img");
- C.xaa && (d.src = C.xaa);
- c = c.getElementById(C.qf.gj.id);
- c.style.backgroundColor = "black";
- c.parentNode.appendChild(d);
- var f = getComputedStyle ? getComputedStyle(c) : c.currentStyle;
- f || (f = {
- width: c.width,
- height: c.height
- });
- d.style.left = c.offsetLeft + (parseFloat(f.width) - d.width) / 2 + "px";
- d.style.top = c.offsetTop + (parseFloat(f.height) - d.height) / 2 + "px";
- d.style.position = "absolute"
- }
- return d
- },
- EQ: function(c, d) {
- if (C.iaa) require("fs").z1a(c,
- function(c, f) {
- c ? d(c) : d(s, f.toString())
- });
- else {
- var f = this.cI(),
- g = "load " + c + " failed!";
- f.open("GET", c, q);
- /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (f.setRequestHeader("Accept-Charset", "utf-8"), f.onreadystatechange = function() {
- 4 == f.readyState && 200 == f.status ? d(s, f.responseText) : d(g)
- }) : (f.overrideMimeType && f.overrideMimeType("text/plain; charset\x3dutf-8"), f.onload = function() {
- 4 == f.readyState && 200 == f.status ? d(s, f.responseText) : d(g)
- });
- f.send(s)
- }
- },
- vaa: function(c) {
- if (C.iaa) return require("fs").A1a(c).toString();
- var d = this.cI();
- d.open("GET", c, t);
- /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");
- d.send(s);
- return 4 == !d.readyState || 200 != d.status ? s: d.responseText
- },
- Kfa: function(c, d) {
- this.EQ(c,
- function(f, g) {
- try {
- f ? d(f) : d(s, JSON.parse(g))
- } catch(h) {
- e("load json [" + c + "] failed : " + h)
- }
- })
- },
- u9: function(c) {
- return /(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(c) != s
- },
- wI: function(c, d, f) {
- var g = q;
- f !== m ? g = d.g1 == s ? g: d.g1: d !== m && (f = d);
- var h = new Image;
- g && "file://" != location.origin && (h.crossOrigin = "Anonymous");
- C.qb(h, "load",
- function() {
- this.removeEventListener("load", arguments.callee, t);
- this.removeEventListener("error", arguments.callee, t);
- f && f(s, h)
- });
- C.qb(h, "error",
- function() {
- this.removeEventListener("error", arguments.callee, t);
- f && f("load image failed")
- });
- h.src = c;
- return h
- },
- Ata: function(c, d, f) {
- var g = this,
- h = s; (d = c.type) ? (d = "." + d.toLowerCase(), h = c.src ? c.src: c.name + d) : (h = c, d = C.path.Cp(h));
- var k = g.fj[h];
- if (k) return f(s, k);
- k = g.KN[d.toLowerCase()];
- if (!k) return C.error("loader for [" + d + "] not exists!"),
- f();
- d = g.K0(k.zP ? k.zP() : g.dR, h);
- k.load(d, h, c,
- function(c, d) {
- c ? (C.log(c), g.fj[h] = s, delete g.fj[h], f()) : (g.fj[h] = d, f(s, d))
- })
- },
- K0: function(c, d) {
- var f = this.wta,
- g = C.path;
- if (c !== m && d === m) {
- d = c;
- var h = g.Cp(d),
- h = h ? h.toLowerCase() : "";
- c = (h = this.KN[h]) ? h.zP ? h.zP() : this.dR: this.dR
- }
- d = C.path.join(c || "", d);
- if (d.match(/[\/(\\\\)]lang[\/(\\\\)]/i)) {
- if (f[d]) return f[d];
- g = g.Cp(d) || "";
- d = f[d] = d.substring(0, d.length - g.length) + "_" + C.Sc.language + g
- }
- return d
- },
- load: function(c, d, f) {
- f !== m ? "function" == typeof d && (d = {
- O3: d
- }) : d !== m ? "function" == typeof d && (f = d, d = {}) : c !== m ? d = {}: e("arguments error!");
- d.mg = function(c, d) {
- c && C.log(c);
- f && f(d)
- };
- c instanceof Array || (c = [c]);
- d.n1 = this.Ata;
- d.EDa = this;
- C.async.map(c, d)
- },
- Y$: function(c, d) {
- var f = this.Hv,
- g = [],
- h;
- for (h in c) {
- var k = c[h];
- f[h] = k;
- g.push(k)
- }
- this.load(g, d)
- },
- Y_a: function(c, d) {
- var f = this,
- g = f.xd(c);
- g ? f.Y$(g.filenames, d) : f.load(c,
- function(c) {
- f.Y$(c[0].filenames, d)
- })
- },
- Zp: function(c, d) {
- if (c && d) {
- if ("string" == typeof c) return this.KN[c.trim().toLowerCase()] = d;
- for (var f = 0,
- g = c.length; f < g; f++) this.KN["." + c[f].trim().toLowerCase()] = d
- }
- },
- xd: function(c) {
- return this.fj[c] || this.fj[this.Hv[c]]
- },
- rh: function(c) {
- var d = this.fj,
- f = this.Hv;
- delete d[c];
- delete d[f[c]];
- delete f[c]
- },
- L1a: function() {
- var c = this.fj,
- d = this.Hv,
- f;
- for (f in c) delete c[f];
- for (f in d) delete d[f]
- }
- }; (function() {
- function c() {
- C.Ka && C.qf.qt && C.Ka.dispatchEvent(C.qf.qt)
- }
- function d() {
- C.Ka && C.qf.pt && C.Ka.dispatchEvent(C.qf.pt)
- }
- var f = window,
- g, h;
- "undefined" !== typeof document.hidden ? (g = "hidden", h = "visibilitychange") : "undefined" !== typeof document.e0a ? (g = "mozHidden", h = "mozvisibilitychange") : "undefined" !== typeof document.f0a ? (g = "msHidden", h = "msvisibilitychange") : "undefined" !== typeof document.U6a && (g = "webkitHidden", h = "webkitvisibilitychange");
- g ? C.qb(document, h,
- function() {
- document[g] ? d() : c()
- },
- t) : (C.qb(f, "blur", d, t), C.qb(f, "focus", c, t));
- "onpageshow" in window && "onpagehide" in window && (C.qb(f, "pagehide", d, t), C.qb(f, "pageshow", c, t));
- h = f = s
- })();
- C.log = C.warn = C.error = C.assert = u();
- C.Yca = function(c, d) {
- for (var f = ["webgl", "experimental-webgl", "webkit-3d", "moz-webgl"], g = s, h = 0; h < f.length; ++h) {
- try {
- g = c.getContext(f[h], d)
- } catch(k) {}
- if (g) break
- }
- return g
- };
- C.eta = function(c, d) {
- C.cb = 0;
- C.la = 1;
- var f = C.Sc = {};
- f.Sma = "en";
- f.gMa = "zh";
- f.hMa = "fr";
- f.kMa = "it";
- f.iMa = "de";
- f.rMa = "es";
- f.qMa = "ru";
- f.mMa = "ko";
- f.lMa = "ja";
- f.jMa = "hu";
- f.pMa = "pt";
- f.fMa = "ar";
- f.nMa = "no";
- f.oMa = "pl";
- f.Dna = "Windows";
- f.L6 = "iOS";
- f.M6 = "OS X";
- f.Bna = "UNIX";
- f.Ana = "Linux";
- f.zna = "Android";
- f.Cna = "Unknown";
- f.dka = "wechat";
- f.aka = "androidbrowser";
- f.tS = "ie";
- f.bka = "qqbrowser";
- f.w4 = "mqqbrowser";
- f.x4 = "ucbrowser";
- f.LKa = "360browser";
- f.MKa = "baiduboxapp";
- f.v4 = "baidubrowser";
- f.NKa = "maxthon";
- f.uS = "opera";
- f.OKa = "miuibrowser";
- f.xD = "firefox";
- f.vS = "safari";
- f.sS = "chrome";
- f.cka = "unknown";
- f.wDa = t;
- var g = [f.v4, f.uS, f.xD, f.sS, f.vS],
- h = [f.v4, f.uS, f.xD, f.sS, f.vS, f.x4, f.bka, f.w4, f.tS],
- k = window,
- n = k.navigator,
- p = document.documentElement,
- r = n.userAgent.toLowerCase();
- f.Xr = -1 != r.indexOf("mobile") || -1 != r.indexOf("android");
- var v = n.language,
- v = (v = v ? v: n.browserLanguage) ? v.split("-")[0] : f.Sma;
- f.language = v;
- var v = f.cka,
- y = r.match(/micromessenger|qqbrowser|mqqbrowser|ucbrowser|360browser|baiduboxapp|baidubrowser|maxthon|trident|opera|miuibrowser|firefox/i) || r.match(/chrome|safari/i);
- y && 0 < y.length && (v = y[0].toLowerCase(), "micromessenger" == v ? v = f.dka: "safari" === v && r.match(/android.*applewebkit/) ? v = f.aka: "trident" == v && (v = f.tS));
- f.tu = v;
- f.Ova = -1 < h.indexOf(f.tu);
- h = parseInt(c[d.bR]);
- v = C.la;
- y = C.bd("Canvas");
- C.SG = q;
- g = -1 == g.indexOf(f.tu);
- if (1 === h || 0 === h && (f.Xr || g)) v = C.cb;
- if (v == C.la && (!k.WebGLRenderingContext || !C.Yca(y, {
- stencil: q,
- preserveDrawingBuffer: q
- }))) 0 == h ? v = C.cb: C.SG = t;
- if (v == C.cb) try {
- y.getContext("2d")
- } catch(z) {
- C.SG = t
- }
- C.L = v;
- try {
- f.jO = !!new(k.AudioContext || k.webkitAudioContext || k.mozAudioContext)
- } catch(D) {
- f.jO = t
- }
- try {
- var E = f.localStorage = k.localStorage;
- E.setItem("storage", "");
- E.removeItem("storage");
- E = s
- } catch(F) { ("SECURITY_ERR" === F.name || "QuotaExceededError" === F.name) && C.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"),
- f.localStorage = u()
- }
- E = f.uH = {
- canvas: q
- };
- C.L == C.la && (E.opengl = q);
- p.ontouchstart !== m || n.msPointerEnabled ? E.touches = q: p.onmouseup !== m && (E.mouse = q);
- p.onkeyup !== m && (E.keyboard = q);
- if (k.DeviceMotionEvent || k.DeviceOrientationEvent) E.accelerometer = q;
- k = r.match(/(iPad|iPhone|iPod)/i) ? q: t;
- r = r.match(/android/i) || n.platform.match(/android/i) ? q: t;
- p = f.Cna; - 1 != n.appVersion.indexOf("Win") ? p = f.Dna: k ? p = f.L6: -1 != n.appVersion.indexOf("Mac") ? p = f.M6: -1 != n.appVersion.indexOf("X11") ? p = f.Bna: -1 != n.appVersion.indexOf("Linux") ? p = f.Ana: r && (p = f.zna);
- f.Q1 = p;
- f.DSa = u();
- f.RRa = u();
- f.C2a = u();
- f.PRa = function() {
- var c;
- c = "" + ("isMobile : " + this.Xr + "\r\n");
- c += "language : " + this.language + "\r\n";
- c += "browserType : " + this.tu + "\r\n";
- c += "capabilities : " + JSON.stringify(this.uH) + "\r\n";
- c += "os : " + this.Q1 + "\r\n";
- C.log(c)
- }
- };
- C.LMa = 0;
- C.MMa = 1;
- C.JMa = 2;
- C.KMa = 3;
- C.Df = s;
- C.t = s;
- C.Pb = s;
- C.bsa = s;
- C.NN = t;
- C.zba = t;
- C.yba = function(c) {
- var d, f;
- if (!C.zba) {
- C.zba = q;
- var g = window;
- g.r2 = g.requestAnimationFrame || g.webkitRequestAnimationFrame || g.mozRequestAnimationFrame || g.oRequestAnimationFrame || g.msRequestAnimationFrame;
- var h = C.ic(c) || C.ic("#" + c),
- k;
- "CANVAS" == h.tagName ? (d = d || h.width, f = f || h.height, k = C.container = C.bd("DIV"), c = C.Pb = h, c.parentNode.insertBefore(k, c), c.ox(k), k.setAttribute("id", "Cocos2dGameContainer")) : ("DIV" != h.tagName && C.log("Warning: target element is not a DIV or CANVAS"), d = d || h.clientWidth, f = f || h.clientHeight, k = C.container = h, c = C.Pb = C.ic(C.bd("CANVAS")), h.appendChild(c));
- c.pca("gameCanvas");
- c.setAttribute("width", d || 480);
- c.setAttribute("height", 640);
- c.setAttribute("tabindex", 99);
- c.style.outline = "none";
- h = k.style;
- h.width = (d || 480) + "px";
- h.height = (f || 320) + "px";
- h.margin = "0 auto";
- h.position = "relative";
- h.overflow = "hidden";
- k.top = "100%";
- C.L == C.la && (C.t = C.T6a = C.Yca(c, {
- stencil: q,
- preserveDrawingBuffer: q,
- antialias: !C.Sc.Xr,
- alpha: t
- }));
- C.t ? (g.gl = C.t, C.Df = new C.Ola(C.t), C.NN = q, C.kb.jta(), C.ug.UF()) : (C.t = c.getContext("2d"), C.Dta = C.t, C.t.translate(0, c.height), C.Df = C.z5 ? new C.z5(C.t) : s);
- C.bsa = k;
- C.log(C.$S);
- C.Vua();
- C.Sc.Xr && (d = C.bd("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);}");
- C.view = C.YS.KW();
- C.dfa.jGa(C.Pb);
- C.Q = C.ec.KW();
- C.Q.W2 && C.Q.W2(C.view);
- C.KJ = C.Q.aa;
- C.IGa = new C.GK;
- C.JFa = new C.Rna
- }
- };
- C.LV = function() {
- C.L !== C.la && e("This feature supports WebGL render mode only.")
- };
- C.haa = t;
- C.Vua = function() {
- C.haa = t;
- C.Pb.oncontextmenu = function() {
-
- }
- };
- C.qf = {
- t5: 0,
- Dla: 1,
- pLa: 2,
- Cla: 3,
- SS: 4,
- u5: 5,
- s5: 6,
- kK: "game_on_hide",
- JD: "game_on_show",
- pt: s,
- qt: s,
- kPa: [],
- Wm: {
- b0: "engineDir",
- tRa: "dependencies",
- CH: "debugMode",
- EIa: "showFPS",
- vP: "frameRate",
- id: "id",
- bR: "renderMode",
- GDa: "jsList",
- Ixa: "classReleaseMode"
- },
- Saa: t,
- ZX: t,
- xe: q,
- dX: s,
- gj: s,
- Vp: s,
- D0a: s,
- e4a: function(c) {
- this.gj[this.Wm.vP] = c;
- this.dX && clearInterval(this.dX);
- this.xe = q;
- this.sY()
- },
- sY: function() {
- var c = this,
- d, f = c.gj,
- g = c.Wm,
- h = window,
- k = f[g.vP],
- n = C.Q;
- n.qHa(f[g.EIa]);
- h.r2 && 60 == k ? (d = function() {
- c.xe || (n.Ofa(), h.r2(d))
- },
- h.r2(d)) : (d = function() {
- n.Ofa()
- },
- c.dX = setInterval(d, 1E3 / k));
- c.xe = t
- },
- HGa: function(c) {
- function d() {
- c && (f.gj[f.Wm.id] = c);
- f.Saa ? C.SG && (f.kra = setInterval(function() {
- f.ZX && (C.yba(f.gj[f.Wm.id]), f.sY(), f.pt = f.pt || new C.jq(f.kK), f.pt.setUserData(f), f.qt = f.qt || new C.jq(f.JD), f.qt.setUserData(f), f.Vp(), clearInterval(f.kra))
- },
- 10)) : f.SFa(function() {
- C.SG && (C.yba(f.gj[f.Wm.id]), f.sY(), f.pt = f.pt || new C.jq(f.kK), f.pt.setUserData(f), f.qt = f.qt || new C.jq(f.JD), f.qt.setUserData(f), f.Vp())
- })
- }
- var f = this;
- document.body ? d() : C.qb(window, "load",
- function() {
- this.removeEventListener("load", arguments.callee, t);
- d()
- },
- t)
- },
- ata: function() {
- function c(c) {
- c[d.b0] = c[d.b0] || "frameworks/cocos2d-html5";
- c[d.CH] == s && (c[d.CH] = 0);
- c[d.vP] = c[d.vP] || 60;
- c[d.bR] == s && (c[d.bR] = 1);
- return c
- }
- var d = this.Wm;
- if (document.ccConfig) this.gj = c(document.ccConfig);
- else try {
- for (var f = document.getElementsByTagName("script"), g = 0; g < f.length; g++) {
- var h = f[g].getAttribute("cocos");
- if ("" == h || h) break
- }
- var k, n, p;
- if (g < f.length) {
- if (k = f[g].src) p = /(.*)\//.exec(k)[0],
- C.M.dR = p,
- k = C.path.join(p, "project.json");
- n = C.M.vaa(k)
- }
- n || (n = C.M.vaa("project.json"));
- var r = JSON.parse(n);
- this.gj = c(r || {})
- } catch(v) {
- C.log("Failed to read or parse project.json"),
- this.gj = c({})
- }
- C.eta(this.gj, d)
- },
- tta: {},
- Q$: function(c, d, f) {
- var g = this.tta;
- if (g[d]) return s;
- f = f || "";
- var h = [],
- k = c[d];
- k || e("can not find module [" + d + "]");
- d = C.path;
- for (var n = 0,
- p = k.length; n < p; n++) {
- var r = k[n];
- if (!g[r]) {
- var v = d.Cp(r);
- v ? ".js" == v.toLowerCase() && h.push(d.join(f, r)) : (v = this.Q$(c, r, f)) && (h = h.concat(v));
- g[r] = 1
- }
- }
- return h
- },
- SFa: function(c) {
- var d = this,
- f = d.gj,
- g = d.Wm,
- h = f[g.b0],
- k = C.M;
- if (C.SG) {
- d.Saa = q;
- var n = f[g.GDa] || [];
- C.O ? k.Jfa("", n,
- function(f) {
- f && e(f);
- d.ZX = q;
- c && c()
- }) : (g = C.path.join(h, "moduleConfig.json"), k.Kfa(g,
- function(g, k) {
- g && e(g);
- var v = f.modules || [],
- y = k.module,
- z = [];
- C.L == C.la ? v.splice(0, 0, "shaders") : 0 > v.indexOf("core") && v.splice(0, 0, "core");
- for (var D = 0,
- E = v.length; D < E; D++) {
- var F = d.Q$(y, v[D], h);
- F && (z = z.concat(F))
- }
- z = z.concat(n);
- C.M.Jfa(z,
- function(f) {
- f && e(f);
- d.ZX = q;
- c && c()
- })
- }))
- } else C.error("Can not support render!")
- }
- };
- C.qf.ata();
- C.n = {
- l4: "cc.ActionManager.addAction(): action must be non-null",
- Ija: "cocos2d: removeAction: Target not found",
- nKa: "cc.ActionManager.removeActionByTag(): an invalid tag",
- oKa: "cc.ActionManager.removeActionByTag(): target must be non-null",
- Gja: "cc.ActionManager.getActionByTag(): an invalid tag",
- Hja: "cocos2d : getActionByTag(tag \x3d %s): Action not found",
- Mxa: "cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)",
- Nxa: "Expected 'data' dict, but not found. Config file: %s",
- Oxa: "Please load the resource first : %s",
- Jla: "cocos2d: Director: Error in gettimeofday",
- Kla: "cocos2d: Director: unrecognized projection",
- ALa: "cocos2d: Director: unrecognized projection",
- Ila: "cocos2d: Director: Error in gettimeofday",
- Hla: "running scene should not null",
- y5: "the scene should not null",
- yB: "element type is wrong!",
- Coa: "CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s",
- Doa: "cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.",
- Eoa: "cc.scheduler.scheduleCallbackForTarget(): target should be non-null.",
- Aoa: "cc.Scheduler.pauseTarget():target should be non-null",
- Boa: "cc.Scheduler.resumeTarget():target should be non-null",
- zoa: "cc.Scheduler.isTargetPaused():target should be non-null",
- jna: "getZOrder is deprecated. Please use getLocalZOrder instead.",
- una: "setZOrder is deprecated. Please use setLocalZOrder instead.",
- hna: "RotationX !\x3d RotationY. Don't know which one to return",
- ina: "ScaleX !\x3d ScaleY. Don't know which one to return",
- dna: "An Node can't be added as a child of itself.",
- ena: "child already added. It can't be added again",
- fna: "child must be non-null",
- ona: "removeFromParentAndCleanup is deprecated. Use removeFromParent instead",
- mna: "argument tag is an invalid tag",
- nna: "cocos2d: removeChildByTag(tag \x3d %s): child not found!",
- lna: "removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead",
- vna: "cc.Node.stopActionBy(): argument tag an invalid tag",
- gna: "cc.Node.getActionByTag(): argument tag is an invalid tag",
- qna: "resumeSchedulerAndActions is deprecated, please use resume instead.",
- kna: "pauseSchedulerAndActions is deprecated, please use pause instead.",
- cna: "Unknown callback function",
- pna: "child must be non-null",
- rna: "cc.Node.runAction(): action must be non-null",
- sna: "callback function must be non-null",
- tna: "interval must be positive",
- DMa: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
- Rja: "cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses",
- xKa: "",
- n4: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
- uqa: "cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!",
- wqa: "cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!",
- vqa: "cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!",
- tqa: "cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil",
- gma: "Invalid parameter.",
- cL: "Don't call this method if the event is for touch.",
- Bza: "Invalid scene graph priority!",
- Cza: "0 priority is forbidden for fixed priority since it's used for scene graph based priority.",
- Gza: "Invalid listener type!",
- Hza: "Can't set fixed priority with scene graph based listener.",
- Dza: "Invalid parameters.",
- Eza: "listener must be a cc.EventListener object when adding a fixed priority listener",
- Fza: "The listener has been registered, please don't register it again.",
- Vma: "parameters should not be ending with null in Javascript",
- Wma: "Invalid index in MultiplexLayer switchTo message",
- Xma: "Invalid index in MultiplexLayer switchTo message",
- Uma: "cc.Layer.addLayer(): layer should be non-null",
- Sla: "Resolution not valid",
- Tla: "should set resolutionPolicy",
- fDa: "The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s",
- Uia: "cc.swap is being modified from original macro, please check usage",
- DB: "WebGL error %s",
- Owa: "cocos2d: cc.AnimationCache: No animations were found in provided dictionary.",
- Pwa: "cc.AnimationCache. Invalid animation format",
- Wwa: "cc.AnimationCache.addAnimations(): File could not be found",
- Qwa: "cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
- Rwa: "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.",
- Swa: "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.",
- Twa: "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.",
- Uwa: "cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
- Vwa: "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.",
- Xwa: "cc.AnimationCache.addAnimations(): Invalid texture file name",
- gpa: "cc.Sprite.reorderChild(): this child is not in children list",
- Zoa: "cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode",
- jpa: "cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found",
- kpa: "cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index",
- ipa: "setDisplayFrame is deprecated, please use setSpriteFrame instead.",
- Soa: "cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode",
- apa: "cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null",
- bpa: "cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null",
- cpa: " is null, please check.",
- $oa: "cc.Sprite.initWithFile(): filename should be non-null",
- lpa: "cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null",
- hpa: "cc.Sprite.reorderChild(): child should be non-null",
- Toa: "cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode",
- Uoa: "cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode",
- Voa: "cc.Sprite.addChild(): child should be non-null",
- npa: "cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode",
- gNa: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
- epa: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
- Woa: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
- Xoa: "cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture",
- dpa: "Sprite.initWithTexture(): Argument must be non-nil ",
- mpa: "Invalid spriteFrameName",
- opa: "Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.",
- hNa: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
- fpa: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
- Yoa: "cc.SpriteBatchNode.addChild(): child should be non-null",
- Loa: "cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children",
- Noa: "cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.",
- Ooa: "cocos2d: WARNING: Not enough memory to resize the atlas",
- Qoa: "cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite",
- Poa: "cc.SpriteBatchNode.addChild(): sprite batch node should contain the child",
- Moa: "cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null",
- Roa: "cc.SpriteBatchNode.addChild():child should be non-null",
- MIa: "cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist",
- OIa: "cocos2d: WARNING: an alias with name %s already exists",
- LIa: "cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit",
- RIa: "cocos2d: cc.SpriteFrameCahce: Frame %s not found",
- NIa: "Please load the resource first : %s",
- PIa: "cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null",
- QIa: "Argument must be non-nil",
- CS: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
- tka: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
- pka: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
- ska: "Sprite.initWithTexture(): Argument must be non-nil ",
- qka: "cc.Sprite.addChild(): child should be non-null",
- vka: "Invalid spriteFrameName",
- wka: "Invalid argument: cc.Sprite texture setter expects a CCTexture2D.",
- xka: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
- uka: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
- rka: "cc.SpriteBatchNode.addChild(): child should be non-null",
- Opa: "cocos2d: Could not open file: %s",
- Z7: "cc.TextureAtlas.insertQuad(): invalid totalQuads",
- Ppa: "cc.TextureAtlas.initWithTexture():texture should be non-null",
- Zpa: "cc.TextureAtlas.updateQuad(): quad should be non-null",
- $pa: "cc.TextureAtlas.updateQuad(): Invalid index",
- Spa: "cc.TextureAtlas.insertQuad(): Invalid index",
- Tpa: "cc.TextureAtlas.insertQuad(): Invalid index + amount",
- Qpa: "cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex",
- Rpa: "cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex",
- Xpa: "cc.TextureAtlas.removeQuadAtIndex(): Invalid index",
- Ypa: "cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds",
- Upa: "cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds",
- Vpa: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex",
- Wpa: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex",
- fJa: "TextureCache:addPVRTCImage does not support on HTML5",
- dJa: "TextureCache:addPVRTCImage does not support on HTML5",
- eJa: "addPVRImage does not support on HTML5",
- gJa: "cocos2d: Couldn't add UIImage in TextureCache",
- iJa: "cocos2d: '%s' id\x3d%s %s x %s",
- Wia: "cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s",
- jJa: "cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)",
- hJa: "cc.Texture.addUIImage(): image should be non-null",
- Fpa: "initWithETCFile does not support on HTML5",
- Jpa: "initWithPVRFile does not support on HTML5",
- Lpa: "initWithPVRTCData does not support on HTML5",
- Bpa: "cc.Texture.addImage(): path should be non-null",
- Hpa: "cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil",
- Ipa: "cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s",
- Npa: "initWithString isn't supported on cocos2d-html5",
- Gpa: "initWithETCFile does not support on HTML5",
- Kpa: "initWithPVRFile does not support on HTML5",
- Mpa: "initWithPVRTCData does not support on HTML5",
- Dpa: "bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format",
- Apa: "cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha",
- Cpa: "cc.Texture.addImage(): path should be non-null",
- Epa: "NSInternalInconsistencyException",
- Bf: "Missing file: %s",
- zga: "cc.radiansToDegress() should be called cc.radiansToDegrees()",
- YT: "Rect width exceeds maximum margin: %s",
- XT: "Rect height exceeds maximum margin: %s",
- hma: "If program goes here, there should be event in dispatch.",
- ima: "_inDispatch should be 1 here."
- };
- C.aN = function(c) {
- if (C.Pb) {
- var d = C.Bta,
- f = document;
- if (!d) {
- var g = f.createElement("Div"),
- d = g.style;
- g.setAttribute("id", "logInfoDiv");
- C.Pb.parentNode.appendChild(g);
- g.setAttribute("width", "200");
- g.setAttribute("height", C.Pb.height);
- d.zIndex = "99999";
- d.position = "absolute";
- d.top = "0";
- d.left = "0";
- d = C.Bta = f.createElement("textarea");
- f = d.style;
- d.setAttribute("rows", "20");
- d.setAttribute("cols", "30");
- d.setAttribute("disabled", q);
- g.appendChild(d);
- f.backgroundColor = "transparent";
- f.borderBottom = "1px solid #cccccc";
- f.borderRightWidth = "0px";
- f.borderLeftWidth = "0px";
- f.borderTopWidth = "0px";
- f.borderTopStyle = "none";
- f.borderRightStyle = "none";
- f.borderLeftStyle = "none";
- f.padding = "0px";
- f.margin = 0
- }
- c = "string" == typeof c ? c: JSON.stringify(c);
- d.value = d.value + c + "\r\n";
- d.scrollTop = d.scrollHeight
- }
- };
- C.zM = function(c) {
- if ("object" === typeof c) try {
- return JSON.stringify(c)
- } catch(d) {
- return ""
- } else return c
- };
- console.log && (C.log = function(c) {
- for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, C.zM(arguments[d]));
- console.log(c)
- },
- C.warn = console.warn ?
- function(c) {
- for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, C.zM(arguments[d]));
- console.warn(c)
- }: C.log, C.error = console.error ?
- function(c) {
- for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, C.zM(arguments[d]));
- console.error(c)
- }: C.log, C.assert = function(c, d) {
- if (!c && d) {
- for (var f = 2; f < arguments.length; f++) d = d.replace(/(%s)|(%d)/, C.zM(arguments[f]));
- e(d)
- }
- });
- var ea = C.qf.gj[C.qf.Wm.CH],
- fa = C.qf;
- console.log && ea === fa.Dla || (C.log = ea == fa.SS ? C.aN.bind(C) : u());
- if (!ea || ea == fa.t5 || ea == fa.Cla || ea == fa.s5) C.warn = u();
- if (ea == fa.SS || ea == fa.u5 || !console.warn) C.warn = C.aN.bind(C);
- if (!ea || ea == fa.t5) C.error = u(),
- C.assert = u();
- else if (ea == fa.SS || ea == fa.u5 || ea == fa.s5 || !console.error) C.error = C.aN.bind(C),
- C.assert = function(c, d) {
- if (!c && d) {
- for (var f = 2; f < arguments.length; f++) d = d.replace("%s", arguments[f]);
- C.aN(d)
- }
- };
- C.M.kEa = function(c, d) {
- var f = this,
- g = this.cI(),
- h = "load " + c + " failed!";
- g.open("GET", c, q);
- /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (g.setRequestHeader("Accept-Charset", "x-user-defined"), g.onreadystatechange = function() {
- if (4 == g.readyState && 200 == g.status) {
- var c = C.RV(g.responseBody);
- d(s, f.fO(c))
- } else d(h)
- }) : (g.overrideMimeType && g.overrideMimeType("text/plain; charset\x3dx-user-defined"), g.onload = function() {
- 4 == g.readyState && 200 == g.status ? d(s, f.fO(g.responseText)) : d(h)
- });
- g.send(s)
- };
- C.M.fO = function(c) {
- if (!c) return s;
- for (var d = new Uint8Array(c.length), f = 0; f < c.length; f++) d[f] = c.charCodeAt(f) & 255;
- return d
- };
- C.M.Ifa = function(c) {
- var d = this.cI(),
- f = "load " + c + " failed!";
- d.open("GET", c, t);
- c = s;
- if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
- d.setRequestHeader("Accept-Charset", "x-user-defined");
- d.send(s);
- if (200 != d.status) return C.log(f),
- s; (d = C.RV(d.responseBody)) && (c = this.fO(d))
- } else {
- d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dx-user-defined");
- d.send(s);
- if (200 != d.status) return C.log(f),
- s;
- c = this.fO(d.responseText)
- }
- return c
- };
- var Uint8Array = Uint8Array || Array;
- if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
- var ga = C.bd("script");
- ga.type = "text/vbscript";
- ga.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';
- document.body.appendChild(ga);
- C.RV = function(c) {
- for (var d = {},
- f = 0; 256 > f; f++) for (var g = 0; 256 > g; g++) d[String.fromCharCode(f + 256 * g)] = String.fromCharCode(f) + String.fromCharCode(g);
- f = IEBinaryToArray_ByteStr(c);
- c = IEBinaryToArray_ByteStr_Last(c);
- return f.replace(/[\s\S]/g,
- function(c) {
- return d[c]
- }) + c
- }
- };
- C = C || {};
- C.xaa = "data:image/gif;base64,R0lGODlhEAAQALMNAD8/P7+/vyoqKlVVVX9/fxUVFUBAQGBgYMDAwC8vL5CQkP///wAAAP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAANACwAAAAAEAAQAAAEO5DJSau9OOvNex0IMnDIsiCkiW6g6BmKYlBFkhSUEgQKlQCARG6nEBwOgl+QApMdCIRD7YZ5RjlGpCUCACH5BAUAAA0ALAAAAgAOAA4AAAQ6kLGB0JA4M7QW0hrngRllkYyhKAYqKUGguAws0ypLS8JxCLQDgXAIDg+FRKIA6v0SAECCBpXSkstMBAAh+QQFAAANACwAAAAACgAQAAAEOJDJORAac6K1kDSKYmydpASBUl0mqmRfaGTCcQgwcxDEke+9XO2WkxQSiUIuAQAkls0n7JgsWq8RACH5BAUAAA0ALAAAAAAOAA4AAAQ6kMlplDIzTxWC0oxwHALnDQgySAdBHNWFLAvCukc215JIZihVIZEogDIJACBxnCSXTcmwGK1ar1hrBAAh+QQFAAANACwAAAAAEAAKAAAEN5DJKc4RM+tDyNFTkSQF5xmKYmQJACTVpQSBwrpJNteZSGYoFWjIGCAQA2IGsVgglBOmEyoxIiMAIfkEBQAADQAsAgAAAA4ADgAABDmQSVZSKjPPBEDSGucJxyGA1XUQxAFma/tOpDlnhqIYN6MEAUXvF+zldrMBAjHoIRYLhBMqvSmZkggAIfkEBQAADQAsBgAAAAoAEAAABDeQyUmrnSWlYhMASfeFVbZdjHAcgnUQxOHCcqWylKEohqUEAYVkgEAMfkEJYrFA6HhKJsJCNFoiACH5BAUAAA0ALAIAAgAOAA4AAAQ3kMlJq704611SKloCAEk4lln3DQgyUMJxCBKyLAh1EMRR3wiDQmHY9SQslyIQUMRmlmVTIyRaIgA7";
- C.aA = "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";
- C.waa = "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";
- var C = C || {},
- ha = {
- id: 0 | 998 * Math.random(),
- iDa: 0 | 998 * Math.random(),
- Sca: function(c, d, f) {
- c = c.toString();
- var g = c.substring(c.indexOf("(") + 1, c.indexOf(")")),
- g = g.trim();
- for (c = c.substring(c.indexOf("{") + 1, c.lastIndexOf("}")); - 1 != c.indexOf("this._super");) {
- var h = c.indexOf("this._super"),
- k = c.indexOf("(", h),
- n = c.substring(k + 1, c.indexOf(")", k)),
- n = n.trim();
- c = c.substring(0, h) + "ClassManager[" + f + "]." + d + ".call(this" + (n ? ",": "") + c.substring(k + 1)
- }
- return Function(g, c)
- },
- eea: function() {
- return this.id++
- },
- jBa: function() {
- return this.iDa++
- }
- };
- ha.Sca.nLa = ha; (function() {
- var c = /\b_super\b/,
- d = C.qf.gj[C.qf.Wm.Ixa];
- d && console.log("release Mode");
- C.O = u();
- C.O.extend = function(f) {
- function g() {
- this.ub = ha.jBa();
- this.ctor && this.ctor.apply(this, arguments)
- }
- var h = this.prototype,
- k = Object.create(h),
- n = ha.eea();
- ha[n] = h;
- var p = {
- writable: q,
- enumerable: t,
- configurable: q
- };
- k.ub = s;
- g.id = n;
- p.value = n;
- Object.defineProperty(k, "__pid", p);
- g.prototype = k;
- p.value = g;
- Object.defineProperty(g.prototype, "constructor", p);
- this.Jo && (g.Jo = C.s(this.Jo));
- this.Ko && (g.Ko = C.s(this.Ko));
- for (var r = 0,
- v = arguments.length; r < v; ++r) {
- var y = arguments[r],
- z;
- for (z in y) {
- var D = "function" === typeof y[z],
- E = "function" === typeof h[z],
- F = c.test(y[z]);
- d && D && E && F ? (p.value = ha.Sca(y[z], z, n), Object.defineProperty(k, z, p)) : D && E && F ? (p.value = function(c, d) {
- return function() {
- var f = this._super;
- this._super = h[c];
- var g = d.apply(this, arguments);
- this._super = f;
- return g
- }
- } (z, y[z]), Object.defineProperty(k, z, p)) : D ? (p.value = y[z], Object.defineProperty(k, z, p)) : k[z] = y[z];
- if (D) {
- var G, K;
- if (this.Jo && this.Jo[z]) {
- var D = this.Jo[z],
- O;
- for (O in this.Ko) if (this.Ko[O] == D) {
- K = O;
- break
- }
- C.e(k, D, y[z], y[K] ? y[K] : k[K], z, K)
- }
- if (this.Ko && this.Ko[z]) {
- D = this.Ko[z];
- for (O in this.Jo) if (this.Jo[O] == D) {
- G = O;
- break
- }
- C.e(k, D, y[G] ? y[G] : k[G], y[z], G, z)
- }
- }
- }
- }
- g.extend = C.O.extend;
- g.NXa = function(c) {
- for (var d in c) k[d] = c[d]
- };
- return g
- };
- Function.prototype.bind = Function.prototype.bind ||
- function(c) {
- var d = this;
- return function() {
- var h = Array.prototype.slice.call(arguments);
- return d.apply(c || s, h)
- }
- }
- })();
- C.e = function(c, d, f, g, h, k) {
- if (c.__defineGetter__) f && c.__defineGetter__(d, f),
- g && c.__defineSetter__(d, g);
- else if (Object.defineProperty) {
- var n = {
- enumerable: t,
- configurable: q
- };
- f && (n.get = f);
- g && (n.set = g);
- Object.defineProperty(c, d, n)
- } else e(Error("browser does not support getters"));
- if (!h && !k) for (var n = f != s,
- p = g != m,
- r = Object.getOwnPropertyNames(c), v = 0; v < r.length; v++) {
- var y = r[v];
- if (! ((c.__lookupGetter__ ? c.__lookupGetter__(y) : Object.getOwnPropertyDescriptor(c, y)) || "function" !== typeof c[y])) {
- var z = c[y];
- if (n && z === f && (h = y, !p || k)) break;
- if (p && z === g && (k = y, !n || h)) break
- }
- }
- c = c.constructor;
- h && (c.Jo || (c.Jo = {}), c.Jo[h] = d);
- k && (c.Ko || (c.Ko = {}), c.Ko[k] = d)
- };
- C.s = function(c) {
- var d = c.constructor ? new c.constructor: {},
- f;
- for (f in c) {
- var g = c[f];
- d[f] = "object" == typeof g && g && !(g instanceof C.A) && !(g instanceof HTMLElement) ? C.s(g) : g
- }
- return d
- };
- C = C || {};
- C.U = C.U || {};
- C.tQa = u();
- C.Uy = {
- Gca: 8,
- aJa: 9,
- c0: 13,
- shift: 16,
- pRa: 17,
- alt: 18,
- pause: 19,
- HQa: 20,
- escape: 27,
- W0a: 33,
- V0a: 34,
- end: 35,
- home: 36,
- left: 37,
- E6a: 38,
- right: 39,
- LRa: 40,
- RXa: 45,
- yLa: 46,
- "0": 48,
- 1 : 49,
- 2 : 50,
- 3 : 51,
- 4 : 52,
- 5 : 53,
- 6 : 54,
- 7 : 55,
- 8 : 56,
- 9 : 57,
- a: 65,
- b: 66,
- H: 67,
- P: 68,
- xm: 69,
- Un: 70,
- g: 71,
- Rf: 72,
- hI: 73,
- pQ: 74,
- qQ: 75,
- AQ: 76,
- FQ: 77,
- ds: 78,
- LQ: 79,
- d: 80,
- ZQ: 81,
- r: 82,
- tl: 83,
- K3: 84,
- xa: 85,
- ea: 86,
- ba: 87,
- x: 88,
- y: 89,
- f: 90,
- l0a: 96,
- m0a: 97,
- n0a: 98,
- o0a: 99,
- p0a: 100,
- q0a: 101,
- r0a: 102,
- s0a: 103,
- t0a: 104,
- u0a: 105,
- "*": 106,
- "+": 107,
- "-": 109,
- numdel: 110,
- "/": 111,
- gSa: 112,
- kSa: 113,
- lSa: 114,
- mSa: 115,
- nSa: 116,
- oSa: 117,
- pSa: 118,
- qSa: 119,
- rSa: 120,
- hSa: 121,
- iSa: 122,
- jSa: 123,
- y0a: 144,
- d3a: 145,
- g3a: 186,
- ",": 186,
- bSa: 187,
- "\x3d": 187,
- ";": 188,
- bRa: 188,
- qRa: 189,
- ".": 190,
- c1a: 190,
- ASa: 191,
- EXa: 192,
- "[": 219,
- G0a: 219,
- "]": 221,
- XQa: 221,
- vQa: 220,
- quote: 222,
- D3: 32
- };
- C.OLa = 0;
- C.dT = 1;
- C.P5 = 2;
- C.PLa = 3;
- C.QLa = 4;
- C.nma = 5;
- C.JAa = function(c) {
- 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] ? C.dT: 2 < c.length && (73 == c[0] && 73 == c[1] || 77 == c[0] && 77 == c[1] || 255 == c[0] && 216 == c[1]) ? C.P5: C.nma
- };
- C.OXa = function(c, d) {
- function f() {}
- f.prototype = d.prototype;
- c.bS = d.prototype;
- c.prototype = new f;
- c.prototype.constructor = c
- };
- C.wQa = function(c, d, f) {
- var g = arguments.callee.caller;
- if (g.bS) return ret = g.bS.constructor.apply(c, Array.prototype.slice.call(arguments, 1));
- for (var h = Array.prototype.slice.call(arguments, 2), k = t, n = c.constructor; n; n = n.bS && n.bS.constructor) if (n.prototype[d] === g) k = q;
- else if (k) return n.prototype[d].apply(c, h);
- if (c[d] === g) return c.constructor.prototype[d].apply(c, h);
- e(Error("cc.base called from a method of one name to a method of a different name"))
- };
- C.TMa = function(c, d) {
- this.x = c || 0;
- this.y = d || 0
- };
- C.d = function(c, d) {
- return c == m ? {
- x: 0,
- y: 0
- }: d == m ? {
- x: c.x,
- y: c.y
- }: {
- x: c,
- y: d
- }
- };
- C.b2 = function(c, d) {
- return c && d && c.x === d.x && c.y === d.y
- };
- C.eNa = function(c, d) {
- this.width = c || 0;
- this.height = d || 0
- };
- C.size = function(c, d) {
- return c === m ? {
- width: 0,
- height: 0
- }: d === m ? {
- width: c.width,
- height: c.height
- }: {
- width: c,
- height: d
- }
- };
- C.R5a = function(c, d) {
- return c && d && c.width == d.width && c.height == d.height
- };
- C.az = function(c, d, f, g) {
- this.x = c || 0;
- this.y = d || 0;
- this.width = f || 0;
- this.height = g || 0
- };
- C.rect = function(c, d, f, g) {
- return c === m ? {
- x: 0,
- y: 0,
- width: 0,
- height: 0
- }: d === m ? {
- x: c.x,
- y: c.y,
- width: c.width,
- height: c.height
- }: {
- x: c,
- y: d,
- width: f,
- height: g
- }
- };
- C.Ega = function(c, d) {
- return c && d && c.x === d.x && c.y === d.y && c.width === d.width && c.height === d.height
- };
- C.wG = function(c) {
- return c && 0 === c.x && 0 === c.y && 0 === c.width && 0 === c.height
- };
- C.E1a = function(c, d) {
- return ! c || !d ? t: !(c.x >= d.x || c.y >= d.y || c.x + c.width <= d.x + d.width || c.y + c.height <= d.y + d.height)
- };
- C.Xp = function(c) {
- return c.x + c.width
- };
- C.F1a = function(c) {
- return c.x + c.width / 2
- };
- C.io = function(c) {
- return c.x
- };
- C.Yp = function(c) {
- return c.y + c.height
- };
- C.G1a = function(c) {
- return c.y + c.height / 2
- };
- C.jo = function(c) {
- return c.y
- };
- C.Ju = function(c, d) {
- return d.x >= C.io(c) && d.x <= C.Xp(c) && d.y >= C.jo(c) && d.y <= C.Yp(c)
- };
- C.gGa = function(c, d) {
- var f = c.y + c.height,
- g = d.x + d.width,
- h = d.y + d.height;
- return ! (c.x + c.width < d.x || g < c.x || f < d.y || h < c.y)
- };
- C.H1a = function(c, d) {
- 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)
- };
- C.MC = function(c, d) {
- var f = C.rect(0, 0, 0, 0);
- f.x = Math.min(c.x, d.x);
- f.y = Math.min(c.y, d.y);
- f.width = Math.max(c.x + c.width, d.x + d.width) - f.x;
- f.height = Math.max(c.y + c.height, d.y + d.height) - f.y;
- return f
- };
- C.fGa = function(c, d) {
- var f = C.rect(Math.max(C.io(c), C.io(d)), Math.max(C.jo(c), C.jo(d)), 0, 0);
- f.width = Math.min(C.Xp(c), C.Xp(d)) - C.io(f);
- f.height = Math.min(C.Yp(c), C.Yp(d)) - C.jo(f);
- return f
- };
- C.GK = C.O.extend({
- Maa: s,
- iX: s,
- ctor: function() {
- window.DOMParser ? (this.iX = q, this.Maa = new DOMParser) : this.iX = t
- },
- parse: function(c) {
- return this.MX(c)
- },
- MX: function(c) {
- var d;
- this.iX ? d = this.Maa.parseFromString(c, "text/xml") : (d = new ActiveXObject("Microsoft.XMLDOM"), d.async = "false", d.loadXML(c));
- return d
- }
- });
- C.Rna = C.GK.extend({
- parse: function(c) {
- c = this.MX(c).documentElement;
- "plist" != c.tagName && e("Not a plist file!");
- for (var d = s,
- f = 0,
- g = c.childNodes.length; f < g && !(d = c.childNodes[f], 1 == d.nodeType); f++);
- return this.LX(d)
- },
- LX: function(c) {
- var d = s,
- f = c.tagName;
- if ("dict" == f) d = this.eua(c);
- else if ("array" == f) d = this.dua(c);
- else if ("string" == f) if (1 == c.childNodes.length) d = c.firstChild.nodeValue;
- else {
- d = "";
- for (f = 0; f < c.childNodes.length; f++) d += c.childNodes[f].nodeValue
- } else "false" == f ? d = t: "true" == f ? d = q: "real" == f ? d = parseFloat(c.firstChild.nodeValue) : "integer" == f && (d = parseInt(c.firstChild.nodeValue, 10));
- return d
- },
- dua: function(c) {
- for (var d = [], f = 0, g = c.childNodes.length; f < g; f++) {
- var h = c.childNodes[f];
- 1 == h.nodeType && d.push(this.LX(h))
- }
- return d
- },
- eua: function(c) {
- for (var d = {},
- f = s,
- g = 0,
- h = c.childNodes.length; g < h; g++) {
- var k = c.childNodes[g];
- 1 == k.nodeType && ("key" == k.tagName ? f = k.firstChild.nodeValue: d[f] = this.LX(k))
- }
- return d
- }
- });
- C.Xba = {
- load: function(c, d, f, g) {
- C.M.EQ(c, g)
- }
- };
- C.M.Zp(["txt", "xml", "vsh", "fsh", "atlas"], C.Xba);
- C.uta = {
- load: function(c, d, f, g) {
- C.M.Kfa(c, g)
- }
- };
- C.M.Zp(["json", "ExportJson"], C.uta);
- C.Xsa = {
- load: function(c, d, f, g) {
- C.M.fj[d] = C.M.wI(c,
- function(c, f) {
- if (c) return g(c);
- C.kb.Md(d);
- g(s, f)
- })
- }
- };
- C.M.Zp("png jpg bmp jpeg gif ico".split(" "), C.Xsa);
- C.Oua = {
- load: function(c, d, f, g) {
- C.M.fj[d] = C.M.wI(f.src,
- function(c, f) {
- if (c) return g(c);
- C.kb.Md(d);
- g(s, f)
- })
- }
- };
- C.M.Zp(["serverImg"], C.Oua);
- C.jua = {
- load: function(c, d, f, g) {
- C.M.EQ(c,
- function(c, d) {
- if (c) return g(c);
- g(s, C.JFa.parse(d))
- })
- }
- };
- C.M.Zp(["plist"], C.jua);
- C.asa = {
- wpa: {
- ".eot": "embedded-opentype",
- ".ttf": "truetype",
- ".woff": "woff",
- ".svg": "svg"
- },
- taa: function(c, d, f) {
- var g = document,
- h = C.path,
- k = this.wpa,
- n = C.bd("style");
- n.type = "text/css";
- g.body.appendChild(n);
- var p = "@font-face { font-family:" + c + "; src:";
- if (d instanceof Array) for (var r = 0,
- v = d.length; r < v; r++) f = h.Cp(d[r]).toLowerCase(),
- p += "url('" + d[r] + "') format('" + k[f] + "')",
- p += r == v - 1 ? ";": ",";
- else p += "url('" + d + "') format('" + k[f] + "');";
- n.textContent += p + "};";
- d = C.bd("div");
- f = d.style;
- f.fontFamily = c;
- d.innerHTML = ".";
- f.position = "absolute";
- f.left = "-100px";
- f.top = "-100px";
- g.body.appendChild(d)
- },
- load: function(c, d, f, g) {
- d = f.type;
- c = f.name;
- d = f.V5a;
- "string" == typeof f ? (d = C.path.Cp(f), c = C.path.lxa(f, d), this.taa(c, f, d)) : this.taa(c, d);
- g(s, q)
- }
- };
- C.M.Zp(["font", "eot", "ttf", "woff", "svg"], C.asa);
- C.$qa = {
- load: function(c, d, f, g) {
- C.M.kEa(c, g)
- }
- };
- window.CocosEngine = C.$S = "Cocos2d-html5 v3.0 RC0";
- C.Qy = 0;
- C.US = C.d(0, 0);
- C.Ela = 0.5;
- C.dLa = 1;
- C.bU = 1;
- C.yna = 0;
- C.N7 = 0;
- C.jU = 0;
- C.jNa = 0;
- C.WMa = 1;
- C.VMa = "-hd";
- C.nqa = 1;
- C.Es = 0;
- C.bNa = 0;
- C.Rma = 0;
- C.Qma = 0;
- C.oT = 1;
- C.qLa = C.$S + "-canvas";
- C.iK = 1;
- C.an = 1;
- C.ic = function(c) {
- var d = this == C ? document: this;
- if (c = c instanceof HTMLElement ? c: d.querySelector(c)) c.find = c.find || C.ic,
- c.Q0 = c.Q0 ||
- function(c) {
- return this.className.match(RegExp("(\\s|^)" + c + "(\\s|$)"))
- },
- c.pca = c.pca ||
- function(c) {
- this.Q0(c) || (this.className && (this.className += " "), this.className += c);
- return this
- },
- c.tGa = c.tGa ||
- function(c) {
- this.Q0(c) && (this.className = this.className.replace(c, ""));
- return this
- },
- c.remove = c.remove ||
- function() {
- this.parentNode && this.parentNode.removeChild(this);
- return this
- },
- c.ox = c.ox ||
- function(c) {
- c.appendChild(this);
- return this
- },
- c.TFa = c.TFa ||
- function(c) {
- c.childNodes[0] ? c.insertBefore(this, c.childNodes[0]) : c.appendChild(this);
- return this
- },
- c.Ay = c.Ay ||
- function() {
- this.style[C.ic.oJa] = C.ic.translate(this.position) + C.ic.rotate(this.rotation) + C.ic.scale(this.scale) + C.ic.wy(this.wy);
- return this
- },
- c.position = c.position || {
- x: 0,
- y: 0
- },
- c.rotation = c.rotation || 0,
- c.scale = c.scale || {
- x: 1,
- y: 1
- },
- c.wy = c.wy || {
- x: 0,
- y: 0
- },
- c.DJ = function(c, d) {
- this.position.x = c;
- this.position.y = d;
- this.Ay()
- },
- c.rotate = function(c) {
- this.rotation = c;
- this.Ay();
- return this
- },
- c.$p = function(c, d) {
- this.scale.x = c;
- this.scale.y = d;
- this.Ay();
- return this
- },
- c.qia = function(c, d) {
- this.wy.x = c;
- this.wy.y = d;
- this.Ay()
- };
- return c
- };
- switch (C.Sc.tu) {
- case C.Sc.xD:
- C.ic.Gu = "Moz";
- C.ic.gC = q;
- break;
- case C.Sc.sS:
- case C.Sc.vS:
- C.ic.Gu = "webkit";
- C.ic.gC = q;
- break;
- case C.Sc.uS:
- C.ic.Gu = "O";
- C.ic.gC = t;
- break;
- case C.Sc.tS:
- C.ic.Gu = "ms";
- C.ic.gC = t;
- break;
- default:
- C.ic.Gu = "webkit",
- C.ic.gC = q
- }
- C.ic.oJa = C.ic.Gu + "Transform";
- C.ic.translate = C.ic.gC ?
- function(c) {
- return "translate3d(" + c.x + "px, " + c.y + "px, 0) "
- }: function(c) {
- return "translate(" + c.x + "px, " + c.y + "px) "
- };
- C.ic.rotate = C.ic.gC ?
- function(c) {
- return "rotateZ(" + c + "deg) "
- }: function(c) {
- return "rotate(" + c + "deg) "
- };
- C.ic.scale = function(c) {
- return "scale(" + c.x + ", " + c.y + ") "
- };
- C.ic.wy = function(c) {
- return "skewX(" + -c.x + "deg) skewY(" + c.y + "deg)"
- };
- C.pD = function(c) {
- return C.ic(document.createElement(c))
- };
- C.ic.xSa = function(c) {
- var d = 0,
- f = 0;
- do d += c.offsetLeft,
- f += c.offsetTop;
- while (c = c.offsetParent);
- return {
- x: d,
- y: f
- }
- };
- C.zo = -1;
- C.PI = Math.PI;
- C.pv = parseFloat("3.402823466e+38F");
- C.O5 = parseFloat("1.175494351e-38F");
- C.aoa = C.PI / 180;
- C.v5 = 180 / C.PI;
- C.EU = 4294967295;
- C.Uia = function(c, d, f) {
- if ("object" == typeof f && "undefined" != typeof f.x && "undefined" != typeof f.y) {
- var g = f[c];
- f[c] = f[d];
- f[d] = g
- } else C.log(C.n.Uia)
- };
- C.U_a = function(c, d, f) {
- return c + (d - c) * f
- };
- C.dd = function() {
- return 16777215 * Math.random()
- };
- C.$Fa = function() {
- return 2 * (Math.random() - 0.5)
- };
- C.x1a = Math.random;
- C.ng = function(c) {
- return c * C.aoa
- };
- C.LC = function(c) {
- return c * C.v5
- };
- C.zga = function(c) {
- C.log(C.n.zga);
- return c * C.v5
- };
- C.xv = Number.MAX_VALUE - 1;
- C.Ic = C.yna ? 1 : 770;
- C.Hc = 771;
- C.BC = function(c) {
- c.pd && (c.pd.Af(), c.pd.Bj())
- };
- C.XRa = u();
- C.zRa = u();
- C.nl = function() {
- C.kl += 1
- };
- C.rK = 1.192092896E-7;
- C.Ec = C.oT ?
- function() {
- return C.Q.Ul
- }: B(1);
- C.KFa = function(c) {
- var d = C.Ec();
- return C.d(c.x * d, c.y * d)
- };
- C.c2 = function(c) {
- var d = C.Ec();
- return C.d(c.x / d, c.y / d)
- };
- C.RX = function(c, d) {
- var f = C.Ec();
- d.x = c.x / f;
- d.y = c.y / f
- };
- C.FIa = function(c) {
- var d = C.Ec();
- return C.size(c.width * d, c.height * d)
- };
- C.Gia = function(c) {
- var d = C.Ec();
- return C.size(c.width / d, c.height / d)
- };
- C.Fba = function(c, d) {
- var f = C.Ec();
- d.width = c.width / f;
- d.height = c.height / f
- };
- C.js = C.oT ?
- function(c) {
- var d = C.Ec();
- return C.rect(c.x / d, c.y / d, c.width / d, c.height / d)
- }: da();
- C.XI = C.oT ?
- function(c) {
- var d = C.Ec();
- return C.rect(c.x * d, c.y * d, c.width * d, c.height * d)
- }: da();
- C.ONE = 1;
- C.ZERO = 0;
- C.SRC_ALPHA = 770;
- C.SRC_ALPHA_SATURATE = 776;
- C.SRC_COLOR = 768;
- C.DST_ALPHA = 772;
- C.DST_COLOR = 774;
- C.ONE_MINUS_SRC_ALPHA = 771;
- C.ONE_MINUS_SRC_COLOR = 769;
- C.ONE_MINUS_DST_ALPHA = 773;
- C.ONE_MINUS_DST_COLOR = 775;
- C.ONE_MINUS_CONSTANT_ALPHA = 32772;
- C.ONE_MINUS_CONSTANT_COLOR = 32770;
- C.DB = function() {
- if (C.bR == C.la) {
- var c = C.t.getError();
- c && C.log(CC.Wa.DB, c)
- }
- };
- C.uLa = 0;
- C.sLa = 1;
- C.vLa = 2;
- C.tLa = 3;
- C.rLa = 2;
- C.NNa = 0;
- C.Ch = 1;
- C.ZK = 2;
- C.fz = 4;
- C.Dv = C.Ch | C.ZK | C.fz;
- C.SLa = 0;
- C.Lc = 0;
- C.Hi = 1;
- C.Vg = 2;
- C.ONa = 3;
- C.HU = 0;
- C.GU = 1;
- C.NE = 2;
- C.LU = 3;
- C.KU = 4;
- C.FU = 5;
- C.IU = 6;
- C.JU = 7;
- C.INa = 8;
- C.Co = "ShaderPositionTextureColor";
- C.KK = "ShaderPositionTextureColorAlphaTest";
- C.JK = "ShaderPositionColor";
- C.yE = "ShaderPositionTexture";
- C.LK = "ShaderPositionTexture_uColor";
- C.$T = "ShaderPositionTextureA8Color";
- C.aU = "ShaderPosition_uColor";
- C.C7 = "ShaderPositionLengthTextureColor";
- C.hqa = "CC_PMatrix";
- C.fqa = "CC_MVMatrix";
- C.gqa = "CC_MVPMatrix";
- C.lqa = "CC_Time";
- C.kqa = "CC_SinTime";
- C.eqa = "CC_CosTime";
- C.iqa = "CC_Random01";
- C.jqa = "CC_Texture0";
- C.G8 = "CC_alpha_value";
- C.tD = "a_color";
- C.ev = "a_position";
- C.Hy = "a_texCoord";
- C.Cma = 32;
- C.k5 = 3233828865;
- C.$K = 3233828866;
- C.bna = 8801;
- C.foa = 8802;
- C.Gla = 8803;
- C = C || {};
- C.U = C.U || {};
- C.U.PU = function() {
- C.color = function(c, f, g, h, k, n) {
- return c === m ? new ja(0, 0, 0, 255, k, n) : "string" === typeof c ? (c = C.Oea(c), new ja(c.r, c.g, c.b, c.a)) : "object" === typeof c ? new ja(c.r, c.g, c.b, c.a, c.WO, c.offset) : new ja(c, f, g, h, k, n)
- };
- ja = function(c, f, g, h, k, n) {
- this.Wf = k || new ArrayBuffer(ja.BYTES_PER_ELEMENT);
- this.fb = n || 0;
- k = this.Wf;
- n = this.fb;
- var p = Uint8Array.BYTES_PER_ELEMENT;
- this.iY = new Uint8Array(k, n, 1);
- this.EW = new Uint8Array(k, n + p, 1);
- this.mV = new Uint8Array(k, n + 2 * p, 1);
- this.ZU = new Uint8Array(k, n + 3 * p, 1);
- this.iY[0] = c || 0;
- this.EW[0] = f || 0;
- this.mV[0] = g || 0;
- this.ZU[0] = h || 255;
- h === m && (this.jx = q)
- };
- ja.BYTES_PER_ELEMENT = 4;
- var c = ja.prototype;
- c.Esa = function() {
- return this.iY[0]
- };
- c.fva = function(c) {
- this.iY[0] = 0 > c ? 0 : c
- };
- c.osa = function() {
- return this.EW[0]
- };
- c.Xua = function(c) {
- this.EW[0] = 0 > c ? 0 : c
- };
- c.hsa = function() {
- return this.mV[0]
- };
- c.Qua = function(c) {
- this.mV[0] = 0 > c ? 0 : c
- };
- c.esa = function() {
- return this.ZU[0]
- };
- c.Pua = function(c) {
- this.ZU[0] = 0 > c ? 0 : c
- };
- C.e(c, "r", c.Esa, c.fva);
- C.e(c, "g", c.osa, c.Xua);
- C.e(c, "b", c.hsa, c.Qua);
- C.e(c, "a", c.esa, c.Pua);
- C.bf = function(c, f, g, h) {
- this.Wf = g || new ArrayBuffer(C.bf.BYTES_PER_ELEMENT);
- this.fb = h || 0;
- this.hx = new Float32Array(this.Wf, this.fb, 1);
- this.ix = new Float32Array(this.Wf, this.fb + 4, 1);
- this.hx[0] = c || 0;
- this.ix[0] = f || 0
- };
- C.bf.BYTES_PER_ELEMENT = 8;
- Object.defineProperties(C.bf.prototype, {
- x: {
- get: function() {
- return this.hx[0]
- },
- set: function(c) {
- this.hx[0] = c
- },
- enumerable: q
- },
- y: {
- get: function() {
- return this.ix[0]
- },
- set: function(c) {
- this.ix[0] = c
- },
- enumerable: q
- }
- });
- C.re = function(c, f, g, h, k) {
- this.Wf = h || new ArrayBuffer(C.re.BYTES_PER_ELEMENT);
- this.fb = k || 0;
- h = this.Wf;
- k = this.fb;
- this.hx = new Float32Array(h, k, 1);
- this.hx[0] = c || 0;
- this.ix = new Float32Array(h, k + Float32Array.BYTES_PER_ELEMENT, 1);
- this.ix[0] = f || 0;
- this.JZ = new Float32Array(h, k + 2 * Float32Array.BYTES_PER_ELEMENT, 1);
- this.JZ[0] = g || 0
- };
- C.re.BYTES_PER_ELEMENT = 12;
- Object.defineProperties(C.re.prototype, {
- x: {
- get: function() {
- return this.hx[0]
- },
- set: function(c) {
- this.hx[0] = c
- },
- enumerable: q
- },
- y: {
- get: function() {
- return this.ix[0]
- },
- set: function(c) {
- this.ix[0] = c
- },
- enumerable: q
- },
- f: {
- get: function() {
- return this.JZ[0]
- },
- set: function(c) {
- this.JZ[0] = c
- },
- enumerable: q
- }
- });
- C.tq = function(c, f, g, h) {
- this.Wf = g || new ArrayBuffer(C.tq.BYTES_PER_ELEMENT);
- this.fb = h || 0;
- this.oZ = new Float32Array(this.Wf, this.fb, 1);
- this.wZ = new Float32Array(this.Wf, this.fb + 4, 1);
- this.oZ[0] = c || 0;
- this.wZ[0] = f || 0
- };
- C.tq.BYTES_PER_ELEMENT = 8;
- Object.defineProperties(C.tq.prototype, {
- xa: {
- get: function() {
- return this.oZ[0]
- },
- set: function(c) {
- this.oZ[0] = c
- },
- enumerable: q
- },
- ea: {
- get: function() {
- return this.wZ[0]
- },
- set: function(c) {
- this.wZ[0] = c
- },
- enumerable: q
- }
- });
- C.VT = function(c, f, g, h, k, n) {
- this.Wf = k || new ArrayBuffer(C.VT.BYTES_PER_ELEMENT);
- this.fb = n || 0;
- k = this.Wf;
- n = C.bf.BYTES_PER_ELEMENT;
- this.lB = c ? new C.bf(c.x, c.y, k, 0) : new C.bf(0, 0, k, 0);
- this.qB = f ? new C.bf(f.x, f.y, k, n) : new C.bf(0, 0, k, n);
- this.sz = g ? new C.bf(g.x, g.y, k, 2 * n) : new C.bf(0, 0, k, 2 * n);
- this.wz = h ? new C.bf(h.x, h.y, k, 3 * n) : new C.bf(0, 0, k, 3 * n)
- };
- C.VT.BYTES_PER_ELEMENT = 32;
- C.FK = function(c, f, g, h) {
- this.T = c || new C.re(0, 0, 0);
- this.Y = f || new C.re(0, 0, 0);
- this.X = g || new C.re(0, 0, 0);
- this.V = h || new C.re(0, 0, 0)
- };
- Object.defineProperties(C.VT.prototype, {
- X: {
- get: A("lB"),
- set: function(c) {
- this.lB.x = c.x;
- this.lB.y = c.y
- },
- enumerable: q
- },
- V: {
- get: A("qB"),
- set: function(c) {
- this.qB.x = c.x;
- this.qB.y = c.y
- },
- enumerable: q
- },
- T: {
- get: A("sz"),
- set: function(c) {
- this.sz.x = c.x;
- this.sz.y = c.y
- },
- enumerable: q
- },
- Y: {
- get: A("wz"),
- set: function(c) {
- this.wz.x = c.x;
- this.wz.y = c.y
- },
- enumerable: q
- }
- });
- C.Ol = function(c, f, g, h, k) {
- this.Wf = h || new ArrayBuffer(C.Ol.BYTES_PER_ELEMENT);
- this.fb = k || 0;
- h = this.Wf;
- k = this.fb;
- var n = C.re.BYTES_PER_ELEMENT;
- this.bc = c ? new C.re(c.x, c.y, c.f, h, k) : new C.re(0, 0, 0, h, k);
- this.mF = f ? C.color(f.r, f.g, f.b, f.a, h, k + n) : C.color(0, 0, 0, 0, h, k + n);
- this.dl = g ? new C.tq(g.xa, g.ea, h, k + n + ja.BYTES_PER_ELEMENT) : new C.tq(0, 0, h, k + n + ja.BYTES_PER_ELEMENT)
- };
- C.Ol.BYTES_PER_ELEMENT = 24;
- Object.defineProperties(C.Ol.prototype, {
- m: {
- get: A("bc"),
- set: function(c) {
- var f = this.bc;
- f.x = c.x;
- f.y = c.y;
- f.f = c.f
- },
- enumerable: q
- },
- F: {
- get: A("mF"),
- set: function(c) {
- var f = this.mF;
- f.r = c.r;
- f.g = c.g;
- f.b = c.b;
- f.a = c.a
- },
- enumerable: q
- },
- v: {
- get: A("dl"),
- set: function(c) {
- this.dl.xa = c.xa;
- this.dl.ea = c.ea
- },
- enumerable: q
- }
- });
- C.Uc = function(c, f, g, h, k, n) {
- this.Wf = k || new ArrayBuffer(C.Uc.BYTES_PER_ELEMENT);
- this.fb = n || 0;
- k = this.Wf;
- n = this.fb;
- var p = C.Ol.BYTES_PER_ELEMENT;
- this.lB = c ? new C.Ol(c.m, c.F, c.v, k, n) : new C.Ol(s, s, s, k, n);
- this.sz = f ? new C.Ol(f.m, f.F, f.v, k, n + p) : new C.Ol(s, s, s, k, n + p);
- this.qB = g ? new C.Ol(g.m, g.F, g.v, k, n + 2 * p) : new C.Ol(s, s, s, k, n + 2 * p);
- this.wz = h ? new C.Ol(h.m, h.F, h.v, k, n + 3 * p) : new C.Ol(s, s, s, k, n + 3 * p)
- };
- C.Uc.BYTES_PER_ELEMENT = 96;
- Object.defineProperties(C.Uc.prototype, {
- X: {
- get: A("lB"),
- set: function(c) {
- var f = this.lB;
- f.m = c.m;
- f.F = c.F;
- f.v = c.v
- },
- enumerable: q
- },
- T: {
- get: A("sz"),
- set: function(c) {
- var f = this.sz;
- f.m = c.m;
- f.F = c.F;
- f.v = c.v
- },
- enumerable: q
- },
- V: {
- get: A("qB"),
- set: function(c) {
- var f = this.qB;
- f.m = c.m;
- f.F = c.F;
- f.v = c.v
- },
- enumerable: q
- },
- Y: {
- get: A("wz"),
- set: function(c) {
- var f = this.wz;
- f.m = c.m;
- f.F = c.F;
- f.v = c.v
- },
- enumerable: q
- },
- WO: {
- get: A("Wf"),
- enumerable: q
- }
- });
- C.I8 = function() {
- return new C.Uc
- };
- C.H8 = function(c) {
- if (!c) return C.I8();
- var f = c.X,
- g = c.T,
- h = c.V;
- c = c.Y;
- return {
- X: {
- m: {
- x: f.m.x,
- y: f.m.y,
- f: f.m.f
- },
- F: {
- r: f.F.r,
- g: f.F.g,
- b: f.F.b,
- a: f.F.a
- },
- v: {
- xa: f.v.xa,
- ea: f.v.ea
- }
- },
- T: {
- m: {
- x: g.m.x,
- y: g.m.y,
- f: g.m.f
- },
- F: {
- r: g.F.r,
- g: g.F.g,
- b: g.F.b,
- a: g.F.a
- },
- v: {
- xa: g.v.xa,
- ea: g.v.ea
- }
- },
- V: {
- m: {
- x: h.m.x,
- y: h.m.y,
- f: h.m.f
- },
- F: {
- r: h.F.r,
- g: h.F.g,
- b: h.F.b,
- a: h.F.a
- },
- v: {
- xa: h.v.xa,
- ea: h.v.ea
- }
- },
- Y: {
- m: {
- x: c.m.x,
- y: c.m.y,
- f: c.m.f
- },
- F: {
- r: c.F.r,
- g: c.F.g,
- b: c.F.b,
- a: c.F.a
- },
- v: {
- xa: c.v.xa,
- ea: c.v.ea
- }
- }
- }
- };
- C.LNa = function(c) {
- if (!c) return [];
- for (var f = [], g = 0; g < c.length; g++) f.push(C.H8(c[g]));
- return f
- };
- C.Ug = function(c, f, g, h, k) {
- this.Wf = h || new ArrayBuffer(C.Ug.BYTES_PER_ELEMENT);
- this.fb = k || 0;
- h = this.Wf;
- k = this.fb;
- var n = C.bf.BYTES_PER_ELEMENT;
- this.bc = c ? new C.bf(c.x, c.y, h, k) : new C.bf(0, 0, h, k);
- this.mF = f ? C.color(f.r, f.g, f.b, f.a, h, k + n) : C.color(0, 0, 0, 0, h, k + n);
- this.dl = g ? new C.tq(g.xa, g.ea, h, k + n + ja.BYTES_PER_ELEMENT) : new C.tq(0, 0, h, k + n + ja.BYTES_PER_ELEMENT)
- };
- C.Ug.BYTES_PER_ELEMENT = 20;
- Object.defineProperties(C.Ug.prototype, {
- m: {
- get: A("bc"),
- set: function(c) {
- this.bc.x = c.x;
- this.bc.y = c.y
- },
- enumerable: q
- },
- F: {
- get: A("mF"),
- set: function(c) {
- var f = this.mF;
- f.r = c.r;
- f.g = c.g;
- f.b = c.b;
- f.a = c.a
- },
- enumerable: q
- },
- v: {
- get: A("dl"),
- set: function(c) {
- this.dl.xa = c.xa;
- this.dl.ea = c.ea
- },
- enumerable: q
- }
- });
- C.be = function(c, f, g, h, k) {
- this.Wf = h || new ArrayBuffer(C.be.BYTES_PER_ELEMENT);
- this.fb = k || 0;
- h = this.Wf;
- k = this.fb;
- var n = C.Ug.BYTES_PER_ELEMENT;
- this.T8 = c ? new C.Ug(c.m, c.F, c.v, h, k) : new C.Ug(s, s, s, h, k);
- this.g9 = f ? new C.Ug(f.m, f.F, f.v, h, k + n) : new C.Ug(s, s, s, h, k + n);
- this.p9 = g ? new C.Ug(g.m, g.F, g.v, h, k + 2 * n) : new C.Ug(s, s, s, h, k + 2 * n)
- };
- C.be.BYTES_PER_ELEMENT = 60;
- Object.defineProperties(C.be.prototype, {
- a: {
- get: A("T8"),
- set: function(c) {
- var f = this.T8;
- f.m = c.m;
- f.F = c.F;
- f.v = c.v
- },
- enumerable: q
- },
- b: {
- get: A("g9"),
- set: function(c) {
- var f = this.g9;
- f.m = c.m;
- f.F = c.F;
- f.v = c.v
- },
- enumerable: q
- },
- H: {
- get: A("p9"),
- set: function(c) {
- var f = this.p9;
- f.m = c.m;
- f.F = c.F;
- f.v = c.v
- },
- enumerable: q
- }
- })
- };
- C.U.NT = function() {
- var c = C.color;
- c.Qsa = function() {
- return c(255, 255, 255)
- };
- c.Usa = function() {
- return c(255, 255, 0)
- };
- c.jsa = function() {
- return c(0, 0, 255)
- };
- c.qsa = function() {
- return c(0, 255, 0)
- };
- c.Fsa = function() {
- return c(255, 0, 0)
- };
- c.ysa = function() {
- return c(255, 0, 255)
- };
- c.isa = function() {
- return c(0, 0, 0)
- };
- c.Dsa = function() {
- return c(255, 127, 0)
- };
- c.psa = function() {
- return c(166, 166, 166)
- };
- C.e(c, "WHITE", c.Qsa);
- C.e(c, "YELLOW", c.Usa);
- C.e(c, "BLUE", c.jsa);
- C.e(c, "GREEN", c.qsa);
- C.e(c, "RED", c.Fsa);
- C.e(c, "MAGENTA", c.ysa);
- C.e(c, "BLACK", c.isa);
- C.e(c, "ORANGE", c.Dsa);
- C.e(c, "GRAY", c.psa)
- };
- function ja(c, d, f, g) {
- this.r = c || 0;
- this.g = d || 0;
- this.b = f || 0;
- this.a = g || 255
- }
- C.color = function(c, d, f, g) {
- return c === m ? {
- r: 0,
- g: 0,
- b: 0,
- a: 255
- }: "string" === typeof c ? C.Oea(c) : "object" === typeof c ? {
- r: c.r,
- g: c.g,
- b: c.b,
- a: c.a || 255
- }: {
- r: c,
- g: d,
- b: f,
- a: g || 255
- }
- };
- C.$Qa = function(c, d) {
- return c.r === d.r && c.g === d.g && c.b === d.b
- };
- C.Eja = function() {
- this.timestamp = this.f = this.y = this.x = 0
- };
- C.bf = function(c, d) {
- this.x = c || 0;
- this.y = d || 0
- };
- C.fS = function(c, d) {
- return new C.bf(c, d)
- };
- C.re = function(c, d, f) {
- this.x = c || 0;
- this.y = d || 0;
- this.f = f || 0
- };
- C.O6a = function(c, d, f) {
- return new C.re(c, d, f)
- };
- C.tq = function(c, d) {
- this.xa = c || 0;
- this.ea = d || 0
- };
- C.m6a = function(c, d) {
- return new C.tq(c, d)
- };
- C.Vm = function(c, d) {
- this.src = c;
- this.ga = d
- };
- C.BQa = function() {
- return new C.Vm(C.ONE, C.ZERO)
- };
- C.Oea = function(c) {
- c = c.replace(/^#?/, "0x");
- c = parseInt(c);
- return C.color(c >> 16, (c >> 8) % 256, c % 256)
- };
- C.Ap = function(c) {
- var d = c.r.toString(16),
- f = c.g.toString(16),
- g = c.b.toString(16);
- return "#" + (16 > c.r ? "0" + d: d) + (16 > c.g ? "0" + f: f) + (16 > c.b ? "0" + g: g)
- };
- C.dz = 0;
- C.Fs = 1;
- C.Q7 = 2;
- C.OE = 0;
- C.MU = 1;
- C.J8 = 2;
- C.Ev = C.O.extend({
- vA: s,
- eH: s,
- XU: 0,
- ctor: function() {
- this.vA = {};
- this.eH = {};
- this.XU = 2 << (0 | 10 * Math.random())
- },
- Cqa: function() {
- this.XU++;
- return "key_" + this.XU
- },
- vl: function(c, d) {
- if (d != s) {
- var f = this.Cqa();
- this.vA[f] = d;
- this.eH[f] = c
- }
- },
- Km: function(c) {
- if (c == s) return s;
- var d = this.vA,
- f;
- for (f in d) if (d[f] === c) return this.eH[f];
- return s
- },
- N6a: function(c) {
- return this.Km(c)
- },
- q2: function(c) {
- if (c != s) {
- var d = this.vA,
- f;
- for (f in d) if (d[f] === c) {
- delete this.eH[f];
- delete d[f];
- break
- }
- }
- },
- k2a: function(c) {
- if (c != s) for (var d = 0; d < c.length; d++) this.q2(c[d])
- },
- vB: function() {
- var c = [],
- d = this.vA,
- f;
- for (f in d) c.push(d[f]);
- return c
- },
- U1a: function() {
- this.vA = {};
- this.eH = {}
- },
- count: function() {
- return this.vB().length
- }
- });
- C.W5 = function() {
- this.fontName = "Arial";
- this.fontSize = 12;
- this.textAlign = C.Fs;
- this.verticalAlign = C.OE;
- this.fillStyle = C.color(255, 255, 255, 255);
- this.boundingHeight = this.boundingWidth = 0;
- this.I3 = t;
- this.strokeStyle = C.color(255, 255, 255, 255);
- this.lineWidth = 1;
- this.Dia = t;
- this.shadowBlur = this.shadowOffsetY = this.shadowOffsetX = 0;
- this.shadowOpacity = 1
- };
- C.L === C.la && (C.assert("function" === typeof C.U.PU, C.n.Bf, "CCTypesWebGL.js"), C.U.PU(), delete C.U.PU);
- C.assert("function" === typeof C.U.NT, C.n.Bf, "CCTypesPropertyDefine.js");
- C.U.NT();
- delete C.U.NT;
- C.ENa = [];
- C.FNa = {};
- C.YS = C.O.extend({
- Oq: s,
- mi: s,
- Oz: s,
- Lt: s,
- jh: s,
- yp: s,
- pY: t,
- kV: q,
- Pq: 1,
- EZ: "",
- mY: s,
- ia: 1,
- Haa: 1,
- pa: 1,
- Iaa: 1,
- mA: 0,
- xX: 5,
- Bn: s,
- lba: s,
- pba: s,
- oba: s,
- mba: s,
- nba: s,
- VF: t,
- dOa: t,
- LPa: s,
- W$: s,
- X$: s,
- BPa: t,
- QV: s,
- tt: s,
- AW: 1,
- eL: t,
- eaa: q,
- ctor: function() {
- var c = document,
- d = C.ys,
- f = C.Dl;
- this.tt = C.container.parentNode === c.body ? c.documentElement: C.container.parentNode;
- this.mi = C.size(0, 0);
- this.ZW();
- var c = C.Pb.width,
- g = C.Pb.height;
- this.Oz = C.size(c, g);
- this.Lt = C.size(c, g);
- this.jh = C.rect(0, 0, c, g);
- this.yp = C.rect(0, 0, c, g);
- this.QV = {
- left: 0,
- top: 0
- };
- this.EZ = "Cocos2dHTML5";
- c = C.Sc;
- this.yza(c.Q1 == c.L6 || c.Q1 == c.M6);
- C.ts && C.ts.j(this.yp);
- this.lba = new C.Ej(d.jK, f.aT);
- this.pba = new C.Ej(d.Pna, f.MK);
- this.oba = new C.Ej(d.jK, f.CT);
- this.mba = new C.Ej(d.jK, f.bT);
- this.nba = new C.Ej(d.jK, f.cT);
- this.W$ = C.Pb;
- this.X$ = C.t
- },
- nY: function() {
- var c = this.Lt.width,
- d = this.Lt.height;
- this.mY && (this.ZW(), this.mY.call());
- 0 < c && this.M2(c, d, this.Bn)
- },
- EGa: function(c) {
- c ? this.eL || (this.eL = q, c = this.nY.bind(this), C.qb(window, "resize", c, t)) : this.eL && (this.eL = q, c = this.nY.bind(this), window.removeEventListener("resize", c, t))
- },
- Y4a: function(c) {
- if ("function" == typeof c || c == s) this.mY = c
- },
- ZW: function() {
- var c = this.mi;
- c.width = this.tt.clientWidth;
- c.height = this.tt.clientHeight
- },
- VNa: function() {
- var c = this.Lt.width,
- d = this.Lt.height;
- 0 < c && this.M2(c, d, this.Bn)
- },
- zva: function() {
- if (this.eaa) {
- var c = {
- "user-scalable": "no",
- "maximum-scale": "1.0",
- "initial-scale": "1.0"
- },
- d = document.getElementsByName("viewport"),
- f;
- 0 == d.length ? (d = C.bd("meta"), d.name = "viewport", d.content = "", document.head.appendChild(d)) : d = d[0];
- if (C.Sc.Xr && C.Sc.tu == C.Sc.xD) d.content = "initial-scale:1";
- else {
- f = d.content;
- for (var g in c) RegExp(g).test(f) || (f += ("" == f ? "": ",") + g + "\x3d" + c[g]);
- d.content = f
- }
- }
- },
- vba: function() {
- var c = C.Ec();
- this.pa = this.ia = c
- },
- hba: function() {
- this.ia = this.Haa;
- this.pa = this.Iaa
- },
- WNa: u(),
- eDa: function() {
- this.VF = q
- },
- Ewa: x("eaa"),
- yza: function(c) {
- this.pY = c ? q: t
- },
- HYa: A("pY"),
- WRa: function(c) {
- this.kV = c ? q: t
- },
- dYa: A("kV"),
- end: u(),
- BYa: function() {
- return this.W$ != s && this.X$ != s
- },
- g4a: function(c) {
- this.AW = c;
- C.Q.py(C.Q.op)
- },
- d6a: u(),
- l4a: u(),
- K3a: function(c, d) {
- this.QV = {
- left: c,
- top: d
- }
- },
- KTa: A("QV"),
- $da: function() {
- return C.size(this.mi.width, this.mi.height)
- },
- f4a: function(c, d) {
- this.mi.width = c;
- this.mi.height = d;
- this.tt.style.width = c + "px";
- this.tt.style.height = d + "px";
- this.nY();
- C.Q.py(C.Q.op)
- },
- MQa: u(),
- aI: function() {
- return C.size(this.yp.width, this.yp.height)
- },
- L0: function() {
- return C.d(this.yp.x, this.yp.y)
- },
- FQa: B(q),
- mWa: A("Bn"),
- eIa: function(c) {
- if (c instanceof C.Ej) this.Bn = c;
- else {
- var d = C.Ej;
- c === d.aT && (this.Bn = this.lba);
- c === d.MK && (this.Bn = this.pba);
- c === d.CT && (this.Bn = this.oba);
- c === d.bT && (this.Bn = this.mba);
- c === d.cT && (this.Bn = this.nba)
- }
- },
- M2: function(c, d, f) {
- if (isNaN(c) || 0 == c || isNaN(d) || 0 == d) C.log(C.n.Sla);
- else {
- this.eIa(f);
- var g = this.Bn;
- if (g) {
- g.ay(this);
- var h = this.mi.width,
- k = this.mi.height;
- C.Sc.Xr && this.zva(this.mi.width, this.mi.height);
- this.ZW();
- f == this.Bn && c == this.Lt.width && d == this.Lt.height && h == this.mi.width && k == this.mi.height || (this.Oz = C.size(c, d), this.Lt = C.size(c, d), c = g.apply(this, this.Oz), c.scale && 2 == c.scale.length && (this.ia = c.scale[0], this.pa = c.scale[1]), c.viewport && (c = this.jh = c.viewport, d = this.yp, d.width = C.Pb.width / this.ia, d.height = C.Pb.height / this.pa, d.x = -c.x / this.ia, d.y = -c.y / this.pa), c = C.Q, C.KJ.width = c.aa.width = this.yp.width, C.KJ.height = c.aa.height = this.yp.height, g.$x(this), C.L == C.la && (c.Kz(), c.Fha()), this.Haa = this.ia, this.Iaa = this.pa, C.Pd && C.Pd.Gua(), C.ts && C.ts.j(this.yp))
- } else C.log(C.n.Tla)
- }
- },
- LH: function() {
- return C.size(this.Oz.width, this.Oz.height)
- },
- AIa: function(c, d, f, g) {
- var h = this.AW,
- k = this.ia,
- n = this.pa;
- C.t.viewport(c * k * h + this.jh.x * h, d * n * h + this.jh.y * h, f * k * h, g * n * h)
- },
- LR: function(c, d, f, g) {
- var h = this.AW,
- k = this.ia,
- n = this.pa;
- C.t.scissor(c * k * h + this.jh.x * h, d * n * h + this.jh.y * h, f * k * h, g * n * h)
- },
- ADa: function() {
- var c = C.t;
- return c.isEnabled(c.SCISSOR_TEST)
- },
- JBa: function() {
- var c = C.t,
- d = this.ia,
- f = this.pa,
- c = c.getParameter(c.SCISSOR_BOX);
- return C.rect((c[0] - this.jh.x) / d, (c[1] - this.jh.y) / f, c[2] / d, c[3] / f)
- },
- M5a: function(c) {
- c != s && 0 < c.length && (this.EZ = c)
- },
- tXa: A("EZ"),
- uXa: A("jh"),
- LP: A("ia"),
- TH: A("pa"),
- eUa: A("Pq"),
- C_: function(c, d, f) {
- return {
- x: this.Pq * (c - f.left),
- y: this.Pq * (f.top + f.height - d)
- }
- },
- yra: function(c, d) {
- var f = this.jh;
- c.x = (this.Pq * (c.x - d.left) - f.x) / this.ia;
- c.y = (this.Pq * (d.top + d.height - c.y) - f.y) / this.pa
- },
- PL: function(c) {
- for (var d = this.jh,
- f = this.ia,
- g = this.pa,
- h, k, n, p = 0; p < c.length; p++) h = c[p],
- k = h.eh,
- n = h.mp,
- h.IY((k.x - d.x) / f, (k.y - d.y) / g),
- h.ZA((n.x - d.x) / f, (n.y - d.y) / g)
- }
- });
- C.YS.KW = function() {
- this.Zl || (this.Zl = this.Zl || new C.YS, this.Zl.eDa());
- return this.Zl
- };
- C.ys = C.O.extend({
- ay: u(),
- apply: u(),
- $x: u(),
- MY: function(c, d, f) {
- var g = c.tt;
- C.view.kV && (C.Sc.Xr && g == document.documentElement) && C.screen.fxa(g);
- var g = C.Pb,
- h = C.container;
- h.style.width = g.style.width = d + "px";
- h.style.height = g.style.height = f + "px";
- h = c.Pq = 1;
- c.pY && (h = c.Pq = window.devicePixelRatio || 1);
- g.width = d * h;
- g.height = f * h;
- c = document.body;
- var k;
- if (c && (k = c.style)) k.paddingTop = k.paddingTop || "0px",
- k.paddingRight = k.paddingRight || "0px",
- k.paddingBottom = k.paddingBottom || "0px",
- k.paddingLeft = k.paddingLeft || "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"
- },
- z$: function() {
- document.body.insertBefore(C.container, document.body.firstChild);
- var c = document.body.style;
- c.width = window.innerWidth + "px";
- c.height = window.innerHeight + "px";
- c.overflow = "hidden";
- c = C.container.style;
- c.position = "fixed";
- c.left = c.top = "0px";
- document.body.scrollTop = 0
- }
- });
- C.Dl = C.O.extend({
- oY: {
- scale: [1, 1],
- viewport: s
- },
- cF: function(c, d, f, g, h, k) {
- 2 > Math.abs(c - f) && (f = c);
- 2 > Math.abs(d - g) && (g = d);
- c = C.rect(Math.round((c - f) / 2), Math.round((d - g) / 2), f, g);
- C.L == C.cb && C.t.translate(c.x, c.y + g);
- this.oY.scale = [h, k];
- this.oY.viewport = c;
- return this.oY
- },
- ay: u(),
- apply: function() {
- return {
- scale: [1, 1]
- }
- },
- $x: u()
- }); (function() {
- var c = C.ys.extend({
- apply: function(c) {
- this.MY(c, c.mi.width, c.mi.height)
- }
- }),
- d = C.ys.extend({
- apply: function(c, d) {
- var f = c.mi.width,
- g = c.mi.height,
- h = C.container.style,
- y = d.width,
- z = d.height,
- D = f / y,
- E = g / z,
- F, G;
- D < E ? (F = f, G = z * D) : (F = y * E, G = g);
- y = Math.round((f - F) / 2);
- G = Math.round((g - G) / 2);
- this.MY(c, f - 2 * y, g - 2 * G);
- h.marginLeft = y + "px";
- h.marginRight = y + "px";
- h.marginTop = G + "px";
- h.marginBottom = G + "px"
- }
- });
- c.extend({
- ay: function(c) {
- this._super(c);
- c.tt = document.documentElement
- },
- apply: function(c) {
- this._super(c);
- this.z$()
- }
- });
- d.extend({
- ay: function(c) {
- this._super(c);
- c.tt = document.documentElement
- },
- apply: function(c, d) {
- this._super(c, d);
- this.z$()
- }
- });
- var f = C.ys.extend({
- apply: function(c) {
- this.MY(c, C.Pb.width, C.Pb.height)
- }
- });
- C.ys.jK = new c;
- C.ys.Pna = new d;
- C.ys.NMa = new f;
- var c = C.Dl.extend({
- apply: function(c, d) {
- var f = C.Pb.width,
- g = C.Pb.height;
- return this.cF(f, g, f, g, f / d.width, g / d.height)
- }
- }),
- d = C.Dl.extend({
- apply: function(c, d) {
- var f = C.Pb.width,
- g = C.Pb.height,
- h = d.width,
- y = d.height,
- z = f / h,
- D = g / y,
- E = 0,
- F, G;
- z < D ? (E = z, F = f, G = y * E) : (E = D, F = h * E, G = g);
- return this.cF(f, g, F, G, E, E)
- }
- }),
- f = C.Dl.extend({
- apply: function(c, d) {
- var f = C.Pb.width,
- g = C.Pb.height,
- h = d.width,
- y = d.height,
- z = f / h,
- D = g / y,
- E, F, G;
- z < D ? (E = D, F = h * E, G = g) : (E = z, F = f, G = y * E);
- return this.cF(f, g, F, G, E, E)
- }
- }),
- g = C.Dl.extend({
- apply: function(c, d) {
- var f = C.Pb.width,
- g = C.Pb.height,
- h = g / d.height;
- return this.cF(f, g, f, g, h, h)
- },
- $x: function(c) {
- C.Q.aa = c.aI()
- }
- }),
- h = C.Dl.extend({
- apply: function(c, d) {
- var f = C.Pb.width,
- g = C.Pb.height,
- h = f / d.width;
- return this.cF(f, g, f, g, h, h)
- },
- $x: function(c) {
- C.Q.aa = c.aI()
- }
- });
- C.Dl.aT = new c;
- C.Dl.MK = new d;
- C.Dl.CT = new f;
- C.Dl.bT = new g;
- C.Dl.cT = new h
- })();
- C.Ej = C.O.extend({
- ML: s,
- NL: s,
- ctor: function(c, d) {
- this.kHa(c);
- this.mHa(d)
- },
- ay: function(c) {
- this.ML.ay(c);
- this.NL.ay(c)
- },
- apply: function(c, d) {
- this.ML.apply(c, d);
- return this.NL.apply(c, d)
- },
- $x: function(c) {
- this.ML.$x(c);
- this.NL.$x(c)
- },
- kHa: function(c) {
- c instanceof C.ys && (this.ML = c)
- },
- mHa: function(c) {
- c instanceof C.Dl && (this.NL = c)
- }
- });
- C.Ej.aT = 0;
- C.Ej.CT = 1;
- C.Ej.MK = 2;
- C.Ej.bT = 3;
- C.Ej.cT = 4;
- C.Ej.mqa = 5;
- C.screen = {
- lO: t,
- XX: s,
- lZ: "",
- st: s,
- Yra: [["requestFullscreen", "exitFullscreen", "fullscreenchange", "fullscreenEnabled", "fullscreenElement"], ["requestFullScreen", "exitFullScreen", "fullScreenchange", "fullScreenEnabled", "fullScreenElement"], ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitIsFullScreen", "webkitCurrentFullScreenElement"], ["mozRequestFullScreen", "mozCancelFullScreen", "mozfullscreenchange", "mozFullScreen", "mozFullScreenElement"], ["msRequestFullscreen", "msExitFullscreen", "MSFullscreenChange", "msFullscreenEnabled", "msFullscreenElement"]],
- j: function() {
- this.st = {};
- var c, d, f = this.Yra,
- g;
- c = 0;
- for (l = f.length; c < l; c++) if ((d = f[c]) && d[1] in document) {
- c = 0;
- for (g = d.length; c < g; c++) this.st[f[0][c]] = d[c];
- break
- }
- this.lO = this.st.requestFullscreen != m;
- this.lZ = "ontouchstart" in window ? "touchstart": "mousedown"
- },
- fullScreen: function() {
- return this.lO && document[this.st.fullscreenEnabled]
- },
- Xga: function(c, d) {
- if (this.lO) {
- c = c || document.documentElement;
- c[this.st.requestFullscreen]();
- if (d) {
- var f = this.st.CSa;
- this.XX && document.removeEventListener(f, this.XX);
- this.XX = d;
- C.qb(document, f, d, t)
- }
- return c[this.st.requestFullscreen]()
- }
- },
- dSa: function() {
- return this.lO ? document[this.st.exitFullscreen]() : q
- },
- fxa: function(c, d) {
- function f() {
- h.Xga(c, d);
- g.removeEventListener(h.lZ, f)
- }
- c = c || document.body;
- var g = C.Pb || c,
- h = this;
- this.Xga(c, d);
- C.qb(g, this.lZ, f)
- }
- };
- C.screen.j();
- C.ts = {
- Zia: C.d(0, 0),
- $ia: C.d(0, 0),
- top: C.d(0, 0),
- bP: C.d(0, 0),
- Kca: C.d(0, 0),
- bottom: C.d(0, 0),
- vH: C.d(0, 0),
- left: C.d(0, 0),
- right: C.d(0, 0),
- width: 0,
- height: 0,
- j: function(c) {
- var d = this.width = c.width,
- f = this.height = c.height,
- g = c.x;
- c = c.y;
- var h = c + f,
- k = g + d;
- this.Zia.x = g;
- this.Zia.y = h;
- this.$ia.x = k;
- this.$ia.y = h;
- this.top.x = g + d / 2;
- this.top.y = h;
- this.bP.x = g;
- this.bP.y = c;
- this.Kca.x = k;
- this.Kca.y = c;
- this.bottom.x = g + d / 2;
- this.bottom.y = c;
- this.vH.x = g + d / 2;
- this.vH.y = c + f / 2;
- this.left.x = g;
- this.left.y = c + f / 2;
- this.right.x = k;
- this.right.y = c + f / 2
- }
- };
- C.bqa = -90;
- C.cqa = 90;
- C.dqa = 180;
- C.HNa = 0;
- C.dfa = {
- BA: t,
- laa: t,
- Qaa: C.d(0, 0),
- pua: C.d(0, 0),
- Raa: [],
- YX: 0,
- Kf: [],
- mZ: {},
- mA: 0,
- xX: 5,
- gL: t,
- hL: 1 / 30,
- V8: 1,
- Fv: 0,
- $U: s,
- fL: s,
- Osa: function() {
- for (var c = this.mA,
- d = 0; d < this.xX; d++) {
- if (! (c & 1)) return this.mA |= 1 << d,
- d;
- c >>= 1
- }
- return - 1
- },
- Fua: function(c) {
- 0 > c || c >= this.xX || (c = ~ (1 << c), this.mA &= c)
- },
- vt: s,
- O0: function(c) {
- for (var d, f, g, h = [], k = this.mZ, n = 0, p = c.length; n < p; n++) d = c[n],
- g = d.ni,
- f = k[g],
- f == s && (f = this.Osa(), -1 == f ? C.log(C.n.fDa, f) : (d = this.Kf[f] = d, k[g] = f, h.push(d)));
- 0 < h.length && (this.vt.PL(h), c = new C.El(h), c.ot = C.El.Py.mS, C.Ka.dispatchEvent(c))
- },
- P0: function(c) {
- for (var d, f, g = [], h = this.Kf, k = 0, n = c.length; k < n; k++) d = c[k],
- f = d.ni,
- f = this.mZ[f],
- f != s && h[f] && (h[f].IY(d.eh), h[f].ZA(d.mp), g.push(h[f]));
- 0 < g.length && (this.vt.PL(g), c = new C.El(g), c.ot = C.El.Py.vT, C.Ka.dispatchEvent(c))
- },
- SP: function(c) {
- c = this.qea(c);
- 0 < c.length && (this.vt.PL(c), c = new C.El(c), c.ot = C.El.Py.ZS, C.Ka.dispatchEvent(c))
- },
- Mea: function(c) {
- c = this.qea(c);
- 0 < c.length && (this.vt.PL(c), c = new C.El(c), c.ot = C.El.Py.BS, C.Ka.dispatchEvent(c))
- },
- qea: function(c) {
- for (var d, f, g, h = [], k = this.Kf, n = this.mZ, p = 0, r = c.length; p < r; p++) d = c[p],
- g = d.ni,
- f = n[g],
- f != s && k[f] && (k[f].IY(d.eh), k[f].ZA(d.mp), h.push(k[f]), this.Fua(f), delete n[g]);
- return h
- },
- Wn: function(c) {
- var d = document.documentElement,
- f = window,
- g = s,
- g = "function" === typeof c.getBoundingClientRect ? c.getBoundingClientRect() : c instanceof HTMLCanvasElement ? {
- left: 0,
- top: 0,
- width: c.width,
- height: c.height
- }: {
- left: 0,
- top: 0,
- width: parseInt(c.style.width),
- height: parseInt(c.style.height)
- };
- return {
- left: g.left + f.pageXOffset - d.clientLeft,
- top: g.top + f.pageYOffset - d.clientTop,
- width: g.width,
- height: g.height
- }
- },
- yBa: function(c) {
- for (var d = s,
- f = this.Raa,
- g = c.ni,
- h = f.length - 1; 0 <= h; h--) if (f[h].ni == g) {
- d = f[h];
- break
- }
- d || (d = c);
- return d
- },
- YHa: function(c) {
- for (var d = t,
- f = this.Raa,
- g = c.ni,
- h = f.length - 1; 0 <= h; h--) if (f[h].ni == g) {
- f[h] = c;
- d = q;
- break
- }
- d || (50 >= f.length ? f.push(c) : (f[this.YX] = c, this.YX = (this.YX + 1) % 50))
- },
- ZH: function(c, d, f) {
- var g = this.Qaa;
- c = this.vt.C_(c, d, f);
- d = new C.zU(c.x, c.y);
- d.ZA(g.x, g.y);
- g.x = c.x;
- g.y = c.y;
- return d
- },
- bC: function(c, d, f) {
- var g = this.pua;
- this.vt.yra(c, d);
- d = new C.$e(f);
- d.EHa(c.x, c.y);
- d.eva(g.x, g.y);
- g.x = c.x;
- g.y = c.y;
- return d
- },
- dC: function(c, d) {
- if (c.pageX != s) return {
- x: c.pageX,
- y: c.pageY
- };
- d.left -= document.body.scrollLeft;
- d.top -= document.body.scrollTop;
- return {
- x: c.clientX,
- y: c.clientY
- }
- },
- PP: function(c, d) {
- for (var f = [], g = this.vt, h, k, n = this.Qaa, p = c.changedTouches.length, r = 0; r < p; r++) if (h = c.changedTouches[r]) {
- var v;
- v = C.Sc.xD === C.Sc.tu ? g.C_(h.pageX, h.pageY, d) : g.C_(h.clientX, h.clientY, d);
- h.identifier != s ? (h = new C.zU(v.x, v.y, h.identifier), k = this.yBa(h).mh(), h.ZA(k.x, k.y), this.YHa(h)) : (h = new C.zU(v.x, v.y), h.ZA(n.x, n.y));
- n.x = v.x;
- n.y = v.y;
- f.push(h)
- }
- return f
- },
- jGa: function(c) {
- if (!this.laa) {
- var d = this.vt = C.view,
- f = this,
- g = "touches" in C.Sc.uH;
- "mouse" in C.Sc.uH && (C.qb(window, "mousedown",
- function() {
- f.BA = q
- },
- t), C.qb(window, "mouseup",
- function(d) {
- var h = f.BA;
- f.BA = t;
- if (h) {
- var h = f.Wn(c),
- k = f.dC(d, h);
- C.Ju(new C.az(h.left, h.top, h.width, h.height), k) || (g || f.SP([f.ZH(k.x, k.y, h)]), h = f.bC(k, h, C.$e.Nl), h.jy(d.button), C.Ka.dispatchEvent(h))
- }
- },
- t), C.qb(c, "mousedown",
- function(d) {
- f.BA = q;
- var h = f.Wn(c),
- k = f.dC(d, h);
- g || f.O0([f.ZH(k.x, k.y, h)]);
- h = f.bC(k, h, C.$e.Zm);
- h.jy(d.button);
- C.Ka.dispatchEvent(h);
- d.stopPropagation();
- d.preventDefault();
- c.focus()
- },
- t), C.qb(c, "mouseup",
- function(d) {
- f.BA = t;
- var h = f.Wn(c),
- k = f.dC(d, h);
- g || f.SP([f.ZH(k.x, k.y, h)]);
- h = f.bC(k, h, C.$e.Nl);
- h.jy(d.button);
- C.Ka.dispatchEvent(h);
- d.stopPropagation();
- d.preventDefault()
- },
- t), C.qb(c, "mousemove",
- function(d) {
- var h = f.Wn(c),
- k = f.dC(d, h);
- g || f.P0([f.ZH(k.x, k.y, h)]);
- h = f.bC(k, h, C.$e.C6);
- f.BA ? h.jy(d.button) : h.jy(s);
- C.Ka.dispatchEvent(h);
- d.stopPropagation();
- d.preventDefault()
- },
- t), C.qb(c, "mousewheel",
- function(d) {
- var g = f.Wn(c),
- h = f.dC(d, g),
- g = f.bC(h, g, C.$e.ZT);
- g.jy(d.button);
- g.oia(0, d.wheelDelta);
- C.Ka.dispatchEvent(g);
- d.stopPropagation();
- d.preventDefault()
- },
- t), C.qb(c, "DOMMouseScroll",
- function(d) {
- var g = f.Wn(c),
- h = f.dC(d, g),
- g = f.bC(h, g, C.$e.ZT);
- g.jy(d.button);
- g.oia(0, -120 * d.detail);
- C.Ka.dispatchEvent(g);
- d.stopPropagation();
- d.preventDefault()
- },
- t));
- if (window.navigator.msPointerEnabled) {
- var h = {
- MSPointerDown: f.O0,
- MSPointerMove: f.P0,
- MSPointerUp: f.SP,
- MSPointerCancel: f.Mea
- },
- k;
- for (k in h)(function(d, g) {
- C.qb(c, d,
- function(d) {
- var h = f.Wn(c);
- h.left -= document.documentElement.scrollLeft;
- h.top -= document.documentElement.scrollTop;
- g.call(f, [f.ZH(d.clientX, d.clientY, h)]);
- d.stopPropagation()
- },
- t)
- })(k, h[k])
- }
- g && (C.qb(c, "touchstart",
- function(d) {
- if (d.changedTouches) {
- var g = f.Wn(c);
- g.left -= document.body.scrollLeft;
- g.top -= document.body.scrollTop;
- f.O0(f.PP(d, g));
- d.stopPropagation();
- d.preventDefault();
- c.focus()
- }
- },
- t), C.qb(c, "touchmove",
- function(d) {
- if (d.changedTouches) {
- var g = f.Wn(c);
- g.left -= document.body.scrollLeft;
- g.top -= document.body.scrollTop;
- f.P0(f.PP(d, g));
- d.stopPropagation();
- d.preventDefault()
- }
- },
- t), C.qb(c, "touchend",
- function(d) {
- if (d.changedTouches) {
- var g = f.Wn(c);
- g.left -= document.body.scrollLeft;
- g.top -= document.body.scrollTop;
- f.SP(f.PP(d, g));
- d.stopPropagation();
- d.preventDefault()
- }
- },
- t), C.qb(c, "touchcancel",
- function(g) {
- if (g.changedTouches) {
- var h = f.Wn(c);
- h.left -= document.body.scrollLeft;
- h.top -= document.body.scrollTop;
- d.Mea(f.PP(g, h));
- g.stopPropagation();
- g.preventDefault()
- }
- },
- t));
- this.cba();
- this.bba();
- this.laa = q
- }
- },
- cba: u(),
- bba: u(),
- update: function(c) {
- this.Fv > this.hL && (this.Fv -= this.hL, C.Ka.dispatchEvent(new C.ema(this.$U)));
- this.Fv += c
- }
- };
- var H = C.dfa;
- H.k3a = function(c) {
- this.gL !== c && (this.gL = c, c = C.Q.Em(), this.gL ? (this.Fv = 0, c.lR(this)) : (this.Fv = 0, c.GJ(this)))
- };
- H.l3a = function(c) {
- this.hL !== c && (this.hL = c)
- };
- H.cba = function() {
- C.qb(C.Pb, "keydown",
- function(c) {
- C.Ka.dispatchEvent(new C.N5(c.keyCode, q));
- c.stopPropagation();
- c.preventDefault()
- },
- t);
- C.qb(C.Pb, "keyup",
- function(c) {
- C.Ka.dispatchEvent(new C.N5(c.keyCode, t));
- c.stopPropagation();
- c.preventDefault()
- },
- t)
- };
- H.bba = function() {
- var c = window;
- this.$U = new C.Eja;
- this.fL = c.DeviceMotionEvent || c.DeviceOrientationEvent;
- C.Sc.tu == C.Sc.w4 && (this.fL = window.DeviceOrientationEvent);
- var d = this.fL == c.DeviceMotionEvent ? "devicemotion": "deviceorientation",
- f = navigator.userAgent;
- if (/Android/.test(f) || /Adr/.test(f) && C.Sc.tu == C.x4) this.hPa = -1;
- C.qb(c, d, this.Cya.bind(this), t)
- };
- H.Cya = function(c) {
- var d = window;
- if (this.gL) {
- var f = this.$U;
- if (this.fL == window.DeviceMotionEvent) {
- var g = c.accelerationIncludingGravity;
- f.x = 0.1 * this.V8 * g.x;
- f.y = 0.1 * this.V8 * g.y;
- f.f = 0.1 * g.f
- } else f.x = 0.981 * (c.gamma / 90),
- f.y = 0.981 * -(c.beta / 90),
- f.f = 0.981 * (c.alpha / 90);
- f.timestamp = c.timeStamp || Date.now();
- c = f.x;
- d.orientation === C.cqa ? (f.x = -f.y, f.y = c) : d.orientation === C.bqa ? (f.x = f.y, f.y = -c) : d.orientation === C.dqa && (f.x = -f.x, f.y = -f.y)
- }
- };
- delete H;
- C.qKa = function(c, d, f, g, h, k) {
- this.a = c;
- this.b = d;
- this.H = f;
- this.P = g;
- this.na = h;
- this.oa = k
- };
- C.tKa = function() {
- return {
- a: 1,
- b: 0,
- H: 0,
- P: 1,
- na: 0,
- oa: 0
- }
- };
- C.wv = function(c, d) {
- return {
- x: d.a * c.x + d.H * c.y + d.na,
- y: d.b * c.x + d.P * c.y + d.oa
- }
- };
- C.Qs = function(c, d, f) {
- return {
- x: f.a * c + f.H * d + f.na,
- y: f.b * c + f.P * d + f.oa
- }
- };
- C.fNa = function(c, d) {
- return {
- width: d.a * c.width + d.H * c.height,
- height: d.b * c.width + d.P * c.height
- }
- };
- C.uKa = function() {
- return {
- a: 1,
- b: 0,
- H: 0,
- P: 1,
- na: 0,
- oa: 0
- }
- };
- C.sKa = function() {
- return {
- a: 1,
- b: 0,
- H: 0,
- P: 1,
- na: 0,
- oa: 0
- }
- };
- C.Gi = function(c, d) {
- var f = C.jo(c),
- g = C.io(c),
- h = C.Xp(c),
- k = C.Yp(c),
- n = C.Qs(g, f, d),
- f = C.Qs(h, f, d),
- g = C.Qs(g, k, d),
- p = C.Qs(h, k, d),
- h = Math.min(n.x, f.x, g.x, p.x),
- k = Math.max(n.x, f.x, g.x, p.x),
- r = Math.min(n.y, f.y, g.y, p.y),
- n = Math.max(n.y, f.y, g.y, p.y);
- return C.rect(h, r, k - h, n - r)
- };
- C.Io = function(c, d) {
- var f = C.jo(c),
- g = C.io(c),
- h = C.Xp(c),
- k = C.Yp(c),
- n = C.Qs(g, f, d),
- f = C.Qs(h, f, d),
- g = C.Qs(g, k, d),
- p = C.Qs(h, k, d),
- h = Math.min(n.x, f.x, g.x, p.x),
- k = Math.max(n.x, f.x, g.x, p.x),
- r = Math.min(n.y, f.y, g.y, p.y),
- n = Math.max(n.y, f.y, g.y, p.y);
- c.x = h;
- c.y = r;
- c.width = k - h;
- c.height = n - r;
- return c
- };
- C.OJ = function(c, d, f) {
- return {
- a: c.a,
- b: c.b,
- H: c.H,
- P: c.P,
- na: c.na + c.a * d + c.H * f,
- oa: c.oa + c.b * d + c.P * f
- }
- };
- C.vKa = function(c, d, f) {
- return {
- a: c.a * d,
- b: c.b * d,
- H: c.H * f,
- P: c.P * f,
- na: c.na,
- oa: c.oa
- }
- };
- C.Pja = function(c) {
- var d = Math.sin(1.57079633),
- f = Math.cos(1.57079633);
- return {
- a: c.a * f + c.H * d,
- b: c.b * f + c.P * d,
- H: c.H * f - c.a * d,
- P: c.P * f - c.b * d,
- na: c.na,
- oa: c.oa
- }
- };
- C.Qg = function(c, d) {
- return {
- a: c.a * d.a + c.b * d.H,
- b: c.a * d.b + c.b * d.P,
- H: c.H * d.a + c.P * d.H,
- P: c.H * d.b + c.P * d.P,
- na: c.na * d.a + c.oa * d.H + d.na,
- oa: c.na * d.b + c.oa * d.P + d.oa
- }
- };
- C.rKa = function(c, d) {
- return c.a === d.a && c.b === d.b && c.H === d.H && c.P === d.P && c.na === d.na && c.oa === d.oa
- };
- C.iS = function(c) {
- var d = 1 / (c.a * c.P - c.b * c.H);
- return {
- a: d * c.P,
- b: -d * c.b,
- H: -d * c.H,
- P: d * c.a,
- na: d * (c.H * c.oa - c.P * c.na),
- oa: d * (c.b * c.na - c.a * c.oa)
- }
- };
- C.Y6 = parseFloat("1.192092896e-07F");
- C.T1 = function(c) {
- return C.d( - c.x, -c.y)
- };
- C.ho = function(c, d) {
- return C.d(c.x + d.x, c.y + d.y)
- };
- C.cc = function(c, d) {
- return C.d(c.x - d.x, c.y - d.y)
- };
- C.Wp = function(c, d) {
- return C.d(c.x * d, c.y * d)
- };
- C.S1 = function(c, d) {
- return C.Wp(C.ho(c, d), 0.5)
- };
- C.IC = function(c, d) {
- return c.x * d.x + c.y * d.y
- };
- C.REa = function(c, d) {
- return c.x * d.y - c.y * d.x
- };
- C.SQ = function(c) {
- return C.d( - c.y, c.x)
- };
- C.Q0a = function(c) {
- return C.d(c.y, -c.x)
- };
- C.P0a = function(c, d) {
- return C.Wp(d, C.IC(c, d) / C.IC(d, d))
- };
- C.R0a = function(c, d) {
- return C.d(c.x * d.x - c.y * d.y, c.x * d.y + c.y * d.x)
- };
- C.U0a = function(c, d) {
- return C.d(c.x * d.x + c.y * d.y, c.y * d.x - c.x * d.y)
- };
- C.nga = function(c) {
- return C.IC(c, c)
- };
- C.lga = function(c, d) {
- return C.nga(C.cc(c, d))
- };
- C.Ye = function(c) {
- return Math.sqrt(C.nga(c))
- };
- C.kga = function(c, d) {
- return C.Ye(C.cc(c, d))
- };
- C.vf = function(c) {
- return C.Wp(c, 1 / C.Ye(c))
- };
- C.M0a = function(c) {
- return C.d(Math.cos(c), Math.sin(c))
- };
- C.UEa = function(c) {
- return Math.atan2(c.y, c.x)
- };
- C.Nf = function(c, d, f) {
- if (d > f) {
- var g = d;
- d = f;
- f = g
- }
- return c < d ? d: c < f ? c: f
- };
- C.jga = function(c) {
- var d = C.d(0, 0),
- f = C.d(1, 1);
- return C.d(C.Nf(c.x, d.x, f.x), C.Nf(c.y, d.y, f.y))
- };
- C.mga = function() {
- var c = C.Q.aa;
- return C.d(c.width, c.height)
- };
- C.L0a = function(c, d) {
- return C.d(d(c.x), d(c.y))
- };
- C.oga = function(c, d, f) {
- return C.ho(C.Wp(c, 1 - f), C.Wp(d, f))
- };
- C.N0a = function(c, d, f) {
- return c.x - f <= d.x && d.x <= c.x + f && c.y - f <= d.y && d.y <= c.y + f ? q: t
- };
- C.K0a = function(c, d) {
- return C.d(c.x * d.x, c.y * d.y)
- };
- C.J0a = function(c, d) {
- var f = C.vf(c),
- g = C.vf(d),
- f = Math.atan2(f.x * g.y - f.y * g.x, C.IC(f, g));
- return Math.abs(f) < C.Y6 ? 0 : f
- };
- C.I0a = function(c, d) {
- var f = Math.acos(C.IC(C.vf(c), C.vf(d)));
- return Math.abs(f) < C.Y6 ? 0 : f
- };
- C.TEa = function(c, d, f) {
- c = C.cc(c, d);
- var g = Math.cos(f);
- f = Math.sin(f);
- var h = c.x;
- c.x = h * g - c.y * f + d.x;
- c.y = h * f + c.y * g + d.y;
- return c
- };
- C.R1 = function(c, d, f, g, h) {
- if (c.x == d.x && c.y == d.y || f.x == g.x && f.y == g.y) return t;
- var k = d.x - c.x;
- d = d.y - c.y;
- var n = g.x - f.x;
- g = g.y - f.y;
- var p = c.x - f.x;
- c = c.y - f.y;
- f = g * k - n * d;
- h.x = n * c - g * p;
- h.y = k * c - d * p;
- if (0 == f) return 0 == h.x || 0 == h.y ? q: t;
- h.x /= f;
- h.y /= f;
- return q
- };
- C.T0a = function(c, d, f, g) {
- var h = C.d(0, 0);
- return C.R1(c, d, f, g, h) && 0 <= h.x && 1 >= h.x && 0 <= h.y && 1 >= h.y ? q: t
- };
- C.O0a = function(c, d, f, g) {
- var h = C.d(0, 0);
- return C.R1(c, d, f, g, h) ? (f = C.d(0, 0), f.x = c.x + h.x * (d.x - c.x), f.y = c.y + h.x * (d.y - c.y), f) : C.d(0, 0)
- };
- C.S0a = function(c, d) {
- return c != s && d != s ? c.x == d.x && c.y == d.y: t
- };
- C.TQ = function(c) {
- c.x = 0;
- c.y = 0
- };
- C.gs = function(c, d) {
- c.x = d.x;
- c.y = d.y
- };
- C.JC = function(c, d) {
- c.x *= d;
- c.y *= d
- };
- C.pga = function(c, d) {
- c.x -= d.x;
- c.y -= d.y
- };
- C.RQ = function(c, d) {
- c.x += d.x;
- c.y += d.y
- };
- C.SEa = function(c) {
- C.JC(c, 1 / Math.sqrt(c.x * c.x + c.y * c.y))
- };
- C.d4 = function(c, d, f, g, h) {
- h += g;
- if (! (1 >= h)) {
- d *= 0.5;
- for (var k, n = h - 1,
- p = g; p < h; p++) {
- k = 2 * p;
- var r = C.d(c[2 * p], c[2 * p + 1]),
- v;
- if (0 === p) v = C.SQ(C.vf(C.cc(r, C.d(c[2 * (p + 1)], c[2 * (p + 1) + 1]))));
- else if (p === n) v = C.SQ(C.vf(C.cc(C.d(c[2 * (p - 1)], c[2 * (p - 1) + 1]), r)));
- else {
- v = C.d(c[2 * (p - 1)], c[2 * (p - 1) + 1]);
- var y = C.d(c[2 * (p + 1)], c[2 * (p + 1) + 1]),
- z = C.vf(C.cc(y, r)),
- D = C.vf(C.cc(v, r)),
- E = Math.acos(C.IC(z, D));
- v = E < C.ng(70) ? C.SQ(C.vf(C.S1(z, D))) : E < C.ng(170) ? C.vf(C.S1(z, D)) : C.SQ(C.vf(C.cc(y, v)))
- }
- v = C.Wp(v, d);
- f[2 * k] = r.x + v.x;
- f[2 * k + 1] = r.y + v.y;
- f[2 * (k + 1)] = r.x - v.x;
- f[2 * (k + 1) + 1] = r.y - v.y
- }
- for (p = 0 == g ? 0 : g - 1; p < n; p++) {
- k = 2 * p;
- c = k + 2;
- d = C.fS(f[2 * k], f[2 * k + 1]);
- h = C.fS(f[2 * (k + 1)], f[2 * (k + 1) + 1]);
- k = C.fS(f[2 * c], f[2 * c]);
- g = C.fS(f[2 * (c + 1)], f[2 * (c + 1) + 1]);
- d = !C.QJa(d.x, d.y, g.x, g.y, h.x, h.y, k.x, k.y);
- if (!d.sI && (0 > d.value || 1 < d.value)) d.sI = q;
- d.sI && (f[2 * c] = g.x, f[2 * c + 1] = g.y, f[2 * (c + 1)] = k.x, f[2 * (c + 1) + 1] = k.y)
- }
- }
- };
- C.QJa = function(c, d, f, g, h, k, n, p) {
- if (c == f && d == g || h == n && k == p) return {
- sI: t,
- value: 0
- };
- f -= c;
- g -= d;
- h -= c;
- k -= d;
- n -= c;
- p -= d;
- c = Math.sqrt(f * f + g * g);
- f /= c;
- g /= c;
- d = h * f + k * g;
- k = k * f - h * g;
- h = d;
- d = n * f + p * g;
- p = p * f - n * g;
- n = d;
- return k == p ? {
- sI: t,
- value: 0
- }: {
- sI: q,
- value: (n + (h - n) * p / (p - k)) / c
- }
- };
- C.P6a = function(c) {
- for (var d = 0,
- f = c.length; d < f; d++) {
- var g = c[(d + 1) % f],
- h = c[(d + 2) % f];
- if (0 < C.REa(C.cc(g, c[d]), C.cc(h, g))) return t
- }
- return q
- };
- C.cLa = function(c, d) {
- d[2] = d[3] = d[6] = d[7] = d[8] = d[9] = d[11] = d[14] = 0;
- d[10] = d[15] = 1;
- d[0] = c.a;
- d[4] = c.H;
- d[12] = c.na;
- d[1] = c.b;
- d[5] = c.P;
- d[13] = c.oa
- };
- C.RLa = function(c, d) {
- d.a = c[0];
- d.H = c[4];
- d.na = c[12];
- d.b = c[1];
- d.P = c[5];
- d.oa = c[13]
- };
- C.zU = C.O.extend({
- eh: s,
- mp: s,
- ni: 0,
- Nba: t,
- NG: s,
- ctor: function(c, d, f) {
- this.eh = C.d(c || 0, d || 0);
- this.ni = f || 0
- },
- mh: function() {
- return {
- x: this.eh.x,
- y: this.eh.y
- }
- },
- XAa: function() {
- return this.eh.x
- },
- YAa: function() {
- return this.eh.y
- },
- JP: function() {
- return {
- x: this.mp.x,
- y: this.mp.y
- }
- },
- EWa: function() {
- return {
- x: this.NG.x,
- y: this.NG.y
- }
- },
- p0: function() {
- return C.cc(this.eh, this.mp)
- },
- WAa: function() {
- return {
- x: this.eh.x,
- y: this.eh.y
- }
- },
- dWa: function() {
- return {
- x: this.mp.x,
- y: this.mp.y
- }
- },
- FWa: function() {
- return {
- x: this.NG.x,
- y: this.NG.y
- }
- },
- OUa: A("ni"),
- IAa: A("ni"),
- v5a: function(c, d, f) {
- this.mp = this.eh;
- this.eh = C.d(d || 0, f || 0);
- this.ni = c;
- this.Nba || (this.NG = C.d(this.eh), this.Nba = q)
- },
- IY: function(c, d) {
- d === m ? (this.eh.x = c.x, this.eh.y = c.y) : (this.eh.x = c, this.eh.y = d)
- },
- ZA: function(c, d) {
- this.mp = d === m ? C.d(c.x, c.y) : C.d(c || 0, d || 0)
- }
- });
- C.oe = C.O.extend({
- xc: 0,
- hw: t,
- Cf: s,
- AY: x("Cf"),
- ctor: x("xc"),
- $H: A("xc"),
- stopPropagation: function() {
- this.hw = q
- },
- LYa: A("hw"),
- UTa: A("Cf")
- });
- C.oe.SK = 0;
- C.oe.Vy = 1;
- C.oe.Fy = 2;
- C.oe.tv = 3;
- C.oe.hq = 4;
- C.jq = C.oe.extend({
- tW: s,
- gca: s,
- ctor: function(c) {
- C.oe.prototype.ctor.call(this, C.oe.hq);
- this.tW = c
- },
- setUserData: x("gca"),
- getUserData: A("gca"),
- zUa: A("tW")
- });
- C.$e = C.oe.extend({
- t$: 0,
- AV: 0,
- Pn: 0,
- cj: 0,
- cY: 0,
- dY: 0,
- rba: 0,
- sba: 0,
- ctor: function(c) {
- C.oe.prototype.ctor.call(this, C.oe.tv);
- this.t$ = c
- },
- oia: function(c, d) {
- this.rba = c;
- this.sba = d
- },
- uWa: A("rba"),
- vWa: A("sba"),
- EHa: function(c, d) {
- this.Pn = c;
- this.cj = d
- },
- mh: function() {
- return {
- x: this.Pn,
- y: this.cj
- }
- },
- WAa: function() {
- return {
- x: this.Pn,
- y: C.view.Oz.height - this.cj
- }
- },
- eva: function(c, d) {
- this.cY = c;
- this.dY = d
- },
- p0: function() {
- return {
- x: this.Pn - this.cY,
- y: this.cj - this.dY
- }
- },
- cUa: function() {
- return this.Pn - this.cY
- },
- dUa: function() {
- return this.cj - this.dY
- },
- jy: x("AV"),
- kTa: A("AV"),
- XAa: A("Pn"),
- YAa: A("cj")
- });
- C.$e.NONE = 0;
- C.$e.Zm = 1;
- C.$e.Nl = 2;
- C.$e.C6 = 3;
- C.$e.ZT = 4;
- C.$e.eka = 0;
- C.$e.VKa = 2;
- C.$e.UKa = 1;
- C.$e.PKa = 3;
- C.$e.QKa = 4;
- C.$e.RKa = 5;
- C.$e.SKa = 6;
- C.$e.TKa = 7;
- C.El = C.oe.extend({
- ot: 0,
- Kf: s,
- ctor: function(c) {
- C.oe.prototype.ctor.call(this, C.oe.SK);
- this.Kf = c || []
- },
- yUa: A("ot"),
- lXa: A("Kf"),
- uPa: x("ot"),
- yPa: x("Kf")
- });
- C.El.tMa = 5;
- C.El.Py = {
- mS: 0,
- vT: 1,
- ZS: 2,
- BS: 3
- };
- C.Oa = C.O.extend({
- GX: s,
- xc: 0,
- cp: s,
- Wi: t,
- rt: 0,
- gf: s,
- xe: t,
- qA: q,
- ctor: function(c, d, f) {
- this.GX = f;
- this.xc = c || 0;
- this.cp = d || ""
- },
- HY: x("xe"),
- WOa: A("xe"),
- BG: x("Wi"),
- rta: A("Wi"),
- OOa: A("xc"),
- JOa: A("cp"),
- BY: x("rt"),
- HOa: A("rt"),
- CG: x("gf"),
- MOa: A("gf"),
- uu: function() {
- return this.GX != s
- },
- s: B(s),
- Ib: x("qA"),
- isEnabled: A("qA"),
- fR: u(),
- rh: u()
- });
- C.Oa.mqa = 0;
- C.Oa.Gs = 1;
- C.Oa.TK = 2;
- C.Oa.Vy = 3;
- C.Oa.tv = 4;
- C.Oa.Fy = 5;
- C.Oa.hq = 6;
- C.PE = C.Oa.extend({
- jG: s,
- ctor: function(c, d) {
- this.jG = d;
- var f = this;
- C.Oa.prototype.ctor.call(this, C.Oa.hq, c,
- function(c) {
- f.jG != s && f.jG(c)
- })
- },
- uu: function() {
- return C.Oa.prototype.uu.call(this) && this.jG != s
- },
- s: function() {
- return new C.PE(this.cp, this.jG)
- }
- });
- C.PE.create = function(c, d) {
- return new C.PE(c, d)
- };
- C.Ps = C.Oa.extend({
- MQ: s,
- JI: s,
- NQ: s,
- OQ: s,
- ctor: function() {
- var c = this;
- C.Oa.prototype.ctor.call(this, C.Oa.tv, C.Ps.He,
- function(d) {
- var f = C.$e;
- switch (d.t$) {
- case f.Zm:
- c.MQ && c.MQ(d);
- break;
- case f.Nl:
- c.JI && c.JI(d);
- break;
- case f.C6:
- c.NQ && c.NQ(d);
- break;
- case f.ZT:
- c.OQ && c.OQ(d)
- }
- })
- },
- s: function() {
- var c = new C.Ps;
- c.MQ = this.MQ;
- c.JI = this.JI;
- c.NQ = this.NQ;
- c.OQ = this.OQ;
- return c
- },
- uu: B(q)
- });
- C.Ps.He = "__cc_mouse";
- C.Ps.create = function() {
- return new C.Ps
- };
- C.Ho = C.Oa.extend({
- Gz: s,
- yy: t,
- nc: s,
- yd: s,
- cd: s,
- Xe: s,
- ctor: function() {
- C.Oa.prototype.ctor.call(this, C.Oa.Gs, C.Ho.He, s);
- this.Gz = []
- },
- j5a: x("yy"),
- s: function() {
- var c = new C.Ho;
- c.nc = this.nc;
- c.yd = this.yd;
- c.cd = this.cd;
- c.Xe = this.Xe;
- c.yy = this.yy;
- return c
- },
- uu: function() {
- return ! this.nc ? (C.log(C.n.wqa), t) : q
- }
- });
- C.Ho.He = "__cc_touch_one_by_one";
- C.Ho.create = function() {
- return new C.Ho
- };
- C.Go = C.Oa.extend({
- MI: s,
- OI: s,
- HC: s,
- NI: s,
- ctor: function() {
- C.Oa.prototype.ctor.call(this, C.Oa.TK, C.Go.He, s)
- },
- s: function() {
- var c = new C.Go;
- c.MI = this.MI;
- c.OI = this.OI;
- c.HC = this.HC;
- c.NI = this.NI;
- return c
- },
- uu: function() {
- return this.MI == s && this.OI == s && this.HC == s && this.NI == s ? (C.log(C.n.vqa), t) : q
- }
- });
- C.Go.He = "__cc_touch_all_at_once";
- C.Go.create = function() {
- return new C.Go
- };
- C.Oa.create = function(c) {
- C.assert(c && c.event, C.n.gma);
- var d = c.event;
- delete c.event;
- var f = s;
- d === C.Oa.Gs ? f = new C.Ho: d === C.Oa.TK ? f = new C.Go: d === C.Oa.tv ? f = new C.Ps: d === C.Oa.hq ? (f = new C.PE(c.Iza, c.n_), delete c.Iza, delete c.n_) : d === C.Oa.Vy ? f = new C.Os: d === C.Oa.Fy && (f = new C.Ns(c.n_), delete c.n_);
- for (var g in c) f[g] = c[g];
- return f
- };
- C.Tca = function(c) {
- var d, f = c.length,
- g = Array(f);
- for (d = 0; d < f; d += 1) g[d] = c[d];
- return g
- };
- C.xqa = C.O.extend({
- Tk: s,
- al: s,
- Iea: 0,
- ctor: function() {
- this.Tk = [];
- this.al = []
- },
- size: function() {
- return this.Tk.length + this.al.length
- },
- empty: function() {
- return 0 === this.Tk.length && 0 === this.al.length
- },
- push: function(c) {
- 0 == c.rt ? this.al.push(c) : this.Tk.push(c)
- },
- Kxa: function() {
- this.al.length = 0
- },
- Jxa: function() {
- this.Tk.length = 0
- },
- clear: function() {
- this.al.length = 0;
- this.Tk.length = 0
- },
- EUa: A("Tk"),
- tWa: A("al")
- });
- C.cL = function(c) {
- var d = C.oe,
- f = c.xc;
- if (f === d.Fy) return C.Ns.He;
- if (f === d.hq) return c.tW;
- if (f === d.Vy) return C.Os.He;
- if (f === d.tv) return C.Ps.He;
- f === d.SK && C.log(C.n.cL);
- return ""
- };
- C.Ka = {
- VS: 0,
- fK: 1,
- GD: 2,
- wLa: 3,
- bm: {},
- tG: {},
- fp: {},
- mN: {},
- U$: {},
- mB: [],
- vF: [],
- ew: 0,
- qA: t,
- Daa: 0,
- pta: [C.qf.kK, C.qf.JD],
- WN: function(c) {
- this.fp[c.ub] != s && this.vF.push(c);
- c = c.le();
- for (var d = 0,
- f = c.length; d < f; d++) this.WN(c[d])
- },
- hs: function(c, d) {
- var f = this.fp[c.ub],
- g,
- h;
- if (f) {
- g = 0;
- for (h = f.length; g < h; g++) f[g].HY(q)
- }
- if (d === q) {
- f = c.le();
- g = 0;
- for (h = f.length; g < h; g++) this.hs(f[g], q)
- }
- },
- Mm: function(c, d) {
- var f = this.fp[c.ub],
- g,
- h;
- if (f) {
- g = 0;
- for (h = f.length; g < h; g++) f[g].HY(t)
- }
- this.WN(c);
- if (d === q) {
- f = c.le();
- g = 0;
- for (h = f.length; g < h; g++) this.Mm(f[g], q)
- }
- },
- Z8: function(c) {
- 0 === this.ew ? this.C$(c) : this.mB.push(c)
- },
- C$: function(c) {
- var d = c.cp,
- f = this.bm[d];
- f || (f = new C.xqa, this.bm[d] = f);
- f.push(c);
- 0 == c.rt ? (this.Vt(d, this.GD), d = c.gf, d == s && C.log(C.n.Bza), this.Sqa(d, c), d.$c && this.Mm(d)) : this.Vt(d, this.fK)
- },
- PW: function(c) {
- return this.bm[c]
- },
- bwa: function() {
- if (0 != this.vF.length) {
- for (var c = this.vF,
- d, f, g = this.fp,
- h = 0,
- k = c.length; h < k; h++) if (d = g[c[h].ub]) for (var n = 0,
- p = d.length; n < p; n++)(f = d[n]) && this.Vt(f.cp, this.GD);
- this.vF.length = 0
- }
- },
- dba: function(c) {
- if (c) for (var d, f = 0; f < c.length;) d = c[f],
- d.BG(t),
- d.gf != s && (this.M9(d.gf, d), d.CG(s)),
- 0 === this.ew ? C.Id(c, d) : ++f
- },
- Jw: function(c) {
- var d = this.bm[c];
- if (d) {
- var f = d.Tk;
- this.dba(d.al);
- this.dba(f);
- delete this.tG[c];
- this.ew || (d.clear(), delete this.bm[c])
- }
- for (var f = this.mB,
- g, d = 0; d < f.length;)(g = f[d]) && g.cp == c ? C.Id(f, g) : ++d
- },
- SY: function(c) {
- var d = this.VS,
- f = this.tG;
- f[c] && (d = f[c]);
- d != this.VS && (f[c] = this.VS, d & this.fK && this.Hva(c), d & this.GD && ((d = C.Q.gg) ? this.Jva(c, d) : f[c] = this.GD))
- },
- Jva: function(c, d) {
- var f = this.PW(c);
- if (f) {
- var g = f.al;
- g && 0 !== g.length && (this.Daa = 0, this.mN = {},
- this.FZ(d, q), f.al.sort(this.Gva))
- }
- },
- Gva: function(c, d) {
- var f = C.Ka.mN;
- return f[d.gf.ub] - f[c.gf.ub]
- },
- Hva: function(c) {
- if (c = this.bm[c]) {
- var d = c.Tk;
- if (d && 0 !== d.length) {
- d.sort(this.Iva);
- for (var f = 0,
- g = d.length; f < g && !(0 <= d[f].rt);)++f;
- c.Iea = f
- }
- }
- },
- Iva: function(c, d) {
- return c.rt - d.rt
- },
- HX: function(c) {
- if (c = this.bm[c]) {
- var d = c.Tk,
- f = c.al,
- g, h;
- if (f) for (g = 0; g < f.length;) h = f[g],
- h.Wi ? ++g: C.Id(f, h);
- if (d) for (g = 0; g < d.length;) h = d[g],
- h.Wi ? ++g: C.Id(d, h);
- f && 0 === f.length && c.Kxa();
- d && 0 === d.length && c.Jxa()
- }
- },
- FO: function(c) {
- var d = this.ew;
- C.assert(0 < d, C.n.hma);
- c.xc == C.oe.SK ? (this.HX(C.Ho.He), this.HX(C.Go.He)) : this.HX(C.cL(c));
- if (! (1 < d)) {
- C.assert(1 == d, C.n.ima);
- c = this.bm;
- var d = this.tG,
- f;
- for (f in c) c[f].empty() && (delete d[f], delete c[f]);
- f = this.mB;
- if (0 !== f.length) {
- c = 0;
- for (d = f.length; c < d; c++) this.C$(f[c]);
- this.mB.length = 0
- }
- }
- },
- Yta: function(c, d) {
- if (!c.rta) return t;
- var f = d.event,
- g = d.dha;
- f.AY(c.gf);
- var h = t,
- k, n = f.ot,
- p = C.El.Py;
- if (n == p.mS) c.nc && (h = c.nc(g, f)) && c.Wi && c.Gz.push(g);
- else if (0 < c.Gz.length && -1 != (k = c.Gz.indexOf(g))) h = q,
- n === p.vT && c.yd ? c.yd(g, f) : n === p.ZS ? (c.cd && c.cd(g, f), c.Wi && c.Gz.splice(k, 1)) : n === p.BS && (c.Xe && c.Xe(g, f), c.Wi && c.Gz.splice(k, 1));
- return f.hw ? (C.Ka.FO(f), q) : h && c.Wi && c.yy ? (d.sEa && d.touches.splice(g, 1), q) : t
- },
- Hra: function(c) {
- this.SY(C.Ho.He);
- this.SY(C.Go.He);
- var d = this.PW(C.Ho.He),
- f = this.PW(C.Go.He);
- if (! (s == d && s == f)) {
- var g = c.Kf,
- h = C.Tca(g),
- k = {
- event: c,
- sEa: d && f,
- touches: h,
- dha: s
- };
- if (d) for (var n = 0; n < g.length; n++) if (k.dha = g[n], this.hW(d, this.Yta, k), c.hw) return;
- if (f && 0 < h.length && (this.hW(f, this.$ta, {
- event: c,
- touches: h
- }), c.hw)) return;
- this.FO(c)
- }
- },
- $ta: function(c, d) {
- if (!c.Wi) return t;
- var f = C.El.Py,
- g = d.event,
- h = d.touches,
- k = g.ot;
- g.AY(c.gf);
- k == f.mS && c.MI ? c.MI(h, g) : k == f.vT && c.OI ? c.OI(h, g) : k == f.ZS && c.HC ? c.HC(h, g) : k == f.BS && c.NI && c.NI(h, g);
- return g.hw ? (C.Ka.FO(g), q) : t
- },
- Sqa: function(c, d) {
- var f = this.fp[c.ub];
- f || (f = [], this.fp[c.ub] = f);
- f.push(d)
- },
- M9: function(c, d) {
- var f = this.fp[c.ub];
- f && (C.Id(f, d), 0 === f.length && delete this.fp[c.ub])
- },
- hW: function(c, d, f) {
- var g = t,
- h = c.Tk,
- k = c.al,
- n = 0,
- p;
- if (h && 0 !== h.length) for (; n < c.Iea; ++n) if (p = h[n], p.isEnabled() && !p.xe && p.Wi && d(p, f)) {
- g = q;
- break
- }
- if (k && !g) for (c = 0; c < k.length; c++) if (p = k[c], p.isEnabled() && !p.xe && p.Wi && d(p, f)) {
- g = q;
- break
- }
- if (h && !g) for (; n < h.length && !(p = h[n], p.isEnabled() && !p.xe && p.Wi && d(p, f)); ++n);
- },
- Vt: function(c, d) {
- var f = this.tG;
- f[c] = f[c] == s ? d: d | f[c]
- },
- FZ: function(c, d) {
- var f = c.le(),
- g = 0,
- h = f.length,
- k = this.U$,
- n = this.fp;
- if (0 < h) {
- for (var p; g < h; g++) if ((p = f[g]) && 0 > p.Wa) this.FZ(p, t);
- else break;
- n[c.ub] != s && (k[c.Tq] || (k[c.Tq] = []), k[c.Tq].push(c.ub));
- for (; g < h; g++)(p = f[g]) && this.FZ(p, t)
- } else n[c.ub] != s && (k[c.Tq] || (k[c.Tq] = []), k[c.Tq].push(c.ub));
- if (d) {
- var f = [],
- r;
- for (r in k) f.push(r);
- f.sort(this.Kva);
- r = f.length;
- p = this.mN;
- for (g = 0; g < r; g++) {
- h = k[f[g]];
- for (n = 0; n < h.length; n++) p[h[n]] = ++this.Daa
- }
- this.U$ = {}
- }
- },
- Kva: function(c, d) {
- return c - d
- },
- addListener: function(c, d) {
- C.assert(c && d, C.n.Dza);
- if (c instanceof C.Oa) {
- if (c.Wi) {
- C.log(C.n.Fza);
- return
- }
- } else C.assert("number" !== typeof d, C.n.Eza),
- c = C.Oa.create(c);
- c.uu() && ("number" == typeof d ? 0 == d ? C.log(C.n.Cza) : (c.CG(s), c.BY(d), c.BG(q), c.HY(t), this.Z8(c)) : (c.CG(d), c.BY(0), c.BG(q), this.Z8(c)))
- },
- MZ: function(c, d) {
- var f = C.PE.create(c, d);
- this.addListener(f, 1);
- return f
- },
- removeListener: function(c) {
- if (c != s) {
- var d, f = this.bm,
- g;
- for (g in f) {
- var h = f[g],
- k = h.Tk; (d = this.fba(h.al, c)) ? this.Vt(c.cp, this.GD) : (d = this.fba(k, c)) && this.Vt(c.cp, this.fK);
- h.empty() && (delete this.tG[c.cp], delete f[g]);
- if (d) break
- }
- if (!d) {
- d = this.mB;
- f = 0;
- for (g = d.length; f < g; f++) if (h = d[f], h == c) {
- C.Id(d, h);
- break
- }
- }
- }
- },
- fba: function(c, d) {
- if (c == s) return t;
- for (var f = 0,
- g = c.length; f < g; f++) {
- var h = c[f];
- if (h == d) return h.BG(t),
- h.gf != s && (this.M9(h.gf, h), h.CG(s)),
- 0 == this.ew && C.Id(c, h),
- q
- }
- return t
- },
- Tga: function(c, d) {
- if (c instanceof C.A) {
- delete this.mN[c.ub];
- C.Id(this.vF, c);
- var f = this.fp[c.ub];
- if (f) {
- for (var g = C.Tca(f), f = 0; f < g.length; f++) this.removeListener(g[f]);
- g.length = 0;
- g = this.mB;
- for (f = 0; f < g.length;) {
- var h = g[f];
- h.gf == c ? (h.CG(s), h.BG(t), g.splice(f, 1)) : ++f
- }
- if (d === q) {
- g = c.le();
- f = 0;
- for (h = g.length; f < h; f++) this.Tga(g[f], q)
- }
- }
- } else c == C.Oa.Gs ? this.Jw(C.Ho.He) : c == C.Oa.TK ? this.Jw(C.Go.He) : c == C.Oa.tv ? this.Jw(C.Ps.He) : c == C.Oa.Fy ? this.Jw(C.Ns.He) : c == C.Oa.Vy ? this.Jw(C.Os.He) : C.log(C.n.Gza)
- },
- g2a: function(c) {
- this.Jw(c)
- },
- T1a: function() {
- var c = this.bm,
- d = this.pta,
- f;
- for (f in c) - 1 === d.indexOf(f) && this.Jw(f)
- },
- S4a: function(c, d) {
- if (c != s) {
- var f = this.bm,
- g;
- for (g in f) {
- var h = f[g].Tk;
- if (h && -1 != h.indexOf(c)) {
- c.gf != s && C.log(C.n.Hza);
- c.rt !== d && (c.BY(d), this.Vt(c.cp, this.fK));
- break
- }
- }
- }
- },
- Ib: x("qA"),
- isEnabled: A("qA"),
- dispatchEvent: function(c) {
- if (this.qA) {
- this.bwa();
- this.ew++; (!c || !c.$H) && e("event is undefined");
- if (c.xc == C.oe.SK) this.Hra(c);
- else {
- var d = C.cL(c);
- this.SY(d);
- d = this.bm[d];
- d != s && this.hW(d, this.Sta, c);
- this.FO(c)
- }
- this.ew--
- }
- },
- Sta: function(c, d) {
- d.AY(c.gf);
- c.GX(d);
- return d.hw
- },
- DRa: function(c, d) {
- var f = new C.jq(c);
- f.setUserData(d);
- this.dispatchEvent(f)
- }
- };
- C.ema = C.oe.extend({
- U8: s,
- ctor: function(c) {
- C.oe.prototype.ctor.call(this, C.oe.Fy);
- this.U8 = c
- }
- });
- C.N5 = C.oe.extend({
- jX: 0,
- kaa: t,
- ctor: function(c, d) {
- C.oe.prototype.ctor.call(this, C.oe.Vy);
- this.jX = c;
- this.kaa = d
- }
- });
- C.Ns = C.Oa.extend({
- tN: s,
- ctor: function(c) {
- this.tN = c;
- var d = this;
- C.Oa.prototype.ctor.call(this, C.Oa.Fy, C.Ns.He,
- function(c) {
- d.tN(c.U8, c)
- })
- },
- uu: function() {
- C.assert(this.tN, C.n.tqa);
- return q
- },
- s: function() {
- return new C.Ns(this.tN)
- }
- });
- C.Ns.He = "__cc_acceleration";
- C.Ns.create = function(c) {
- return new C.Ns(c)
- };
- C.Os = C.Oa.extend({
- HI: s,
- II: s,
- ctor: function() {
- var c = this;
- C.Oa.prototype.ctor.call(this, C.Oa.Vy, C.Os.He,
- function(d) {
- d.kaa ? c.HI && c.HI(d.jX, d) : c.II && c.II(d.jX, d)
- })
- },
- s: function() {
- var c = new C.Os;
- c.HI = this.HI;
- c.II = this.II;
- return c
- },
- uu: function() {
- return this.HI == s && this.II == s ? (C.log(C.n.uqa), t) : q
- }
- });
- C.Os.He = "__cc_keyboard";
- C.Os.create = function() {
- return new C.Os
- };
- C.U.OU = function() {
- var c = C.A.prototype;
- c.nZ = s;
- c.KG = s;
- c.WW = s;
- c.Gq = s;
- c.ctor = function() {
- this.$W();
- var c = new C.Ia;
- 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;
- c.c[10] = c.c[15] = 1;
- this.nZ = c;
- this.WW = 0;
- this.KG = new C.Ia
- };
- c.Da = function() {
- this.el === t && (this.el = this.RM = q)
- };
- c.J = function() {
- if (this.Ja) {
- var c = C.t,
- f, g = C.Jd;
- g.stack.push(g.top);
- C.Pp(this.KG, g.top);
- g.top = this.KG;
- var h = this.grid;
- h && h.Wg && h.px();
- this.transform();
- var k = this.l;
- if (k && 0 < k.length) {
- var n = k.length;
- this.ed();
- for (f = 0; f < n; f++) if (k[f] && 0 > k[f].Wa) k[f].J();
- else break;
- for (this.ka(c); f < n; f++) k[f] && k[f].J()
- } else this.ka(c);
- this.arrivalOrder = 0;
- h && h.Wg && h.mx(this);
- g.top = g.stack.pop()
- }
- };
- c.transform = function() {
- var c = this.nZ,
- f = C.Jd.top,
- g = this.me(),
- h = c.c;
- h[0] = g.a;
- h[4] = g.H;
- h[12] = g.na;
- h[1] = g.b;
- h[5] = g.P;
- h[13] = g.oa;
- h[14] = this.gH;
- C.Qp(f, f, c);
- this.Gq != s && !(this.grid != s && this.grid.zi()) && (c = this.Nb.x, f = this.Nb.y, 0 !== c || 0 !== f ? (C.bU || (c |= 0, f |= 0), C.mC(c, f), this.Gq.yI(), C.mC( - c, -f)) : this.Gq.yI())
- };
- c.me = c.nN
- };
- C.U.LT = function() {
- var c = C.A.prototype;
- C.e(c, "x", c.Rc, c.rs);
- C.e(c, "y", c.Vd, c.Uu);
- C.e(c, "width", c.ef, c.Qh);
- C.e(c, "height", c.Dg, c.Ph);
- C.e(c, "anchorX", c.L$, c.Re);
- C.e(c, "anchorY", c.M$, c.Se);
- C.e(c, "skewX", c.rea, c.nJ);
- C.e(c, "skewY", c.sea, c.oJ);
- C.e(c, "zIndex", c.VAa, c.ul);
- C.e(c, "vertexZ", c.oCa, c.yIa);
- C.e(c, "rotation", c.Mx, c.th);
- C.e(c, "rotationX", c.GBa, c.i3);
- C.e(c, "rotationY", c.HBa, c.j3);
- C.e(c, "scale", c.SH, c.Za);
- C.e(c, "scaleX", c.LP, c.gb);
- C.e(c, "scaleY", c.TH, c.pb);
- C.e(c, "children", c.le);
- C.e(c, "childrenCount", c.m0);
- C.e(c, "parent", c.getParent, c.cq);
- C.e(c, "visible", c.l1, c.va);
- C.e(c, "running", c.zDa);
- C.e(c, "ignoreAnchor", c.uDa, c.Hm);
- C.e(c, "actionManager", c.UB, c.eha);
- C.e(c, "scheduler", c.Em, c.nia);
- C.e(c, "shaderProgram", c.C0, c.mJ);
- C.e(c, "glServerState", c.BAa, c.vHa)
- };
- C.U.MT = function() {
- var c = C.ha.prototype;
- C.e(c, "opacity", c.rb, c.K);
- C.e(c, "opacityModifyRGB", c.qg, c.$d);
- C.e(c, "cascadeOpacity", c.nI, c.Qu);
- C.e(c, "color", c.Xa, c.G);
- C.e(c, "cascadeColor", c.mI, c.Pu)
- };
- C.yK = -1;
- C.kR = 1;
- C.A = C.O.extend({
- Wa: 0,
- Tq: 0,
- gH: 0,
- Xi: 0,
- im: 0,
- ia: 1,
- pa: 1,
- ma: s,
- ig: 0,
- jg: 0,
- l: s,
- Ja: q,
- Ab: s,
- Nb: s,
- o: s,
- $c: t,
- Vb: s,
- nn: t,
- tag: C.yK,
- userData: s,
- userObject: s,
- el: q,
- RM: q,
- Lk: q,
- Fq: s,
- GPa: s,
- Lf: s,
- daa: s,
- Oh: t,
- pd: s,
- arrivalOrder: 0,
- Pl: s,
- hh: s,
- Tra: s,
- baa: t,
- yq: t,
- iz: s,
- Uo: s,
- TM: t,
- Dn: 0,
- Mw: 0,
- qa: "Node",
- OY: t,
- kd: "",
- $W: function() {
- this.Ab = C.d(0, 0);
- this.Nb = C.d(0, 0);
- this.o = C.size(0, 0);
- this.ma = C.d(0, 0);
- this.l = [];
- this.Lf = {
- a: 1,
- b: 0,
- H: 0,
- P: 1,
- na: 0,
- oa: 0
- };
- var c = C.Q;
- this.Pl = c.UB();
- this.hh = c.Em();
- this.baa = q;
- this.iz = {
- a: 1,
- b: 0,
- H: 0,
- P: 1,
- na: 0,
- oa: 0
- };
- C.o5 && (this.Uo = new C.o5(this))
- },
- j: function() {
- this.baa === t && this.$W();
- return q
- },
- Jk: function(c, d) {
- if (c && 0 !== c.length) {
- var f, g = c.length,
- h;
- f = C.A.Gj;
- switch (d) {
- case f.Z:
- for (f = 0; f < g; f++)(h = c[f]) && h.Z();
- break;
- case f.Na:
- for (f = 0; f < g; f++)(h = c[f]) && h.Na();
- break;
- case f.qj:
- for (f = 0; f < g; f++)(h = c[f]) && h.qj();
- break;
- case f.ze:
- for (f = 0; f < g; f++)(h = c[f]) && h.ze();
- break;
- case f.$h:
- for (f = 0; f < g; f++)(h = c[f]) && h.$h();
- break;
- case f.ph:
- for (f = 0; f < g; f++)(h = c[f]) && h.ph();
- break;
- case f.ed:
- for (f = 0; f < g; f++)(h = c[f]) && h.ed();
- break;
- default:
- C.assert(0, C.n.cna)
- }
- }
- },
- Da: s,
- dj: function(c) {
- for (var d in c) this[d] = c[d]
- },
- rea: A("ig"),
- nJ: function(c) {
- this.ig = c;
- this.Da()
- },
- sea: A("jg"),
- oJ: function(c) {
- this.jg = c;
- this.Da()
- },
- ul: function(c) {
- this.Wa = c;
- this.Vb && this.Vb.OC(this, c);
- C.Ka.WN(this)
- },
- Ow: x("Wa"),
- VAa: A("Wa"),
- xXa: function() {
- C.log(C.n.jna);
- return this.Wa
- },
- N5a: function(c) {
- C.log(C.n.una);
- this.ul(c)
- },
- i4a: function(c) {
- this.Tq != c && (this.Tq = c, C.Ka.WN(this))
- },
- MUa: A("Tq"),
- oCa: A("gH"),
- yIa: x("gH"),
- Mx: function() {
- this.Xi !== this.im && C.log(C.n.hna);
- return this.Xi
- },
- th: function(c) {
- this.Xi = this.im = c;
- this.Dn = 0.017453292519943295 * this.Xi;
- this.Mw = 0.017453292519943295 * this.im;
- this.Da()
- },
- GBa: A("Xi"),
- i3: function(c) {
- this.Xi = c;
- this.Dn = 0.017453292519943295 * this.Xi;
- this.Da()
- },
- HBa: A("im"),
- j3: function(c) {
- this.im = c;
- this.Mw = 0.017453292519943295 * this.im;
- this.Da()
- },
- SH: function() {
- this.ia !== this.pa && C.log(C.n.ina);
- return this.ia
- },
- Za: function(c, d) {
- this.ia = c;
- this.pa = d || 0 === d ? d: c;
- this.Da()
- },
- LP: A("ia"),
- gb: function(c) {
- this.ia = c;
- this.Da()
- },
- TH: A("pa"),
- pb: function(c) {
- this.pa = c;
- this.Da()
- },
- p: function(c, d) {
- var f = this.ma;
- d === m ? (f.x = c.x, f.y = c.y) : (f.x = c, f.y = d);
- this.Da()
- },
- Ld: function() {
- return C.d(this.ma)
- },
- Rc: function() {
- return this.ma.x
- },
- rs: function(c) {
- this.ma.x = c;
- this.Da()
- },
- Vd: function() {
- return this.ma.y
- },
- Uu: function(c) {
- this.ma.y = c;
- this.Da()
- },
- m0: function() {
- return this.l.length
- },
- le: A("l"),
- l1: A("Ja"),
- va: function(c) {
- this.Ja = c;
- this.Da()
- },
- dk: A("Ab"),
- S: function(c, d) {
- var f = this.Ab;
- if (d === m) {
- if (c.x === f.x && c.y === f.y) return;
- f.x = c.x;
- f.y = c.y
- } else {
- if (c === f.x && d === f.y) return;
- f.x = c;
- f.y = d
- }
- var g = this.Nb,
- h = this.o;
- g.x = h.width * f.x;
- g.y = h.height * f.y;
- this.Da()
- },
- EOa: A("Ab"),
- tba: function(c) {
- var d = c.x;
- c = c.y;
- this.Ab.x !== d && (this.Ab.x = d, this.Nb.x = this.o.width * d);
- this.Ab.y !== c && (this.Ab.y = c, this.Nb.y = this.o.height * c);
- this.Da()
- },
- L$: function() {
- return this.Ab.x
- },
- Re: function(c) {
- this.Ab.x !== c && (this.Ab.x = c, this.Nb.x = this.o.width * c, this.Da())
- },
- M$: function() {
- return this.Ab.y
- },
- Se: function(c) {
- this.Ab.y !== c && (this.Ab.y = c, this.Nb.y = this.o.height * c, this.Da())
- },
- Ep: A("Nb"),
- ef: function() {
- return this.o.width
- },
- Qh: function(c) {
- this.o.width = c;
- this.Nb.x = c * this.Ab.x;
- this.Da()
- },
- Dg: function() {
- return this.o.height
- },
- Ph: function(c) {
- this.o.height = c;
- this.Nb.y = c * this.Ab.y;
- this.Da()
- },
- i: A("o"),
- Ca: function(c, d) {
- var f = this.o;
- if (d === m) {
- if (c.width === f.width && c.height === f.height) return;
- f.width = c.width;
- f.height = c.height
- } else {
- if (c === f.width && d === f.height) return;
- f.width = c;
- f.height = d
- }
- var g = this.Nb,
- h = this.Ab;
- g.x = f.width * h.x;
- g.y = f.height * h.y;
- this.Da()
- },
- zDa: A("$c"),
- getParent: A("Vb"),
- cq: x("Vb"),
- uDa: A("nn"),
- Hm: function(c) {
- c != this.nn && (this.nn = c, this.Da())
- },
- Fm: A("tag"),
- Qm: x("tag"),
- Ze: function() {
- this.kd
- },
- getName: A("kd"),
- getUserData: A("userData"),
- setUserData: x("userData"),
- lCa: A("userObject"),
- xIa: function(c) {
- this.userObject != c && (this.userObject = c)
- },
- EVa: A("arrivalOrder"),
- Vha: x("arrivalOrder"),
- UB: function() {
- this.Pl || (this.Pl = C.Q.UB());
- return this.Pl
- },
- eha: function(c) {
- this.Pl != c && (this.yk(), this.Pl = c)
- },
- Em: function() {
- this.hh || (this.hh = C.Q.Em());
- return this.hh
- },
- nia: function(c) {
- this.hh != c && (this.FJ(), this.hh = c)
- },
- Ae: function() {
- var c = C.rect(0, 0, this.o.width, this.o.height);
- return C.Io(c, this.me())
- },
- ze: function() {
- this.yk();
- this.FJ();
- C.Ka.Tga(this);
- this.Jk(this.l, C.A.Gj.ze)
- },
- lj: function(c) {
- var d = this.l;
- if (d != s) for (var f = 0; f < d.length; f++) {
- var g = d[f];
- if (g && g.tag == c) return g
- }
- return s
- },
- Pda: function(c) {
- if (!c) return C.log("Invalid name"),
- s;
- for (var d = this.l,
- f = 0,
- g = d.length; f < g; f++) if (d[f].kd == c) return d[f];
- return s
- },
- q: function(c, d, f) {
- C.assert(c, C.n.fna);
- c === this ? C.log(C.n.dna) : c.Vb !== s ? C.log(C.n.ena) : (d = d != s ? d: c.Wa, c.tag = f != s ? f: c.tag, this.kta(c, d), c.Vb = this, this.Fq && (c.Fq = this.Fq), this.$c && (c.Z(), this.TM && c.qj()))
- },
- Lm: function(c) {
- this.Vb && (c == s && (c = q), this.Vb.removeChild(this, c))
- },
- vGa: function(c) {
- C.log(C.n.ona);
- this.Lm(c)
- },
- removeChild: function(c, d) {
- 0 !== this.l.length && (d == s && (d = q), -1 < this.l.indexOf(c) && this.Fra(c, d), this.Da())
- },
- $Q: function(c, d) {
- c === C.yK && C.log(C.n.mna);
- var f = this.lj(c);
- f == s ? C.log(C.n.nna, c) : this.removeChild(f, d)
- },
- Ku: function(c) {
- C.log(C.n.lna);
- this.xf(c)
- },
- xf: function(c) {
- var d = this.l;
- if (d != s) {
- c == s && (c = q);
- for (var f = 0; f < d.length; f++) {
- var g = d[f];
- g && (this.$c && (g.ph(), g.Na()), c && g.ze(), g.parent = s)
- }
- this.l.length = 0
- }
- },
- Fra: function(c, d) {
- this.$c && (c.ph(), c.Na());
- d && c.ze();
- c.parent = s;
- C.Id(this.l, c)
- },
- kta: function(c, d) {
- this.Oh = q;
- this.l.push(c);
- c.Ow(d)
- },
- OC: function(c, d) {
- C.assert(c, C.n.pna);
- this.Oh = q;
- c.arrivalOrder = C.kR;
- C.kR++;
- c.Ow(d);
- this.Da()
- },
- ed: function() {
- if (this.Oh) {
- var c = this.l,
- d = c.length,
- f, g, h;
- for (f = 1; f < d; f++) {
- h = c[f];
- for (g = f - 1; 0 <= g;) {
- if (h.Wa < c[g].Wa) c[g + 1] = c[g];
- else if (h.Wa === c[g].Wa && h.arrivalOrder < c[g].arrivalOrder) c[g + 1] = c[g];
- else break;
- g--
- }
- c[g + 1] = h
- }
- this.Oh = t
- }
- },
- ka: u(),
- CJ: function() {
- this.Vb != s && (this.Vb.CJ(), this.Vb.transform())
- },
- Z: function() {
- this.TM = t;
- this.$c = q;
- this.Jk(this.l, C.A.Gj.Z);
- this.nk()
- },
- qj: function() {
- this.TM = q;
- this.Jk(this.l, C.A.Gj.qj)
- },
- ph: function() {
- this.Jk(this.l, C.A.Gj.ph)
- },
- Na: function() {
- this.$c = t;
- this.pause();
- this.Jk(this.l, C.A.Gj.Na);
- this.Uo && this.Uo.mk()
- },
- Ya: function(c) {
- C.assert(c, C.n.rna);
- this.actionManager.mwa(c, this, !this.$c);
- return c
- },
- yk: function() {
- this.actionManager && this.actionManager.Pga(this)
- },
- yJ: function(c) {
- this.actionManager.Oga(c)
- },
- VIa: function(c) {
- c === C.Gy ? C.log(C.n.vna) : this.actionManager.nGa(c, this)
- },
- xP: function(c) {
- return c === C.Gy ? (C.log(C.n.gna), s) : this.actionManager.xP(c, this)
- },
- xVa: function() {
- return this.actionManager.wEa(this)
- },
- Lu: function() {
- this.cha(0)
- },
- cha: function(c) {
- this.scheduler.lR(this, c, !this.$c)
- },
- hD: function() {
- this.scheduler.GJ(this)
- },
- rg: function(c, d, f, g) {
- d = d || 0;
- C.assert(c, C.n.sna);
- C.assert(0 <= d, C.n.tna);
- f = f == s ? C.xv: f;
- this.scheduler.y2(this, c, d, f, g || 0, !this.$c)
- },
- S2a: function(c, d) {
- this.rg(c, 0, 0, d)
- },
- Zh: function(c) {
- c && this.scheduler.W3(this, c)
- },
- FJ: function() {
- this.scheduler.dja(this)
- },
- E2a: function() {
- C.log(C.n.qna);
- this.nk()
- },
- nk: function() {
- this.scheduler.Mm(this);
- this.actionManager && this.actionManager.Mm(this);
- C.Ka.Mm(this)
- },
- b1a: function() {
- C.log(C.n.kna);
- this.pause()
- },
- pause: function() {
- this.scheduler.hs(this);
- this.actionManager && this.actionManager.hs(this);
- C.Ka.hs(this)
- },
- UGa: function(c) {
- this.iz = c;
- this.yq = this.el = q
- },
- Y0a: function() {
- this.RM && (this.daa = C.iS(this.me()), this.RM = t);
- return this.daa
- },
- ql: function() {
- for (var c = this.me(), d = this.Vb; d != s; d = d.parent) c = C.Qg(c, d.me());
- return c
- },
- TJa: function() {
- return C.iS(this.ql())
- },
- wi: function(c) {
- return C.wv(c, this.TJa())
- },
- vm: function(c) {
- c = c || C.d(0, 0);
- return C.wv(c, this.ql())
- },
- Txa: function(c) {
- return C.cc(this.wi(c), this.Nb)
- },
- iRa: function(c) {
- c = c || C.d(0, 0);
- c = C.ho(c, this.Nb);
- return this.vm(c)
- },
- hOa: function(c) {
- c = this.vm(c);
- return C.Q.Uxa(c)
- },
- Bp: function(c) {
- return this.wi(c.mh())
- },
- jRa: function(c) {
- c = c.mh();
- c = C.Q.Sxa(c);
- return this.Txa(c)
- },
- update: function(c) {
- this.Uo && !this.Uo.gfa() && this.Uo.J(c)
- },
- $h: function() {
- this.Jk(this.l, C.A.Gj.$h)
- },
- fR: u(),
- rh: u(),
- Rda: function(c) {
- return this.Uo.Rda(c)
- },
- pu: function(c) {
- this.Uo.add(c)
- },
- e2a: function(c) {
- return this.Uo.remove(c)
- },
- R1a: function() {
- this.Uo.mk()
- },
- grid: s,
- ctor: s,
- J: s,
- transform: s,
- me: s,
- Fn: function() {
- if (this.Lk === t) {
- this.Lk = q;
- var c = this.Fq;
- c && c != this && c.Fn()
- }
- },
- zY: function(c) {
- if (this.Fq != c) {
- this.Fq = c;
- for (var d = this.l,
- f = 0,
- g = d.length; f < g; f++) d[f].zY(c)
- }
- },
- Ix: function() {
- this.Gq || (this.Gq = new C.FD);
- return this.Gq
- },
- NH: A("grid"),
- wHa: x("grid"),
- C0: A("pd"),
- mJ: x("pd"),
- BAa: A("WW"),
- vHa: x("WW"),
- fAa: function() {
- var c = C.rect(0, 0, this.o.width, this.o.height),
- d = this.ql(),
- c = C.Gi(c, this.ql());
- if (!this.l) return c;
- for (var f = this.l,
- g = 0; g < f.length; g++) {
- var h = f[g];
- h && h.Ja && (h = h.JF(d)) && (c = C.MC(c, h))
- }
- return c
- },
- JF: function(c) {
- var d = C.rect(0, 0, this.o.width, this.o.height);
- c = c == s ? this.me() : C.Qg(this.me(), c);
- d = C.Gi(d, c);
- if (!this.l) return d;
- for (var f = this.l,
- g = 0; g < f.length; g++) {
- var h = f[g];
- h && h.Ja && (h = h.JF(c)) && (d = C.MC(d, h))
- }
- return d
- },
- nN: function() {
- if (this.el) {
- var c = this.ma.x,
- d = this.ma.y,
- f = this.Nb.x,
- g = -f,
- h = this.Nb.y,
- k = -h,
- n = this.ia,
- p = this.pa;
- this.nn && (c += f, d += h);
- var r = 1,
- v = 0,
- y = 1,
- z = 0;
- if (0 !== this.Xi || 0 !== this.im) r = Math.cos( - this.Dn),
- v = Math.sin( - this.Dn),
- y = Math.cos( - this.Mw),
- z = Math.sin( - this.Mw);
- var D = this.ig || this.jg;
- if (!D && (0 !== f || 0 !== h)) c += y * g * n + -v * k * p,
- d += z * g * n + r * k * p;
- var E = this.Lf;
- E.a = y * n;
- E.b = z * n;
- E.H = -v * p;
- E.P = r * p;
- E.na = c;
- E.oa = d;
- if (D && (E = C.Qg({
- a: 1,
- b: Math.tan(C.ng(this.jg)),
- H: Math.tan(C.ng(this.ig)),
- P: 1,
- na: 0,
- oa: 0
- },
- E), 0 !== f || 0 !== h)) E = C.OJ(E, g, k);
- this.yq && (E = C.Qg(E, this.iz), this.yq = t);
- this.Lf = E;
- this.el = t
- }
- return this.Lf
- }
- });
- C.A.create = function() {
- return new C.A
- };
- C.A.Gj = {
- Z: 1,
- Na: 2,
- ze: 3,
- qj: 4,
- $h: 5,
- ph: 6,
- ed: 7
- };
- C.L === C.cb ? (H = C.A.prototype, H.ctor = function() {
- this.$W()
- },
- H.Da = function() {
- this.Fn();
- this.el === t && (this.el = this.RM = q)
- },
- H.J = function(c) {
- if (this.Ja) {
- c = c || C.t;
- var d, f = this.l,
- g;
- c.save();
- this.transform(c);
- var h = f.length;
- if (0 < h) {
- this.ed();
- for (d = 0; d < h; d++) if (g = f[d], 0 > g.Wa) g.J(c);
- else break;
- for (this.ka(c); d < h; d++) f[d].J(c)
- } else this.ka(c);
- this.Lk = t;
- this.arrivalOrder = 0;
- c.restore()
- }
- },
- H.transform = function(c) {
- c = c || C.t;
- var d = C.view,
- f = this.me();
- c.transform(f.a, f.H, f.b, f.P, f.na * d.ia, -f.oa * d.pa)
- },
- H.me = function() {
- if (this.el) {
- var c = this.Lf;
- c.na = this.ma.x;
- c.oa = this.ma.y;
- var d = 1,
- f = 0;
- this.Xi && (d = Math.cos(this.Dn), f = Math.sin(this.Dn));
- c.a = c.P = d;
- c.b = -f;
- c.H = f;
- var g = this.ia,
- h = this.pa,
- k = this.Nb.x,
- n = this.Nb.y,
- p = 1E-6 > g && -1E-6 < g ? 1E-6: g,
- r = 1E-6 > h && -1E-6 < h ? 1E-6: h;
- if (this.ig || this.jg) {
- var v = Math.tan( - this.ig * Math.PI / 180),
- y = Math.tan( - this.jg * Math.PI / 180);
- Infinity === v && (v = 99999999);
- Infinity === y && (y = 99999999);
- var z = n * v * p,
- D = k * y * r;
- c.a = d + -f * y;
- c.b = d * v + -f;
- c.H = f + d * y;
- c.P = f * v + d;
- c.na += d * z + -f * D;
- c.oa += f * z + d * D
- }
- if (1 !== g || 1 !== h) c.a *= p,
- c.H *= p,
- c.b *= r,
- c.P *= r;
- c.na += d * -k * p + -f * n * r;
- c.oa -= f * -k * p + d * n * r;
- this.nn && (c.na += k, c.oa += n);
- this.yq && (this.Lf = C.Qg(c, this.iz), this.yq = t);
- this.el = t
- }
- return this.Lf
- },
- H = s) : (C.assert("function" === typeof C.U.OU, C.n.Bf, "BaseNodesWebGL.js"), C.U.OU(), delete C.U.OU);
- C.assert("function" === typeof C.U.LT, C.n.Bf, "BaseNodesPropertyDefine.js");
- C.U.LT();
- delete C.U.LT;
- C.ha = C.A.extend({
- sb: q,
- hb: 255,
- Ig: 255,
- wb: s,
- od: s,
- Zf: t,
- Ag: t,
- ctor: function() {
- C.A.prototype.ctor.call(this);
- this.Ig = this.hb = 255;
- this.wb = C.color(255, 255, 255, 255);
- this.od = C.color(255, 255, 255, 255);
- this.Ag = this.Zf = t
- },
- Gd: u(),
- rb: A("Ig"),
- Tda: A("hb"),
- K: function(c) {
- this.hb = this.Ig = c;
- var d = 255,
- f = this.Vb;
- f && (f.sb && f.cascadeOpacity) && (d = f.hb);
- this.dc(d);
- this.wb.a = this.od.a = c
- },
- dc: function(c) {
- this.hb = this.Ig * c / 255;
- if (this.Ag) {
- c = this.l;
- for (var d = 0; d < c.length; d++) {
- var f = c[d];
- f && f.sb && f.dc(this.hb)
- }
- }
- },
- nI: A("Ag"),
- Qu: function(c) {
- this.Ag !== c && ((this.Ag = c) ? this.Sz() : this.dW())
- },
- Sz: function() {
- var c = 255,
- d = this.Vb;
- d && (d.sb && d.cascadeOpacity) && (c = d.hb);
- this.dc(c)
- },
- dW: function() {
- this.hb = this.Ig;
- for (var c = this.l,
- d = 0; d < c.length; d++) {
- var f = c[d];
- f && f.sb && f.dc(255)
- }
- },
- Xa: function() {
- var c = this.od;
- return C.color(c.r, c.g, c.b, c.a)
- },
- xu: function() {
- var c = this.wb;
- return C.color(c.r, c.g, c.b, c.a)
- },
- G: function(c) {
- var d = this.wb,
- f = this.od;
- d.r = f.r = c.r;
- d.g = f.g = c.g;
- d.b = f.b = c.b;
- d = (d = this.Vb) && d.sb && d.cascadeColor ? d.xu() : C.color.WHITE;
- this.Tb(d);
- c.a !== m && !c.jx && this.K(c.a)
- },
- Tb: function(c) {
- var d = this.wb,
- f = this.od;
- d.r = 0 | f.r * c.r / 255;
- d.g = 0 | f.g * c.g / 255;
- d.b = 0 | f.b * c.b / 255;
- if (this.Zf) {
- c = this.l;
- for (f = 0; f < c.length; f++) {
- var g = c[f];
- g && g.sb && g.Tb(d)
- }
- }
- },
- mI: A("Zf"),
- Pu: function(c) {
- this.Zf !== c && ((this.Zf = c) ? this.Rz() : this.cW())
- },
- Rz: function() {
- var c;
- c = (c = this.Vb) && c.sb && c.cascadeColor ? c.xu() : C.color.WHITE;
- this.Tb(c)
- },
- cW: function() {
- var c = this.wb,
- d = this.od;
- c.r = d.r;
- c.g = d.g;
- c.b = d.b;
- for (var c = this.l,
- d = C.color.WHITE,
- f = 0; f < c.length; f++) {
- var g = c[f];
- g && g.sb && g.Tb(d)
- }
- },
- q: function(c, d, f) {
- C.A.prototype.q.call(this, c, d, f);
- this.Zf && this.Rz();
- this.Ag && this.Sz()
- },
- $d: u(),
- qg: B(t)
- });
- C.ha.create = function() {
- var c = new C.ha;
- c.j();
- return c
- };
- C.assert("function" === typeof C.U.MT, C.n.Bf, "BaseNodesPropertyDefine.js");
- C.U.MT();
- delete C.U.MT;
- C.A.FMa = 0;
- C.A.HMa = 1;
- C.A.GMa = 2;
- C.A.IMa = 3;
- C.A.EMa = 4;
- C.gq = C.ha.extend({
- textureAtlas: s,
- quadsToDraw: 0,
- sb: q,
- uA: 0,
- oaa: 0,
- Tj: 0,
- Oi: 0,
- Mq: s,
- Fb: t,
- C: s,
- IM: t,
- qa: "AtlasNode",
- ctor: function(c, d, f, g) {
- C.ha.prototype.ctor.call(this);
- this.Mq = C.color.WHITE;
- this.C = {
- src: C.Ic,
- ga: C.Hc
- };
- this.IM = t;
- g !== m && this.ZCa(c, d, f, g)
- },
- iD: function() {
- C.log(C.n.Rja)
- },
- Xa: function() {
- return this.Fb ? this.Mq: C.ha.prototype.Xa.call(this)
- },
- $d: function(c) {
- var d = this.color;
- this.Fb = c;
- this.color = d
- },
- qg: A("Fb"),
- ek: A("C"),
- Yd: function(c, d) {
- this.C = d === m ? c: {
- src: c,
- ga: d
- }
- },
- p3: x("textureAtlas"),
- VH: A("textureAtlas"),
- hWa: A("quadsToDraw"),
- U4a: x("quadsToDraw"),
- eu: s,
- qi: s,
- pZ: s,
- lF: s,
- ZCa: function(c, d, f, g) {
- c || e("cc.AtlasNode.initWithTileFile(): title should not be null");
- c = C.kb.sd(c);
- return this.ta(c, d, f, g)
- },
- ta: s,
- aX: function(c, d, f, g) {
- this.Tj = d;
- this.Oi = f;
- this.Fb = q;
- this.qi = c;
- if (!this.qi) return C.log(C.n.n4),
- t;
- this.eu = this.qi;
- this.CL();
- this.quadsToDraw = g;
- return q
- },
- bX: function(c, d, f, g) {
- this.Tj = d;
- this.Oi = f;
- this.Mq = C.color.WHITE;
- this.Fb = q;
- this.C.src = C.Ic;
- this.C.ga = C.Hc;
- d = this.od;
- this.lF = new Float32Array([d.r / 255, d.g / 255, d.b / 255, this.Ig / 255]);
- this.textureAtlas = new C.uq;
- this.textureAtlas.ta(c, g);
- if (!this.textureAtlas) return C.log(C.n.n4),
- t;
- this.hl();
- this.eca();
- this.CL();
- this.quadsToDraw = g;
- this.shaderProgram = C.ug.Xd(C.LK);
- this.pZ = C.t.getUniformLocation(this.shaderProgram.Lx(), "u_color");
- return q
- },
- ka: s,
- gn: function(c) {
- c = c || C.t;
- C.BC(this);
- C.Gm(this.C.src, this.C.ga);
- this.pZ && this.lF && (c.uniform4fv(this.pZ, this.lF), this.textureAtlas.oda(this.quadsToDraw))
- },
- G: s,
- Tua: function(c) {
- var d = this.od;
- if (! (d.r == c.r && d.g == c.g && d.b == c.b)) {
- d = C.color(c.r, c.g, c.b);
- this.Mq = c;
- if (this.Fb) {
- var f = this.hb;
- d.r = d.r * f / 255;
- d.g = d.g * f / 255;
- d.b = d.b * f / 255
- }
- C.ha.prototype.G.call(this, c);
- if (this.texture && (c = this.qi.jd)) if (d = C.kb.OP(c)) f = C.rect(0, 0, c.width, c.height),
- c = C.TB(c, d, this.od, f),
- d = new C.Ma,
- d.Ng(c),
- d.Md(),
- this.texture = d
- }
- },
- Uua: function(c) {
- var d = C.color(c.r, c.g, c.b);
- this.Mq = c;
- var f = this.hb;
- this.Fb && (d.r = d.r * f / 255, d.g = d.g * f / 255, d.b = d.b * f / 255);
- C.ha.prototype.G.call(this, c);
- c = this.wb;
- this.lF = new Float32Array([c.r / 255, c.g / 255, c.b / 255, f / 255])
- },
- K: u(),
- FY: function(c) {
- C.ha.prototype.K.call(this, c);
- this.Fb && (this.color = this.Mq)
- },
- GY: function(c) {
- C.ha.prototype.K.call(this, c);
- this.Fb ? this.color = this.Mq: (c = this.wb, this.lF = new Float32Array([c.r / 255, c.g / 255, c.b / 255, this.hb / 255]))
- },
- ob: s,
- MF: A("eu"),
- UW: function() {
- return this.textureAtlas.texture
- },
- Va: s,
- KY: x("eu"),
- LY: function(c) {
- this.textureAtlas.texture = c;
- this.hl();
- this.eca()
- },
- CL: s,
- gra: function() {
- var c = this.texture.i();
- this.oaa = 0 | c.height / this.Oi;
- this.uA = 0 | c.width / this.Tj
- },
- hra: function() {
- var c = this.texture,
- d = c.i();
- this.IM && (d = c.o);
- this.oaa = 0 | d.height / this.Oi;
- this.uA = 0 | d.width / this.Tj
- },
- hl: function() {
- this.textureAtlas.texture.Hp() || (this.C.src = C.SRC_ALPHA, this.C.ga = C.ONE_MINUS_SRC_ALPHA)
- },
- eca: function() {
- this.Fb = this.textureAtlas.texture.Hp()
- },
- CY: x("IM")
- });
- H = C.gq.prototype;
- C.L === C.la ? (H.ta = H.bX, H.ka = H.gn, H.G = H.Uua, H.K = H.GY, H.ob = H.UW, H.Va = H.LY, H.CL = H.hra) : (H.ta = H.aX, H.ka = C.A.prototype.ka, H.G = H.Tua, H.K = H.FY, H.ob = H.MF, H.Va = H.KY, H.CL = H.gra);
- C.e(H, "opacity", H.rb, H.K);
- C.e(H, "color", H.Xa, H.G);
- C.e(H, "texture", H.ob, H.Va);
- C.gq.create = function(c, d, f, g) {
- return new C.gq(c, d, f, g)
- };
- C.U.UU = function() {
- C.Ma = C.O.extend({
- mPa: q,
- ip: s,
- mr: 0,
- lr: 0,
- kd: "",
- o: s,
- Sp: 0,
- Tp: 0,
- HM: t,
- jA: t,
- shaderProgram: s,
- de: t,
- jd: s,
- Sh: s,
- url: s,
- ac: s,
- ctor: function() {
- this.o = C.size(0, 0);
- this.ip = C.Ma.hda
- },
- n2: function() {
- this.Sh && C.t.deleteTexture(this.Sh);
- C.M.rh(this.url)
- },
- kea: A("ip"),
- w0: A("mr"),
- v0: A("lr"),
- getName: A("Sh"),
- i: function() {
- return C.size(this.o.width / C.Ec(), this.o.height / C.Ec())
- },
- ef: function() {
- return this.o.width / C.Ec()
- },
- Dg: function() {
- return this.o.height / C.Ec()
- },
- mAa: A("o"),
- bBa: A("Sp"),
- HHa: x("Sp"),
- cBa: A("Tp"),
- IHa: x("Tp"),
- C0: A("shaderProgram"),
- mJ: x("shaderProgram"),
- Hp: A("HM"),
- ACa: A("jA"),
- description: function() {
- return "\x3ccc.Texture2D | Name \x3d " + this.kd + " | Dimensions \x3d " + this.mr + " x " + this.lr + " | Coordinates \x3d (" + this.Sp + ", " + this.Tp + ")\x3e"
- },
- lGa: u(),
- IDa: da(),
- Au: function(c, d, f, g, h) {
- var k = C.Ma,
- n = C.t,
- p = n.RGBA,
- r = n.UNSIGNED_BYTE,
- v = f * C.Ma.P8[d] / 8;
- 0 === v % 8 ? n.pixelStorei(n.UNPACK_ALIGNMENT, 8) : 0 === v % 4 ? n.pixelStorei(n.UNPACK_ALIGNMENT, 4) : 0 === v % 2 ? n.pixelStorei(n.UNPACK_ALIGNMENT, 2) : n.pixelStorei(n.UNPACK_ALIGNMENT, 1);
- this.Sh = n.createTexture();
- C.yi(this);
- n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MIN_FILTER, n.LINEAR);
- n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MAG_FILTER, n.LINEAR);
- n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_S, n.CLAMP_TO_EDGE);
- n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_T, n.CLAMP_TO_EDGE);
- switch (d) {
- case k.qq:
- p = n.RGBA;
- break;
- case k.rE:
- p = n.RGB;
- break;
- case k.AK:
- r = n.UNSIGNED_SHORT_4_4_4_4;
- break;
- case k.zK:
- r = n.UNSIGNED_SHORT_5_5_5_1;
- break;
- case k.qE:
- r = n.UNSIGNED_SHORT_5_6_5;
- break;
- case k.ET:
- p = n.LUMINANCE_ALPHA;
- break;
- case k.pE:
- p = n.ALPHA;
- break;
- case k.FT:
- p = n.LUMINANCE;
- break;
- default:
- C.assert(0, C.n.Epa)
- }
- n.texImage2D(n.TEXTURE_2D, 0, p, f, g, 0, p, r, c);
- this.o.width = h.width;
- this.o.height = h.height;
- this.mr = f;
- this.lr = g;
- this.ip = d;
- this.Sp = h.width / f;
- this.Tp = h.height / g;
- this.jA = this.HM = t;
- this.shaderProgram = C.ug.Xd(C.yE);
- return this.de = q
- },
- Kya: function(c) {
- var d = [0, this.Tp, this.Sp, this.Tp, 0, 0, this.Sp, 0],
- f = this.mr * this.Sp,
- g = this.lr * this.Tp;
- c = [c.x, c.y, 0, f + c.x, c.y, 0, c.x, g + c.y, 0, f + c.x, g + c.y, 0];
- C.rf(C.Ch | C.fz);
- this.pd.Af();
- this.pd.uJ();
- C.yi(this);
- f = C.t;
- f.vertexAttribPointer(C.Lc, 2, f.FLOAT, t, 0, c);
- f.vertexAttribPointer(C.Vg, 2, f.FLOAT, t, 0, d);
- f.drawArrays(f.TRIANGLE_STRIP, 0, 4)
- },
- Nya: function(c) {
- var d = [0, this.Tp, this.Sp, this.Tp, 0, 0, this.Sp, 0];
- c = [c.x, c.y, c.x + c.width, c.y, c.x, c.y + c.height, c.x + c.width, c.y + c.height];
- C.rf(C.Ch | C.fz);
- this.pd.Af();
- this.pd.uJ();
- C.yi(this);
- var f = C.t;
- f.vertexAttribPointer(C.Lc, 2, f.FLOAT, t, 0, c);
- f.vertexAttribPointer(C.Vg, 2, f.FLOAT, t, 0, d);
- f.drawArrays(f.TRIANGLE_STRIP, 0, 4)
- },
- Zea: function(c) {
- if (c == s) return C.log(C.n.Hpa),
- t;
- var d = c.tCa(),
- f = c.DAa(),
- g = C.FB.bG;
- if (d > g || f > g) return C.log(C.n.Ipa, d, f, g, g),
- t;
- this.de = q;
- return this.dta(c, d, f)
- },
- Ng: function(c) {
- c && (this.Sh = C.t.createTexture(), this.jd = c)
- },
- FAa: A("jd"),
- vDa: A("de"),
- Md: function() {
- if (C.NN) {
- if (!this.jd) {
- var c = C.M.xd(this.url);
- if (!c) return;
- this.Ng(c)
- }
- this.jd.width && this.jd.height && (this.de = q, c = C.t, C.yi(this), c.pixelStorei(c.UNPACK_ALIGNMENT, 4), c.texImage2D(c.TEXTURE_2D, 0, c.RGBA, c.RGBA, c.UNSIGNED_BYTE, this.jd), 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 = C.ug.Xd(C.yE), C.yi(s), c = this.jd.height, this.mr = this.o.width = this.jd.width, this.lr = this.o.height = c, this.ip = C.Ma.qq, this.Tp = this.Sp = 1, this.jA = this.HM = t, this.cf())
- }
- },
- sf: function() {
- C.log(C.n.Npa);
- return s
- },
- QCa: function() {
- C.log(C.n.Gpa);
- return t
- },
- UCa: function() {
- C.log(C.n.Kpa);
- return t
- },
- VCa: function() {
- C.log(C.n.Mpa);
- return t
- },
- qIa: function(c) {
- var d = C.t;
- C.assert(this.mr == C.Cs(this.mr) && this.lr == C.Cs(this.lr) || c.UJa == d.CLAMP_TO_EDGE && c.VJa == d.CLAMP_TO_EDGE, "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures");
- C.yi(this);
- d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MIN_FILTER, c.Qfa);
- d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MAG_FILTER, c.Nfa);
- d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_S, c.UJa);
- d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_T, c.VJa)
- },
- $Ga: function() {
- var c = C.t;
- C.yi(this);
- this.jA ? c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR_MIPMAP_NEAREST) : c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR);
- c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.NEAREST)
- },
- B2: function() {
- var c = C.t;
- C.yi(this);
- this.jA ? c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.NEAREST_MIPMAP_NEAREST) : c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.NEAREST);
- c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.NEAREST)
- },
- generateMipmap: function() {
- C.assert(this.mr == C.Cs(this.mr) && this.lr == C.Cs(this.lr), "Mimpap texture only works in POT textures");
- C.yi(this);
- C.t.generateMipmap(C.t.TEXTURE_2D);
- this.jA = q
- },
- $Ia: function() {
- return C.Ma.zqa[this.ip]
- },
- oxa: function(c) {
- c = c || this.ip;
- var d = C.Ma.P8[c];
- if (d != s) return d;
- C.log(C.n.Dpa, c);
- return - 1
- },
- dta: function(c, d, f) {
- var g = C.Ma,
- h = c.getData(),
- k = s,
- k = s,
- n = c.GXa(),
- p = C.size(c.tCa(), c.DAa()),
- r = g.hda,
- v = c.eTa();
- n || (8 <= v ? r = g.rE: (C.log(C.n.Apa), r = g.qE));
- var y = d * f;
- if (r == g.qE) if (n) {
- h = new Uint16Array(d * f);
- k = c.getData();
- for (v = 0; v < y; ++v) h[v] = (k[v] >> 0 & 255) >> 3 << 11 | (k[v] >> 8 & 255) >> 2 << 5 | (k[v] >> 16 & 255) >> 3 << 0
- } else {
- h = new Uint16Array(d * f);
- k = c.getData();
- for (v = 0; v < y; ++v) h[v] = (k[v] & 255) >> 3 << 11 | (k[v] & 255) >> 2 << 5 | (k[v] & 255) >> 3 << 0
- } else if (r == g.AK) {
- h = new Uint16Array(d * f);
- k = c.getData();
- for (v = 0; v < y; ++v) h[v] = (k[v] >> 0 & 255) >> 4 << 12 | (k[v] >> 8 & 255) >> 4 << 8 | (k[v] >> 16 & 255) >> 4 << 4 | (k[v] >> 24 & 255) >> 4 << 0
- } else if (r == g.zK) {
- h = new Uint16Array(d * f);
- k = c.getData();
- for (v = 0; v < y; ++v) h[v] = (k[v] >> 0 & 255) >> 3 << 11 | (k[v] >> 8 & 255) >> 3 << 6 | (k[v] >> 16 & 255) >> 3 << 1 | (k[v] >> 24 & 255) >> 7 << 0
- } else if (r == g.pE) {
- h = new Uint8Array(d * f);
- k = c.getData();
- for (v = 0; v < y; ++v) h[v] = k >> 24 & 255
- }
- if (n && r == g.rE) {
- k = c.getData();
- h = new Uint8Array(3 * d * f);
- for (v = 0; v < y; ++v) h[3 * v] = k >> 0 & 255,
- h[3 * v + 1] = k >> 8 & 255,
- h[3 * v + 2] = k >> 16 & 255
- }
- this.Au(h, r, d, f, p);
- c.getData();
- this.HM = c.EYa();
- return q
- },
- ye: function(c, d) {
- this.ac || (this.ac = []);
- this.ac.push({
- jl: c,
- jj: d
- })
- },
- wGa: function(c) {
- if (this.ac) for (var d = this.ac,
- f = 0; f < d.length; f++) d[f].jj == c && d.splice(f, 1)
- },
- cf: function() {
- if (this.ac) {
- for (var c = this.ac,
- d = 0,
- f = c.length; d < f; d++) {
- var g = c[d];
- g.jl.call(g.jj, this)
- }
- c.length = 0
- }
- }
- })
- };
- C.U.VU = function() {
- var c = C.uq.prototype;
- c.Pw = function() {
- var c = C.t;
- this.Me[0] = c.createBuffer();
- this.Me[1] = c.createBuffer();
- this.Hw = c.createBuffer();
- this.cN()
- };
- c.cN = function() {
- var c = C.t;
- c.bindBuffer(c.ARRAY_BUFFER, this.Hw);
- c.bufferData(c.ARRAY_BUFFER, this.eg, c.DYNAMIC_DRAW);
- c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Me[1]);
- c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Qb, c.STATIC_DRAW)
- };
- c.oda = function(c) {
- var f;
- f = 0;
- if (! (0 === c || !this.texture || !this.texture.de)) {
- var g = C.t;
- C.yi(this.texture);
- C.rf(C.Dv);
- g.bindBuffer(g.ARRAY_BUFFER, this.Hw);
- this.dirty && g.bufferData(g.ARRAY_BUFFER, this.eg, g.DYNAMIC_DRAW);
- g.vertexAttribPointer(C.Lc, 3, g.FLOAT, t, 24, 0);
- g.vertexAttribPointer(C.Hi, 4, g.UNSIGNED_BYTE, q, 24, 12);
- g.vertexAttribPointer(C.Vg, 2, g.FLOAT, t, 24, 16);
- this.dirty && (this.dirty = t);
- g.bindBuffer(g.ELEMENT_ARRAY_BUFFER, this.Me[1]);
- C.N7 ? g.drawElements(g.TRIANGLE_STRIP, 6 * c, g.UNSIGNED_SHORT, 6 * f * this.Qb.BYTES_PER_ELEMENT) : g.drawElements(g.TRIANGLES, 6 * c, g.UNSIGNED_SHORT, 6 * f * this.Qb.BYTES_PER_ELEMENT);
- C.kl++
- }
- }
- };
- C.U.WU = function() {
- var c = C.kb;
- c.Md = function(c) {
- var f = this.pf;
- C.NN || (f = this.aG);
- var g = f[c];
- g || (g = f[c] = new C.Ma, g.url = c);
- g.Md()
- };
- c.sd = function(c, f, g) {
- C.assert(c, C.n.Cpa);
- var h = this.pf;
- C.NN || (h = this.aG);
- var k = h[c] || h[C.M.Hv[c]];
- if (k) return f && f.call(g),
- k;
- C.M.xd(c) || (C.M.u9(c) ? C.M.load(c,
- function() {
- f && f.call(g)
- }) : C.M.fj[c] = C.M.wI(c,
- function(g, h) {
- if (g) return f ? f(g) : g;
- C.kb.Md(c);
- f && f(s, h)
- }));
- k = h[c] = new C.Ma;
- k.url = c;
- return k
- };
- delete c
- };
- C.U.TT = function() {
- var c = C.Ma;
- c.SMa = function(c) {
- C.Qna = c
- };
- c.qq = 2;
- c.rE = 3;
- c.qE = 4;
- c.pE = 5;
- c.FT = 6;
- c.ET = 7;
- c.AK = 8;
- c.zK = 7;
- c.X6 = 9;
- c.W6 = 10;
- c.Fna = c.qq;
- var d = C.Ma.zqa = {};
- d[c.qq] = "RGBA8888";
- d[c.rE] = "RGB888";
- d[c.qE] = "RGB565";
- d[c.pE] = "A8";
- d[c.FT] = "I8";
- d[c.ET] = "AI88";
- d[c.AK] = "RGBA4444";
- d[c.zK] = "RGB5A1";
- d[c.X6] = "PVRTC4";
- d[c.W6] = "PVRTC2";
- d = C.Ma.P8 = {};
- d[c.qq] = 32;
- d[c.rE] = 24;
- d[c.qE] = 16;
- d[c.pE] = 8;
- d[c.FT] = 8;
- d[c.ET] = 16;
- d[c.AK] = 16;
- d[c.zK] = 16;
- d[c.X6] = 4;
- d[c.W6] = 3;
- d = C.Ma.prototype;
- C.e(d, "name", d.getName);
- C.e(d, "pixelFormat", d.kea);
- C.e(d, "pixelsWidth", d.w0);
- C.e(d, "pixelsHeight", d.v0);
- C.e(d, "width", d.ef);
- C.e(d, "height", d.Dg);
- c.hda = c.Fna
- };
- C.U.UT = function() {
- var c = C.uq.prototype;
- C.e(c, "totalQuads", c.Eea);
- C.e(c, "capacity", c.Nda);
- C.e(c, "quads", c.lea, c.iia)
- };
- C.bKa = 51;
- C.eKa = 19;
- C.gKa = 18;
- C.dKa = 50;
- C.aKa = 34;
- C.ZJa = 35;
- C.$Ja = 33;
- C.cKa = 49;
- C.fKa = 17;
- C.Qna = t;
- C.L === C.cb ? C.Ma = C.O.extend({
- o: s,
- de: t,
- jd: s,
- ac: s,
- url: s,
- ctor: function() {
- this.o = C.size(0, 0);
- this.de = t;
- this.jd = s
- },
- w0: function() {
- return this.o.width
- },
- v0: function() {
- return this.o.height
- },
- i: function() {
- var c = C.Ec();
- return C.size(this.o.width / c, this.o.height / c)
- },
- ef: function() {
- return this.o.width / C.Ec()
- },
- Dg: function() {
- return this.o.height / C.Ec()
- },
- mAa: A("o"),
- Ng: function(c) {
- c && (this.jd = c)
- },
- FAa: A("jd"),
- vDa: A("de"),
- Md: function() {
- if (!this.de) {
- if (!this.jd) {
- var c = C.M.xd(this.url);
- if (!c) return;
- this.Ng(c)
- }
- this.de = q;
- c = this.jd;
- this.o.width = c.width;
- this.o.height = c.height;
- this.cf()
- }
- },
- description: function() {
- return "\x3ccc.Texture2D | width \x3d " + this.o.width + " height " + this.o.height + "\x3e"
- },
- Au: B(t),
- Zea: B(t),
- sf: B(t),
- n2: u(),
- getName: B(s),
- bBa: B(1),
- HHa: u(),
- cBa: B(1),
- IHa: u(),
- kea: B(s),
- C0: B(s),
- mJ: u(),
- Hp: B(t),
- ACa: B(t),
- lGa: u(),
- IDa: da(),
- Kya: u(),
- Nya: u(),
- QCa: function() {
- C.log(C.n.Fpa);
- return t
- },
- UCa: function() {
- C.log(C.n.Jpa);
- return t
- },
- VCa: function() {
- C.log(C.n.Lpa);
- return t
- },
- qIa: u(),
- $Ga: u(),
- B2: u(),
- generateMipmap: u(),
- $Ia: B(""),
- oxa: B( - 1),
- ye: function(c, d) {
- this.ac || (this.ac = []);
- this.ac.push({
- jl: c,
- jj: d
- })
- },
- wGa: function(c) {
- if (this.ac) for (var d = this.ac,
- f = 0; f < d.length; f++) d[f].jj == c && d.splice(f, 1)
- },
- cf: function() {
- if (this.ac) {
- for (var c = this.ac,
- d = 0,
- f = c.length; d < f; d++) {
- var g = c[d];
- g.jl.call(g.jj, this)
- }
- c.length = 0
- }
- }
- }) : (C.assert("function" === typeof C.U.UU, C.n.Bf, "TexturesWebGL.js"), C.U.UU(), delete C.U.UU);
- C.assert("function" === typeof C.U.TT, C.n.Bf, "TexturesPropertyDefine.js");
- C.U.TT();
- delete C.U.TT;
- C.kb = {
- pf: {},
- UG: {},
- kZ: 0 | 1E3 * Math.random(),
- aG: {},
- jta: function() {
- var c, d = this.aG,
- f = this.pf;
- for (c in d) {
- var g = d[c];
- g.Md();
- f[c] = g
- }
- this.aG = {}
- },
- eQa: function() {
- C.log(C.n.fJa)
- },
- TPa: function() {
- C.log(C.n.dJa)
- },
- description: function() {
- return "\x3cTextureCache | Number of textures \x3d " + this.pf.length + "\x3e"
- },
- av: function(c) {
- return this.pf[c] || this.pf[C.M.Hv[c]]
- },
- PAa: function(c) {
- for (var d in this.pf) if (this.pf[d] == c) return d;
- return s
- },
- dsa: function() {
- this.kZ++;
- return "_textureKey_" + this.kZ
- },
- OP: function(c) {
- var d = this.PAa(c);
- d || (d = c instanceof HTMLImageElement ? c.src: this.dsa());
- this.UG[d] || (this.UG[d] = C.SB(c));
- return this.UG[d]
- },
- dQa: function() {
- C.log(C.n.eJa)
- },
- X1a: function() {
- var c = this.pf,
- d;
- for (d in c) c[d] && c[d].n2();
- this.pf = {}
- },
- t2a: function(c) {
- if (c) {
- var d = this.pf,
- f;
- for (f in d) d[f] == c && (d[f].n2(), delete d[f])
- }
- },
- u2a: function(c) {
- c != s && this.pf[c] && delete this.pf[c]
- },
- wxa: function(c, d) {
- if (d instanceof C.Ma) this.pf[c] = d;
- else {
- var f = new C.Ma;
- f.Ng(d);
- f.Md();
- this.pf[c] = f
- }
- },
- jQa: function(c, d) {
- C.assert(c, C.n.hJa);
- if (d && this.pf[d]) return this.pf[d];
- var f = new C.Ma;
- f.Zea(c);
- d != s && f != s ? this.pf[d] = f: C.log(C.n.gJa);
- return f
- },
- QRa: function() {
- var c = 0,
- d = 0,
- f = this.pf,
- g;
- for (g in f) {
- var h = f[g];
- c++;
- h.jd instanceof HTMLImageElement ? C.log(C.n.iJa, g, h.jd.src, h.pixelsWidth, h.pixelsHeight) : C.log(C.n.Wia, g, h.pixelsWidth, h.pixelsHeight);
- d += 4 * h.pixelsWidth * h.pixelsHeight
- }
- f = this.UG;
- for (g in f) {
- var h = f[g],
- k;
- for (k in h) {
- var n = h[k];
- c++;
- C.log(C.n.Wia, g, n.width, n.height);
- d += 4 * n.width * n.height
- }
- }
- C.log(C.n.jJa, c, d / 1024, (d / 1048576).toFixed(2))
- },
- dt: function() {
- this.pf = {};
- this.UG = {};
- this.kZ = 0 | 1E3 * Math.random();
- this.aG = {}
- }
- };
- C.L === C.cb ? (H = C.kb, H.Md = function(c) {
- var d = this.pf,
- f = d[c];
- f || (f = d[c] = new C.Ma, f.url = c);
- f.Md()
- },
- H.sd = function(c, d, f) {
- C.assert(c, C.n.Bpa);
- var g = this.pf,
- h = g[c] || g[C.M.Hv[c]];
- if (h) return d && d.call(f),
- h;
- h = g[c] = new C.Ma;
- h.url = c;
- C.M.xd(c) ? h.Md() : C.M.u9(c) ? C.M.load(c,
- function() {
- d && d.call(f)
- }) : C.M.fj[c] = C.M.wI(c,
- function(f, g) {
- if (f) return d ? d(f) : f;
- C.kb.Md(c);
- d && d(s, g)
- });
- return h
- },
- H = s) : (C.assert("function" === typeof C.U.WU, C.n.Bf, "TexturesWebGL.js"), C.U.WU(), delete C.U.WU);
- C.uq = C.O.extend({
- dirty: t,
- texture: s,
- Qb: s,
- Me: s,
- Yf: 0,
- hf: s,
- eg: s,
- Hw: s,
- $k: s,
- ctor: function(c, d) {
- this.Me = [];
- "string" == typeof c ? this.Ce(c, d) : c instanceof C.Ma && this.ta(c, d)
- },
- Eea: A("Sb"),
- Nda: A("Yf"),
- ob: A("texture"),
- Va: x("texture"),
- xha: x("dirty"),
- h1: A("dirty"),
- lea: A("hf"),
- iia: x("hf"),
- zra: function(c, d) {
- if (c) for (var f = 0; f < c.length; f++) this.ZN(c[f], d + f)
- },
- ZN: function(c, d) {
- var f = this.hf;
- f[d] ? (f[d].T = c.T, f[d].Y = c.Y, f[d].X = c.X, f[d].V = c.V) : f[d] = new C.Uc(c.X, c.T, c.V, c.Y, this.eg, d * C.Uc.BYTES_PER_ELEMENT)
- },
- description: function() {
- return "\x3ccc.TextureAtlas | totalQuads \x3d" + this.Sb + "\x3e"
- },
- Aba: function() {
- if (0 !== this.Yf) for (var c = this.Qb,
- d = this.Yf,
- f = 0; f < d; f++) C.N7 ? (c[6 * f + 0] = 4 * f + 0, c[6 * f + 1] = 4 * f + 0, c[6 * f + 2] = 4 * f + 2, c[6 * f + 3] = 4 * f + 1, c[6 * f + 4] = 4 * f + 3, c[6 * f + 5] = 4 * f + 3) : (c[6 * f + 0] = 4 * f + 0, c[6 * f + 1] = 4 * f + 1, c[6 * f + 2] = 4 * f + 2, c[6 * f + 3] = 4 * f + 3, c[6 * f + 4] = 4 * f + 2, c[6 * f + 5] = 4 * f + 1)
- },
- Pw: function() {
- var c = C.t;
- this.Me[0] = c.createBuffer();
- this.Me[1] = c.createBuffer();
- this.Hw = c.createBuffer();
- this.cN()
- },
- cN: function() {
- var c = C.t;
- c.bindBuffer(c.ARRAY_BUFFER, this.Hw);
- c.bufferData(c.ARRAY_BUFFER, this.eg, c.DYNAMIC_DRAW);
- c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Me[1]);
- c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Qb, c.STATIC_DRAW)
- },
- Ce: function(c, d) {
- var f = C.kb.sd(c);
- if (f) return this.ta(f, d);
- C.log(C.n.Opa, c);
- return t
- },
- ta: function(c, d) {
- C.assert(c, C.n.Ppa);
- this.Yf = d |= 0;
- this.Sb = 0;
- this.texture = c;
- this.hf = [];
- this.Qb = new Uint16Array(6 * d);
- var f = C.Uc.BYTES_PER_ELEMENT;
- this.eg = new ArrayBuffer(f * d);
- this.$k = new Uint8Array(this.eg);
- if ((!this.hf || !this.Qb) && 0 < d) return t;
- for (var g = this.hf,
- h = 0; h < d; h++) g[h] = new C.Uc(s, s, s, s, this.eg, h * f);
- this.Aba();
- this.Pw();
- return this.dirty = q
- },
- HJ: function(c, d) {
- C.assert(c, C.n.Zpa);
- C.assert(0 <= d && d < this.Yf, C.n.$pa);
- this.Sb = Math.max(d + 1, this.Sb);
- this.ZN(c, d);
- this.dirty = q
- },
- e1: function(c, d) {
- C.assert(d < this.Yf, C.n.Spa);
- this.Sb++;
- if (this.Sb > this.Yf) C.log(C.n.Z7);
- else {
- var f = C.Uc.BYTES_PER_ELEMENT,
- g = d * f,
- h = (this.Sb - 1 - d) * f;
- this.hf[this.Sb - 1] = new C.Uc(s, s, s, s, this.eg, (this.Sb - 1) * f);
- this.$k.set(this.$k.subarray(g, g + h), g + f);
- this.ZN(c, d);
- this.dirty = q
- }
- },
- ZXa: function(c, d, f) {
- f = f || c.length;
- C.assert(d + f <= this.Yf, C.n.Tpa);
- var g = C.Uc.BYTES_PER_ELEMENT;
- this.Sb += f;
- if (this.Sb > this.Yf) C.log(C.n.Z7);
- else {
- var h = d * g,
- k = (this.Sb - 1 - d - f) * g,
- n = this.Sb - 1 - f,
- p;
- for (p = 0; p < f; p++) this.hf[n + p] = new C.Uc(s, s, s, s, this.eg, (this.Sb - 1) * g);
- this.$k.set(this.$k.subarray(h, h + k), h + g * f);
- for (p = 0; p < f; p++) this.ZN(c[p], d + p);
- this.dirty = q
- }
- },
- YXa: function(c, d) {
- if (c !== d) {
- C.assert(0 <= d || d < this.Sb, C.n.Qpa);
- C.assert(0 <= c || c < this.Sb, C.n.Rpa);
- var f = C.Uc.BYTES_PER_ELEMENT,
- g = this.$k,
- h = g.subarray(c * f, f),
- k;
- c > d ? (k = d * f, g.set(g.subarray(k, k + (c - d) * f), k + f), g.set(h, k)) : (k = (c + 1) * f, g.set(g.subarray(k, k + (d - c) * f), k - f), g.set(h, d * f));
- this.dirty = q
- }
- },
- Vga: function(c) {
- C.assert(c < this.Sb, C.n.Xpa);
- var d = C.Uc.BYTES_PER_ELEMENT;
- this.Sb--;
- this.hf.length = this.Sb;
- if (c !== this.Sb) {
- var f = (c + 1) * d;
- this.$k.set(this.$k.subarray(f, f + (this.Sb - c) * d), f - d)
- }
- this.dirty = q
- },
- yGa: function(c, d) {
- C.assert(c + d <= this.Sb, C.n.Ypa);
- this.Sb -= d;
- if (c !== this.Sb) {
- var f = C.Uc.BYTES_PER_ELEMENT,
- g = (c + d) * f;
- this.$k.set(this.$k.subarray(g, g + (this.Sb - c) * f), c * f)
- }
- this.dirty = q
- },
- NC: function() {
- this.Sb = this.hf.length = 0
- },
- Vt: x("dirty"),
- eR: function(c) {
- if (c == this.Yf) return q;
- var d = C.Uc.BYTES_PER_ELEMENT,
- f = this.Yf;
- this.Sb = Math.min(this.Sb, c);
- var g = this.Yf = 0 | c,
- h = this.Sb;
- if (this.hf == s) {
- this.hf = [];
- this.eg = new ArrayBuffer(d * g);
- this.$k = new Uint8Array(this.eg);
- for (c = 0; c < g; c++) this.hf = new C.Uc(s, s, s, s, this.eg, c * d)
- } else {
- var k, n, p = this.hf;
- if (g > f) {
- k = [];
- n = new ArrayBuffer(d * g);
- for (c = 0; c < h; c++) k[c] = new C.Uc(p[c].X, p[c].T, p[c].V, p[c].Y, n, c * d);
- for (; c < g; c++) k[c] = new C.Uc(s, s, s, s, n, c * d)
- } else {
- h = Math.max(h, g);
- k = [];
- n = new ArrayBuffer(d * g);
- for (c = 0; c < h; c++) k[c] = new C.Uc(p[c].X, p[c].T, p[c].V, p[c].Y, n, c * d)
- }
- this.$k = new Uint8Array(n);
- this.hf = k;
- this.eg = n
- }
- this.Qb == s ? this.Qb = new Uint16Array(6 * g) : g > f ? (d = new Uint16Array(6 * g), d.set(this.Qb, 0), this.Qb = d) : this.Qb = this.Qb.subarray(0, 6 * g);
- this.Aba();
- this.cN();
- return this.dirty = q
- },
- Pea: function(c) {
- this.Sb += c
- },
- Sfa: function(c, d, f) {
- if (f === m) {
- if (f = d, d = this.Sb - c, C.assert(f + (this.Sb - c) <= this.Yf, C.n.Upa), 0 === d) return
- } else if (C.assert(f + d <= this.Sb, C.n.Vpa), C.assert(c < this.Sb, C.n.Wpa), c == f) return;
- var g = C.Uc.BYTES_PER_ELEMENT,
- h = c * g,
- k = d * g,
- n = this.$k,
- p = n.subarray(h, h + k),
- r = f * g;
- f < c ? (d = f * g, n.set(n.subarray(d, d + (c - f) * g), d + k)) : (d = (c + d) * g, n.set(n.subarray(d, d + (f - c) * g), h));
- n.set(p, r);
- this.dirty = q
- },
- wda: function(c, d) {
- for (var f = d * C.Uc.BYTES_PER_ELEMENT,
- g = new Uint8Array(this.eg, c * C.Uc.BYTES_PER_ELEMENT, f), h = 0; h < f; h++) g[h] = 0
- },
- KB: function() {
- this.oda(this.Sb)
- },
- pPa: function() {
- var c = C.t;
- this.Me && (this.Me[0] && c.deleteBuffer(this.Me[0]), this.Me[1] && c.deleteBuffer(this.Me[1]));
- this.Hw && c.deleteBuffer(this.Hw)
- }
- });
- H = C.uq.prototype;
- C.e(H, "totalQuads", H.Eea);
- C.e(H, "capacity", H.Nda);
- C.e(H, "quads", H.lea, H.iia);
- C.uq.create = function(c, d) {
- return new C.uq(c, d)
- };
- C.L === C.la && (C.assert("function" === typeof C.U.VU, C.n.Bf, "TexturesWebGL.js"), C.U.VU(), delete C.U.VU);
- C.assert("function" === typeof C.U.UT, C.n.Bf, "TexturesPropertyDefine.js");
- C.U.UT();
- delete C.U.UT;
- C.Ll = C.A.extend({
- qa: "Scene",
- ctor: function() {
- C.A.prototype.ctor.call(this);
- this.nn = q;
- this.S(0.5, 0.5);
- this.Ca(C.Q.aa)
- }
- });
- C.Ll.create = function() {
- return new C.Ll
- };
- C.A6 = C.Ll.extend({
- Zq: s,
- $F: 0,
- Vv: 0,
- ee: s,
- qa: "LoaderScene",
- j: function() {
- var c = this,
- d = 200,
- f = c.xV = C.gd.create(C.color(32, 32, 32, 255));
- f.p(C.ts.bP);
- c.q(f, 0);
- var g = 24,
- h = -d / 2 + 100;
- C.waa && (C.M.wI(C.waa, {
- g1: t
- },
- function(f, g) {
- d = g.height;
- c.$$(g, C.ts.vH)
- }), g = 14, h = -d / 2 - 10);
- g = c.ee = C.fa.create("Loading... 0%", "Arial", g);
- g.p(C.ho(C.ts.vH, C.d(0, h)));
- g.G(C.color(180, 180, 180));
- f.q(this.ee, 10);
- return q
- },
- $$: function(c, d) {
- var f = this.Rva = new C.Ma;
- f.Ng(c);
- f.Md();
- f = this.Cta = C.u.create(f);
- f.Za(C.Ec());
- f.x = d.x;
- f.y = d.y;
- this.xV.q(f, 10)
- },
- Z: function() {
- C.A.prototype.Z.call(this);
- this.rg(this.MG, 0.3)
- },
- Na: function() {
- C.A.prototype.Na.call(this);
- this.ee.sa("Loading... 0%")
- },
- X0: function(c, d) {
- "string" == typeof c && (c = [c]);
- this.s2 = c || [];
- this.mg = d
- },
- MG: function() {
- var c = this;
- c.Zh(c.MG);
- var d = c.s2;
- c.$F = d.length;
- c.Vv = 0;
- C.M.load(d,
- function(d, g) {
- c.Vv = g
- },
- function() {
- c.mg && c.mg()
- });
- c.rg(c.bH)
- },
- bH: function() {
- var c = this.Vv,
- d = this.$F,
- f;
- f = Math.min(100 * (c / d) | 0, 100);
- this.ee.sa("Loading... " + f + "%");
- c >= d && this.Zh(this.bH)
- }
- });
- C.A6.KC = function(c, d) {
- var f = C;
- f.xI || (f.xI = new C.A6, f.xI.j());
- f.xI.X0(c, d);
- C.Q.PC(f.xI);
- return f.xI
- };
- C.U.sT = function() {
- var c = C.qe.prototype;
- c.Hca = u();
- c.cja = u();
- c.J = C.A.prototype.J
- };
- C.U.RU = function() {
- var c = C.gd.prototype;
- c.cO = s;
- c.XY = s;
- c.DZ = s;
- c.PV = s;
- c.ZY = s;
- c.YY = s;
- c.ctor = function(c, f, g) {
- this.ZY = new ArrayBuffer(32);
- this.YY = new ArrayBuffer(16);
- var h = this.ZY,
- k = this.YY,
- n = C.bf.BYTES_PER_ELEMENT,
- p = ja.BYTES_PER_ELEMENT;
- this.cO = [new C.bf(0, 0, h, 0), new C.bf(0, 0, h, n), new C.bf(0, 0, h, 2 * n), new C.bf(0, 0, h, 3 * n)];
- this.XY = [C.color(0, 0, 0, 255, k, 0), C.color(0, 0, 0, 255, k, p), C.color(0, 0, 0, 255, k, 2 * p), C.color(0, 0, 0, 255, k, 3 * p)];
- this.DZ = C.t.createBuffer();
- this.PV = C.t.createBuffer();
- C.ai.prototype.ctor.call(this);
- this.C = new C.Vm(C.Ic, C.Hc);
- C.gd.prototype.j.call(this, c, f, g)
- };
- c.Ca = function(c, f) {
- var g = this.cO;
- f === m ? (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 = f, g[3].x = c, g[3].y = f);
- this.yV();
- C.qe.prototype.Ca.call(this, c, f)
- };
- c.Qh = function(c) {
- var f = this.cO;
- f[1].x = c;
- f[3].x = c;
- this.yV();
- C.qe.prototype.Qh.call(this, c)
- };
- c.Ph = function(c) {
- var f = this.cO;
- f[2].y = c;
- f[3].y = c;
- this.yV();
- C.qe.prototype.Ph.call(this, c)
- };
- c.Gd = function() {
- for (var c = this.wb,
- f = this.hb,
- g = this.XY,
- h = 0; 4 > h; h++) g[h].r = c.r,
- g[h].g = c.g,
- g[h].b = c.b,
- g[h].a = f;
- this.n9()
- };
- c.ka = function(c) {
- c = c || C.t;
- C.BC(this);
- C.rf(C.Ch | C.ZK);
- c.bindBuffer(c.ARRAY_BUFFER, this.DZ);
- c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0);
- c.bindBuffer(c.ARRAY_BUFFER, this.PV);
- c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, 0, 0);
- C.Gm(this.C.src, this.C.ga);
- c.drawArrays(c.TRIANGLE_STRIP, 0, 4)
- };
- c.yV = function() {
- var c = C.t;
- c.bindBuffer(c.ARRAY_BUFFER, this.DZ);
- c.bufferData(c.ARRAY_BUFFER, this.ZY, c.STATIC_DRAW)
- };
- c.n9 = function() {
- var c = C.t;
- c.bindBuffer(c.ARRAY_BUFFER, this.PV);
- c.bufferData(c.ARRAY_BUFFER, this.YY, c.STATIC_DRAW)
- }
- };
- C.U.SU = function() {
- var c = C.pq.prototype;
- c.ka = C.gd.prototype.ka;
- c.Gd = function() {
- var c = this.Ji,
- f = C.Ye(c);
- if (0 !== f) {
- var g = Math.sqrt(2),
- c = C.d(c.x / f, c.y / f);
- this.LL && (c = C.Wp(c, 1 / (Math.abs(c.x) + Math.abs(c.y)) * g));
- var h = this.hb / 255,
- f = this.wb,
- k = this.Ef,
- f = {
- r: f.r,
- g: f.g,
- b: f.b,
- a: this.eB * h
- },
- h = {
- r: k.r,
- g: k.g,
- b: k.b,
- a: this.Tz * h
- },
- n = this.XY,
- k = n[0],
- p = n[1],
- r = n[2],
- n = n[3];
- k.r = h.r + (f.r - h.r) * ((g + c.x + c.y) / (2 * g));
- k.g = h.g + (f.g - h.g) * ((g + c.x + c.y) / (2 * g));
- k.b = h.b + (f.b - h.b) * ((g + c.x + c.y) / (2 * g));
- k.a = h.a + (f.a - h.a) * ((g + c.x + c.y) / (2 * g));
- p.r = h.r + (f.r - h.r) * ((g - c.x + c.y) / (2 * g));
- p.g = h.g + (f.g - h.g) * ((g - c.x + c.y) / (2 * g));
- p.b = h.b + (f.b - h.b) * ((g - c.x + c.y) / (2 * g));
- p.a = h.a + (f.a - h.a) * ((g - c.x + c.y) / (2 * g));
- r.r = h.r + (f.r - h.r) * ((g + c.x - c.y) / (2 * g));
- r.g = h.g + (f.g - h.g) * ((g + c.x - c.y) / (2 * g));
- r.b = h.b + (f.b - h.b) * ((g + c.x - c.y) / (2 * g));
- r.a = h.a + (f.a - h.a) * ((g + c.x - c.y) / (2 * g));
- n.r = h.r + (f.r - h.r) * ((g - c.x - c.y) / (2 * g));
- n.g = h.g + (f.g - h.g) * ((g - c.x - c.y) / (2 * g));
- n.b = h.b + (f.b - h.b) * ((g - c.x - c.y) / (2 * g));
- n.a = h.a + (f.a - h.a) * ((g - c.x - c.y) / (2 * g));
- this.n9()
- }
- }
- };
- C.U.RT = function() {
- var c = C.ai.prototype;
- C.e(c, "opacityModifyRGB", c.qg, c.$d);
- C.e(c, "opacity", c.rb, c.K);
- C.e(c, "cascadeOpacity", c.nI, c.Qu);
- C.e(c, "color", c.Xa, c.G);
- C.e(c, "cascadeColor", c.mI, c.Pu)
- };
- C.U.PT = function() {
- var c = C.gd.prototype;
- C.e(c, "width", c.ef, c.Qh);
- C.e(c, "height", c.Dg, c.Ph)
- };
- C.U.QT = function() {
- var c = C.pq.prototype;
- C.e(c, "startColor", c.NP, c.tg);
- C.e(c, "endColor", c.EP, c.sg);
- C.e(c, "startOpacity", c.TBa, c.tia);
- C.e(c, "endOpacity", c.vAa, c.Aha);
- C.e(c, "vector", c.mCa, c.UR)
- };
- C.qe = C.A.extend({
- gw: t,
- tL: s,
- qa: "Layer",
- ctor: function() {
- var c = C.A.prototype;
- c.ctor.call(this);
- this.nn = q;
- c.S.call(this, 0.5, 0.5);
- c.Ca.call(this, C.KJ)
- },
- Hca: s,
- cja: s,
- iYa: A("gw"),
- J: s
- });
- C.qe.create = function() {
- return new C.qe
- };
- if (C.L === C.cb) {
- var ka = C.qe.prototype;
- ka.Hca = function() {
- if (!this.gw) {
- this.gw = this.Lk = q;
- this.Fq = this;
- for (var c = this.l,
- d = 0,
- f = c.length; d < f; d++) c[d].zY(this);
- this.tL || (this.tL = new C.ika)
- }
- };
- ka.cja = function() {
- if (this.gw) {
- this.gw = t;
- this.Lk = q;
- this.Fq = s;
- for (var c = this.l,
- d = 0,
- f = c.length; d < f; d++) c[d].zY(s)
- }
- };
- ka.J = function(c) {
- if (this.gw) {
- c = c || C.t;
- var d, f = this.l,
- g = f.length;
- if (this.Ja && 0 !== g) {
- var h = this.tL;
- c.save();
- this.transform(c);
- if (this.Lk) {
- d = this.HW();
- d.width |= 0;
- d.height |= 0;
- var k = h.Ki;
- h.Yga(d.width, d.height);
- k.translate(0 - d.x, d.height + d.y);
- var n = h.Ep();
- h.p(n.x + d.x, n.y + d.y);
- this.ed();
- for (d = 0; d < g; d++) f[d].J(k);
- this.Lk = t
- }
- h.J(c);
- this.arrivalOrder = 0;
- c.restore()
- }
- } else C.A.prototype.J.call(this, c)
- };
- ka.HW = function() {
- var c = s;
- if (!this.l || 0 === this.l.length) return C.rect(0, 0, 10, 10);
- for (var d = this.l,
- f = 0; f < d.length; f++) {
- var g = d[f];
- g && g.Ja && (c ? (g = g.JF()) && (c = C.MC(c, g)) : c = g.JF())
- }
- return c
- };
- ka = s
- } else C.assert("function" === typeof C.U.sT, C.n.Bf, "CCLayerWebGL.js"),
- C.U.sT(),
- delete C.U.sT;
- C.ai = C.qe.extend({
- sb: q,
- hb: 255,
- Ig: 255,
- wb: s,
- od: s,
- Ag: t,
- Zf: t,
- qa: "LayerRGBA",
- ctor: function() {
- C.qe.prototype.ctor.call(this);
- this.wb = C.color(255, 255, 255, 255);
- this.od = C.color(255, 255, 255, 255)
- },
- j: function() {
- var c = C.qe.prototype;
- this.nn = q;
- c.S.call(this, 0.5, 0.5);
- c.Ca.call(this, C.KJ);
- this.cascadeColor = this.cascadeOpacity = t;
- return q
- },
- rb: A("Ig"),
- Tda: A("hb"),
- K: function(c) {
- this.hb = this.Ig = c;
- var d = 255,
- f = this.Vb;
- f && (f.sb && f.cascadeOpacity) && (d = f.hb);
- this.dc(d);
- this.wb.a = this.od.a = c
- },
- dc: function(c) {
- this.hb = 0 | this.Ig * c / 255;
- if (this.Ag) {
- c = this.l;
- for (var d, f = 0; f < c.length; f++)(d = c[f]) && d.sb && d.dc(this.hb)
- }
- },
- nI: A("Ag"),
- Qu: function(c) {
- this.Ag !== c && ((this.Ag = c) ? this.Sz() : this.dW())
- },
- Sz: function() {
- var c = 255,
- d = this.Vb;
- d && (d.sb && d.cascadeOpacity) && (c = d.hb);
- this.dc(c)
- },
- dW: function() {
- this.hb = this.Ig;
- for (var c = this.l,
- d, f = 0; f < c.length; f++)(d = c[f]) && d.sb && d.dc(255)
- },
- Xa: function() {
- var c = this.od;
- return C.color(c.r, c.g, c.b, c.a)
- },
- xu: function() {
- var c = this.wb;
- return C.color(c.r, c.g, c.b)
- },
- G: function(c) {
- var d = this.wb,
- f = this.od;
- d.r = f.r = c.r;
- d.g = f.g = c.g;
- d.b = f.b = c.b;
- d = (d = this.Vb) && d.sb && d.cascadeColor ? d.xu() : C.color.WHITE;
- this.Tb(d);
- c.a !== m && !c.jx && this.K(c.a)
- },
- Tb: function(c) {
- var d = this.wb,
- f = this.od;
- d.r = 0 | f.r * c.r / 255;
- d.g = 0 | f.g * c.g / 255;
- d.b = 0 | f.b * c.b / 255;
- if (this.Zf) {
- c = this.l;
- for (var g = 0; g < c.length; g++)(f = c[g]) && f.sb && f.Tb(d)
- }
- },
- mI: A("Zf"),
- Pu: function(c) {
- this.Zf !== c && ((this.Zf = c) ? this.Rz() : this.cW())
- },
- Rz: function() {
- var c;
- c = (c = this.Vb) && c.sb && c.cascadeColor ? c.xu() : C.color.WHITE;
- this.Tb(c)
- },
- cW: function() {
- var c = this.wb,
- d = this.od;
- c.r = d.r;
- c.g = d.g;
- c.b = d.b;
- var c = this.l,
- d = C.color.WHITE,
- f, g;
- for (g = 0; g < c.length; g++)(f = c[g]) && f.sb && f.Tb(d)
- },
- q: function(c, d, f) {
- C.A.prototype.q.call(this, c, d, f);
- this.Zf && this.Rz();
- this.Ag && this.Sz()
- },
- $d: u(),
- qg: B(t)
- });
- C.assert("function" === typeof C.U.RT, C.n.Bf, "CCLayerPropertyDefine.js");
- C.U.RT();
- delete C.U.RT;
- C.gd = C.ai.extend({
- C: s,
- qa: "LayerColor",
- ek: A("C"),
- SQa: function(c, d) {
- this.width = c;
- this.height = d
- },
- RQa: x("width"),
- QQa: x("height"),
- $d: u(),
- qg: B(t),
- G: function(c) {
- C.ai.prototype.G.call(this, c);
- this.Gd()
- },
- K: function(c) {
- C.ai.prototype.K.call(this, c);
- this.Gd()
- },
- rA: t,
- ctor: s,
- j: function(c, d, f) {
- C.L !== C.cb && (this.shaderProgram = C.ug.Xd(C.JK));
- var g = C.Q.aa;
- c = c || C.color(0, 0, 0, 255);
- d = d === m ? g.width: d;
- f = f === m ? g.height: f;
- g = this.wb;
- g.r = c.r;
- g.g = c.g;
- g.b = c.b;
- g = this.od;
- g.r = c.r;
- g.g = c.g;
- g.b = c.b;
- this.Ig = this.hb = c.a;
- c = C.gd.prototype;
- c.Ca.call(this, d, f);
- c.Gd.call(this);
- return q
- },
- Yd: function(c, d) {
- this.C = d === m ? c: {
- src: c,
- ga: d
- };
- C.L === C.cb && (this.rA = this.C && 1 == this.C.src && 771 == this.C.ga)
- },
- Qh: s,
- Ph: s,
- Gd: s,
- Tb: function(c) {
- C.ai.prototype.Tb.call(this, c);
- this.Gd()
- },
- dc: function(c) {
- C.ai.prototype.dc.call(this, c);
- this.Gd()
- },
- ka: s
- });
- C.gd.create = function(c, d, f) {
- return new C.gd(c, d, f)
- };
- C.L === C.cb ? (H = C.gd.prototype, H.ctor = function(c, d, f) {
- C.ai.prototype.ctor.call(this);
- this.C = new C.Vm(C.Ic, C.Hc);
- C.gd.prototype.j.call(this, c, d, f)
- },
- H.Qh = C.ai.prototype.Qh, H.Ph = C.ai.prototype.Ph, H.Gd = u(), H.ka = function(c) {
- c = c || C.t;
- var d = C.view,
- f = this.wb;
- c.fillStyle = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + "," + this.hb / 255 + ")";
- c.fillRect(0, 0, this.width * d.ia, -this.height * d.pa);
- C.kl++
- },
- H.J = function(c) {
- if (this.gw) {
- c = c || C.t;
- var d, f = this.l,
- g = f.length;
- if (this.Ja) {
- var h = this.tL;
- c.save();
- this.transform(c);
- if (this.Lk) {
- d = this.HW();
- d.width |= 0;
- d.height |= 0;
- var k = h.Ki;
- h.Yga(d.width, d.height);
- var n = h.Ep(),
- p = this.ma;
- if (this.nn) k.translate(0 - d.x + p.x, d.height + d.y - p.y),
- h.p(n.x + d.x - p.x, n.y + d.y - p.y);
- else {
- var r = this.Ep(),
- v = p.x - r.x,
- p = p.y - r.y;
- k.translate(0 - d.x + v, d.height + d.y - p);
- h.p(n.x + d.x - v, n.y + d.y - p)
- }
- if (0 < g) {
- this.ed();
- for (d = 0; d < g; d++) if (n = f[d], 0 > n.Wa) n.J(k);
- else break;
- for (this.ka(k); d < g; d++) f[d].J(k)
- } else this.ka(k);
- this.Lk = t
- }
- h.J(c);
- this.arrivalOrder = 0;
- c.restore()
- }
- } else C.A.prototype.J.call(this, c)
- },
- H.HW = function() {
- var c = C.rect(0, 0, this.o.width, this.o.height),
- d = this.ql(),
- c = C.Gi(c, this.ql());
- if (!this.l || 0 === this.l.length) return c;
- for (var f = this.l,
- g = 0; g < f.length; g++) {
- var h = f[g];
- h && h.Ja && (h = h.JF(d), c = C.MC(c, h))
- }
- return c
- },
- H = s) : (C.assert("function" === typeof C.U.RU, C.n.Bf, "CCLayerWebGL.js"), C.U.RU(), delete C.U.RU);
- C.assert("function" === typeof C.U.PT, C.n.Bf, "CCLayerPropertyDefine.js");
- C.U.PT();
- delete C.U.PT;
- C.pq = C.gd.extend({
- Kg: s,
- Ef: s,
- eB: 255,
- Tz: 255,
- Ji: s,
- LL: t,
- iA: s,
- hA: s,
- qa: "LayerGradient",
- ctor: function(c, d, f) {
- C.gd.prototype.ctor.call(this);
- this.Kg = C.color(0, 0, 0, 255);
- this.Ef = C.color(0, 0, 0, 255);
- this.Ji = C.d(0, -1);
- this.Tz = this.eB = 255;
- this.iA = C.d(0, 0);
- this.hA = C.d(0, 0);
- C.pq.prototype.j.call(this, c, d, f)
- },
- j: function(c, d, f) {
- c = c || C.color(0, 0, 0, 255);
- d = d || C.color(0, 0, 0, 255);
- f = f || C.d(0, -1);
- var g = this.Kg,
- h = this.Ef;
- g.r = c.r;
- g.g = c.g;
- g.b = c.b;
- this.eB = c.a;
- h.r = d.r;
- h.g = d.g;
- h.b = d.b;
- this.Tz = d.a;
- this.Ji = f;
- this.LL = q;
- this.iA = C.d(0, 0);
- this.hA = C.d(0, 0);
- C.gd.prototype.j.call(this, C.color(c.r, c.g, c.b, 255));
- C.pq.prototype.Gd.call(this);
- return q
- },
- Ca: function(c, d) {
- C.gd.prototype.Ca.call(this, c, d);
- this.Gd()
- },
- Qh: function(c) {
- C.gd.prototype.Qh.call(this, c);
- this.Gd()
- },
- Ph: function(c) {
- C.gd.prototype.Ph.call(this, c);
- this.Gd()
- },
- NP: A("od"),
- tg: x("color"),
- sg: function(c) {
- this.Ef = c;
- this.Gd()
- },
- EP: A("Ef"),
- tia: function(c) {
- this.eB = c;
- this.Gd()
- },
- TBa: A("eB"),
- Aha: function(c) {
- this.Tz = c;
- this.Gd()
- },
- vAa: A("Tz"),
- UR: function(c) {
- this.Ji.x = c.x;
- this.Ji.y = c.y;
- this.Gd()
- },
- mCa: function() {
- return C.d(this.Ji.x, this.Ji.y)
- },
- mYa: A("LL"),
- H3a: function(c) {
- this.LL = c;
- this.Gd()
- },
- AOa: s,
- Gd: s
- });
- C.pq.create = function(c, d, f) {
- return new C.pq(c, d, f)
- };
- C.L === C.cb ? (H = C.pq.prototype, H.ka = function(c) {
- c = c || C.t;
- this.rA && (c.globalCompositeOperation = "lighter");
- c.save();
- var d = C.view,
- f = this.hb / 255,
- g = this.width * d.ia,
- d = this.height * d.pa,
- h = c.createLinearGradient(this.iA.x, this.iA.y, this.hA.x, this.hA.y),
- k = this.wb,
- n = this.Ef;
- h.addColorStop(0, "rgba(" + Math.round(k.r) + "," + Math.round(k.g) + "," + Math.round(k.b) + "," + (f * (this.eB / 255)).toFixed(4) + ")");
- h.addColorStop(1, "rgba(" + Math.round(n.r) + "," + Math.round(n.g) + "," + Math.round(n.b) + "," + (f * (this.Tz / 255)).toFixed(4) + ")");
- c.fillStyle = h;
- c.fillRect(0, 0, g, -d);
- 0 != this.XA && c.rotate(this.rPa);
- c.restore()
- },
- H.Gd = function() {
- var c = this.Ji,
- d = 0.5 * this.width,
- f = 0.5 * this.height;
- this.iA.x = d * -c.x + d;
- this.iA.y = f * c.y - f;
- this.hA.x = d * c.x + d;
- this.hA.y = f * -c.y - f
- },
- H = s) : (C.assert("function" === typeof C.U.SU, C.n.Bf, "CCLayerWebGL.js"), C.U.SU(), delete C.U.SU);
- C.assert("function" === typeof C.U.QT, C.n.Bf, "CCLayerPropertyDefine.js");
- C.U.QT();
- delete C.U.QT;
- C.uT = C.qe.extend({
- Yv: 0,
- oi: s,
- qa: "LayerMultiplex",
- ctor: function(c) {
- C.qe.prototype.ctor.call(this);
- c && C.uT.prototype.SCa.call(this, c)
- },
- SCa: function(c) {
- 0 < c.length && c[c.length - 1] == s && C.log(C.n.Vma);
- this.oi = c;
- this.Yv = 0;
- this.q(this.oi[this.Yv]);
- return q
- },
- e6a: function(c) {
- c >= this.oi.length ? C.log(C.n.Wma) : (this.removeChild(this.oi[this.Yv], q), this.Yv = c, this.q(this.oi[c]))
- },
- f6a: function(c) {
- c >= this.oi.length ? C.log(C.n.Xma) : (this.removeChild(this.oi[this.Yv], q), this.oi[this.Yv] = s, this.Yv = c, this.q(this.oi[c]))
- },
- aQa: function(c) {
- c ? this.oi.push(c) : C.log(C.n.Uma)
- }
- });
- C.uT.create = function() {
- return new C.uT(arguments)
- };
- C.U.TU = function() {
- var c = C.u.prototype;
- c.VY = function(c) {
- this.Da(q);
- this.qc(c.Vh(), c.fg, c.Gg);
- this.cf()
- };
- c.$d = function(c) {
- this.Fb !== c && (this.Fb = c, this.ro())
- };
- c.dc = function(c) {
- C.ha.prototype.dc.call(this, c);
- this.ro()
- };
- c.ctor = function(c, f, g) {
- C.ha.prototype.ctor.call(this);
- this.Xt = t;
- this.ld = C.d(0, 0);
- this.Nn = C.d(0, 0);
- this.C = {
- src: C.Ic,
- ga: C.Hc
- };
- this.Ra = C.rect(0, 0, 0, 0);
- this.Td = new C.Uc;
- this.HN = C.t.createBuffer();
- this.Aa = this.Ti = q;
- this.Jba(c, f, g)
- };
- c.Yd = function(c, f) {
- var g = this.C;
- f === m ? (g.src = c.src, g.ga = c.ga) : (g.src = c, g.ga = f)
- };
- c.j = function() {
- if (0 < arguments.length) return this.Ce(arguments[0], arguments[1]);
- C.ha.prototype.j.call(this);
- this.dirty = this.An = t;
- this.Fb = q;
- this.C.src = C.Ic;
- this.C.ga = C.Hc;
- this.texture = s;
- this.Aa = q;
- this.Bb = this.Db = t;
- this.anchorY = this.anchorX = 0.5;
- this.ld.x = 0;
- this.ld.y = 0;
- this.ap = t;
- var c = {
- r: 255,
- g: 255,
- b: 255,
- a: 255
- };
- this.Td.T.F = c;
- this.Td.Y.F = c;
- this.Td.X.F = c;
- this.Td.V.F = c;
- this.Ti = q;
- this.qc(C.rect(0, 0, 0, 0), t, C.size(0, 0));
- return q
- };
- c.ta = function(c, f, g) {
- C.assert(0 != arguments.length, C.n.dpa);
- g = g || t;
- if (!C.ha.prototype.j.call(this)) return t;
- this.wa = s;
- this.dirty = this.An = t;
- this.Fb = q;
- this.C.src = C.Ic;
- this.C.ga = C.Hc;
- this.Bb = this.Db = t;
- this.anchorY = this.anchorX = 0.5;
- this.ld.x = 0;
- this.ld.y = 0;
- this.ap = t;
- var h = C.color(255, 255, 255, 255),
- k = this.Td;
- k.T.F = h;
- k.Y.F = h;
- k.X.F = h;
- k.V.F = h;
- this.Aa = h = c.de;
- if (!h) return this.jf = g || t,
- f && (h = this.Ra, h.x = f.x, h.y = f.y, h.width = f.width, h.height = f.height),
- c.ye(this.oO, this),
- q;
- f || (f = C.rect(0, 0, c.width, c.height));
- c && (g ? (h = f.x + f.height, k = f.y + f.width) : (h = f.x + f.width, k = f.y + f.height), h > c.width && C.error(C.n.YT, c.url), k > c.height && C.error(C.n.XT, c.url));
- this.texture = c;
- this.qc(f, g);
- this.batchNode = s;
- return this.Ti = q
- };
- c.oO = function(c) {
- if (!this.Aa) {
- this.Aa = q;
- var f = this.Ra;
- f ? C.wG(f) && (f.width = c.width, f.height = c.height) : f = C.rect(0, 0, c.width, c.height);
- this.texture = c;
- this.qc(f, this.jf);
- this.batchNode = this.wa;
- this.Ti = q;
- this.cf()
- }
- };
- c.qc = function(c, f, g) {
- this.jf = f || t;
- this.Ca(g || c);
- this.x3(c);
- this.xba(c);
- c = this.Nn;
- this.Bb && (c.x = -c.x);
- this.Db && (c.y = -c.y);
- var h = this.Ra;
- this.ld.x = c.x + (this.o.width - h.width) / 2;
- this.ld.y = c.y + (this.o.height - h.height) / 2;
- if (this.wa) this.dirty = q;
- else {
- c = 0 + this.ld.x;
- f = 0 + this.ld.y;
- g = c + h.width;
- var h = f + h.height,
- k = this.Td;
- k.T.m = {
- x: c,
- y: f,
- f: 0
- };
- k.Y.m = {
- x: g,
- y: f,
- f: 0
- };
- k.X.m = {
- x: c,
- y: h,
- f: 0
- };
- k.V.m = {
- x: g,
- y: h,
- f: 0
- };
- this.Ti = q
- }
- };
- c.$h = function() {
- if (this.dirty) {
- var c = this.Td,
- f = this.Vb;
- if (!this.Ja || f && f != this.wa && f.Xt) c.Y.m = {
- x: 0,
- y: 0,
- f: 0
- },
- c.X.m = {
- x: 0,
- y: 0,
- f: 0
- },
- c.V.m = {
- x: 0,
- y: 0,
- f: 0
- },
- c.T.m = {
- x: 0,
- y: 0,
- f: 0
- },
- this.Xt = q;
- else {
- this.Xt = t;
- var g = this.dx = !f || f == this.wa ? this.me() : C.Qg(this.me(), f.dx),
- h = this.Ra,
- f = this.ld.x,
- k = this.ld.y,
- n = f + h.width,
- p = k + h.height,
- r = g.na,
- v = g.oa,
- y = g.a,
- z = g.b,
- D = g.P,
- E = -g.H,
- g = f * y - k * E + r,
- h = f * z + k * D + v,
- F = n * y - k * E + r,
- k = n * z + k * D + v,
- G = n * y - p * E + r,
- n = n * z + p * D + v,
- r = f * y - p * E + r,
- f = f * z + p * D + v,
- p = this.gH;
- C.bU || (g |= 0, h |= 0, F |= 0, k |= 0, G |= 0, n |= 0, r |= 0, f |= 0);
- c.T.m = {
- x: g,
- y: h,
- f: p
- };
- c.Y.m = {
- x: F,
- y: k,
- f: p
- };
- c.X.m = {
- x: r,
- y: f,
- f: p
- };
- c.V.m = {
- x: G,
- y: n,
- f: p
- }
- }
- this.textureAtlas.HJ(c, this.atlasIndex);
- this.dirty = this.An = t
- }
- this.ap && this.Jk(this.l, C.A.Gj.$h);
- C.Es && (c = [C.d(this.Td.T.m.x, this.Td.T.m.y), C.d(this.Td.Y.m.x, this.Td.Y.m.y), C.d(this.Td.V.m.x, this.Td.V.m.y), C.d(this.Td.X.m.x, this.Td.X.m.y)], C.Df.Of(c, 4, q))
- };
- c.q = function(c, f, g) {
- C.assert(c, C.n.Voa);
- f == s && (f = c.Wa);
- g == s && (g = c.tag);
- if (this.wa) {
- if (! (c instanceof C.u)) {
- C.log(C.n.Toa);
- return
- }
- c.texture.Sh !== this.textureAtlas.texture.Sh && C.log(C.n.Uoa);
- this.wa.appendChild(c);
- this.Oh || this.JY()
- }
- C.ha.prototype.q.call(this, c, f, g);
- this.ap = q
- };
- c.K = function(c) {
- C.ha.prototype.K.call(this, c);
- this.ro()
- };
- c.G = function(c) {
- C.ha.prototype.G.call(this, c);
- this.ro()
- };
- c.Tb = function(c) {
- C.ha.prototype.Tb.call(this, c);
- this.ro()
- };
- c.pc = function(c) {
- var f = this;
- "string" == typeof c && (c = C.Fe.nh(c), C.assert(c, C.n.mpa));
- f.Da(q);
- var g = c.fb;
- f.Nn.x = g.x;
- f.Nn.y = g.y;
- g = c.ob();
- c.Aa || (f.Aa = t, c.ye(function(c) {
- f.Aa = q;
- var d = c.ob();
- d != f.da && (f.texture = d);
- f.qc(c.Vh(), c.fg, c.Gg);
- f.cf()
- },
- f));
- g != f.da && (f.texture = g);
- f.jf = c.fg;
- f.qc(c.Vh(), f.jf, c.Gg)
- };
- c.hfa = function(c) {
- return C.Ega(c.Vh(), this.Ra) && c.ob().getName() == this.da.getName() && C.b2(c.fb, this.Nn)
- };
- c.os = function(c) {
- if (this.wa = c) this.dx = {
- a: 1,
- b: 0,
- H: 0,
- P: 1,
- na: 0,
- oa: 0
- },
- this.textureAtlas = this.wa.textureAtlas;
- else {
- this.atlasIndex = C.u.nT;
- this.textureAtlas = s;
- this.dirty = this.An = t;
- c = this.ld.x;
- var f = this.ld.y,
- g = c + this.Ra.width,
- h = f + this.Ra.height,
- k = this.Td;
- k.T.m = {
- x: c,
- y: f,
- f: 0
- };
- k.Y.m = {
- x: g,
- y: f,
- f: 0
- };
- k.X.m = {
- x: c,
- y: h,
- f: 0
- };
- k.V.m = {
- x: g,
- y: h,
- f: 0
- };
- this.Ti = q
- }
- };
- c.Va = function(c) {
- c && "string" === typeof c ? (c = C.kb.sd(c), this.Va(c), c = c.i(), this.qc(C.rect(0, 0, c.width, c.height))) : (C.assert(!c || c instanceof C.Ma, C.n.opa), this.wa && this.wa.texture != c ? C.log(C.n.npa) : (this.shaderProgram = c ? C.ug.Xd(C.Co) : C.ug.Xd(C.JK), !this.wa && this.da != c && (this.da = c, this.hl())))
- };
- c.ka = function() {
- if (this.Aa) {
- var c = C.t,
- f = this.da;
- f ? f.de && (this.pd.Af(), this.pd.Bj(), C.Gm(this.C.src, this.C.ga), C.M0(0, f), C.rf(C.Dv), c.bindBuffer(c.ARRAY_BUFFER, this.HN), this.Ti && (c.bufferData(c.ARRAY_BUFFER, this.Td.WO, c.DYNAMIC_DRAW), this.Ti = t), c.vertexAttribPointer(0, 3, c.FLOAT, t, 24, 0), c.vertexAttribPointer(1, 4, c.UNSIGNED_BYTE, q, 24, 12), c.vertexAttribPointer(2, 2, c.FLOAT, t, 24, 16), c.drawArrays(c.TRIANGLE_STRIP, 0, 4)) : (this.pd.Af(), this.pd.Bj(), C.Gm(this.C.src, this.C.ga), C.yi(s), C.rf(C.Ch | C.ZK), c.bindBuffer(c.ARRAY_BUFFER, this.HN), this.Ti && (C.t.bufferData(C.t.ARRAY_BUFFER, this.Td.WO, C.t.STATIC_DRAW), this.Ti = t), c.vertexAttribPointer(C.Lc, 3, c.FLOAT, t, 24, 0), c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, 24, 12), c.drawArrays(c.TRIANGLE_STRIP, 0, 4));
- C.kl++;
- if (0 !== C.Es || this.OY) 1 === C.Es || this.OY ? (c = this.Td, c = [C.d(c.X.m.x, c.X.m.y), C.d(c.T.m.x, c.T.m.y), C.d(c.Y.m.x, c.Y.m.y), C.d(c.V.m.x, c.V.m.y)], C.Df.Of(c, 4, q)) : 2 === C.Es && (c = this.WH(), f = this.ld, c = [C.d(f.x, f.y), C.d(f.x + c.width, f.y), C.d(f.x + c.width, f.y + c.height), C.d(f.x, f.y + c.height)], C.Df.Of(c, 4, q))
- }
- };
- delete c
- };
- C.U.ST = function() {
- var c = C.u.prototype;
- C.e(c, "opacityModifyRGB", c.qg, c.$d);
- C.e(c, "opacity", c.rb, c.K);
- C.e(c, "color", c.Xa, c.G);
- C.e(c, "flippedX", c.oI, c.Nd);
- C.e(c, "flippedY", c.pI, c.Uf);
- C.e(c, "offsetX", c.Asa);
- C.e(c, "offsetY", c.Bsa);
- C.e(c, "texture", c.ob, c.Va);
- C.e(c, "textureRectRotated", c.BDa);
- C.e(c, "batchNode", c.XB, c.os);
- C.e(c, "quad", c.CBa)
- };
- C.SB = function(c) {
- function d() {
- var d = C.SB,
- g = c.width,
- n = c.height;
- f[0].width = g;
- f[0].height = n;
- f[1].width = g;
- f[1].height = n;
- f[2].width = g;
- f[2].height = n;
- f[3].width = g;
- f[3].height = n;
- d.canvas.width = g;
- d.canvas.height = n;
- var p = d.canvas.getContext("2d");
- p.drawImage(c, 0, 0);
- d.L3.width = g;
- d.L3.height = n;
- for (var p = p.getImageData(0, 0, g, n).data, r = 0; 4 > r; r++) {
- var v = f[r].getContext("2d");
- v.getImageData(0, 0, g, n).data;
- d.Via.drawImage(c, 0, 0);
- for (var y = d.Via.getImageData(0, 0, g, n), z = y.data, D = 0; D < p.length; D += 4) z[D] = 0 === r ? p[D] : 0,
- z[D + 1] = 1 === r ? p[D + 1] : 0,
- z[D + 2] = 2 === r ? p[D + 2] : 0,
- z[D + 3] = p[D + 3];
- v.putImageData(y, 0, 0)
- }
- c.onload = s
- }
- if (c.Pca) return c.Pca;
- var f = [C.bd("canvas"), C.bd("canvas"), C.bd("canvas"), C.bd("canvas")];
- try {
- d()
- } catch(g) {
- c.onload = d
- }
- return c.Pca = f
- };
- C.SB.canvas = C.bd("canvas");
- C.SB.L3 = C.bd("canvas");
- C.SB.Via = C.SB.L3.getContext("2d");
- C.ESa = function(c, d, f) {
- f || (f = C.rect(0, 0, c.width, c.height), f = C.js(f));
- var g = C.bd("canvas"),
- h = g.getContext("2d");
- g.width != f.width && (g.width = f.width);
- g.height != f.height && (g.height = f.height);
- h.save();
- h.drawImage(c, f.x, f.y, f.width, f.height, 0, 0, f.width, f.height);
- h.globalCompositeOperation = "source-in";
- h.globalAlpha = d.a / 255;
- h.fillStyle = "rgb(" + d.r + "," + d.g + "," + d.b + ")";
- h.fillRect(0, 0, f.width, f.height);
- h.restore();
- return g
- };
- C.TB = function(c, d, f, g, h) {
- g || (g = C.rect(0, 0, c.width, c.height));
- c = f.r / 255;
- var k = f.g / 255;
- f = f.b / 255;
- var n = Math.min(g.width, d[0].width),
- p = Math.min(g.height, d[0].height),
- r;
- h ? (r = h.getContext("2d"), r.clearRect(0, 0, n, p)) : (h = C.bd("canvas"), h.width = n, h.height = p, r = h.getContext("2d"));
- r.save();
- r.globalCompositeOperation = "lighter";
- var v = r.globalAlpha;
- 0 < c && (r.globalAlpha = c * v, r.drawImage(d[0], g.x, g.y, n, p, 0, 0, n, p));
- 0 < k && (r.globalAlpha = k * v, r.drawImage(d[1], g.x, g.y, n, p, 0, 0, n, p));
- 0 < f && (r.globalAlpha = f * v, r.drawImage(d[2], g.x, g.y, n, p, 0, 0, n, p));
- 1 > c + k + f && (r.globalAlpha = v, r.drawImage(d[3], g.x, g.y, n, p, 0, 0, n, p));
- r.restore();
- return h
- };
- C.J_ = function(c, d) {
- if (!c) return s;
- if (!d) return c;
- var f = C.bd("canvas");
- f.width = d.width;
- f.height = d.height;
- var g = f.getContext("2d");
- g.translate(f.width / 2, f.height / 2);
- g.rotate( - 1.5707963267948966);
- g.drawImage(c, d.x, d.y, d.height, d.width, -d.height / 2, -d.width / 2, d.height, d.width);
- return f
- };
- C.u = C.ha.extend({
- sb: q,
- dirty: t,
- atlasIndex: 0,
- textureAtlas: s,
- wa: s,
- An: s,
- ap: s,
- Xt: t,
- dx: s,
- C: s,
- da: s,
- Ra: s,
- jf: t,
- ld: s,
- Nn: s,
- Fb: t,
- Bb: t,
- Db: t,
- Aa: t,
- ac: s,
- zX: s,
- qa: "Sprite",
- eD: A("Aa"),
- ye: function(c, d) {
- this.ac || (this.ac = []);
- this.ac.push({
- jl: c,
- jj: d
- })
- },
- cf: function() {
- if (this.ac) {
- for (var c = this.ac,
- d = 0,
- f = c.length; d < f; d++) {
- var g = c[d];
- g.jl.call(g.jj, this)
- }
- c.length = 0
- }
- },
- h1: A("dirty"),
- xha: x("dirty"),
- BDa: A("jf"),
- WB: A("atlasIndex"),
- C2: x("atlasIndex"),
- WH: function() {
- return C.rect(this.Ra.x, this.Ra.y, this.Ra.width, this.Ra.height)
- },
- VH: A("textureAtlas"),
- p3: x("textureAtlas"),
- CVa: A("ld"),
- Asa: function() {
- return this.ld.x
- },
- Bsa: function() {
- return this.ld.y
- },
- ek: A("C"),
- mj: function(c) {
- C.assert(c, C.n.apa);
- c.Aa || (this.Aa = t, c.ye(this.VY, this));
- var d = C.L === C.cb ? t: c.fg,
- d = this.ta(c.ob(), c.Vh(), d);
- this.pc(c);
- return d
- },
- VY: s,
- pl: function(c) {
- C.assert(c, C.n.bpa);
- var d = C.Fe.nh(c);
- C.assert(d, c + C.n.cpa);
- return this.mj(d)
- },
- K6a: function(c) {
- this.textureAtlas = c.textureAtlas;
- this.wa = c
- },
- x3: function(c) {
- this.Ra.x = c.x;
- this.Ra.y = c.y;
- this.Ra.width = c.width;
- this.Ra.height = c.height
- },
- ed: function() {
- if (this.Oh) {
- var c = this.l,
- d = c.length,
- f, g, h;
- for (f = 1; f < d; f++) {
- h = c[f];
- for (g = f - 1; 0 <= g;) {
- if (h.Wa < c[g].Wa) c[g + 1] = c[g];
- else if (h.Wa === c[g].Wa && h.arrivalOrder < c[g].arrivalOrder) c[g + 1] = c[g];
- else break;
- g--
- }
- c[g + 1] = h
- }
- this.wa && this.Jk(c, C.A.Gj.ed);
- this.Oh = t
- }
- },
- OC: function(c, d) {
- C.assert(c, C.n.hpa); - 1 === this.l.indexOf(c) ? C.log(C.n.gpa) : d !== c.zIndex && (this.wa && !this.Oh && (this.JY(), this.wa.Wga(q)), C.A.prototype.OC.call(this, c, d))
- },
- removeChild: function(c, d) {
- this.wa && this.wa.by(c);
- C.A.prototype.removeChild.call(this, c, d)
- },
- xf: function(c) {
- var d = this.l,
- f = this.wa;
- if (f && d != s) for (var g = 0,
- h = d.length; g < h; g++) f.by(d[g]);
- C.A.prototype.xf.call(this, c);
- this.ap = t
- },
- yha: function(c) {
- this.dirty = this.An = c;
- c = this.l;
- for (var d, f = c ? c.length: 0, g = 0; g < f; g++) d = c[g],
- d instanceof C.u && d.yha(q)
- },
- Da: function(c) {
- C.A.prototype.Da.call(this); ! c && (this.wa && !this.An) && (this.ap ? this.yha(q) : this.dirty = this.An = q)
- },
- Hm: function(c) {
- this.wa ? C.log(C.n.Zoa) : C.A.prototype.Hm.call(this, c)
- },
- Nd: function(c) {
- this.Bb != c && (this.Bb = c, this.qc(this.Ra, this.jf, this.o), this.Da(q))
- },
- Uf: function(c) {
- this.Db != c && (this.Db = c, this.qc(this.Ra, this.jf, this.o), this.Da(q))
- },
- oI: A("Bb"),
- pI: A("Db"),
- $d: s,
- qg: A("Fb"),
- dc: s,
- T3a: function(c, d) {
- C.assert(c, C.n.lpa);
- var f = C.oH.ll(c);
- f ? (f = f.Lh[d]) ? this.pc(f.nh()) : C.log(C.n.kpa) : C.log(C.n.jpa)
- },
- XB: A("wa"),
- JY: function() {
- if (!this.Oh) {
- this.Oh = q;
- for (var c = this.Vb; c && c != this.wa;) c.JY(),
- c = c.parent
- }
- },
- ob: A("da"),
- Td: s,
- HN: s,
- Ti: t,
- KL: t,
- rA: t,
- qi: s,
- jB: s,
- mW: s,
- ctor: s,
- Jba: function(c, d, f) {
- if (c === m) C.u.prototype.j.call(this);
- else if ("string" === typeof c)"#" === c[0] ? (c = C.Fe.nh(c.substr(1, c.length - 1)), this.mj(c)) : C.u.prototype.j.call(this, c, d);
- else if ("object" === typeof c) if (c instanceof C.Ma) this.ta(c, d, f);
- else if (c instanceof C.di) this.mj(c);
- else if (c instanceof HTMLImageElement || c instanceof HTMLCanvasElement) d = new C.Ma,
- d.Ng(c),
- d.Md(),
- this.ta(d)
- },
- CBa: A("Td"),
- Yd: s,
- j: s,
- Ce: function(c, d) {
- C.assert(c, C.n.$oa);
- var f = C.kb.av(c);
- if (f) {
- if (!d) {
- var g = f.i();
- d = C.rect(0, 0, g.width, g.height)
- }
- return this.ta(f, d)
- }
- f = C.kb.sd(c);
- return this.ta(f, d || C.rect(0, 0, f.o.width, f.o.height))
- },
- ta: s,
- oO: s,
- qc: s,
- $h: s,
- q: s,
- ro: function() {
- var c = this.wb,
- d = this.hb,
- c = {
- r: c.r,
- g: c.g,
- b: c.b,
- a: d
- };
- this.Fb && (c.r *= d / 255, c.g *= d / 255, c.b *= d / 255);
- d = this.Td;
- d.T.F = c;
- d.Y.F = c;
- d.X.F = c;
- d.V.F = c;
- this.wa && (this.atlasIndex != C.u.nT ? this.textureAtlas.HJ(d, this.atlasIndex) : this.dirty = q);
- this.Ti = q
- },
- K: s,
- G: s,
- Tb: s,
- pc: s,
- pHa: function(c) {
- C.log(C.n.ipa);
- this.pc(c)
- },
- hfa: s,
- Hya: function() {
- return C.di.create(this.da, C.XI(this.Ra), this.jf, C.KFa(this.Nn), C.FIa(this.o))
- },
- os: s,
- Va: s,
- hl: function() {
- this.wa ? C.log(C.n.Soa) : !this.da || !this.da.Hp() ? (this.C.src = C.SRC_ALPHA, this.C.ga = C.ONE_MINUS_SRC_ALPHA, this.opacityModifyRGB = t) : (this.C.src = C.Ic, this.C.ga = C.Hc, this.opacityModifyRGB = q)
- },
- ct: function() {
- var c, d = this.da,
- f = this.jB;
- if (d && (f.nD && this.qi) && (c = d.jd)) if (d = C.kb.OP(this.qi.jd)) this.KL = q,
- c instanceof HTMLCanvasElement && !this.jf && !this.zX ? C.TB(c, d, this.wb, f, c) : (c = C.TB(c, d, this.wb, f), d = new C.Ma, d.Ng(c), d.Md(), this.texture = d)
- },
- xba: function(c) {
- c = C.XI(c);
- var d = this.wa ? this.textureAtlas.texture: this.da;
- if (d) {
- var f = d.pixelsWidth,
- g = d.pixelsHeight,
- h, k = this.Td;
- this.jf ? (C.Qy ? (d = (2 * c.x + 1) / (2 * f), f = d + (2 * c.height - 2) / (2 * f), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.width - 2) / (2 * g)) : (d = c.x / f, f = (c.x + c.height) / f, h = c.y / g, c = (c.y + c.width) / g), this.Bb && (g = h, h = c, c = g), this.Db && (g = d, d = f, f = g), k.T.v.xa = d, k.T.v.ea = h, k.Y.v.xa = d, k.Y.v.ea = c, k.X.v.xa = f, k.X.v.ea = h, k.V.v.xa = f, k.V.v.ea = c) : (C.Qy ? (d = (2 * c.x + 1) / (2 * f), f = d + (2 * c.width - 2) / (2 * f), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.height - 2) / (2 * g)) : (d = c.x / f, f = (c.x + c.width) / f, h = c.y / g, c = (c.y + c.height) / g), this.Bb && (g = d, d = f, f = g), this.Db && (g = h, h = c, c = g), k.T.v.xa = d, k.T.v.ea = c, k.Y.v.xa = f, k.Y.v.ea = c, k.X.v.xa = d, k.X.v.ea = h, k.V.v.xa = f, k.V.v.ea = h);
- this.Ti = q
- }
- },
- ka: s
- });
- C.u.create = function(c, d, f) {
- return new C.u(c, d, f)
- };
- C.u.nT = -1;
- C.L === C.cb ? (H = C.u.prototype, H.VY = function(c) {
- this.Da(q);
- this.qc(c.Vh(), c.fg, c.Gg);
- c = this.color; (255 !== c.r || 255 !== c.g || 255 !== c.b) && this.ct();
- this.cf()
- },
- H.$d = function(c) {
- this.Fb !== c && (this.Fb = c, this.Da(q))
- },
- H.dc = function(c) {
- C.ha.prototype.dc.call(this, c);
- this.Fn()
- },
- H.ctor = function(c, d, f) {
- C.ha.prototype.ctor.call(this);
- this.Xt = t;
- this.ld = C.d(0, 0);
- this.Nn = C.d(0, 0);
- this.C = {
- src: C.Ic,
- ga: C.Hc
- };
- this.Ra = C.rect(0, 0, 0, 0);
- this.zX = t;
- this.Aa = q;
- this.jB = {
- x: 0,
- y: 0,
- width: 0,
- height: 0,
- nD: t
- };
- this.mW = C.size(0, 0);
- this.Jba(c, d, f)
- },
- H.Yd = function(c, d) {
- var f = this.C;
- d === m ? (f.src = c.src, f.ga = c.ga) : (f.src = c, f.ga = d);
- this.rA = f && (f.src == C.SRC_ALPHA && f.ga == C.ONE || f.src == C.ONE && f.ga == C.ONE)
- },
- H.j = function() {
- if (0 < arguments.length) return this.Ce(arguments[0], arguments[1]);
- C.ha.prototype.j.call(this);
- this.dirty = this.An = t;
- this.Fb = q;
- this.C.src = C.Ic;
- this.C.ga = C.Hc;
- this.texture = s;
- this.Aa = q;
- this.Bb = this.Db = t;
- this.anchorY = this.anchorX = 0.5;
- this.ld.x = 0;
- this.ld.y = 0;
- this.ap = t;
- this.qc(C.rect(0, 0, 0, 0), t, C.size(0, 0));
- return q
- },
- H.ta = function(c, d, f) {
- C.assert(0 != arguments.length, C.n.ska);
- if ((f = f || t) && c.de) {
- var g = c.jd,
- g = C.J_(g, d),
- h = new C.Ma;
- h.Ng(g);
- h.Md();
- c = h;
- this.Ra = C.rect(0, 0, d.width, d.height)
- }
- if (!C.ha.prototype.j.call(this)) return t;
- this.wa = s;
- this.dirty = this.An = t;
- this.Fb = q;
- this.C.src = C.Ic;
- this.C.ga = C.Hc;
- this.Bb = this.Db = t;
- this.anchorY = this.anchorX = 0.5;
- this.ld.x = 0;
- this.ld.y = 0;
- this.ap = t;
- this.Aa = g = c.de;
- if (!g) return this.jf = f,
- d && (this.Ra.x = d.x, this.Ra.y = d.y, this.Ra.width = d.width, this.Ra.height = d.height),
- c.ye(this.oO, this),
- q;
- d || (d = C.rect(0, 0, c.width, c.height));
- c && (g = d.y + d.height, d.x + d.width > c.width && C.error(C.n.YT, c.url), g > c.height && C.error(C.n.XT, c.url));
- this.texture = this.qi = c;
- this.qc(d, f);
- this.batchNode = s;
- return q
- },
- H.oO = function(c) {
- if (!this.Aa) {
- this.Aa = q;
- var d = this.Ra;
- d ? C.wG(d) && (d.width = c.width, d.height = c.height) : d = C.rect(0, 0, c.width, c.height);
- this.texture = this.qi = c;
- this.qc(d, this.jf);
- this.batchNode = this.wa;
- this.cf()
- }
- },
- H.qc = function(c, d, f) {
- this.jf = d || t;
- this.Ca(f || c);
- this.x3(c);
- d = this.jB;
- f = C.Ec();
- d.x = 0 | c.x * f;
- d.y = 0 | c.y * f;
- d.width = 0 | c.width * f;
- d.height = 0 | c.height * f;
- d.nD = !(0 === d.width || 0 === d.height || 0 > d.x || 0 > d.y);
- c = this.Nn;
- this.Bb && (c.x = -c.x);
- this.Db && (c.y = -c.y);
- this.ld.x = c.x + (this.o.width - this.Ra.width) / 2;
- this.ld.y = c.y + (this.o.height - this.Ra.height) / 2;
- this.wa && (this.dirty = q)
- },
- H.$h = function() {
- if (this.dirty) {
- var c = this.Vb; ! this.Ja || c && c != this.wa && c.Xt ? this.Xt = q: (this.Xt = t, this.dx = !c || c == this.wa ? this.me() : C.Qg(this.me(), c.dx));
- this.dirty = this.An = t
- }
- this.ap && this.Jk(this.l, C.A.Gj.$h)
- },
- H.q = function(c, d, f) {
- C.assert(c, C.n.qka);
- d == s && (d = c.Wa);
- f == s && (f = c.tag);
- C.ha.prototype.q.call(this, c, d, f);
- this.ap = q
- },
- H.K = function(c) {
- C.ha.prototype.K.call(this, c);
- this.Fn()
- },
- H.G = function(c) {
- var d = this.color;
- d.r === c.r && d.g === c.g && d.b === c.b || (C.ha.prototype.G.call(this, c), this.ct(), this.Fn())
- },
- H.Tb = function(c) {
- var d = this.color;
- C.ha.prototype.Tb.call(this, c);
- c = this.wb;
- d.r === c.r && d.g === c.g && d.b === c.b || (this.ct(), this.Fn())
- },
- H.pc = function(c) {
- var d = this;
- "string" == typeof c && (c = C.Fe.nh(c), C.assert(c, C.n.vka));
- d.Da(q);
- var f = c.fb;
- d.Nn.x = f.x;
- d.Nn.y = f.y;
- d.jf = c.fg;
- var f = c.ob(),
- g = c.Aa;
- g || (d.Aa = t, c.ye(function(c) {
- d.Aa = q;
- var f = c.ob();
- f != d.da && (d.texture = f);
- d.qc(c.Vh(), c.fg, c.Gg);
- d.cf()
- },
- d));
- f != d.da && (d.texture = f);
- d.jf && (d.qi = f);
- d.qc(c.Vh(), d.jf, c.Gg);
- d.KL = t;
- g && (c = d.color, (255 !== c.r || 255 !== c.g || 255 !== c.b) && d.ct())
- },
- H.hfa = function(c) {
- return c.ob() != this.da ? t: C.Ega(c.Vh(), this.Ra)
- },
- H.os = function(c) { (this.wa = c) ? (this.dx = {
- a: 1,
- b: 0,
- H: 0,
- P: 1,
- na: 0,
- oa: 0
- },
- this.textureAtlas = this.wa.textureAtlas) : (this.atlasIndex = C.u.nT, this.textureAtlas = s, this.dirty = this.An = t)
- },
- H.Va = function(c) {
- c && "string" === typeof c ? (c = C.kb.sd(c), this.Va(c), c = c.i(), this.qc(C.rect(0, 0, c.width, c.height))) : (C.assert(!c || c instanceof C.Ma, C.n.wka), this.da != c && (c && c.jd instanceof HTMLImageElement && (this.qi = c), this.da = c))
- },
- H.ka = function(c) {
- if (this.Aa) {
- c = c || C.t;
- this.rA && (c.globalCompositeOperation = "lighter");
- var d = C.view.ia,
- f = C.view.pa;
- c.globalAlpha = this.hb / 255;
- var g = this.Ra,
- h = this.o,
- k = this.ld,
- n = this.mW,
- p = 0 | k.x,
- r = -k.y - g.height,
- v = this.jB;
- n.width = g.width * d;
- n.height = g.height * f;
- if (this.Bb || this.Db) c.save(),
- this.Bb && (p = -k.x - g.width, c.scale( - 1, 1)),
- this.Db && (r = k.y, c.scale(1, -1));
- p *= d;
- r *= f;
- this.da && v.nD ? (h = this.da.jd, this.KL ? c.drawImage(h, 0, 0, v.width, v.height, p, r, n.width, n.height) : c.drawImage(h, v.x, v.y, v.width, v.height, p, r, n.width, n.height)) : !this.da && v.nD && (n = this.color, c.fillStyle = "rgba(" + n.r + "," + n.g + "," + n.b + ",1)", c.fillRect(p, r, h.width * d, h.height * f));
- 1 === C.Es || this.OY ? (c.strokeStyle = "rgba(0,255,0,1)", p /= d, r = -(r / f), p = [C.d(p, r), C.d(p + g.width, r), C.d(p + g.width, r - g.height), C.d(p, r - g.height)], C.Df.Of(p, 4, q)) : 2 === C.Es && (c.strokeStyle = "rgba(0,255,0,1)", d = this.Ra, r = -r, p = [C.d(p, r), C.d(p + d.width, r), C.d(p + d.width, r - d.height), C.d(p, r - d.height)], C.Df.Of(p, 4, q)); (this.Bb || this.Db) && c.restore();
- C.kl++
- }
- },
- delete H) : (C.assert("function" === typeof C.U.TU, C.n.Bf, "SpritesWebGL.js"), C.U.TU(), delete C.U.TU);
- C.assert("function" === typeof C.U.ST, C.n.Bf, "SpritesPropertyDefine.js");
- C.U.ST();
- delete C.U.ST;
- C.TS = 29;
- C.Bh = C.A.extend({
- textureAtlas: s,
- C: s,
- Zg: s,
- qa: "SpriteBatchNode",
- Dwa: function(c, d, f) {
- C.assert(c, C.n.Moa);
- if (! (c instanceof C.u)) return C.log(C.n.Loa),
- s;
- c.atlasIndex = d;
- var g = 0,
- h = this.Zg;
- if (h && 0 < h.length) for (var k = 0; k < h.length; k++) {
- var n = h[k];
- n && n.atlasIndex >= d && ++g
- }
- h.splice(g, 0, c);
- C.A.prototype.q.call(this, c, d, f);
- this.Wga(t);
- return this
- },
- VH: A("textureAtlas"),
- p3: function(c) {
- c != this.textureAtlas && (this.textureAtlas = c)
- },
- qAa: A("Zg"),
- Ce: function(c, d) {
- var f = C.kb.av(c);
- f || (f = C.kb.sd(c));
- return this.ta(f, d)
- },
- Fn: function() {
- this.Lk = q
- },
- j: function(c, d) {
- var f = C.kb.av(c);
- f || (f = C.kb.sd(c));
- return this.ta(f, d)
- },
- aQ: function() {
- var c = this.textureAtlas.capacity,
- d = Math.floor(4 * (c + 1) / 3);
- C.log(C.n.Noa, c, d);
- this.textureAtlas.eR(d) || C.log(C.n.Ooa)
- },
- sGa: function(c, d) {
- this.removeChild(this.l[c], d)
- },
- Dga: function(c, d) {
- var f = c.children;
- if (f && 0 < f.length) for (var g = 0; g < f.length; g++) {
- var h = f[g];
- h && 0 > h.zIndex && (d = this.Dga(h, d))
- } ! c == this && (c.atlasIndex = d, d++);
- if (f && 0 < f.length) for (g = 0; g < f.length; g++)(h = f[g]) && 0 <= h.zIndex && (d = this.Dga(h, d));
- return d
- },
- S0: function(c) {
- var d = c.children;
- return ! d || 0 == d.length ? c.atlasIndex: this.S0(d[d.length - 1])
- },
- pEa: function(c) {
- var d = c.children;
- return ! d || 0 == d.length ? c.atlasIndex: this.pEa(d[d.length - 1])
- },
- axa: function(c, d) {
- var f = c.parent,
- g = f.children,
- h = g.indexOf(c),
- k = s;
- 0 < h && h < C.EU && (k = g[h - 1]);
- return f == this ? 0 == h ? 0 : this.S0(k) + 1 : 0 == h ? 0 > d ? f.atlasIndex: f.atlasIndex + 1 : 0 > k.zIndex && 0 > d || 0 <= k.zIndex && 0 <= d ? this.S0(k) + 1 : f.atlasIndex + 1
- },
- Wga: x("Oh"),
- Yd: function(c, d) {
- this.C = d === m ? c: {
- src: c,
- ga: d
- }
- },
- ek: A("C"),
- OC: function(c, d) {
- C.assert(c, C.n.Roa); - 1 === this.l.indexOf(c) ? C.log(C.n.Qoa) : d !== c.zIndex && (C.A.prototype.OC.call(this, c, d), this.Da())
- },
- removeChild: function(c, d) {
- c != s && ( - 1 === this.l.indexOf(c) ? C.log(C.n.Poa) : (this.by(c), C.A.prototype.removeChild.call(this, c, d)))
- },
- Hta: s,
- eu: s,
- KPa: t,
- qi: s,
- ctor: s,
- pF: function(c, d) {
- C.A.prototype.ctor.call(this);
- var f;
- d = d || C.TS;
- "string" == typeof c ? (f = C.kb.av(c)) || (f = C.kb.sd(c)) : c instanceof C.Ma && (f = c);
- f && this.ta(f, d)
- },
- qF: function(c, d) {
- C.A.prototype.ctor.call(this);
- this.Hta = new C.Ia;
- var f;
- d = d || C.TS;
- "string" == typeof c ? (f = C.kb.av(c)) || (f = C.kb.sd(c)) : c instanceof C.Ma && (f = c);
- f && this.ta(f, d)
- },
- lja: s,
- fwa: function(c, d) {
- C.assert(c, C.n.xka);
- c instanceof C.u ? (c.batchNode = this, c.atlasIndex = d, c.dirty = q, c.$h()) : C.log(C.n.CS)
- },
- gwa: function(c, d) {
- C.assert(c, C.n.CS);
- if (c instanceof C.u) {
- for (var f = this.textureAtlas.capacity; d >= f || f == this.textureAtlas.totalQuads;) this.aQ();
- c.batchNode = this;
- c.atlasIndex = d;
- c.dirty = q;
- c.$h()
- } else C.log(C.n.CS)
- },
- cu: function(c, d) {
- var f = this.Zg,
- g = this.textureAtlas,
- h = g.quads,
- k = f[c],
- n = C.H8(h[c]);
- f[d].atlasIndex = c;
- f[c] = f[d];
- g.HJ(h[d], c);
- f[d] = k;
- g.HJ(n, d)
- },
- iQ: s,
- mta: function(c, d) {
- C.assert(c, C.n.uka);
- c instanceof C.u ? (c.batchNode = this, c.atlasIndex = d, c.dirty = q, c.$h(), this.l.splice(d, 0, c)) : C.log(C.n.tka)
- },
- nta: function(c, d) {
- C.assert(c, C.n.fpa);
- if (c instanceof C.u) {
- for (var f = this.textureAtlas; d >= f.capacity || f.capacity === f.totalQuads;) this.aQ();
- c.batchNode = this;
- c.atlasIndex = d;
- f.e1(c.quad, d);
- c.dirty = q;
- c.$h()
- } else C.log(C.n.epa)
- },
- bca: function(c, d) {
- var f = 0,
- g = c.children;
- g && (f = g.length);
- var h = 0;
- if (0 === f) h = c.atlasIndex,
- c.atlasIndex = d,
- c.arrivalOrder = 0,
- h != d && this.cu(h, d),
- d++;
- else {
- h = q;
- 0 <= g[0].zIndex && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.cu(h, d), d++, h = t);
- for (f = 0; f < g.length; f++) {
- var k = g[f];
- h && 0 <= k.zIndex && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.cu(h, d), d++, h = t);
- d = this.bca(k, d)
- }
- h && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.cu(h, d), d++)
- }
- return d
- },
- hl: function() {
- this.textureAtlas.texture.Hp() || (this.C.src = C.SRC_ALPHA, this.C.ga = C.ONE_MINUS_SRC_ALPHA)
- },
- ta: s,
- aX: function(c) {
- this.l = [];
- this.Zg = [];
- this.C = new C.Vm(C.Ic, C.Hc);
- this.eu = this.qi = c;
- return q
- },
- bX: function(c, d) {
- this.l = [];
- this.Zg = [];
- this.C = new C.Vm(C.Ic, C.Hc);
- d = d || C.TS;
- this.textureAtlas = new C.uq;
- this.textureAtlas.ta(c, d);
- this.hl();
- this.shaderProgram = C.ug.Xd(C.Co);
- return q
- },
- d1: function(c, d) {
- c.batchNode = this;
- c.atlasIndex = d;
- c.dirty = q;
- var f = this.textureAtlas;
- f.totalQuads >= f.capacity && this.aQ();
- f.e1(c.quad, d);
- this.Zg.splice(d, 0, c);
- var f = d + 1,
- g = this.Zg;
- if (g && 0 < g.length) for (; f < g.length; f++) g[f].atlasIndex++;
- var g = c.children,
- h;
- if (g) {
- f = 0;
- for (l = g.length || 0; f < l; f++)(h = g[f]) && this.d1(h, this.axa(h, h.zIndex))
- }
- },
- appendChild: s,
- Nqa: function(c) {
- this.Oh = q;
- c.batchNode = this;
- c.dirty = q;
- this.Zg.push(c);
- c.atlasIndex = this.Zg.length - 1;
- c = c.children;
- for (var d = 0,
- f = c.length || 0; d < f; d++) this.appendChild(c[d])
- },
- Oqa: function(c) {
- this.Oh = q;
- c.batchNode = this;
- c.dirty = q;
- this.Zg.push(c);
- var d = this.Zg.length - 1;
- c.atlasIndex = d;
- var f = this.textureAtlas;
- f.totalQuads == f.capacity && this.aQ();
- f.e1(c.quad, d);
- c = c.children;
- d = 0;
- for (f = c.length || 0; d < f; d++) this.appendChild(c[d])
- },
- by: s,
- Cua: function(c) {
- c.batchNode = s;
- var d = this.Zg,
- f = d.indexOf(c);
- if ( - 1 != f) {
- d.splice(f, 1);
- for (var g = d.length; f < g; ++f) d[f].atlasIndex--
- }
- if (c = c.children) {
- d = 0;
- for (f = c.length || 0; d < f; d++) c[d] && this.by(c[d])
- }
- },
- Dua: function(c) {
- this.textureAtlas.Vga(c.atlasIndex);
- c.batchNode = s;
- var d = this.Zg,
- f = d.indexOf(c);
- if ( - 1 != f) {
- d.splice(f, 1);
- for (var g = d.length; f < g; ++f) d[f].atlasIndex--
- }
- if (c = c.children) {
- d = 0;
- for (f = c.length || 0; d < f; d++) c[d] && this.by(c[d])
- }
- },
- ob: s,
- MF: A("eu"),
- UW: function() {
- return this.textureAtlas.texture
- },
- Va: s,
- KY: function(c) {
- this.eu = c;
- for (var d = this.l,
- f = 0; f < d.length; f++) d[f].texture = c
- },
- LY: function(c) {
- this.textureAtlas.texture = c;
- this.hl()
- },
- J: s,
- Hr: function(c) {
- var d = c || C.t;
- if (this.Ja) {
- d.save();
- this.transform(c);
- var f = this.l;
- if (f) {
- this.ed();
- for (c = 0; c < f.length; c++) f[c] && f[c].J(d)
- }
- d.restore()
- }
- },
- fx: function(c) {
- c = c || C.t;
- if (this.Ja) {
- C.Zr();
- var d = this.grid;
- d && d.zi() && (d.px(), this.CJ());
- this.ed();
- this.transform(c);
- this.ka(c);
- d && d.zi() && d.mx(this);
- C.Yr();
- this.arrivalOrder = 0
- }
- },
- q: s,
- aV: function(c, d, f) {
- C.assert(c != s, C.n.rka);
- c instanceof C.u ? (d = d == s ? c.zIndex: d, f = f == s ? c.tag: f, C.A.prototype.q.call(this, c, d, f), this.appendChild(c), this.Da()) : C.log(C.n.pka)
- },
- Jqa: function(c, d, f) {
- C.assert(c != s, C.n.Yoa);
- c instanceof C.u ? c.texture != this.textureAtlas.texture ? C.log(C.n.Xoa) : (d = d == s ? c.zIndex: d, f = f == s ? c.tag: f, C.A.prototype.q.call(this, c, d, f), this.appendChild(c), this.Da()) : C.log(C.n.Woa)
- },
- xf: s,
- zua: function(c) {
- var d = this.Zg;
- if (d && 0 < d.length) for (var f = 0,
- g = d.length; f < g; f++) d[f] && (d[f].batchNode = s);
- C.A.prototype.xf.call(this, c);
- this.Zg.length = 0
- },
- Aua: function(c) {
- var d = this.Zg;
- if (d && 0 < d.length) for (var f = 0,
- g = d.length; f < g; f++) d[f] && (d[f].batchNode = s);
- C.A.prototype.xf.call(this, c);
- this.Zg.length = 0;
- this.textureAtlas.NC()
- },
- ed: s,
- Eva: function() {
- if (this.Oh) {
- var c, d = 0,
- f = this.l,
- g = f.length,
- h;
- for (c = 1; c < g; c++) {
- var k = f[c],
- d = c - 1;
- for (h = f[d]; 0 <= d && (k.Wa < h.Wa || k.Wa == h.Wa && k.arrivalOrder < h.arrivalOrder);) f[d + 1] = h,
- d -= 1,
- h = f[d];
- f[d + 1] = k
- }
- 0 < f.length && this.Jk(f, C.A.Gj.ed);
- this.Oh = t
- }
- },
- Fva: function() {
- if (this.Oh) {
- var c = this.l,
- d, f = 0,
- g = c.length,
- h;
- for (d = 1; d < g; d++) {
- var k = c[d],
- f = d - 1;
- for (h = c[f]; 0 <= f && (k.Wa < h.Wa || k.Wa == h.Wa && k.arrivalOrder < h.arrivalOrder);) c[f + 1] = h,
- f -= 1,
- h = c[f];
- c[f + 1] = k
- }
- if (0 < c.length) {
- this.Jk(c, C.A.Gj.ed);
- for (d = f = 0; d < c.length; d++) f = this.bca(c[d], f)
- }
- this.Oh = t
- }
- },
- ka: s,
- gn: function() {
- 0 !== this.textureAtlas.totalQuads && (this.pd.Af(), this.pd.Bj(), this.Jk(this.l, C.A.Gj.$h), C.Gm(this.C.src, this.C.ga), this.textureAtlas.KB())
- }
- });
- H = C.Bh.prototype;
- C.L === C.la ? (H.ctor = H.qF, H.lja = H.gwa, H.iQ = H.nta, H.ta = H.bX, H.appendChild = H.Oqa, H.by = H.Dua, H.ob = H.UW, H.Va = H.LY, H.J = H.fx, H.q = H.Jqa, H.xf = H.Aua, H.ed = H.Fva, H.ka = H.gn) : (H.ctor = H.pF, H.lja = H.fwa, H.iQ = H.mta, H.ta = H.aX, H.appendChild = H.Nqa, H.by = H.Cua, H.ob = H.MF, H.Va = H.KY, H.J = H.Hr, H.xf = H.zua, H.q = H.aV, H.ed = H.Eva, H.ka = C.A.prototype.ka);
- C.e(H, "texture", H.ob, H.Va);
- C.e(H, "descendants", H.qAa);
- C.Bh.create = function(c, d) {
- return new C.Bh(c, d)
- };
- C.ika = C.u.extend({
- gi: s,
- Ki: s,
- ctor: function() {
- C.u.prototype.ctor.call(this);
- var c = document.createElement("canvas");
- c.width = c.height = 10;
- this.gi = c;
- this.Ki = c.getContext("2d");
- var d = new C.Ma;
- d.Ng(c);
- d.Md();
- this.Va(d)
- },
- rTa: A("Ki"),
- qTa: A("gi"),
- Yga: function(c, d) {
- d === m && (d = c.height, c = c.width);
- var f = this.gi;
- f.width = c;
- f.height = d;
- this.ob().Md();
- this.qc(C.rect(0, 0, c, d), t)
- }
- });
- C.Cl = C.O.extend({
- vr: s,
- Jh: 0,
- rB: s,
- ctor: function(c, d, f) {
- this.vr = c || s;
- this.Jh = d || 0;
- this.rB = f || s
- },
- s: function() {
- var c = new C.Cl;
- c.mj(this.vr.s(), this.Jh, this.rB);
- return c
- },
- iP: function() {
- return C.s(this)
- },
- copy: function() {
- var c = new C.Cl;
- c.mj(this.vr.s(), this.Jh, this.rB);
- return c
- },
- mj: function(c, d, f) {
- this.vr = c;
- this.Jh = d;
- this.rB = f;
- return q
- },
- nh: A("vr"),
- pc: x("vr"),
- aUa: A("Jh"),
- S3a: x("Jh"),
- qXa: A("rB"),
- K5a: x("rB")
- });
- C.Cl.create = function(c, d, f) {
- return new C.Cl(c, d, f)
- };
- C.gv = C.O.extend({
- Lh: s,
- dr: 0,
- Kw: t,
- D: 0,
- Jh: 0,
- wp: 0,
- ctor: function(c, d, f) {
- this.Lh = [];
- if (c === m) this.cfa(s, 0);
- else {
- var g = c[0];
- g && (g instanceof C.di ? this.cfa(c, d, f) : g instanceof C.Cl && this.bQ(c, d, f))
- }
- },
- KUa: A("Lh"),
- h4a: x("Lh"),
- OZ: function(c) {
- var d = new C.Cl;
- d.mj(c, 1, s);
- this.Lh.push(d);
- this.wp++
- },
- gQa: function(c) {
- c = C.kb.sd(c);
- var d = C.rect(0, 0, 0, 0);
- d.width = c.width;
- d.height = c.height;
- c = C.di.create(c, d);
- this.OZ(c)
- },
- hQa: function(c, d) {
- var f = C.di.create(c, d);
- this.OZ(f)
- },
- bQ: function(c, d, f) {
- C.yB(c, C.Cl);
- this.Jh = d;
- this.dr = f === m ? 1 : f;
- this.wp = 0;
- d = this.Lh;
- for (f = d.length = 0; f < c.length; f++) {
- var g = c[f];
- d.push(g);
- this.wp += g.Jh
- }
- return q
- },
- s: function() {
- var c = new C.gv;
- c.bQ(this.z9(), this.Jh, this.dr);
- c.KR(this.Kw);
- return c
- },
- iP: function() {
- var c = new C.gv;
- c.bQ(this.z9(), this.Jh, this.dr);
- c.KR(this.Kw);
- return c
- },
- z9: function() {
- for (var c = [], d = 0; d < this.Lh.length; d++) c.push(this.Lh[d].s());
- return c
- },
- copy: function() {
- return this.iP(s)
- },
- jVa: A("dr"),
- x4a: x("dr"),
- KR: x("Kw"),
- nWa: A("Kw"),
- Rr: function() {
- return this.wp * this.Jh
- },
- $Ta: A("Jh"),
- R3a: x("Jh"),
- dXa: A("wp"),
- cfa: function(c, d, f) {
- C.yB(c, C.di);
- this.dr = f === m ? 1 : f;
- this.Jh = d || 0;
- this.wp = 0;
- d = this.Lh;
- d.length = 0;
- if (c) {
- for (f = 0; f < c.length; f++) {
- var g = c[f],
- h = new C.Cl;
- h.mj(g, 1, s);
- d.push(h)
- }
- this.wp += c.length
- }
- return q
- },
- fR: u(),
- rh: u()
- });
- C.gv.create = function(c, d, f) {
- return new C.gv(c, d, f)
- };
- C.oH = {
- jz: {},
- lH: function(c, d) {
- this.jz[d] = c
- },
- Y1a: function(c) {
- c && this.jz[c] && delete this.jz[c]
- },
- ll: function(c) {
- return this.jz[c] ? this.jz[c] : s
- },
- Iqa: function(c, d) {
- var f = c.animations;
- if (f) {
- var g = 1,
- h = c.properties;
- if (h) for (var g = h.format != s ? parseInt(h.format) : g, h = h.spritesheets, k = C.Fe, n = C.path, p = 0; p < h.length; p++) k.Lr(n.BB(d, h[p]));
- switch (g) {
- case 1:
- this.hua(f);
- break;
- case 2:
- this.iua(f);
- break;
- default:
- C.log(C.n.Pwa)
- }
- } else C.log(C.n.Owa)
- },
- nwa: function(c) {
- C.assert(c, C.n.Xwa);
- var d = C.M.xd(c);
- d ? this.Iqa(d, c) : C.log(C.n.Wwa)
- },
- hua: function(c) {
- var d = C.Fe,
- f;
- for (f in c) {
- var g = c[f],
- h = g.frames,
- g = parseFloat(g.delay) || 0,
- k = s;
- if (h) {
- for (var k = [], n = 0; n < h.length; n++) {
- var p = d.nh(h[n]);
- if (p) {
- var r = new C.Cl;
- r.mj(p, 1, s);
- k.push(r)
- } else C.log(C.n.Rwa, f, h[n])
- }
- 0 === k.length ? C.log(C.n.Swa, f) : (k.length != h.length && C.log(C.n.Twa, f), k = C.gv.create(k, g, 1), C.oH.lH(k, f))
- } else C.log(C.n.Qwa, f)
- }
- },
- iua: function(c) {
- var d = C.Fe,
- f;
- for (f in c) {
- var g = c[f],
- h = parseInt(g.loops),
- h = g.loop ? C.xv: isNaN(h) ? 1 : h,
- k = g.restoreOriginalFrame && g.restoreOriginalFrame == q ? q: t,
- n = g.frames;
- if (n) {
- for (var p = [], r = 0; r < n.length; r++) {
- var v = n[r],
- y = v.spriteframe,
- z = d.nh(y);
- if (z) {
- var y = parseFloat(v.delayUnits) || 0,
- v = v.notification,
- D = new C.Cl;
- D.mj(z, y, v);
- p.push(D)
- } else C.log(C.n.Vwa, f, y)
- }
- g = parseFloat(g.delayPerUnit) || 0;
- n = new C.gv;
- n.bQ(p, g, h);
- n.KR(k);
- C.oH.lH(n, f)
- } else C.log(C.n.Uwa, f)
- }
- },
- dt: function() {
- this.jz = {}
- }
- };
- C.di = C.O.extend({
- fb: s,
- Gg: s,
- Vi: s,
- fg: t,
- Ra: s,
- Yk: s,
- Zk: s,
- da: s,
- iB: "",
- Aa: t,
- pM: s,
- ctor: function(c, d, f, g, h) {
- this.fb = C.d(0, 0);
- this.Yk = C.d(0, 0);
- this.Gg = C.size(0, 0);
- this.fg = t;
- this.Zk = C.size(0, 0);
- this.iB = "";
- this.da = s;
- this.Aa = t;
- c !== m && d !== m && (f === m || g === m || h === m ? this.ta(c, d) : this.ta(c, d, f, g, h))
- },
- eD: A("Aa"),
- ye: function(c, d) {
- this.pM == s && (this.pM = []);
- this.pM.push({
- jl: c,
- jj: d
- })
- },
- cf: function() {
- var c = this.pM;
- if (c) {
- for (var d = 0,
- f = c.length; d < f; d++) {
- var g = c[d];
- g.jl.call(g.jj, this)
- }
- c.length = 0
- }
- },
- EBa: function() {
- var c = this.Vi;
- return C.rect(c.x, c.y, c.width, c.height)
- },
- X4a: function(c) {
- this.Vi || (this.Vi = C.rect(0, 0, 0, 0));
- this.Vi.x = c.x;
- this.Vi.y = c.y;
- this.Vi.width = c.width;
- this.Vi.height = c.height;
- this.Ra = C.js(c)
- },
- IYa: A("fg"),
- a5a: x("fg"),
- Vh: function() {
- var c = this.Ra;
- return C.rect(c.x, c.y, c.width, c.height)
- },
- jia: function(c) {
- this.Ra || (this.Ra = C.rect(0, 0, 0, 0));
- this.Ra.x = c.x;
- this.Ra.y = c.y;
- this.Ra.width = c.width;
- this.Ra.height = c.height;
- this.Vi = C.XI(this.Ra)
- },
- BVa: A("Yk"),
- F4a: function(c) {
- this.Yk.x = c.x;
- this.Yk.y = c.y;
- C.RX(this.Yk, this.fb)
- },
- GVa: A("Zk"),
- I4a: function(c) {
- this.Zk.width = c.width;
- this.Zk.height = c.height
- },
- sBa: A("Gg"),
- H4a: function(c) {
- this.Gg.width = c.width;
- this.Gg.height = c.height
- },
- ob: function() {
- if (this.da) return this.da;
- if ("" !== this.iB) {
- var c = C.kb.sd(this.iB);
- c && (this.Aa = c.de);
- return c
- }
- return s
- },
- Va: function(c) {
- if (this.da != c) {
- var d = c.de;
- this.Aa = d;
- this.da = c;
- d || c.ye(function(c) {
- this.Aa = q;
- if (this.fg && C.L === C.cb) {
- var d = c.jd,
- d = C.J_(d, this.Vh()),
- h = new C.Ma;
- h.Ng(d);
- h.Md();
- this.Va(h);
- d = this.Vh();
- this.jia(C.rect(0, 0, d.width, d.height))
- }
- d = this.Ra;
- 0 === d.width && 0 === d.height && (d = c.width, c = c.height, this.Ra.width = d, this.Ra.height = c, this.Vi = C.XI(this.Ra), this.Zk.width = this.Vi.width, this.Zk.height = this.Vi.height, this.Gg.width = d, this.Gg.height = c);
- this.cf()
- },
- this)
- }
- },
- hea: A("fb"),
- DR: function(c) {
- this.fb.x = c.x;
- this.fb.y = c.y
- },
- s: function() {
- var c = new C.di;
- c.ta(this.iB, this.Vi, this.fg, this.Yk, this.Zk);
- c.Va(this.da);
- return c
- },
- iP: function() {
- var c = new C.di;
- c.ta(this.iB, this.Vi, this.fg, this.Yk, this.Zk);
- c.Va(this.da);
- return c
- },
- copy: function() {
- return this.iP()
- },
- ta: function(c, d, f, g, h) {
- 2 === arguments.length && (d = C.XI(d));
- g = g || C.d(0, 0);
- h = h || d;
- f = f || t;
- "string" == typeof c ? (this.da = s, this.iB = c) : c instanceof C.Ma && this.Va(c);
- if (c = this.ob()) {
- var k, n;
- f ? (k = d.x + d.height, n = d.y + d.width) : (k = d.x + d.width, n = d.y + d.height);
- k > c.width && C.error(C.n.YT, c.url);
- n > c.height && C.error(C.n.XT, c.url)
- }
- this.Vi = d;
- this.Ra = C.js(d);
- this.Yk.x = g.x;
- this.Yk.y = g.y;
- C.RX(g, this.fb);
- this.Zk.width = h.width;
- this.Zk.height = h.height;
- C.Fba(h, this.Gg);
- this.fg = f;
- return q
- }
- });
- C.di.create = function(c, d, f, g, h) {
- return new C.di(c, d, f, g, h)
- };
- C.di.DOa = function(c, d, f, g, h) {
- var k = new C.di;
- k.da = c;
- k.Vi = d;
- k.Ra = C.js(d);
- k.Yk.x = g.x;
- k.Yk.y = g.y;
- C.RX(k.Yk, k.fb);
- k.Zk.width = h.width;
- k.Zk.height = h.height;
- C.Fba(k.Zk, k.Gg);
- k.fg = f;
- return k
- };
- C.Fe = {
- Q8: /^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/,
- sqa: /^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/,
- Hn: {},
- wr: {},
- bA: {},
- aba: function(c) {
- c = this.sqa.exec(c);
- return ! c ? C.rect(0, 0, 0, 0) : C.rect(parseFloat(c[1]), parseFloat(c[2]), parseFloat(c[3]), parseFloat(c[4]))
- },
- Paa: function(c) {
- c = this.Q8.exec(c);
- return ! c ? C.d(0, 0) : C.d(parseFloat(c[1]), parseFloat(c[2]))
- },
- PY: function(c) {
- c = this.Q8.exec(c);
- return ! c ? C.size(0, 0) : C.size(parseFloat(c[1]), parseFloat(c[2]))
- },
- nsa: function(c) {
- var d = C.M.xd(c);
- C.assert(d, C.n.NIa, c);
- C.M.rh(c);
- if (d.nA) return this.bA[c] = d;
- var f = d.frames,
- g = d.metadata || d.meta,
- d = {},
- h = {},
- k = 0;
- g && (k = g.format, k = 1 >= k.length ? parseInt(k) : k, h.HCa = g.textureFileName || g.textureFileName || g.image);
- for (var n in f) {
- var p = f[n];
- if (p) {
- g = {};
- if (0 == k) {
- g.rect = C.rect(p.x, p.y, p.width, p.height);
- g.jR = t;
- g.offset = C.d(p.offsetX, p.offsetY);
- var r = p.originalWidth,
- p = p.originalHeight; (!r || !p) && C.log(C.n.MIa);
- r = Math.abs(r);
- p = Math.abs(p);
- g.size = C.size(r, p)
- } else if (1 == k || 2 == k) g.rect = this.aba(p.frame),
- g.jR = p.rotated || t,
- g.offset = this.Paa(p.offset),
- g.size = this.PY(p.sourceSize);
- else if (3 == k) {
- var r = this.PY(p.spriteSize),
- v = this.aba(p.textureRect);
- r && (v = C.rect(v.x, v.y, r.width, r.height));
- g.rect = v;
- g.jR = p.textureRotated || t;
- g.offset = this.Paa(p.spriteOffset);
- g.size = this.PY(p.spriteSourceSize);
- g.Gwa = p.aliases
- } else r = p.frame,
- v = p.sourceSize,
- n = p.filename || n,
- g.rect = C.rect(r.x, r.y, r.w, r.h),
- g.jR = p.rotated || t,
- g.offset = C.d(0, 0),
- g.size = C.size(v.w, v.h);
- d[n] = g
- }
- }
- return this.bA[c] = {
- nA: q,
- frames: d,
- qEa: h
- }
- },
- Lr: function(c, d) {
- C.assert(c, C.n.PIa);
- var f = this.bA[c] || C.M.xd(c);
- if (f && f.frames) {
- var g = this.bA[c] || this.nsa(c),
- f = g.frames,
- g = g.qEa;
- d ? d instanceof C.Ma || ("string" == typeof d ? d = C.kb.sd(d) : C.assert(0, C.n.QIa)) : d = C.kb.sd(C.path.BB(c, g.HCa || ".png"));
- var g = this.wr,
- h = this.Hn,
- k;
- for (k in f) {
- var n = f[k],
- p = h[k];
- if (!p) {
- p = C.di.create(d, n.rect, n.jR, n.offset, n.size);
- if (n = n.Gwa) for (var r = 0,
- v = n.length; r < v; r++) {
- var y = n[r];
- g[y] && C.log(C.n.OIa, y);
- g[y] = k
- }
- C.L === C.cb && p.fg && p.ob().de && (n = p.ob().jd, n = C.J_(n, p.EBa()), r = new C.Ma, r.Ng(n), r.Md(), p.Va(r), n = p.Ra, p.jia(C.rect(0, 0, n.width, n.height)));
- h[k] = p
- }
- }
- }
- },
- eOa: function(c) {
- c = c.frames;
- for (var d in c) this.Hn[d] && C.log(C.n.LIa, d)
- },
- OZ: function(c, d) {
- this.Hn[d] = c
- },
- q2a: function() {
- this.Hn = {};
- this.wr = {}
- },
- p2a: function(c) {
- c && (this.wr[c] && delete this.wr[c], this.Hn[c] && delete this.Hn[c])
- },
- AGa: function(c) {
- var d = this.Hn,
- f = this.wr;
- if (c = this.bA[c]) {
- c = c.frames;
- for (var g in c) if (d[g]) {
- delete d[g];
- for (var h in f) f[h] == g && delete f[h]
- }
- }
- },
- r2a: function(c) {
- var d = this.Hn,
- f = this.wr,
- g;
- for (g in d) {
- var h = d[g];
- if (h && h.ob() == c) {
- delete d[g];
- for (var k in f) f[k] == g && delete f[k]
- }
- }
- },
- nh: function(c) {
- var d = this.Hn[c];
- if (!d) {
- var f = this.wr[c];
- f && ((d = this.Hn[f.toString()]) || delete this.wr[c])
- }
- d || C.log(C.n.RIa, c);
- return d
- },
- dt: function() {
- this.Hn = {};
- this.wr = {};
- this.bA = {}
- }
- };
- C.FB = {
- KLa: 0,
- dNa: 1,
- INT: 2,
- xLa: 3,
- JKa: 4,
- bG: 0,
- Eta: 0,
- hZ: t,
- mO: t,
- fZ: t,
- gZ: t,
- iZ: t,
- dPa: 0,
- wX: 0,
- bL: "",
- dH: {},
- nA: t,
- UF: function() {
- var c = this.dH;
- c["cocos2d.x.version"] = C.$S;
- c["cocos2d.x.compiled_with_profiler"] = t;
- c["cocos2d.x.compiled_with_gl_state_cache"] = C.an;
- this.nA = q
- },
- pVa: A("bG"),
- oVa: A("Eta"),
- qVa: A("wX"),
- $5a: A("mO"),
- a6a: A("hZ"),
- Z5a: B(t),
- b6a: B(t),
- W5a: B(t),
- X5a: A("fZ"),
- Y5a: A("gZ"),
- c6a: A("iZ"),
- CB: function(c) {
- return - 1 < this.bL.indexOf(c)
- },
- Qf: function(c, d) {
- this.nA || this.UF();
- var f = this.dH;
- return f[c] ? f[c] : d
- },
- ne: function(c, d) {
- this.dH[c] = d
- },
- Sya: function() {
- 0 === C.an && (C.log(""), C.log(C.n.Mxa), C.log(""))
- },
- Uza: function() {
- if (C.L !== C.cb) {
- this.nA || this.UF();
- var c = C.t,
- d = this.dH;
- d["gl.vendor"] = c.getParameter(c.VENDOR);
- d["gl.renderer"] = c.getParameter(c.RENDERER);
- d["gl.version"] = c.getParameter(c.VERSION);
- this.bL = "";
- for (var f = c.getSupportedExtensions(), g = 0; g < f.length; g++) this.bL += f[g] + " ";
- this.bG = c.getParameter(c.MAX_TEXTURE_SIZE);
- d["gl.max_texture_size"] = this.bG;
- this.wX = c.getParameter(c.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
- d["gl.max_texture_units"] = this.wX;
- this.hZ = this.CB("GL_IMG_texture_compression_pvrtc");
- d["gl.supports_PVRTC"] = this.hZ;
- this.mO = t;
- d["gl.supports_NPOT"] = this.mO;
- this.fZ = this.CB("GL_IMG_texture_format_BGRA888");
- d["gl.supports_BGRA8888"] = this.fZ;
- this.gZ = this.CB("GL_EXT_discard_framebuffer");
- d["gl.supports_discard_framebuffer"] = this.gZ;
- this.iZ = this.CB("vertex_array_object");
- d["gl.supports_vertex_array_object"] = this.iZ;
- C.DB()
- }
- },
- $_a: function(c) {
- this.nA || this.UF();
- var d = C.M.xd(c);
- d || e("Please load the resource first : " + c);
- C.assert(d, C.n.Oxa, c);
- if (d = d.data) for (var f in d) this.dH[f] = d[f];
- else C.log(C.n.Nxa, c)
- }
- };
- C.U.WS = function() {
- C.zLa = C.O.extend({
- H6a: u()
- });
- var c = C.ec.prototype;
- c.py = function(c) {
- var f = this.aa;
- this.Aia();
- var g = this.vn,
- h = g.jh.x / g.ia,
- k = g.jh.y / g.pa;
- switch (c) {
- case C.ec.Mna:
- C.Op(C.mq);
- C.kC();
- g = new C.Ia;
- C.q1(g, 0, f.width, 0, f.height, -1024, 1024);
- C.lC(g);
- C.Op(C.lq);
- C.kC();
- break;
- case C.ec.k7:
- var n = this.dI(),
- p = new C.Ia,
- g = new C.Ia;
- C.Op(C.mq);
- C.kC();
- C.TDa(p, f.width / f.height, 2 * n);
- C.lC(p);
- C.Op(C.lq);
- C.kC();
- n = C.nC(s, -h + f.width / 2, -k + f.height / 2, n);
- f = C.nC(s, -h + f.width / 2, -k + f.height / 2, 0);
- h = C.nC(s, 0, 1, 0);
- C.rfa(g, n, f, h);
- C.lC(g);
- break;
- case C.ec.Nna:
- break;
- default:
- C.log(C.n.Kla)
- }
- this.op = c;
- C.Ka.dispatchEvent(this.qM);
- C.$ha()
- };
- c.wha = function(c) {
- var f = C.t;
- c ? (f.clearDepth(1), f.enable(f.DEPTH_TEST), f.depthFunc(f.LEQUAL)) : f.disable(f.DEPTH_TEST)
- };
- c.W2 = function(c) {
- this.aa.width = C.Pb.width;
- this.aa.height = C.Pb.height;
- this.vn = c || C.view;
- c = C.FB;
- c.Uza();
- c.Sya();
- this.Kz();
- this.Fha();
- C.Ka && C.Ka.Ib(q)
- };
- c.dt = function() {
- var c = C.t;
- c.clear(c.COLOR_BUFFER_BIT | c.DEPTH_BUFFER_BIT)
- };
- c.vV = function() {
- C.Zr()
- };
- c.cV = function() {
- C.Yr()
- };
- c.Kz = function() {
- if (C.Gl) {
- if (! (C.ec.D$ == s || C.ec.D$ == t)) {
- var c = new C.Ma;
- c.Ng(C.ec.aA);
- c.Md();
- var f = C.view.LH().height / 320;
- 0 === f && (f = this.aa.height / 320);
- var g = new C.Gl;
- g.CY(q);
- g.sf("00.0", c, 12, 32, ".");
- g.scale = f;
- this.Gk = g;
- g = new C.Gl;
- g.CY(q);
- g.sf("0.000", c, 12, 32, ".");
- g.scale = f;
- this.Hk = g;
- g = new C.Gl;
- g.CY(q);
- g.sf("000", c, 12, 32, ".");
- g.scale = f;
- this.Rk = g;
- c = C.US;
- this.Rk.p(c.x, 34 * f + c.y);
- this.Hk.p(c.x, 17 * f + c.y);
- this.Gk.p(c)
- }
- } else this.Bra()
- };
- c.Bra = function() {
- var c = 0,
- c = this.aa.width > this.aa.height ? 0 | 24 * (this.aa.height / 320) : 0 | 24 * (this.aa.width / 320);
- this.Gk = C.fa.create("000.0", "Arial", c);
- this.Hk = C.fa.create("0.000", "Arial", c);
- this.Rk = C.fa.create("0000", "Arial", c);
- c = C.US;
- this.Rk.p(this.Rk.width / 2 + c.x, 5 * this.Rk.height / 2 + c.y);
- this.Hk.p(this.Hk.width / 2 + c.x, 3 * this.Hk.height / 2 + c.y);
- this.Gk.p(this.Gk.width / 2 + c.x, this.Gk.height / 2 + c.y)
- };
- c.Sxa = function(c) {
- var f = new C.Ia;
- C.X5(f);
- var g = new C.Ia;
- C.SDa(g, f);
- var f = f.c[14] / f.c[15],
- h = this.vn.LH(),
- k = new C.Zc;
- C.Bfa(k, new C.Zc(2 * c.x / h.width - 1, 1 - 2 * c.y / h.height, f), g);
- return C.d(k.x, k.y)
- };
- c.Uxa = function(c) {
- var f = new C.Ia;
- C.X5(f);
- var g = new C.Zc;
- C.Bfa(g, new C.Zc(c.x, c.y, 0), f);
- c = this.vn.LH();
- return C.d(c.width * (0.5 * g.x + 0.5), c.height * (0.5 * -g.y + 0.5))
- };
- c.aI = function() {
- return this.vn.aI()
- };
- c.L0 = function() {
- return this.vn.L0()
- };
- c.dI = function() {
- return this.aa.height / 1.1566
- };
- c.Aia = function() {
- var c = this.vn;
- if (c) {
- var f = this.aa;
- c.AIa( - c.jh.x / c.ia, -c.jh.y / c.pa, f.width, f.height)
- }
- };
- c.DVa = A("vn");
- c.gWa = A("op");
- c.WGa = function() {
- C.Gm(C.Ic, C.Hc)
- };
- c.Fha = function() {
- this.WGa();
- this.wha(t);
- this.py(this.op);
- C.t.clearColor(0, 0, 0, 1)
- }
- };
- C.kl = 0;
- C.X5 = function(c) {
- var d = new C.Ia;
- C.rQ(C.mq, d);
- var f = new C.Ia;
- C.rQ(C.lq, f);
- C.Qp(c, d, f)
- };
- C.ec = C.O.extend({
- YOa: t,
- eG: t,
- xe: t,
- GN: t,
- Tt: t,
- TE: 0,
- FX: 0,
- op: 0,
- gz: 0,
- Ul: 1,
- yF: t,
- it: 0,
- zW: 0,
- Gk: s,
- Hk: s,
- Rk: s,
- aa: s,
- At: s,
- ep: s,
- qN: s,
- vn: s,
- rp: s,
- hY: s,
- gg: s,
- Lh: 0,
- tO: 0,
- vY: 0,
- zOa: s,
- hh: s,
- Pl: s,
- qM: s,
- qW: s,
- sW: s,
- rW: s,
- ctor: function() {
- var c = this;
- c.At = Date.now();
- C.Ka.MZ(C.qf.JD,
- function() {
- c.At = Date.now()
- })
- },
- j: function() {
- this.FX = this.TE = 1 / C.wya;
- this.rp = [];
- this.op = C.ec.Ona;
- this.hY = s;
- this.zW = this.gz = 0;
- this.yF = t;
- this.tO = this.Lh = 0;
- this.At = Date.now();
- this.GN = this.xe = t;
- this.aa = C.size(0, 0);
- this.vn = s;
- this.Ul = 1;
- this.hh = new C.cz;
- this.Pl = C.k4 ? new C.k4: s;
- this.hh.lR(this.Pl, C.cz.BK, t);
- this.qW = new C.jq(C.ec.Ula);
- this.qW.setUserData(this);
- this.sW = new C.jq(C.ec.Wla);
- this.sW.setUserData(this);
- this.rW = new C.jq(C.ec.Vla);
- this.rW.setUserData(this);
- this.qM = new C.jq(C.ec.ama);
- this.qM.setUserData(this);
- return q
- },
- xxa: function() {
- var c = Date.now();
- this.eG ? (this.it = 0, this.eG = t) : this.it = (c - this.At) / 1E3;
- 0 < C.qf.gj[C.qf.Wm.CH] && 0.2 < this.it && (this.it = 1 / 60);
- this.At = c
- },
- Qya: function() {
- this.xxa();
- this.xe || (this.hh.update(this.it), C.Ka.dispatchEvent(this.rW));
- this.dt();
- this.ep && this.OHa();
- this.vV && this.vV();
- this.gg && (this.gg.J(), C.Ka.dispatchEvent(this.sW));
- this.qN && this.qN.J();
- this.yF && this.Dva();
- this.cV && this.cV();
- C.Ka.dispatchEvent(this.qW);
- this.tO++;
- this.yF && this.fra()
- },
- vV: s,
- cV: s,
- end: function() {
- this.GN = q
- },
- JTa: A("Ul"),
- wVa: A("qN"),
- vXa: A("aa"),
- bI: function() {
- return C.size(this.aa.width * this.Ul, this.aa.height * this.Ul)
- },
- pause: function() {
- this.xe || (this.FX = this.TE, this.hha(0.25), this.xe = q)
- },
- j1a: function() {
- C.assert(this.gg, C.n.Hla);
- this.rp.pop();
- var c = this.rp.length;
- 0 == c ? this.end() : (this.Tt = q, this.ep = this.rp[c - 1])
- },
- WFa: function() {
- C.oH.dt();
- C.Fe.dt();
- C.kb.dt()
- },
- XFa: function() {
- this.Em().FJ();
- C.Ka && C.Ka.Ib(t);
- this.gg && (this.gg.ph(), this.gg.Na(), this.gg.ze());
- this.ep = this.gg = s;
- this.rp.length = 0;
- this.Qia();
- this.WFa();
- C.DB()
- },
- ZFa: function(c) {
- C.assert(c, C.n.y5);
- this.Tt = t;
- this.rp.push(c);
- this.ep = c
- },
- PC: function(c) {
- C.assert(c, C.n.y5);
- if (this.gg) {
- var d = this.rp.length;
- 0 === d ? (this.Tt = q, this.rp[d] = c) : (this.Tt = q, this.rp[d - 1] = c);
- this.ep = c
- } else this.ZFa(c),
- this.Nia()
- },
- nk: function() {
- this.xe && (this.hha(this.FX), (this.At = Date.now()) || C.log(C.n.Jla), this.xe = t, this.it = 0)
- },
- J3a: function(c) {
- c != this.Ul && (this.Ul = c, this.Kz())
- },
- Q3a: u(),
- B4a: x("eG"),
- OHa: function() {
- var c = t,
- d = t;
- C.tb && (c = this.gg ? this.gg instanceof C.tb: t, d = this.ep ? this.ep instanceof C.tb: t);
- if (!d) {
- if (d = this.gg) d.ph(),
- d.Na();
- this.Tt && d && d.ze()
- }
- this.gg = this.ep;
- this.ep = s; ! c && this.gg != s && (this.gg.Z(), this.gg.qj())
- },
- D4a: x("qN"),
- ZB: A("hY"),
- bq: x("hY"),
- Dva: function() {
- this.Lh++;
- this.gz += this.it;
- this.Gk && this.Hk && this.Rk ? (this.gz > C.Ela && (this.Hk.string = this.vY.toFixed(3), this.zW = this.Lh / this.gz, this.gz = this.Lh = 0, this.Gk.string = this.zW.toFixed(1), this.Rk.string = (0 | C.kl).toString()), this.Gk.J(), this.Hk.J(), this.Rk.J()) : this.Kz();
- C.kl = 0
- },
- JYa: A("Tt"),
- rWa: A("gg"),
- NSa: A("TE"),
- nYa: A("yF"),
- qHa: x("yF"),
- wWa: A("vY"),
- yYa: A("eG"),
- DYa: A("xe"),
- eXa: A("tO"),
- k1a: function() {
- this.LFa(1)
- },
- LFa: function(c) {
- C.assert(this.gg, C.n.Ila);
- var d = this.rp,
- f = d.length;
- if (0 == f) this.end();
- else if (! (c > f)) {
- for (; f > c;) {
- var g = d.pop();
- g.running && (g.ph(), g.Na());
- g.ze();
- f--
- }
- this.ep = d[d.length - 1];
- this.Tt = t
- }
- },
- Em: A("hh"),
- nia: function(c) {
- this.hh != c && (this.hh = c)
- },
- UB: A("Pl"),
- eha: function(c) {
- this.Pl != c && (this.Pl = c)
- },
- bUa: A("it"),
- Kz: s,
- fra: function() {
- this.vY = (Date.now() - this.At) / 1E3
- }
- });
- C.ec.ama = "director_projection_changed";
- C.ec.Ula = "director_after_draw";
- C.ec.Wla = "director_after_visit";
- C.ec.Vla = "director_after_update";
- C.Lla = C.ec.extend({
- kQ: t,
- Nia: function() {
- this.eG = q;
- this.kQ = t
- },
- Ofa: function() {
- this.GN ? (this.GN = t, this.XFa()) : this.kQ || this.Qya()
- },
- Qia: function() {
- this.kQ = q
- },
- hha: function(c) {
- this.TE = c;
- this.kQ || (this.Qia(), this.Nia())
- }
- });
- C.ec.z3 = s;
- C.ec.yda = q;
- C.ec.KW = function() {
- C.ec.yda && (C.ec.yda = t, C.ec.z3 = new C.Lla, C.ec.z3.j());
- return C.ec.z3
- };
- C.wya = 60;
- C.ec.Mna = 0;
- C.ec.k7 = 1;
- C.ec.Nna = 3;
- C.ec.Ona = C.ec.k7;
- C.L === C.cb ? (H = C.ec.prototype, H.py = function(c) {
- this.op = c;
- C.Ka.dispatchEvent(this.qM)
- },
- H.wha = u(), H.W2 = function(c) {
- this.aa.width = C.Pb.width;
- this.aa.height = C.Pb.height;
- this.vn = c || C.view;
- C.Ka && C.Ka.Ib(q)
- },
- H.dt = function() {
- var c = this.vn.jh;
- C.t.clearRect( - c.x, c.y, c.width, -c.height)
- },
- H.Kz = function() {
- var c = 0,
- c = this.aa.width > this.aa.height ? 0 | 24 * (this.aa.height / 320) : 0 | 24 * (this.aa.width / 320);
- this.Gk = C.fa.create("000.0", "Arial", c);
- this.Hk = C.fa.create("0.000", "Arial", c);
- this.Rk = C.fa.create("0000", "Arial", c);
- c = C.US;
- this.Rk.p(this.Rk.width / 2 + c.x, 5 * this.Rk.height / 2 + c.y);
- this.Hk.p(this.Hk.width / 2 + c.x, 3 * this.Hk.height / 2 + c.y);
- this.Gk.p(this.Gk.width / 2 + c.x, this.Gk.height / 2 + c.y)
- },
- H.aI = A("aa"), H.L0 = function() {
- return C.d(0, 0)
- }) : (C.ec.aA = new Image, C.qb(C.ec.aA, "load",
- function() {
- C.ec.D$ = q
- }), C.aA && (C.ec.aA.src = C.aA), C.assert("function" === typeof C.U.WS, C.n.Bf, "CCDirectorWebGL.js"), C.U.WS(), delete C.U.WS);
- C.FD = C.O.extend({
- BF: s,
- CF: s,
- DF: s,
- Dz: s,
- Ez: s,
- Fz: s,
- ZG: s,
- $G: s,
- aH: s,
- Ac: s,
- bN: s,
- ctor: function() {
- this.bN = new C.Ia;
- this.restore()
- },
- description: function() {
- return "\x3cCCCamera | center \x3d(" + this.Dz + "," + this.Ez + "," + this.Fz + ")\x3e"
- },
- xha: x("Ac"),
- h1: A("Ac"),
- restore: function() {
- this.BF = this.CF = 0;
- this.DF = C.FD.dI();
- this.ZG = this.Dz = this.Ez = this.Fz = 0;
- this.$G = 1;
- this.aH = 0;
- C.Ox(this.bN);
- this.Ac = t
- },
- yI: function() {
- if (this.Ac) {
- var c = new C.Zc,
- d = new C.Zc,
- f = new C.Zc;
- C.nC(c, this.BF, this.CF, this.DF);
- C.nC(d, this.Dz, this.Ez, this.Fz);
- C.nC(f, this.ZG, this.$G, this.aH);
- C.rfa(this.bN, c, d, f);
- this.Ac = t
- }
- C.lC(this.bN)
- },
- X3a: function(c, d, f) {
- this.Dha(c, d, f)
- },
- Dha: function(c, d, f) {
- this.BF = c;
- this.CF = d;
- this.DF = f;
- this.Ac = q
- },
- B3a: function(c, d, f) {
- this.gHa(c, d, f)
- },
- gHa: function(c, d, f) {
- this.Dz = c;
- this.Ez = d;
- this.Fz = f;
- this.Ac = q
- },
- J5a: function(c, d, f) {
- this.wIa(c, d, f)
- },
- wIa: function(c, d, f) {
- this.ZG = c;
- this.$G = d;
- this.aH = f;
- this.Ac = q
- },
- BUa: function() {
- return {
- x: this.BF,
- y: this.CF,
- f: this.DF
- }
- },
- Yda: function() {
- return {
- x: this.BF,
- y: this.CF,
- f: this.DF
- }
- },
- ATa: function() {
- return {
- x: this.Dz,
- y: this.Ez,
- f: this.Fz
- }
- },
- Oda: function() {
- return {
- x: this.Dz,
- y: this.Ez,
- f: this.Fz
- }
- },
- pXa: function() {
- return {
- x: this.ZG,
- y: this.$G,
- f: this.aH
- }
- },
- kCa: function() {
- return {
- x: this.ZG,
- y: this.$G,
- f: this.aH
- }
- },
- TNa: u()
- });
- C.FD.dI = function() {
- return C.rK
- };
- C.QMa = C.BK + 1;
- C.yB = function(c, d) {
- if (c && 0 < c.length) for (var f = 0; f < c.length; f++) if (! (c[f] instanceof d)) return C.log(C.n.yB),
- t;
- return q
- };
- C.Id = function(c, d) {
- for (var f = 0,
- g = c.length; f < g; f++) if (c[f] == d) {
- c.splice(f, 1);
- break
- }
- };
- C.sQa = function(c, d) {
- for (var f = 0,
- g = d.length; f < g; f++) C.Id(c, d[f])
- };
- C.rQa = function(c, d, f) {
- c.splice.apply(c, [f, 0].concat(d));
- return c
- };
- C.y6 = function(c, d, f) {
- this.next = this.l1a = s;
- this.target = c;
- this.UFa = d;
- this.paused = f;
- this.GQ = t
- };
- C.d6 = function(c, d, f) {
- this.list = c;
- this.Dx = d;
- this.target = f;
- this.WP = s
- };
- C.wma = function(c, d) {
- this.eq = s;
- this.target = c;
- this.fD = 0;
- this.BH = this.AH = s;
- this.paused = d;
- this.WP = s
- };
- C.b8 = C.O.extend({
- Zq: 0,
- Xf: s,
- Xc: s,
- Bc: 0,
- qba: t,
- KO: t,
- kB: 0,
- lY: 0,
- WL: 0,
- UUa: A("Zq"),
- setInterval: x("Zq"),
- tTa: A("Xf"),
- ctor: function(c, d, f, g, h) {
- this.Xc = c;
- this.Xf = d;
- this.Bc = -1;
- this.Zq = f || 0;
- this.WL = h || 0;
- this.KO = 0 < this.WL;
- this.lY = g == s ? C.xv: g;
- this.qba = this.lY == C.xv
- },
- jW: function() {
- if ("string" == typeof this.Xf) this.Xc[this.Xf](this.Bc);
- else this.Xf.call(this.Xc, this.Bc)
- },
- update: function(c) {
- if ( - 1 == this.Bc) this.kB = this.Bc = 0;
- else {
- var d = this.Xc,
- f = this.Xf;
- this.Bc += c;
- this.qba && !this.KO ? this.Bc >= this.Zq && (d && f && this.jW(), this.Bc = 0) : (this.KO ? this.Bc >= this.WL && (d && f && this.jW(), this.Bc -= this.WL, this.kB += 1, this.KO = t) : this.Bc >= this.Zq && (d && f && this.jW(), this.Bc = 0, this.kB += 1), this.kB > this.lY && C.Q.Em().W3(d, f))
- }
- }
- });
- C.cz = C.O.extend({
- fu: 1,
- ex: s,
- Wq: s,
- lL: s,
- Vq: s,
- ZNa: s,
- Cf: s,
- Vo: t,
- DO: t,
- ctor: function() {
- this.fu = 1;
- this.ex = [[], [], []];
- this.Wq = {};
- this.lL = [];
- this.Vq = {};
- this.UE = [];
- this.Cf = s;
- this.DO = this.Vo = t
- },
- kY: function(c) {
- delete this.Vq[c.target.ub];
- C.Id(this.UE, c);
- c.b8 = s;
- c.target = s
- },
- gba: function(c) {
- if (c = this.Wq[c.target.ub]) C.Id(c.list, c.Dx),
- delete this.Wq[c.target.ub],
- C.Id(this.lL, c),
- c.Dx = s,
- c.target = s
- },
- Taa: function(c, d, f, g) {
- g = new C.y6(d, f, g);
- if (c) {
- for (var h = c.length - 1,
- k = 0; k <= h && !(f < c[k].UFa); k++);
- c.splice(k, 0, g)
- } else c = [],
- c.push(g);
- f = new C.d6(c, g, d);
- this.lL.push(f);
- this.Wq[d.ub] = f;
- return c
- },
- Pqa: function(c, d, f) {
- f = new C.y6(d, 0, f);
- c.push(f);
- c = new C.d6(c, f, d);
- this.lL.push(c);
- this.Wq[d.ub] = c
- },
- sIa: x("fu"),
- $Wa: A("fu"),
- update: function(c) {
- var d = this.ex,
- f = this.UE,
- g, h, k;
- this.DO = q;
- 1 != this.fu && (c *= this.fu);
- h = 0;
- for (k = d.length; h < k && 0 <= h; h++) for (var n = this.ex[h], p = 0, r = n.length; p < r; p++) g = n[p],
- !g.paused && !g.GQ && g.target.update(c);
- h = 0;
- for (k = f.length; h < k; h++) {
- g = f[h];
- if (!g) break;
- this.Cf = g;
- this.Vo = t;
- if (!g.paused) for (g.fD = 0; g.fD < g.eq.length; g.fD++) g.AH = g.eq[g.fD],
- g.BH = t,
- g.AH.update(c),
- g.AH = s;
- this.Vo && 0 == g.eq.length && (this.kY(g), h--)
- }
- h = 0;
- for (k = d.length; h < k; h++) {
- n = this.ex[h];
- p = 0;
- for (r = n.length; p < r;) {
- g = n[p];
- if (!g) break;
- g.GQ ? this.gba(g) : p++
- }
- }
- this.DO = t;
- this.Cf = s
- },
- y2: function(c, d, f, g, h, k) {
- C.assert(d, C.n.Doa);
- C.assert(c, C.n.Eoa);
- f = f || 0;
- g = g == s ? C.xv: g;
- h = h || 0;
- k = k || t;
- var n = this.Vq[c.ub];
- n || (n = new C.wma(c, k), this.UE.push(n), this.Vq[c.ub] = n);
- if (n.eq == s) n.eq = [];
- else for (var p = 0; p < n.eq.length; p++) if (k = n.eq[p], d == k.Xf) {
- C.log(C.n.Coa, k.Zq.toFixed(4), f.toFixed(4));
- k.Zq = f;
- return
- }
- k = new C.b8(c, d, f, g, h);
- n.eq.push(k)
- },
- lR: function(c, d, f) {
- if (c !== s) {
- var g = this.ex,
- h = this.Wq[c.ub];
- h ? h.Dx.GQ = t: 0 == d ? this.Pqa(g[1], c, f) : 0 > d ? g[0] = this.Taa(g[0], c, d, f) : g[2] = this.Taa(g[2], c, d, f)
- }
- },
- W3: function(c, d) {
- if (! (c == s || d == s)) {
- var f = this.Vq[c.ub];
- if (f) for (var g = f.eq,
- h = 0,
- k = g.length; h < k; h++) {
- var n = g[h];
- if (d == n.Xf) {
- n == f.AH && !f.BH && (f.BH = q);
- g.splice(h, 1);
- f.fD >= h && f.fD--;
- 0 == g.length && (this.Cf == f ? this.Vo = q: this.kY(f));
- break
- }
- }
- }
- },
- GJ: function(c) {
- c != s && (c = this.Wq[c.ub], c != s && (this.DO ? c.Dx.GQ = q: this.gba(c.Dx)))
- },
- dja: function(c) {
- if (c != s) {
- var d = this.Vq[c.ub];
- if (d) {
- var f = d.eq; ! d.BH && 0 <= f.indexOf(d.AH) && (d.BH = q);
- f.length = 0;
- this.Cf == d ? this.Vo = q: this.kY(d)
- }
- this.GJ(c)
- }
- },
- FJ: function() {
- this.uJa(C.cz.BK)
- },
- uJa: function(c) {
- for (var d = this.UE,
- f = this.ex,
- g = 0,
- h = d.length; g < h; g++) this.dja(d[g].target);
- for (g = 2; 0 <= g; g--) if (! (1 == g && 0 < c || 0 == g && 0 <= c)) for (var d = f[g], h = 0, k = d.length; h < k; h++) this.GJ(d[h].target)
- },
- $0a: function() {
- return this.CFa(C.cz.BK)
- },
- CFa: function() {
- for (var c = [], d, f = this.UE, g = this.ex, h = 0, k = f.length; h < k; h++) if (d = f[h]) d.paused = q,
- c.push(d.target);
- h = 0;
- for (k = g.length; h < k; h++) for (var f = g[h], n = 0, p = f.length; n < p; n++) if (d = f[n]) d.paused = q,
- c.push(d.target);
- return c
- },
- FGa: function(c) {
- if (c) for (var d = 0; d < c.length; d++) this.Mm(c[d])
- },
- hs: function(c) {
- C.assert(c, C.n.Aoa);
- var d = this.Vq[c.ub];
- d && (d.paused = q); (c = this.Wq[c.ub]) && (c.Dx.paused = q)
- },
- Mm: function(c) {
- C.assert(c, C.n.Boa);
- var d = this.Vq[c.ub];
- d && (d.paused = t); (c = this.Wq[c.ub]) && (c.Dx.paused = t)
- },
- MYa: function(c) {
- C.assert(c, C.n.zoa);
- return (c = this.Vq[c.ub]) ? c.paused: t
- }
- });
- C.cz.BK = -2147483648;
- C.V6 = 2 * Math.PI;
- C.z5 = C.O.extend({
- BV: [],
- t: s,
- ctor: x("t"),
- S_: function(c, d) {
- d || (d = 1);
- var f = C.view.ia,
- g = C.d(c.x * f, c.y * C.view.pa);
- this.t.beginPath();
- this.t.arc(g.x, -g.y, d * f, 0, 2 * Math.PI, t);
- this.t.closePath();
- this.t.fill()
- },
- Oya: function(c, d, f) {
- if (c != s) {
- f || (f = 1);
- d = this.t;
- var g = C.view.ia,
- h = C.view.pa;
- d.beginPath();
- for (var k = 0,
- n = c.length; k < n; k++) d.arc(c[k].x * g, -c[k].y * h, f * g, 0, 2 * Math.PI, t);
- d.closePath();
- d.fill()
- }
- },
- Tn: function(c, d) {
- var f = this.t,
- g = C.view.ia,
- h = C.view.pa;
- f.beginPath();
- f.moveTo(c.x * g, -c.y * h);
- f.lineTo(d.x * g, -d.y * h);
- f.closePath();
- f.stroke()
- },
- U_: function(c, d) {
- this.Tn(C.d(c.x, c.y), C.d(d.x, c.y));
- this.Tn(C.d(d.x, c.y), C.d(d.x, d.y));
- this.Tn(C.d(d.x, d.y), C.d(c.x, d.y));
- this.Tn(C.d(c.x, d.y), C.d(c.x, c.y))
- },
- X_: function(c, d, f) {
- c = [c, C.d(d.x, c.y), d, C.d(c.x, d.y)];
- this.W_(c, 4, f)
- },
- Of: function(c, d, f, g) {
- g = g || t;
- if (c != s) {
- 3 > c.length && e(Error("Polygon's point must greater than 2"));
- var h = c[0];
- d = this.t;
- var k = C.view.ia,
- n = C.view.pa;
- d.beginPath();
- d.moveTo(h.x * k, -h.y * n);
- for (var h = 1,
- p = c.length; h < p; h++) d.lineTo(c[h].x * k, -c[h].y * n);
- f && d.closePath();
- g ? d.fill() : d.stroke()
- }
- },
- W_: function(c, d, f) {
- this.tj(f.r, f.g, f.b, f.a);
- this.Of(c, d, q, q)
- },
- O_: function(c, d, f, g, h) {
- h = h || t;
- g = this.t;
- var k = C.view.ia,
- n = C.view.pa;
- g.beginPath();
- g.arc(0 | c.x * k, 0 | -(c.y * n), d * k, -f, -(f - 2 * Math.PI), t);
- h && g.lineTo(0 | c.x * k, 0 | -(c.y * n));
- g.stroke()
- },
- T_: function(c, d, f, g) {
- for (var h = this.BV,
- k = h.length = 0,
- n = 0; n < g; n++) h.push(C.d(Math.pow(1 - k, 2) * c.x + 2 * (1 - k) * k * d.x + k * k * f.x, Math.pow(1 - k, 2) * c.y + 2 * (1 - k) * k * d.y + k * k * f.y)),
- k += 1 / g;
- h.push(C.d(f.x, f.y));
- this.Of(h, g + 1, t, t)
- },
- P_: function(c, d, f, g, h) {
- for (var k = this.BV,
- n = k.length = 0,
- p = 0; p < h; p++) k.push(C.d(Math.pow(1 - n, 3) * c.x + 3 * Math.pow(1 - n, 2) * n * d.x + 3 * (1 - n) * n * n * f.x + n * n * n * g.x, Math.pow(1 - n, 3) * c.y + 3 * Math.pow(1 - n, 2) * n * d.y + 3 * (1 - n) * n * n * f.y + n * n * n * g.y)),
- n += 1 / h;
- k.push(C.d(g.x, g.y));
- this.Of(k, h + 1, t, t)
- },
- N_: function(c, d) {
- this.zx(c, 0.5, d)
- },
- zx: function(c, d, f) {
- C.t.strokeStyle = "rgba(255,255,255,1)";
- var g = this.BV;
- g.length = 0;
- for (var h, k, n = 1 / c.length,
- p = 0; p < f + 1; p++) k = p / f,
- 1 == k ? (h = c.length - 1, k = 1) : (h = 0 | k / n, k = (k - n * h) / n),
- h = C.tla(C.og(c, h - 1), C.og(c, h - 0), C.og(c, h + 1), C.og(c, h + 2), d, k),
- g.push(h);
- this.Of(g, f + 1, t, t)
- },
- drawImage: function(c, d, f, g, h) {
- switch (arguments.length) {
- case 2:
- this.t.drawImage(c, d.x, -(d.y + c.height));
- break;
- case 3:
- this.t.drawImage(c, d.x, -(d.y + f.height), f.width, f.height);
- break;
- case 5:
- this.t.drawImage(c, d.x, d.y, f.width, f.height, g.x, -(g.y + h.height), h.width, h.height);
- break;
- default:
- e(Error("Argument must be non-nil"))
- }
- },
- Rya: function(c, d, f) {
- c = c || this.t;
- d *= C.view.ia;
- f = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b);
- c.fillStyle = f + ",1)";
- var g = d / 10;
- c.beginPath();
- c.moveTo( - d, d);
- c.lineTo(0, g);
- c.lineTo(d, d);
- c.lineTo(g, 0);
- c.lineTo(d, -d);
- c.lineTo(0, -g);
- c.lineTo( - d, -d);
- c.lineTo( - g, 0);
- c.lineTo( - d, d);
- c.closePath();
- c.fill();
- var h = c.createRadialGradient(0, 0, g, 0, 0, d);
- h.addColorStop(0, f + ", 1)");
- h.addColorStop(0.3, f + ", 0.8)");
- h.addColorStop(1, f + ", 0.0)");
- c.fillStyle = h;
- c.beginPath();
- c.arc(0, 0, d - g, 0, C.V6, t);
- c.closePath();
- c.fill()
- },
- Lya: function(c, d, f) {
- c = c || this.t;
- d *= C.view.ia;
- f = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b);
- var g = c.createRadialGradient(0, 0, d / 10, 0, 0, d);
- g.addColorStop(0, f + ", 1)");
- g.addColorStop(0.3, f + ", 0.8)");
- g.addColorStop(0.6, f + ", 0.4)");
- g.addColorStop(1, f + ", 0.0)");
- c.fillStyle = g;
- c.beginPath();
- c.arc(0, 0, d, 0, C.V6, t);
- c.closePath();
- c.fill()
- },
- fillText: function(c, d, f) {
- this.t.fillText(c, d, -f)
- },
- tj: function(c, d, f, g) {
- this.t.fillStyle = "rgba(" + c + "," + d + "," + f + "," + g / 255 + ")";
- this.t.strokeStyle = "rgba(" + c + "," + d + "," + f + "," + g / 255 + ")"
- },
- Y2: u(),
- Su: function(c) {
- this.t.lineWidth = c * C.view.ia
- }
- });
- C.Ola = C.O.extend({
- t: s,
- VF: t,
- Te: s,
- To: -1,
- Lj: s,
- TX: -1,
- SX: -1,
- ctor: function(c) {
- c == s && (c = C.t); ! c instanceof WebGLRenderingContext && e("Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext");
- this.t = c;
- this.Lj = new Float32Array([1, 1, 1, 1])
- },
- $r: function() {
- this.VF || (this.Te = C.ug.Xd(C.aU), this.To = this.t.getUniformLocation(this.Te.Lx(), "u_color"), this.TX = this.t.getUniformLocation(this.Te.Lx(), "u_pointSize"), this.VF = q)
- },
- ORa: function() {
- this.VF = t
- },
- S_: function(c) {
- this.$r();
- var d = this.t;
- this.Te.Af();
- this.Te.Bj();
- C.rf(C.Ch);
- d.uniform4fv(this.To, this.Lj);
- this.Te.sJ(this.TX, this.SX);
- var f = d.createBuffer();
- d.bindBuffer(d.ARRAY_BUFFER, f);
- d.bufferData(d.ARRAY_BUFFER, new Float32Array([c.x, c.y]), d.STATIC_DRAW);
- d.vertexAttribPointer(C.Lc, 2, d.FLOAT, t, 0, 0);
- d.drawArrays(d.POINTS, 0, 1);
- d.deleteBuffer(f);
- C.nl()
- },
- Oya: function(c) {
- if (c && 0 != c.length) {
- this.$r();
- var d = this.t;
- this.Te.Af();
- this.Te.Bj();
- C.rf(C.Ch);
- d.uniform4fv(this.To, this.Lj);
- this.Te.sJ(this.TX, this.SX);
- var f = d.createBuffer();
- d.bindBuffer(d.ARRAY_BUFFER, f);
- d.bufferData(d.ARRAY_BUFFER, this.DN(c), d.STATIC_DRAW);
- d.vertexAttribPointer(C.Lc, 2, d.FLOAT, t, 0, 0);
- d.drawArrays(d.POINTS, 0, c.length);
- d.deleteBuffer(f);
- C.nl()
- }
- },
- DN: function(c) {
- for (var d = new Float32Array(2 * c.length), f = 0; f < c.length; f++) d[2 * f] = c[f].x,
- d[2 * f + 1] = c[f].y;
- return d
- },
- Tn: function(c, d) {
- this.$r();
- var f = this.t;
- this.Te.Af();
- this.Te.Bj();
- C.rf(C.Ch);
- f.uniform4fv(this.To, this.Lj);
- var g = f.createBuffer();
- f.bindBuffer(f.ARRAY_BUFFER, g);
- f.bufferData(f.ARRAY_BUFFER, this.DN([c, d]), f.STATIC_DRAW);
- f.vertexAttribPointer(C.Lc, 2, f.FLOAT, t, 0, 0);
- f.drawArrays(f.LINES, 0, 2);
- f.deleteBuffer(g);
- C.nl()
- },
- U_: function(c, d) {
- this.Tn(C.d(c.x, c.y), C.d(d.x, c.y));
- this.Tn(C.d(d.x, c.y), C.d(d.x, d.y));
- this.Tn(C.d(d.x, d.y), C.d(c.x, d.y));
- this.Tn(C.d(c.x, d.y), C.d(c.x, c.y))
- },
- X_: function(c, d, f) {
- c = [c, C.d(d.x, c.y), d, C.d(c.x, d.y)];
- this.W_(c, 4, f)
- },
- Of: function(c, d, f) {
- this.$r();
- d = this.t;
- this.Te.Af();
- this.Te.Bj();
- C.rf(C.Ch);
- d.uniform4fv(this.To, this.Lj);
- var g = d.createBuffer();
- d.bindBuffer(d.ARRAY_BUFFER, g);
- d.bufferData(d.ARRAY_BUFFER, this.DN(c), d.STATIC_DRAW);
- d.vertexAttribPointer(C.Lc, 2, d.FLOAT, t, 0, 0);
- f ? d.drawArrays(d.LINE_LOOP, 0, c.length) : d.drawArrays(d.LINE_STRIP, 0, c.length);
- d.deleteBuffer(g);
- C.nl()
- },
- W_: function(c, d, f) {
- this.$r();
- f && this.tj(f.r, f.g, f.b, f.a);
- d = this.t;
- this.Te.Af();
- this.Te.Bj();
- C.rf(C.Ch);
- d.uniform4fv(this.To, this.Lj);
- f = d.createBuffer();
- d.bindBuffer(d.ARRAY_BUFFER, f);
- d.bufferData(d.ARRAY_BUFFER, this.DN(c), d.STATIC_DRAW);
- d.vertexAttribPointer(C.Lc, 2, d.FLOAT, t, 0, 0);
- d.drawArrays(d.TRIANGLE_FAN, 0, c.length);
- d.deleteBuffer(f);
- C.nl()
- },
- O_: function(c, d, f, g, h) {
- this.$r();
- var k = 1;
- h && k++;
- var n = 2 * Math.PI / g;
- if (h = new Float32Array(2 * (g + 2))) {
- for (var p = 0; p <= g; p++) {
- var r = p * n,
- v = d * Math.sin(r + f) + c.y;
- h[2 * p] = d * Math.cos(r + f) + c.x;
- h[2 * p + 1] = v
- }
- h[2 * (g + 1)] = c.x;
- h[2 * (g + 1) + 1] = c.y;
- c = this.t;
- this.Te.Af();
- this.Te.Bj();
- C.rf(C.Ch);
- c.uniform4fv(this.To, this.Lj);
- d = c.createBuffer();
- c.bindBuffer(c.ARRAY_BUFFER, d);
- c.bufferData(c.ARRAY_BUFFER, h, c.STATIC_DRAW);
- c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0);
- c.drawArrays(c.LINE_STRIP, 0, g + k);
- c.deleteBuffer(d);
- C.nl()
- }
- },
- T_: function(c, d, f, g) {
- this.$r();
- for (var h = new Float32Array(2 * (g + 1)), k = 0, n = 0; n < g; n++) h[2 * n] = Math.pow(1 - k, 2) * c.x + 2 * (1 - k) * k * d.x + k * k * f.x,
- h[2 * n + 1] = Math.pow(1 - k, 2) * c.y + 2 * (1 - k) * k * d.y + k * k * f.y,
- k += 1 / g;
- h[2 * g] = f.x;
- h[2 * g + 1] = f.y;
- c = this.t;
- this.Te.Af();
- this.Te.Bj();
- C.rf(C.Ch);
- c.uniform4fv(this.To, this.Lj);
- d = c.createBuffer();
- c.bindBuffer(c.ARRAY_BUFFER, d);
- c.bufferData(c.ARRAY_BUFFER, h, c.STATIC_DRAW);
- c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0);
- c.drawArrays(c.LINE_STRIP, 0, g + 1);
- c.deleteBuffer(d);
- C.nl()
- },
- P_: function(c, d, f, g, h) {
- this.$r();
- for (var k = new Float32Array(2 * (h + 1)), n = 0, p = 0; p < h; p++) k[2 * p] = Math.pow(1 - n, 3) * c.x + 3 * Math.pow(1 - n, 2) * n * d.x + 3 * (1 - n) * n * n * f.x + n * n * n * g.x,
- k[2 * p + 1] = Math.pow(1 - n, 3) * c.y + 3 * Math.pow(1 - n, 2) * n * d.y + 3 * (1 - n) * n * n * f.y + n * n * n * g.y,
- n += 1 / h;
- k[2 * h] = g.x;
- k[2 * h + 1] = g.y;
- c = this.t;
- this.Te.Af();
- this.Te.Bj();
- C.rf(C.Ch);
- c.uniform4fv(this.To, this.Lj);
- d = c.createBuffer();
- c.bindBuffer(c.ARRAY_BUFFER, d);
- c.bufferData(c.ARRAY_BUFFER, k, c.STATIC_DRAW);
- c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0);
- c.drawArrays(c.LINE_STRIP, 0, h + 1);
- c.deleteBuffer(d);
- C.nl()
- },
- N_: function(c, d) {
- this.zx(c, 0.5, d)
- },
- zx: function(c, d, f) {
- this.$r();
- for (var g = new Float32Array(2 * (f + 1)), h, k, n = 1 / c.length, p = 0; p < f + 1; p++) k = p / f,
- 1 == k ? (h = c.length - 1, k = 1) : (h = 0 | k / n, k = (k - n * h) / n),
- h = C.tla(C.og(c, h - 1), C.og(c, h), C.og(c, h + 1), C.og(c, h + 2), d, k),
- g[2 * p] = h.x,
- g[2 * p + 1] = h.y;
- c = this.t;
- this.Te.Af();
- this.Te.Bj();
- C.rf(C.Ch);
- c.uniform4fv(this.To, this.Lj);
- d = c.createBuffer();
- c.bindBuffer(c.ARRAY_BUFFER, d);
- c.bufferData(c.ARRAY_BUFFER, g, c.STATIC_DRAW);
- c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0);
- c.drawArrays(c.LINE_STRIP, 0, f + 1);
- c.deleteBuffer(d);
- C.nl()
- },
- tj: function(c, d, f, g) {
- this.Lj[0] = c / 255;
- this.Lj[1] = d / 255;
- this.Lj[2] = f / 255;
- this.Lj[3] = g / 255
- },
- Y2: function(c) {
- this.SX = c * C.Ec()
- },
- Su: function(c) {
- this.t.lineWidth && this.t.lineWidth(c)
- }
- });
- C.U.QU = function() {
- var c = C.fa.prototype;
- c.G = C.u.prototype.G;
- c.Yj = function() {
- this.Dc = q;
- var c = this.Uw,
- f = this.Vw;
- this.aO = "rgba(128,128,128," + this.sr + ")";
- this.tM = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + ", 1)";
- this.gO = "rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + ", 1)"
- };
- c.Tb = C.u.prototype.Tb;
- c.K = C.u.prototype.K;
- c.dc = C.u.prototype.dc;
- c.Z0 = function(c, f) {
- if (!C.u.prototype.j.call(this)) return t;
- this.shaderProgram = C.ug.Xd(C.fa.Bqa);
- this.uZ(f, t);
- this.string = c;
- return q
- };
- c.zR = function(c) {
- var f = this.Vw;
- if (f.r != c.r || f.g != c.g || f.b != c.b) f.r = c.r,
- f.g = c.g,
- f.b = c.b,
- this.Yj(),
- this.Dc = q
- };
- c.ka = function(c) {
- if (this.qd && "" != this.qd) {
- c = c || C.t;
- var f = this.da;
- f && f.de && (this.pd.Af(), this.pd.Bj(), C.Gm(this.C.src, this.C.ga), C.yi(f), C.rf(C.Dv), c.bindBuffer(c.ARRAY_BUFFER, this.HN), this.Ti && (c.bufferData(c.ARRAY_BUFFER, this.Td.WO, c.STATIC_DRAW), this.Ti = t), c.vertexAttribPointer(C.Lc, 3, c.FLOAT, t, 24, 0), c.vertexAttribPointer(C.Vg, 2, c.FLOAT, t, 24, 16), c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, 24, 12), c.drawArrays(c.TRIANGLE_STRIP, 0, 4));
- if (1 === C.Es) c = this.Td,
- c = [C.d(c.X.m.x, c.X.m.y), C.d(c.T.m.x, c.T.m.y), C.d(c.Y.m.x, c.Y.m.y), C.d(c.V.m.x, c.V.m.y)],
- C.Df.Of(c, 4, q);
- else if (2 === C.Es) {
- c = this.WH().ca;
- var f = this.offsetX,
- g = this.offsetY;
- c = [C.d(f, g), C.d(f + c.width, g), C.d(f + c.width, g + c.height), C.d(f, g + c.height)];
- C.Df.Of(c, 4, q)
- }
- C.kl++
- }
- };
- c.qc = C.u.prototype.qc
- };
- C.U.OT = function() {
- var c = C.fa.prototype;
- C.e(c, "color", c.Xa, c.G);
- C.e(c, "opacity", c.rb, c.K);
- C.e(c, "string", c.Wb, c.sa);
- C.e(c, "textAlign", c.EAa, c.S2);
- C.e(c, "verticalAlign", c.pCa, c.y3);
- C.e(c, "fontSize", c.Vn, c.Od);
- C.e(c, "fontName", c.Fp, c.Zd);
- C.e(c, "font", c.bw, c.rr);
- C.e(c, "boundingWidth", c.KF, c.VN);
- C.e(c, "boundingHeight", c.IW, c.UN);
- C.e(c, "fillStyle", c.msa, c.zR);
- C.e(c, "strokeStyle", c.Msa, c.vva);
- C.e(c, "lineWidth", c.xsa, c.cva);
- C.e(c, "shadowOffsetX", c.Isa, c.lva);
- C.e(c, "shadowOffsetY", c.Jsa, c.mva);
- C.e(c, "shadowOpacity", c.Ksa, c.nva);
- C.e(c, "shadowBlur", c.Hsa, c.kva)
- };
- C.fa = C.u.extend({
- ue: s,
- $o: C.Fs,
- xp: C.OE,
- Oc: s,
- Pc: 0,
- qd: "",
- KX: s,
- sA: t,
- kn: s,
- Jg: t,
- ih: s,
- sr: 0,
- Wt: 0,
- aO: s,
- pm: t,
- Uw: s,
- yr: 0,
- gO: s,
- Vw: s,
- tM: s,
- cZ: 0,
- dZ: 0,
- Dc: t,
- XM: s,
- YM: s,
- raa: s,
- qa: "LabelTTF",
- ctor: function(c, d, f, g, h, k) {
- C.u.prototype.ctor.call(this);
- this.ue = C.size(0, 0);
- this.$o = C.dz;
- this.xp = C.OE;
- this.Fb = t;
- this.kn = "";
- this.Oc = "Arial";
- this.Jg = this.sA = t;
- this.ih = C.d(0, 0);
- this.Wt = this.sr = 0;
- this.aO = "rgba(128, 128, 128, 0.5)";
- this.pm = t;
- this.Uw = C.color(255, 255, 255, 255);
- this.yr = 0;
- this.gO = "";
- this.Vw = C.color(255, 255, 255, 255);
- this.tM = "rgba(255,255,255,1)";
- this.dZ = this.cZ = 0;
- this.Dc = t;
- this.raa = [];
- this.Yj();
- d && d instanceof C.W5 ? this.Z0(c, d) : C.fa.prototype.sf.call(this, c, d, f, g, h, k)
- },
- j: function() {
- return this.sf(" ", this.Oc, this.Pc)
- },
- Fta: function() {
- this.LW().font = this.kn
- },
- cG: function(c) {
- return this.LW().measureText(c).width
- },
- jra: function(c, d) {
- var f = this.cG(c),
- g = Math.floor(c.length * d / f),
- h = c.indexOf("\n");
- if (0.8 * g >= h && 0 < h) return h + 1;
- if (f < d) return c.length;
- for (var f = t,
- h = d + 1,
- k = -1,
- n = g,
- p, r = C.fa.lra,
- v = C.fa.Hua,
- y = C.fa.ira,
- z = c.substr(g); p = r.exec(z);) {
- n += p[0].length;
- h = this.cG(c.substr(0, n));
- if ("\n" == p[2] && h < d) {
- f = q;
- k = n;
- break
- }
- if (h > d) { - 1 != k && (f = q);
- break
- }
- k = n;
- z = c.substr(n)
- }
- if (f) return k;
- z = c.substr(0, g);
- for (k = g; p = v.exec(z);) if (k = p[1].length, z = p[1], h = this.cG(z), h < d) {
- y.test(p[2]) && k++;
- break
- }
- return k || 1
- },
- description: function() {
- return "\x3ccc.LabelTTF | FontName \x3d" + this.Oc + " FontSize \x3d " + this.Pc.toFixed(1) + "\x3e"
- },
- G: s,
- Yj: s,
- Tb: s,
- K: s,
- dc: s,
- G6a: function(c) {
- C.ha.prototype.dc.call(this, c);
- this.Yj()
- },
- Wb: A("qd"),
- EAa: A("$o"),
- pCa: A("xp"),
- rAa: function() {
- return C.size(this.ue.width, this.ue.height)
- },
- Vn: A("Pc"),
- Fp: A("Oc"),
- sf: function(c, d, f, g, h, k) {
- c = c ? c + "": "";
- f = f || 16;
- g = g || C.size(0, f);
- h = h || C.dz;
- k = k || C.OE;
- this.Fb = t;
- this.ue = C.size(g.width, g.height);
- this.Oc = d || "Arial";
- this.$o = h;
- this.xp = k;
- this.Pc = f;
- this.kn = this.Pc + "px '" + d + "'";
- this.Yo = C.fa.QE(d, this.Pc);
- this.string = c;
- this.Yj();
- this.JO();
- this.Dc = t;
- return q
- },
- Z0: s,
- m5a: function(c) {
- c && this.uZ(c, q)
- },
- SWa: function() {
- return this.nua(t)
- },
- a0: function(c, d, f, g) {
- f = f || 0.5;
- t === this.Jg && (this.Jg = q);
- var h = this.ih;
- if (h && h.x != c || h.cj != d) h.x = c,
- h.y = d;
- this.sr != f && (this.sr = f);
- this.Yj();
- this.Wt != g && (this.Wt = g);
- this.Dc = q
- },
- Isa: function() {
- return this.ih.x
- },
- lva: function(c) {
- t === this.Jg && (this.Jg = q);
- this.ih.x != c && (this.ih.x = c, this.Dc = q)
- },
- Jsa: function() {
- return this.ih.cj
- },
- mva: function(c) {
- t === this.Jg && (this.Jg = q);
- this.ih.cj != c && (this.ih.cj = c, this.Dc = q)
- },
- NOa: function() {
- return C.d(this.ih.x, this.ih.y)
- },
- xPa: function(c) {
- t === this.Jg && (this.Jg = q);
- if (this.ih.x != c.x || this.ih.y != c.y) this.ih.x = c.x,
- this.ih.y = c.y,
- this.Dc = q
- },
- Ksa: A("sr"),
- nva: function(c) {
- t === this.Jg && (this.Jg = q);
- this.sr != c && (this.sr = c, this.Yj(), this.Dc = q)
- },
- Hsa: A("Wt"),
- kva: function(c) {
- t === this.Jg && (this.Jg = q);
- this.Wt != c && (this.Wt = c, this.Dc = q)
- },
- BRa: function() {
- this.Jg && (this.Jg = t, this.Dc = q)
- },
- zza: function(c, d) {
- this.pm === t && (this.pm = q);
- var f = this.Uw;
- if (f.r !== c.r || f.g !== c.g || f.b !== c.b) f.r = c.r,
- f.g = c.g,
- f.b = c.b,
- this.Yj();
- this.yr !== d && (this.yr = d || 0);
- this.Dc = q
- },
- Msa: A("Uw"),
- vva: function(c) {
- this.pm === t && (this.pm = q);
- var d = this.Uw;
- 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.Yj(),
- this.Dc = q
- },
- xsa: A("yr"),
- cva: function(c) {
- this.pm === t && (this.pm = q);
- this.yr !== c && (this.yr = c || 0, this.Dc = q)
- },
- CRa: function() {
- this.pm && (this.pm = t, this.Dc = q)
- },
- zR: s,
- msa: A("Vw"),
- uZ: function(c, d) {
- c.zSa ? (this.ue.width = c.boundingWidth, this.ue.height = c.boundingHeight) : (this.ue.width = 0, this.ue.height = 0);
- this.$o = c.textAlign;
- this.xp = c.verticalAlign;
- this.Oc = c.fontName;
- this.Pc = c.fontSize || 12;
- this.kn = this.Pc + "px '" + this.Oc + "'";
- this.Yo = C.fa.QE(this.Oc, this.Pc);
- c.Dia && this.a0(c.shadowOffsetX, c.shadowOffsetY, c.shadowOpacity, c.shadowBlur);
- c.I3 && this.zza(c.strokeStyle, c.lineWidth);
- this.zR(c.fillStyle);
- d && this.JO()
- },
- nua: function(c) {
- var d = new C.W5;
- c ? (d.fontSize = this.Pc, d.boundingWidth = C.Ec() * this.ue.width, d.boundingHeight = C.Ec() * this.ue.height) : (d.fontSize = this.Pc, d.boundingWidth = this.ue.width, d.boundingHeight = this.ue.height);
- d.fontName = this.Oc;
- d.textAlign = this.$o;
- d.verticalAlign = this.xp;
- if (this.pm) {
- d.I3 = q;
- var f = this.Uw;
- d.strokeStyle = C.color(f.r, f.g, f.b);
- d.lineWidth = this.yr
- } else d.I3 = t;
- this.Jg ? (d.Dia = q, d.shadowBlur = this.Wt, d.shadowOpacity = this.sr, d.shadowOffsetX = (c ? C.Ec() : 1) * this.ih.x, d.shadowOffsetY = (c ? C.Ec() : 1) * this.ih.y) : d.Jg = t;
- c = this.Vw;
- d.fillStyle = C.color(c.r, c.g, c.b);
- return d
- },
- Yo: 18,
- sa: function(c) {
- c = String(c);
- this.KX != c && (this.KX = c + "", this.HO(), this.Dc = q)
- },
- HO: function() {
- this.qd = this.KX
- },
- S2: function(c) {
- c !== this.$o && (this.$o = c, this.Dc = q)
- },
- y3: function(c) {
- c != this.xp && (this.xp = c, this.Dc = q)
- },
- N2: function(c) {
- if (c.width != this.ue.width || c.height != this.ue.height) this.ue = c,
- this.HO(),
- this.Dc = q
- },
- KF: function() {
- return this.ue.width
- },
- VN: function(c) {
- c != this.ue.width && (this.ue.width = c, this.HO(), this.Dc = q)
- },
- IW: function() {
- return this.ue.height
- },
- UN: function(c) {
- c != this.ue.height && (this.ue.height = c, this.HO(), this.Dc = q)
- },
- Od: function(c) {
- this.Pc !== c && (this.Pc = c, this.kn = c + "px '" + this.Oc + "'", this.Yo = C.fa.QE(this.Oc, c), this.Dc = q)
- },
- Zd: function(c) {
- this.Oc && this.Oc != c && (this.Oc = c, this.kn = this.Pc + "px '" + c + "'", this.Yo = C.fa.QE(c, this.Pc), this.Dc = q)
- },
- bw: A("kn"),
- rr: function(c) {
- var d = C.fa.xM.exec(c);
- d && (this.Pc = parseInt(d[1]), this.Oc = d[2], this.kn = c, this.Yo = C.fa.QE(this.Oc, this.Pc), this.Dc = q)
- },
- Mra: function(c) {
- if (c) {
- var d = this.cZ,
- f = this.dZ,
- g = this.o.height - f,
- h = this.xp,
- k = this.$o,
- n = this.Yo,
- p = this.yr;
- c.setTransform(1, 0, 0, 1, 0 + 0.5 * d, g + 0.5 * f);
- c.font != this.kn && (c.font = this.kn);
- c.fillStyle = this.tM;
- var r = f = 0,
- v = this.pm;
- v && (c.lineWidth = 2 * p, c.strokeStyle = this.gO);
- this.Jg && (p = this.ih, c.shadowColor = this.aO, c.shadowOffsetX = p.x, c.shadowOffsetY = -p.y, c.shadowBlur = this.Wt);
- c.textBaseline = C.fa.Qva[h];
- c.textAlign = C.fa.Pva[k];
- d = this.o.width - d;
- f = k === C.Q7 ? f + d: k === C.Fs ? f + d / 2 : f + 0;
- if (this.sA) {
- k = this.xr.length;
- h === C.J8 ? r = n + g - n * k: h === C.MU && (r = n / 2 + (g - n * k) / 2);
- for (h = 0; h < k; h++) d = this.xr[h],
- p = -g + n * h + r,
- v && c.strokeText(d, f, p),
- c.fillText(d, f, p)
- } else h !== C.J8 && (r = h === C.OE ? r - g: r - 0.5 * g),
- v && c.strokeText(this.qd, f, r),
- c.fillText(this.qd, f, r)
- }
- },
- LW: function() {
- if (this.YM) return this.YM;
- if (!this.XM) {
- var c = C.bd("canvas"),
- d = new C.Ma;
- d.Ng(c);
- this.texture = d;
- this.XM = c
- }
- return this.YM = this.XM.getContext("2d")
- },
- IO: function() {
- var c = this.ue.width,
- d, f, g = this.raa;
- g.length = 0;
- this.sA = t;
- this.Fta();
- if (0 !== c) {
- var h = this.qd;
- this.xr = [];
- d = 0;
- for (f = this.qd.length; d < f;) {
- var k = this.jra(h.substr(d), c);
- this.xr.push(h.substr(d, k));
- d += k
- }
- } else {
- this.xr = this.qd.split("\n");
- d = 0;
- for (f = this.xr.length; d < f; d++) g.push(this.cG(this.xr[d]))
- }
- 0 < this.xr.length && (this.sA = q);
- f = d = 0;
- this.pm && (d = f = 2 * this.yr);
- this.Jg && (h = this.ih, d += 2 * Math.abs(h.x), f += 2 * Math.abs(h.y));
- c = 0 === c ? this.sA ? C.size(0 | Math.max.apply(Math, g) + d, 0 | this.Yo * this.xr.length + f) : C.size(0 | this.cG(this.qd) + d, 0 | this.Yo + f) : 0 === this.ue.height ? this.sA ? C.size(0 | c + d, 0 | this.Yo * this.xr.length + f) : C.size(0 | c + d, 0 | this.Yo + f) : C.size(0 | c + d, 0 | this.ue.height + f);
- this.Ca(c);
- this.cZ = d;
- this.dZ = f;
- g = this.Ab;
- this.Nb.x = 0.5 * d + (c.width - d) * g.x;
- this.Nb.y = 0.5 * f + (c.height - f) * g.y
- },
- i: function() {
- this.Dc && this.IO();
- return C.u.prototype.i.call(this)
- },
- ef: function() {
- this.Dc && this.IO();
- return C.u.prototype.ef.call(this)
- },
- Dg: function() {
- this.Dc && this.IO();
- return C.u.prototype.Dg.call(this)
- },
- JO: function() {
- var c = this.LW(),
- d = this.XM,
- f = this.o;
- if (0 === this.qd.length) return d.width = 1,
- d.height = f.height,
- this.qc(C.rect(0, 0, 1, f.height)),
- q;
- c.font = this.kn;
- this.IO();
- var g = f.width,
- f = f.height,
- h = d.width == g && d.height == f;
- d.width = g;
- d.height = f;
- h && c.clearRect(0, 0, g, f);
- this.Mra(c);
- this.da && this.da.Md();
- this.qc(C.rect(0, 0, g, f));
- return q
- },
- J: function(c) {
- this.qd && "" != this.qd && (this.Dc && (this.Dc = t, this.JO()), C.u.prototype.J.call(this, c || C.t))
- },
- ka: s,
- xba: function(c) {
- var d = this.wa ? this.textureAtlas.texture: this.da;
- if (d) {
- var f = d.pixelsWidth,
- g = d.pixelsHeight,
- h, k = this.Td;
- this.jf ? (C.Qy ? (d = (2 * c.x + 1) / (2 * f), f = d + (2 * c.height - 2) / (2 * f), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.width - 2) / (2 * g)) : (d = c.x / f, f = (c.x + c.height) / f, h = c.y / g, c = (c.y + c.width) / g), this.Bb && (g = h, h = c, c = g), this.Db && (g = d, d = f, f = g), k.T.v.xa = d, k.T.v.ea = h, k.Y.v.xa = d, k.Y.v.ea = c, k.X.v.xa = f, k.X.v.ea = h, k.V.v.xa = f, k.V.v.ea = c) : (C.Qy ? (d = (2 * c.x + 1) / (2 * f), f = d + (2 * c.width - 2) / (2 * f), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.height - 2) / (2 * g)) : (d = c.x / f, f = (c.x + c.width) / f, h = c.y / g, c = (c.y + c.height) / g), this.Bb && (g = d, d = f, f = g), this.Db && (g = h, h = c, c = g), k.T.v.xa = d, k.T.v.ea = c, k.Y.v.xa = f, k.Y.v.ea = c, k.X.v.xa = d, k.X.v.ea = h, k.V.v.xa = f, k.V.v.ea = h);
- this.Ti = q
- }
- }
- });
- C.L === C.cb ? (H = C.fa.prototype, H.G = function(c) {
- C.ha.prototype.G.call(this, c);
- this.Yj()
- },
- H.Yj = function() {
- this.Dc = q;
- var c = this.wb,
- d = this.hb,
- f = this.Uw,
- g = this.Vw;
- this.aO = "rgba(" + (0 | 0.5 * c.r) + "," + (0 | 0.5 * c.g) + "," + (0 | 0.5 * c.b) + "," + this.sr + ")";
- this.tM = "rgba(" + (0 | c.r / 255 * g.r) + "," + (0 | c.g / 255 * g.g) + "," + (0 | c.b / 255 * g.b) + ", " + d / 255 + ")";
- this.gO = "rgba(" + (0 | c.r / 255 * f.r) + "," + (0 | c.g / 255 * f.g) + "," + (0 | c.b / 255 * f.b) + ", " + d / 255 + ")"
- },
- H.Tb = function(c) {
- C.ha.prototype.Tb.call(this, c);
- this.Yj()
- },
- H.K = function(c) {
- this.Eb !== c && (C.u.prototype.K.call(this, c), this.Yj(), this.Dc = q)
- },
- H.dc = C.u.prototype.dc, H.Z0 = function(c, d) {
- this.uZ(d, t);
- this.string = c;
- return q
- },
- H.zR = function(c) {
- var d = this.Vw;
- 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.Yj(),
- this.Dc = q
- },
- H.ka = C.u.prototype.ka, H.qc = function(c, d, f) {
- this.jf = d || t;
- this.Ca(f || c);
- this.x3(c);
- d = this.jB;
- d.x = c.x;
- d.y = c.y;
- d.width = c.width;
- d.height = c.height;
- d.nD = !(0 === d.width || 0 === d.height || 0 > d.x || 0 > d.y);
- c = this.Nn;
- this.Bb && (c.x = -c.x);
- this.Db && (c.y = -c.y);
- this.ld.x = c.x + (this.o.width - this.Ra.width) / 2;
- this.ld.y = c.y + (this.o.height - this.Ra.height) / 2;
- this.wa && (this.dirty = q)
- },
- H = s) : (C.assert("function" === typeof C.U.QU, C.n.Bf, "LabelTTFWebGL.js"), C.U.QU(), delete C.U.QU);
- C.assert("function" === typeof C.U.OT, C.n.Bf, "LabelTTFPropertyDefine.js");
- C.U.OT();
- delete C.U.OT;
- C.fa.Pva = ["left", "center", "right"];
- C.fa.Qva = ["top", "middle", "bottom"];
- C.fa.lra = /(.+?)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/;
- C.fa.Hua = /(.*)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/;
- C.fa.ira = /[\s\-\/\\\:]/;
- C.fa.xM = /^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/;
- C.fa.create = function(c, d, f, g, h, k) {
- return new C.fa(c, d, f, g, h, k)
- };
- C.fa.Bqa = C.nqa ? C.Co: C.$T;
- C.fa.Rs = C.bd("div");
- C.fa.Rs.style.fontFamily = "Arial";
- C.fa.Rs.style.position = "absolute";
- C.fa.Rs.style.left = "-100px";
- C.fa.Rs.style.top = "-100px";
- C.fa.Rs.style.lineHeight = "normal";
- document.body ? document.body.appendChild(C.fa.Rs) : C.qb(window, "load",
- function() {
- this.removeEventListener("load", arguments.callee, t);
- document.body.appendChild(C.fa.Rs)
- },
- t);
- C.fa.QE = function(c, d) {
- var f = C.fa.R8[c + "." + d];
- if (0 < f) return f;
- var g = C.fa.Rs;
- g.innerHTML = "ajghl~!";
- g.style.fontFamily = c;
- g.style.fontSize = d + "px";
- f = g.clientHeight;
- C.fa.R8[c + "." + d] = f;
- g.innerHTML = "";
- return f
- };
- C.fa.R8 = {};
- C.vma = C.O.extend({
- Ve: s,
- target: s,
- kx: 0,
- bk: s,
- wx: t,
- paused: t,
- WP: s,
- ctor: function() {
- this.Ve = [];
- this.target = s;
- this.kx = 0;
- this.bk = s;
- this.paused = this.wx = t;
- this.WP = s
- }
- });
- C.k4 = C.O.extend({
- mn: s,
- lz: s,
- Cf: s,
- Vo: t,
- tPa: function(c, d) {
- for (var f = 0; f < c.length; f++) if (d == c[f].target) return c[f];
- return s
- },
- ctor: function() {
- this.mn = {};
- this.lz = [];
- this.Cf = s;
- this.Vo = t
- },
- mwa: function(c, d, f) {
- c || e("cc.ActionManager.addAction(): action must be non-null");
- d || e("cc.ActionManager.addAction(): action must be non-null");
- var g = this.mn[d.ub];
- g || (g = new C.vma, g.paused = f, g.target = d, this.mn[d.ub] = g, this.lz.push(g));
- this.Hqa(g);
- g.Ve.push(c);
- c.R(d)
- },
- P1a: function() {
- for (var c = this.lz,
- d = 0; d < c.length; d++) {
- var f = c[d];
- f && this.Pga(f.target, q)
- }
- },
- Pga: function(c, d) {
- if (c != s) {
- var f = this.mn[c.ub];
- f && ( - 1 !== f.Ve.indexOf(f.bk) && !f.wx && (f.wx = q), f.Ve.length = 0, this.Cf == f && !d ? this.Vo = q: this.ZV(f))
- }
- },
- Oga: function(c) {
- if (c != s) {
- var d = this.mn[c.originalTarget.ub];
- if (d) for (var f = 0; f < d.Ve.length; f++) {
- if (d.Ve[f] == c) {
- d.Ve.splice(f, 1);
- break
- }
- } else C.log(C.n.Ija)
- }
- },
- nGa: function(c, d) {
- c == C.Gy && C.log(C.n.l4);
- C.assert(d, C.n.l4);
- var f = this.mn[d.ub];
- if (f) for (var g = f.Ve.length,
- h = 0; h < g; ++h) {
- var k = f.Ve[h];
- if (k && k.Fm() === c && k.originalTarget == d) {
- this.yua(h, f);
- break
- }
- }
- },
- xP: function(c, d) {
- c == C.Gy && C.log(C.n.Gja);
- var f = this.mn[d.ub];
- if (f) {
- if (f.Ve != s) for (var g = 0; g < f.Ve.length; ++g) {
- var h = f.Ve[g];
- if (h && h.Fm() === c) return h
- }
- C.log(C.n.Hja, c)
- }
- return s
- },
- wEa: function(c) {
- return (c = this.mn[c.ub]) ? c.Ve ? c.Ve.length: 0 : 0
- },
- hs: function(c) { (c = this.mn[c.ub]) && (c.paused = q)
- },
- Mm: function(c) { (c = this.mn[c.ub]) && (c.paused = t)
- },
- Z0a: function() {
- for (var c = [], d = this.lz, f = 0; f < d.length; f++) {
- var g = d[f];
- g && !g.paused && (g.paused = q, c.push(g.target))
- }
- return c
- },
- FGa: function(c) {
- if (c) for (var d = 0; d < c.length; d++) c[d] && this.Mm(c[d])
- },
- t1a: function() {
- C.Q.Em().GJ(this)
- },
- yua: function(c, d) {
- d.Ve[c] == d.bk && !d.wx && (d.wx = q);
- d.Ve.splice(c, 1);
- d.kx >= c && d.kx--;
- 0 == d.Ve.length && (this.Cf == d ? this.Vo = q: this.ZV(d))
- },
- ZV: function(c) {
- c && (delete this.mn[c.target.ub], C.Id(this.lz, c), c.Ve = s, c.target = s)
- },
- Hqa: function(c) {
- c.Ve == s && (c.Ve = [])
- },
- update: function(c) {
- for (var d = this.lz,
- f, g = 0; g < d.length; g++) {
- f = this.Cf = d[g];
- if (!f.paused) for (f.kx = 0; f.kx < f.Ve.length; f.kx++) if (f.bk = f.Ve[f.kx], f.bk) {
- f.wx = t;
- f.bk.step(c * (f.bk.JG ? f.bk.Hf: 1));
- if (f.wx) f.bk = s;
- else if (f.bk.ik()) {
- f.bk.stop();
- var h = f.bk;
- f.bk = s;
- this.Oga(h)
- }
- f.bk = s
- }
- this.Vo && 0 === f.Ve.length && this.ZV(f)
- }
- }
- });
- C.s_a = Number;
- C.iZa = Number;
- C.jZa = Number;
- C.Wy = 0;
- C.Xy = 1;
- C.r1 = 3.141592;
- C.WDa = 0.017453;
- C.XDa = 57.295779;
- C.xb = 0.015625;
- C.tf = function(c) {
- return c * c
- };
- C.tI = function(c) {
- return c * C.WDa
- };
- C.n_a = function(c) {
- return c * C.XDa
- };
- C.uQ = function(c, d) {
- return c < d ? c: d
- };
- C.tQ = function(c, d) {
- return c > d ? c: d
- };
- C.hZa = function(c, d) {
- return c + C.xb > d && c - C.xb < d
- };
- C.bo = function() {
- this.y = this.x = 0
- };
- C.w_a = function(c, d, f) {
- c.x = d;
- c.y = f;
- return c
- };
- C.wQ = function(c) {
- return Math.sqrt(C.tf(c.x) + C.tf(c.y))
- };
- C.x_a = function(c) {
- return C.tf(c.x) + C.tf(c.y)
- };
- C.cEa = function(c, d) {
- var f = 1 / C.wQ(d),
- g = new C.bo;
- g.x = d.x * f;
- g.y = d.y * f;
- c.x = g.x;
- c.y = g.y
- };
- C.t_a = function(c, d, f) {
- c.x = d.x + f.x;
- c.y = d.y + f.y;
- return c
- };
- C.v_a = function(c, d) {
- return c.x * d.x + c.y * d.y
- };
- C.xQ = function(c, d, f) {
- c.x = d.x - f.x;
- c.y = d.y - f.y;
- return c
- };
- C.z_a = function(c, d, f) {
- var g = new C.bo;
- g.x = d.x * f.c[0] + d.y * f.c[3] + f.c[6];
- g.y = d.x * f.c[1] + d.y * f.c[4] + f.c[7];
- c.x = g.x;
- c.y = g.y;
- return c
- };
- C.A_a = B(s);
- C.y_a = function(c, d, f) {
- c.x = d.x * f;
- c.y = d.y * f;
- return c
- };
- C.u_a = function(c, d) {
- return c.x < d.x + C.xb && c.x > d.x - C.xb && c.y < d.y + C.xb && c.y > d.y - C.xb
- };
- C.Zc = function(c, d, f) {
- this.x = c || 0;
- this.y = d || 0;
- this.f = f || 0
- };
- C.nC = function(c, d, f, g) {
- if (!c) return new C.Zc(d, f, g);
- c.x = d;
- c.y = f;
- c.f = g;
- return c
- };
- C.zfa = function(c) {
- return Math.sqrt(C.tf(c.x) + C.tf(c.y) + C.tf(c.f))
- };
- C.Afa = function(c) {
- return C.tf(c.x) + C.tf(c.y) + C.tf(c.f)
- };
- C.jk = function(c, d) {
- var f = 1 / C.zfa(d);
- c.x = d.x * f;
- c.y = d.y * f;
- c.f = d.f * f
- };
- C.Du = function(c, d, f) {
- c.x = d.y * f.f - d.f * f.y;
- c.y = d.f * f.x - d.x * f.f;
- c.f = d.x * f.y - d.y * f.x
- };
- C.t1 = function(c, d) {
- return c.x * d.x + c.y * d.y + c.f * d.f
- };
- C.yfa = function(c, d, f) {
- c.x = d.x + f.x;
- c.y = d.y + f.y;
- c.f = d.f + f.f
- };
- C.v1 = function(c, d, f) {
- c.x = d.x - f.x;
- c.y = d.y - f.y;
- c.f = d.f - f.f
- };
- C.F_a = function(c, d, f) {
- c.x = d.x * f.c[0] + d.y * f.c[4] + d.f * f.c[8] + f.c[12];
- c.y = d.x * f.c[1] + d.y * f.c[5] + d.f * f.c[9] + f.c[13];
- c.f = d.x * f.c[2] + d.y * f.c[6] + d.f * f.c[10] + f.c[14];
- return c
- };
- C.G_a = function(c, d, f) {
- c.x = d.x * f.c[0] + d.y * f.c[4] + d.f * f.c[8];
- c.y = d.x * f.c[1] + d.y * f.c[5] + d.f * f.c[9];
- c.f = d.x * f.c[2] + d.y * f.c[6] + d.f * f.c[10];
- return c
- };
- C.Bfa = function(c, d, f) {
- var g = new C.Cfa,
- h = new C.Cfa;
- C.dEa(h, d.x, d.y, d.f);
- C.Dfa(g, h, f);
- c.x = g.x / g.ba;
- c.y = g.y / g.ba;
- c.f = g.f / g.ba
- };
- C.u1 = function(c, d, f) {
- c.x = d.x * f;
- c.y = d.y * f;
- c.f = d.f * f;
- return c
- };
- C.B_a = function(c, d) {
- return c.x < d.x + C.xb && c.x > d.x - C.xb && c.y < d.y + C.xb && c.y > d.y - C.xb && c.f < d.f + C.xb && c.f > d.f - C.xb ? 1 : 0
- };
- C.C_a = function(c, d, f) {
- d = new C.Zc(d.x - f.c[12], d.y - f.c[13], d.f - f.c[14]);
- c.x = d.x * f.c[0] + d.y * f.c[1] + d.f * f.c[2];
- c.y = d.x * f.c[4] + d.y * f.c[5] + d.f * f.c[6];
- c.f = d.x * f.c[8] + d.y * f.c[9] + d.f * f.c[10];
- return c
- };
- C.D_a = function(c, d, f) {
- c.x = d.x * f.c[0] + d.y * f.c[1] + d.f * f.c[2];
- c.y = d.x * f.c[4] + d.y * f.c[5] + d.f * f.c[6];
- c.f = d.x * f.c[8] + d.y * f.c[9] + d.f * f.c[10];
- return c
- };
- C.uI = function(c, d) {
- c != d && (c.x = d.x, c.y = d.y, c.f = d.f)
- };
- C.H_a = function(c) {
- c.x = 0;
- c.y = 0;
- c.f = 0;
- return c
- };
- C.E_a = function(c) {
- if (!c) return s;
- var d = new Float32Array(3);
- d[0] = c.x;
- d[1] = c.y;
- d[2] = c.f;
- return d
- };
- C.Cfa = function() {
- this.ba = this.f = this.y = this.x = 0
- };
- C.dEa = function(c, d, f, g) {
- c.x = d;
- c.y = f;
- c.f = g;
- c.ba = 1
- };
- C.I_a = function(c, d, f) {
- c.x = d.x + f.x;
- c.y = d.y + f.y;
- c.f = d.f + f.f;
- c.ba = d.ba + f.ba;
- return c
- };
- C.L_a = function(c, d) {
- return c.x * d.x + c.y * d.y + c.f * d.f + c.ba * d.ba
- };
- C.eEa = function(c) {
- return Math.sqrt(C.tf(c.x) + C.tf(c.y) + C.tf(c.f) + C.tf(c.ba))
- };
- C.M_a = function(c) {
- return C.tf(c.x) + C.tf(c.y) + C.tf(c.f) + C.tf(c.ba)
- };
- C.N_a = da();
- C.fEa = function(c, d) {
- var f = 1 / C.eEa(d);
- c.x *= f;
- c.y *= f;
- c.f *= f;
- c.ba *= f
- };
- C.O_a = function(c, d, f) {
- C.fEa(c, d);
- c.x *= f;
- c.y *= f;
- c.f *= f;
- c.ba *= f;
- return c
- };
- C.P_a = function(c, d, f) {
- c.x = d.x - f.x;
- c.y = d.y - f.y;
- c.f = d.f - f.f;
- c.ba = d.ba - f.ba;
- return c
- };
- C.Dfa = function(c, d, f) {
- c.x = d.x * f.c[0] + d.y * f.c[4] + d.f * f.c[8] + d.ba * f.c[12];
- c.y = d.x * f.c[1] + d.y * f.c[5] + d.f * f.c[9] + d.ba * f.c[13];
- c.f = d.x * f.c[2] + d.y * f.c[6] + d.f * f.c[10] + d.ba * f.c[14];
- c.ba = d.x * f.c[3] + d.y * f.c[7] + d.f * f.c[11] + d.ba * f.c[15]
- };
- C.R_a = function(c, d, f, g, h, k) {
- for (var n = 0; n < k;) C.Dfa(c + n * d, f + n * g, h),
- ++n;
- return c
- };
- C.J_a = function(c, d) {
- return c.x < d.x + C.xb && c.x > d.x - C.xb && c.y < d.y + C.xb && c.y > d.y - C.xb && c.f < d.f + C.xb && c.f > d.f - C.xb && c.ba < d.ba + C.xb && c.ba > d.ba - C.xb
- };
- C.K_a = function(c, d) {
- if (c == d) return C.log("destVec and srcVec are same object"),
- c;
- c.x = d.x;
- c.y = d.y;
- c.f = d.f;
- c.ba = d.ba;
- return c
- };
- C.Q_a = function(c) {
- if (!c) return s;
- var d = new Float32Array(4);
- d[0] = c.x;
- d[1] = c.y;
- d[2] = c.f;
- d[3] = c.ba;
- return d
- };
- C.o_a = function(c) {
- this.start = c || new C.bo;
- this.start = c || new C.bo
- };
- C.p_a = function(c, d, f, g, h) {
- c.start.x = d;
- c.start.y = f;
- c.dir.x = g;
- c.dir.y = h
- };
- C.s1 = function(c, d, f, g) {
- var h = c.start.x,
- k = c.start.y,
- n = c.start.x + c.dir.x;
- c = c.start.y + c.dir.y;
- var p = d.x,
- r = d.y,
- v = f.x,
- y = f.y,
- z = (y - r) * (n - h) - (v - p) * (c - k);
- if (z > -C.xb && z < C.xb) return C.Wy;
- r = ((v - p) * (k - r) - (y - r) * (h - p)) / z;
- p = h + r * (n - h);
- r = k + r * (c - k);
- if (p < C.uQ(d.x, f.x) - C.xb || p > C.tQ(d.x, f.x) + C.xb || r < C.uQ(d.y, f.y) - C.xb || r > C.tQ(d.y, f.y) + C.xb || p < C.uQ(h, n) - C.xb || p > C.tQ(h, n) + C.xb || r < C.uQ(k, c) - C.xb || r > C.tQ(k, c) + C.xb) return C.Wy;
- g.x = p;
- g.y = r;
- return C.Xy
- };
- C.m_ = function(c, d, f) {
- var g = new C.bo;
- C.xQ(g, d, c);
- f.x = -g.y;
- f.y = g.x;
- C.cEa(f, f)
- };
- C.r_a = function(c, d, f, g, h, k) {
- var n = new C.bo,
- p = new C.bo,
- r = new C.bo,
- v = 1E4,
- y = C.Wy,
- z;
- C.s1(c, d, f, n) && (z = new C.bo, y = C.Xy, z = C.wQ(C.xQ(z, n, c.start)), z < v && (p.x = n.x, p.y = n.y, v = z, C.m_(d, f, r)));
- C.s1(c, f, g, n) && (z = new C.bo, y = C.Xy, z = C.wQ(C.xQ(z, n, c.start)), z < v && (p.x = n.x, p.y = n.y, v = z, C.m_(f, g, r)));
- C.s1(c, g, d, n) && (z = new C.bo, y = C.Xy, z = C.wQ(C.xQ(z, n, c.start)), z < v && (p.x = n.x, p.y = n.y, C.m_(g, d, r)));
- y && (h.x = p.x, h.y = p.y, k && (k.x = r.x, k.y = r.y));
- return y
- };
- C.q_a = function() {
- C.log("cc.kmRay2IntersectCircle() has not been implemented.")
- };
- var Float32Array = Float32Array || Array;
- C.sQ = function() {
- this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0])
- };
- C.rZa = function(c, d) {
- for (var f = 0; 9 > f; f++) c.c[f] = d;
- return c
- };
- C.PDa = function(c, d) {
- c.c[0] = d.c[4] * d.c[8] - d.c[5] * d.c[7];
- c.c[1] = d.c[2] * d.c[7] - d.c[1] * d.c[8];
- c.c[2] = d.c[1] * d.c[5] - d.c[2] * d.c[4];
- c.c[3] = d.c[5] * d.c[6] - d.c[3] * d.c[8];
- c.c[4] = d.c[0] * d.c[8] - d.c[2] * d.c[6];
- c.c[5] = d.c[2] * d.c[3] - d.c[0] * d.c[5];
- c.c[6] = d.c[3] * d.c[7] - d.c[4] * d.c[6];
- c.c[8] = d.c[0] * d.c[4] - d.c[1] * d.c[3]
- };
- C.qfa = function(c) {
- c.c[1] = c.c[2] = c.c[3] = c.c[5] = c.c[6] = c.c[7] = 0;
- c.c[0] = c.c[4] = c.c[8] = 1
- };
- C.sZa = function(c, d, f) {
- var g = new C.sQ;
- if (0 === d) return s;
- d = 1 / d;
- C.PDa(g, f);
- C.QDa(c, g, d);
- return c
- };
- C.sQ.YW = new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]);
- C.tZa = function(c) {
- for (var d = 0; 9 > d; d++) if (C.sQ.YW[d] !== c.c[d]) return t;
- return q
- };
- C.EZa = function(c, d) {
- var f, g;
- for (f = 0; 3 > f; ++f) for (g = 0; 3 > g; ++g) c.c[3 * f + g] = d.c[3 * g + f];
- return c
- };
- C.qZa = function(c) {
- var d;
- 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];
- 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]
- };
- C.uZa = function(c, d, f) {
- d = d.c;
- f = f.c;
- c.c[0] = d[0] * f[0] + d[3] * f[1] + d[6] * f[2];
- c.c[1] = d[1] * f[0] + d[4] * f[1] + d[7] * f[2];
- c.c[2] = d[2] * f[0] + d[5] * f[1] + d[8] * f[2];
- c.c[3] = d[0] * f[3] + d[3] * f[4] + d[6] * f[5];
- c.c[4] = d[1] * f[3] + d[4] * f[4] + d[7] * f[5];
- c.c[5] = d[2] * f[3] + d[5] * f[4] + d[8] * f[5];
- c.c[6] = d[0] * f[6] + d[3] * f[7] + d[6] * f[8];
- c.c[7] = d[1] * f[6] + d[4] * f[7] + d[7] * f[8];
- c.c[8] = d[2] * f[6] + d[5] * f[7] + d[8] * f[8];
- return c
- };
- C.QDa = function(c, d, f) {
- for (var g = 0; 9 > g; g++) c.c[g] = d.c[g] * f
- };
- C.wZa = function(c, d, f) {
- var g = Math.cos(f);
- f = Math.sin(f);
- c.c[0] = g + d.x * d.x * (1 - g);
- c.c[1] = d.f * f + d.y * d.x * (1 - g);
- c.c[2] = -d.y * f + d.f * d.x * (1 - g);
- c.c[3] = -d.f * f + d.x * d.y * (1 - g);
- c.c[4] = g + d.y * d.y * (1 - g);
- c.c[5] = d.x * f + d.f * d.y * (1 - g);
- c.c[6] = d.y * f + d.x * d.f * (1 - g);
- c.c[7] = -d.x * f + d.y * d.f * (1 - g);
- c.c[8] = g + d.f * d.f * (1 - g);
- return c
- };
- C.pZa = function(c, d) {
- if (c == d) return C.log("cc.kmMat3Assign(): pOut equals pIn"),
- c;
- for (var f = 0; 9 > f; f++) c.c[f] = d.c[f];
- return c
- };
- C.oZa = function(c, d) {
- if (c == d) return q;
- for (var f = 0; 9 > f; ++f) if (! (c.c[f] + C.xb > d.c[f] && c.c[f] - C.xb < d.c[f])) return t;
- return q
- };
- C.zZa = function(c, d) {
- c.c[0] = 1;
- c.c[1] = 0;
- c.c[2] = 0;
- c.c[3] = 0;
- c.c[4] = Math.cos(d);
- c.c[5] = Math.sin(d);
- c.c[6] = 0;
- c.c[7] = -Math.sin(d);
- c.c[8] = Math.cos(d);
- return c
- };
- C.AZa = function(c, d) {
- c.c[0] = Math.cos(d);
- c.c[1] = 0;
- c.c[2] = -Math.sin(d);
- c.c[3] = 0;
- c.c[4] = 1;
- c.c[5] = 0;
- c.c[6] = Math.sin(d);
- c.c[7] = 0;
- c.c[8] = Math.cos(d);
- return c
- };
- C.BZa = function(c, d) {
- c.c[0] = Math.cos(d);
- c.c[1] = -Math.sin(d);
- c.c[2] = 0;
- c.c[3] = Math.sin(d);
- c.c[4] = Math.cos(d);
- c.c[5] = 0;
- c.c[6] = 0;
- c.c[7] = 0;
- c.c[8] = 1;
- return c
- };
- C.vZa = function(c, d) {
- c.c[0] = Math.cos(d);
- c.c[1] = Math.sin(d);
- c.c[2] = 0;
- c.c[3] = -Math.sin(d);
- c.c[4] = Math.cos(d);
- c.c[5] = 0;
- c.c[6] = 0;
- c.c[7] = 0;
- c.c[8] = 1;
- return c
- };
- C.CZa = function(c, d, f) {
- C.qfa(c);
- c.c[0] = d;
- c.c[4] = f;
- return c
- };
- C.DZa = function(c, d, f) {
- C.qfa(c);
- c.c[6] = d;
- c.c[7] = f;
- return c
- };
- C.xZa = function(c, d) {
- if (!d || !c) return s;
- c.c[0] = 1 - 2 * (d.y * d.y + d.f * d.f);
- c.c[1] = 2 * (d.x * d.y - d.ba * d.f);
- c.c[2] = 2 * (d.x * d.f + d.ba * d.y);
- c.c[3] = 2 * (d.x * d.y + d.ba * d.f);
- c.c[4] = 1 - 2 * (d.x * d.x + d.f * d.f);
- c.c[5] = 2 * (d.y * d.f - d.ba * d.x);
- c.c[6] = 2 * (d.x * d.f - d.ba * d.y);
- c.c[7] = 2 * (d.y * d.f + d.ba * d.x);
- c.c[8] = 1 - 2 * (d.x * d.x + d.y * d.y);
- return c
- };
- C.yZa = function(c, d, f) {
- C.wfa(m, f);
- C.xfa(m, c);
- return c
- };
- C.Ia = function() {
- this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
- };
- C.HZa = function(c, d) {
- 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
- };
- C.Ox = function(c) {
- 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;
- c.c[0] = c.c[5] = c.c[10] = c.c[15] = 1
- };
- C.Ia.Uk = function(c, d, f) {
- return c.c[d + 4 * f]
- };
- C.Ia.Ut = function(c, d, f, g) {
- c.c[d + 4 * f] = g
- };
- C.Ia.cu = function(c, d, f, g, h) {
- var k = C.Ia.Uk(c, d, f);
- C.Ia.Ut(c, d, f, C.Ia.Uk(c, g, h));
- C.Ia.Ut(c, g, h, k)
- };
- C.Ia.csa = function(c, d) {
- var f, g = 0,
- h = 0,
- k, n, p, r = [0, 0, 0, 0],
- v = [0, 0, 0, 0],
- y = [0, 0, 0, 0];
- for (f = 0; 4 > f; f++) {
- for (k = p = 0; 4 > k; k++) if (1 != y[k]) for (n = 0; 4 > n; n++) 0 == y[n] && Math.abs(C.Ia.Uk(c, k, n)) >= p && (p = Math.abs(C.Ia.Uk(c, k, n)), h = k, g = n); ++y[g];
- if (h != g) {
- for (k = 0; 4 > k; k++) C.Ia.cu(c, h, k, g, k);
- for (k = 0; 4 > k; k++) C.Ia.cu(d, h, k, g, k)
- }
- v[f] = h;
- r[f] = g;
- if (0 == C.Ia.Uk(c, g, g)) return C.Wy;
- n = 1 / C.Ia.Uk(c, g, g);
- C.Ia.Ut(c, g, g, 1);
- for (k = 0; 4 > k; k++) C.Ia.Ut(c, g, k, C.Ia.Uk(c, g, k) * n);
- for (k = 0; 4 > k; k++) C.Ia.Ut(d, g, k, C.Ia.Uk(d, g, k) * n);
- for (n = 0; 4 > n; n++) if (n != g) {
- p = C.Ia.Uk(c, n, g);
- C.Ia.Ut(c, n, g, 0);
- for (k = 0; 4 > k; k++) C.Ia.Ut(c, n, k, C.Ia.Uk(c, n, k) - C.Ia.Uk(c, g, k) * p);
- for (k = 0; 4 > k; k++) C.Ia.Ut(d, n, k, C.Ia.Uk(c, n, k) - C.Ia.Uk(d, g, k) * p)
- }
- }
- for (k = 3; 0 <= k; k--) if (v[k] != r[k]) for (n = 0; 4 > n; n++) C.Ia.cu(c, n, v[k], n, r[k]);
- return C.Xy
- };
- C.Ia.YW = new Float32Array([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]);
- C.SDa = function(c, d) {
- var f = new C.Ia,
- g = new C.Ia;
- C.Pp(f, d);
- C.Ox(g);
- C.Ia.csa(f, g) != C.Wy && C.Pp(c, f)
- };
- C.LZa = function(c) {
- for (var d = 0; 16 > d; d++) if (C.Ia.YW[d] != c.c[d]) return t;
- return q
- };
- C.TZa = function(c, d) {
- var f, g, h = c.c,
- k = d.c;
- for (g = 0; 4 > g; ++g) for (f = 0; 4 > f; ++f) h[4 * g + f] = k[4 * f + g];
- return c
- };
- C.Qp = function(c, d, f) {
- c = c.c;
- var g = d.c[0],
- h = d.c[1],
- k = d.c[2],
- n = d.c[3],
- p = d.c[4],
- r = d.c[5],
- v = d.c[6],
- y = d.c[7],
- z = d.c[8],
- D = d.c[9],
- E = d.c[10],
- F = d.c[11],
- G = d.c[12],
- K = d.c[13],
- O = d.c[14];
- d = d.c[15];
- var U = f.c[0],
- X = f.c[1],
- N = f.c[2],
- Q = f.c[3],
- S = f.c[4],
- M = f.c[5],
- R = f.c[6],
- $ = f.c[7],
- sa = f.c[8],
- aa = f.c[9],
- ta = f.c[10],
- ma = f.c[11],
- ba = f.c[12],
- xa = f.c[13],
- ca = f.c[14];
- f = f.c[15];
- c[0] = U * g + X * p + N * z + Q * G;
- c[1] = U * h + X * r + N * D + Q * K;
- c[2] = U * k + X * v + N * E + Q * O;
- c[3] = U * n + X * y + N * F + Q * d;
- c[4] = S * g + M * p + R * z + $ * G;
- c[5] = S * h + M * r + R * D + $ * K;
- c[6] = S * k + M * v + R * E + $ * O;
- c[7] = S * n + M * y + R * F + $ * d;
- c[8] = sa * g + aa * p + ta * z + ma * G;
- c[9] = sa * h + aa * r + ta * D + ma * K;
- c[10] = sa * k + aa * v + ta * E + ma * O;
- c[11] = sa * n + aa * y + ta * F + ma * d;
- c[12] = ba * g + xa * p + ca * z + f * G;
- c[13] = ba * h + xa * r + ca * D + f * K;
- c[14] = ba * k + xa * v + ca * E + f * O;
- c[15] = ba * n + xa * y + ca * F + f * d
- };
- C.aBa = function() {
- var c = C.Iu.top.c,
- d = C.cs.top.c,
- f = new Float32Array(16);
- f[0] = c[0] * d[0] + c[4] * d[1] + c[8] * d[2] + c[12] * d[3];
- f[1] = c[1] * d[0] + c[5] * d[1] + c[9] * d[2] + c[13] * d[3];
- f[2] = c[2] * d[0] + c[6] * d[1] + c[10] * d[2] + c[14] * d[3];
- f[3] = c[3] * d[0] + c[7] * d[1] + c[11] * d[2] + c[15] * d[3];
- f[4] = c[0] * d[4] + c[4] * d[5] + c[8] * d[6] + c[12] * d[7];
- f[5] = c[1] * d[4] + c[5] * d[5] + c[9] * d[6] + c[13] * d[7];
- f[6] = c[2] * d[4] + c[6] * d[5] + c[10] * d[6] + c[14] * d[7];
- f[7] = c[3] * d[4] + c[7] * d[5] + c[11] * d[6] + c[15] * d[7];
- f[8] = c[0] * d[8] + c[4] * d[9] + c[8] * d[10] + c[12] * d[11];
- f[9] = c[1] * d[8] + c[5] * d[9] + c[9] * d[10] + c[13] * d[11];
- f[10] = c[2] * d[8] + c[6] * d[9] + c[10] * d[10] + c[14] * d[11];
- f[11] = c[3] * d[8] + c[7] * d[9] + c[11] * d[10] + c[15] * d[11];
- f[12] = c[0] * d[12] + c[4] * d[13] + c[8] * d[14] + c[12] * d[15];
- f[13] = c[1] * d[12] + c[5] * d[13] + c[9] * d[14] + c[13] * d[15];
- f[14] = c[2] * d[12] + c[6] * d[13] + c[10] * d[14] + c[14] * d[15];
- f[15] = c[3] * d[12] + c[7] * d[13] + c[11] * d[14] + c[15] * d[15];
- return f
- };
- C.nVa = function(c, d, f) {
- c = c.c;
- d = d.c;
- var g = f.c;
- g[0] = c[0] * d[0] + c[4] * d[1] + c[8] * d[2] + c[12] * d[3];
- g[1] = c[1] * d[0] + c[5] * d[1] + c[9] * d[2] + c[13] * d[3];
- g[2] = c[2] * d[0] + c[6] * d[1] + c[10] * d[2] + c[14] * d[3];
- g[3] = c[3] * d[0] + c[7] * d[1] + c[11] * d[2] + c[15] * d[3];
- g[4] = c[0] * d[4] + c[4] * d[5] + c[8] * d[6] + c[12] * d[7];
- g[5] = c[1] * d[4] + c[5] * d[5] + c[9] * d[6] + c[13] * d[7];
- g[6] = c[2] * d[4] + c[6] * d[5] + c[10] * d[6] + c[14] * d[7];
- g[7] = c[3] * d[4] + c[7] * d[5] + c[11] * d[6] + c[15] * d[7];
- g[8] = c[0] * d[8] + c[4] * d[9] + c[8] * d[10] + c[12] * d[11];
- g[9] = c[1] * d[8] + c[5] * d[9] + c[9] * d[10] + c[13] * d[11];
- g[10] = c[2] * d[8] + c[6] * d[9] + c[10] * d[10] + c[14] * d[11];
- g[11] = c[3] * d[8] + c[7] * d[9] + c[11] * d[10] + c[15] * d[11];
- g[12] = c[0] * d[12] + c[4] * d[13] + c[8] * d[14] + c[12] * d[15];
- g[13] = c[1] * d[12] + c[5] * d[13] + c[9] * d[14] + c[13] * d[15];
- g[14] = c[2] * d[12] + c[6] * d[13] + c[10] * d[14] + c[14] * d[15];
- g[15] = c[3] * d[12] + c[7] * d[13] + c[11] * d[14] + c[15] * d[15];
- return f.c
- };
- C.Pp = function(c, d) {
- if (c == d) C.log("cc.kmMat4Assign(): pOut equals pIn");
- else {
- var f = c.c,
- g = d.c;
- f[0] = g[0];
- f[1] = g[1];
- f[2] = g[2];
- f[3] = g[3];
- f[4] = g[4];
- f[5] = g[5];
- f[6] = g[6];
- f[7] = g[7];
- f[8] = g[8];
- f[9] = g[9];
- f[10] = g[10];
- f[11] = g[11];
- f[12] = g[12];
- f[13] = g[13];
- f[14] = g[14];
- f[15] = g[15]
- }
- };
- C.FZa = function(c, d) {
- if (c == d) return C.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."),
- q;
- for (var f = 0; 16 > f; f++) if (! (c.c[f] + C.xb > d.c[f] && c.c[f] - C.xb < d.c[f])) return t;
- return q
- };
- C.QZa = function(c, d) {
- c.c[0] = 1;
- c.c[1] = 0;
- c.c[2] = 0;
- c.c[3] = 0;
- c.c[4] = 0;
- c.c[5] = Math.cos(d);
- c.c[6] = Math.sin(d);
- c.c[7] = 0;
- c.c[8] = 0;
- c.c[9] = -Math.sin(d);
- c.c[10] = Math.cos(d);
- c.c[11] = 0;
- c.c[12] = 0;
- c.c[13] = 0;
- c.c[14] = 0;
- c.c[15] = 1;
- return c
- };
- C.RZa = function(c, d) {
- c.c[0] = Math.cos(d);
- c.c[1] = 0;
- c.c[2] = -Math.sin(d);
- c.c[3] = 0;
- c.c[4] = 0;
- c.c[5] = 1;
- c.c[6] = 0;
- c.c[7] = 0;
- c.c[8] = Math.sin(d);
- c.c[9] = 0;
- c.c[10] = Math.cos(d);
- c.c[11] = 0;
- c.c[12] = 0;
- c.c[13] = 0;
- c.c[14] = 0;
- c.c[15] = 1;
- return c
- };
- C.SZa = function(c, d) {
- c.c[0] = Math.cos(d);
- c.c[1] = Math.sin(d);
- c.c[2] = 0;
- c.c[3] = 0;
- c.c[4] = -Math.sin(d);
- c.c[5] = Math.cos(d);
- c.c[6] = 0;
- c.c[7] = 0;
- c.c[8] = 0;
- c.c[9] = 0;
- c.c[10] = 1;
- c.c[11] = 0;
- c.c[12] = 0;
- c.c[13] = 0;
- c.c[14] = 0;
- c.c[15] = 1;
- return c
- };
- C.MZa = function(c, d, f, g) {
- var h = Math.cos(d);
- d = Math.sin(d);
- var k = Math.cos(f);
- f = Math.sin(f);
- var n = Math.cos(g);
- g = Math.sin(g);
- var p = d * f,
- r = h * f;
- c.c[0] = k * n;
- c.c[4] = k * g;
- c.c[8] = -f;
- c.c[1] = p * n - h * g;
- c.c[5] = p * g + h * n;
- c.c[9] = d * k;
- c.c[2] = r * n + d * g;
- c.c[6] = r * g - d * n;
- c.c[10] = h * k;
- c.c[3] = c.c[7] = c.c[11] = 0;
- c.c[15] = 1;
- return c
- };
- C.NZa = function(c, d) {
- c.c[0] = 1 - 2 * (d.y * d.y + d.f * d.f);
- c.c[1] = 2 * (d.x * d.y + d.f * d.ba);
- c.c[2] = 2 * (d.x * d.f - d.y * d.ba);
- c.c[3] = 0;
- c.c[4] = 2 * (d.x * d.y - d.f * d.ba);
- c.c[5] = 1 - 2 * (d.x * d.x + d.f * d.f);
- c.c[6] = 2 * (d.f * d.y + d.x * d.ba);
- c.c[7] = 0;
- c.c[8] = 2 * (d.x * d.f + d.y * d.ba);
- c.c[9] = 2 * (d.y * d.f - d.x * d.ba);
- c.c[10] = 1 - 2 * (d.x * d.x + d.y * d.y);
- c.c[11] = 0;
- c.c[12] = 0;
- c.c[13] = 0;
- c.c[14] = 0;
- c.c[15] = 1;
- return c
- };
- C.PZa = function(c, d, f) {
- c.c[0] = d.c[0];
- c.c[1] = d.c[1];
- c.c[2] = d.c[2];
- c.c[3] = 0;
- c.c[4] = d.c[3];
- c.c[5] = d.c[4];
- c.c[6] = d.c[5];
- c.c[7] = 0;
- c.c[8] = d.c[6];
- c.c[9] = d.c[7];
- c.c[10] = d.c[8];
- c.c[11] = 0;
- c.c[12] = f.x;
- c.c[13] = f.y;
- c.c[14] = f.f;
- c.c[15] = 1;
- return c
- };
- C.VDa = function(c, d, f, g) {
- c.c[0] = d;
- c.c[5] = f;
- c.c[10] = g;
- c.c[15] = 1;
- 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
- };
- C.sfa = function(c, d, f, g) {
- c.c[0] = c.c[5] = c.c[10] = c.c[15] = 1;
- 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;
- c.c[12] = d;
- c.c[13] = f;
- c.c[14] = g
- };
- C.KZa = function(c, d) {
- c.x = d.c[4];
- c.y = d.c[5];
- c.f = d.c[6];
- C.jk(c, c);
- return c
- };
- C.JZa = function(c, d) {
- c.x = d.c[0];
- c.y = d.c[1];
- c.f = d.c[2];
- C.jk(c, c);
- return c
- };
- C.IZa = function(c, d) {
- c.x = d.c[8];
- c.y = d.c[9];
- c.f = d.c[10];
- C.jk(c, c);
- return c
- };
- C.TDa = function(c, d, f) {
- var g = C.tI(30),
- h = f - 0.1,
- k = Math.sin(g);
- 0 == h || (0 == k || 0 == d) || (g = Math.cos(g) / k, C.Ox(c), c.c[0] = g / d, c.c[5] = g, c.c[10] = -(f + 0.1) / h, c.c[11] = -1, c.c[14] = -0.2 * f / h, c.c[15] = 0)
- };
- C.q1 = function(c, d, f, g, h, k, n) {
- C.Ox(c);
- c.c[0] = 2 / (f - d);
- c.c[5] = 2 / (h - g);
- c.c[10] = -2 / (n - k);
- c.c[12] = -((f + d) / (f - d));
- c.c[13] = -((h + g) / (h - g));
- c.c[14] = -((n + k) / (n - k))
- };
- C.rfa = function(c, d, f, g) {
- var h = new C.Zc,
- k = new C.Zc,
- n = new C.Zc,
- p = new C.Zc,
- r = new C.Ia;
- C.v1(h, f, d);
- C.jk(h, h);
- C.uI(k, g);
- C.jk(k, k);
- C.Du(n, h, k);
- C.jk(n, n);
- C.Du(p, n, h);
- C.jk(n, n);
- C.Ox(c);
- c.c[0] = n.x;
- c.c[4] = n.y;
- c.c[8] = n.f;
- c.c[1] = p.x;
- c.c[5] = p.y;
- c.c[9] = p.f;
- c.c[2] = -h.x;
- c.c[6] = -h.y;
- c.c[10] = -h.f;
- C.sfa(r, -d.x, -d.y, -d.f);
- C.Qp(c, c, r)
- };
- C.UDa = function(c, d, f) {
- var g = Math.cos(f);
- f = Math.sin(f);
- var h = new C.Zc;
- C.jk(h, d);
- c.c[0] = g + h.x * h.x * (1 - g);
- c.c[1] = h.f * f + h.y * h.x * (1 - g);
- c.c[2] = -h.y * f + h.f * h.x * (1 - g);
- c.c[3] = 0;
- c.c[4] = -h.f * f + h.x * h.y * (1 - g);
- c.c[5] = g + h.y * h.y * (1 - g);
- c.c[6] = h.x * f + h.f * h.y * (1 - g);
- c.c[7] = 0;
- c.c[8] = h.y * f + h.x * h.f * (1 - g);
- c.c[9] = -h.x * f + h.y * h.f * (1 - g);
- c.c[10] = g + h.f * h.f * (1 - g);
- c.c[11] = 0;
- c.c[12] = 0;
- c.c[13] = 0;
- c.c[14] = 0;
- c.c[15] = 1
- };
- C.RDa = function(c, d) {
- c.c[0] = d.c[0];
- c.c[1] = d.c[1];
- c.c[2] = d.c[2];
- c.c[3] = d.c[4];
- c.c[4] = d.c[5];
- c.c[5] = d.c[6];
- c.c[6] = d.c[8];
- c.c[7] = d.c[9];
- c.c[8] = d.c[10]
- };
- C.GZa = function(c, d, f) {
- switch (f) {
- case C.Nma:
- c.a = d.c[3] - d.c[0];
- c.b = d.c[7] - d.c[4];
- c.H = d.c[11] - d.c[8];
- c.P = d.c[15] - d.c[12];
- break;
- case C.Lma:
- c.a = d.c[3] + d.c[0];
- c.b = d.c[7] + d.c[4];
- c.H = d.c[11] + d.c[8];
- c.P = d.c[15] + d.c[12];
- break;
- case C.Jma:
- c.a = d.c[3] + d.c[1];
- c.b = d.c[7] + d.c[5];
- c.H = d.c[11] + d.c[9];
- c.P = d.c[15] + d.c[13];
- break;
- case C.Oma:
- c.a = d.c[3] - d.c[1];
- c.b = d.c[7] - d.c[5];
- c.H = d.c[11] - d.c[9];
- c.P = d.c[15] - d.c[13];
- break;
- case C.Kma:
- c.a = d.c[3] - d.c[2];
- c.b = d.c[7] - d.c[6];
- c.H = d.c[11] - d.c[10];
- c.P = d.c[15] - d.c[14];
- break;
- case C.Mma:
- c.a = d.c[3] + d.c[2];
- c.b = d.c[7] + d.c[6];
- c.H = d.c[11] + d.c[10];
- c.P = d.c[15] + d.c[14];
- break;
- default:
- C.log("cc.kmMat4ExtractPlane(): Invalid plane index")
- }
- d = Math.sqrt(c.a * c.a + c.b * c.b + c.H * c.H);
- c.a /= d;
- c.b /= d;
- c.H /= d;
- c.P /= d;
- return c
- };
- C.OZa = function(c, d, f) {
- d = new la;
- var g = new C.sQ;
- C.RDa(g, f);
- C.wfa(d, g);
- C.xfa(d, c);
- return c
- };
- C.Lma = 0;
- C.Nma = 1;
- C.Jma = 2;
- C.Oma = 3;
- C.Mma = 4;
- C.Kma = 5;
- C.UZa = function(c, d, f, g) {
- this.a = c || 0;
- this.b = d || 0;
- this.H = f || 0;
- this.P = g || 0
- };
- C.Ina = 0;
- C.Hna = 1;
- C.Jna = 2;
- C.WZa = function(c, d) {
- return c.a * d.x + c.b * d.y + c.H * d.f + c.P * d.ba
- };
- C.XZa = function(c, d) {
- return c.a * d.x + c.b * d.y + c.H * d.f + c.P
- };
- C.YZa = function(c, d) {
- return c.a * d.x + c.b * d.y + c.H * d.f
- };
- C.ZZa = function(c, d, f) {
- c.a = f.x;
- c.b = f.y;
- c.H = f.f;
- c.P = -C.t1(f, d);
- return c
- };
- C.$Za = function(c, d, f, g) {
- var h = new C.Zc,
- k = new C.Zc,
- n = new C.Zc;
- C.v1(k, f, d);
- C.v1(n, g, d);
- C.Du(h, k, n);
- C.jk(h, h);
- c.a = h.x;
- c.b = h.y;
- c.H = h.f;
- c.P = C.t1(C.u1(h, h, -1), d);
- return c
- };
- C.a_a = function() {
- e("cc.kmPlaneIntersectLine() hasn't been implemented.")
- };
- C.b_a = function(c, d) {
- var f = new C.Zc;
- f.x = d.a;
- f.y = d.b;
- f.f = d.H;
- var g = 1 / C.zfa(f);
- C.jk(f, f);
- c.a = f.x;
- c.b = f.y;
- c.H = f.f;
- c.P = d.P * g;
- return c
- };
- C.c_a = function() {
- C.log("cc.kmPlaneScale() has not been implemented.")
- };
- C.VZa = function(c, d) {
- var f = c.a * d.x + c.b * d.y + c.H * d.f + c.P;
- return 0.0010 < f ? C.Ina: -0.0010 > f ? C.Hna: C.Jna
- };
- function la() {
- this.ba = this.f = this.y = this.x = 0
- }
- C.ZDa = function(c, d) {
- c.x = -d.x;
- c.y = -d.y;
- c.f = -d.f;
- c.ba = d.ba;
- return c
- };
- C.$Da = function(c, d) {
- return c.ba * d.ba + c.x * d.x + c.y * d.y + c.f * d.f
- };
- C.e_a = da();
- C.aEa = function(c) {
- c.x = 0;
- c.y = 0;
- c.f = 0;
- c.ba = 1
- };
- C.f_a = function(c, d) {
- var f = C.tfa(d),
- g = new la;
- if (Math.abs(f) > C.xb) return c.x = 0,
- c.y = 0,
- c.f = 0,
- c.ba = 0,
- c;
- C.vQ(c, C.ZDa(g, d), 1 / f);
- return c
- };
- C.g_a = function(c) {
- return 0 == c.x && 0 == c.y && 0 == c.f && 1 == c.ba
- };
- C.tfa = function(c) {
- return Math.sqrt(C.bEa(c))
- };
- C.bEa = function(c) {
- return c.x * c.x + c.y * c.y + c.f * c.f + c.ba * c.ba
- };
- C.h_a = da();
- C.i_a = function(c, d, f) {
- c.ba = d.ba * f.ba - d.x * f.x - d.y * f.y - d.f * f.f;
- c.x = d.ba * f.x + d.x * f.ba + d.y * f.f - d.f * f.y;
- c.y = d.ba * f.y + d.y * f.ba + d.f * f.x - d.x * f.f;
- c.f = d.ba * f.f + d.f * f.ba + d.x * f.y - d.y * f.x;
- return c
- };
- C.ufa = function(c, d) {
- var f = C.tfa(d);
- Math.abs(f) <= C.xb && e("cc.kmQuaternionNormalize(): pIn is an invalid value");
- C.vQ(c, d, 1 / f)
- };
- C.vfa = function(c, d) {
- var f = 0.5 * C.r1,
- g = Math.sin(f);
- c.ba = Math.cos(f);
- c.x = d.x * g;
- c.y = d.y * g;
- c.f = d.f * g
- };
- C.wfa = function(c, d) {
- var f, g, h, k;
- f = [];
- g = k = 0;
- if (d) {
- f[0] = d.c[0];
- f[1] = d.c[3];
- f[2] = d.c[6];
- f[4] = d.c[1];
- f[5] = d.c[4];
- f[6] = d.c[7];
- f[8] = d.c[2];
- f[9] = d.c[5];
- f[10] = d.c[8];
- f[15] = 1;
- var n = f[0];
- g = n[0] + n[5] + n[10] + 1;
- g > C.xb ? (k = 2 * Math.sqrt(g), f = (n[9] - n[6]) / k, g = (n[2] - n[8]) / k, h = (n[4] - n[1]) / k, k *= 0.25) : n[0] > n[5] && n[0] > n[10] ? (k = 2 * Math.sqrt(1 + n[0] - n[5] - n[10]), f = 0.25 * k, g = (n[4] + n[1]) / k, h = (n[2] + n[8]) / k, k = (n[9] - n[6]) / k) : n[5] > n[10] ? (k = 2 * Math.sqrt(1 + n[5] - n[0] - n[10]), f = (n[4] + n[1]) / k, g = 0.25 * k, h = (n[9] + n[6]) / k, k = (n[2] - n[8]) / k) : (k = 2 * Math.sqrt(1 + n[10] - n[0] - n[5]), f = (n[2] + n[8]) / k, g = (n[9] + n[6]) / k, h = 0.25 * k, k = (n[4] - n[1]) / k);
- c.x = f;
- c.y = g;
- c.f = h;
- c.ba = k
- }
- };
- C.l_a = function(c, d, f, g) {
- var h, k, n, p, r;
- h = C.tI(f) / 2;
- k = C.tI(d) / 2;
- n = C.tI(g) / 2;
- g = Math.cos(h);
- d = Math.cos(k);
- f = Math.cos(n);
- h = Math.sin(h);
- k = Math.sin(k);
- n = Math.sin(n);
- p = d * f;
- r = k * n;
- c.ba = g * p + h * r;
- c.x = h * p - g * r;
- c.y = g * k * f + h * d * n;
- c.f = g * d * n - h * k * f;
- C.ufa(c, c);
- return c
- };
- C.m_a = function(c, d, f, g) {
- if (d.x == f.x && d.y == f.y && d.f == f.f && d.ba == f.ba) return c.x = d.x,
- c.y = d.y,
- c.f = d.f,
- c.ba = d.ba,
- c;
- var h = C.$Da(d, f),
- k = Math.acos(h),
- h = Math.sqrt(1 - C.tf(h)),
- n = Math.sin(g * k) / h,
- p = new la,
- r = new la;
- C.vQ(p, d, Math.sin((1 - g) * k) / h);
- C.vQ(r, f, n);
- C.YDa(c, p, r);
- return c
- };
- C.xfa = function(c, d) {
- var f;
- f = Math.sqrt(C.tf(c.x) + C.tf(c.y) + C.tf(c.f));
- f > -C.xb && f < C.xb || f < 2 * C.r1 + C.xb && f > 2 * C.r1 - C.xb ? (d.x = 0, d.y = 0, d.f = 1) : (d.x = c.x / f, d.y = c.y / f, d.f = c.f / f, C.jk(d, d))
- };
- C.vQ = function(c, d, f) {
- c.x = d.x * f;
- c.y = d.y * f;
- c.f = d.f * f;
- c.ba = d.ba * f
- };
- C.d_a = function(c, d) {
- c.x = d.x;
- c.y = d.y;
- c.f = d.f;
- c.ba = d.ba;
- return c
- };
- C.YDa = function(c, d, f) {
- c.x = d.x + f.x;
- c.y = d.y + f.y;
- c.f = d.f + f.f;
- c.ba = d.ba + f.ba
- };
- C.k_a = function(c, d, f, g) {
- var h = new C.Zc,
- k = new C.Zc;
- C.uI(h, d);
- C.uI(k, f);
- C.jk(h, h);
- C.jk(k, k);
- f = C.t1(h, k);
- if (1 <= f) return C.aEa(c),
- c; - 0.999999 > f ? Math.abs(C.Afa(g)) < C.xb ? C.vfa(c, g) : (h = new C.Zc, k = new C.Zc, k.x = 1, k.y = 0, k.f = 0, C.Du(h, k, d), Math.abs(C.Afa(h)) < C.xb && (k = new C.Zc, k.x = 0, k.y = 1, k.f = 0, C.Du(h, k, d)), C.jk(h, h), C.vfa(c, h)) : (d = Math.sqrt(2 * (1 + f)), g = 1 / d, f = new C.Zc, C.Du(f, h, k), c.x = f.x * g, c.y = f.y * g, c.f = f.f * g, c.ba = 0.5 * d, C.ufa(c, c));
- return c
- };
- C.j_a = function(c, d, f) {
- var g = new C.Zc,
- h = new C.Zc,
- k = new C.Zc;
- k.x = d.x;
- k.y = d.y;
- k.f = d.f;
- C.Du(g, k, f);
- C.Du(h, k, g);
- C.u1(g, g, 2 * d.ba);
- C.u1(h, h, 2);
- C.yfa(c, f, g);
- C.yfa(c, c, h);
- return c
- };
- C.dZa = function(c, d) {
- this.min = c || new C.Zc;
- this.max = d || new C.Zc
- };
- C.fZa = function(c, d) {
- return c.x >= d.min.x && c.x <= d.max.x && c.y >= d.min.y && c.y <= d.max.y && c.f >= d.min.f && c.f <= d.max.f ? C.Xy: C.Wy
- };
- C.eZa = function(c, d) {
- C.uI(c.min, d.min);
- C.uI(c.max, d.max);
- return c
- };
- C.gZa = function() {
- C.log("cc.kmAABBScale hasn't been supported.")
- };
- C.yQ = function(c, d, f, g) {
- this.top = f;
- this.stack = g
- };
- C.yQ.YLa = 30;
- C.w1 = function(c) {
- c.stack = [];
- c.top = s
- };
- C.zQ = function(c, d) {
- c.stack.push(c.top);
- c.top = new C.Ia;
- C.Pp(c.top, d)
- };
- C.S_a = function(c) {
- c.top = c.stack.pop()
- };
- C.x1 = function(c) {
- c.stack = s;
- c.top = s
- };
- C.lq = 5888;
- C.mq = 5889;
- C.g6 = 5890;
- C.cs = new C.yQ;
- C.Iu = new C.yQ;
- C.zJ = new C.yQ;
- C.Jd = s;
- C.c1 = t;
- C.iEa = function() {
- if (!C.c1) {
- var c = new C.Ia;
- C.w1(C.cs);
- C.w1(C.Iu);
- C.w1(C.zJ);
- C.Jd = C.cs;
- C.c1 = q;
- C.Ox(c);
- C.zQ(C.cs, c);
- C.zQ(C.Iu, c);
- C.zQ(C.zJ, c)
- }
- };
- C.iEa();
- C.ODa = function() {
- C.x1(C.cs);
- C.x1(C.Iu);
- C.x1(C.zJ);
- C.c1 = t;
- C.Jd = s
- };
- C.Zr = function() {
- C.zQ(C.Jd, C.Jd.top)
- };
- C.lZa = function(c) {
- C.Jd.stack.push(C.Jd.top);
- C.Pp(c, C.Jd.top);
- C.Jd.top = c
- };
- C.Yr = function() {
- C.Jd.top = C.Jd.stack.pop()
- };
- C.Op = function(c) {
- switch (c) {
- case C.lq:
- C.Jd = C.cs;
- break;
- case C.mq:
- C.Jd = C.Iu;
- break;
- case C.g6:
- C.Jd = C.zJ;
- break;
- default:
- e("Invalid matrix mode specified")
- }
- };
- C.kC = function() {
- C.Ox(C.Jd.top)
- };
- C.kZa = function(c) {
- C.Pp(C.Jd.top, c)
- };
- C.lC = function(c) {
- C.Qp(C.Jd.top, C.Jd.top, c)
- };
- C.mC = function(c, d) {
- var f = new C.Ia;
- C.sfa(f, c, d, 0);
- C.Qp(C.Jd.top, C.Jd.top, f)
- };
- C.mZa = function(c, d, f, g) {
- d = new C.Zc(d, f, g);
- f = new C.Ia;
- C.UDa(f, d, C.tI(c));
- C.Qp(C.Jd.top, C.Jd.top, f)
- };
- C.nZa = function(c, d, f) {
- var g = new C.Ia;
- C.VDa(g, c, d, f);
- C.Qp(C.Jd.top, C.Jd.top, g)
- };
- C.rQ = function(c, d) {
- switch (c) {
- case C.lq:
- C.Pp(d, C.cs.top);
- break;
- case C.mq:
- C.Pp(d, C.Iu.top);
- break;
- case C.g6:
- C.Pp(d, C.zJ.top);
- break;
- default:
- e("Invalid matrix mode specified")
- }
- };
- C.soa = "precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n}\n";
- C.toa = "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}";
- C.goa = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n} ";
- C.joa = "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}";
- C.hoa = "// #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}";
- C.ioa = "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}";
- C.ooa = "precision lowp float; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord); \n}";
- C.roa = "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}";
- C.poa = "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}";
- C.qoa = "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}";
- C.koa = "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}";
- C.loa = "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}";
- C.noa = "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}";
- C.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}";
- C.moa = "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}";
- C.$Ma = "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}";
- C.ug = {
- qU: 0,
- rU: 1,
- oU: 2,
- pU: 3,
- tU: 4,
- sU: 5,
- uU: 6,
- X7: 7,
- yNa: 8,
- Hg: {},
- UF: function() {
- this.mEa();
- return q
- },
- Qi: function(c, d) {
- switch (d) {
- case this.qU:
- c.Np(C.D7, C.noa);
- c.Mg(C.ev, C.Lc);
- c.Mg(C.tD, C.Hi);
- c.Mg(C.Hy, C.Vg);
- break;
- case this.rU:
- c.Np(C.D7, C.moa);
- c.Mg(C.ev, C.Lc);
- c.Mg(C.tD, C.Hi);
- c.Mg(C.Hy, C.Vg);
- break;
- case this.oU:
- c.Np(C.joa, C.goa);
- c.Mg(C.ev, C.Lc);
- c.Mg(C.tD, C.Hi);
- break;
- case this.pU:
- c.Np(C.roa, C.ooa);
- c.Mg(C.ev, C.Lc);
- c.Mg(C.Hy, C.Vg);
- break;
- case this.tU:
- c.Np(C.qoa, C.poa);
- c.Mg(C.ev, C.Lc);
- c.Mg(C.Hy, C.Vg);
- break;
- case this.sU:
- c.Np(C.loa, C.koa);
- c.Mg(C.ev, C.Lc);
- c.Mg(C.tD, C.Hi);
- c.Mg(C.Hy, C.Vg);
- break;
- case this.uU:
- c.Np(C.toa, C.soa);
- c.Mg("aVertex", C.Lc);
- break;
- case this.X7:
- c.Np(C.ioa, C.hoa);
- c.Mg(C.ev, C.Lc);
- c.Mg(C.Hy, C.Vg);
- c.Mg(C.tD, C.Hi);
- break;
- default:
- C.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type");
- return
- }
- c.link();
- c.MJa()
- },
- mEa: function() {
- var c = new C.yo;
- this.Qi(c, this.qU);
- this.Hg[C.Co] = c;
- this.Hg.ShaderPositionTextureColor = c;
- c = new C.yo;
- this.Qi(c, this.rU);
- this.Hg[C.KK] = c;
- this.Hg.ShaderPositionTextureColorAlphaTest = c;
- c = new C.yo;
- this.Qi(c, this.oU);
- this.Hg[C.JK] = c;
- this.Hg.ShaderPositionColor = c;
- c = new C.yo;
- this.Qi(c, this.pU);
- this.Hg[C.yE] = c;
- this.Hg.ShaderPositionTexture = c;
- c = new C.yo;
- this.Qi(c, this.tU);
- this.Hg[C.LK] = c;
- this.Hg.ShaderPositionTextureUColor = c;
- c = new C.yo;
- this.Qi(c, this.sU);
- this.Hg[C.$T] = c;
- this.Hg.ShaderPositionTextureA8Color = c;
- c = new C.yo;
- this.Qi(c, this.uU);
- this.Hg[C.aU] = c;
- this.Hg.ShaderPositionUColor = c;
- c = new C.yo;
- this.Qi(c, this.X7);
- this.Hg[C.C7] = c;
- this.Hg.ShaderPositionLengthTextureColor = c
- },
- N1a: function() {
- var c = this.Xd(C.Co);
- c.reset();
- this.Qi(c, this.qU);
- c = this.Xd(C.KK);
- c.reset();
- this.Qi(c, this.rU);
- c = this.Xd(C.JK);
- c.reset();
- this.Qi(c, this.oU);
- c = this.Xd(C.yE);
- c.reset();
- this.Qi(c, this.pU);
- c = this.Xd(C.LK);
- c.reset();
- this.Qi(c, this.tU);
- c = this.Xd(C.$T);
- c.reset();
- this.Qi(c, this.sU);
- c = this.Xd(C.aU);
- c.reset();
- this.Qi(c, this.uU)
- },
- Xd: function(c) {
- return this.Hg[c]
- },
- Lx: function(c) {
- return this.Hg[c]
- },
- fQa: function(c, d) {
- this.Hg[d] = c
- }
- };
- C.xma = function() {
- this.location = this.value = m;
- this.WP = {}
- };
- C.yo = C.O.extend({
- Qa: s,
- nd: s,
- Zj: s,
- Xl: s,
- ad: s,
- ln: s,
- hca: t,
- bj: function(c, d) {
- if (c == s) return t;
- for (var f = q,
- g = s,
- h = 0; h < this.ln.length; h++) this.ln[h].location == c && (g = this.ln[h]);
- g ? g.value == d ? f = t: g.value = d: (g = new C.xma, g.location = c, g.value = d, this.ln.push(g));
- return f
- },
- wOa: function() {
- return "\x3cCCGLProgram \x3d " + this.toString() + " | Program \x3d " + this.nd.toString() + ", VertexShader \x3d " + this.Zj.toString() + ", FragmentShader \x3d " + this.Xl.toString() + "\x3e"
- },
- x9: function(c, d, f) {
- if (!f || !c) return t;
- this.Qa.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" + f);
- this.Qa.compileShader(c);
- f = this.Qa.getShaderParameter(c, this.Qa.COMPILE_STATUS);
- f || (C.log("cocos2d: ERROR: Failed to compile shader:\n" + this.Qa.getShaderSource(c)), d == this.Qa.VERTEX_SHADER ? C.log("cocos2d: \n" + this.RJa()) : C.log("cocos2d: \n" + this.Qza()));
- return 1 == f
- },
- ctor: function(c, d, f) {
- this.ad = [];
- this.ln = [];
- this.Qa = f || C.t;
- c && d && this.j(c, d)
- },
- xRa: function() {
- this.ln = this.ad = this.Xl = this.Zj = s;
- this.Qa.deleteProgram(this.nd)
- },
- Np: function(c, d) {
- var f = this.Qa;
- this.nd = f.createProgram();
- this.Xl = this.Zj = s;
- c && (this.Zj = f.createShader(f.VERTEX_SHADER), this.x9(this.Zj, f.VERTEX_SHADER, c) || C.log("cocos2d: ERROR: Failed to compile vertex shader"));
- d && (this.Xl = f.createShader(f.FRAGMENT_SHADER), this.x9(this.Xl, f.FRAGMENT_SHADER, d) || C.log("cocos2d: ERROR: Failed to compile fragment shader"));
- this.Zj && f.attachShader(this.nd, this.Zj);
- C.DB();
- this.Xl && f.attachShader(this.nd, this.Xl);
- this.ln.length = 0;
- C.DB();
- return q
- },
- sf: function(c, d) {
- return this.Np(c, d)
- },
- dDa: function(c, d) {
- var f = C.M.xd(c);
- f || e("Please load the resource firset : " + c);
- var g = C.M.xd(d);
- g || e("Please load the resource firset : " + d);
- return this.Np(f, g)
- },
- j: function(c, d) {
- return this.dDa(c, d)
- },
- Mg: function(c, d) {
- this.Qa.bindAttribLocation(this.nd, d, c)
- },
- link: function() {
- if (!this.nd) return C.log("cc.GLProgram.link(): Cannot link invalid program"),
- t;
- this.Qa.linkProgram(this.nd);
- this.Zj && this.Qa.deleteShader(this.Zj);
- this.Xl && this.Qa.deleteShader(this.Xl);
- this.Xl = this.Zj = s;
- return C.qf.gj[C.qf.Wm.CH] && !this.Qa.getProgramParameter(this.nd, this.Qa.LINK_STATUS) ? (C.log("cocos2d: ERROR: Failed to link program: " + this.Qa.getProgramInfoLog(this.nd)), C.vCa(this.nd), this.nd = s, t) : q
- },
- Af: function() {
- C.N0(this.nd)
- },
- MJa: function() {
- this.ad[C.HU] = this.Qa.getUniformLocation(this.nd, C.hqa);
- this.ad[C.GU] = this.Qa.getUniformLocation(this.nd, C.fqa);
- this.ad[C.NE] = this.Qa.getUniformLocation(this.nd, C.gqa);
- this.ad[C.LU] = this.Qa.getUniformLocation(this.nd, C.lqa);
- this.ad[C.KU] = this.Qa.getUniformLocation(this.nd, C.kqa);
- this.ad[C.FU] = this.Qa.getUniformLocation(this.nd, C.eqa);
- this.hca = this.ad[C.LU] != s || this.ad[C.KU] != s || this.ad[C.FU] != s;
- this.ad[C.IU] = this.Qa.getUniformLocation(this.nd, C.iqa);
- this.ad[C.JU] = this.Qa.getUniformLocation(this.nd, C.jqa);
- this.Af();
- this.zia(this.ad[C.JU], 0)
- },
- mXa: function(c) {
- c || e("cc.GLProgram.getUniformLocationForName(): uniform name should be non-null");
- this.nd || e("cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized");
- return this.Qa.getUniformLocation(this.nd, c)
- },
- nXa: function() {
- return this.ad[C.NE]
- },
- oXa: function() {
- return this.ad[C.JU]
- },
- zia: function(c, d) {
- this.bj(c, d) && this.Qa.uniform1i(c, d)
- },
- B5a: function(c, d, f) {
- this.bj(c, [d, f]) && this.Qa.uniform2i(c, d, f)
- },
- E5a: function(c, d, f, g) {
- this.bj(c, [d, f, g]) && this.Qa.uniform3i(c, d, f, g)
- },
- H5a: function(c, d, f, g, h) {
- this.bj(c, [d, f, g, h]) && this.Qa.uniform4i(c, d, f, g, h)
- },
- C5a: function(c, d) {
- this.bj(c, d) && this.Qa.uniform2iv(c, d)
- },
- F5a: function(c, d) {
- this.bj(c, d) && this.Qa.uniform3iv(c, d)
- },
- I5a: function(c, d) {
- this.bj(c, d) && this.Qa.uniform4iv(c, d)
- },
- z5a: function(c, d) {
- this.zia(c, d)
- },
- sJ: function(c, d) {
- this.bj(c, d) && this.Qa.uniform1f(c, d)
- },
- uIa: function(c, d, f) {
- this.bj(c, [d, f]) && this.Qa.uniform2f(c, d, f)
- },
- vIa: function(c, d, f, g) {
- this.bj(c, [d, f, g]) && this.Qa.uniform3f(c, d, f, g)
- },
- tJ: function(c, d, f, g, h) {
- this.bj(c, [d, f, g, h]) && this.Qa.uniform4f(c, d, f, g, h)
- },
- A5a: function(c, d) {
- this.bj(c, d) && this.Qa.uniform2fv(c, d)
- },
- D5a: function(c, d) {
- this.bj(c, d) && this.Qa.uniform3fv(c, d)
- },
- G5a: function(c, d) {
- this.bj(c, d) && this.Qa.uniform4fv(c, d)
- },
- v3: function(c, d) {
- this.bj(c, d) && this.Qa.uniformMatrix4fv(c, t, d)
- },
- y5a: function() {
- if (! (2 > arguments.length)) switch (arguments.length) {
- case 2:
- this.sJ(arguments[0], arguments[1]);
- break;
- case 3:
- this.uIa(arguments[0], arguments[1], arguments[2]);
- break;
- case 4:
- this.vIa(arguments[0], arguments[1], arguments[2], arguments[3]);
- break;
- case 5:
- this.tJ(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4])
- }
- },
- uJ: function() {
- var c = new C.Ia,
- d = new C.Ia,
- f = new C.Ia;
- C.rQ(C.mq, c);
- C.rQ(C.lq, d);
- C.Qp(f, c, d);
- this.v3(this.ad[C.HU], c.c, 1);
- this.v3(this.ad[C.GU], d.c, 1);
- this.v3(this.ad[C.NE], f.c, 1);
- this.hca && (c = C.Q, c = c.tO * c.TE, this.tJ(this.ad[C.LU], c / 10, c, 2 * c, 4 * c), this.tJ(this.ad[C.KU], c / 8, c / 4, c / 2, Math.sin(c)), this.tJ(this.ad[C.FU], c / 8, c / 4, c / 2, Math.cos(c))); - 1 != this.ad[C.IU] && this.tJ(this.ad[C.IU], Math.random(), Math.random(), Math.random(), Math.random())
- },
- w5a: function() {
- this.Qa.uniformMatrix4fv(this.ad[C.NE], t, C.aBa())
- },
- x5a: function(c) {
- C.Qp(c, C.Iu.top, C.cs.top);
- this.Qa.uniformMatrix4fv(this.ad[C.NE], t, c.c)
- },
- Bj: function() {
- this.Qa.uniformMatrix4fv(this.ad[C.GU], t, C.cs.top.c);
- this.Qa.uniformMatrix4fv(this.ad[C.HU], t, C.Iu.top.c)
- },
- RJa: function() {
- return this.Qa.getShaderInfoLog(this.Zj)
- },
- sXa: function() {
- return this.Qa.getShaderInfoLog(this.Zj)
- },
- JUa: function() {
- return this.Qa.getShaderInfoLog(this.Zj)
- },
- Qza: function() {
- return this.Qa.getShaderInfoLog(this.Xl)
- },
- o1a: function() {
- return this.Qa.getProgramInfoLog(this.nd)
- },
- fWa: function() {
- return this.Qa.getProgramInfoLog(this.nd)
- },
- reset: function() {
- this.Xl = this.Zj = s;
- this.ad.length = 0;
- this.Qa.deleteProgram(this.nd);
- this.nd = s;
- for (var c = 0; c < this.ln.length; c++) this.ln[c].value = s,
- this.ln[c] = s;
- this.ln.length = 0
- },
- Lx: A("nd"),
- fR: u(),
- rh: u()
- });
- C.yo.create = function(c, d) {
- return new C.yo(c, d)
- };
- C.E9 = -1;
- C.yZ = t;
- C.xZ = t;
- C.zZ = t;
- C.an && (C.Zma = 16, C.sF = -1, C.rF = [ - 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], C.uz = -1, C.tz = -1, C.yqa = 0, C.jU && (C.Yba = 0));
- C.DXa = function() {
- C.ODa();
- C.E9 = -1;
- C.yZ = t;
- C.xZ = t;
- C.zZ = t;
- if (C.an) {
- C.sF = -1;
- for (var c = 0; c < C.Zma; c++) C.rF[c] = -1;
- C.uz = -1;
- C.tz = -1;
- C.yqa = 0
- }
- };
- C.N0 = function(c) {
- c !== C.sF && (C.sF = c, C.t.useProgram(c))
- };
- C.an || (C.N0 = function(c) {
- C.t.useProgram(c)
- });
- C.vCa = function(c) {
- C.an && c === C.sF && (C.sF = -1);
- gl.deleteProgram(c)
- };
- C.Gm = function(c, d) {
- if (c !== C.uz || d !== C.tz) C.uz = c,
- C.tz = d,
- C.tR(c, d)
- };
- C.tR = function(c, d) {
- var f = C.t;
- c === f.ONE && d === f.ZERO ? f.disable(f.BLEND) : (f.enable(f.BLEND), C.t.blendFunc(c, d))
- };
- C.Gea = function(c, d) {
- if (c !== C.uz || d !== C.tz) {
- C.uz = c;
- C.tz = d;
- var f = C.t;
- c === f.ONE && d === f.ZERO ? f.disable(f.BLEND) : (f.enable(f.BLEND), f.blendFuncSeparate(f.SRC_ALPHA, d, c, d))
- }
- };
- C.an || (C.Gm = C.tR);
- C.AXa = function() {
- var c = C.t;
- c.blendEquation(c.FUNC_ADD);
- C.an ? C.tR(C.uz, C.tz) : C.tR(c.Ic, c.Hc)
- };
- C.$ha = function() {
- C.E9 = -1
- };
- C.rf = function(c) {
- var d = C.t,
- f = c & C.Ch;
- f !== C.yZ && (f ? d.enableVertexAttribArray(C.Lc) : d.disableVertexAttribArray(C.Lc), C.yZ = f);
- f = c & C.ZK;
- f !== C.xZ && (f ? d.enableVertexAttribArray(C.Hi) : d.disableVertexAttribArray(C.Hi), C.xZ = f);
- c &= C.fz;
- c !== C.zZ && (c ? d.enableVertexAttribArray(C.Vg) : d.disableVertexAttribArray(C.Vg), C.zZ = c)
- };
- C.yi = function(c) {
- C.M0(0, c)
- };
- C.M0 = function(c, d) {
- if (C.rF[c] != d) {
- C.rF[c] = d;
- var f = C.t;
- f.activeTexture(f.TEXTURE0 + c);
- d ? f.bindTexture(f.TEXTURE_2D, d.Sh) : f.bindTexture(f.TEXTURE_2D, s)
- }
- };
- C.an || (C.M0 = function(c, d) {
- var f = C.t;
- f.activeTexture(f.TEXTURE0 + c);
- d ? f.bindTexture(f.TEXTURE_2D, d.Sh) : f.bindTexture(f.TEXTURE_2D, s)
- });
- C.BXa = function(c) {
- C.wCa(c)
- };
- C.wCa = function(c) {
- C.an && c == C.rF[0] && (C.rF[0] = -1);
- C.t.deleteTexture(c)
- };
- C.zXa = function(c) {
- C.jU && (C.an && C.Yba != c) && (C.Yba = c)
- };
- C.CXa = u();
- C.TLa = 0;
- C.ULa = 1;
- C.VLa = 2;
- C.Cs = function(c) {
- c -= 1;
- c |= c >> 1;
- c |= c >> 2;
- c |= c >> 4;
- c |= c >> 8;
- return (c | c >> 16) + 1
- };
- C.yv = C.A.extend({
- sprite: s,
- eP: 0,
- w_: 0,
- qH: t,
- gi: s,
- Ki: s,
- sM: 0,
- uF: 0,
- hp: 0,
- da: s,
- VG: s,
- Xva: s,
- ip: C.Ma.qq,
- Jq: s,
- x_: 0,
- MV: s,
- qa: "RenderTexture",
- ctor: s,
- pF: function(c, d, f, g) {
- C.A.prototype.ctor.call(this);
- this.Jq = C.color(255, 255, 255, 255);
- this.MV = "rgba(255,255,255,1)";
- this.gi = C.bd("canvas");
- this.Ki = this.gi.getContext("2d");
- this.anchorY = this.anchorX = 0;
- c !== m && d !== m && (f = f || C.Ma.qq, this.hQ(c, d, f, g || 0))
- },
- qF: function(c, d, f, g) {
- C.A.prototype.ctor.call(this);
- this.Jq = C.color(0, 0, 0, 0);
- c !== m && d !== m && (f = f || C.Ma.qq, this.hQ(c, d, f, g || 0))
- },
- ze: s,
- mra: function() {
- C.A.prototype.Na.call(this);
- this.gi = this.Ki = s
- },
- nra: function() {
- C.A.prototype.Na.call(this);
- this.VG = s;
- var c = C.t;
- c.deleteFramebuffer(this.sM);
- this.uF && c.deleteRenderbuffer(this.uF);
- this.Xva = s
- },
- E0: A("sprite"),
- NR: x("sprite"),
- hQ: s,
- hta: function(c, d) {
- var f = this.gi,
- g = C.Ec();
- f.width = 0 | c * g;
- f.height = 0 | d * g;
- this.Ki.translate(0, f.height);
- g = new C.Ma;
- g.Ng(f);
- g.Md();
- this.sprite = C.u.create(g);
- return q
- },
- ita: function(c, d, f, g) {
- f == C.Ma.pE && C.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;");
- var h = C.t,
- k = C.Ec();
- c = 0 | c * k;
- d = 0 | d * k;
- this.hp = h.getParameter(h.FRAMEBUFFER_BINDING);
- var n;
- C.FB.mO ? (k = c, n = d) : (k = C.Cs(c), n = C.Cs(d));
- for (var p = new Uint8Array(4 * k * n), r = 0; r < 4 * k * n; r++) p[r] = 0;
- this.ip = f;
- this.da = new C.Ma;
- if (!this.da) return t;
- r = this.da;
- r.Au(p, this.ip, k, n, C.size(c, d));
- f = h.getParameter(h.RENDERBUFFER_BINDING);
- if (C.FB.CB("GL_QCOM")) {
- this.VG = new C.Ma;
- if (!this.VG) return t;
- this.VG.Au(p, this.ip, k, n, C.size(c, d))
- }
- this.sM = h.createFramebuffer();
- h.bindFramebuffer(h.FRAMEBUFFER, this.sM);
- h.framebufferTexture2D(h.FRAMEBUFFER, h.COLOR_ATTACHMENT0, h.TEXTURE_2D, r.Sh, 0);
- 0 != g && (this.uF = h.createRenderbuffer(), h.bindRenderbuffer(h.RENDERBUFFER, this.uF), h.renderbufferStorage(h.RENDERBUFFER, g, k, n), h.framebufferRenderbuffer(h.FRAMEBUFFER, h.DEPTH_ATTACHMENT, h.RENDERBUFFER, this.uF));
- h.checkFramebufferStatus(h.FRAMEBUFFER) !== h.FRAMEBUFFER_COMPLETE && C.log("Could not attach texture to the framebuffer");
- r.B2();
- c = this.sprite = C.u.create(r);
- c.scaleY = -1;
- c.Yd(h.ONE, h.ONE_MINUS_SRC_ALPHA);
- h.bindRenderbuffer(h.RENDERBUFFER, f);
- h.bindFramebuffer(h.FRAMEBUFFER, this.hp);
- this.qH = t;
- this.q(c);
- return q
- },
- Sn: s,
- Wqa: function() {
- C.t = this.Ki;
- C.view.vba()
- },
- Xqa: function() {
- C.Op(C.mq);
- C.Zr();
- C.Op(C.lq);
- C.Zr();
- var c = C.Q;
- c.py(c.op);
- var d = this.da.o,
- f = C.Q.bI(),
- c = f.width / d.width,
- f = f.height / d.height,
- g = C.t;
- g.viewport(0, 0, d.width, d.height);
- d = new C.Ia;
- C.q1(d, -1 / c, 1 / c, -1 / f, 1 / f, -1, 1);
- C.lC(d);
- this.hp = g.getParameter(g.FRAMEBUFFER_BINDING);
- g.bindFramebuffer(g.FRAMEBUFFER, this.sM);
- C.FB.CB("GL_QCOM") && (g.framebufferTexture2D(g.FRAMEBUFFER, g.COLOR_ATTACHMENT0, g.TEXTURE_2D, this.VG.Sh, 0), g.clear(g.COLOR_BUFFER_BIT | g.DEPTH_BUFFER_BIT), g.framebufferTexture2D(g.FRAMEBUFFER, g.COLOR_ATTACHMENT0, g.TEXTURE_2D, this.da.Sh, 0))
- },
- nxa: function(c, d, f, g, h, k) {
- var n = C.t;
- h = h || n.COLOR_BUFFER_BIT;
- k = k || n.COLOR_BUFFER_BIT | n.DEPTH_BUFFER_BIT;
- this.wV(c, d, f, g, h, k, n.COLOR_BUFFER_BIT | n.DEPTH_BUFFER_BIT | n.STENCIL_BUFFER_BIT)
- },
- wV: s,
- Yqa: function(c, d, f, g) {
- this.Sn();
- c = c || 0;
- d = d || 0;
- f = f || 0;
- g = isNaN(g) ? 1 : g;
- var h = this.Ki,
- k = this.gi;
- h.save();
- h.fillStyle = "rgba(" + (0 | c) + "," + (0 | d) + "," + (0 | f) + "," + g / 255 + ")";
- h.clearRect(0, 0, k.width, -k.height);
- h.fillRect(0, 0, k.width, -k.height);
- h.restore()
- },
- Zqa: function(c, d, f, g, h, k, n) {
- this.Sn();
- var p = C.t,
- r = [0, 0, 0, 0],
- v = 0,
- y = 0;
- n & p.COLOR_BUFFER_BIT && (r = p.getParameter(p.COLOR_CLEAR_VALUE), p.clearColor(c, d, f, g));
- n & p.DEPTH_BUFFER_BIT && (v = p.getParameter(p.DEPTH_CLEAR_VALUE), p.clearDepth(h));
- n & p.STENCIL_BUFFER_BIT && (y = p.getParameter(p.STENCIL_CLEAR_VALUE), p.clearStencil(k));
- p.clear(n);
- n & p.COLOR_BUFFER_BIT && p.clearColor(r[0], r[1], r[2], r[3]);
- n & p.DEPTH_BUFFER_BIT && p.clearDepth(v);
- n & p.STENCIL_BUFFER_BIT && p.clearStencil(y)
- },
- end: s,
- Rra: function() {
- C.t = C.Dta;
- C.view.hba()
- },
- Sra: function() {
- var c = C.t,
- d = C.Q;
- c.bindFramebuffer(c.FRAMEBUFFER, this.hp);
- d.Aia();
- C.Op(C.mq);
- C.Yr();
- C.Op(C.lq);
- C.Yr()
- },
- clear: function(c, d, f, g) {
- this.nxa(c, d, f, g);
- this.end()
- },
- clearRect: s,
- qra: function(c, d, f, g) {
- this.Ki.clearRect(c, d, f, -g)
- },
- rra: u(),
- clearDepth: s,
- ora: function() {
- C.log("clearDepth isn't supported on Cocos2d-Html5")
- },
- pra: function(c) {
- this.Sn();
- var d = C.t,
- f = d.getParameter(d.DEPTH_CLEAR_VALUE);
- d.clearDepth(c);
- d.clear(d.DEPTH_BUFFER_BIT);
- d.clearDepth(f);
- this.end()
- },
- clearStencil: s,
- sra: function() {
- C.log("clearDepth isn't supported on Cocos2d-Html5")
- },
- tra: function(c) {
- var d = C.t,
- f = d.getParameter(d.STENCIL_CLEAR_VALUE);
- d.clearStencil(c);
- d.clear(d.STENCIL_BUFFER_BIT);
- d.clearStencil(f)
- },
- J: s,
- Hr: function(c) {
- this.Ja && (c = c || C.t, c.save(), this.ka(c), this.transform(c), this.sprite.J(), c.restore(), this.arrivalOrder = 0)
- },
- fx: function(c) {
- if (this.Ja) {
- C.Zr();
- var d = this.grid;
- d && d.zi() && (d.px(), this.CJ());
- this.transform(c);
- this.sprite.J();
- this.ka(c);
- d && d.zi() && d.mx(this);
- C.Yr();
- this.arrivalOrder = 0
- }
- },
- ka: s,
- Qq: function(c) {
- c = c || C.t;
- if (this.qH) {
- this.Sn();
- if (this.eP) {
- var d = this.gi;
- c.save();
- c.fillStyle = this.MV;
- c.clearRect(0, 0, d.width, -d.height);
- c.fillRect(0, 0, d.width, -d.height);
- c.restore()
- }
- this.ed();
- c = this.l;
- for (var d = c.length,
- f = this.sprite,
- g = 0; g < d; g++) {
- var h = c[g];
- h != f && h.J()
- }
- this.end()
- }
- },
- gn: function() {
- var c = C.t;
- if (this.qH) {
- this.Sn();
- var d = this.eP;
- if (d) {
- var f = [0, 0, 0, 0],
- g = 0,
- h = 0;
- d & c.COLOR_BUFFER_BIT && (f = c.getParameter(c.COLOR_CLEAR_VALUE), c.clearColor(this.Jq.r / 255, this.Jq.g / 255, this.Jq.b / 255, this.Jq.a / 255));
- d & c.DEPTH_BUFFER_BIT && (g = c.getParameter(c.DEPTH_CLEAR_VALUE), c.clearDepth(this.w_));
- d & c.STENCIL_BUFFER_BIT && (h = c.getParameter(c.STENCIL_CLEAR_VALUE), c.clearStencil(this.x_));
- c.clear(d);
- d & c.COLOR_BUFFER_BIT && c.clearColor(f[0], f[1], f[2], f[3]);
- d & c.DEPTH_BUFFER_BIT && c.clearDepth(g);
- d & c.STENCIL_BUFFER_BIT && c.clearStencil(h)
- }
- this.ed();
- c = this.l;
- for (d = 0; d < c.length; d++) f = c[d],
- f != this.sprite && f.J();
- this.end()
- }
- },
- g0a: function() {
- C.log("saveToFile isn't supported on cocos2d-html5");
- return s
- },
- fPa: function(c, d, f, g, h) {
- for (var k = 0; k < h; k++) c[d + k] = f[g + k]
- },
- O2a: function() {
- C.log("saveToFile isn't supported on Cocos2d-Html5")
- },
- W_a: function() {
- C.log("listenToBackground isn't supported on Cocos2d-Html5")
- },
- X_a: function() {
- C.log("listenToForeground isn't supported on Cocos2d-Html5")
- },
- ETa: A("eP"),
- D3a: x("eP"),
- jAa: A("Jq"),
- L2: s,
- Rua: function(c) {
- var d = this.Jq;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b;
- d.a = c.a;
- this.MV = "rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + "," + c.a / 255 + ")"
- },
- Sua: function(c) {
- var d = this.Jq;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b;
- d.a = c.a
- },
- DTa: A("w_"),
- C3a: x("w_"),
- FTa: A("x_"),
- E3a: x("x_"),
- cYa: A("qH"),
- r3a: x("qH")
- });
- H = C.yv.prototype;
- C.L == C.la ? (H.ctor = H.qF, H.ze = H.nra, H.hQ = H.ita, H.Sn = H.Xqa, H.wV = H.Zqa, H.end = H.Sra, H.clearRect = H.rra, H.clearDepth = H.pra, H.clearStencil = H.tra, H.J = H.fx, H.ka = H.gn, H.L2 = H.Sua) : (H.ctor = H.pF, H.ze = H.mra, H.hQ = H.hta, H.Sn = H.Wqa, H.wV = H.Yqa, H.end = H.Rra, H.clearRect = H.qra, H.clearDepth = H.ora, H.clearStencil = H.sra, H.J = H.Hr, H.ka = H.Qq, H.L2 = H.Rua);
- C.e(H, "clearColorVal", H.jAa, H.L2);
- C.yv.create = function(c, d, f, g) {
- return new C.yv(c, d, f, g)
- };
- C.Gl = C.gq.extend({
- qd: s,
- rX: s,
- Aa: t,
- ac: s,
- qa: "LabelAtlas",
- ctor: function(c, d, f, g, h) {
- C.gq.prototype.ctor.call(this);
- d && C.Gl.prototype.sf.call(this, c, d, f, g, h)
- },
- eD: A("Aa"),
- ye: function(c, d) {
- this.ac || (this.ac = []);
- this.ac.push({
- jl: c,
- jj: d
- })
- },
- cf: function() {
- if (this.ac) {
- this.Aa = q;
- for (var c = this.ac,
- d = 0,
- f = c.length; d < f; d++) {
- var g = c[d];
- g.jl.call(g.jj, this)
- }
- c.length = 0
- }
- },
- sf: function(c, d, f, g, h) {
- var k = c + "",
- n, p;
- if (f === m) {
- f = C.M.xd(d);
- if (1 !== parseInt(f.version, 10)) return C.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"),
- t;
- d = C.path.BB(d, f.textureFilename);
- g = C.Ec();
- n = parseInt(f.itemWidth, 10) / g;
- p = parseInt(f.itemHeight, 10) / g;
- f = String.fromCharCode(parseInt(f.firstChar, 10))
- } else n = f || 0,
- p = g || 0,
- f = h || " ";
- var r = s,
- r = d instanceof C.Ma ? d: C.kb.sd(d); (this.Aa = d = r.de) || r.ye(function() {
- this.ta(r, n, p, k.length);
- this.string = k;
- this.cf()
- },
- this);
- return this.ta(r, n, p, k.length) ? (this.rX = f, this.string = k, q) : t
- },
- G: function(c) {
- C.gq.prototype.G.call(this, c);
- this.iD()
- },
- Wb: A("qd"),
- ka: function(c) {
- C.gq.prototype.ka.call(this, c);
- C.Qma && (c = this.size, c = [C.d(0, 0), C.d(c.width, 0), C.d(c.width, c.height), C.d(0, c.height)], C.Df.Of(c, 4, q))
- },
- aV: function(c, d, f) {
- c.xta = q;
- C.ha.prototype.q.call(this, c, d, f)
- },
- iD: s,
- Yva: function() {
- for (var c = this.qd || "",
- d = c.length,
- f = this.texture,
- g = this.Tj,
- h = this.Oi,
- k = 0; k < d; k++) {
- var n = c.charCodeAt(k) - this.rX.charCodeAt(0),
- n = C.rect(parseInt(n % this.uA, 10) * g, parseInt(n / this.uA, 10) * h, g, h),
- p = c.charCodeAt(k),
- r = this.lj(k);
- r ? 32 == p ? (r.j(), r.qc(C.rect(0, 0, 10, 10), t, C.size(0, 0))) : (r.ta(f, n), r.visible = q, r.opacity = this.hb) : (r = new C.u, 32 == p ? (r.j(), r.qc(C.rect(0, 0, 10, 10), t, C.size(0, 0))) : r.ta(f, n), C.ha.prototype.q.call(this, r, 0, k));
- r.p(k * g + g / 2, h / 2)
- }
- },
- Zva: function() {
- var c = this.qd,
- d = c.length,
- f = this.textureAtlas,
- g = f.texture,
- h = g.pixelsWidth,
- g = g.pixelsHeight,
- k = this.Tj,
- n = this.Oi;
- this.IM || (k = this.Tj * C.Ec(), n = this.Oi * C.Ec());
- d > f.Yf && C.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length");
- for (var p = f.quads,
- r = this.wb,
- r = {
- r: r.r,
- g: r.g,
- b: r.b,
- a: this.hb
- },
- v = this.Tj, y = 0; y < d; y++) {
- var z = c.charCodeAt(y) - this.rX.charCodeAt(0),
- D = z % this.uA,
- E = 0 | z / this.uA,
- F;
- C.Qy ? (D = (2 * D * k + 1) / (2 * h), z = D + (2 * k - 2) / (2 * h), E = (2 * E * n + 1) / (2 * g), F = E + (2 * n - 2) / (2 * g)) : (D = D * k / h, z = D + k / h, E = E * n / g, F = E + n / g);
- var G = p[y],
- K = G.X,
- O = G.V,
- U = G.T,
- G = G.Y;
- K.v.xa = D;
- K.v.ea = E;
- O.v.xa = z;
- O.v.ea = E;
- U.v.xa = D;
- U.v.ea = F;
- G.v.xa = z;
- G.v.ea = F;
- U.m.x = y * v;
- U.m.y = 0;
- U.m.f = 0;
- G.m.x = y * v + v;
- G.m.y = 0;
- G.m.f = 0;
- K.m.x = y * v;
- K.m.y = this.Oi;
- K.m.f = 0;
- O.m.x = y * v + v;
- O.m.y = this.Oi;
- O.m.f = 0;
- K.F = r;
- O.F = r;
- U.F = r;
- G.F = r
- }
- 0 < d && (f.dirty = q, c = f.totalQuads, d > c && f.Pea(d - c))
- },
- sa: s,
- sva: function(c) {
- c = String(c);
- var d = c.length;
- this.qd = c;
- this.width = d * this.Tj;
- this.height = this.Oi;
- if (this.l) {
- c = this.l;
- for (var d = c.length,
- f = 0; f < d; f++) {
- var g = c[f];
- g && !g.xta && (g.visible = t)
- }
- }
- this.iD();
- this.quadsToDraw = d
- },
- uva: function(c) {
- c = String(c);
- var d = c.length;
- d > this.textureAtlas.totalQuads && this.textureAtlas.eR(d);
- this.qd = c;
- this.width = d * this.Tj;
- this.height = this.Oi;
- this.iD();
- this.quadsToDraw = d
- },
- K: s,
- FY: function(c) {
- if (this.hb !== c) {
- C.gq.prototype.K.call(this, c);
- for (var d = this.l,
- f = 0,
- g = d.length; f < g; f++) d[f] && (d[f].opacity = c)
- }
- },
- GY: function(c) {
- this.Eb !== c && C.gq.prototype.K.call(this, c)
- }
- });
- H = C.Gl.prototype;
- C.L === C.la ? (H.iD = H.Zva, H.sa = H.uva, H.K = H.GY) : (H.iD = H.Yva, H.sa = H.sva, H.K = H.FY, H.q = H.aV);
- C.e(H, "opacity", H.rb, H.K);
- C.e(H, "string", H.Wb, H.sa);
- C.Gl.create = function(c, d, f, g, h) {
- return new C.Gl(c, d, f, g, h)
- };
- C.eMa = -1;
- C.rv = C.Bh.extend({
- sb: q,
- Fb: t,
- qd: "",
- Nk: s,
- FF: "",
- oA: "",
- RE: C.Fs,
- iH: -1,
- qaa: t,
- JM: s,
- kba: s,
- hb: 255,
- Ig: 255,
- wb: s,
- od: s,
- Zf: q,
- Ag: q,
- Aa: t,
- ac: s,
- qa: "LabelBMFont",
- wba: function(c, d) {
- d ? this.oA = c: this.qd = c;
- var f = this.l;
- if (f) for (var g = 0; g < f.length; g++) {
- var h = f[g];
- h && h.va(t)
- }
- this.Aa && (this.jP(), d && this.zl())
- },
- ctor: function(c, d, f, g, h) {
- C.Bh.prototype.ctor.call(this);
- this.JM = C.d(0, 0);
- this.wb = C.color(255, 255, 255, 255);
- this.od = C.color(255, 255, 255, 255);
- this.kba = [];
- this.sf(c, d, f, g, h)
- },
- eD: A("Aa"),
- ye: function(c, d) {
- this.ac || (this.ac = []);
- this.ac.push({
- jl: c,
- jj: d
- })
- },
- cf: function() {
- if (this.ac) {
- for (var c = this.ac,
- d = 0,
- f = c.length; d < f; d++) {
- var g = c[d];
- g.jl.call(g.jj, this)
- }
- c.length = 0
- }
- },
- ka: function(c) {
- C.Bh.prototype.ka.call(this, c);
- if (C.Rma) {
- c = this.i();
- var d = C.d(0 | -this.Nb.x, 0 | -this.Nb.y);
- c = [C.d(d.x, d.y), C.d(d.x + c.width, d.y), C.d(d.x + c.width, d.y + c.height), C.d(d.x, d.y + c.height)];
- C.Df.tj(0, 255, 0, 255);
- C.Df.Of(c, 4, q)
- }
- },
- G: function(c) {
- var d = this.wb,
- f = this.od;
- f.r == c.r && f.g == c.g && f.b == c.b && f.a == c.a || (d.r = f.r = c.r, d.g = f.g = c.g, d.b = f.b = c.b, this.Aa && this.Zf && (d = C.color.WHITE, (f = this.Vb) && (f.sb && f.cascadeColor) && (d = f.xu()), this.Tb(d)), c.a !== m && !c.jx && this.K(c.a))
- },
- qg: A("Fb"),
- $d: function(c) {
- this.Fb = c;
- if (c = this.l) for (var d = 0; d < c.length; d++) {
- var f = c[d];
- f && f.sb && (f.opacityModifyRGB = this.Fb)
- }
- },
- rb: A("Ig"),
- Tda: A("hb"),
- K: function(c) {
- this.hb = this.Ig = c;
- if (this.Ag) {
- var d = 255,
- f = this.Vb;
- f && (f.sb && f.cascadeOpacity) && (d = f.hb);
- this.dc(d)
- }
- this.wb.a = this.od.a = c
- },
- dc: function(c) {
- this.hb = this.Ig * c / 255;
- c = this.l;
- for (var d = 0; d < c.length; d++) {
- var f = c[d];
- C.L == C.la ? f.dc(this.hb) : (C.ha.prototype.dc.call(f, this.hb), f.Da())
- }
- this.ct()
- },
- nI: B(t),
- Qu: x("Ag"),
- Xa: function() {
- var c = this.od;
- return C.color(c.r, c.g, c.b, c.a)
- },
- xu: A("wb"),
- Tb: function(c) {
- var d = this.wb,
- f = this.od;
- d.r = f.r * c.r / 255;
- d.g = f.g * c.g / 255;
- d.b = f.b * c.b / 255;
- c = this.l;
- for (d = 0; d < c.length; d++) f = c[d],
- C.L == C.la ? f.Tb(this.wb) : (C.ha.prototype.Tb.call(f, this.wb), f.Da());
- this.ct()
- },
- ct: function() {
- if (C.L != C.la) {
- var c, d = this.texture;
- if (d && 0 < d.width && (c = d.jd)) if (d = C.kb.OP(this.qi.jd)) c instanceof HTMLCanvasElement && !this.jf ? C.TB(c, d, this.wb, s, c) : (c = C.TB(c, d, this.wb), d = new C.Ma, d.Ng(c), d.Md(), this.texture = d)
- }
- },
- mI: B(t),
- Pu: x("Zf"),
- j: function() {
- return this.sf(s, s, s, s, s)
- },
- sf: function(c, d, f, g, h) {
- c = c || "";
- this.Nk && C.log("cc.LabelBMFont.initWithString(): re-init is no longer supported");
- if (d) {
- var k = C.M.xd(d);
- if (!k) return C.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"),
- t;
- this.Nk = k;
- this.FF = d;
- d = C.kb.sd(k.Eca); (this.Aa = k = d.de) || d.ye(function(c) {
- this.Aa = q;
- this.ta(c, this.oA.length);
- this.sa(this.oA, q);
- this.cf()
- },
- this)
- } else d = new C.Ma,
- k = new Image,
- d.Ng(k),
- this.Aa = t;
- return this.ta(d, c.length) ? (this.RE = g || C.dz, this.JM = h || C.d(0, 0), this.iH = f == s ? -1 : f, this.hb = this.Ig = 255, this.wb = C.color(255, 255, 255, 255), this.od = C.color(255, 255, 255, 255), this.Zf = this.Ag = q, this.o.width = 0, this.o.height = 0, this.S(0.5, 0.5), C.L === C.la && (f = this.textureAtlas.texture, this.Fb = f.Hp(), g = this.kba = new C.u, g.ta(f, C.rect(0, 0, 0, 0), t), g.batchNode = this), this.sa(c, q), q) : t
- },
- jP: function() {
- var c = C.L,
- d = c === C.cb ? this.texture: this.textureAtlas.texture,
- f = 0,
- g = C.size(0, 0),
- h = 0,
- k = 1,
- n = this.qd,
- p = n ? n.length: 0;
- if (0 !== p) {
- var r, v = this.Nk,
- y = v.JDa,
- z = v.z_,
- D = v.Lza;
- for (r = 0; r < p - 1; r++) 10 == n.charCodeAt(r) && k++;
- var E = z * k,
- k = -(z - z * k),
- F = -1;
- for (r = 0; r < p; r++) if (z = n.charCodeAt(r), 0 != z) if (10 === z) f = 0,
- k -= v.z_;
- else {
- var G = y[F << 16 | z & 65535] || 0,
- K = D[z];
- if (K) {
- var O = C.rect(K.rect.x, K.rect.y, K.rect.width, K.rect.height),
- O = C.js(O);
- O.x += this.JM.x;
- O.y += this.JM.y; (F = this.lj(r)) ? 32 === z && c === C.cb ? F.qc(O, t, C.size(0, 0)) : (F.qc(O, t), F.visible = q) : (F = new C.u, 32 === z && c === C.cb && (O = C.rect(0, 0, 0, 0)), F.ta(d, O, t), F.zX = q, this.q(F, 0, r));
- F.opacityModifyRGB = this.Fb;
- C.L == C.la ? (F.Tb(this.wb), F.dc(this.hb)) : (C.ha.prototype.Tb.call(F, this.wb), C.ha.prototype.dc.call(F, this.hb), F.Da());
- O = C.d(f + K.wja + 0.5 * K.rect.width + G, k + (v.z_ - K.xja) - 0.5 * O.height * C.Ec());
- F.p(C.c2(O));
- f += K.WJa + G;
- F = z;
- h < f && (h = f)
- } else C.log("cocos2d: LabelBMFont: character not found " + n[r])
- }
- g.width = h;
- g.height = E;
- this.Ca(C.Gia(g))
- }
- },
- J6a: function(c) {
- var d = this.l;
- if (d) for (var f = 0,
- g = d.length; f < g; f++) {
- var h = d[f];
- h && (h.visible = t)
- }
- this.Nk && this.jP();
- c || this.zl()
- },
- Wb: A("oA"),
- sa: function(c, d) {
- c = String(c);
- d == s && (d = q);
- if (c == s || "string" != typeof c) c += "";
- this.oA = c;
- this.wba(c, d)
- },
- tva: function(c) {
- this.sa(c, t)
- },
- A3a: function(c) {
- this.sa(c, q)
- },
- zl: function() {
- this.string = this.oA;
- if (0 < this.iH) {
- for (var c = this.qd.length,
- d = [], f = [], g = 1, h = 0, k = t, n = t, p = -1, r = -1, v = 0, y, z = 0, D = this.l.length; z < D; z++) {
- for (var E = 0; ! (y = this.lj(z + v + E));) E++;
- v += E;
- if (h >= c) break;
- var F = this.qd[h];
- n || (r = this.OW(y), n = q);
- k || (p = r, k = q);
- if (10 == F.charCodeAt(0)) {
- f.push("\n");
- d = d.concat(f);
- f.length = 0;
- k = n = t;
- p = r = -1;
- z--;
- v -= E;
- g++;
- if (h >= c) break;
- r || (r = this.OW(y), n = q);
- p || (p = r, k = q);
- h++
- } else if (C.m1(F)) f.push(F),
- d = d.concat(f),
- f.length = 0,
- n = t,
- r = -1,
- h++;
- else if (this.wsa(y) - p > this.iH) if (this.qaa) {
- C.rja(f);
- f.push("\n");
- d = d.concat(f);
- f.length = 0;
- k = n = t;
- p = r = -1;
- g++;
- if (h >= c) break;
- r || (r = this.OW(y), n = q);
- p || (p = r, k = q);
- z--
- } else f.push(F),
- -1 != d.lastIndexOf(" ") ? C.rja(d) : d = [],
- 0 < d.length && d.push("\n"),
- g++,
- k = t,
- p = -1,
- h++;
- else f.push(F),
- h++
- }
- d = d.concat(f);
- z = d.length;
- y = "";
- for (h = 0; h < z; ++h) y += d[h];
- y += String.fromCharCode(0);
- this.wba(y, t)
- }
- if (this.RE != C.dz) {
- d = h = 0;
- c = this.qd.length;
- f = [];
- for (g = 0; g < c; g++) if (10 == this.qd[g].charCodeAt(0) || 0 == this.qd[g].charCodeAt(0)) if (z = 0, k = f.length, 0 == k) d++;
- else {
- if (y = h + k - 1 + d, !(0 > y) && (z = this.lj(y), z != s)) {
- z = z.Rc() + z.ef() / 2;
- n = 0;
- switch (this.RE) {
- case C.Fs:
- n = this.width / 2 - z / 2;
- break;
- case C.Q7:
- n = this.width - z
- }
- if (0 != n) for (z = 0; z < k; z++) if (y = h + z + d, !(0 > y) && (y = this.lj(y))) y.x += n;
- h += k;
- d++;
- f.length = 0
- }
- } else f.push(this.qd[h])
- }
- },
- VGa: function(c) {
- this.RE = c;
- this.zl()
- },
- fsa: A("RE"),
- dHa: function(c) {
- this.iH = c;
- this.zl()
- },
- KF: A("iH"),
- v4a: function(c) {
- this.qaa = c;
- this.zl()
- },
- Za: function(c, d) {
- C.A.prototype.Za.call(this, c, d);
- this.zl()
- },
- gb: function(c) {
- C.A.prototype.gb.call(this, c);
- this.zl()
- },
- pb: function(c) {
- C.A.prototype.pb.call(this, c);
- this.zl()
- },
- UC: function(c) {
- if (c != s && c != this.FF) {
- var d = C.M.xd(c);
- d ? (this.FF = c, this.Nk = d, c = C.kb.sd(d.Eca), this.Aa = d = c.de, this.texture = c, C.L === C.cb && (this.qi = this.texture), d ? this.jP() : c.ye(function(c) {
- this.Aa = q;
- this.texture = c;
- this.jP();
- this.ct();
- this.zl();
- this.cf()
- },
- this)) : C.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file")
- }
- },
- GUa: A("FF"),
- S: function(c, d) {
- C.A.prototype.S.call(this, c, d);
- this.zl()
- },
- tba: function(c) {
- C.A.prototype.tba.call(this, c);
- this.zl()
- },
- Re: function(c) {
- C.A.prototype.Re.call(this, c);
- this.zl()
- },
- Se: function(c) {
- C.A.prototype.Se.call(this, c);
- this.zl()
- },
- aOa: u(),
- XOa: function(c, d) {
- var f = 0;
- if (this.wra.KDa) {
- var g = this.wra.KDa[(c << 16 | d & 65535).toString()];
- g && (f = g.nQa)
- }
- return f
- },
- OW: function(c) {
- return c.Rc() * this.ia - c.ef() * this.ia * c.Ab.x
- },
- wsa: function(c) {
- return c.Rc() * this.ia + c.ef() * this.ia * c.Ab.x
- }
- });
- H = C.rv.prototype;
- C.e(H, "opacityModifyRGB", H.qg, H.$d);
- C.e(H, "opacity", H.rb, H.K);
- C.e(H, "cascadeOpacity", H.nI, H.Qu);
- C.e(H, "color", H.Xa, H.G);
- C.e(H, "cascadeColor", H.mI, H.Pu);
- C.e(H, "string", H.Wb, H.tva);
- C.e(H, "boundingWidth", H.KF, H.dHa);
- C.e(H, "textAlign", H.fsa, H.VGa);
- C.rv.create = function(c, d, f, g, h) {
- return new C.rv(c, d, f, g, h)
- };
- C.m1 = function(c) {
- c = c.charCodeAt(0);
- 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
- };
- C.rja = function(c) {
- var d = c.length;
- if (! (0 >= d) && (d -= 1, C.m1(c[d]))) {
- for (var f = d - 1; 0 <= f; --f) if (C.m1(c[f])) d = f;
- else break;
- C.PJa(c, d)
- }
- };
- C.PJa = function(c, d) {
- var f = c.length;
- d >= f || 0 > d || c.splice(d, f)
- };
- C.$ra = {
- zma: /info [^\n]*(\n|$)/gi,
- Aka: /common [^\n]*(\n|$)/gi,
- Ena: /page [^\n]*(\n|$)/gi,
- zka: /char [^\n]*(\n|$)/gi,
- Hma: /kerning [^\n]*(\n|$)/gi,
- Bma: /\w+=[^ \r\n]+/gi,
- Ama: /^[\-]?\d+$/,
- nG: function(c) {
- c = c.match(this.Bma);
- var d = {};
- if (c) for (var f = 0,
- g = c.length; f < g; f++) {
- var h = c[f],
- k = h.indexOf("\x3d"),
- n = h.substring(0, k),
- h = h.substring(k + 1);
- h.match(this.Ama) ? h = parseInt(h) : '"' == h[0] && (h = h.substring(1, h.length - 1));
- d[n] = h
- }
- return d
- },
- XEa: function(c, d) {
- var f = {};
- this.nG(c.match(this.zma)[0]);
- var g = this.nG(c.match(this.Aka)[0]);
- f.z_ = g.lineHeight;
- if (C.L === C.la) {
- var h = C.FB.bG; (g.scaleW > h.width || g.scaleH > h.height) && C.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported")
- }
- 1 !== g.pages && C.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page");
- g = this.nG(c.match(this.Ena)[0]);
- 0 !== g.id && C.log("cc.LabelBMFont._parseImageFileName() : file could not be found");
- f.Eca = C.path.BB(d, g.file);
- for (var k = c.match(this.zka), n = f.Lza = {},
- g = 0, h = k.length; g < h; g++) {
- var p = this.nG(k[g]);
- n[p.id] = {
- rect: {
- x: p.x,
- y: p.y,
- width: p.width,
- height: p.height
- },
- wja: p.xoffset,
- xja: p.yoffset,
- WJa: p.xadvance
- }
- }
- k = f.JDa = {};
- if (n = c.match(this.Hma)) {
- g = 0;
- for (h = n.length; g < h; g++) p = this.nG(n[g]),
- k[p.first << 16 | p.second & 65535] = p.amount
- }
- return f
- },
- load: function(c, d, f, g) {
- var h = this;
- C.M.EQ(c,
- function(c, f) {
- if (c) return g(c);
- g(s, h.XEa(f, d))
- })
- }
- };
- C.M.Zp(["fnt"], C.$ra);
- C.G6 = C.ha.extend({
- texture: s,
- PB: t,
- dq: t,
- C: s,
- RG: 0,
- vW: 0,
- qw: 0,
- vX: 0,
- Jt: 0,
- eY: 0,
- VX: s,
- UX: s,
- bc: s,
- Iz: s,
- dl: s,
- lg: s,
- Jz: s,
- gB: s,
- qa: "MotionStreak",
- ctor: function(c, d, f, g, h) {
- C.ha.prototype.ctor.call(this);
- this.fm = C.d(0, 0);
- this.C = new C.Vm(C.SRC_ALPHA, C.ONE_MINUS_SRC_ALPHA);
- this.AZ = C.t.createBuffer();
- this.dq = this.PB = t;
- this.texture = s;
- this.eY = this.Jt = this.vX = this.qw = this.vW = this.RG = 0;
- this.gB = this.Jz = this.lg = this.dl = this.Iz = this.bc = this.UX = this.VX = s;
- h !== m && this.RCa(c, d, f, g, h)
- },
- ob: A("texture"),
- Va: function(c) {
- this.texture != c && (this.texture = c)
- },
- ek: A("C"),
- Yd: function(c, d) {
- d === m ? this.C = c: (this.C.src = c, this.C.ga = d)
- },
- rb: function() {
- C.log("cc.MotionStreak.getOpacity has not been supported.");
- return 0
- },
- K: function() {
- C.log("cc.MotionStreak.setOpacity has not been supported.")
- },
- $d: u(),
- qg: B(t),
- Na: function() {
- C.A.prototype.Na.call(this);
- this.lg && C.t.deleteBuffer(this.lg);
- this.gB && C.t.deleteBuffer(this.gB);
- this.Jz && C.t.deleteBuffer(this.Jz)
- },
- pYa: A("PB"),
- Y3a: x("PB"),
- KYa: A("dq"),
- f5a: x("dq"),
- RCa: function(c, d, f, g, h) {
- h || e("cc.MotionStreak.initWithFade(): Invalid filename or texture");
- "string" === typeof h && (h = C.kb.sd(h));
- C.A.prototype.p.call(this, C.d(0, 0));
- this.anchorY = this.anchorX = 0;
- this.ignoreAnchor = q;
- this.dq = t;
- this.PB = q;
- this.qw = -1 == d ? f / 5 : d;
- this.qw *= this.qw;
- this.RG = f;
- this.vW = 1 / c;
- c = (0 | 60 * c) + 2;
- this.Jt = 0;
- this.UX = new Float32Array(c);
- this.VX = new Float32Array(2 * c);
- this.bc = new Float32Array(4 * c);
- this.dl = new Float32Array(4 * c);
- this.Iz = new Uint8Array(8 * c);
- this.vX = c;
- c = C.t;
- this.lg = c.createBuffer();
- this.gB = c.createBuffer();
- this.Jz = c.createBuffer();
- this.C.src = c.SRC_ALPHA;
- this.C.ga = c.ONE_MINUS_SRC_ALPHA;
- this.shaderProgram = C.ug.Xd(C.Co);
- this.texture = h;
- this.color = g;
- this.Lu();
- c.bindBuffer(c.ARRAY_BUFFER, this.lg);
- c.bufferData(c.ARRAY_BUFFER, this.bc, c.DYNAMIC_DRAW);
- c.bindBuffer(c.ARRAY_BUFFER, this.gB);
- c.bufferData(c.ARRAY_BUFFER, this.dl, c.DYNAMIC_DRAW);
- c.bindBuffer(c.ARRAY_BUFFER, this.Jz);
- c.bufferData(c.ARRAY_BUFFER, this.Iz, c.DYNAMIC_DRAW);
- return q
- },
- w6a: function(c) {
- this.color = c;
- for (var d = this.Iz,
- f = 0,
- g = 2 * this.Jt; f < g; f++) d[4 * f] = c.r,
- d[4 * f + 1] = c.g,
- d[4 * f + 2] = c.b
- },
- reset: function() {
- this.Jt = 0
- },
- p: function(c, d) {
- this.dq = q;
- d === m ? (this.fm.x = c.x, this.fm.y = c.y) : (this.fm.x = c, this.fm.y = d)
- },
- Rc: function() {
- return this.fm.x
- },
- rs: function(c) {
- this.fm.x = c;
- this.dq || (this.dq = q)
- },
- Vd: function() {
- return this.fm.y
- },
- Uu: function(c) {
- this.fm.y = c;
- this.dq || (this.dq = q)
- },
- ka: function(c) { ! (1 >= this.Jt) && (this.texture && this.texture.de) && (c = c || C.t, C.BC(this), C.rf(C.Dv), C.Gm(this.C.src, this.C.ga), C.yi(this.texture), c.bindBuffer(c.ARRAY_BUFFER, this.lg), c.bufferData(c.ARRAY_BUFFER, this.bc, c.DYNAMIC_DRAW), c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0), c.bindBuffer(c.ARRAY_BUFFER, this.gB), c.bufferData(c.ARRAY_BUFFER, this.dl, c.DYNAMIC_DRAW), c.vertexAttribPointer(C.Vg, 2, c.FLOAT, t, 0, 0), c.bindBuffer(c.ARRAY_BUFFER, this.Jz), c.bufferData(c.ARRAY_BUFFER, this.Iz, c.DYNAMIC_DRAW), c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, 0, 0), c.drawArrays(c.TRIANGLE_STRIP, 0, 2 * this.Jt), C.kl++)
- },
- update: function(c) {
- if (this.dq) {
- c *= this.vW;
- var d, f, g, h, k = 0,
- n = this.Jt,
- p = this.UX,
- r = this.VX,
- v = this.bc,
- y = this.Iz;
- for (g = 0; g < n; g++) p[g] -= c,
- 0 >= p[g] ? k++:(d = g - k, 0 < k ? (p[d] = p[g], r[2 * d] = r[2 * g], r[2 * d + 1] = r[2 * g + 1], h = 2 * g, f = 2 * d, v[2 * f] = v[2 * h], v[2 * f + 1] = v[2 * h + 1], v[2 * (f + 1)] = v[2 * (h + 1)], v[2 * (f + 1) + 1] = v[2 * (h + 1) + 1], h *= 4, f *= 4, y[f + 0] = y[h + 0], y[f + 1] = y[h + 1], y[f + 2] = y[h + 2], y[f + 4] = y[h + 4], y[f + 5] = y[h + 5], y[f + 6] = y[h + 6]) : f = 8 * d, d = 255 * p[d], y[f + 3] = d, y[f + 7] = d);
- n -= k;
- g = q;
- if (n >= this.vX) g = t;
- else if (0 < n && (c = C.lga(C.d(r[2 * (n - 1)], r[2 * (n - 1) + 1]), this.fm) < this.qw, f = 1 == n ? t: C.lga(C.d(r[2 * (n - 2)], r[2 * (n - 2) + 1]), this.fm) < 2 * this.qw, c || f)) g = t;
- g && (r[2 * n] = this.fm.x, r[2 * n + 1] = this.fm.y, p[n] = 1, p = 8 * n, g = this.wb, y[p] = g.r, y[p + 1] = g.g, y[p + 2] = g.b, y[p + 4] = g.r, y[p + 5] = g.g, y[p + 6] = g.b, y[p + 3] = 255, y[p + 7] = 255, 0 < n && this.PB && (1 < n ? C.d4(r, this.RG, this.bc, n, 1) : C.d4(r, this.RG, this.bc, 0, 2)), n++);
- this.PB || C.d4(r, this.RG, this.bc, 0, n);
- if (n && this.eY != n) {
- r = 1 / n;
- y = this.dl;
- for (g = 0; g < n; g++) y[4 * g] = 0,
- y[4 * g + 1] = r * g,
- y[2 * (2 * g + 1)] = 1,
- y[2 * (2 * g + 1) + 1] = r * g;
- this.eY = n
- }
- this.Jt = n
- }
- }
- });
- C.G6.create = function(c, d, f, g, h) {
- return new C.G6(c, d, f, g, h)
- };
- C.DT = C.A.extend({
- grid: s,
- Xc: s,
- NH: A("grid"),
- wHa: x("grid"),
- pJ: x("Xc"),
- q: function(c, d, f) {
- C.A.prototype.q.call(this, c, d, f);
- c && !this.Xc && (this.Xc = c)
- },
- J: function() {
- if (this.Ja) {
- var c = C.L == C.la,
- d = this.grid;
- c && (d && d.Wg) && d.px();
- this.transform();
- var f = this.l;
- if (f && 0 < f.length) {
- var g = f.length;
- this.ed();
- for (i = 0; i < g; i++) {
- var h = f[i];
- h && h.J()
- }
- }
- c && (d && d.Wg) && d.mx(this.Xc)
- }
- },
- Wva: function() {
- var c = this.nZ,
- d = C.Jd.top,
- f = this.me(),
- g = c.c;
- g[0] = f.a;
- g[4] = f.H;
- g[12] = f.na;
- g[1] = f.b;
- g[5] = f.P;
- g[13] = f.oa;
- g[14] = this.gH;
- C.Qp(d, d, c);
- if (this.Gq != s && (!this.grid || !this.grid.zi())) c = this.Nb.x,
- d = this.Nb.y,
- 0 !== c || 0 !== d ? (C.bU || (c |= 0, d |= 0), C.mC(c, d), this.Gq.yI(), C.mC( - c, -d)) : this.Gq.yI()
- }
- });
- H = C.DT.prototype;
- C.L === C.la && (H.transform = H.Wva);
- C.e(H, "target", s, H.pJ);
- C.DT.create = function() {
- return new C.DT
- };
- C.M6a = function() {
- return {
- x: 0,
- y: 0
- }
- };
- C.cv = function(c, d) {
- return {
- x: c,
- y: d
- }
- };
- C.Fi = function(c, d) {
- return C.cv(c.x + d.x, c.y + d.y)
- };
- C.Ge = function(c, d) {
- return C.cv(c.x - d.x, c.y - d.y)
- };
- C.Pg = function(c, d) {
- return C.cv(c.x * d, c.y * d)
- };
- C.mD = function(c) {
- return C.cv( - c.y, c.x)
- };
- C.Bl = function(c) {
- return C.cv( - c.x, -c.y)
- };
- C.sja = function(c, d) {
- return c.x * d.x + c.y * d.y
- };
- C.L6a = function(c) {
- return C.cv(Math.cos(c), Math.sin(c))
- };
- C.JJ = function(c) {
- c = C.vf(C.d(c.x, c.y));
- return C.cv(c.x, c.y)
- };
- C.Ii = function(c) {
- return C.cv(c.x, c.y)
- };
- C.Mb = function(c) {
- return {
- xa: c.x,
- ea: c.y
- }
- };
- C.Mla = C.A.extend({
- $b: s,
- C: s,
- cg: 1,
- Pj: s,
- qa: "DrawNodeCanvas",
- ctor: function() {
- C.A.prototype.ctor.call(this);
- this.$b = [];
- this.Pj = C.color(255, 255, 255, 255);
- this.C = new C.Vm(C.Ic, C.Hc);
- this.j()
- },
- ek: A("C"),
- Yd: function(c, d) {
- d === m ? (this.C.src = c.src, this.C.ga = c.ga) : (this.C.src = c, this.C.ga = d)
- },
- Su: x("cg"),
- UAa: A("cg"),
- tj: function(c) {
- var d = this.Pj;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b;
- d.a = c.a == s ? 255 : c.a
- },
- lh: function() {
- return C.color(this.Pj.r, this.Pj.g, this.Pj.b, this.Pj.a)
- },
- U_: function(c, d, f, g, h) {
- g = g || this.cg;
- h = h || this.lh();
- h.a == s && (h.a = 255);
- c = [c, C.d(d.x, c.y), d, C.d(c.x, d.y)];
- d = new C.Ms(C.Tg.Js);
- d.wg = c;
- d.lineWidth = g;
- d.as = h;
- d.lQ = q;
- d.Bu = q;
- d.lineCap = "butt";
- if (d.fillColor = f) f.a == s && (f.a = 255),
- d.i1 = q;
- this.$b.push(d)
- },
- O_: function(c, d, f, g, h, k, n) {
- k = k || this.cg;
- n = n || this.lh();
- n.a == s && (n.a = 255);
- for (var p = 2 * Math.PI / g,
- r = [], v = 0; v <= g; v++) {
- var y = v * p;
- r.push(C.d(d * Math.cos(y + f) + c.x, d * Math.sin(y + f) + c.y))
- }
- h && r.push(C.d(c.x, c.y));
- c = new C.Ms(C.Tg.Js);
- c.wg = r;
- c.lineWidth = k;
- c.as = n;
- c.lQ = q;
- c.Bu = q;
- this.$b.push(c)
- },
- T_: function(c, d, f, g, h, k) {
- h = h || this.cg;
- k = k || this.lh();
- k.a == s && (k.a = 255);
- for (var n = [], p = 0, r = 0; r < g; r++) n.push(C.d(Math.pow(1 - p, 2) * c.x + 2 * (1 - p) * p * d.x + p * p * f.x, Math.pow(1 - p, 2) * c.y + 2 * (1 - p) * p * d.y + p * p * f.y)),
- p += 1 / g;
- n.push(C.d(f.x, f.y));
- c = new C.Ms(C.Tg.Js);
- c.wg = n;
- c.lineWidth = h;
- c.as = k;
- c.Bu = q;
- c.lineCap = "round";
- this.$b.push(c)
- },
- P_: function(c, d, f, g, h, k, n) {
- k = k || this.cg;
- n = n || this.lh();
- n.a == s && (n.a = 255);
- for (var p = [], r = 0, v = 0; v < h; v++) p.push(C.d(Math.pow(1 - r, 3) * c.x + 3 * Math.pow(1 - r, 2) * r * d.x + 3 * (1 - r) * r * r * f.x + r * r * r * g.x, Math.pow(1 - r, 3) * c.y + 3 * Math.pow(1 - r, 2) * r * d.y + 3 * (1 - r) * r * r * f.y + r * r * r * g.y)),
- r += 1 / h;
- p.push(C.d(g.x, g.y));
- c = new C.Ms(C.Tg.Js);
- c.wg = p;
- c.lineWidth = k;
- c.as = n;
- c.Bu = q;
- c.lineCap = "round";
- this.$b.push(c)
- },
- N_: function(c, d, f, g) {
- this.zx(c, 0.5, d, f, g)
- },
- zx: function(c, d, f, g, h) {
- g = g || this.cg;
- h = h || this.lh();
- h.a == s && (h.a = 255);
- for (var k = [], n, p, r = 1 / c.length, v = 0; v < f + 1; v++) p = v / f,
- 1 == p ? (n = c.length - 1, p = 1) : (n = 0 | p / r, p = (p - r * n) / r),
- n = C.q_(C.og(c, n - 1), C.og(c, n - 0), C.og(c, n + 1), C.og(c, n + 2), d, p),
- k.push(n);
- c = new C.Ms(C.Tg.Js);
- c.wg = k;
- c.lineWidth = g;
- c.as = h;
- c.Bu = q;
- c.lineCap = "round";
- this.$b.push(c)
- },
- Q_: function(c, d, f) {
- f = f || this.lh();
- f.a == s && (f.a = 255);
- var g = new C.Ms(C.Tg.W7);
- g.wg = [c];
- g.lineWidth = d;
- g.fillColor = f;
- this.$b.push(g)
- },
- Mya: function(c, d, f) {
- if (c && 0 != c.length) {
- f = f || this.lh();
- f.a == s && (f.a = 255);
- for (var g = 0,
- h = c.length; g < h; g++) this.Q_(c[g], d, f)
- }
- },
- V_: function(c, d, f, g) {
- f = f || this.cg;
- g = g || this.lh();
- g.a == s && (g.a = 255);
- var h = new C.Ms(C.Tg.Js);
- h.wg = [c, d];
- h.lineWidth = 2 * f;
- h.as = g;
- h.Bu = q;
- h.lineCap = "round";
- this.$b.push(h)
- },
- Pya: function(c, d, f, g) {
- f = f || this.cg;
- g = g || this.lh();
- g.a == s && (g.a = 255);
- var h = new C.Ms(C.Tg.Js);
- h.wg = c;
- h.fillColor = d;
- h.lineWidth = f;
- h.as = g;
- h.lQ = q;
- h.Bu = q;
- h.lineCap = "round";
- d && (h.i1 = q);
- this.$b.push(h)
- },
- Of: function(c, d, f, g) {
- for (var h = [], k = 0; k < c.length; k++) h.push(C.d(c[k].x, c[k].y));
- return this.Pya(h, d, f, g)
- },
- ka: function(c) {
- c = c || C.t;
- this.C && (this.C.src == C.SRC_ALPHA && this.C.ga == C.ONE) && (c.globalCompositeOperation = "lighter");
- for (var d = 0; d < this.$b.length; d++) {
- var f = this.$b[d];
- switch (f.type) {
- case C.Tg.W7:
- this.Jra(c, f);
- break;
- case C.Tg.ypa:
- this.Lra(c, f);
- break;
- case C.Tg.Js:
- this.Kra(c, f)
- }
- }
- },
- Jra: function(c, d) {
- var f = d.fillColor,
- g = d.wg[0],
- h = d.lineWidth,
- k = C.view.ia,
- n = C.view.pa;
- c.fillStyle = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + "," + f.a / 255 + ")";
- c.beginPath();
- c.arc(g.x * k, -g.y * n, h * k, 0, 2 * Math.PI, t);
- c.closePath();
- c.fill()
- },
- Lra: function(c, d) {
- var f = d.as,
- g = d.wg[0],
- h = d.wg[1],
- k = d.lineWidth,
- n = d.lineCap,
- p = C.view.ia,
- r = C.view.pa;
- c.strokeStyle = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + "," + f.a / 255 + ")";
- c.lineWidth = k * p;
- c.beginPath();
- c.lineCap = n;
- c.moveTo(g.x * p, -g.y * r);
- c.lineTo(h.x * p, -h.y * r);
- c.stroke()
- },
- Kra: function(c, d) {
- var f = d.wg,
- g = d.lineCap,
- h = d.fillColor,
- k = d.lineWidth,
- n = d.as,
- p = d.lQ,
- r = d.i1,
- v = d.Bu;
- if (f != s) {
- var y = f[0],
- z = C.view.ia,
- D = C.view.pa;
- c.lineCap = g;
- h && (c.fillStyle = "rgba(" + (0 | h.r) + "," + (0 | h.g) + "," + (0 | h.b) + "," + h.a / 255 + ")");
- k && (c.lineWidth = k * z);
- n && (c.strokeStyle = "rgba(" + (0 | n.r) + "," + (0 | n.g) + "," + (0 | n.b) + "," + n.a / 255 + ")");
- c.beginPath();
- c.moveTo(y.x * z, -y.y * D);
- g = 1;
- for (h = f.length; g < h; g++) c.lineTo(f[g].x * z, -f[g].y * D);
- p && c.closePath();
- r && c.fill();
- v && c.stroke()
- }
- },
- clear: function() {
- this.$b.length = 0
- }
- });
- C.Nla = C.A.extend({
- xz: 0,
- $b: s,
- Fr: s,
- Uba: s,
- Tba: s,
- cg: 1,
- Pj: s,
- C: s,
- Ac: t,
- qa: "DrawNodeWebGL",
- ek: A("C"),
- Yd: function(c, d) {
- d === m ? (this.C.src = c.src, this.C.ga = c.ga) : (this.C.src = c, this.C.ga = d)
- },
- ctor: function() {
- C.A.prototype.ctor.call(this);
- this.$b = [];
- this.C = new C.Vm(C.Ic, C.Hc);
- this.Pj = C.color(255, 255, 255, 255);
- this.j()
- },
- j: function() {
- return C.A.prototype.j.call(this) ? (this.shaderProgram = C.ug.Xd(C.C7), this.AF(64), this.Uba = C.t.createBuffer(), this.Ac = q) : t
- },
- Su: x("cg"),
- UAa: A("cg"),
- tj: function(c) {
- var d = this.Pj;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b;
- d.a = c.a
- },
- lh: function() {
- return C.color(this.Pj.r, this.Pj.g, this.Pj.b, this.Pj.a)
- },
- U_: function(c, d, f, g, h) {
- g = g || this.cg;
- h = h || this.lh();
- h.a == s && (h.a = 255);
- c = [c, C.d(d.x, c.y), d, C.d(c.x, d.y)];
- f == s ? this.gM(c, g, h, q) : this.Of(c, f, g, h)
- },
- O_: function(c, d, f, g, h, k, n) {
- k = k || this.cg;
- n = n || this.lh();
- n.a == s && (n.a = 255);
- var p = 2 * Math.PI / g,
- r = [],
- v;
- for (v = 0; v <= g; v++) {
- var y = v * p;
- r.push(C.d(d * Math.cos(y + f) + c.x, d * Math.sin(y + f) + c.y))
- }
- h && r.push(C.d(c.x, c.y));
- k *= 0.5;
- v = 0;
- for (c = r.length; v < c - 1; v++) this.V_(r[v], r[v + 1], k, n)
- },
- T_: function(c, d, f, g, h, k) {
- h = h || this.cg;
- k = k || this.lh();
- k.a == s && (k.a = 255);
- for (var n = [], p = 0, r = 0; r < g; r++) n.push(C.d(Math.pow(1 - p, 2) * c.x + 2 * (1 - p) * p * d.x + p * p * f.x, Math.pow(1 - p, 2) * c.y + 2 * (1 - p) * p * d.y + p * p * f.y)),
- p += 1 / g;
- n.push(C.d(f.x, f.y));
- this.gM(n, h, k, t)
- },
- P_: function(c, d, f, g, h, k, n) {
- k = k || this.cg;
- n = n || this.lh();
- n.a == s && (n.a = 255);
- for (var p = [], r = 0, v = 0; v < h; v++) p.push(C.d(Math.pow(1 - r, 3) * c.x + 3 * Math.pow(1 - r, 2) * r * d.x + 3 * (1 - r) * r * r * f.x + r * r * r * g.x, Math.pow(1 - r, 3) * c.y + 3 * Math.pow(1 - r, 2) * r * d.y + 3 * (1 - r) * r * r * f.y + r * r * r * g.y)),
- r += 1 / h;
- p.push(C.d(g.x, g.y));
- this.gM(p, k, n, t)
- },
- N_: function(c, d, f, g) {
- this.zx(c, 0.5, d, f, g)
- },
- zx: function(c, d, f, g, h) {
- g = g || this.cg;
- h = h || this.lh();
- h.a == s && (h.a = 255);
- for (var k = [], n, p, r = 1 / c.length, v = 0; v < f + 1; v++) p = v / f,
- 1 == p ? (n = c.length - 1, p = 1) : (n = 0 | p / r, p = (p - r * n) / r),
- n = C.q_(C.og(c, n - 1), C.og(c, n - 0), C.og(c, n + 1), C.og(c, n + 2), d, p),
- k.push(n);
- g *= 0.5;
- c = 0;
- for (d = k.length; c < d - 1; c++) this.V_(k[c], k[c + 1], g, h)
- },
- Rt: function() {
- var c = C.t;
- C.rf(C.Dv);
- c.bindBuffer(c.ARRAY_BUFFER, this.Uba);
- this.Ac && (c.bufferData(c.ARRAY_BUFFER, this.Fr, c.STREAM_DRAW), this.Ac = t);
- var d = C.Ug.BYTES_PER_ELEMENT;
- c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, d, 0);
- c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, d, 8);
- c.vertexAttribPointer(C.Vg, 2, c.FLOAT, t, d, 12);
- c.drawArrays(c.TRIANGLES, 0, 3 * this.$b.length);
- C.nl()
- },
- AF: function(c) {
- var d = this.$b;
- if (d.length + c > this.xz) {
- var f = C.be.BYTES_PER_ELEMENT;
- this.xz += Math.max(this.xz, c);
- if (d == s || 0 === d.length) this.$b = [],
- this.Fr = new ArrayBuffer(f * this.xz),
- this.Tba = new Uint8Array(this.Fr);
- else {
- c = [];
- for (var g = new ArrayBuffer(f * this.xz), h = 0; h < d.length; h++) c[h] = new C.be(d[h].a, d[h].b, d[h].H, g, h * f);
- this.Tba = new Uint8Array(g);
- this.Fr = g;
- this.$b = c
- }
- }
- },
- ka: function() {
- C.Gm(this.C.src, this.C.ga);
- this.pd.Af();
- this.pd.uJ();
- this.Rt()
- },
- Q_: function(c, d, f) {
- f = f || this.lh();
- f.a == s && (f.a = 255);
- var g = {
- r: 0 | f.r,
- g: 0 | f.g,
- b: 0 | f.b,
- a: 0 | f.a
- };
- f = {
- m: {
- x: c.x - d,
- y: c.y - d
- },
- F: g,
- v: {
- xa: -1,
- ea: -1
- }
- };
- var h = {
- m: {
- x: c.x - d,
- y: c.y + d
- },
- F: g,
- v: {
- xa: -1,
- ea: 1
- }
- },
- k = {
- m: {
- x: c.x + d,
- y: c.y + d
- },
- F: g,
- v: {
- xa: 1,
- ea: 1
- }
- };
- c = {
- m: {
- x: c.x + d,
- y: c.y - d
- },
- F: g,
- v: {
- xa: 1,
- ea: -1
- }
- };
- this.AF(6);
- this.$b.push(new C.be(f, h, k, this.Fr, this.$b.length * C.be.BYTES_PER_ELEMENT));
- this.$b.push(new C.be(f, k, c, this.Fr, this.$b.length * C.be.BYTES_PER_ELEMENT));
- this.Ac = q
- },
- Mya: function(c, d, f) {
- if (c && 0 != c.length) {
- f = f || this.lh();
- f.a == s && (f.a = 255);
- for (var g = 0,
- h = c.length; g < h; g++) this.Q_(c[g], d, f)
- }
- },
- V_: function(c, d, f, g) {
- g = g || this.lh();
- g.a == s && (g.a = 255);
- f = f || 0.5 * this.cg;
- this.AF(18);
- g = {
- r: 0 | g.r,
- g: 0 | g.g,
- b: 0 | g.b,
- a: 0 | g.a
- };
- var h = C.Ii(c);
- d = C.Ii(d);
- c = C.JJ(C.mD(C.Ge(d, h)));
- var k = C.mD(c),
- n = C.Pg(c, f);
- f = C.Pg(k, f);
- var p = C.Fi(d, C.Ge(n, f)),
- r = C.Ge(d, n),
- v = C.Fi(d, n),
- y = C.Ge(h, n),
- z = C.Fi(h, n),
- D = C.Ge(h, C.Ge(n, f)),
- h = C.Fi(h, C.Fi(n, f)),
- E = C.be.BYTES_PER_ELEMENT,
- F = this.Fr,
- G = this.$b;
- G.push(new C.be({
- m: C.Ge(d, C.Fi(n, f)),
- F: g,
- v: C.Mb(C.Bl(C.Fi(c, k)))
- },
- {
- m: p,
- F: g,
- v: C.Mb(C.Ge(c, k))
- },
- {
- m: r,
- F: g,
- v: C.Mb(C.Bl(c))
- },
- F, G.length * E));
- G.push(new C.be({
- m: v,
- F: g,
- v: C.Mb(c)
- },
- {
- m: p,
- F: g,
- v: C.Mb(C.Ge(c, k))
- },
- {
- m: r,
- F: g,
- v: C.Mb(C.Bl(c))
- },
- F, G.length * E));
- G.push(new C.be({
- m: v,
- F: g,
- v: C.Mb(c)
- },
- {
- m: y,
- F: g,
- v: C.Mb(C.Bl(c))
- },
- {
- m: r,
- F: g,
- v: C.Mb(C.Bl(c))
- },
- F, G.length * E));
- G.push(new C.be({
- m: v,
- F: g,
- v: C.Mb(c)
- },
- {
- m: y,
- F: g,
- v: C.Mb(C.Bl(c))
- },
- {
- m: z,
- F: g,
- v: C.Mb(c)
- },
- F, G.length * E));
- G.push(new C.be({
- m: D,
- F: g,
- v: C.Mb(C.Ge(k, c))
- },
- {
- m: y,
- F: g,
- v: C.Mb(C.Bl(c))
- },
- {
- m: z,
- F: g,
- v: C.Mb(c)
- },
- F, G.length * E));
- G.push(new C.be({
- m: D,
- F: g,
- v: C.Mb(C.Ge(k, c))
- },
- {
- m: h,
- F: g,
- v: C.Mb(C.Fi(c, k))
- },
- {
- m: z,
- F: g,
- v: C.Mb(c)
- },
- F, G.length * E));
- this.Ac = q
- },
- Of: function(c, d, f, g) {
- if (d == s) this.gM(c, f, g, q);
- else {
- d.a == s && (d.a = 255);
- g.a == s && (g.a = 255);
- f = f || this.cg;
- f *= 0.5;
- d = {
- r: 0 | d.r,
- g: 0 | d.g,
- b: 0 | d.b,
- a: 0 | d.a
- };
- g = {
- r: 0 | g.r,
- g: 0 | g.g,
- b: 0 | g.b,
- a: 0 | g.a
- };
- var h = [],
- k,
- n,
- p,
- r,
- v = c.length;
- for (k = 0; k < v; k++) {
- n = C.Ii(c[(k - 1 + v) % v]);
- p = C.Ii(c[k]);
- r = C.Ii(c[(k + 1) % v]);
- var y = C.JJ(C.mD(C.Ge(p, n)));
- p = C.JJ(C.mD(C.Ge(r, p)));
- h[k] = {
- offset: C.Pg(C.Fi(y, p), 1 / (C.sja(y, p) + 1)),
- ds: p
- }
- }
- y = 0 < f;
- this.AF(3 * (3 * v - 2));
- var z = C.be.BYTES_PER_ELEMENT,
- D = this.Fr,
- E = this.$b,
- F = y == t ? 0.5 : 0;
- for (k = 0; k < v - 2; k++) n = C.Ge(C.Ii(c[0]), C.Pg(h[0].offset, F)),
- p = C.Ge(C.Ii(c[k + 1]), C.Pg(h[k + 1].offset, F)),
- r = C.Ge(C.Ii(c[k + 2]), C.Pg(h[k + 2].offset, F)),
- E.push(new C.be({
- m: n,
- F: d,
- v: C.Mb({
- x: 0,
- y: 0
- })
- },
- {
- m: p,
- F: d,
- v: C.Mb({
- x: 0,
- y: 0
- })
- },
- {
- m: r,
- F: d,
- v: C.Mb({
- x: 0,
- y: 0
- })
- },
- D, E.length * z));
- for (k = 0; k < v; k++) {
- F = (k + 1) % v;
- n = C.Ii(c[k]);
- p = C.Ii(c[F]);
- r = h[k].ds;
- var G = h[k].offset,
- K = h[F].offset,
- F = y ? C.Ge(n, C.Pg(G, f)) : C.Ge(n, C.Pg(G, 0.5)),
- O = y ? C.Ge(p, C.Pg(K, f)) : C.Ge(p, C.Pg(K, 0.5));
- n = y ? C.Fi(n, C.Pg(G, f)) : C.Fi(n, C.Pg(G, 0.5));
- p = y ? C.Fi(p, C.Pg(K, f)) : C.Fi(p, C.Pg(K, 0.5));
- y ? (E.push(new C.be({
- m: F,
- F: g,
- v: C.Mb(C.Bl(r))
- },
- {
- m: O,
- F: g,
- v: C.Mb(C.Bl(r))
- },
- {
- m: p,
- F: g,
- v: C.Mb(r)
- },
- D, E.length * z)), E.push(new C.be({
- m: F,
- F: g,
- v: C.Mb(C.Bl(r))
- },
- {
- m: n,
- F: g,
- v: C.Mb(r)
- },
- {
- m: p,
- F: g,
- v: C.Mb(r)
- },
- D, E.length * z))) : (E.push(new C.be({
- m: F,
- F: d,
- v: C.Mb({
- x: 0,
- y: 0
- })
- },
- {
- m: O,
- F: d,
- v: C.Mb({
- x: 0,
- y: 0
- })
- },
- {
- m: p,
- F: d,
- v: C.Mb(r)
- },
- D, E.length * z)), E.push(new C.be({
- m: F,
- F: d,
- v: C.Mb({
- x: 0,
- y: 0
- })
- },
- {
- m: n,
- F: d,
- v: C.Mb(r)
- },
- {
- m: p,
- F: d,
- v: C.Mb(r)
- },
- D, E.length * z)))
- }
- this.Ac = q
- }
- },
- gM: function(c, d, f, g) {
- d = d || this.cg;
- f = f || this.Pj;
- f.a == s && (f.a = 255);
- d *= 0.5;
- if (! (0 >= d)) {
- f = {
- r: 0 | f.r,
- g: 0 | f.g,
- b: 0 | f.b,
- a: 0 | f.a
- };
- var h = [],
- k,
- n,
- p,
- r,
- v = c.length;
- for (k = 0; k < v; k++) {
- n = C.Ii(c[(k - 1 + v) % v]);
- p = C.Ii(c[k]);
- r = C.Ii(c[(k + 1) % v]);
- var y = C.JJ(C.mD(C.Ge(p, n)));
- p = C.JJ(C.mD(C.Ge(r, p)));
- h[k] = {
- offset: C.Pg(C.Fi(y, p), 1 / (C.sja(y, p) + 1)),
- ds: p
- }
- }
- this.AF(3 * (3 * v - 2));
- r = C.be.BYTES_PER_ELEMENT;
- var y = this.Fr,
- z = this.$b;
- g = g ? v: v - 1;
- for (k = 0; k < g; k++) {
- var D = (k + 1) % v;
- n = C.Ii(c[k]);
- p = C.Ii(c[D]);
- var E = h[k].ds,
- F = h[k].offset,
- D = h[D].offset,
- G = C.Ge(n, C.Pg(F, d));
- n = C.Fi(n, C.Pg(F, d));
- F = C.Fi(p, C.Pg(D, d));
- z.push(new C.be({
- m: G,
- F: f,
- v: C.Mb(C.Bl(E))
- },
- {
- m: C.Ge(p, C.Pg(D, d)),
- F: f,
- v: C.Mb(C.Bl(E))
- },
- {
- m: F,
- F: f,
- v: C.Mb(E)
- },
- y, z.length * r));
- z.push(new C.be({
- m: G,
- F: f,
- v: C.Mb(C.Bl(E))
- },
- {
- m: n,
- F: f,
- v: C.Mb(E)
- },
- {
- m: F,
- F: f,
- v: C.Mb(E)
- },
- y, z.length * r))
- }
- this.Ac = q
- }
- },
- clear: function() {
- this.$b.length = 0;
- this.Ac = q
- }
- });
- C.Tg = C.L == C.la ? C.Nla: C.Mla;
- C.Tg.create = function() {
- return new C.Tg
- };
- C.Ms = function(c) {
- this.type = c;
- this.fillColor = this.wg = s;
- this.lineWidth = 0;
- this.as = s;
- this.lineCap = "butt";
- this.Bu = this.i1 = this.lQ = t
- };
- C.Tg.W7 = 0;
- C.Tg.ypa = 1;
- C.Tg.Js = 2;
- C.xy = -1;
- C.Yha = function(c, d) {
- c.shaderProgram = d;
- var f = c.children;
- if (f) for (var g = 0; g < f.length; g++) C.Yha(f[g], d)
- };
- C.Tc = C.A.extend({
- nx: 0,
- Yn: t,
- Ud: s,
- QF: t,
- ctor: function(c) {
- C.A.prototype.ctor.call(this);
- this.Ud = s;
- this.nx = 0;
- this.Yn = t;
- C.Tc.prototype.j.call(this, c || s)
- },
- j: s,
- qa: "ClippingNode",
- cta: function(c) {
- this.Ud = c;
- this.nx = 1;
- this.Yn = t;
- C.Tc.MM = q;
- C.Tc.MM && (C.xy = C.t.getParameter(C.t.STENCIL_BITS), 0 >= C.xy && C.log("Stencil buffer is not enabled."), C.Tc.MM = t);
- return q
- },
- bta: function(c) {
- this.Ud = c;
- this.nx = 1;
- this.Yn = t
- },
- Z: function() {
- C.A.prototype.Z.call(this);
- this.Ud.Z()
- },
- qj: function() {
- C.A.prototype.qj.call(this);
- this.Ud.qj()
- },
- ph: function() {
- this.Ud.ph();
- C.A.prototype.ph.call(this)
- },
- Na: function() {
- this.Ud.Na();
- C.A.prototype.Na.call(this)
- },
- J: s,
- fx: function(c) {
- var d = c || C.t;
- if (1 > C.xy) C.A.prototype.J.call(this, c);
- else if (!this.Ud || !this.Ud.visible) this.Yn && C.A.prototype.J.call(this, c);
- else if (C.Tc.rn = -1, C.Tc.rn + 1 == C.xy) C.Tc.gx = q,
- C.Tc.gx && (C.log("Nesting more than " + C.xy + "stencils is not supported. Everything will be drawn without stencil for this node and its childs."), C.Tc.gx = t),
- C.A.prototype.J.call(this, c);
- else {
- C.Tc.rn++;
- var f = 1 << C.Tc.rn,
- g = f | f - 1,
- h = d.isEnabled(d.STENCIL_TEST),
- k = d.getParameter(d.STENCIL_WRITEMASK),
- n = d.getParameter(d.STENCIL_FUNC),
- p = d.getParameter(d.STENCIL_REF),
- r = d.getParameter(d.STENCIL_VALUE_MASK),
- v = d.getParameter(d.STENCIL_FAIL),
- y = d.getParameter(d.STENCIL_PASS_DEPTH_FAIL),
- z = d.getParameter(d.STENCIL_PASS_DEPTH_PASS);
- d.enable(d.STENCIL_TEST);
- d.stencilMask(f);
- var D = d.getParameter(d.DEPTH_WRITEMASK);
- d.depthMask(t);
- d.stencilFunc(d.NEVER, f, f);
- d.stencilOp(!this.Yn ? d.ZERO: d.REPLACE, d.KEEP, d.KEEP);
- C.Df.X_(C.d(0, 0), C.mga(), C.color(255, 255, 255, 255));
- d.stencilFunc(d.NEVER, f, f);
- d.stencilOp(!this.Yn ? d.REPLACE: d.ZERO, d.KEEP, d.KEEP);
- if (1 > this.nx) {
- var f = C.ug.Xd(C.KK),
- E = d.getUniformLocation(f.Lx(), C.G8);
- C.N0(f.Lx());
- f.sJ(E, this.nx);
- C.Yha(this.Ud, f)
- }
- C.Zr();
- this.transform();
- this.Ud.J();
- C.Yr();
- d.depthMask(D);
- d.stencilFunc(d.EQUAL, g, g);
- d.stencilOp(d.KEEP, d.KEEP, d.KEEP);
- C.A.prototype.J.call(this, c);
- d.stencilFunc(n, p, r);
- d.stencilOp(v, y, z);
- d.stencilMask(k);
- h || d.disable(d.STENCIL_TEST);
- C.Tc.rn--
- }
- },
- Hr: function(c) {
- if (!this.Ud || !this.Ud.visible) this.Yn && C.A.prototype.J.call(this, c);
- else {
- c = c || C.t;
- var d = c.canvas;
- if (this.Rv() || this.Ud instanceof C.u) {
- var f = C.Tc.TW();
- f.width = d.width;
- f.height = d.height;
- f.getContext("2d").drawImage(d, 0, 0);
- c.save();
- C.A.prototype.J.call(this, c);
- c.globalCompositeOperation = this.Yn ? "destination-out": "destination-in";
- this.transform(c);
- this.Ud.J();
- c.restore();
- c.save();
- c.setTransform(1, 0, 0, 1, 0, 0);
- c.globalCompositeOperation = "destination-over";
- c.drawImage(f, 0, 0)
- } else {
- var f = this.l,
- g;
- c.save();
- this.transform(c);
- this.Ud.J(c);
- this.Yn && (c.save(), c.setTransform(1, 0, 0, 1, 0, 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());
- c.clip();
- this.Rv(q);
- var h = f.length;
- if (0 < h) {
- this.ed();
- for (d = 0; d < h; d++) if (g = f[d], 0 > g.Wa) g.J(c);
- else break;
- for (this.ka(c); d < h; d++) f[d].J(c)
- } else this.ka(c);
- this.Rv(t)
- }
- c.restore()
- }
- },
- VBa: A("Ud"),
- OR: s,
- rva: x("Ud"),
- qva: function(c) {
- this.Ud = c;
- var d = C.t; ! (c instanceof C.u) && c instanceof C.Tg && (c.ka = function() {
- var f = C.view.ia,
- g = C.view.pa;
- d.beginPath();
- for (var h = 0; h < c.$b.length; h++) {
- var k = c.$b[h].wg,
- n = k[0];
- d.moveTo(n.x * f, -n.y * g);
- for (var n = 1,
- p = k.length; n < p; n++) d.lineTo(k[n].x * f, -k[n].y * g)
- }
- })
- },
- HSa: A("nx"),
- m3a: x("nx"),
- uYa: A("Yn"),
- p4a: x("Yn"),
- Rv: function(c) {
- if (c === q || c === t) C.Tc.prototype.QF = c;
- return C.Tc.prototype.QF
- }
- });
- H = C.Tc.prototype;
- C.L === C.la ? (H.j = H.cta, H.J = H.fx, H.OR = H.rva) : (H.j = H.bta, H.J = H.Hr, H.OR = H.qva);
- C.e(H, "stencil", H.VBa, H.OR);
- C.Tc.MM = s;
- C.Tc.gx = s;
- C.Tc.rn = s;
- C.Tc.GG = s;
- C.Tc.TW = function() {
- return C.Tc.GG || (C.Tc.GG = document.createElement("canvas"))
- };
- C.Tc.create = function(c) {
- return new C.Tc(c)
- };
- C.Ty = C.O.extend({
- Wg: t,
- pp: 0,
- ua: s,
- da: s,
- om: s,
- gA: s,
- iw: t,
- pd: s,
- bW: 0,
- Ac: t,
- ctor: function(c, d, f) {
- C.LV();
- this.Wg = t;
- this.pp = 0;
- this.da = this.ua = s;
- this.om = C.d(0, 0);
- this.gA = s;
- this.iw = t;
- this.pd = s;
- this.bW = 0;
- this.Ac = t;
- c !== m && this.Mp(c, d, f)
- },
- zi: A("Wg"),
- setActive: function(c) {
- this.Wg = c;
- c || (c = C.Q, c.py(c.op))
- },
- oWa: A("pp"),
- gIa: x("pp"),
- CAa: function() {
- return C.size(this.ua.width, this.ua.height)
- },
- j4a: function(c) {
- this.ua.width = parseInt(c.width);
- this.ua.height = parseInt(c.height)
- },
- G0: function() {
- return C.d(this.om.x, this.om.y)
- },
- g5a: function(c) {
- this.om.x = c.x;
- this.om.y = c.y
- },
- NYa: A("iw"),
- n5a: function(c) {
- this.iw != c && (this.iw = c, this.cP())
- },
- Mp: function(c, d, f) {
- if (!d) {
- var g = C.Q.bI(),
- h = C.Cs(g.width),
- k = C.Cs(g.height),
- n = new Uint8Array(4 * h * k);
- if (!n) return C.log("cocos2d: CCGrid: not enough memory."),
- t;
- d = new C.Ma;
- d.Au(n, C.Ma.qq, h, k, g);
- if (!d) return C.log("cocos2d: CCGrid: error creating texture"),
- t
- }
- this.Wg = t;
- this.pp = 0;
- this.ua = c;
- this.da = d;
- this.iw = f || t;
- this.om.x = this.da.width / c.width;
- this.om.y = this.da.height / c.height;
- this.gA = new C.sma;
- if (!this.gA) return t;
- this.gA.yCa(this.da);
- this.pd = C.ug.Xd(C.yE);
- this.cP();
- return q
- },
- px: function() {
- this.bW = C.Q.op;
- this.TGa();
- this.gA.mxa(this.da)
- },
- mx: function(c) {
- this.gA.Fwa(this.da);
- C.Q.py(this.bW);
- if (c.Ix().h1()) {
- var d = c.Ep();
- C.mC(d.x, d.y);
- c.Ix().yI();
- C.mC( - d.x, -d.y)
- }
- C.yi(this.da);
- this.a_()
- },
- a_: function() {
- C.log("cc.GridBase.blit(): Shall be overridden in subclass.")
- },
- gR: function() {
- C.log("cc.GridBase.reuse(): Shall be overridden in subclass.")
- },
- cP: function() {
- C.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.")
- },
- TGa: function() {
- var c = C.Q.bI();
- C.t.viewport(0, 0, c.width, c.height);
- C.Op(C.mq);
- C.kC();
- var d = new C.Ia;
- C.q1(d, 0, c.width, 0, c.height, -1, 1);
- C.lC(d);
- C.Op(C.lq);
- C.kC();
- C.$ha()
- }
- });
- C.Ty.create = function(c, d, f) {
- return new C.Ty(c, d, f)
- };
- C.iT = C.Ty.extend({
- qm: s,
- bc: s,
- jr: s,
- Qb: s,
- cl: s,
- lg: s,
- Vk: s,
- ctor: function(c, d, f) {
- C.Ty.prototype.ctor.call(this);
- this.Vk = this.lg = this.cl = this.Qb = this.jr = this.bc = this.qm = s;
- c !== m && this.Mp(c, d, f)
- },
- uja: function(c) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.Grid3D.vertex() : Numbers must be integers");
- c = 0 | 3 * (c.x * (this.ua.height + 1) + c.y);
- var d = this.bc;
- return new C.re(d[c], d[c + 1], d[c + 2])
- },
- uf: function(c) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.Grid3D.originalVertex() : Numbers must be integers");
- c = 0 | 3 * (c.x * (this.ua.height + 1) + c.y);
- var d = this.jr;
- return new C.re(d[c], d[c + 1], d[c + 2])
- },
- wh: function(c, d) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.Grid3D.setVertex() : Numbers must be integers");
- var f = 0 | 3 * (c.x * (this.ua.height + 1) + c.y),
- g = this.bc;
- g[f] = d.x;
- g[f + 1] = d.y;
- g[f + 2] = d.f;
- this.Ac = q
- },
- a_: function() {
- var c = this.ua.width * this.ua.height;
- C.rf(C.Ch | C.fz);
- this.pd.Af();
- this.pd.uJ();
- var d = C.t,
- f = this.Ac;
- d.bindBuffer(d.ARRAY_BUFFER, this.lg);
- f && d.bufferData(d.ARRAY_BUFFER, this.bc, d.DYNAMIC_DRAW);
- d.vertexAttribPointer(C.Lc, 3, d.FLOAT, t, 0, 0);
- d.bindBuffer(d.ARRAY_BUFFER, this.cl);
- f && d.bufferData(d.ARRAY_BUFFER, this.qm, d.DYNAMIC_DRAW);
- d.vertexAttribPointer(C.Vg, 2, d.FLOAT, t, 0, 0);
- d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Vk);
- f && d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Qb, d.STATIC_DRAW);
- d.drawElements(d.TRIANGLES, 6 * c, d.UNSIGNED_SHORT, 0);
- f && (this.Ac = t);
- C.nl()
- },
- gR: function() {
- if (0 < this.pp) {
- for (var c = this.jr,
- d = this.bc,
- f = 0,
- g = this.bc.length; f < g; f++) c[f] = d[f]; --this.pp
- }
- },
- cP: function() {
- var c = C.t,
- d = this.da.pixelsWidth,
- f = this.da.pixelsHeight,
- g = this.da.o.height,
- h = this.ua,
- k = (h.width + 1) * (h.height + 1);
- this.bc = new Float32Array(3 * k);
- this.qm = new Float32Array(2 * k);
- this.Qb = new Uint16Array(6 * h.width * h.height);
- this.lg && c.deleteBuffer(this.lg);
- this.lg = c.createBuffer();
- this.cl && c.deleteBuffer(this.cl);
- this.cl = c.createBuffer();
- this.Vk && c.deleteBuffer(this.Vk);
- this.Vk = c.createBuffer();
- for (var n, p, r = this.Qb,
- v = this.qm,
- y = this.iw,
- z = this.bc,
- k = 0; k < h.width; ++k) for (n = 0; n < h.height; ++n) {
- var D = n * h.width + k;
- p = k * this.om.x;
- var E = p + this.om.x,
- F = n * this.om.y,
- G = F + this.om.y,
- K = k * (h.height + 1) + n,
- O = (k + 1) * (h.height + 1) + n,
- U = (k + 1) * (h.height + 1) + (n + 1),
- X = k * (h.height + 1) + (n + 1);
- r[6 * D] = K;
- r[6 * D + 1] = O;
- r[6 * D + 2] = X;
- r[6 * D + 3] = O;
- r[6 * D + 4] = U;
- r[6 * D + 5] = X;
- var D = [3 * K, 3 * O, 3 * U, 3 * X],
- N = [{
- x: p,
- y: F,
- f: 0
- },
- {
- x: E,
- y: F,
- f: 0
- },
- {
- x: E,
- y: G,
- f: 0
- },
- {
- x: p,
- y: G,
- f: 0
- }],
- K = [2 * K, 2 * O, 2 * U, 2 * X],
- E = [C.d(p, F), C.d(E, F), C.d(E, G), C.d(p, G)];
- for (p = 0; 4 > p; ++p) z[D[p]] = N[p].x,
- z[D[p] + 1] = N[p].y,
- z[D[p] + 2] = N[p].f,
- v[K[p]] = E[p].x / d,
- v[K[p] + 1] = y ? (g - E[p].y) / f: E[p].y / f
- }
- this.jr = new Float32Array(this.bc);
- c.bindBuffer(c.ARRAY_BUFFER, this.lg);
- c.bufferData(c.ARRAY_BUFFER, this.bc, c.DYNAMIC_DRAW);
- c.bindBuffer(c.ARRAY_BUFFER, this.cl);
- c.bufferData(c.ARRAY_BUFFER, this.qm, c.DYNAMIC_DRAW);
- c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Vk);
- c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Qb, c.STATIC_DRAW);
- this.Ac = q
- }
- });
- C.iT.create = function(c, d, f) {
- return new C.iT(c, d, f)
- };
- C.yU = C.Ty.extend({
- qm: s,
- bc: s,
- jr: s,
- Qb: s,
- cl: s,
- lg: s,
- Vk: s,
- ctor: function(c, d, f) {
- C.Ty.prototype.ctor.call(this);
- this.Vk = this.lg = this.cl = this.Qb = this.jr = this.bc = this.qm = s;
- c !== m && this.Mp(c, d, f)
- },
- Xia: function(c) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.TiledGrid3D.tile() : Numbers must be integers");
- c = 12 * (this.ua.height * c.x + c.y);
- var d = this.bc;
- return new C.FK(new C.re(d[c], d[c + 1], d[c + 2]), new C.re(d[c + 3], d[c + 4], d[c + 5]), new C.re(d[c + 6], d[c + 7], d[c + 8]), new C.re(d[c + 9], d[c + 10], d[c + 11]))
- },
- sl: function(c) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.TiledGrid3D.originalTile() : Numbers must be integers");
- c = 12 * (this.ua.height * c.x + c.y);
- var d = this.jr;
- return new C.FK(new C.re(d[c], d[c + 1], d[c + 2]), new C.re(d[c + 3], d[c + 4], d[c + 5]), new C.re(d[c + 6], d[c + 7], d[c + 8]), new C.re(d[c + 9], d[c + 10], d[c + 11]))
- },
- Aj: function(c, d) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.TiledGrid3D.setTile() : Numbers must be integers");
- var f = 12 * (this.ua.height * c.x + c.y),
- g = this.bc;
- g[f] = d.T.x;
- g[f + 1] = d.T.y;
- g[f + 2] = d.T.f;
- g[f + 3] = d.Y.x;
- g[f + 4] = d.Y.y;
- g[f + 5] = d.Y.f;
- g[f + 6] = d.X.x;
- g[f + 7] = d.X.y;
- g[f + 8] = d.X.f;
- g[f + 9] = d.V.x;
- g[f + 10] = d.V.y;
- g[f + 11] = d.V.f;
- this.Ac = q
- },
- a_: function() {
- var c = this.ua.width * this.ua.height;
- this.pd.Af();
- this.pd.uJ();
- var d = C.t,
- f = this.Ac;
- C.rf(C.Ch | C.fz);
- d.bindBuffer(d.ARRAY_BUFFER, this.lg);
- f && d.bufferData(d.ARRAY_BUFFER, this.bc, d.DYNAMIC_DRAW);
- d.vertexAttribPointer(C.Lc, 3, d.FLOAT, t, 0, this.bc);
- d.bindBuffer(d.ARRAY_BUFFER, this.cl);
- f && d.bufferData(d.ARRAY_BUFFER, this.qm, d.DYNAMIC_DRAW);
- d.vertexAttribPointer(C.Vg, 2, d.FLOAT, t, 0, this.qm);
- d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Vk);
- f && d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Qb, d.STATIC_DRAW);
- d.drawElements(d.TRIANGLES, 6 * c, d.UNSIGNED_SHORT, 0);
- f && (this.Ac = t);
- C.nl()
- },
- gR: function() {
- if (0 < this.pp) {
- for (var c = this.bc,
- d = this.jr,
- f = 0; f < c.length; f++) d[f] = c[f]; --this.pp
- }
- },
- cP: function() {
- var c = this.da.pixelsWidth,
- d = this.da.pixelsHeight,
- f = this.da.o.height,
- g = this.ua,
- h = g.width * g.height;
- this.bc = new Float32Array(12 * h);
- this.qm = new Float32Array(8 * h);
- this.Qb = new Uint16Array(6 * h);
- var k = C.t;
- this.lg && k.deleteBuffer(this.lg);
- this.lg = k.createBuffer();
- this.cl && k.deleteBuffer(this.cl);
- this.cl = k.createBuffer();
- this.Vk && k.deleteBuffer(this.Vk);
- this.Vk = k.createBuffer();
- var n, p, r = 0,
- v = this.om,
- y = this.bc,
- z = this.qm,
- D = this.iw;
- for (n = 0; n < g.width; n++) for (p = 0; p < g.height; p++) {
- var E = n * v.x,
- F = E + v.x,
- G = p * v.y,
- K = G + v.y;
- y[12 * r] = E;
- y[12 * r + 1] = G;
- y[12 * r + 2] = 0;
- y[12 * r + 3] = F;
- y[12 * r + 4] = G;
- y[12 * r + 5] = 0;
- y[12 * r + 6] = E;
- y[12 * r + 7] = K;
- y[12 * r + 8] = 0;
- y[12 * r + 9] = F;
- y[12 * r + 10] = K;
- y[12 * r + 11] = 0;
- var O = G,
- U = K;
- D && (O = f - G, U = f - K);
- z[8 * r] = E / c;
- z[8 * r + 1] = O / d;
- z[8 * r + 2] = F / c;
- z[8 * r + 3] = O / d;
- z[8 * r + 4] = E / c;
- z[8 * r + 5] = U / d;
- z[8 * r + 6] = F / c;
- z[8 * r + 7] = U / d;
- r++
- }
- c = this.Qb;
- for (n = 0; n < h; n++) c[6 * n + 0] = 4 * n + 0,
- c[6 * n + 1] = 4 * n + 1,
- c[6 * n + 2] = 4 * n + 2,
- c[6 * n + 3] = 4 * n + 1,
- c[6 * n + 4] = 4 * n + 2,
- c[6 * n + 5] = 4 * n + 3;
- this.jr = new Float32Array(this.bc);
- k.bindBuffer(k.ARRAY_BUFFER, this.lg);
- k.bufferData(k.ARRAY_BUFFER, this.bc, k.DYNAMIC_DRAW);
- k.bindBuffer(k.ARRAY_BUFFER, this.cl);
- k.bufferData(k.ARRAY_BUFFER, this.qm, k.DYNAMIC_DRAW);
- k.bindBuffer(k.ELEMENT_ARRAY_BUFFER, this.Vk);
- k.bufferData(k.ELEMENT_ARRAY_BUFFER, this.Qb, k.DYNAMIC_DRAW);
- this.Ac = q
- }
- });
- C.yU.create = function(c, d, f) {
- return new C.yU(c, d, f)
- };
- C.sma = C.O.extend({
- aL: s,
- hp: s,
- Eaa: s,
- fA: s,
- ctor: function() {
- C.LV();
- this.fA = C.t;
- this.Eaa = [0, 0, 0, 0];
- this.hp = s;
- this.aL = this.fA.createFramebuffer()
- },
- yCa: function(c) {
- var d = this.fA;
- this.hp = d.getParameter(d.FRAMEBUFFER_BINDING);
- d.bindFramebuffer(d.FRAMEBUFFER, this.aL);
- d.framebufferTexture2D(d.FRAMEBUFFER, d.COLOR_ATTACHMENT0, d.TEXTURE_2D, c.Sh, 0);
- d.checkFramebufferStatus(d.FRAMEBUFFER) != d.FRAMEBUFFER_COMPLETE && C.log("Frame Grabber: could not attach texture to frmaebuffer");
- d.bindFramebuffer(d.FRAMEBUFFER, this.hp)
- },
- mxa: function() {
- var c = this.fA;
- this.hp = c.getParameter(c.FRAMEBUFFER_BINDING);
- c.bindFramebuffer(c.FRAMEBUFFER, this.aL);
- this.Eaa = c.getParameter(c.COLOR_CLEAR_VALUE);
- c.clearColor(0, 0, 0, 0);
- c.clear(c.COLOR_BUFFER_BIT | c.DEPTH_BUFFER_BIT)
- },
- Fwa: function() {
- var c = this.fA;
- c.bindFramebuffer(c.FRAMEBUFFER, this.hp);
- c.colorMask(q, q, q, q)
- },
- vRa: function() {
- this.fA.deleteFramebuffer(this.aL)
- }
- });
- C.Gy = -1;
- C.xg = C.O.extend({
- originalTarget: s,
- target: s,
- tag: C.Gy,
- ctor: function() {
- this.target = this.originalTarget = s;
- this.tag = C.Gy
- },
- copy: function() {
- C.log("copy is deprecated. Please use clone instead.");
- return this.s()
- },
- s: function() {
- var c = new C.xg;
- c.originalTarget = s;
- c.target = s;
- c.tag = this.tag;
- return c
- },
- ik: B(q),
- R: function(c) {
- this.target = this.originalTarget = c
- },
- stop: function() {
- this.target = s
- },
- step: function() {
- C.log("[Action step]. override me")
- },
- update: function() {
- C.log("[Action update]. override me")
- },
- zea: A("target"),
- pJ: x("target"),
- HVa: A("originalTarget"),
- J4a: x("originalTarget"),
- Fm: A("tag"),
- Qm: x("tag"),
- fR: u(),
- rh: u()
- });
- C.xg.create = function() {
- return new C.xg
- };
- C.kq = C.xg.extend({
- D: 0,
- ctor: function() {
- C.xg.prototype.ctor.call(this);
- this.D = 0
- },
- Rr: function() {
- return this.D * (this.ke || 1)
- },
- Wh: x("D"),
- reverse: function() {
- C.log("cocos2d: FiniteTimeAction#reverse: Implement me");
- return s
- },
- s: function() {
- return new C.kq
- }
- });
- C.AE = C.xg.extend({
- Hf: 0,
- Cc: s,
- ctor: function(c, d) {
- C.xg.prototype.ctor.call(this);
- this.Hf = 0;
- this.Cc = s;
- c && this.Ba(c, d)
- },
- MP: A("Hf"),
- Xh: x("Hf"),
- Ba: function(c, d) {
- c || e("cc.Speed.initWithAction(): action must be non nil");
- this.Cc = c;
- this.Hf = d;
- return q
- },
- s: function() {
- var c = new C.AE;
- c.Ba(this.Cc.s(), this.Hf);
- return c
- },
- R: function(c) {
- C.xg.prototype.R.call(this, c);
- this.Cc.R(c)
- },
- stop: function() {
- this.Cc.stop();
- C.xg.prototype.stop.call(this)
- },
- step: function(c) {
- this.Cc.step(c * this.Hf)
- },
- ik: function() {
- return this.Cc.ik()
- },
- reverse: function() {
- return C.AE.create(this.Cc.reverse(), this.Hf)
- },
- Hha: function(c) {
- this.Cc != c && (this.Cc = c)
- },
- r0: A("Cc")
- });
- C.AE.create = function(c, d) {
- return new C.AE(c, d)
- };
- C.tK = C.xg.extend({
- Zz: s,
- vz: t,
- AL: t,
- GM: s,
- GF: s,
- Px: 0,
- dy: 0,
- zy: 0,
- rx: 0,
- IZ: s,
- ctor: function(c, d) {
- C.xg.prototype.ctor.call(this);
- this.Zz = s;
- this.AL = this.vz = t;
- this.GF = this.GM = s;
- this.rx = this.zy = this.dy = this.Px = 0;
- this.IZ = C.rect(0, 0, 0, 0);
- c && (d ? this.jC(c, d) : this.jC(c))
- },
- s: function() {
- var c = new C.tK,
- d = this.IZ;
- c.jC(this.Zz, new C.az(d.x, d.y, d.width, d.height));
- return c
- },
- lYa: A("vz"),
- z3a: x("vz"),
- jC: function(c, d) {
- c || e("cc.Follow.initWithAction(): followedNode must be non nil");
- d = d || C.rect(0, 0, 0, 0);
- this.Zz = c;
- this.IZ = d;
- this.vz = !C.wG(d);
- this.AL = t;
- var f = C.Q.aa;
- this.GF = C.d(f.width, f.height);
- this.GM = C.Wp(this.GF, 0.5);
- this.vz && (this.Px = -(d.x + d.width - this.GF.x), this.dy = -d.x, this.zy = -d.y, this.rx = -(d.y + d.height - this.GF.y), this.dy < this.Px && (this.dy = this.Px = (this.Px + this.dy) / 2), this.zy < this.rx && (this.zy = this.rx = (this.zy + this.rx) / 2), this.zy == this.rx && this.Px == this.dy && (this.AL = q));
- return q
- },
- step: function() {
- var c = this.Zz.x,
- d = this.Zz.y,
- c = this.GM.x - c,
- d = this.GM.y - d;
- this.vz ? this.AL || this.target.p(C.Nf(c, this.Px, this.dy), C.Nf(d, this.rx, this.zy)) : this.target.p(c, d)
- },
- ik: function() {
- return ! this.Zz.running
- },
- stop: function() {
- this.target = s;
- C.xg.prototype.stop.call(this)
- }
- });
- C.tK.create = function(c, d) {
- return new C.tK(c, d)
- };
- C.N = C.kq.extend({
- Bc: 0,
- wM: t,
- Wl: s,
- ke: 1,
- xG: t,
- UA: t,
- Hf: 1,
- JG: t,
- ctor: function(c) {
- this.ke = this.Hf = 1;
- this.xG = t;
- this.MAX_VALUE = 2;
- this.JG = this.UA = t;
- C.kq.prototype.ctor.call(this);
- c !== m && this.k(c)
- },
- rUa: A("Bc"),
- k: function(c) {
- this.D = 0 === c ? C.rK: c;
- this.Bc = 0;
- return this.wM = q
- },
- ik: function() {
- return this.Bc >= this.D
- },
- vb: function(c) {
- c.xG = this.xG;
- c.Hf = this.Hf;
- c.ke = this.ke;
- c.Wl = this.Wl;
- c.JG = this.JG;
- c.UA = this.UA
- },
- si: function(c) {
- if (this.Wl) {
- c.Wl = [];
- for (var d = 0; d < this.Wl.length; d++) c.Wl.push(this.Wl[d].reverse())
- }
- },
- s: function() {
- var c = new C.N(this.D);
- this.vb(c);
- return c
- },
- ra: function(c) {
- this.Wl ? this.Wl.length = 0 : this.Wl = [];
- for (var d = 0; d < arguments.length; d++) this.Wl.push(arguments[d]);
- return this
- },
- Bg: function(c) {
- var d = this.Wl;
- if (!d || 0 === d.length) return c;
- for (var f = 0,
- g = d.length; f < g; f++) c = d[f].ra(c);
- return c
- },
- step: function(c) {
- this.wM ? (this.wM = t, this.Bc = 0) : this.Bc += c;
- c = this.Bc / (1.192092896E-7 < this.D ? this.D: 1.192092896E-7);
- c = 1 > c ? c: 1;
- this.update(0 < c ? c: 0);
- this.UA && (1 < this.ke && this.ik()) && (this.xG || this.ke--, this.R(this.target), this.step(this.Bc - this.D))
- },
- R: function(c) {
- C.xg.prototype.R.call(this, c);
- this.Bc = 0;
- this.wM = q
- },
- reverse: function() {
- C.log("cc.IntervalAction: reverse not implemented.");
- return s
- },
- fy: function() {
- C.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.")
- },
- Fx: function() {
- C.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass.");
- return 0
- },
- speed: function(c) {
- if (0 >= c) return C.log("The speed parameter error"),
- this;
- this.JG = q;
- this.Hf *= c;
- return this
- },
- MP: A("Hf"),
- Xh: function(c) {
- this.Hf = c;
- return this
- },
- repeat: function(c) {
- c = Math.round(c);
- if (isNaN(c) || 1 > c) return C.log("The repeat parameter error"),
- this;
- this.UA = q;
- this.ke *= c;
- return this
- },
- cR: function() {
- this.UA = q;
- this.ke = this.MAX_VALUE;
- this.xG = q;
- return this
- }
- });
- C.N.create = function(c) {
- return new C.N(c)
- };
- C.La = C.N.extend({
- Lo: s,
- Lba: s,
- ZF: 0,
- ctor: function(c) {
- C.N.prototype.ctor.call(this);
- this.Lo = [];
- var d = c instanceof Array ? c: arguments,
- f = d.length - 1;
- 0 <= f && d[f] == s && C.log("parameters should not be ending with null in Javascript");
- if (0 <= f) {
- for (var g = d[0], h = 1; h < f; h++) d[h] && (g = C.La.wq(g, d[h]));
- this.Nx(g, d[f])
- }
- },
- Nx: function(c, d) { (!c || !d) && e("cc.Sequence.initWithTwoActions(): arguments must all be non nil");
- this.k(c.D + d.D);
- this.Lo[0] = c;
- this.Lo[1] = d;
- return q
- },
- s: function() {
- var c = new C.La;
- this.vb(c);
- c.Nx(this.Lo[0].s(), this.Lo[1].s());
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- this.Lba = this.Lo[0].D / this.D;
- this.ZF = -1
- },
- stop: function() { - 1 !== this.ZF && this.Lo[this.ZF].stop();
- C.xg.prototype.stop.call(this)
- },
- update: function(c) {
- c = this.Bg(c);
- var d = 0,
- f = this.Lba,
- g = this.Lo,
- h = this.ZF;
- c < f ? (c = 0 !== f ? c / f: 1, 0 === d && 1 === h && (g[1].update(0), g[1].stop())) : (d = 1, c = 1 === f ? 1 : (c - f) / (1 - f), -1 === h && (g[0].R(this.target), g[0].update(1), g[0].stop()), h || (g[0].update(1), g[0].stop()));
- h === d && g[d].ik() || (h !== d && g[d].R(this.target), g[d].update(c), this.ZF = d)
- },
- reverse: function() {
- var c = C.La.wq(this.Lo[1].reverse(), this.Lo[0].reverse());
- this.vb(c);
- this.si(c);
- return c
- }
- });
- C.La.create = function(c) {
- var d = c instanceof Array ? c: arguments;
- 0 < d.length && d[d.length - 1] == s && C.log("parameters should not be ending with null in Javascript");
- for (var f = d[0], g = 1; g < d.length; g++) d[g] && (f = C.La.wq(f, d[g]));
- return f
- };
- C.La.wq = function(c, d) {
- var f = new C.La;
- f.Nx(c, d);
- return f
- };
- C.uE = C.N.extend({
- ke: 0,
- ku: 0,
- AX: 0,
- X8: t,
- Cc: s,
- ctor: function(c, d) {
- C.N.prototype.ctor.call(this);
- d !== m && this.Ba(c, d)
- },
- Ba: function(c, d) {
- return this.k(c.D * d) ? (this.ke = d, this.Cc = c, c instanceof C.yh && (this.X8 = q, this.ke -= 1), this.ku = 0, q) : t
- },
- s: function() {
- var c = new C.uE;
- this.vb(c);
- c.Ba(this.Cc.s(), this.ke);
- return c
- },
- R: function(c) {
- this.ku = 0;
- this.AX = this.Cc.D / this.D;
- C.N.prototype.R.call(this, c);
- this.Cc.R(c)
- },
- stop: function() {
- this.Cc.stop();
- C.xg.prototype.stop.call(this)
- },
- update: function(c) {
- c = this.Bg(c);
- var d = this.Cc,
- f = this.D,
- g = this.ke,
- h = this.AX;
- if (c >= h) {
- for (; c > h && this.ku < g;) d.update(1),
- this.ku++,
- d.stop(),
- d.R(this.target),
- this.AX = h += d.D / f;
- 1 <= c && this.ku < g && this.ku++;
- this.X8 || (this.ku === g ? (d.update(1), d.stop()) : d.update(c - (h - d.D / f)))
- } else d.update(c * g % 1)
- },
- ik: function() {
- return this.ku == this.ke
- },
- reverse: function() {
- var c = C.uE.create(this.Cc.reverse(), this.ke);
- this.vb(c);
- this.si(c);
- return c
- },
- Hha: function(c) {
- this.Cc != c && (this.Cc = c)
- },
- r0: A("Cc")
- });
- C.uE.create = function(c, d) {
- return new C.uE(c, d)
- };
- C.vE = C.N.extend({
- Cc: s,
- ctor: function(c) {
- C.N.prototype.ctor.call(this);
- this.Cc = s;
- c && this.Ba(c)
- },
- Ba: function(c) {
- c || e("cc.RepeatForever.initWithAction(): action must be non null");
- this.Cc = c;
- return q
- },
- s: function() {
- var c = new C.vE;
- this.vb(c);
- c.Ba(this.Cc.s());
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- this.Cc.R(c)
- },
- step: function(c) {
- var d = this.Cc;
- d.step(c);
- d.ik() && (d.R(this.target), d.step(d.Bc - d.D))
- },
- ik: B(t),
- reverse: function() {
- var c = C.vE.create(this.Cc.reverse());
- this.vb(c);
- this.si(c);
- return c
- },
- Hha: function(c) {
- this.Cc != c && (this.Cc = c)
- },
- r0: A("Cc")
- });
- C.vE.create = function(c) {
- return new C.vE(c)
- };
- C.ci = C.N.extend({
- ir: s,
- Gr: s,
- ctor: function(c) {
- C.N.prototype.ctor.call(this);
- this.Gr = this.ir = s;
- var d = c instanceof Array ? c: arguments,
- f = d.length - 1;
- 0 <= f && d[f] == s && C.log("parameters should not be ending with null in Javascript");
- if (0 <= f) {
- for (var g = d[0], h = 1; h < f; h++) d[h] && (g = C.ci.wq(g, d[h]));
- this.Nx(g, d[f])
- }
- },
- Nx: function(c, d) { (!c || !d) && e("cc.Spawn.initWithTwoActions(): arguments must all be non null");
- var f = t,
- g = c.D,
- h = d.D;
- this.k(Math.max(g, h)) && (this.ir = c, this.Gr = d, g > h ? this.Gr = C.La.wq(d, C.fd.create(g - h)) : g < h && (this.ir = C.La.wq(c, C.fd.create(h - g))), f = q);
- return f
- },
- s: function() {
- var c = new C.ci;
- this.vb(c);
- c.Nx(this.ir.s(), this.Gr.s());
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- this.ir.R(c);
- this.Gr.R(c)
- },
- stop: function() {
- this.ir.stop();
- this.Gr.stop();
- C.xg.prototype.stop.call(this)
- },
- update: function(c) {
- c = this.Bg(c);
- this.ir && this.ir.update(c);
- this.Gr && this.Gr.update(c)
- },
- reverse: function() {
- var c = C.ci.wq(this.ir.reverse(), this.Gr.reverse());
- this.vb(c);
- this.si(c);
- return c
- }
- });
- C.ci.create = function(c) {
- var d = c instanceof Array ? c: arguments;
- 0 < d.length && d[d.length - 1] == s && C.log("parameters should not be ending with null in Javascript");
- for (var f = d[0], g = 1; g < d.length; g++) d[g] != s && (f = C.ci.wq(f, d[g]));
- return f
- };
- C.ci.wq = function(c, d) {
- var f = new C.ci;
- f.Nx(c, d);
- return f
- };
- C.wE = C.N.extend({
- hM: 0,
- LG: 0,
- K9: 0,
- nW: 0,
- dB: 0,
- L9: 0,
- ctor: function(c, d, f) {
- C.N.prototype.ctor.call(this);
- d !== m && this.k(c, d, f)
- },
- k: function(c, d, f) {
- return C.N.prototype.k.call(this, c) ? (this.hM = d || 0, this.nW = f || this.hM, q) : t
- },
- s: function() {
- var c = new C.wE;
- this.vb(c);
- c.k(this.D, this.hM, this.nW);
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- var d = c.rotationX % 360,
- f = this.hM - d;
- 180 < f && (f -= 360); - 180 > f && (f += 360);
- this.LG = d;
- this.K9 = f;
- this.dB = c.rotationY % 360;
- c = this.nW - this.dB;
- 180 < c && (c -= 360); - 180 > c && (c += 360);
- this.L9 = c
- },
- reverse: function() {
- C.log("cc.RotateTo.reverse(): it should be overridden in subclass.")
- },
- update: function(c) {
- c = this.Bg(c);
- this.target && (this.target.rotationX = this.LG + this.K9 * c, this.target.rotationY = this.dB + this.L9 * c)
- }
- });
- C.wE.create = function(c, d, f) {
- return new C.wE(c, d, f)
- };
- C.Ds = C.N.extend({
- cn: 0,
- LG: 0,
- jL: 0,
- dB: 0,
- ctor: function(c, d, f) {
- C.N.prototype.ctor.call(this);
- d !== m && this.k(c, d, f)
- },
- k: function(c, d, f) {
- return C.N.prototype.k.call(this, c) ? (this.cn = d || 0, this.jL = f || this.cn, q) : t
- },
- s: function() {
- var c = new C.Ds;
- this.vb(c);
- c.k(this.D, this.cn, this.jL);
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- this.LG = c.rotationX;
- this.dB = c.rotationY
- },
- update: function(c) {
- c = this.Bg(c);
- this.target && (this.target.rotationX = this.LG + this.cn * c, this.target.rotationY = this.dB + this.jL * c)
- },
- reverse: function() {
- var c = C.Ds.create(this.D, -this.cn, -this.jL);
- this.vb(c);
- this.si(c);
- return c
- }
- });
- C.Ds.create = function(c, d, f) {
- var g = new C.Ds;
- g.k(c, d, f);
- return g
- };
- C.Dk = C.N.extend({
- kp: s,
- of: s,
- Ff: s,
- ctor: function(c, d, f) {
- C.N.prototype.ctor.call(this);
- this.kp = C.d(0, 0);
- this.of = C.d(0, 0);
- this.Ff = C.d(0, 0);
- d !== m && this.k(c, d, f)
- },
- k: function(c, d, f) {
- return C.N.prototype.k.call(this, c) ? (d.x !== m && (f = d.y, d = d.x), this.kp.x = d, this.kp.y = f, q) : t
- },
- s: function() {
- var c = new C.Dk;
- this.vb(c);
- c.k(this.D, this.kp);
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- var d = c.Rc();
- c = c.Vd();
- this.Ff.x = d;
- this.Ff.y = c;
- this.of.x = d;
- this.of.y = c
- },
- update: function(c) {
- c = this.Bg(c);
- if (this.target) {
- var d = this.kp.x * c;
- c *= this.kp.y;
- var f = this.of;
- if (C.iK) {
- var g = this.target.Vd(),
- h = this.Ff;
- f.x = f.x + this.target.Rc() - h.x;
- f.y = f.y + g - h.y;
- d += f.x;
- c += f.y;
- h.x = d;
- h.y = c;
- this.target.p(d, c)
- } else this.target.p(f.x + d, f.y + c)
- }
- },
- reverse: function() {
- var c = C.Dk.create(this.D, C.d( - this.kp.x, -this.kp.y));
- this.vb(c);
- this.si(c);
- return c
- }
- });
- C.Dk.create = function(c, d, f) {
- return new C.Dk(c, d, f)
- };
- C.Bs = C.Dk.extend({
- Sk: s,
- ctor: function(c, d, f) {
- C.Dk.prototype.ctor.call(this);
- this.Sk = C.d(0, 0);
- d !== m && this.k(c, d, f)
- },
- k: function(c, d, f) {
- return C.Dk.prototype.k.call(this, c, d, f) ? (d.x !== m && (f = d.y, d = d.x), this.Sk.x = d, this.Sk.y = f, q) : t
- },
- s: function() {
- var c = new C.Bs;
- this.vb(c);
- c.k(this.D, this.Sk);
- return c
- },
- R: function(c) {
- C.Dk.prototype.R.call(this, c);
- this.kp.x = this.Sk.x - c.Rc();
- this.kp.y = this.Sk.y - c.Vd()
- }
- });
- C.Bs.create = function(c, d, f) {
- return new C.Bs(c, d, f)
- };
- C.rq = C.N.extend({
- ig: 0,
- jg: 0,
- dO: 0,
- eO: 0,
- nM: 0,
- oM: 0,
- Nj: 0,
- Oj: 0,
- ctor: function(c, d, f) {
- C.N.prototype.ctor.call(this);
- f !== m && this.k(c, d, f)
- },
- k: function(c, d, f) {
- var g = t;
- C.N.prototype.k.call(this, c) && (this.nM = d, this.oM = f, g = q);
- return g
- },
- s: function() {
- var c = new C.rq;
- this.vb(c);
- c.k(this.D, this.nM, this.oM);
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- this.dO = c.skewX % 180;
- this.Nj = this.nM - this.dO;
- 180 < this.Nj && (this.Nj -= 360); - 180 > this.Nj && (this.Nj += 360);
- this.eO = c.skewY % 360;
- this.Oj = this.oM - this.eO;
- 180 < this.Oj && (this.Oj -= 360); - 180 > this.Oj && (this.Oj += 360)
- },
- update: function(c) {
- c = this.Bg(c);
- this.target.skewX = this.dO + this.Nj * c;
- this.target.skewY = this.eO + this.Oj * c
- }
- });
- C.rq.create = function(c, d, f) {
- return new C.rq(c, d, f)
- };
- C.zE = C.rq.extend({
- ctor: function(c, d, f) {
- C.rq.prototype.ctor.call(this);
- f !== m && this.k(c, d, f)
- },
- k: function(c, d, f) {
- var g = t;
- C.rq.prototype.k.call(this, c, d, f) && (this.ig = d, this.jg = f, g = q);
- return g
- },
- s: function() {
- var c = new C.zE;
- this.vb(c);
- c.k(this.D, this.ig, this.jg);
- return c
- },
- R: function(c) {
- C.rq.prototype.R.call(this, c);
- this.Nj = this.ig;
- this.Oj = this.jg;
- this.nM = this.dO + this.Nj;
- this.oM = this.eO + this.Oj
- },
- reverse: function() {
- var c = C.zE.create(this.D, -this.ig, -this.jg);
- this.vb(c);
- this.si(c);
- return c
- }
- });
- C.zE.create = function(c, d, f) {
- var g = new C.zE;
- g && g.k(c, d, f);
- return g
- };
- C.Ao = C.N.extend({
- of: s,
- Wo: s,
- RF: 0,
- ar: 0,
- Ff: s,
- ctor: function(c, d, f, g, h) {
- C.N.prototype.ctor.call(this);
- this.of = C.d(0, 0);
- this.Ff = C.d(0, 0);
- this.Wo = C.d(0, 0);
- g !== m && this.k(c, d, f, g, h)
- },
- k: function(c, d, f, g, h) {
- return C.N.prototype.k.call(this, c) ? (h === m && (h = g, g = f, f = d.y, d = d.x), this.Wo.x = d, this.Wo.y = f, this.RF = g, this.ar = h, q) : t
- },
- s: function() {
- var c = new C.Ao;
- this.vb(c);
- c.k(this.D, this.Wo, this.RF, this.ar);
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- var d = c.Rc();
- c = c.Vd();
- this.Ff.x = d;
- this.Ff.y = c;
- this.of.x = d;
- this.of.y = c
- },
- update: function(c) {
- c = this.Bg(c);
- if (this.target) {
- var d = c * this.ar % 1,
- d = 4 * this.RF * d * (1 - d),
- d = d + this.Wo.y * c;
- c *= this.Wo.x;
- var f = this.of;
- if (C.iK) {
- var g = this.target.Vd(),
- h = this.Ff;
- f.x = f.x + this.target.Rc() - h.x;
- f.y = f.y + g - h.y;
- c += f.x;
- d += f.y;
- h.x = c;
- h.y = d;
- this.target.p(c, d)
- } else this.target.p(f.x + c, f.y + d)
- }
- },
- reverse: function() {
- var c = C.Ao.create(this.D, C.d( - this.Wo.x, -this.Wo.y), this.RF, this.ar);
- this.vb(c);
- this.si(c);
- return c
- }
- });
- C.Ao.create = function(c, d, f, g, h) {
- return new C.Ao(c, d, f, g, h)
- };
- C.uK = C.Ao.extend({
- Sk: s,
- ctor: function(c, d, f, g, h) {
- C.Ao.prototype.ctor.call(this);
- this.Sk = C.d(0, 0);
- g !== m && this.k(c, d, f, g, h)
- },
- k: function(c, d, f, g, h) {
- return C.Ao.prototype.k.call(this, c, d, f, g, h) ? (h === m && (f = d.y, d = d.x), this.Sk.x = d, this.Sk.y = f, q) : t
- },
- R: function(c) {
- C.Ao.prototype.R.call(this, c);
- this.Wo.x = this.Sk.x - this.of.x;
- this.Wo.y = this.Sk.y - this.of.y
- },
- s: function() {
- var c = new C.uK;
- this.vb(c);
- c.k(this.D, this.Sk, this.RF, this.ar);
- return c
- }
- });
- C.uK.create = function(c, d, f, g, h) {
- return new C.uK(c, d, f, g, h)
- };
- C.Ica = function(c, d, f, g) {
- 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) * f
- };
- C.vs = C.N.extend({
- Nk: s,
- of: s,
- Ff: s,
- ctor: function(c, d) {
- C.N.prototype.ctor.call(this);
- this.Nk = [];
- this.of = C.d(0, 0);
- this.Ff = C.d(0, 0);
- d && this.k(c, d)
- },
- k: function(c, d) {
- return C.N.prototype.k.call(this, c) ? (this.Nk = d, q) : t
- },
- s: function() {
- var c = new C.vs;
- this.vb(c);
- for (var d = [], f = 0; f < this.Nk.length; f++) {
- var g = this.Nk[f];
- d.push(C.d(g.x, g.y))
- }
- c.k(this.D, d);
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- var d = c.Rc();
- c = c.Vd();
- this.Ff.x = d;
- this.Ff.y = c;
- this.of.x = d;
- this.of.y = c
- },
- update: function(c) {
- c = this.Bg(c);
- if (this.target) {
- var d = this.Nk,
- f = C.Ica(d[0].x, d[1].x, d[2].x, c);
- c = C.Ica(d[0].y, d[1].y, d[2].y, c);
- d = this.of;
- if (C.iK) {
- var g = this.target.Vd(),
- h = this.Ff;
- d.x = d.x + this.target.Rc() - h.x;
- d.y = d.y + g - h.y;
- f += d.x;
- c += d.y;
- h.x = f;
- h.y = c;
- this.target.p(f, c)
- } else this.target.p(d.x + f, d.y + c)
- }
- },
- reverse: function() {
- var c = this.Nk,
- c = [C.ho(c[1], C.T1(c[2])), C.ho(c[0], C.T1(c[2])), C.T1(c[2])],
- c = C.vs.create(this.D, c);
- this.vb(c);
- this.si(c);
- return c
- }
- });
- C.vs.create = function(c, d) {
- return new C.vs(c, d)
- };
- C.QJ = C.vs.extend({
- sO: s,
- ctor: function(c, d) {
- C.vs.prototype.ctor.call(this);
- this.sO = [];
- d && this.k(c, d)
- },
- k: function(c, d) {
- return C.N.prototype.k.call(this, c) ? (this.sO = d, q) : t
- },
- s: function() {
- var c = new C.QJ;
- this.vb(c);
- c.k(this.D, this.sO);
- return c
- },
- R: function(c) {
- C.vs.prototype.R.call(this, c);
- c = this.of;
- var d = this.sO,
- f = this.Nk;
- f[0] = C.cc(d[0], c);
- f[1] = C.cc(d[1], c);
- f[2] = C.cc(d[2], c)
- }
- });
- C.QJ.create = function(c, d) {
- return new C.QJ(c, d)
- };
- C.ae = C.N.extend({
- ia: 1,
- pa: 1,
- OG: 1,
- PG: 1,
- Uz: 0,
- Vz: 0,
- Nj: 0,
- Oj: 0,
- ctor: function(c, d, f) {
- C.N.prototype.ctor.call(this);
- d !== m && this.k(c, d, f)
- },
- k: function(c, d, f) {
- return C.N.prototype.k.call(this, c) ? (this.Uz = d, this.Vz = f != s ? f: d, q) : t
- },
- s: function() {
- var c = new C.ae;
- this.vb(c);
- c.k(this.D, this.Uz, this.Vz);
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- this.OG = c.scaleX;
- this.PG = c.scaleY;
- this.Nj = this.Uz - this.OG;
- this.Oj = this.Vz - this.PG
- },
- update: function(c) {
- c = this.Bg(c);
- this.target && (this.target.scaleX = this.OG + this.Nj * c, this.target.scaleY = this.PG + this.Oj * c)
- }
- });
- C.ae.create = function(c, d, f) {
- var g = new C.ae;
- g.k(c, d, f);
- return g
- };
- C.Av = C.ae.extend({
- R: function(c) {
- C.ae.prototype.R.call(this, c);
- this.Nj = this.OG * this.Uz - this.OG;
- this.Oj = this.PG * this.Vz - this.PG
- },
- reverse: function() {
- var c = C.Av.create(this.D, 1 / this.Uz, 1 / this.Vz);
- this.vb(c);
- this.si(c);
- return c
- },
- s: function() {
- var c = new C.Av;
- this.vb(c);
- c.k(this.D, this.Uz, this.Vz);
- return c
- }
- });
- C.Av.create = function(c, d, f) {
- return new C.Av(c, d, f)
- };
- C.yD = C.N.extend({
- ke: 0,
- Jaa: t,
- ctor: function(c, d) {
- C.N.prototype.ctor.call(this);
- d !== m && this.k(c, d)
- },
- k: function(c, d) {
- return C.N.prototype.k.call(this, c) ? (this.ke = d, q) : t
- },
- s: function() {
- var c = new C.yD;
- this.vb(c);
- c.k(this.D, this.ke);
- return c
- },
- update: function(c) {
- c = this.Bg(c);
- if (this.target && !this.ik()) {
- var d = 1 / this.ke;
- this.target.visible = c % d > d / 2
- }
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- this.Jaa = c.visible
- },
- stop: function() {
- this.target.visible = this.Jaa;
- C.N.prototype.stop.call(this)
- },
- reverse: function() {
- var c = C.yD.create(this.D, this.ke);
- this.vb(c);
- this.si(c);
- return c
- }
- });
- C.yD.create = function(c, d) {
- var f = new C.yD;
- f.k(c, d);
- return f
- };
- C.xo = C.N.extend({
- nB: 0,
- AM: 0,
- ctor: function(c, d) {
- C.N.prototype.ctor.call(this);
- d !== m && this.k(c, d)
- },
- k: function(c, d) {
- return C.N.prototype.k.call(this, c) ? (this.nB = d, q) : t
- },
- s: function() {
- var c = new C.xo;
- this.vb(c);
- c.k(this.D, this.nB);
- return c
- },
- update: function(c) {
- c = this.Bg(c);
- if (this.target.sb) {
- var d = this.AM !== m ? this.AM: 255;
- this.target.opacity = d + (this.nB - d) * c
- }
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- this.target.sb && (this.AM = c.opacity)
- }
- });
- C.xo.create = function(c, d) {
- return new C.xo(c, d)
- };
- C.Ry = C.xo.extend({
- rY: s,
- reverse: function() {
- var c = new C.Sy;
- c.k(this.D, 0);
- this.vb(c);
- this.si(c);
- return c
- },
- s: function() {
- var c = new C.Ry;
- this.vb(c);
- c.k(this.D, this.nB);
- return c
- },
- R: function(c) {
- this.rY && (this.nB = this.rY.AM);
- C.xo.prototype.R.call(this, c)
- }
- });
- C.Ry.create = function(c) {
- return new C.Ry(c, 255)
- };
- C.Sy = C.xo.extend({
- reverse: function() {
- var c = new C.Ry;
- c.rY = this;
- c.k(this.D, 255);
- this.vb(c);
- this.si(c);
- return c
- },
- s: function() {
- var c = new C.Sy;
- this.vb(c);
- c.k(this.D, this.nB);
- return c
- }
- });
- C.Sy.create = function(c) {
- var d = new C.Sy;
- d.k(c, 0);
- return d
- };
- C.ez = C.N.extend({
- Jf: s,
- Qc: s,
- ctor: function(c, d, f, g) {
- C.N.prototype.ctor.call(this);
- this.Jf = C.color(0, 0, 0);
- this.Qc = C.color(0, 0, 0);
- g !== m && this.k(c, d, f, g)
- },
- k: function(c, d, f, g) {
- return C.N.prototype.k.call(this, c) ? (this.Jf = C.color(d, f, g), q) : t
- },
- s: function() {
- var c = new C.ez;
- this.vb(c);
- var d = this.Jf;
- c.k(this.D, d.r, d.g, d.b);
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- this.target.sb && (this.Qc = this.target.color)
- },
- update: function(c) {
- c = this.Bg(c);
- var d = this.Qc,
- f = this.Jf;
- d && this.target.sb && (this.target.color = C.color(d.r + (f.r - d.r) * c, d.g + (f.g - d.g) * c, d.b + (f.b - d.b) * c))
- }
- });
- C.ez.create = function(c, d, f, g) {
- return new C.ez(c, d, f, g)
- };
- C.IE = C.N.extend({
- ZL: 0,
- YL: 0,
- XL: 0,
- G$: 0,
- F$: 0,
- E$: 0,
- ctor: function(c, d, f, g) {
- C.N.prototype.ctor.call(this);
- g !== m && this.k(c, d, f, g)
- },
- k: function(c, d, f, g) {
- return C.N.prototype.k.call(this, c) ? (this.ZL = d, this.YL = f, this.XL = g, q) : t
- },
- s: function() {
- var c = new C.IE;
- this.vb(c);
- c.k(this.D, this.ZL, this.YL, this.XL);
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- c.sb && (c = c.color, this.G$ = c.r, this.F$ = c.g, this.E$ = c.b)
- },
- update: function(c) {
- c = this.Bg(c);
- this.target.sb && (this.target.color = C.color(this.G$ + this.ZL * c, this.F$ + this.YL * c, this.E$ + this.XL * c))
- },
- reverse: function() {
- var c = C.IE.create(this.D, -this.ZL, -this.YL, -this.XL);
- this.vb(c);
- this.si(c);
- return c
- }
- });
- C.IE.create = function(c, d, f, g) {
- return new C.IE(c, d, f, g)
- };
- C.fd = C.N.extend({
- update: u(),
- reverse: function() {
- var c = C.fd.create(this.D);
- this.vb(c);
- this.si(c);
- return c
- },
- s: function() {
- var c = new C.fd;
- this.vb(c);
- c.k(this.D);
- return c
- }
- });
- C.fd.create = function(c) {
- return new C.fd(c)
- };
- C.zv = C.N.extend({
- kr: s,
- ctor: function(c) {
- C.N.prototype.ctor.call(this);
- this.kr = s;
- c && this.Ba(c)
- },
- Ba: function(c) {
- c || e("cc.ReverseTime.initWithAction(): action must be non null");
- c == this.kr && e("cc.ReverseTime.initWithAction(): the action was already passed in.");
- return C.N.prototype.k.call(this, c.D) ? (this.kr = c, q) : t
- },
- s: function() {
- var c = new C.zv;
- this.vb(c);
- c.Ba(this.kr.s());
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- this.kr.R(c)
- },
- update: function(c) {
- c = this.Bg(c);
- this.kr && this.kr.update(1 - c)
- },
- reverse: function() {
- return this.kr.s()
- },
- stop: function() {
- this.kr.stop();
- C.xg.prototype.stop.call(this)
- }
- });
- C.zv.create = function(c) {
- return new C.zv(c)
- };
- C.uD = C.N.extend({
- Us: s,
- fG: 0,
- JX: s,
- rM: 0,
- UY: s,
- ctor: function(c) {
- C.N.prototype.ctor.call(this);
- this.UY = [];
- c && this.Uea(c)
- },
- ll: A("Us"),
- gy: x("Us"),
- Uea: function(c) {
- c || e("cc.Animate.initWithAnimation(): animation must be non-NULL");
- var d = c.Rr();
- if (this.k(d * c.dr)) {
- this.fG = 0;
- this.gy(c);
- this.JX = s;
- this.rM = 0;
- var f = this.UY,
- g = f.length = 0,
- h = d / c.wp;
- c = c.Lh;
- C.yB(c, C.Cl);
- for (var k = 0; k < c.length; k++) {
- var n = g * h / d,
- g = g + c[k].Jh;
- f.push(n)
- }
- return q
- }
- return t
- },
- s: function() {
- var c = new C.uD;
- this.vb(c);
- c.Uea(this.Us.s());
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- this.Us.Kw && (this.JX = c.Hya());
- this.rM = this.fG = 0
- },
- update: function(c) {
- c = this.Bg(c);
- 1 > c && (c *= this.Us.dr, (0 | c) > this.rM && (this.fG = 0, this.rM++), c %= 1);
- for (var d = this.Us.Lh,
- f = d.length,
- g = this.UY,
- h = this.fG; h < f; h++) if (g[h] <= c) this.target.pc(d[h].nh()),
- this.fG = h + 1;
- else break
- },
- reverse: function() {
- var c = this.Us,
- d = c.Lh,
- f = [];
- C.yB(d, C.Cl);
- if (0 < d.length) for (var g = d.length - 1; 0 <= g; g--) {
- var h = d[g];
- if (!h) break;
- f.push(h.s())
- }
- d = C.gv.create(f, c.Jh, c.dr);
- d.KR(c.Kw);
- c = C.uD.create(d);
- this.vb(c);
- this.si(c);
- return c
- },
- stop: function() {
- this.Us.Kw && this.target && this.target.pc(this.JX);
- C.xg.prototype.stop.call(this)
- }
- });
- C.uD.create = function(c) {
- return new C.uD(c)
- };
- C.XK = C.N.extend({
- Ke: s,
- $z: s,
- ctor: function(c, d) {
- C.N.prototype.ctor.call(this);
- d && this.jC(c, d)
- },
- jC: function(c, d) {
- return this.k(d.D) ? (this.$z = c, this.Ke = d, q) : t
- },
- s: function() {
- var c = new C.XK;
- this.vb(c);
- c.jC(this.$z, this.Ke.s());
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- this.Ke.R(this.$z)
- },
- stop: function() {
- this.Ke.stop()
- },
- update: function(c) {
- c = this.Bg(c);
- this.Ke.update(c)
- },
- IUa: A("$z"),
- c4a: function(c) {
- this.$z != c && (this.$z = c)
- }
- });
- C.XK.create = function(c, d) {
- return new C.XK(c, d)
- };
- C.yh = C.kq.extend({
- ik: B(q),
- step: function() {
- this.update(1)
- },
- update: u(),
- reverse: function() {
- return this.s()
- },
- s: function() {
- return new C.yh
- }
- });
- C.Fj = C.yh.extend({
- update: function() {
- this.target.visible = q
- },
- reverse: function() {
- return C.Fl.create()
- },
- s: function() {
- return new C.Fj
- }
- });
- C.Fj.create = function() {
- return new C.Fj
- };
- C.Fl = C.yh.extend({
- update: function() {
- this.target.visible = t
- },
- reverse: function() {
- return C.Fj.create()
- },
- s: function() {
- return new C.Fl
- }
- });
- C.Fl.create = function() {
- return new C.Fl
- };
- C.JE = C.yh.extend({
- update: function() {
- this.target.visible = !this.target.visible
- },
- reverse: function() {
- return new C.JE
- },
- s: function() {
- return new C.JE
- }
- });
- C.JE.create = function() {
- return new C.JE
- };
- C.tE = C.yh.extend({
- SM: q,
- ctor: function(c) {
- C.kq.prototype.ctor.call(this);
- c !== m && this.j(c)
- },
- update: function() {
- this.target.Lm(this.SM)
- },
- j: function(c) {
- this.SM = c;
- return q
- },
- reverse: function() {
- return new C.tE(this.SM)
- },
- s: function() {
- return new C.tE(this.SM)
- }
- });
- C.tE.create = function(c) {
- return new C.tE(c)
- };
- C.lE = C.yh.extend({
- Bb: t,
- ctor: function(c) {
- C.kq.prototype.ctor.call(this);
- this.Bb = t;
- c !== m && this.Xea(c)
- },
- Xea: function(c) {
- this.Bb = c;
- return q
- },
- update: function() {
- this.target.flippedX = this.Bb
- },
- reverse: function() {
- return C.lE.create(!this.Bb)
- },
- s: function() {
- var c = new C.lE;
- c.Xea(this.Bb);
- return c
- }
- });
- C.lE.create = function(c) {
- return new C.lE(c)
- };
- C.mE = C.yh.extend({
- Db: t,
- ctor: function(c) {
- C.kq.prototype.ctor.call(this);
- this.Db = t;
- c !== m && this.Yea(c)
- },
- Yea: function(c) {
- this.Db = c;
- return q
- },
- update: function() {
- this.target.flippedY = this.Db
- },
- reverse: function() {
- return C.mE.create(!this.Db)
- },
- s: function() {
- var c = new C.mE;
- c.Yea(this.Db);
- return c
- }
- });
- C.mE.create = function(c) {
- return new C.mE(c)
- };
- C.EK = C.yh.extend({
- Pn: 0,
- cj: 0,
- ctor: function(c, d) {
- C.kq.prototype.ctor.call(this);
- this.cj = this.Pn = 0;
- c !== m && (c.x !== m && (d = c.y, c = c.x), this.bfa(c, d))
- },
- bfa: function(c, d) {
- this.Pn = c;
- this.cj = d;
- return q
- },
- update: function() {
- this.target.p(this.Pn, this.cj)
- },
- s: function() {
- var c = new C.EK;
- c.bfa(this.Pn, this.cj);
- return c
- }
- });
- C.EK.create = function(c, d) {
- return new C.EK(c, d)
- };
- C.Jc = C.yh.extend({
- km: s,
- $s: s,
- HF: s,
- Ih: s,
- ctor: function(c, d, f) {
- C.kq.prototype.ctor.call(this);
- c !== m && (d === m ? this.eQ(c) : this.eQ(c, d, f))
- },
- eQ: function(c, d, f) {
- d ? (this.Ih = f, this.$s = c, this.km = d) : c && (this.HF = c);
- return q
- },
- execute: function() {
- this.$s != s ? this.$s.call(this.km, this.target, this.Ih) : this.HF && this.HF.call(s, this.target)
- },
- update: function() {
- this.execute()
- },
- PWa: A("km"),
- l5a: function(c) {
- c != this.km && (this.km && (this.km = s), this.km = c)
- },
- s: function() {
- var c = new C.Jc;
- this.km ? c.eQ(this.$s, this.km, this.Ih) : this.HF && c.eQ(this.HF);
- return c
- }
- });
- C.Jc.create = function(c, d, f) {
- return new C.Jc(c, d, f)
- };
- C.hS = C.N.extend({
- EV: 0,
- FV: 0,
- GV: 0,
- u$: 0,
- v$: 0,
- w$: 0,
- Zba: 0,
- $ba: 0,
- aca: 0,
- ctor: function() {
- C.N.prototype.ctor.call(this);
- this.aca = this.$ba = this.Zba = this.w$ = this.v$ = this.u$ = this.GV = this.FV = this.EV = 0
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- c = c.Ix();
- var d = c.Oda();
- this.EV = d.x;
- this.FV = d.y;
- this.GV = d.f;
- d = c.Yda();
- this.u$ = d.x;
- this.v$ = d.y;
- this.w$ = d.f;
- c = c.kCa();
- this.Zba = c.x;
- this.$ba = c.y;
- this.aca = c.f
- },
- s: function() {
- return new C.hS
- },
- reverse: function() {
- return C.zv.create(this)
- }
- });
- C.bi = C.hS.extend({
- Ui: 0,
- $V: 0,
- SE: 0,
- H9: 0,
- cn: 0,
- G9: 0,
- Xaa: 0,
- Vaa: 0,
- Waa: 0,
- Uaa: 0,
- ctor: function(c, d, f, g, h, k, n) {
- C.hS.prototype.ctor.call(this);
- n !== m && this.k(c, d, f, g, h, k, n)
- },
- k: function(c, d, f, g, h, k, n) {
- return C.N.prototype.k.call(this, c) ? (this.Ui = d, this.$V = f, this.SE = g, this.H9 = h, this.cn = k, this.G9 = n, this.Vaa = C.ng(h), this.Uaa = C.ng(n), q) : t
- },
- JIa: function() {
- var c = this.target.Ix(),
- d = c.Yda(),
- f = c.Oda(),
- c = d.x - f.x,
- g = d.y - f.y,
- d = d.f - f.f,
- f = Math.sqrt(Math.pow(c, 2) + Math.pow(g, 2) + Math.pow(d, 2)),
- h = Math.sqrt(Math.pow(c, 2) + Math.pow(g, 2));
- 0 === h && (h = C.rK);
- 0 === f && (f = C.rK);
- return {
- uEa: f / C.FD.dI(),
- XJa: Math.acos(d / f),
- azimuth: 0 > c ? Math.PI - Math.asin(g / h) : Math.asin(g / h)
- }
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- c = this.JIa();
- isNaN(this.Ui) && (this.Ui = c.uEa);
- isNaN(this.SE) && (this.SE = C.LC(c.XJa));
- isNaN(this.cn) && (this.cn = C.LC(c.azimuth));
- this.Xaa = C.ng(this.SE);
- this.Waa = C.ng(this.cn)
- },
- s: function() {
- var c = new C.bi;
- c.k(this.D, this.Ui, this.$V, this.SE, this.H9, this.cn, this.G9);
- return c
- },
- update: function(c) {
- c = this.Bg(c);
- var d = (this.Ui + this.$V * c) * C.FD.dI(),
- f = this.Xaa + this.Vaa * c,
- g = this.Waa + this.Uaa * c;
- c = Math.sin(f) * Math.cos(g) * d + this.EV;
- g = Math.sin(f) * Math.sin(g) * d + this.FV;
- d = Math.cos(f) * d + this.GV;
- this.target.Ix().Dha(c, g, d)
- }
- });
- C.bi.create = function(c, d, f, g, h, k, n) {
- return new C.bi(c, d, f, g, h, k, n)
- };
- C.Zb = C.N.extend({
- I: s,
- ctor: function(c) {
- C.N.prototype.ctor.call(this);
- c && this.Ba(c)
- },
- Ba: function(c) {
- c || e("cc.ActionEase.initWithAction(): action must be non nil");
- return this.k(c.Rr()) ? (this.I = c, q) : t
- },
- s: function() {
- var c = new C.Zb;
- c.Ba(this.I.s());
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- this.I.R(this.target)
- },
- stop: function() {
- this.I.stop();
- C.N.prototype.stop.call(this)
- },
- update: function(c) {
- this.I.update(c)
- },
- reverse: function() {
- return C.Zb.create(this.I.reverse())
- },
- r0: A("I")
- });
- C.Zb.create = function(c) {
- return new C.Zb(c)
- };
- C.ov = C.Zb.extend({
- fe: 0,
- ctor: function(c, d) {
- C.Zb.prototype.ctor.call(this);
- d !== m && this.Ba(c, d)
- },
- V4a: x("fe"),
- iWa: A("fe"),
- Ba: function(c, d) {
- return C.Zb.prototype.Ba.call(this, c) ? (this.fe = d, q) : t
- },
- s: function() {
- var c = new C.ov;
- c.Ba(this.I.s(), this.fe);
- return c
- },
- reverse: function() {
- return C.ov.create(this.I.reverse(), 1 / this.fe)
- }
- });
- C.ov.create = function(c, d) {
- return new C.ov(c, d)
- };
- C.$D = C.ov.extend({
- update: function(c) {
- this.I.update(Math.pow(c, this.fe))
- },
- reverse: function() {
- return C.$D.create(this.I.reverse(), 1 / this.fe)
- },
- s: function() {
- var c = new C.$D;
- c.Ba(this.I.s(), this.fe);
- return c
- }
- });
- C.$D.create = function(c, d) {
- return new C.$D(c, d)
- };
- C.iza = function(c) {
- return {
- fe: c,
- ra: function(c) {
- return Math.pow(c, this.fe)
- },
- reverse: function() {
- return C.iza(1 / this.fe)
- }
- }
- };
- C.As = C.ov.extend({
- update: function(c) {
- this.I.update(Math.pow(c, 1 / this.fe))
- },
- reverse: function() {
- return C.As.create(this.I.reverse(), 1 / this.fe)
- },
- s: function() {
- var c = new C.As;
- c.Ba(this.I.s(), this.fe);
- return c
- }
- });
- C.As.create = function(c, d) {
- return new C.As(c, d)
- };
- C.kza = function(c) {
- return {
- fe: c,
- ra: function(c) {
- return Math.pow(c, 1 / this.fe)
- },
- reverse: function() {
- return C.kza(1 / this.fe)
- }
- }
- };
- C.Oy = C.ov.extend({
- update: function(c) {
- c *= 2;
- 1 > c ? this.I.update(0.5 * Math.pow(c, this.fe)) : this.I.update(1 - 0.5 * Math.pow(2 - c, this.fe))
- },
- s: function() {
- var c = new C.Oy;
- c.Ba(this.I.s(), this.fe);
- return c
- },
- reverse: function() {
- return C.Oy.create(this.I.reverse(), this.fe)
- }
- });
- C.Oy.create = function(c, d) {
- return new C.Oy(c, d)
- };
- C.jza = function(c) {
- return {
- fe: c,
- ra: function(c) {
- c *= 2;
- return 1 > c ? 0.5 * Math.pow(c, this.fe) : 1 - 0.5 * Math.pow(2 - c, this.fe)
- },
- reverse: function() {
- return C.jza(this.fe)
- }
- }
- };
- C.lK = C.Zb.extend({
- update: function(c) {
- this.I.update(0 === c ? 0 : Math.pow(2, 10 * (c - 1)))
- },
- reverse: function() {
- return C.nK.create(this.I.reverse())
- },
- s: function() {
- var c = new C.lK;
- c.Ba(this.I.s());
- return c
- }
- });
- C.lK.create = function(c) {
- return new C.lK(c)
- };
- C.d$ = {
- ra: function(c) {
- return 0 === c ? 0 : Math.pow(2, 10 * (c - 1))
- },
- reverse: function() {
- return C.f$
- }
- };
- C.fza = function() {
- return C.d$
- };
- C.nK = C.Zb.extend({
- update: function(c) {
- this.I.update(1 == c ? 1 : -Math.pow(2, -10 * c) + 1)
- },
- reverse: function() {
- return C.lK.create(this.I.reverse())
- },
- s: function() {
- var c = new C.nK;
- c.Ba(this.I.s());
- return c
- }
- });
- C.nK.create = function(c) {
- return new C.nK(c)
- };
- C.f$ = {
- ra: function(c) {
- return 1 == c ? 1 : -Math.pow(2, -10 * c) + 1
- },
- reverse: function() {
- return C.d$
- }
- };
- C.hza = function() {
- return C.f$
- };
- C.mK = C.Zb.extend({
- update: function(c) {
- 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));
- this.I.update(c)
- },
- reverse: function() {
- return C.mK.create(this.I.reverse())
- },
- s: function() {
- var c = new C.mK;
- c.Ba(this.I.s());
- return c
- }
- });
- C.mK.create = function(c) {
- return new C.mK(c)
- };
- C.e$ = {
- ra: function(c) {
- 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
- },
- reverse: function() {
- return C.e$
- }
- };
- C.gza = function() {
- return C.e$
- };
- C.oK = C.Zb.extend({
- update: function(c) {
- c = 0 === c || 1 === c ? c: -1 * Math.cos(c * Math.PI / 2) + 1;
- this.I.update(c)
- },
- reverse: function() {
- return C.qK.create(this.I.reverse())
- },
- s: function() {
- var c = new C.oK;
- c.Ba(this.I.s());
- return c
- }
- });
- C.oK.create = function(c) {
- return new C.oK(c)
- };
- C.p$ = {
- ra: function(c) {
- return 0 === c || 1 === c ? c: -1 * Math.cos(c * Math.PI / 2) + 1
- },
- reverse: function() {
- return C.r$
- }
- };
- C.uza = function() {
- return C.p$
- };
- C.qK = C.Zb.extend({
- update: function(c) {
- c = 0 === c || 1 === c ? c: Math.sin(c * Math.PI / 2);
- this.I.update(c)
- },
- reverse: function() {
- return C.oK.create(this.I.reverse())
- },
- s: function() {
- var c = new C.qK;
- c.Ba(this.I.s());
- return c
- }
- });
- C.qK.create = function(c) {
- return new C.qK(c)
- };
- C.r$ = {
- ra: function(c) {
- return 0 === c || 1 == c ? c: Math.sin(c * Math.PI / 2)
- },
- reverse: function() {
- return C.p$
- }
- };
- C.wza = function() {
- return C.r$
- };
- C.pK = C.Zb.extend({
- update: function(c) {
- c = 0 === c || 1 === c ? c: -0.5 * (Math.cos(Math.PI * c) - 1);
- this.I.update(c)
- },
- s: function() {
- var c = new C.pK;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.pK.create(this.I.reverse())
- }
- });
- C.pK.create = function(c) {
- return new C.pK(c)
- };
- C.q$ = {
- ra: function(c) {
- return 0 === c || 1 === c ? c: -0.5 * (Math.cos(Math.PI * c) - 1)
- },
- reverse: function() {
- return C.q$
- }
- };
- C.vza = function() {
- return C.q$
- };
- C.Ny = C.Zb.extend({
- md: 0.3,
- ctor: function(c, d) {
- C.Zb.prototype.ctor.call(this);
- c && this.Ba(c, d)
- },
- XVa: A("md"),
- P4a: x("md"),
- Ba: function(c, d) {
- C.Zb.prototype.Ba.call(this, c);
- this.md = d == s ? 0.3 : d;
- return q
- },
- reverse: function() {
- C.log("cc.EaseElastic.reverse(): it should be overridden in subclass.");
- return s
- },
- s: function() {
- var c = new C.Ny;
- c.Ba(this.I.s(), this.md);
- return c
- }
- });
- C.Ny.create = function(c, d) {
- return new C.Ny(c, d)
- };
- C.XD = C.Ny.extend({
- update: function(c) {
- var d = 0;
- 0 === c || 1 === c ? d = c: (d = this.md / 4, c -= 1, d = -Math.pow(2, 10 * c) * Math.sin(2 * (c - d) * Math.PI / this.md));
- this.I.update(d)
- },
- reverse: function() {
- return C.ZD.create(this.I.reverse(), this.md)
- },
- s: function() {
- var c = new C.XD;
- c.Ba(this.I.s(), this.md);
- return c
- }
- });
- C.XD.create = function(c, d) {
- return new C.XD(c, d)
- };
- C.b$ = {
- ra: function(c) {
- if (0 === c || 1 === c) return c;
- c -= 1;
- return - Math.pow(2, 10 * c) * Math.sin(2 * (c - 0.075) * Math.PI / 0.3)
- },
- reverse: function() {
- return C.c$
- }
- };
- C.qda = function(c) {
- return c && 0.3 !== c ? {
- md: c,
- ra: function(c) {
- if (0 === c || 1 === c) return c;
- c -= 1;
- return - Math.pow(2, 10 * c) * Math.sin(2 * (c - this.md / 4) * Math.PI / this.md)
- },
- reverse: function() {
- return C.sda(this.md)
- }
- }: C.b$
- };
- C.ZD = C.Ny.extend({
- update: function(c) {
- var d = 0,
- d = 0 === c || 1 == c ? c: Math.pow(2, -10 * c) * Math.sin(2 * (c - this.md / 4) * Math.PI / this.md) + 1;
- this.I.update(d)
- },
- reverse: function() {
- return C.XD.create(this.I.reverse(), this.md)
- },
- s: function() {
- var c = new C.ZD;
- c.Ba(this.I.s(), this.md);
- return c
- }
- });
- C.ZD.create = function(c, d) {
- return new C.ZD(c, d)
- };
- C.c$ = {
- ra: function(c) {
- return 0 === c || 1 === c ? c: Math.pow(2, -10 * c) * Math.sin(2 * (c - 0.075) * Math.PI / 0.3) + 1
- },
- reverse: function() {
- return C.b$
- }
- };
- C.sda = function(c) {
- return c && 0.3 !== c ? {
- md: c,
- ra: function(c) {
- return 0 === c || 1 === c ? c: Math.pow(2, -10 * c) * Math.sin(2 * (c - this.md / 4) * Math.PI / this.md) + 1
- },
- reverse: function() {
- return C.qda(this.md)
- }
- }: C.c$
- };
- C.YD = C.Ny.extend({
- update: function(c) {
- var d = 0,
- d = this.md;
- if (0 === c || 1 == c) d = c;
- else {
- d || (d = this.md = 0.3 * 1.5);
- var f = d / 4;
- c = 2 * c - 1;
- d = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin(2 * (c - f) * Math.PI / d) : 0.5 * Math.pow(2, -10 * c) * Math.sin(2 * (c - f) * Math.PI / d) + 1
- }
- this.I.update(d)
- },
- reverse: function() {
- return C.YD.create(this.I.reverse(), this.md)
- },
- s: function() {
- var c = new C.YD;
- c.Ba(this.I.s(), this.md);
- return c
- }
- });
- C.YD.create = function(c, d) {
- return new C.YD(c, d)
- };
- C.rda = function(c) {
- return {
- md: c || 0.3,
- ra: function(c) {
- var f = 0,
- f = this.md;
- if (0 === c || 1 === c) f = c;
- else {
- f || (f = this.md = 0.3 * 1.5);
- var g = f / 4;
- c = 2 * c - 1;
- f = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin(2 * (c - g) * Math.PI / f) : 0.5 * Math.pow(2, -10 * c) * Math.sin(2 * (c - g) * Math.PI / f) + 1
- }
- return f
- },
- reverse: function() {
- return C.rda(this.md)
- }
- }
- };
- C.nv = C.Zb.extend({
- Nr: function(c) {
- if (c < 1 / 2.75) return 7.5625 * c * c;
- if (c < 2 / 2.75) return c -= 1.5 / 2.75,
- 7.5625 * c * c + 0.75;
- if (c < 2.5 / 2.75) return c -= 2.25 / 2.75,
- 7.5625 * c * c + 0.9375;
- c -= 2.625 / 2.75;
- return 7.5625 * c * c + 0.984375
- },
- s: function() {
- var c = new C.nv;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.nv.create(this.I.reverse())
- }
- });
- C.nv.create = function(c) {
- return new C.nv(c)
- };
- C.OD = C.nv.extend({
- update: function(c) {
- this.I.update(1 - this.Nr(1 - c))
- },
- reverse: function() {
- return C.QD.create(this.I.reverse())
- },
- s: function() {
- var c = new C.OD;
- c.Ba(this.I.s());
- return c
- }
- });
- C.OD.create = function(c) {
- return new C.OD(c)
- };
- C.zL = function(c) {
- if (c < 1 / 2.75) return 7.5625 * c * c;
- if (c < 2 / 2.75) return c -= 1.5 / 2.75,
- 7.5625 * c * c + 0.75;
- if (c < 2.5 / 2.75) return c -= 2.25 / 2.75,
- 7.5625 * c * c + 0.9375;
- c -= 2.625 / 2.75;
- return 7.5625 * c * c + 0.984375
- };
- C.S9 = {
- ra: function(c) {
- return 1 - C.zL(1 - c)
- },
- reverse: function() {
- return C.U9
- }
- };
- C.Xya = function() {
- return C.S9
- };
- C.QD = C.nv.extend({
- update: function(c) {
- this.I.update(this.Nr(c))
- },
- reverse: function() {
- return C.OD.create(this.I.reverse())
- },
- s: function() {
- var c = new C.QD;
- c.Ba(this.I.s());
- return c
- }
- });
- C.QD.create = function(c) {
- return new C.QD(c)
- };
- C.U9 = {
- ra: function(c) {
- return C.zL(c)
- },
- reverse: function() {
- return C.S9
- }
- };
- C.Zya = function() {
- return C.U9
- };
- C.PD = C.nv.extend({
- update: function(c) {
- var d = 0,
- d = 0.5 > c ? 0.5 * (1 - this.Nr(1 - 2 * c)) : 0.5 * this.Nr(2 * c - 1) + 0.5;
- this.I.update(d)
- },
- s: function() {
- var c = new C.PD;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.PD.create(this.I.reverse())
- }
- });
- C.PD.create = function(c) {
- return new C.PD(c)
- };
- C.T9 = {
- ra: function(c) {
- return c = 0.5 > c ? 0.5 * (1 - C.zL(1 - 2 * c)) : 0.5 * C.zL(2 * c - 1) + 0.5
- },
- reverse: function() {
- return C.T9
- }
- };
- C.Yya = function() {
- return C.T9
- };
- C.KD = C.Zb.extend({
- update: function(c) {
- this.I.update(0 === c || 1 == c ? c: c * c * (2.70158 * c - 1.70158))
- },
- reverse: function() {
- return C.MD.create(this.I.reverse())
- },
- s: function() {
- var c = new C.KD;
- c.Ba(this.I.s());
- return c
- }
- });
- C.KD.create = function(c) {
- return new C.KD(c)
- };
- C.P9 = {
- ra: function(c) {
- return 0 === c || 1 === c ? c: c * c * (2.70158 * c - 1.70158)
- },
- reverse: function() {
- return C.R9
- }
- };
- C.Tya = function() {
- return C.P9
- };
- C.MD = C.Zb.extend({
- update: function(c) {
- c -= 1;
- this.I.update(c * c * (2.70158 * c + 1.70158) + 1)
- },
- reverse: function() {
- return C.KD.create(this.I.reverse())
- },
- s: function() {
- var c = new C.MD;
- c.Ba(this.I.s());
- return c
- }
- });
- C.MD.create = function(c) {
- return new C.MD(c)
- };
- C.R9 = {
- ra: function(c) {
- c -= 1;
- return c * c * (2.70158 * c + 1.70158) + 1
- },
- reverse: function() {
- return C.P9
- }
- };
- C.Vya = function() {
- return C.R9
- };
- C.LD = C.Zb.extend({
- update: function(c) {
- c *= 2;
- 1 > c ? this.I.update(c * c * (3.5949095 * c - 2.5949095) / 2) : (c -= 2, this.I.update(c * c * (3.5949095 * c + 2.5949095) / 2 + 1))
- },
- s: function() {
- var c = new C.LD;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.LD.create(this.I.reverse())
- }
- });
- C.LD.create = function(c) {
- return new C.LD(c)
- };
- C.Q9 = {
- ra: function(c) {
- c *= 2;
- if (1 > c) return c * c * (3.5949095 * c - 2.5949095) / 2;
- c -= 2;
- return c * c * (3.5949095 * c + 2.5949095) / 2 + 1
- },
- reverse: function() {
- return C.Q9
- }
- };
- C.Uya = function() {
- return C.Q9
- };
- C.ND = C.Zb.extend({
- vN: s,
- wN: s,
- xN: s,
- yN: s,
- ctor: function(c) {
- C.Zb.prototype.ctor.call(this, c)
- },
- jb: function(c, d, f, g, h) {
- return Math.pow(1 - h, 3) * c + 3 * h * Math.pow(1 - h, 2) * d + 3 * Math.pow(h, 2) * (1 - h) * f + Math.pow(h, 3) * g
- },
- update: function(c) {
- this.I.update(this.jb(this.vN, this.wN, this.xN, this.yN, c))
- },
- s: function() {
- var c = new C.ND;
- c.Ba(this.I.s());
- c.kha(this.vN, this.wN, this.xN, this.yN);
- return c
- },
- reverse: function() {
- var c = C.ND.create(this.I.reverse());
- c.kha(this.yN, this.xN, this.wN, this.vN);
- return c
- },
- kha: function(c, d, f, g) {
- this.vN = c || 0;
- this.wN = d || 0;
- this.xN = f || 0;
- this.yN = g || 0
- }
- });
- C.ND.create = function(c) {
- return new C.ND(c)
- };
- C.Wya = function(c, d, f, g) {
- return {
- ra: function(h) {
- return C.ND.prototype.jb(c, d, f, g, h)
- },
- reverse: function() {
- return C.Wya(g, f, d, c)
- }
- }
- };
- C.aE = C.Zb.extend({
- jb: function(c) {
- return Math.pow(c, 2)
- },
- update: function(c) {
- this.I.update(this.jb(c))
- },
- s: function() {
- var c = new C.aE;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.aE.create(this.I.reverse())
- }
- });
- C.aE.create = function(c) {
- return new C.aE(c)
- };
- C.g$ = {
- ra: C.aE.prototype.jb,
- reverse: function() {
- return C.g$
- }
- };
- C.lza = function() {
- return C.g$
- };
- C.cE = C.Zb.extend({
- jb: function(c) {
- return - c * (c - 2)
- },
- update: function(c) {
- this.I.update(this.jb(c))
- },
- s: function() {
- var c = new C.cE;
- c.Ba();
- return c
- },
- reverse: function() {
- return C.cE.create(this.I.reverse())
- }
- });
- C.cE.create = function(c) {
- return new C.cE(c)
- };
- C.i$ = {
- ra: C.cE.prototype.jb,
- reverse: function() {
- return C.i$
- }
- };
- C.nza = function() {
- return C.i$
- };
- C.bE = C.Zb.extend({
- jb: function(c) {
- var d = c;
- c *= 2;
- 1 > c ? d = 0.5 * c * c: (--c, d = -0.5 * (c * (c - 2) - 1));
- return d
- },
- update: function(c) {
- this.I.update(this.jb(c))
- },
- s: function() {
- var c = new C.bE;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.bE.create(this.I.reverse())
- }
- });
- C.bE.create = function(c) {
- return new C.bE(c)
- };
- C.h$ = {
- ra: C.bE.prototype.jb,
- reverse: function() {
- return C.h$
- }
- };
- C.mza = function() {
- return C.h$
- };
- C.dE = C.Zb.extend({
- jb: function(c) {
- return c * c * c * c
- },
- update: function(c) {
- this.I.update(this.jb(c))
- },
- s: function() {
- var c = new C.dE;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.dE.create(this.I.reverse())
- }
- });
- C.dE.create = function(c) {
- return new C.dE(c)
- };
- C.j$ = {
- ra: C.dE.prototype.jb,
- reverse: function() {
- return C.j$
- }
- };
- C.oza = function() {
- return C.j$
- };
- C.fE = C.Zb.extend({
- jb: function(c) {
- c -= 1;
- return - (c * c * c * c - 1)
- },
- update: function(c) {
- this.I.update(this.jb(c))
- },
- s: function() {
- var c = new C.fE;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.fE.create(this.I.reverse())
- }
- });
- C.fE.create = function(c) {
- return new C.fE(c)
- };
- C.l$ = {
- ra: C.fE.prototype.jb,
- reverse: function() {
- return C.l$
- }
- };
- C.qza = function() {
- return C.l$
- };
- C.eE = C.Zb.extend({
- jb: function(c) {
- c *= 2;
- if (1 > c) return 0.5 * c * c * c * c;
- c -= 2;
- return - 0.5 * (c * c * c * c - 2)
- },
- update: function(c) {
- this.I.update(this.jb(c))
- },
- s: function() {
- var c = new C.eE;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.eE.create(this.I.reverse())
- }
- });
- C.eE.create = function(c) {
- return new C.eE(c)
- };
- C.k$ = {
- ra: C.eE.prototype.jb,
- reverse: function() {
- return C.k$
- }
- };
- C.pza = function() {
- return C.k$
- };
- C.gE = C.Zb.extend({
- jb: function(c) {
- return c * c * c * c * c
- },
- update: function(c) {
- this.I.update(this.jb(c))
- },
- s: function() {
- var c = new C.gE;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.gE.create(this.I.reverse())
- }
- });
- C.gE.create = function(c) {
- return new C.gE(c)
- };
- C.m$ = {
- ra: C.gE.prototype.jb,
- reverse: function() {
- return C.m$
- }
- };
- C.rza = function() {
- return C.m$
- };
- C.iE = C.Zb.extend({
- jb: function(c) {
- c -= 1;
- return c * c * c * c * c + 1
- },
- update: function(c) {
- this.I.update(this.jb(c))
- },
- s: function() {
- var c = new C.iE;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.iE.create(this.I.reverse())
- }
- });
- C.iE.create = function(c) {
- return new C.iE(c)
- };
- C.o$ = {
- ra: C.iE.prototype.jb,
- reverse: function() {
- return C.o$
- }
- };
- C.tza = function() {
- return C.o$
- };
- C.hE = C.Zb.extend({
- jb: function(c) {
- c *= 2;
- if (1 > c) return 0.5 * c * c * c * c * c;
- c -= 2;
- return 0.5 * (c * c * c * c * c + 2)
- },
- update: function(c) {
- this.I.update(this.jb(c))
- },
- s: function() {
- var c = new C.hE;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.hE.create(this.I.reverse())
- }
- });
- C.hE.create = function(c) {
- return new C.hE(c)
- };
- C.n$ = {
- ra: C.hE.prototype.jb,
- reverse: function() {
- return C.n$
- }
- };
- C.sza = function() {
- return C.n$
- };
- C.RD = C.Zb.extend({
- jb: function(c) {
- return - 1 * (Math.sqrt(1 - c * c) - 1)
- },
- update: function(c) {
- this.I.update(this.jb(c))
- },
- s: function() {
- var c = new C.RD;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.RD.create(this.I.reverse())
- }
- });
- C.RD.create = function(c) {
- return new C.RD(c)
- };
- C.V9 = {
- ra: C.RD.prototype.jb,
- reverse: function() {
- return C.V9
- }
- };
- C.$ya = function() {
- return C.V9
- };
- C.TD = C.Zb.extend({
- jb: function(c) {
- c -= 1;
- return Math.sqrt(1 - c * c)
- },
- update: function(c) {
- this.I.update(this.jb(c))
- },
- s: function() {
- var c = new C.TD;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.TD.create(this.I.reverse())
- }
- });
- C.TD.create = function(c) {
- return new C.TD(c)
- };
- C.X9 = {
- ra: C.TD.prototype.jb,
- reverse: function() {
- return C.X9
- }
- };
- C.bza = function() {
- return C.X9
- };
- C.SD = C.Zb.extend({
- jb: function(c) {
- c *= 2;
- if (1 > c) return - 0.5 * (Math.sqrt(1 - c * c) - 1);
- c -= 2;
- return 0.5 * (Math.sqrt(1 - c * c) + 1)
- },
- update: function(c) {
- this.I.update(this.jb(c))
- },
- s: function() {
- var c = new C.SD;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.SD.create(this.I.reverse())
- }
- });
- C.SD.create = function(c) {
- return new C.SD(c)
- };
- C.W9 = {
- ra: C.SD.prototype.jb,
- reverse: function() {
- return C.W9
- }
- };
- C.aza = function() {
- return C.W9
- };
- C.UD = C.Zb.extend({
- jb: function(c) {
- return c * c * c
- },
- update: function(c) {
- this.I.update(this.jb(c))
- },
- s: function() {
- var c = new C.UD;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.UD.create(this.I.reverse())
- }
- });
- C.UD.create = function(c) {
- return new C.UD(c)
- };
- C.Y9 = {
- ra: C.UD.prototype.jb,
- reverse: function() {
- return C.Y9
- }
- };
- C.cza = function() {
- return C.Y9
- };
- C.WD = C.Zb.extend({
- jb: function(c) {
- c -= 1;
- return c * c * c + 1
- },
- update: function(c) {
- this.I.update(this.jb(c))
- },
- s: function() {
- var c = new C.WD;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.WD.create(this.I.reverse())
- }
- });
- C.WD.create = function(c) {
- return new C.WD(c)
- };
- C.a$ = {
- ra: C.WD.prototype.jb,
- reverse: function() {
- return C.a$
- }
- };
- C.eza = function() {
- return C.a$
- };
- C.VD = C.Zb.extend({
- jb: function(c) {
- c *= 2;
- if (1 > c) return 0.5 * c * c * c;
- c -= 2;
- return 0.5 * (c * c * c + 2)
- },
- update: function(c) {
- this.I.update(this.jb(c))
- },
- s: function() {
- var c = new C.VD;
- c.Ba(this.I.s());
- return c
- },
- reverse: function() {
- return C.VD.create(this.I.reverse())
- }
- });
- C.VD.create = function(c) {
- return new C.VD(c)
- };
- C.Z9 = {
- ra: C.VD.prototype.jb,
- reverse: function() {
- return C.Z9
- }
- };
- C.dza = function() {
- return C.Z9
- };
- C.q_ = function(c, d, f, g, h, k) {
- var n = k * k,
- p = n * k,
- r = (1 - h) / 2;
- h = r * ( - p + 2 * n - k);
- var v = r * ( - p + n) + (2 * p - 3 * n + 1);
- k = r * (p - 2 * n + k) + ( - 2 * p + 3 * n);
- n = r * (p - n);
- return C.d(c.x * h + d.x * v + f.x * k + g.x * n, c.y * h + d.y * v + f.y * k + g.y * n)
- };
- C.bha = function(c) {
- for (var d = [], f = c.length - 1; 0 <= f; f--) d.push(C.d(c[f].x, c[f].y));
- return d
- };
- C.hP = function(c) {
- for (var d = [], f = 0; f < c.length; f++) d.push(C.d(c[f].x, c[f].y));
- return d
- };
- C.og = function(c, d) {
- var f = Math.min(c.length - 1, Math.max(d, 0));
- return c[f]
- };
- C.F2a = function(c) {
- for (var d = c.length,
- f = 0 | d / 2,
- g = 0; g < f; ++g) {
- var h = c[g];
- c[g] = c[d - g - 1];
- c[d - g - 1] = h
- }
- };
- C.Xm = C.N.extend({
- yn: s,
- I9: 0,
- fB: 0,
- Ff: s,
- W8: s,
- ctor: function(c, d, f) {
- C.N.prototype.ctor.call(this);
- this.yn = [];
- f !== m && this.k(c, d, f)
- },
- k: function(c, d, f) { (!d || 0 == d.length) && e("Invalid configuration. It must at least have one control point");
- return C.N.prototype.k.call(this, c) ? (this.WHa(d), this.fB = f, q) : t
- },
- s: function() {
- var c = new C.Xm;
- c.k(this.D, C.hP(this.yn), this.fB);
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- this.I9 = 1 / (this.yn.length - 1);
- this.Ff = C.d(this.target.Rc(), this.target.Vd());
- this.W8 = C.d(0, 0)
- },
- update: function(c) {
- c = this.Bg(c);
- var d, f = this.yn;
- if (1 == c) d = f.length - 1,
- c = 1;
- else {
- var g = this.I9;
- d = 0 | c / g;
- c = (c - g * d) / g
- }
- d = C.q_(C.og(f, d - 1), C.og(f, d - 0), C.og(f, d + 1), C.og(f, d + 2), this.fB, c);
- if (C.iK && (f = this.target.Rc() - this.Ff.x, c = this.target.Vd() - this.Ff.y, 0 != f || 0 != c)) g = this.W8,
- f = g.x + f,
- c = g.y + c,
- g.x = f,
- g.y = c,
- d.x += f,
- d.y += c;
- this.jja(d)
- },
- reverse: function() {
- var c = C.bha(this.yn);
- return C.Xm.create(this.D, c, this.fB)
- },
- jja: function(c) {
- this.target.p(c);
- this.Ff = c
- },
- ZVa: A("yn"),
- WHa: x("yn")
- });
- C.Xm.create = function(c, d, f) {
- return new C.Xm(c, d, f)
- };
- C.kv = C.Xm.extend({
- of: s,
- ctor: function(c, d, f) {
- C.Xm.prototype.ctor.call(this);
- this.of = C.d(0, 0);
- f !== m && this.k(c, d, f)
- },
- R: function(c) {
- C.Xm.prototype.R.call(this, c);
- this.of.x = c.Rc();
- this.of.y = c.Vd()
- },
- reverse: function() {
- for (var c = this.yn.slice(), d, f = c[0], g = 1; g < c.length; ++g) d = c[g],
- c[g] = C.cc(d, f),
- f = d;
- c = C.bha(c);
- f = c[c.length - 1];
- c.pop();
- f.x = -f.x;
- f.y = -f.y;
- c.unshift(f);
- for (g = 1; g < c.length; ++g) d = c[g],
- d.x = -d.x,
- d.y = -d.y,
- d.x += f.x,
- d.y += f.y,
- f = c[g] = d;
- return C.kv.create(this.D, c, this.fB)
- },
- jja: function(c) {
- var d = this.of,
- f = c.x + d.x;
- c = c.y + d.y;
- this.Ff.x = f;
- this.Ff.y = c;
- this.target.p(f, c)
- },
- s: function() {
- var c = new C.kv;
- c.k(this.D, C.hP(this.yn), this.fB);
- return c
- }
- });
- C.kv.create = function(c, d, f) {
- return new C.kv(c, d, f)
- };
- C.ZJ = C.Xm.extend({
- ctor: function(c, d) {
- d && this.k(c, d)
- },
- k: function(c, d) {
- return C.Xm.prototype.k.call(this, c, d, 0.5)
- },
- s: function() {
- var c = new C.ZJ;
- c.k(this.D, C.hP(this.yn));
- return c
- }
- });
- C.ZJ.create = function(c, d) {
- return new C.ZJ(c, d)
- };
- C.YJ = C.kv.extend({
- ctor: function(c, d) {
- C.kv.prototype.ctor.call(this);
- d && this.k(c, d)
- },
- k: function(c, d) {
- return C.Xm.prototype.k.call(this, c, d, 0.5)
- },
- s: function() {
- var c = new C.YJ;
- c.k(this.D, C.hP(this.yn));
- return c
- }
- });
- C.YJ.create = function(c, d) {
- return new C.YJ(c, d)
- };
- C.pKa = C.O.extend({
- Z3: u()
- });
- C.fv = C.N.extend({
- key: "",
- wP: 0,
- BJ: 0,
- JB: 0,
- ctor: function(c, d, f, g) {
- C.N.prototype.ctor.call(this);
- this.key = "";
- g !== m && this.k(c, d, f, g)
- },
- k: function(c, d, f, g) {
- return C.N.prototype.k.call(this, c) ? (this.key = d, this.BJ = g, this.wP = f, q) : t
- },
- R: function(c) { (!c || !c.Z3) && e("cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function");
- C.N.prototype.R.call(this, c);
- this.JB = this.BJ - this.wP
- },
- update: function(c) {
- this.target.Z3(this.BJ - this.JB * (1 - c), this.key)
- },
- reverse: function() {
- return C.fv.create(this.duration, this.key, this.BJ, this.wP)
- },
- s: function() {
- var c = new C.fv;
- c.k(this.D, this.key, this.wP, this.BJ);
- return c
- }
- });
- C.fv.create = function(c, d, f, g) {
- var h = new C.fv;
- return h.k(c, d, f, g) ? h: s
- };
- C.action = C.xg.create;
- C.speed = C.AE.create;
- C.ySa = C.tK.create;
- C.H0a = C.bi.create;
- C.JQa = C.Xm.create;
- C.IQa = C.kv.create;
- C.LQa = C.ZJ.create;
- C.KQa = C.YJ.create;
- C.show = C.Fj.create;
- C.JXa = C.Fl.create;
- C.x6a = C.JE.create;
- C.n2a = C.tE.create;
- C.Ada = C.lE.create;
- C.Bda = C.mE.create;
- C.e1a = C.EK.create;
- C.EQa = C.Jc.create;
- C.OPa = C.N.create;
- C.j3a = C.La.create;
- C.repeat = C.uE.create;
- C.cR = C.vE.create;
- C.U5a = C.ci.create;
- C.L2a = C.wE.create;
- C.K2a = C.Ds.create;
- C.moveBy = C.Dk.create;
- C.moveTo = C.Bs.create;
- C.T5a = C.rq.create;
- C.S5a = C.zE.create;
- C.RYa = C.Ao.create;
- C.SYa = C.uK.create;
- C.yQa = C.vs.create;
- C.zQa = C.QJ.create;
- C.Q2a = C.ae.create;
- C.P2a = C.Av.create;
- C.blink = C.yD.create;
- C.uSa = C.xo.create;
- C.sSa = C.Ry.create;
- C.tSa = C.Sy.create;
- C.v6a = C.ez.create;
- C.u6a = C.IE.create;
- C.rRa = C.fd.create;
- C.G2a = C.zv.create;
- C.oQa = C.uD.create;
- C.l6a = C.XK.create;
- C.PPa = C.fv.create;
- C.pe = C.N.extend({
- ua: s,
- ctor: function(c, d) {
- C.LV();
- C.N.prototype.ctor.call(this);
- this.ua = C.size(0, 0);
- d && this.k(c, d)
- },
- s: function() {
- var c = new C.pe,
- d = this.ua;
- c.k(this.D, C.size(d.width, d.height));
- return c
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- var d = this.NH(),
- f = this.target; (c = f.grid) && 0 < c.pp ? (d = c.CAa(), c.zi() && (d.width == this.ua.width && d.height == this.ua.height) && c.gR()) : (c && c.zi() && c.setActive(t), f.grid = d, f.grid.setActive(q))
- },
- reverse: function() {
- return C.zv.create(this)
- },
- k: function(c, d) {
- return C.N.prototype.k.call(this, c) ? (this.ua.width = d.width, this.ua.height = d.height, q) : t
- },
- NH: function() {
- C.log("cc.GridAction.getGrid(): it should be overridden in subclass.")
- }
- });
- C.pe.create = function(c, d) {
- return new C.pe(c, d)
- };
- C.Vf = C.pe.extend({
- NH: function() {
- return C.iT.create(this.ua)
- },
- uja: function(c) {
- return this.target.grid.uja(c)
- },
- uf: function(c) {
- return this.target.grid.uf(c)
- },
- wh: function(c, d) {
- this.target.grid.wh(c, d)
- }
- });
- C.Vf.create = function(c, d) {
- return new C.Vf(c, d)
- };
- C.Ie = C.pe.extend({
- Xia: function(c) {
- return this.target.grid.Xia(c)
- },
- sl: function(c) {
- return this.target.grid.sl(c)
- },
- Aj: function(c, d) {
- this.target.grid.Aj(c, d)
- },
- NH: function() {
- return C.yU.create(this.ua)
- }
- });
- C.Ie.create = function(c, d) {
- return new C.Ie(c, d)
- };
- C.Bv = C.yh.extend({
- R: function(c) {
- C.yh.prototype.R.call(this, c); (c = this.target.grid) && c.zi() && c.setActive(t)
- }
- });
- C.Bv.create = function() {
- return new C.Bv
- };
- C.y7 = C.yh.extend({
- ke: s,
- ctor: function(c) {
- C.yh.prototype.ctor.call(this);
- c !== m && this.aDa(c)
- },
- aDa: function(c) {
- this.ke = c;
- return q
- },
- R: function(c) {
- C.yh.prototype.R.call(this, c);
- this.target.grid && this.target.grid.zi() && this.target.grid.gIa(this.target.grid.pp + this.ke)
- }
- });
- C.y7.create = function(c) {
- return new C.y7(c)
- };
- C.L8 = C.Vf.extend({
- ak: 0,
- kc: 0,
- lc: 0,
- ctor: function(c, d, f, g) {
- C.pe.prototype.ctor.call(this);
- g !== m && this.k(c, d, f, g)
- },
- VB: A("kc"),
- RC: x("kc"),
- Fx: A("lc"),
- fy: x("lc"),
- k: function(c, d, f, g) {
- return C.Vf.prototype.k.call(this, c, d) ? (this.ak = f, this.kc = g, this.lc = 1, q) : t
- },
- update: function(c) {
- for (var d = this.ua,
- f = this.kc,
- g = C.d(0, 0), h = this.lc, k = this.ak, n = 0; n < d.width + 1; ++n) for (var p = 0; p < d.height + 1; ++p) {
- g.x = n;
- g.y = p;
- var r = this.uf(g);
- r.f += Math.sin(2 * Math.PI * c * k + 0.01 * (r.y + r.x)) * f * h;
- this.wh(g, r)
- }
- }
- });
- C.L8.create = function(c, d, f, g) {
- return new C.L8(c, d, f, g)
- };
- C.gT = C.Vf.extend({
- ctor: function(c) {
- c !== m ? C.pe.prototype.ctor.call(this, c, C.size(1, 1)) : C.pe.prototype.ctor.call(this)
- },
- k: function(c) {
- return C.Vf.prototype.k.call(this, c, C.size(1, 1))
- },
- Mp: function(c, d) {
- return 1 != c.width || 1 != c.height ? (C.log("Grid size must be (1,1)"), t) : C.Vf.prototype.k.call(this, d, c)
- },
- update: function(c) {
- var d = Math.PI * c;
- c = Math.sin(d);
- var f = Math.cos(d / 2),
- d = new C.re,
- g = C.d(0, 0);
- g.x = g.y = 1;
- var h = this.uf(g);
- g.x = g.y = 0;
- var g = this.uf(g),
- k = h.x,
- n = g.x,
- p,
- r;
- k > n ? (h = C.d(0, 0), g = C.d(0, 1), p = C.d(1, 0), r = C.d(1, 1)) : (p = C.d(0, 0), r = C.d(0, 1), h = C.d(1, 0), g = C.d(1, 1), k = n);
- d.x = k - k * f;
- d.f = Math.abs(parseFloat(k * c / 4));
- c = this.uf(h);
- c.x = d.x;
- c.f += d.f;
- this.wh(h, c);
- c = this.uf(g);
- c.x = d.x;
- c.f += d.f;
- this.wh(g, c);
- c = this.uf(p);
- c.x -= d.x;
- c.f -= d.f;
- this.wh(p, c);
- c = this.uf(r);
- c.x -= d.x;
- c.f -= d.f;
- this.wh(r, c)
- }
- });
- C.gT.create = function(c) {
- return new C.gT(c)
- };
- C.V5 = C.gT.extend({
- ctor: function(c) {
- c !== m ? C.pe.prototype.ctor.call(this, c, C.size(1, 1)) : C.pe.prototype.ctor.call(this)
- },
- update: function(c) {
- var d = Math.PI * c;
- c = Math.sin(d);
- var f = Math.cos(d / 2),
- d = new C.re,
- g = C.d(0, 0);
- g.x = g.y = 1;
- var h = this.uf(g);
- g.x = g.y = 0;
- var g = this.uf(g),
- k = h.y,
- n = g.y,
- p,
- r;
- k > n ? (h = C.d(0, 0), g = C.d(0, 1), p = C.d(1, 0), r = C.d(1, 1)) : (g = C.d(0, 0), h = C.d(0, 1), r = C.d(1, 0), p = C.d(1, 1), k = n);
- d.y = k - k * f;
- d.f = Math.abs(parseFloat(k * c) / 4);
- c = this.uf(h);
- c.y = d.y;
- c.f += d.f;
- this.wh(h, c);
- c = this.uf(g);
- c.y -= d.y;
- c.f -= d.f;
- this.wh(g, c);
- c = this.uf(p);
- c.y = d.y;
- c.f += d.f;
- this.wh(p, c);
- c = this.uf(r);
- c.y -= d.y;
- c.f -= d.f;
- this.wh(r, c)
- }
- });
- C.V5.create = function(c) {
- return new C.V5(c)
- };
- C.w6 = C.Vf.extend({
- ma: s,
- Ui: 0,
- ZM: 0,
- vra: t,
- Ac: t,
- ctor: function(c, d, f, g) {
- C.pe.prototype.ctor.call(this);
- this.ma = C.d(0, 0);
- g !== m && this.k(c, d, f, g)
- },
- fVa: A("ZM"),
- u4a: x("ZM"),
- I3a: x("vra"),
- Ld: A("ma"),
- p: function(c) {
- C.b2(c, this.ma) || (this.ma.x = c.x, this.ma.y = c.y, this.Ac = q)
- },
- k: function(c, d, f, g) {
- return C.Vf.prototype.k.call(this, c, d) ? (this.p(f), this.Ui = g, this.ZM = 0.7, this.Ac = q) : t
- },
- update: function() {
- if (this.Ac) {
- for (var c = this.ua.width,
- d = this.ua.height,
- f = this.Ui,
- g = this.ZM,
- h = C.d(0, 0), k = C.d(0, 0), n, p, r, v = 0; v < c + 1; ++v) for (var y = 0; y < d + 1; ++y) h.x = v,
- h.y = y,
- n = this.uf(h),
- k.x = this.ma.x - n.x,
- k.y = this.ma.y - n.y,
- p = C.Ye(k),
- p < f && (p = f - p, p /= f, 0 == p && (p = 0.0010), p = Math.log(p) * g, r = Math.exp(p) * f, p = C.Ye(k), 0 < p && (k.x /= p, k.y /= p, k.x *= r, k.y *= r, n.f += C.Ye(k) * g)),
- this.wh(h, n);
- this.Ac = t
- }
- }
- });
- C.w6.create = function(c, d, f, g) {
- return new C.w6(c, d, f, g)
- };
- C.z7 = C.Vf.extend({
- ma: s,
- Ui: 0,
- ak: 0,
- kc: 0,
- lc: 0,
- ctor: function(c, d, f, g, h, k) {
- C.pe.prototype.ctor.call(this);
- this.ma = C.d(0, 0);
- k !== m && this.k(c, d, f, g, h, k)
- },
- Ld: A("ma"),
- p: function(c) {
- this.ma.x = c.x;
- this.ma.y = c.y
- },
- VB: A("kc"),
- RC: x("kc"),
- Fx: A("lc"),
- fy: x("lc"),
- k: function(c, d, f, g, h, k) {
- return C.Vf.prototype.k.call(this, c, d) ? (this.p(f), this.Ui = g, this.ak = h, this.kc = k, this.lc = 1, q) : t
- },
- update: function(c) {
- for (var d = this.ua.width,
- f = this.ua.height,
- g = C.d(0, 0), h = this.Ui, k = this.ak, n = this.kc, p = this.lc, r, v, y = C.d(0, 0), z = 0; z < d + 1; ++z) for (var D = 0; D < f + 1; ++D) g.x = z,
- g.y = D,
- r = this.uf(g),
- y.x = this.ma.x - r.x,
- y.y = this.ma.y - r.y,
- v = C.Ye(y),
- v < h && (v = h - v, r.f += Math.sin(2 * c * Math.PI * k + 0.1 * v) * n * p * Math.pow(v / h, 2)),
- this.wh(g, r)
- }
- });
- C.z7.create = function(c, d, f, g, h, k) {
- return new C.z7(c, d, f, g, h, k)
- };
- C.H7 = C.Vf.extend({
- Qt: 0,
- FG: t,
- ctor: function(c, d, f, g) {
- C.pe.prototype.ctor.call(this);
- g !== m && this.k(c, d, f, g)
- },
- k: function(c, d, f, g) {
- return C.Vf.prototype.k.call(this, c, d) ? (this.Qt = f, this.FG = g, q) : t
- },
- update: function() {
- for (var c = this.ua.width,
- d = this.ua.height,
- f = this.Qt,
- g = this.FG,
- h = C.d(0, 0), k, n = 0; n < c + 1; ++n) for (var p = 0; p < d + 1; ++p) h.x = n,
- h.y = p,
- k = this.uf(h),
- k.x += C.dd() % (2 * f) - f,
- k.y += C.dd() % (2 * f) - f,
- g && (k.f += C.dd() % (2 * f) - f),
- this.wh(h, k)
- }
- });
- C.H7.create = function(c, d, f, g) {
- return new C.H7(c, d, f, g)
- };
- C.x6 = C.Vf.extend({
- ak: 0,
- kc: 0,
- lc: 0,
- ctor: function(c, d, f, g) {
- C.pe.prototype.ctor.call(this);
- g !== m && this.k(c, d, f, g)
- },
- VB: A("kc"),
- RC: x("kc"),
- Fx: A("lc"),
- fy: x("lc"),
- k: function(c, d, f, g) {
- return C.Vf.prototype.k.call(this, c, d) ? (this.ak = f, this.kc = g, this.lc = 1, q) : t
- },
- update: function(c) {
- for (var d = this.ua.width,
- f = this.ua.height,
- g = C.d(0, 0), h = this.ak, k = this.kc, n = this.lc, p, r = 1; r < d; ++r) for (var v = 1; v < f; ++v) g.x = r,
- g.y = v,
- p = this.uf(g),
- p.x += Math.sin(2 * c * Math.PI * h + 0.01 * p.x) * k * n,
- p.y += Math.sin(2 * c * Math.PI * h + 0.01 * p.y) * k * n,
- this.wh(g, p)
- }
- });
- C.x6.create = function(c, d, f, g) {
- return new C.x6(c, d, f, g)
- };
- C.K8 = C.Vf.extend({
- ak: 0,
- kc: 0,
- lc: 0,
- jca: t,
- Z$: t,
- ctor: function(c, d, f, g, h, k) {
- C.pe.prototype.ctor.call(this);
- k !== m && this.k(c, d, f, g, h, k)
- },
- VB: A("kc"),
- RC: x("kc"),
- Fx: A("lc"),
- fy: x("lc"),
- k: function(c, d, f, g, h, k) {
- return C.Vf.prototype.k.call(this, c, d) ? (this.ak = f, this.kc = g, this.lc = 1, this.Z$ = h, this.jca = k, q) : t
- },
- update: function(c) {
- for (var d = this.ua.width,
- f = this.ua.height,
- g = C.d(0, 0), h = this.jca, k = this.Z$, n = this.ak, p = this.kc, r = this.lc, v, y = 0; y < d + 1; ++y) for (var z = 0; z < f + 1; ++z) g.x = y,
- g.y = z,
- v = this.uf(g),
- h && (v.x += Math.sin(2 * c * Math.PI * n + 0.01 * v.y) * p * r),
- k && (v.y += Math.sin(2 * c * Math.PI * n + 0.01 * v.x) * p * r),
- this.wh(g, v)
- }
- });
- C.K8.create = function(c, d, f, g, h, k) {
- return new C.K8(c, d, f, g, h, k)
- };
- C.F8 = C.Vf.extend({
- ma: s,
- Wba: 0,
- kc: 0,
- lc: 0,
- ctor: function(c, d, f, g, h) {
- C.pe.prototype.ctor.call(this);
- this.ma = C.d(0, 0);
- h !== m && this.k(c, d, f, g, h)
- },
- Ld: A("ma"),
- p: function(c) {
- this.ma.x = c.x;
- this.ma.y = c.y
- },
- VB: A("kc"),
- RC: x("kc"),
- Fx: A("lc"),
- fy: x("lc"),
- k: function(c, d, f, g, h) {
- return C.Vf.prototype.k.call(this, c, d) ? (this.p(f), this.Wba = g, this.kc = h, this.lc = 1, q) : t
- },
- update: function(c) {
- for (var d = this.ma,
- f = this.ua.width,
- g = this.ua.height,
- h = C.d(0, 0), k = 0.1 * this.kc * this.lc, n = this.Wba, p, r, v, y = C.d(0, 0), z = 0; z < f + 1; ++z) for (var D = 0; D < g + 1; ++D) h.x = z,
- h.y = D,
- p = this.uf(h),
- y.x = z - f / 2,
- y.y = D - g / 2,
- r = C.Ye(y) * Math.cos(Math.PI / 2 + 2 * c * Math.PI * n) * k,
- v = Math.sin(r) * (p.y - d.y) + Math.cos(r) * (p.x - d.x),
- r = Math.cos(r) * (p.y - d.y) - Math.sin(r) * (p.x - d.x),
- p.x = d.x + v,
- p.y = d.y + r,
- this.wh(h, p)
- }
- });
- C.F8.create = function(c, d, f, g, h) {
- return new C.F8(c, d, f, g, h)
- };
- C.I7 = C.Ie.extend({
- Qt: 0,
- FG: t,
- ctor: function(c, d, f, g) {
- C.pe.prototype.ctor.call(this);
- g !== m && this.k(c, d, f, g)
- },
- k: function(c, d, f, g) {
- return C.Ie.prototype.k.call(this, c, d) ? (this.Qt = f, this.FG = g, q) : t
- },
- update: function() {
- for (var c = this.ua,
- d = this.Qt,
- f = C.d(0, 0), g = 0; g < c.width; ++g) for (var h = 0; h < c.height; ++h) {
- f.x = g;
- f.y = h;
- var k = this.sl(f);
- k.T.x += C.dd() % (2 * d) - d;
- k.Y.x += C.dd() % (2 * d) - d;
- k.X.x += C.dd() % (2 * d) - d;
- k.V.x += C.dd() % (2 * d) - d;
- k.T.y += C.dd() % (2 * d) - d;
- k.Y.y += C.dd() % (2 * d) - d;
- k.X.y += C.dd() % (2 * d) - d;
- k.V.y += C.dd() % (2 * d) - d;
- this.FG && (k.T.f += C.dd() % (2 * d) - d, k.Y.f += C.dd() % (2 * d) - d, k.X.f += C.dd() % (2 * d) - d, k.V.f += C.dd() % (2 * d) - d);
- this.Aj(f, k)
- }
- }
- });
- C.I7.create = function(c, d, f, g) {
- return new C.I7(c, d, f, g)
- };
- C.J7 = C.Ie.extend({
- Qt: 0,
- IX: t,
- Eba: t,
- ctor: function(c, d, f, g) {
- C.pe.prototype.ctor.call(this);
- g !== m && this.k(c, d, f, g)
- },
- k: function(c, d, f, g) {
- return C.Ie.prototype.k.call(this, c, d) ? (this.IX = t, this.Qt = f, this.Eba = g, q) : t
- },
- update: function() {
- if (this.IX === t) {
- for (var c = this.ua,
- d = this.Qt,
- f, g = C.d(0, 0), h = 0; h < c.width; ++h) for (var k = 0; k < c.height; ++k) g.x = h,
- g.y = k,
- f = this.sl(g),
- f.T.x += C.dd() % (2 * d) - d,
- f.Y.x += C.dd() % (2 * d) - d,
- f.X.x += C.dd() % (2 * d) - d,
- f.V.x += C.dd() % (2 * d) - d,
- f.T.y += C.dd() % (2 * d) - d,
- f.Y.y += C.dd() % (2 * d) - d,
- f.X.y += C.dd() % (2 * d) - d,
- f.V.y += C.dd() % (2 * d) - d,
- this.Eba && (f.T.f += C.dd() % (2 * d) - d, f.Y.f += C.dd() % (2 * d) - d, f.X.f += C.dd() % (2 * d) - d, f.V.f += C.dd() % (2 * d) - d),
- this.Aj(g, f);
- this.IX = q
- }
- }
- });
- C.J7.create = function(c, d, f, g) {
- return new C.J7(c, d, f, g)
- };
- function na() {
- this.position = C.d(0, 0);
- this.TIa = C.d(0, 0);
- this.JB = C.d(0, 0)
- }
- C.K7 = C.Ie.extend({
- wY: 0,
- Cr: 0,
- up: s,
- $i: s,
- ctor: function(c, d, f) {
- C.pe.prototype.ctor.call(this);
- this.up = [];
- this.$i = [];
- f !== m && this.k(c, d, f)
- },
- k: function(c, d, f) {
- return C.Ie.prototype.k.call(this, c, d) ? (this.wY = f, this.up.length = 0, this.$i.length = 0, q) : t
- },
- A3: function(c, d) {
- for (var f = d - 1; 0 <= f; f--) {
- var g = 0 | C.dd() % (f + 1),
- h = c[f];
- c[f] = c[g];
- c[g] = h
- }
- },
- p0: function(c) {
- var d = this.ua,
- f = c.width * d.height + c.height;
- return C.size(this.up[f] / d.height - c.width, this.up[f] % d.height - c.height)
- },
- EFa: function(c, d) {
- var f = this.sl(c),
- g = this.target.grid.G0(),
- h = d.position;
- f.T.x += h.x * g.x;
- f.T.y += h.y * g.y;
- f.Y.x += h.x * g.x;
- f.Y.y += h.y * g.y;
- f.X.x += h.x * g.x;
- f.X.y += h.y * g.y;
- f.V.x += h.x * g.x;
- f.V.y += h.y * g.y;
- this.Aj(c, f)
- },
- R: function(c) {
- C.Ie.prototype.R.call(this, c);
- c = this.ua;
- this.Cr = c.width * c.height;
- for (var d = this.up,
- f = d.length = 0; f < this.Cr; ++f) d[f] = f;
- this.A3(d, this.Cr);
- for (var d = this.$i,
- f = d.length = 0,
- g = C.size(0, 0), h = 0; h < c.width; ++h) for (var k = 0; k < c.height; ++k) d[f] = new na,
- d[f].position = C.d(h, k),
- d[f].TIa = C.d(h, k),
- g.width = h,
- g.height = k,
- d[f].JB = this.p0(g),
- ++f
- },
- update: function(c) {
- for (var d = 0,
- f = this.ua,
- g = this.$i,
- h, k = C.d(0, 0), n = 0; n < f.width; ++n) for (var p = 0; p < f.height; ++p) k.x = n,
- k.y = p,
- h = g[d],
- h.position.x = h.JB.width * c,
- h.position.y = h.JB.height * c,
- this.EFa(k, h),
- ++d
- }
- });
- C.K7.create = function(c, d, f) {
- return new C.K7(c, d, f)
- };
- C.kE = C.Ie.extend({
- cS: function(c, d) {
- var f = this.ua.width * d,
- g = this.ua.height * d;
- return 0 == f + g ? 1 : Math.pow((c.width + c.height) / (f + g), 6)
- },
- R3: function(c) {
- this.Aj(c, this.sl(c))
- },
- Q3: function(c) {
- this.Aj(c, new C.FK)
- },
- aja: function(c, d) {
- var f = this.sl(c),
- g = this.target.grid.G0();
- f.T.x += g.x / 2 * (1 - d);
- f.T.y += g.y / 2 * (1 - d);
- f.Y.x -= g.x / 2 * (1 - d);
- f.Y.y += g.y / 2 * (1 - d);
- f.X.x += g.x / 2 * (1 - d);
- f.X.y -= g.y / 2 * (1 - d);
- f.V.x -= g.x / 2 * (1 - d);
- f.V.y -= g.y / 2 * (1 - d);
- this.Aj(c, f)
- },
- update: function(c) {
- for (var d = this.ua,
- f = C.d(0, 0), g = C.size(0, 0), h, k = 0; k < d.width; ++k) for (var n = 0; n < d.height; ++n) f.x = k,
- f.y = n,
- g.width = k,
- g.height = n,
- h = this.cS(g, c),
- 0 == h ? this.Q3(f) : 1 > h ? this.aja(f, h) : this.R3(f)
- }
- });
- C.kE.create = function(c, d) {
- return new C.kE(c, d)
- };
- C.eT = C.kE.extend({
- cS: function(c, d) {
- return 0 == c.width + c.height ? 1 : Math.pow((this.ua.width * (1 - d) + this.ua.height * (1 - d)) / (c.width + c.height), 6)
- }
- });
- C.eT.create = function(c, d) {
- return new C.eT(c, d)
- };
- C.sK = C.kE.extend({
- cS: function(c, d) {
- var f = this.ua.height * d;
- return 0 == f ? 1 : Math.pow(c.height / f, 6)
- },
- aja: function(c, d) {
- var f = this.sl(c),
- g = this.target.grid.G0();
- f.T.y += g.y / 2 * (1 - d);
- f.Y.y += g.y / 2 * (1 - d);
- f.X.y -= g.y / 2 * (1 - d);
- f.V.y -= g.y / 2 * (1 - d);
- this.Aj(c, f)
- }
- });
- C.sK.create = function(c, d) {
- return new C.sK(c, d)
- };
- C.fT = C.sK.extend({
- cS: function(c, d) {
- return 0 == c.height ? 1 : Math.pow(this.ua.height * (1 - d) / c.height, 6)
- }
- });
- C.fT.create = function(c, d) {
- return new C.fT(c, d)
- };
- C.CU = C.Ie.extend({
- wY: s,
- Cr: 0,
- up: s,
- ctor: function(c, d, f) {
- C.pe.prototype.ctor.call(this);
- this.up = [];
- d !== m && this.k(c, d, f)
- },
- k: function(c, d, f) {
- return C.Ie.prototype.k.call(this, c, d) ? (this.wY = f || 0, this.up.length = 0, q) : t
- },
- A3: function(c, d) {
- for (var f = d - 1; 0 <= f; f--) {
- var g = 0 | C.dd() % (f + 1),
- h = c[f];
- c[f] = c[g];
- c[g] = h
- }
- },
- R3: function(c) {
- this.Aj(c, this.sl(c))
- },
- Q3: function(c) {
- this.Aj(c, new C.FK)
- },
- R: function(c) {
- C.Ie.prototype.R.call(this, c);
- this.Cr = this.ua.width * this.ua.height;
- c = this.up;
- for (var d = c.length = 0; d < this.Cr; ++d) c[d] = d;
- this.A3(c, this.Cr)
- },
- update: function(c) {
- c = 0 | c * this.Cr;
- for (var d = this.ua,
- f, g = C.d(0, 0), h = this.up, k = 0; k < this.Cr; k++) f = h[k],
- g.x = 0 | f / d.height,
- g.y = f % (0 | d.height),
- k < c ? this.Q3(g) : this.R3(g)
- }
- });
- C.CU.create = function(c, d, f) {
- return new C.CU(c, d, f)
- };
- C.M8 = C.Ie.extend({
- ak: 0,
- kc: 0,
- lc: 0,
- ctor: function(c, d, f, g) {
- C.pe.prototype.ctor.call(this);
- g !== m && this.k(c, d, f, g)
- },
- VB: A("kc"),
- RC: x("kc"),
- Fx: A("lc"),
- fy: x("lc"),
- k: function(c, d, f, g) {
- return C.Ie.prototype.k.call(this, c, d) ? (this.ak = f, this.kc = g, this.lc = 1, q) : t
- },
- update: function(c) {
- for (var d = this.ua,
- f = this.ak,
- g = this.kc,
- h = this.lc,
- k = C.d(0, 0), n, p = 0; p < d.width; p++) for (var r = 0; r < d.height; r++) k.x = p,
- k.y = r,
- n = this.sl(k),
- n.T.f = Math.sin(2 * c * Math.PI * f + 0.01 * (n.T.y + n.T.x)) * g * h,
- n.Y.f = n.T.f,
- n.X.f = n.T.f,
- n.V.f = n.T.f,
- this.Aj(k, n)
- }
- });
- C.M8.create = function(c, d, f, g) {
- return new C.M8(c, d, f, g)
- };
- C.f6 = C.Ie.extend({
- ar: 0,
- kc: 0,
- lc: 0,
- ctor: function(c, d, f, g) {
- C.pe.prototype.ctor.call(this);
- g !== m && this.k(c, d, f, g)
- },
- VB: A("kc"),
- RC: x("kc"),
- Fx: A("lc"),
- fy: x("lc"),
- k: function(c, d, f, g) {
- return C.Ie.prototype.k.call(this, c, d) ? (this.ar = f, this.kc = g, this.lc = 1, q) : t
- },
- update: function(c) {
- var d = Math.sin(2 * Math.PI * c * this.ar) * this.kc * this.lc;
- c = Math.sin(Math.PI * (2 * c * this.ar + 1)) * this.kc * this.lc;
- for (var f = this.ua,
- g = this.target.grid,
- h, k = C.d(0, 0), n = 0; n < f.width; n++) for (var p = 0; p < f.height; p++) k.x = n,
- k.y = p,
- h = g.sl(k),
- 0 == (n + p) % 2 ? (h.T.f += d, h.Y.f += d, h.X.f += d, h.V.f += d) : (h.T.f += c, h.Y.f += c, h.X.f += c, h.V.f += c),
- g.Aj(k, h)
- }
- });
- C.f6.create = function(c, d, f, g) {
- return new C.f6(c, d, f, g)
- };
- C.gU = C.Ie.extend({
- Jua: 0,
- jH: s,
- ctor: function(c, d) {
- C.pe.prototype.ctor.call(this);
- d !== m && this.k(c, d)
- },
- k: function(c, d) {
- this.Jua = d;
- return C.Ie.prototype.k.call(this, c, C.size(1, d))
- },
- update: function(c) {
- for (var d = this.ua,
- f = this.jH.width,
- g, h, k = C.d(0, 0), n = 0; n < d.height; ++n) k.y = n,
- g = this.sl(k),
- h = 1,
- 0 == n % 2 && (h = -1),
- g.T.x += h * f * c,
- g.Y.x += h * f * c,
- g.X.x += h * f * c,
- g.V.x += h * f * c,
- this.Aj(k, g)
- },
- R: function(c) {
- C.Ie.prototype.R.call(this, c);
- this.jH = C.Q.bI()
- }
- });
- C.gU.create = function(c, d) {
- return new C.gU(c, d)
- };
- C.fU = C.Ie.extend({
- ura: 0,
- jH: s,
- ctor: function(c, d) {
- C.pe.prototype.ctor.call(this);
- d !== m && this.k(c, d)
- },
- k: function(c, d) {
- this.ura = d;
- return C.Ie.prototype.k.call(this, c, C.size(d, 1))
- },
- update: function(c) {
- for (var d = this.ua.width,
- f = this.jH.height,
- g, h, k = C.d(0, 0), n = 0; n < d; ++n) k.x = n,
- g = this.sl(k),
- h = 1,
- 0 == n % 2 && (h = -1),
- g.T.y += h * f * c,
- g.Y.y += h * f * c,
- g.X.y += h * f * c,
- g.V.y += h * f * c,
- this.Aj(k, g)
- },
- R: function(c) {
- C.Ie.prototype.R.call(this, c);
- this.jH = C.Q.bI()
- }
- });
- C.fU.create = function(c, d) {
- return new C.fU(c, d)
- };
- C.CK = C.Vf.extend({
- update: function(c) {
- var d = Math.max(0, c - 0.25),
- d = -100 - 500 * d * d,
- f = +Math.PI / 2 + -Math.PI / 2 * Math.sqrt(c);
- c = Math.sin(f);
- for (var f = Math.cos(f), g = this.ua, h = C.d(0, 0), k = 0; k <= g.width; ++k) for (var n = 0; n <= g.height; ++n) {
- h.x = k;
- h.y = n;
- var p = this.uf(h),
- r = Math.sqrt(p.x * p.x + (p.y - d) * (p.y - d)),
- v = r * c,
- y = Math.asin(p.x / r) / c,
- z = Math.cos(y);
- p.x = y <= Math.PI ? v * Math.sin(y) : 0;
- p.y = r + d - v * (1 - z) * c;
- p.f = v * (1 - z) * f / 7;
- 0.5 > p.f && (p.f = 0.5);
- this.wh(h, p)
- }
- }
- });
- C.CK.create = function(c, d) {
- return new C.CK(c, d)
- };
- C.Lb = C.ha.extend({
- xc: s,
- wn: 0,
- ie: s,
- tn: s,
- Lv: s,
- gh: t,
- qa: "ProgressTimer",
- eBa: function() {
- return C.d(this.tn.x, this.tn.y)
- },
- KHa: function(c) {
- this.tn = C.jga(c)
- },
- dAa: function() {
- return C.d(this.Lv.x, this.Lv.y)
- },
- cHa: function(c) {
- this.Lv = C.jga(c)
- },
- $H: A("xc"),
- uBa: A("wn"),
- E0: A("ie"),
- X2: function(c) {
- this.wn != c && (this.wn = C.Nf(c, 0, 100), this.tZ())
- },
- $d: u(),
- qg: B(t),
- yDa: A("gh"),
- zV: function(c) {
- if (c < C.Lb.O7) {
- var d = C.Lb.qpa;
- return this.gh ? C.d(d >> 7 - (c << 1) & 1, d >> 7 - ((c << 1) + 1) & 1) : C.d(d >> (c << 1) + 1 & 1, d >> (c << 1) & 1)
- }
- return C.d(0, 0)
- },
- uN: s,
- Sw: 270,
- pW: 270,
- Ui: 0,
- TV: t,
- tV: s,
- Lg: 0,
- Ue: s,
- $j: s,
- AZ: s,
- fH: t,
- ctor: s,
- pF: function() {
- C.ha.prototype.ctor.call(this);
- this.xc = C.Lb.Fo;
- this.wn = 0;
- this.tn = C.d(0, 0);
- this.Lv = C.d(0, 0);
- this.gh = t;
- this.ie = s;
- this.uN = C.d(0, 0);
- this.pW = this.Sw = 270;
- this.Ui = 0;
- this.TV = t;
- this.tV = C.rect(0, 0, 0, 0)
- },
- qF: function() {
- C.ha.prototype.ctor.call(this);
- this.xc = C.Lb.Fo;
- this.wn = 0;
- this.tn = C.d(0, 0);
- this.Lv = C.d(0, 0);
- this.gh = t;
- this.ie = s;
- this.AZ = C.t.createBuffer();
- this.Lg = 0;
- this.$j = this.Ue = s;
- this.fH = t
- },
- G: function(c) {
- this.ie.color = c;
- this.Gd()
- },
- K: function(c) {
- this.ie.opacity = c;
- this.Gd()
- },
- Xa: function() {
- return this.ie.color
- },
- rb: function() {
- return this.ie.opacity
- },
- lia: s,
- iva: function(c) {
- this.gh !== c && (this.gh = c)
- },
- jva: function(c) {
- this.gh !== c && (this.gh = c, this.$j = this.Ue = s, this.Lg = 0)
- },
- NR: s,
- ova: function(c) {
- this.ie != c && (this.ie = c, this.width = this.ie.width, this.height = this.ie.height)
- },
- pva: function(c) {
- c && this.ie != c && (this.ie = c, this.width = c.width, this.height = c.height, this.Ue && (this.$j = this.Ue = s, this.Lg = 0))
- },
- rJ: s,
- xva: function(c) {
- c !== this.xc && (this.xc = c)
- },
- yva: function(c) {
- c !== this.xc && (this.Ue && (this.$j = this.Ue = s, this.Lg = 0), this.xc = c)
- },
- e3: s,
- gva: function(c) {
- this.gh !== c && (this.gh = c)
- },
- hva: function(c) {
- this.gh !== c && (this.gh = c, this.$j = this.Ue = s, this.Lg = 0)
- },
- ti: function(c) {
- var d = this.ie;
- if (!d) return {
- xa: 0,
- ea: 0
- };
- var f = d.quad,
- g = C.d(f.T.v.xa, f.T.v.ea),
- f = C.d(f.V.v.xa, f.V.v.ea);
- d.textureRectRotated && (d = c.x, c.x = c.y, c.y = d);
- return {
- xa: g.x * (1 - c.x) + f.x * c.x,
- ea: g.y * (1 - c.y) + f.y * c.y
- }
- },
- vi: function(c) {
- if (!this.ie) return {
- x: 0,
- y: 0
- };
- var d = this.ie.quad,
- f = C.d(d.T.m.x, d.T.m.y),
- d = C.d(d.V.m.x, d.V.m.y);
- return {
- x: f.x * (1 - c.x) + d.x * c.x,
- y: f.y * (1 - c.y) + d.y * c.y
- }
- },
- Y0: s,
- fta: function(c) {
- this.percentage = 0;
- this.anchorY = this.anchorX = 0.5;
- this.xc = C.Lb.Fo;
- this.gh = t;
- this.midPoint = C.d(0.5, 0.5);
- this.barChangeRate = C.d(1, 1);
- this.sprite = c;
- return q
- },
- gta: function(c) {
- this.percentage = 0;
- this.$j = this.Ue = s;
- this.Lg = 0;
- this.anchorY = this.anchorX = 0.5;
- this.xc = C.Lb.Fo;
- this.gh = t;
- this.midPoint = C.d(0.5, 0.5);
- this.barChangeRate = C.d(1, 1);
- this.sprite = c;
- this.shaderProgram = C.ug.Xd(C.Co);
- return q
- },
- ka: s,
- Qq: function(c) {
- c = c || C.t;
- var d = this.ie;
- d.rA && (c.globalCompositeOperation = "lighter");
- var f = C.view.ia,
- g = C.view.pa;
- c.globalAlpha = d.hb / 255;
- var h = d.Ra,
- k = d.o,
- n = d.ld,
- p = d.mW,
- r = 0 | n.x,
- v = -n.y - h.height,
- y = d.jB;
- p.width = h.width * f;
- p.height = h.height * g;
- c.save();
- d.Bb && (r = -n.x - h.width, c.scale( - 1, 1));
- d.Db && (v = n.y, c.scale(1, -1));
- r *= f;
- v *= g;
- this.xc == C.Lb.Is ? (h = this.tV, c.beginPath(), c.rect(h.x * f, h.y * g, h.width * f, h.height * g), c.clip(), c.closePath()) : this.xc == C.Lb.Fo && (h = this.uN.x * f, n = this.uN.y * g, c.beginPath(), c.arc(h, n, this.Ui * g, Math.PI / 180 * this.Sw, Math.PI / 180 * this.pW, this.TV), c.lineTo(h, n), c.clip(), c.closePath());
- d.da && y.nD ? (f = d.da.jd, this.KL ? c.drawImage(f, 0, 0, y.width, y.height, r, v, p.width, p.height) : c.drawImage(f, y.x, y.y, y.width, y.height, r, v, p.width, p.height)) : 0 !== k.width && (p = this.color, c.fillStyle = "rgba(" + p.r + "," + p.g + "," + p.b + ",1)", c.fillRect(r, v, k.width * f, k.height * g));
- c.restore();
- C.nl()
- },
- gn: function(c) {
- c = c || C.t;
- if (this.Ue && this.ie) {
- C.BC(this);
- var d = this.ie.ek();
- C.Gm(d.src, d.ga);
- C.rf(C.Dv);
- C.yi(this.ie.texture);
- c.bindBuffer(c.ARRAY_BUFFER, this.AZ);
- this.fH && (c.bufferData(c.ARRAY_BUFFER, this.$j, c.DYNAMIC_DRAW), this.fH = t);
- d = C.Ug.BYTES_PER_ELEMENT;
- c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, d, 0);
- c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, d, 8);
- c.vertexAttribPointer(C.Vg, 2, c.FLOAT, t, d, 12);
- this.xc === C.Lb.Fo ? c.drawArrays(c.TRIANGLE_FAN, 0, this.Lg) : this.xc == C.Lb.Is && (this.gh ? (c.drawArrays(c.TRIANGLE_STRIP, 0, this.Lg / 2), c.drawArrays(c.TRIANGLE_STRIP, 4, this.Lg / 2), C.kl++) : c.drawArrays(c.TRIANGLE_STRIP, 0, this.Lg));
- C.kl++
- }
- },
- hwa: function() {
- if (this.ie) {
- var c, d = this.tn;
- c = this.wn / 100;
- var f = 2 * C.PI * (this.gh ? c: 1 - c),
- g = C.d(d.x, 1),
- h = C.TEa(g, d, f),
- f = 0;
- if (0 == c) h = g,
- f = 0;
- else if (1 == c) h = g,
- f = 4;
- else {
- var k = C.pv,
- n = C.Lb.O7;
- for (c = 0; c <= n; ++c) {
- var p = (c + (n - 1)) % n,
- r = this.zV(c % n),
- p = this.zV(p);
- 0 == c ? p = C.oga(r, p, 1 - d.x) : 4 == c && (r = C.oga(r, p, 1 - d.x));
- var v = C.d(0, 0);
- if (C.R1(r, p, d, h, v) && (!(0 == c || 4 == c) || 0 <= v.x && 1 >= v.x) && 0 <= v.y && v.y < k) k = v.y,
- f = c
- }
- h = C.ho(d, C.Wp(C.cc(h, d), k))
- }
- k = q;
- this.Lg != f + 3 && (k = t, this.$j = this.Ue = s, this.Lg = 0);
- if (!this.Ue) {
- n = this.Lg = f + 3;
- r = C.Ug.BYTES_PER_ELEMENT;
- this.$j = new ArrayBuffer(n * r);
- p = [];
- for (c = 0; c < n; c++) p[c] = new C.Ug(s, s, s, this.$j, c * r);
- this.Ue = p;
- if (!this.Ue) {
- C.log("cc.ProgressTimer._updateRadial() : Not enough memory");
- return
- }
- }
- this.Gd();
- n = this.Ue;
- if (!k) {
- n[0].v = this.ti(d);
- n[0].m = this.vi(d);
- n[1].v = this.ti(g);
- n[1].m = this.vi(g);
- for (c = 0; c < f; c++) d = this.zV(c),
- n[c + 2].v = this.ti(d),
- n[c + 2].m = this.vi(d)
- }
- n[this.Lg - 1].v = this.ti(h);
- n[this.Lg - 1].m = this.vi(h)
- }
- },
- $va: function() {
- if (this.ie) {
- var c, d = this.wn / 100,
- f = this.Lv,
- f = C.Wp(C.d(1 - f.x + d * f.x, 1 - f.y + d * f.y), 0.5),
- d = C.cc(this.tn, f),
- f = C.ho(this.tn, f);
- 0 > d.x && (f.x += -d.x, d.x = 0);
- 1 < f.x && (d.x -= f.x - 1, f.x = 1);
- 0 > d.y && (f.y += -d.y, d.y = 0);
- 1 < f.y && (d.y -= f.y - 1, f.y = 1);
- if (this.gh) {
- if (!this.Ue) {
- this.Lg = 8;
- var g = C.Ug.BYTES_PER_ELEMENT;
- this.$j = new ArrayBuffer(8 * g);
- var h = [];
- for (c = 0; 8 > c; c++) h[c] = new C.Ug(s, s, s, this.$j, c * g);
- h[0].v = this.ti(C.d(0, 1));
- h[0].m = this.vi(C.d(0, 1));
- h[1].v = this.ti(C.d(0, 0));
- h[1].m = this.vi(C.d(0, 0));
- h[6].v = this.ti(C.d(1, 1));
- h[6].m = this.vi(C.d(1, 1));
- h[7].v = this.ti(C.d(1, 0));
- h[7].m = this.vi(C.d(1, 0));
- this.Ue = h
- }
- c = this.Ue;
- c[2].v = this.ti(C.d(d.x, f.y));
- c[2].m = this.vi(C.d(d.x, f.y));
- c[3].v = this.ti(C.d(d.x, d.y));
- c[3].m = this.vi(C.d(d.x, d.y));
- c[4].v = this.ti(C.d(f.x, f.y));
- c[4].m = this.vi(C.d(f.x, f.y));
- c[5].v = this.ti(C.d(f.x, d.y));
- c[5].m = this.vi(C.d(f.x, d.y))
- } else {
- if (!this.Ue) {
- this.Lg = 4;
- g = C.Ug.BYTES_PER_ELEMENT;
- this.$j = new ArrayBuffer(4 * g);
- this.Ue = [];
- for (c = 0; 4 > c; c++) this.Ue[c] = new C.Ug(s, s, s, this.$j, c * g)
- }
- c = this.Ue;
- c[0].v = this.ti(C.d(d.x, f.y));
- c[0].m = this.vi(C.d(d.x, f.y));
- c[1].v = this.ti(C.d(d.x, d.y));
- c[1].m = this.vi(C.d(d.x, d.y));
- c[2].v = this.ti(C.d(f.x, f.y));
- c[2].m = this.vi(C.d(f.x, f.y));
- c[3].v = this.ti(C.d(f.x, d.y));
- c[3].m = this.vi(C.d(f.x, d.y))
- }
- this.Gd()
- }
- },
- Gd: function() {
- if (this.ie && this.Ue) {
- for (var c = this.ie.quad.X.F,
- d = this.Ue,
- f = 0,
- g = this.Lg; f < g; ++f) d[f].F = c;
- this.fH = q
- }
- },
- tZ: s,
- dwa: function() {
- var c = this.ie,
- d = c.width,
- f = c.height,
- g = this.tn;
- if (this.xc == C.Lb.Fo) {
- this.Ui = Math.round(Math.sqrt(d * d + f * f));
- var h, k = t,
- n = this.uN;
- n.x = d * g.x;
- n.y = -f * g.y;
- this.gh ? (h = 270, g = 270 - 3.6 * this.wn) : (g = -90, h = -90 + 3.6 * this.wn);
- c.Bb && (n.x -= d * 2 * this.tn.x, g = -g - 180, h = -h - 180, k = !k);
- c.Db && (n.y += f * 2 * this.tn.y, k = !k, g = -g, h = -h);
- this.Sw = g;
- this.pW = h;
- this.TV = k
- } else {
- h = this.Lv;
- n = this.wn / 100;
- k = this.tV;
- h = C.size(d * (1 - h.x), f * (1 - h.y));
- var n = C.size((d - h.width) * n, (f - h.height) * n),
- n = C.size(h.width + n.width, h.height + n.height),
- p = C.d(d * g.x, f * g.y);
- h = p.x - n.width / 2;
- 0.5 < g.x && n.width / 2 >= d - p.x && (h = d - n.width);
- d = p.y - n.height / 2;
- 0.5 < g.y && n.height / 2 >= f - p.y && (d = f - n.height);
- k.x = 0;
- f = 1;
- c.Bb && (k.x -= n.width, f = -1);
- 0 < h && (k.x += h * f);
- k.y = 0;
- f = 1;
- c.Db && (k.y += n.height, f = -1);
- 0 < d && (k.y -= d * f);
- k.width = n.width;
- k.height = -n.height
- }
- },
- ewa: function() {
- var c = this.xc;
- c === C.Lb.Fo ? this.hwa() : c === C.Lb.Is && this.$va();
- this.fH = q
- }
- });
- H = C.Lb.prototype;
- C.L == C.la ? (H.ctor = H.qF, H.lia = H.jva, H.NR = H.pva, H.rJ = H.yva, H.e3 = H.hva, H.Y0 = H.gta, H.ka = H.gn, H.tZ = H.ewa) : (H.ctor = H.pF, H.lia = H.iva, H.NR = H.ova, H.rJ = H.xva, H.e3 = H.gva, H.Y0 = H.fta, H.ka = H.Qq, H.tZ = C.Lb.prototype.dwa);
- C.e(H, "midPoint", H.eBa, H.KHa);
- C.e(H, "barChangeRate", H.dAa, H.cHa);
- C.e(H, "type", H.$H, H.rJ);
- C.e(H, "percentage", H.uBa, H.X2);
- C.e(H, "sprite", H.E0, H.NR);
- C.e(H, "reverseDir", H.yDa, H.e3);
- C.Lb.create = function(c) {
- var d = new C.Lb;
- return d.Y0(c) ? d: s
- };
- C.Lb.O7 = 4;
- C.Lb.qpa = 75;
- C.Lb.Fo = 0;
- C.Lb.Is = 1;
- C.KT = C.N.extend({
- Jf: 0,
- Qc: 0,
- ctor: function(c, d) {
- C.N.prototype.ctor.call(this);
- this.Qc = this.Jf = 0;
- d !== m && this.k(c, d)
- },
- k: function(c, d) {
- return C.N.prototype.k.call(this, c) ? (this.Jf = d, q) : t
- },
- s: function() {
- var c = new C.KT;
- c.k(this.D, this.Jf);
- return c
- },
- reverse: function() {
- C.log("cc.ProgressTo.reverse(): reverse hasn't been supported.");
- return s
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- this.Qc = c.percentage;
- 100 == this.Qc && (this.Qc = 0)
- },
- update: function(c) {
- this.target instanceof C.Lb && (this.target.percentage = this.Qc + (this.Jf - this.Qc) * c)
- }
- });
- C.KT.create = function(c, d) {
- return new C.KT(c, d)
- };
- C.sE = C.N.extend({
- Jf: 0,
- Qc: 0,
- ctor: function(c, d, f) {
- C.N.prototype.ctor.call(this);
- this.Qc = this.Jf = 0;
- f !== m && this.k(c, d, f)
- },
- k: function(c, d, f) {
- return C.N.prototype.k.call(this, c) ? (this.Jf = f, this.Qc = d, q) : t
- },
- s: function() {
- var c = new C.sE;
- c.k(this.D, this.Qc, this.Jf);
- return c
- },
- reverse: function() {
- return C.sE.create(this.D, this.Jf, this.Qc)
- },
- R: function(c) {
- C.N.prototype.R.call(this, c)
- },
- update: function(c) {
- this.target instanceof C.Lb && (this.target.percentage = this.Qc + (this.Jf - this.Qc) * c)
- }
- });
- C.sE.create = function(c, d, f) {
- return new C.sE(c, d, f)
- };
- C.xE = 4208917214;
- C.GNa = C.O.extend({
- ck: u()
- });
- C.wNa = 0;
- C.Hs = 1;
- C.VK = 0;
- C.vNa = 1;
- C.tb = C.Ll.extend({
- ib: s,
- tc: s,
- D: s,
- on: t,
- maa: t,
- qa: "TransitionScene",
- ctor: function(c, d) {
- C.Ll.prototype.ctor.call(this);
- c !== m && d !== m && this.k(c, d)
- },
- uba: function() {
- this.Zh(this.uba);
- var c = C.Q;
- this.maa = c.Tt;
- c.PC(this.ib);
- C.Ka.Ib(q);
- this.tc.visible = q
- },
- qp: function() {
- this.on = q
- },
- ka: function() {
- this.on ? (this.tc.J(), this.ib.J()) : (this.ib.J(), this.tc.J())
- },
- Z: function() {
- C.A.prototype.Z.call(this);
- C.Ka.Ib(t);
- this.tc.ph();
- this.ib.Z()
- },
- Na: function() {
- C.A.prototype.Na.call(this);
- C.Ka.Ib(q);
- this.tc.Na();
- this.ib.qj()
- },
- ze: function() {
- C.A.prototype.ze.call(this);
- this.maa && this.tc.ze()
- },
- k: function(c, d) {
- d || e("cc.TransitionScene.initWithDuration(): Argument scene must be non-nil");
- return this.j() ? (this.D = c, this.dj({
- x: 0,
- y: 0,
- anchorX: 0,
- anchorY: 0
- }), this.ib = d, this.tc = C.Q.gg, this.tc || (this.tc = C.Ll.create(), this.tc.j()), this.ib == this.tc && e("cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene"), this.qp(), q) : t
- },
- finish: function() {
- this.ib.dj({
- visible: q,
- x: 0,
- y: 0,
- scale: 1,
- rotation: 0
- });
- C.L === C.la && this.ib.Ix().restore();
- this.tc.dj({
- visible: t,
- x: 0,
- y: 0,
- scale: 1,
- rotation: 0
- });
- C.L === C.la && this.tc.Ix().restore();
- this.rg(this.uba, 0)
- },
- XP: function() {
- this.ib.visible = q;
- this.tc.visible = t
- }
- });
- C.tb.create = function(c, d) {
- return new C.tb(c, d)
- };
- C.Ls = C.tb.extend({
- yw: 0,
- k: function(c, d, f) {
- C.tb.prototype.k.call(this, c, d) && (this.yw = f);
- return q
- }
- });
- C.Ls.create = function(c, d, f) {
- var g = new C.Ls;
- g.k(c, d, f);
- return g
- };
- C.v8 = C.tb.extend({
- Z: function() {
- C.tb.prototype.Z.call(this);
- this.ib.dj({
- scale: 0.0010,
- anchorX: 0.5,
- anchorY: 0.5
- });
- this.tc.dj({
- scale: 1,
- anchorX: 0.5,
- anchorY: 0.5
- });
- var c = C.La.create(C.ci.create(C.Av.create(this.D / 2, 0.0010), C.Ds.create(this.D / 2, 720)), C.fd.create(this.D / 2));
- this.tc.Ya(c);
- this.ib.Ya(C.La.create(c.reverse(), C.Jc.create(this.finish, this)))
- }
- });
- C.v8.create = function(c, d) {
- var f = new C.v8;
- return f != s && f.k(c, d) ? f: s
- };
- C.k8 = C.tb.extend({
- Z: function() {
- C.tb.prototype.Z.call(this);
- var c = C.Q.aa;
- this.ib.dj({
- scale: 0.5,
- x: c.width,
- y: 0,
- anchorX: 0.5,
- anchorY: 0.5
- });
- this.tc.anchorX = 0.5;
- this.tc.anchorY = 0.5;
- var d = C.Ao.create(this.D / 4, C.d( - c.width, 0), c.width / 4, 2),
- f = C.ae.create(this.D / 4, 1),
- c = C.ae.create(this.D / 4, 0.5),
- c = C.La.create(c, d),
- d = C.La.create(d, f),
- f = C.fd.create(this.D / 2);
- this.tc.Ya(c);
- this.ib.Ya(C.La.create(f, d, C.Jc.create(this.finish, this)))
- }
- });
- C.k8.create = function(c, d) {
- var f = new C.k8;
- return f != s && f.k(c, d) ? f: s
- };
- C.LE = C.tb.extend({
- Z: function() {
- C.tb.prototype.Z.call(this);
- this.Vr();
- var c = this.action();
- this.ib.Ya(C.La.create(this.ck(c), C.Jc.create(this.finish, this)))
- },
- Vr: function() {
- this.ib.p( - C.Q.aa.width, 0)
- },
- action: function() {
- return C.Bs.create(this.D, C.d(0, 0))
- },
- ck: function(c) {
- return C.As.create(c, 2)
- }
- });
- C.LE.create = function(c, d) {
- var f = new C.LE;
- return f != s && f.k(c, d) ? f: s
- };
- C.m8 = C.LE.extend({
- Vr: function() {
- this.ib.p(C.Q.aa.width, 0)
- }
- });
- C.m8.create = function(c, d) {
- var f = new C.m8;
- return f != s && f.k(c, d) ? f: s
- };
- C.n8 = C.LE.extend({
- Vr: function() {
- this.ib.p(0, C.Q.aa.height)
- }
- });
- C.n8.create = function(c, d) {
- var f = new C.n8;
- return f != s && f.k(c, d) ? f: s
- };
- C.l8 = C.LE.extend({
- Vr: function() {
- this.ib.p(0, -C.Q.aa.height)
- }
- });
- C.l8.create = function(c, d) {
- var f = new C.l8;
- return f != s && f.k(c, d) ? f: s
- };
- C.us = 0.5;
- C.ME = C.tb.extend({
- qp: function() {
- this.on = t
- },
- Z: function() {
- C.tb.prototype.Z.call(this);
- this.Vr();
- var c = this.action(),
- d = this.action(),
- c = this.ck(c),
- d = C.La.create(this.ck(d), C.Jc.create(this.finish, this));
- this.ib.Ya(c);
- this.tc.Ya(d)
- },
- Vr: function() {
- this.ib.p( - C.Q.aa.width + C.us, 0)
- },
- action: function() {
- return C.Dk.create(this.D, C.d(C.Q.aa.width - C.us, 0))
- },
- ck: function(c) {
- return C.As.create(c, 2)
- }
- });
- C.ME.create = function(c, d) {
- var f = new C.ME;
- return f != s && f.k(c, d) ? f: s
- };
- C.y8 = C.ME.extend({
- qp: function() {
- this.on = q
- },
- Vr: function() {
- this.ib.p(C.Q.aa.width - C.us, 0)
- },
- action: function() {
- return C.Dk.create(this.D, C.d( - (C.Q.aa.width - C.us), 0))
- }
- });
- C.y8.create = function(c, d) {
- var f = new C.y8;
- return f != s && f.k(c, d) ? f: s
- };
- C.x8 = C.ME.extend({
- qp: function() {
- this.on = t
- },
- Vr: function() {
- this.ib.p(0, C.Q.aa.height - C.us)
- },
- action: function() {
- return C.Dk.create(this.D, C.d(0, -(C.Q.aa.height - C.us)))
- }
- });
- C.x8.create = function(c, d) {
- var f = new C.x8;
- return f != s && f.k(c, d) ? f: s
- };
- C.z8 = C.ME.extend({
- qp: function() {
- this.on = q
- },
- Vr: function() {
- this.ib.p(0, -(C.Q.aa.height - C.us))
- },
- action: function() {
- return C.Dk.create(this.D, C.d(0, C.Q.aa.height - C.us))
- }
- });
- C.z8.create = function(c, d) {
- var f = new C.z8;
- return f != s && f.k(c, d) ? f: s
- };
- C.w8 = C.tb.extend({
- Z: function() {
- C.tb.prototype.Z.call(this);
- this.ib.dj({
- scale: 0.0010,
- anchorX: 2 / 3,
- anchorY: 0.5
- });
- this.tc.dj({
- scale: 1,
- anchorX: 1 / 3,
- anchorY: 0.5
- });
- var c = C.ae.create(this.D, 0.01),
- d = C.ae.create(this.D, 1);
- this.ib.Ya(this.ck(d));
- this.tc.Ya(C.La.create(this.ck(c), C.Jc.create(this.finish, this)))
- },
- ck: function(c) {
- return C.As.create(c, 2)
- }
- });
- C.w8.create = function(c, d) {
- var f = new C.w8;
- return f != s && f.k(c, d) ? f: s
- };
- C.i8 = C.Ls.extend({
- Z: function() {
- C.tb.prototype.Z.call(this);
- var c, d;
- this.ib.visible = t;
- var f;
- this.yw === C.Hs ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90);
- c = C.La.create(C.fd.create(this.D / 2), C.Fj.create(), C.bi.create(this.D / 2, 1, 0, f, c, 0, 0), C.Jc.create(this.finish, this));
- d = C.La.create(C.bi.create(this.D / 2, 1, 0, 0, d, 0, 0), C.Fl.create(), C.fd.create(this.D / 2));
- this.ib.Ya(c);
- this.tc.Ya(d)
- }
- });
- C.i8.create = function(c, d, f) {
- f == s && (f = C.Hs);
- var g = new C.i8;
- g.k(c, d, f);
- return g
- };
- C.j8 = C.Ls.extend({
- Z: function() {
- C.tb.prototype.Z.call(this);
- var c, d;
- this.ib.visible = t;
- var f;
- this.yw == C.VK ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90);
- c = C.La.create(C.fd.create(this.D / 2), C.Fj.create(), C.bi.create(this.D / 2, 1, 0, f, c, 90, 0), C.Jc.create(this.finish, this));
- d = C.La.create(C.bi.create(this.D / 2, 1, 0, 0, d, 90, 0), C.Fl.create(), C.fd.create(this.D / 2));
- this.ib.Ya(c);
- this.tc.Ya(d)
- }
- });
- C.j8.create = function(c, d, f) {
- f == s && (f = C.VK);
- var g = new C.j8;
- g.k(c, d, f);
- return g
- };
- C.h8 = C.Ls.extend({
- Z: function() {
- C.tb.prototype.Z.call(this);
- var c, d;
- this.ib.visible = t;
- var f;
- this.yw === C.Hs ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90);
- c = C.La.create(C.fd.create(this.D / 2), C.Fj.create(), C.bi.create(this.D / 2, 1, 0, f, c, -45, 0), C.Jc.create(this.finish, this));
- d = C.La.create(C.bi.create(this.D / 2, 1, 0, 0, d, 45, 0), C.Fl.create(), C.fd.create(this.D / 2));
- this.ib.Ya(c);
- this.tc.Ya(d)
- }
- });
- C.h8.create = function(c, d, f) {
- f == s && (f = C.Hs);
- var g = new C.h8;
- g.k(c, d, f);
- return g
- };
- C.D8 = C.Ls.extend({
- Z: function() {
- C.tb.prototype.Z.call(this);
- var c, d;
- this.ib.visible = t;
- var f;
- this.yw === C.Hs ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90);
- c = C.La.create(C.fd.create(this.D / 2), C.ci.create(C.bi.create(this.D / 2, 1, 0, f, c, 0, 0), C.ae.create(this.D / 2, 1), C.Fj.create()), C.Jc.create(this.finish, this));
- d = C.La.create(C.ci.create(C.bi.create(this.D / 2, 1, 0, 0, d, 0, 0), C.ae.create(this.D / 2, 0.5)), C.Fl.create(), C.fd.create(this.D / 2));
- this.ib.scale = 0.5;
- this.ib.Ya(c);
- this.tc.Ya(d)
- }
- });
- C.D8.create = function(c, d, f) {
- f == s && (f = C.Hs);
- var g = new C.D8;
- g.k(c, d, f);
- return g
- };
- C.E8 = C.Ls.extend({
- Z: function() {
- C.tb.prototype.Z.call(this);
- var c, d;
- this.ib.visible = t;
- var f;
- this.yw === C.VK ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90);
- c = C.La.create(C.fd.create(this.D / 2), C.ci.create(C.bi.create(this.D / 2, 1, 0, f, c, 90, 0), C.ae.create(this.D / 2, 1), C.Fj.create()), C.Jc.create(this.finish, this));
- d = C.La.create(C.ci.create(C.bi.create(this.D / 2, 1, 0, 0, d, 90, 0), C.ae.create(this.D / 2, 0.5)), C.Fl.create(), C.fd.create(this.D / 2));
- this.ib.scale = 0.5;
- this.ib.Ya(c);
- this.tc.Ya(d)
- }
- });
- C.E8.create = function(c, d, f) {
- f == s && (f = C.VK);
- var g = new C.E8;
- g.k(c, d, f);
- return g
- };
- C.C8 = C.Ls.extend({
- Z: function() {
- C.tb.prototype.Z.call(this);
- var c, d;
- this.ib.visible = t;
- var f;
- this.yw === C.Hs ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90);
- c = C.La.create(C.fd.create(this.D / 2), C.ci.create(C.bi.create(this.D / 2, 1, 0, f, c, -45, 0), C.ae.create(this.D / 2, 1), C.Fj.create()), C.Fj.create(), C.Jc.create(this.finish, this));
- d = C.La.create(C.ci.create(C.bi.create(this.D / 2, 1, 0, 0, d, 45, 0), C.ae.create(this.D / 2, 0.5)), C.Fl.create(), C.fd.create(this.D / 2));
- this.ib.scale = 0.5;
- this.ib.Ya(c);
- this.tc.Ya(d)
- }
- });
- C.C8.create = function(c, d, f) {
- f == s && (f = C.Hs);
- var g = new C.C8;
- g.k(c, d, f);
- return g
- };
- C.d8 = C.tb.extend({
- ya: s,
- ctor: function() {
- C.tb.prototype.ctor.call(this);
- this.ya = C.color()
- },
- Z: function() {
- C.tb.prototype.Z.call(this);
- var c = C.gd.create(this.ya);
- this.ib.visible = t;
- this.q(c, 2, C.xE);
- var c = this.lj(C.xE),
- d = C.La.create(C.Ry.create(this.D / 2), C.Jc.create(this.XP, this), C.Sy.create(this.D / 2), C.Jc.create(this.finish, this));
- c.Ya(d)
- },
- Na: function() {
- C.tb.prototype.Na.call(this);
- this.$Q(C.xE, t)
- },
- k: function(c, d, f) {
- f = f || C.color.BLACK;
- C.tb.prototype.k.call(this, c, d) && (this.ya.r = f.r, this.ya.g = f.g, this.ya.b = f.b, this.ya.a = 0);
- return q
- }
- });
- C.d8.create = function(c, d, f) {
- var g = new C.d8;
- g.k(c, d, f);
- return g
- };
- C.c8 = C.tb.extend({
- Z: function() {
- C.tb.prototype.Z.call(this);
- var c = C.color(0, 0, 0, 0),
- d = C.Q.aa,
- c = C.gd.create(c),
- f = C.yv.create(d.width, d.height);
- if (s != f) {
- f.sprite.anchorX = 0.5;
- f.sprite.anchorY = 0.5;
- f.dj({
- x: d.width / 2,
- y: d.height / 2,
- anchorX: 0.5,
- anchorY: 0.5
- });
- f.Sn();
- this.ib.J();
- f.end();
- var g = C.yv.create(d.width, d.height);
- g.p(d.width / 2, d.height / 2);
- g.sprite.anchorX = g.anchorX = 0.5;
- g.sprite.anchorY = g.anchorY = 0.5;
- g.Sn();
- this.tc.J();
- g.end();
- f.sprite.Yd(C.ONE, C.ONE);
- g.sprite.Yd(C.SRC_ALPHA, C.ONE_MINUS_SRC_ALPHA);
- c.q(f);
- c.q(g);
- f.sprite.opacity = 255;
- g.sprite.opacity = 255;
- d = C.La.create(C.xo.create(this.D, 0), C.Jc.create(this.XP, this), C.Jc.create(this.finish, this));
- g.sprite.Ya(d);
- this.q(c, 2, C.xE)
- }
- },
- Na: function() {
- this.$Q(C.xE, t);
- C.tb.prototype.Na.call(this)
- },
- ka: u()
- });
- C.c8.create = function(c, d) {
- var f = new C.c8;
- f.k(c, d);
- return f
- };
- C.B8 = C.tb.extend({
- qp: function() {
- this.on = t
- },
- Z: function() {
- C.tb.prototype.Z.call(this);
- var c = C.Q.aa,
- c = C.CU.create(this.D, C.size(0 | 12 * (c.width / c.height), 12)),
- c = this.ck(c);
- this.tc.Ya(C.La.create(c, C.Jc.create(this.finish, this), C.Bv.create()))
- },
- ck: da()
- });
- C.B8.create = function(c, d) {
- var f = new C.B8;
- return f != s && f.k(c, d) ? f: s
- };
- C.AU = C.tb.extend({
- Z: function() {
- C.tb.prototype.Z.call(this);
- this.ib.visible = t;
- var c = this.action(),
- c = C.La.create(c, C.Jc.create(this.XP, this), c.reverse());
- this.Ya(C.La.create(this.ck(c), C.Jc.create(this.finish, this), C.Bv.create()))
- },
- ck: function(c) {
- return C.Oy.create(c, 3)
- },
- action: function() {
- return C.fU.create(this.D / 2, 3)
- }
- });
- C.AU.create = function(c, d) {
- var f = new C.AU;
- return f != s && f.k(c, d) ? f: s
- };
- C.A8 = C.AU.extend({
- action: function() {
- return C.gU.create(this.D / 2, 3)
- }
- });
- C.A8.create = function(c, d) {
- var f = new C.A8;
- return f != s && f.k(c, d) ? f: s
- };
- C.KE = C.tb.extend({
- qp: function() {
- this.on = t
- },
- Z: function() {
- C.tb.prototype.Z.call(this);
- var c = C.Q.aa,
- c = this.tB(C.size(0 | 12 * (c.width / c.height), 12));
- this.tc.Ya(C.La.create(this.ck(c), C.Jc.create(this.finish, this), C.Bv.create()))
- },
- ck: da(),
- tB: function(c) {
- return C.kE.create(this.D, c)
- }
- });
- C.KE.create = function(c, d) {
- var f = new C.KE;
- return f != s && f.k(c, d) ? f: s
- };
- C.e8 = C.KE.extend({
- tB: function(c) {
- return C.eT.create(this.D, c)
- }
- });
- C.e8.create = function(c, d) {
- var f = new C.e8;
- return f != s && f.k(c, d) ? f: s
- };
- C.g8 = C.KE.extend({
- tB: function(c) {
- return C.sK.create(this.D, c)
- }
- });
- C.g8.create = function(c, d) {
- var f = new C.g8;
- return f != s && f.k(c, d) ? f: s
- };
- C.f8 = C.KE.extend({
- tB: function(c) {
- return C.fT.create(this.D, c)
- }
- });
- C.f8.create = function(c, d) {
- var f = new C.f8;
- return f != s && f.k(c, d) ? f: s
- };
- C.A7 = 49153;
- C.Ks = C.tb.extend({
- Jf: 0,
- Qc: 0,
- RN: s,
- qa: "TransitionProgress",
- Nw: function(c, d, f) {
- c.dj({
- x: d,
- y: f,
- anchorX: 0.5,
- anchorY: 0.5
- })
- },
- Z: function() {
- C.tb.prototype.Z.call(this);
- this.Bba();
- var c = C.Q.aa,
- d = C.yv.create(c.width, c.height);
- d.sprite.anchorX = 0.5;
- d.sprite.anchorY = 0.5;
- this.Nw(d, c.width / 2, c.height / 2);
- d.clear(0, 0, 0, 1);
- d.Sn();
- this.RN.J();
- d.end();
- this.RN == this.tc && this.XP();
- c = this.Gw(d);
- d = C.La.create(C.sE.create(this.D, this.Qc, this.Jf), C.Jc.create(this.finish, this));
- c.Ya(d);
- this.q(c, 2, C.A7)
- },
- Na: function() {
- this.$Q(C.A7, q);
- C.tb.prototype.Na.call(this)
- },
- Bba: function() {
- this.RN = this.tc;
- this.Qc = 100;
- this.Jf = 0
- },
- Gw: function() {
- C.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass");
- return s
- },
- qp: function() {
- this.on = t
- }
- });
- C.Ks.create = function(c, d) {
- var f = new C.Ks;
- return f != s && f.k(c, d) ? f: s
- };
- C.s8 = C.Ks.extend({
- Gw: function(c) {
- var d = C.Q.aa;
- c = C.Lb.create(c.sprite);
- C.L === C.la && (c.sprite.flippedY = q);
- c.type = C.Lb.Fo;
- c.reverseDir = t;
- c.percentage = 100;
- this.Nw(c, d.width / 2, d.height / 2);
- return c
- }
- });
- C.s8.create = function(c, d) {
- var f = new C.s8;
- return f != s && f.k(c, d) ? f: s
- };
- C.t8 = C.Ks.extend({
- Gw: function(c) {
- var d = C.Q.aa;
- c = C.Lb.create(c.sprite);
- C.L === C.la && (c.sprite.flippedY = q);
- c.type = C.Lb.Fo;
- c.reverseDir = q;
- c.percentage = 100;
- this.Nw(c, d.width / 2, d.height / 2);
- return c
- }
- });
- C.t8.create = function(c, d) {
- var f = new C.t8;
- return f != s && f.k(c, d) ? f: s
- };
- C.p8 = C.Ks.extend({
- Gw: function(c) {
- var d = C.Q.aa;
- c = C.Lb.create(c.sprite);
- C.L === C.la && (c.sprite.flippedY = q);
- c.type = C.Lb.Is;
- c.midPoint = C.d(1, 0);
- c.barChangeRate = C.d(1, 0);
- c.percentage = 100;
- this.Nw(c, d.width / 2, d.height / 2);
- return c
- }
- });
- C.p8.create = function(c, d) {
- var f = new C.p8;
- return f != s && f.k(c, d) ? f: s
- };
- C.u8 = C.Ks.extend({
- Gw: function(c) {
- var d = C.Q.aa;
- c = C.Lb.create(c.sprite);
- C.L === C.la && (c.sprite.flippedY = q);
- c.type = C.Lb.Is;
- c.midPoint = C.d(0, 0);
- c.barChangeRate = C.d(0, 1);
- c.percentage = 100;
- this.Nw(c, d.width / 2, d.height / 2);
- return c
- }
- });
- C.u8.create = function(c, d) {
- var f = new C.u8;
- return f != s && f.k(c, d) ? f: s
- };
- C.q8 = C.Ks.extend({
- Gw: function(c) {
- var d = C.Q.aa;
- c = C.Lb.create(c.sprite);
- C.L === C.la && (c.sprite.flippedY = q);
- c.type = C.Lb.Is;
- c.midPoint = C.d(0.5, 0.5);
- c.barChangeRate = C.d(1, 1);
- c.percentage = 0;
- this.Nw(c, d.width / 2, d.height / 2);
- return c
- },
- qp: function() {
- this.on = t
- },
- Bba: function() {
- this.RN = this.ib;
- this.Qc = 0;
- this.Jf = 100
- }
- });
- C.q8.create = function(c, d) {
- var f = new C.q8;
- return f != s && f.k(c, d) ? f: s
- };
- C.r8 = C.Ks.extend({
- Gw: function(c) {
- var d = C.Q.aa;
- c = C.Lb.create(c.sprite);
- C.L === C.la && (c.sprite.flippedY = q);
- c.type = C.Lb.Is;
- c.midPoint = C.d(0.5, 0.5);
- c.barChangeRate = C.d(1, 1);
- c.percentage = 100;
- this.Nw(c, d.width / 2, d.height / 2);
- return c
- }
- });
- C.r8.create = function(c, d) {
- var f = new C.r8;
- return f != s && f.k(c, d) ? f: s
- };
- C.o8 = C.tb.extend({
- nL: q,
- qa: "TransitionPageTurn",
- k: function(c, d, f) {
- this.nL = f;
- C.tb.prototype.k.call(this, c, d);
- return q
- },
- tB: function(c) {
- return this.nL ? C.zv.create(C.CK.create(this.D, c)) : C.CK.create(this.D, c)
- },
- Z: function() {
- C.tb.prototype.Z.call(this);
- var c = C.Q.aa,
- d;
- c.width > c.height ? (c = 16, d = 12) : (c = 12, d = 16);
- c = this.tB(C.size(c, d));
- this.nL ? (this.ib.visible = t, this.ib.Ya(C.La.create(C.Fj.create(), c, C.Jc.create(this.finish, this), C.Bv.create()))) : this.tc.Ya(C.La.create(c, C.Jc.create(this.finish, this), C.Bv.create()))
- },
- qp: function() {
- this.on = this.nL
- }
- });
- C.o8.create = function(c, d, f) {
- var g = new C.o8;
- g.k(c, d, f);
- return g
- };
- C.$a = {
- name: "Jacob__Codec"
- };
- C.vJa = function() {
- return C.$a.Kb.RP.apply(C.$a.Kb, arguments)
- };
- C.wJa = function() {
- var c = C.$a.hv.eda.apply(C.$a.hv, arguments);
- return C.$a.Kb.RP.apply(C.$a.Kb, [c])
- };
- C.eja = function(c, d) {
- d = d || 1;
- var f = this.wJa(c),
- g = [],
- h,
- k,
- n;
- h = 0;
- for (n = f.length / d; h < n; h++) {
- g[h] = 0;
- for (k = d - 1; 0 <= k; --k) g[h] += f.charCodeAt(h * d + k) << 8 * k
- }
- return g
- };
- C.D6a = function(c, d) {
- d = d || 1;
- var f = this.vJa(c),
- g = [],
- h,
- k,
- n;
- h = 0;
- for (n = f.length / d; h < n; h++) {
- g[h] = 0;
- for (k = d - 1; 0 <= k; --k) g[h] += f.charCodeAt(h * d + k) << 8 * k
- }
- return g
- };
- C.iNa = function(c) {
- c = c.split(",");
- var d = [],
- f;
- for (f = 0; f < c.length; f++) d.push(parseInt(c[f]));
- return d
- };
- C.$a.hv = {
- name: "Jacob__Codec__Base64"
- };
- C.$a.hv.UM = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d";
- C.$a.hv.eda = function(c) {
- var d = [],
- f,
- g,
- h,
- k,
- n,
- p = 0;
- for (c = c.replace(/[^A-Za-z0-9\+\/\=]/g, ""); p < c.length;) f = this.UM.indexOf(c.charAt(p++)),
- g = this.UM.indexOf(c.charAt(p++)),
- k = this.UM.indexOf(c.charAt(p++)),
- n = this.UM.indexOf(c.charAt(p++)),
- f = f << 2 | g >> 4,
- g = (g & 15) << 4 | k >> 2,
- h = (k & 3) << 6 | n,
- d.push(String.fromCharCode(f)),
- 64 != k && d.push(String.fromCharCode(g)),
- 64 != n && d.push(String.fromCharCode(h));
- return d = d.join("")
- };
- C.$a.hv.fda = function(c, d) {
- var f = this.eda(c),
- g = [],
- h,
- k,
- n;
- h = 0;
- for (n = f.length / d; h < n; h++) {
- g[h] = 0;
- for (k = d - 1; 0 <= k; --k) g[h] += f.charCodeAt(h * d + k) << 8 * k
- }
- return g
- };
- C.sJa = function(c) {
- if (0 != c.length % 4) return s;
- for (var d = c.length / 4,
- f = window.KNa ? new Uint32Array(d) : [], g = 0; g < d; g++) {
- var h = 4 * g;
- f[g] = c[h] + 256 * c[h + 1] + 65536 * c[h + 2] + 16777216 * c[h + 3]
- }
- return f
- };
- C.$a.Kb = function(c) {
- this.data = c;
- this.debug = t;
- this.Tr = m;
- this.files = 0;
- this.dS = [];
- this.j_ = Array(32768);
- this.Rn = 0;
- this.IQ = t;
- this.Lca = 0;
- this.zp = 1;
- this.zB = 0;
- this.AC = [];
- this.vda = m;
- this.vI = Array(C.$a.Kb.Tma);
- this.yx = Array(32);
- this.EJ = 0;
- this.IT = s;
- this.co = 0;
- this.RB = Array(17);
- this.RB[0] = 0;
- this.Gda = this.zda = m
- };
- C.$a.Kb.RP = function(c) {
- return (new C.$a.Kb(c)).RP()[0][0]
- };
- C.$a.Kb.kT = function() {
- this.ZO = this.YO = 0;
- this.o1 = s;
- this.HDa = -1
- };
- C.$a.Kb.Tma = 288;
- C.$a.Kb.J6 = 256;
- C.$a.Kb.$Z = [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, 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];
- C.$a.Kb.Wca = [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];
- C.$a.Kb.Xca = [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];
- C.$a.Kb.Vca = [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];
- C.$a.Kb.GB = [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];
- C.$a.Kb.border = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
- C.$a.Kb.prototype.RP = function() {
- this.QI = [];
- oa(this);
- return this.dS
- };
- C.$a.Kb.prototype.$ = function() {
- this.zB += 8;
- return this.Lca < this.data.length ? this.data.charCodeAt(this.Lca++) : -1
- };
- function qa(c) {
- var d;
- c.zB++;
- d = c.zp & 1;
- c.zp >>= 1;
- 0 == c.zp && (c.zp = c.$(), d = c.zp & 1, c.zp = c.zp >> 1 | 128);
- return d
- }
- function ra(c, d) {
- for (var f = 0,
- g = d; g--;) f = f << 1 | qa(c);
- d && (f = C.$a.Kb.$Z[f] >> 8 - d);
- return f
- }
- function wa(c, d) {
- c.j_[c.Rn++] = d;
- c.QI.push(String.fromCharCode(d));
- 32768 == c.Rn && (c.Rn = 0)
- }
- function za(c) {
- for (;;) {
- if (c.RB[c.co] >= c.Gda) return - 1;
- if (c.zda[c.RB[c.co]] == c.co) return c.RB[c.co]++;
- c.RB[c.co]++
- }
- }
- function Da(c) {
- var d = c.IT[c.EJ],
- f;
- if (17 == c.co) return - 1;
- c.EJ++;
- c.co++;
- f = za(c);
- if (0 <= f) d.YO = f;
- else if (d.YO = 32768, Da(c)) return - 1;
- f = za(c);
- if (0 <= f) d.ZO = f,
- d.o1 = s;
- else if (d.ZO = 32768, d.o1 = c.IT[c.EJ], d.HDa = c.EJ, Da(c)) return - 1;
- c.co--;
- return 0
- }
- function Ea(c, d, f, g) {
- c.IT = d;
- c.EJ = 0;
- c.zda = g;
- c.Gda = f;
- for (d = 0; 17 > d; d++) c.RB[d] = 0;
- c.co = 0;
- return Da(c) ? -1 : 0
- }
- function Ha(c, d) {
- for (var f, g, h = 0,
- k = d[h];;) if (f = qa(c)) {
- if (! (k.ZO & 32768)) return k.ZO;
- k = k.o1;
- f = d.length;
- for (g = 0; g < f; g++) if (d[g] === k) {
- h = g;
- break
- }
- } else {
- if (! (k.YO & 32768)) return k.YO;
- h++;
- k = d[h]
- }
- return - 1
- }
- function Ja(c) {
- var d, f, g, h, k;
- do
- if (d = qa(c), g = ra(c, 2), 0 == g) {
- c.zp = 1;
- g = c.$();
- g |= c.$() << 8;
- f = c.$();
- f |= c.$() << 8;
- for ((g ^ ~f) & 65535 && document.write("BlockLen checksum mismatch\n"); g--;) f = c.$(),
- wa(c, f)
- } else if (1 == g) for (;;) if (g = C.$a.Kb.$Z[ra(c, 7)] >> 1, 23 < g ? (g = g << 1 | qa(c), 199 < g ? (g -= 128, g = g << 1 | qa(c)) : (g -= 48, 143 < g && (g += 136))) : g += 256, 256 > g) wa(c, g);
- else if (256 == g) break;
- else {
- var n;
- g -= 257;
- k = ra(c, C.$a.Kb.Xca[g]) + C.$a.Kb.Wca[g];
- g = C.$a.Kb.$Z[ra(c, 5)] >> 3;
- 8 < C.$a.Kb.GB[g] ? (n = ra(c, 8), n |= ra(c, C.$a.Kb.GB[g] - 8) << 8) : n = ra(c, C.$a.Kb.GB[g]);
- n += C.$a.Kb.Vca[g];
- for (g = 0; g < k; g++) f = c.j_[c.Rn - n & 32767],
- wa(c, f)
- } else if (2 == g) {
- var p = Array(320);
- f = 257 + ra(c, 5);
- n = 1 + ra(c, 5);
- h = 4 + ra(c, 4);
- for (g = 0; 19 > g; g++) p[g] = 0;
- for (g = 0; g < h; g++) p[C.$a.Kb.border[g]] = ra(c, 3);
- k = c.yx.length;
- for (h = 0; h < k; h++) c.yx[h] = new C.$a.Kb.kT;
- if (Ea(c, c.yx, 19, p)) {
- c.Rn = 0;
- return
- }
- k = f + n;
- h = 0;
- for (var r = -1; h < k;) if (r++, g = Ha(c, c.yx), 16 > g) p[h++] = g;
- else if (16 == g) {
- var v;
- g = 3 + ra(c, 2);
- if (h + g > k) {
- c.Rn = 0;
- return
- }
- for (v = h ? p[h - 1] : 0; g--;) p[h++] = v
- } else {
- g = 17 == g ? 3 + ra(c, 3) : 11 + ra(c, 7);
- if (h + g > k) {
- c.Rn = 0;
- return
- }
- for (; g--;) p[h++] = 0
- }
- k = c.vI.length;
- for (h = 0; h < k; h++) c.vI[h] = new C.$a.Kb.kT;
- if (Ea(c, c.vI, f, p)) {
- c.Rn = 0;
- return
- }
- k = c.vI.length;
- for (h = 0; h < k; h++) c.yx[h] = new C.$a.Kb.kT;
- g = [];
- for (h = f; h < p.length; h++) g[h - f] = p[h];
- if (Ea(c, c.yx, n, g)) {
- c.Rn = 0;
- return
- }
- for (;;) if (g = Ha(c, c.vI), 256 <= g) {
- g -= 256;
- if (0 == g) break;
- g--;
- k = ra(c, C.$a.Kb.Xca[g]) + C.$a.Kb.Wca[g];
- g = Ha(c, c.yx);
- 8 < C.$a.Kb.GB[g] ? (n = ra(c, 8), n |= ra(c, C.$a.Kb.GB[g] - 8) << 8) : n = ra(c, C.$a.Kb.GB[g]);
- for (n += C.$a.Kb.Vca[g]; k--;) f = c.j_[c.Rn - n & 32767],
- wa(c, f)
- } else wa(c, g)
- }
- while (!d);
- c.Rn = 0;
- c.zp = 1
- }
- function oa(c) {
- c.QI = [];
- c.IQ = t;
- var d = [];
- d[0] = c.$();
- d[1] = c.$();
- 120 == d[0] && 218 == d[1] && (Ja(c), c.dS[c.files] = [c.QI.join(""), "geonext.gxt"], c.files++);
- 31 == d[0] && 139 == d[1] && (La(c), c.dS[c.files] = [c.QI.join(""), "file"], c.files++);
- if (80 == d[0] && 75 == d[1] && (c.IQ = q, d[2] = c.$(), d[3] = c.$(), 3 == d[2] && 4 == d[3])) {
- d[0] = c.$();
- d[1] = c.$();
- c.Tr = c.$();
- c.Tr |= c.$() << 8;
- d = c.$();
- d |= c.$() << 8;
- c.$();
- c.$();
- c.$();
- c.$();
- c.$();
- c.$();
- c.$();
- c.$();
- c.$();
- c.$();
- c.$();
- c.$();
- var f = c.$(),
- f = f | c.$() << 8,
- g = c.$(),
- g = g | c.$() << 8,
- h = 0;
- for (c.AC = []; f--;) {
- var k = c.$();
- "/" == k | ":" == k ? h = 0 : h < C.$a.Kb.J6 - 1 && (c.AC[h++] = String.fromCharCode(k))
- }
- c.vda || (c.vda = c.AC);
- for (var h = 0; h < g;) c.$(),
- h++;
- 8 == d && (Ja(c), c.dS[c.files] = [c.QI.join(""), c.AC.join("")], c.files++);
- La(c)
- }
- }
- function La(c) {
- var d = [],
- f;
- c.Tr & 8 && (d[0] = c.$(), d[1] = c.$(), d[2] = c.$(), d[3] = c.$(), c.$(), c.$(), c.$(), c.$(), c.$(), c.$(), c.$(), c.$());
- c.IQ && oa(c);
- d[0] = c.$();
- if (8 == d[0]) {
- c.Tr = c.$();
- c.$();
- c.$();
- c.$();
- c.$();
- c.$();
- c.$();
- if (c.Tr & 4) {
- d[0] = c.$();
- d[2] = c.$();
- c.co = d[0] + 256 * d[1];
- for (d = 0; d < c.co; d++) c.$()
- }
- if (c.Tr & 8) {
- d = 0;
- for (c.AC = []; f = c.$();) {
- if ("7" == f || ":" == f) d = 0;
- d < C.$a.Kb.J6 - 1 && (c.AC[d++] = f)
- }
- }
- if (c.Tr & 16) for (; c.$(););
- c.Tr & 2 && (c.$(), c.$());
- Ja(c);
- c.$();
- c.$();
- c.$();
- c.$();
- c.IQ && oa(c)
- }
- };
- /*
- zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
- (function() {
- function c(c) {
- e(c)
- }
- function d(c, d) {
- var f = c.split("."),
- g = N; ! (f[0] in g) && g.execScript && g.execScript("var " + f[0]);
- for (var h; f.length && (h = f.shift());) ! f.length && d !== U ? g[h] = d: g = g[h] ? g[h] : g[h] = {}
- }
- function f(c) {
- if ("string" === typeof c) {
- c = c.split("");
- var d, f;
- d = 0;
- for (f = c.length; d < f; d++) c[d] = (c[d].charCodeAt(0) & 255) >>> 0
- }
- d = 1;
- f = 0;
- for (var g = c.length,
- h, k = 0; 0 < g;) {
- h = 1024 < g ? 1024 : g;
- g -= h;
- do d += c[k++],
- f += d;
- while (--h);
- d %= 65521;
- f %= 65521
- }
- return (f << 16 | d) >>> 0
- }
- function g(d, f) {
- this.index = "number" === typeof f ? f: 0;
- this.hI = 0;
- this.buffer = d instanceof(Q ? Uint8Array: Array) ? d: new(Q ? Uint8Array: Array)(32768);
- 2 * this.buffer.length <= this.index && c(Error("invalid index"));
- this.buffer.length <= this.index && this.Un()
- }
- function h(c) {
- this.buffer = new(Q ? Uint16Array: Array)(2 * c);
- this.length = 0
- }
- function k(c) {
- var d = c.length,
- f = 0,
- g = Number.POSITIVE_INFINITY,
- h, k, n, p, r, v, y, z, D;
- for (z = 0; z < d; ++z) c[z] > f && (f = c[z]),
- c[z] < g && (g = c[z]);
- h = 1 << f;
- k = new(Q ? Uint32Array: Array)(h);
- n = 1;
- p = 0;
- for (r = 2; n <= f;) {
- for (z = 0; z < d; ++z) if (c[z] === n) {
- v = 0;
- y = p;
- for (D = 0; D < n; ++D) v = v << 1 | y & 1,
- y >>= 1;
- for (D = v; D < h; D += r) k[D] = n << 16 | z; ++p
- }++n;
- p <<= 1;
- r <<= 1
- }
- return [k, f, g]
- }
- function n(c, d) {
- this.Rf = ta;
- this.ba = 0;
- this.input = c;
- this.b = 0;
- d && (d.hEa && (this.ba = d.hEa), "number" === typeof d.A_ && (this.Rf = d.A_), d.QQ && (this.a = Q && d.QQ instanceof Array ? new Uint8Array(d.QQ) : d.QQ), "number" === typeof d.QEa && (this.b = d.QEa));
- this.a || (this.a = new(Q ? Uint8Array: Array)(32768))
- }
- function p(c, d) {
- this.length = c;
- this.rma = d
- }
- function r() {
- var d = ba;
- switch (X) {
- case 3 === d: return [257, d - 3, 0];
- case 4 === d: return [258, d - 4, 0];
- case 5 === d: return [259, d - 5, 0];
- case 6 === d: return [260, d - 6, 0];
- case 7 === d: return [261, d - 7, 0];
- case 8 === d: return [262, d - 8, 0];
- case 9 === d: return [263, d - 9, 0];
- case 10 === d: return [264, d - 10, 0];
- case 12 >= d: return [265, d - 11, 1];
- case 14 >= d: return [266, d - 13, 1];
- case 16 >= d: return [267, d - 15, 1];
- case 18 >= d: return [268, d - 17, 1];
- case 22 >= d: return [269, d - 19, 2];
- case 26 >= d: return [270, d - 23, 2];
- case 30 >= d: return [271, d - 27, 2];
- case 34 >= d: return [272, d - 31, 2];
- case 42 >= d: return [273, d - 35, 3];
- case 50 >= d: return [274, d - 43, 3];
- case 58 >= d: return [275, d - 51, 3];
- case 66 >= d: return [276, d - 59, 3];
- case 82 >= d: return [277, d - 67, 4];
- case 98 >= d: return [278, d - 83, 4];
- case 114 >= d: return [279, d - 99, 4];
- case 130 >= d: return [280, d - 115, 4];
- case 162 >= d: return [281, d - 131, 5];
- case 194 >= d: return [282, d - 163, 5];
- case 226 >= d: return [283, d - 195, 5];
- case 257 >= d: return [284, d - 227, 5];
- case 258 === d: return [285, d - 258, 0];
- default:
- c("invalid length: " + d)
- }
- }
- function v(d, f) {
- function g(d, f) {
- var h = d.rma,
- k = [],
- n = 0,
- p;
- p = xa[d.length];
- k[n++] = p & 65535;
- k[n++] = p >> 16 & 255;
- k[n++] = p >> 24;
- var r;
- switch (X) {
- case 1 === h: r = [0, h - 1, 0];
- break;
- case 2 === h: r = [1, h - 2, 0];
- break;
- case 3 === h: r = [2, h - 3, 0];
- break;
- case 4 === h: r = [3, h - 4, 0];
- break;
- case 6 >= h: r = [4, h - 5, 1];
- break;
- case 8 >= h: r = [5, h - 7, 1];
- break;
- case 12 >= h: r = [6, h - 9, 2];
- break;
- case 16 >= h: r = [7, h - 13, 2];
- break;
- case 24 >= h: r = [8, h - 17, 3];
- break;
- case 32 >= h: r = [9, h - 25, 3];
- break;
- case 48 >= h: r = [10, h - 33, 4];
- break;
- case 64 >= h: r = [11, h - 49, 4];
- break;
- case 96 >= h: r = [12, h - 65, 5];
- break;
- case 128 >= h: r = [13, h - 97, 5];
- break;
- case 192 >= h: r = [14, h - 129, 6];
- break;
- case 256 >= h: r = [15, h - 193, 6];
- break;
- case 384 >= h: r = [16, h - 257, 7];
- break;
- case 512 >= h: r = [17, h - 385, 7];
- break;
- case 768 >= h: r = [18, h - 513, 8];
- break;
- case 1024 >= h: r = [19, h - 769, 8];
- break;
- case 1536 >= h: r = [20, h - 1025, 9];
- break;
- case 2048 >= h: r = [21, h - 1537, 9];
- break;
- case 3072 >= h: r = [22, h - 2049, 10];
- break;
- case 4096 >= h: r = [23, h - 3073, 10];
- break;
- case 6144 >= h: r = [24, h - 4097, 11];
- break;
- case 8192 >= h: r = [25, h - 6145, 11];
- break;
- case 12288 >= h: r = [26, h - 8193, 12];
- break;
- case 16384 >= h: r = [27, h - 12289, 12];
- break;
- case 24576 >= h: r = [28, h - 16385, 13];
- break;
- case 32768 >= h: r = [29, h - 24577, 13];
- break;
- default:
- c("invalid distance")
- }
- p = r;
- k[n++] = p[0];
- k[n++] = p[1];
- k[n++] = p[2];
- h = 0;
- for (n = k.length; h < n; ++h) D[E++] = k[h];
- G[k[0]]++;
- K[k[3]]++;
- F = d.length + f - 1;
- z = s
- }
- var h, k, n, r, v, y = {},
- z, D = Q ? new Uint16Array(2 * f.length) : [],
- E = 0,
- F = 0,
- G = new(Q ? Uint32Array: Array)(286),
- K = new(Q ? Uint32Array: Array)(30),
- M = d.ba,
- O;
- if (!Q) {
- for (n = 0; 285 >= n;) G[n++] = 0;
- for (n = 0; 29 >= n;) K[n++] = 0
- }
- G[256] = 1;
- h = 0;
- for (k = f.length; h < k; ++h) {
- n = v = 0;
- for (r = 3; n < r && h + n !== k; ++n) v = v << 8 | f[h + n];
- y[v] === U && (y[v] = []);
- n = y[v];
- if (! (0 < F--)) {
- for (; 0 < n.length && 32768 < h - n[0];) n.shift();
- if (h + 3 >= k) {
- z && g(z, -1);
- n = 0;
- for (r = k - h; n < r; ++n) O = f[h + n],
- D[E++] = O,
- ++G[O];
- break
- }
- if (0 < n.length) {
- v = r = U;
- var S = 0,
- R = U,
- N = U,
- W = R = U,
- ca = f.length,
- N = 0,
- W = n.length;
- a: for (; N < W; N++) {
- r = n[W - N - 1];
- R = 3;
- if (3 < S) {
- for (R = S; 3 < R; R--) if (f[r + R - 1] !== f[h + R - 1]) continue a;
- R = S
- }
- for (; 258 > R && h + R < ca && f[r + R] === f[h + R];)++R;
- R > S && (v = r, S = R);
- if (258 === R) break
- }
- r = new p(S, h - v);
- z ? z.length < r.length ? (O = f[h - 1], D[E++] = O, ++G[O], g(r, 0)) : g(z, -1) : r.length < M ? z = r: g(r, 0)
- } else z ? g(z, -1) : (O = f[h], D[E++] = O, ++G[O])
- }
- n.push(h)
- }
- D[E++] = 256;
- G[256]++;
- d.Pma = G;
- d.Gma = K;
- return Q ? D.subarray(0, E) : D
- }
- function y(c, d) {
- function f(c) {
- var d = D[c][E[c]];
- d === y ? (f(c + 1), f(c + 1)) : --z[d]; ++E[c]
- }
- var g = c.length,
- k = new h(572),
- n = new(Q ? Uint8Array: Array)(g),
- p,
- r,
- v;
- if (!Q) for (r = 0; r < g; r++) n[r] = 0;
- for (r = 0; r < g; ++r) 0 < c[r] && k.push(r, c[r]);
- g = Array(k.length / 2);
- p = new(Q ? Uint32Array: Array)(k.length / 2);
- if (1 === g.length) return n[k.pop().index] = 1,
- n;
- r = 0;
- for (v = k.length / 2; r < v; ++r) g[r] = k.pop(),
- p[r] = g[r].value;
- var y = p.length;
- r = new(Q ? Uint16Array: Array)(d);
- var k = new(Q ? Uint8Array: Array)(d),
- z = new(Q ? Uint8Array: Array)(y);
- v = Array(d);
- var D = Array(d),
- E = Array(d),
- F = (1 << d) - y,
- G = 1 << d - 1,
- K,
- M,
- O;
- r[d - 1] = y;
- for (K = 0; K < d; ++K) F < G ? k[K] = 0 : (k[K] = 1, F -= G),
- F <<= 1,
- r[d - 2 - K] = (r[d - 1 - K] / 2 | 0) + y;
- r[0] = k[0];
- v[0] = Array(r[0]);
- D[0] = Array(r[0]);
- for (K = 1; K < d; ++K) r[K] > 2 * r[K - 1] + k[K] && (r[K] = 2 * r[K - 1] + k[K]),
- v[K] = Array(r[K]),
- D[K] = Array(r[K]);
- for (F = 0; F < y; ++F) z[F] = d;
- for (G = 0; G < r[d - 1]; ++G) v[d - 1][G] = p[G],
- D[d - 1][G] = G;
- for (F = 0; F < d; ++F) E[F] = 0;
- 1 === k[d - 1] && (--z[0], ++E[d - 1]);
- for (K = d - 2; 0 <= K; --K) {
- M = F = 0;
- O = E[K + 1];
- for (G = 0; G < r[K]; G++) M = v[K + 1][O] + v[K + 1][O + 1],
- M > p[F] ? (v[K][G] = M, D[K][G] = y, O += 2) : (v[K][G] = p[F], D[K][G] = F, ++F);
- E[K] = 0;
- 1 === k[K] && f(K)
- }
- p = z;
- r = 0;
- for (v = g.length; r < v; ++r) n[g[r].index] = p[r];
- return n
- }
- function z(d) {
- var f = new(Q ? Uint16Array: Array)(d.length),
- g = [],
- h = [],
- k = 0,
- n,
- p,
- r;
- n = 0;
- for (p = d.length; n < p; n++) g[d[n]] = (g[d[n]] | 0) + 1;
- n = 1;
- for (p = 16; n <= p; n++) h[n] = k,
- k += g[n] | 0,
- k > 1 << n && c("overcommitted"),
- k <<= 1;
- 65536 > k && c("undercommitted");
- n = 0;
- for (p = d.length; n < p; n++) {
- k = h[d[n]];
- h[d[n]] += 1;
- g = f[n] = 0;
- for (r = d[n]; g < r; g++) f[n] = f[n] << 1 | k & 1,
- k >>>= 1
- }
- return f
- }
- function D(c, d) {
- this.input = c;
- this.a = new(Q ? Uint8Array: Array)(32768);
- this.Rf = ca.pQ;
- var f = {},
- g;
- if ((d || !(d = {})) && "number" === typeof d.A_) this.Rf = d.A_;
- for (g in d) f[g] = d[g];
- f.QQ = this.a;
- this.f = new n(this.input, f)
- }
- function E(d, f) {
- this.qQ = [];
- this.AQ = 32768;
- this.xm = this.g = this.H = this.ZQ = 0;
- this.input = Q ? new Uint8Array(d) : d;
- this.tl = t;
- this.FQ = W;
- this.q4 = t;
- if (f || !(f = {})) f.index && (this.H = f.index),
- f.k_ && (this.AQ = f.k_),
- f.l_ && (this.FQ = f.l_),
- f.$p && (this.q4 = f.$p);
- switch (this.FQ) {
- case Ma:
- this.b = 32768;
- this.a = new(Q ? Uint8Array: Array)(32768 + this.AQ + 258);
- break;
- case W:
- this.b = 0;
- this.a = new(Q ? Uint8Array: Array)(this.AQ);
- this.Un = this.Fma;
- this.K3 = this.tma;
- this.LQ = this.yma;
- break;
- default:
- c(Error("invalid inflate mode"))
- }
- }
- function F(d, f) {
- for (var g = d.g,
- h = d.xm,
- k = d.input,
- n = d.H,
- p; h < f;) p = k[n++],
- p === U && c(Error("input buffer is broken")),
- g |= p << h,
- h += 8;
- d.g = g >>> f;
- d.xm = h - f;
- d.H = n;
- return g & (1 << f) - 1
- }
- function G(d, f) {
- for (var g = d.g,
- h = d.xm,
- k = d.input,
- n = d.H,
- p = f[0], r = f[1], v; h < r;) v = k[n++],
- v === U && c(Error("input buffer is broken")),
- g |= v << h,
- h += 8;
- k = p[g & (1 << r) - 1];
- p = k >>> 16;
- d.g = g >> p;
- d.xm = h - p;
- d.H = n;
- return k & 65535
- }
- function K(c) {
- function d(c, f, g) {
- var h, k, n, p;
- for (p = 0; p < c;) switch (h = G(this, f), h) {
- case 16:
- for (n = 3 + F(this, 2); n--;) g[p++] = k;
- break;
- case 17:
- for (n = 3 + F(this, 3); n--;) g[p++] = 0;
- k = 0;
- break;
- case 18:
- for (n = 11 + F(this, 7); n--;) g[p++] = 0;
- k = 0;
- break;
- default:
- k = g[p++] = h
- }
- return g
- }
- var f = F(c, 5) + 257,
- g = F(c, 5) + 1,
- h = F(c, 4) + 4,
- n = new(Q ? Uint8Array: Array)(pa.length),
- p;
- for (p = 0; p < h; ++p) n[pa[p]] = F(c, 3);
- h = k(n);
- n = new(Q ? Uint8Array: Array)(f);
- p = new(Q ? Uint8Array: Array)(g);
- c.LQ(k(d.call(c, f, h, n)), k(d.call(c, g, h, p)))
- }
- function O(d, f) {
- var g, h;
- this.input = d;
- this.H = 0;
- if (f || !(f = {})) f.index && (this.H = f.index),
- f.tja && (this.Yma = f.tja);
- g = d[this.H++];
- h = d[this.H++];
- switch (g & 15) {
- case Ka:
- this.method = Ka;
- break;
- default:
- c(Error("unsupported compression method"))
- }
- 0 !== ((g << 8) + h) % 31 && c(Error("invalid fcheck flag:" + ((g << 8) + h) % 31));
- h & 32 && c(Error("fdict flag is not supported"));
- this.g4 = new E(d, {
- index: this.H,
- k_: f.k_,
- l_: f.l_,
- $p: f.$p
- })
- }
- var U = m,
- X = q,
- N = this,
- Q = "undefined" !== typeof Uint8Array && "undefined" !== typeof Uint16Array && "undefined" !== typeof Uint32Array;
- g.prototype.Un = function() {
- var c = this.buffer,
- d, f = c.length,
- g = new(Q ? Uint8Array: Array)(f << 1);
- if (Q) g.set(c);
- else for (d = 0; d < f; ++d) g[d] = c[d];
- return this.buffer = g
- };
- g.prototype.P = function(c, d, f) {
- var g = this.buffer,
- h = this.index,
- k = this.hI,
- n = g[h];
- f && 1 < d && (c = 8 < d ? (aa[c & 255] << 24 | aa[c >>> 8 & 255] << 16 | aa[c >>> 16 & 255] << 8 | aa[c >>> 24 & 255]) >> 32 - d: aa[c] >> 8 - d);
- if (8 > d + k) n = n << d | c,
- k += d;
- else for (f = 0; f < d; ++f) n = n << 1 | c >> d - f - 1 & 1,
- 8 === ++k && (k = 0, g[h++] = aa[n], n = 0, h === g.length && (g = this.Un()));
- g[h] = n;
- this.buffer = g;
- this.hI = k;
- this.index = h
- };
- g.prototype.finish = function() {
- var c = this.buffer,
- d = this.index,
- f;
- 0 < this.hI && (c[d] <<= 8 - this.hI, c[d] = aa[c[d]], d++);
- Q ? f = c.subarray(0, d) : (c.length = d, f = c);
- return f
- };
- var S = new(Q ? Uint8Array: Array)(256),
- M;
- for (M = 0; 256 > M; ++M) {
- for (var R = M,
- $ = R,
- sa = 7,
- R = R >>> 1; R; R >>>= 1) $ <<= 1,
- $ |= R & 1,
- --sa;
- S[M] = ($ << sa & 255) >>> 0
- }
- var aa = S,
- S = [0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685, 2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995, 2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648, 2227061214, 450548861, 1843258603, 4107580753, 2211677639, 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, 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, 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, 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, 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];
- Q && new Uint32Array(S);
- h.prototype.getParent = function(c) {
- return 2 * ((c - 2) / 4 | 0)
- };
- h.prototype.push = function(c, d) {
- var f, g, h = this.buffer,
- k;
- f = this.length;
- h[this.length++] = d;
- for (h[this.length++] = c; 0 < f;) if (g = this.getParent(f), h[f] > h[g]) k = h[f],
- h[f] = h[g],
- h[g] = k,
- k = h[f + 1],
- h[f + 1] = h[g + 1],
- h[g + 1] = k,
- f = g;
- else break;
- return this.length
- };
- h.prototype.pop = function() {
- var c, d, f = this.buffer,
- g, h, k;
- d = f[0];
- c = f[1];
- this.length -= 2;
- f[0] = f[this.length];
- f[1] = f[this.length + 1];
- for (k = 0;;) {
- h = 2 * k + 2;
- if (h >= this.length) break;
- h + 2 < this.length && f[h + 2] > f[h] && (h += 2);
- if (f[h] > f[k]) g = f[k],
- f[k] = f[h],
- f[h] = g,
- g = f[k + 1],
- f[k + 1] = f[h + 1],
- f[h + 1] = g;
- else break;
- k = h
- }
- return {
- index: c,
- value: d,
- length: this.length
- }
- };
- var ta = 2,
- S = {
- NONE: 0,
- r: 1,
- pQ: ta,
- AMa: 3
- },
- ma = [];
- for (M = 0; 288 > M; M++) switch (X) {
- case 143 >= M: ma.push([M + 48, 8]);
- break;
- case 255 >= M: ma.push([M - 144 + 400, 9]);
- break;
- case 279 >= M: ma.push([M - 256 + 0, 7]);
- break;
- case 287 >= M: ma.push([M - 280 + 192, 8]);
- break;
- default:
- c("invalid literal: " + M)
- }
- n.prototype.ds = function() {
- var d, f, h, k, n = this.input;
- switch (this.Rf) {
- case 0:
- h = 0;
- for (k = n.length; h < k;) {
- f = Q ? n.subarray(h, h + 65535) : n.slice(h, h + 65535);
- h += f.length;
- var p = h === k,
- r = U,
- D = r = U,
- D = r = U,
- E = this.a,
- F = this.b;
- if (Q) {
- for (E = new Uint8Array(this.a.buffer); E.length <= F + f.length + 5;) E = new Uint8Array(E.length << 1);
- E.set(this.a)
- }
- r = p ? 1 : 0;
- E[F++] = r | 0;
- r = f.length;
- D = ~r + 65536 & 65535;
- E[F++] = r & 255;
- E[F++] = r >>> 8 & 255;
- E[F++] = D & 255;
- E[F++] = D >>> 8 & 255;
- if (Q) E.set(f, F),
- F += f.length,
- E = E.subarray(0, F);
- else {
- r = 0;
- for (D = f.length; r < D; ++r) E[F++] = f[r];
- E.length = F
- }
- this.b = F;
- this.a = E
- }
- break;
- case 1:
- h = new g(new Uint8Array(this.a.buffer), this.b);
- h.P(1, 1, X);
- h.P(1, 2, X);
- n = v(this, n);
- f = 0;
- for (p = n.length; f < p; f++) if (k = n[f], g.prototype.P.apply(h, ma[k]), 256 < k) h.P(n[++f], n[++f], X),
- h.P(n[++f], 5),
- h.P(n[++f], n[++f], X);
- else if (256 === k) break;
- this.a = h.finish();
- this.b = this.a.length;
- break;
- case ta:
- k = new g(new Uint8Array(this.a), this.b);
- var G, K, M, O = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
- S,
- R,
- r = Array(19),
- N,
- E = ta;
- k.P(1, 1, X);
- k.P(E, 2, X);
- n = v(this, n);
- D = y(this.Pma, 15);
- S = z(D);
- E = y(this.Gma, 7);
- F = z(E);
- for (G = 286; 257 < G && 0 === D[G - 1]; G--);
- for (K = 30; 1 < K && 0 === E[K - 1]; K--);
- var W = G,
- ca = K;
- d = new(Q ? Uint32Array: Array)(W + ca);
- var $ = new(Q ? Uint32Array: Array)(316),
- aa,
- ba;
- R = new(Q ? Uint8Array: Array)(19);
- for (N = M = 0; N < W; N++) d[M++] = D[N];
- for (N = 0; N < ca; N++) d[M++] = E[N];
- if (!Q) {
- N = 0;
- for (ca = R.length; N < ca; ++N) R[N] = 0
- }
- N = aa = 0;
- for (ca = d.length; N < ca; N += M) {
- for (M = 1; N + M < ca && d[N + M] === d[N]; ++M);
- W = M;
- if (0 === d[N]) if (3 > W) for (; 0 < W--;) $[aa++] = 0,
- R[0]++;
- else for (; 0 < W;) ba = 138 > W ? W: 138,
- ba > W - 3 && ba < W && (ba = W - 3),
- 10 >= ba ? ($[aa++] = 17, $[aa++] = ba - 3, R[17]++) : ($[aa++] = 18, $[aa++] = ba - 11, R[18]++),
- W -= ba;
- else if ($[aa++] = d[N], R[d[N]]++, W--, 3 > W) for (; 0 < W--;) $[aa++] = d[N],
- R[d[N]]++;
- else for (; 0 < W;) ba = 6 > W ? W: 6,
- ba > W - 3 && ba < W && (ba = W - 3),
- $[aa++] = 16,
- $[aa++] = ba - 3,
- R[16]++,
- W -= ba
- }
- d = Q ? $.subarray(0, aa) : $.slice(0, aa);
- R = y(R, 7);
- for (N = 0; 19 > N; N++) r[N] = R[O[N]];
- for (M = 19; 4 < M && 0 === r[M - 1]; M--);
- O = z(R);
- k.P(G - 257, 5, X);
- k.P(K - 1, 5, X);
- k.P(M - 4, 4, X);
- for (N = 0; N < M; N++) k.P(r[N], 3, X);
- N = 0;
- for (r = d.length; N < r; N++) if (f = d[N], k.P(O[f], R[f], X), 16 <= f) {
- N++;
- switch (f) {
- case 16:
- p = 2;
- break;
- case 17:
- p = 3;
- break;
- case 18:
- p = 7;
- break;
- default:
- c("invalid code: " + f)
- }
- k.P(d[N], p, X)
- }
- p = [S, D];
- F = [F, E];
- f = p[0];
- p = p[1];
- E = F[0];
- S = F[1];
- F = 0;
- for (r = n.length; F < r; ++F) if (h = n[F], k.P(f[h], p[h], X), 256 < h) k.P(n[++F], n[++F], X),
- D = n[++F],
- k.P(E[D], S[D], X),
- k.P(n[++F], n[++F], X);
- else if (256 === h) break;
- this.a = k.finish();
- this.b = this.a.length;
- break;
- default:
- c("invalid compression type")
- }
- return this.a
- };
- M = [];
- var ba;
- for (ba = 3; 258 >= ba; ba++) R = r(),
- M[ba] = R[2] << 24 | R[1] << 16 | R[0];
- var xa = Q ? new Uint32Array(M) : M,
- ca = S;
- D.prototype.ds = function() {
- var d, g, h, k, n = 0;
- k = this.a;
- d = Ka;
- switch (d) {
- case Ka:
- g = Math.LOG2E * Math.log(32768) - 8;
- break;
- default:
- c(Error("invalid compression method"))
- }
- g = g << 4 | d;
- k[n++] = g;
- switch (d) {
- case Ka:
- switch (this.Rf) {
- case ca.NONE:
- h = 0;
- break;
- case ca.r:
- h = 1;
- break;
- case ca.pQ:
- h = 2;
- break;
- default:
- c(Error("unsupported compression type"))
- }
- break;
- default:
- c(Error("invalid compression method"))
- }
- d = h << 6 | 0;
- k[n++] = d | 31 - (256 * g + d) % 31;
- d = f(this.input);
- this.f.b = n;
- k = this.f.ds();
- n = k.length;
- Q && (k = new Uint8Array(k.buffer), k.length <= n + 4 && (this.a = new Uint8Array(k.length + 4), this.a.set(k), k = this.a), k = k.subarray(0, n + 4));
- k[n++] = d >> 24 & 255;
- k[n++] = d >> 16 & 255;
- k[n++] = d >> 8 & 255;
- k[n++] = d & 255;
- return k
- };
- d("Zlib.Deflate", D);
- d("Zlib.Deflate.compress",
- function(c, d) {
- return (new D(c, d)).ds()
- });
- d("Zlib.Deflate.CompressionType", ca);
- d("Zlib.Deflate.CompressionType.NONE", ca.NONE);
- d("Zlib.Deflate.CompressionType.FIXED", ca.r);
- d("Zlib.Deflate.CompressionType.DYNAMIC", ca.pQ);
- var Ma = 0,
- W = 1,
- S = {
- Bla: Ma,
- oka: W
- };
- E.prototype.d = function() {
- for (; ! this.tl;) {
- var d = F(this, 3);
- d & 1 && (this.tl = X);
- d >>>= 1;
- switch (d) {
- case 0:
- var d = this.input,
- f = this.H,
- g = this.a,
- h = this.b,
- k = U,
- n = U,
- p = U,
- r = g.length,
- k = U;
- this.xm = this.g = 0;
- k = d[f++];
- k === U && c(Error("invalid uncompressed block header: LEN (first byte)"));
- n = k;
- k = d[f++];
- k === U && c(Error("invalid uncompressed block header: LEN (second byte)"));
- n |= k << 8;
- k = d[f++];
- k === U && c(Error("invalid uncompressed block header: NLEN (first byte)"));
- p = k;
- k = d[f++];
- k === U && c(Error("invalid uncompressed block header: NLEN (second byte)"));
- p |= k << 8;
- n === ~p && c(Error("invalid uncompressed block header: length verify"));
- f + n > d.length && c(Error("input buffer is broken"));
- switch (this.FQ) {
- case Ma:
- for (; h + n > g.length;) {
- k = r - h;
- n -= k;
- if (Q) g.set(d.subarray(f, f + k), h),
- h += k,
- f += k;
- else for (; k--;) g[h++] = d[f++];
- this.b = h;
- g = this.Un();
- h = this.b
- }
- break;
- case W:
- for (; h + n > g.length;) g = this.Un({
- ea: 2
- });
- break;
- default:
- c(Error("invalid inflate mode"))
- }
- if (Q) g.set(d.subarray(f, f + n), h),
- h += n,
- f += n;
- else for (; n--;) g[h++] = d[f++];
- this.H = f;
- this.b = h;
- this.a = g;
- break;
- case 1:
- this.LQ(fb, gb);
- break;
- case 2:
- K(this);
- break;
- default:
- c(Error("unknown BTYPE: " + d))
- }
- }
- return this.K3()
- };
- M = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
- var pa = Q ? new Uint16Array(M) : M;
- M = [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];
- var hb = Q ? new Uint16Array(M) : M;
- M = [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];
- var Na = Q ? new Uint8Array(M) : M;
- M = [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];
- var Gb = Q ? new Uint16Array(M) : M;
- M = [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];
- var Aa = Q ? new Uint8Array(M) : M;
- M = new(Q ? Uint8Array: Array)(288);
- R = 0;
- for ($ = M.length; R < $; ++R) M[R] = 143 >= R ? 8 : 255 >= R ? 9 : 279 >= R ? 7 : 8;
- var fb = k(M);
- M = new(Q ? Uint8Array: Array)(30);
- R = 0;
- for ($ = M.length; R < $; ++R) M[R] = 5;
- var gb = k(M);
- E.prototype.LQ = function(c, d) {
- var f = this.a,
- g = this.b;
- this.xa = c;
- for (var h = f.length - 258,
- k, n, p; 256 !== (k = G(this, c));) if (256 > k) g >= h && (this.b = g, f = this.Un(), g = this.b),
- f[g++] = k;
- else {
- k -= 257;
- p = hb[k];
- 0 < Na[k] && (p += F(this, Na[k]));
- k = G(this, d);
- n = Gb[k];
- 0 < Aa[k] && (n += F(this, Aa[k]));
- for (g >= h && (this.b = g, f = this.Un(), g = this.b); p--;) f[g] = f[g++-n]
- }
- for (; 8 <= this.xm;) this.xm -= 8,
- this.H--;
- this.b = g
- };
- E.prototype.yma = function(c, d) {
- var f = this.a,
- g = this.b;
- this.xa = c;
- for (var h = f.length,
- k, n, p; 256 !== (k = G(this, c));) if (256 > k) g >= h && (f = this.Un(), h = f.length),
- f[g++] = k;
- else {
- k -= 257;
- p = hb[k];
- 0 < Na[k] && (p += F(this, Na[k]));
- k = G(this, d);
- n = Gb[k];
- 0 < Aa[k] && (n += F(this, Aa[k]));
- for (g + p > h && (f = this.Un(), h = f.length); p--;) f[g] = f[g++-n]
- }
- for (; 8 <= this.xm;) this.xm -= 8,
- this.H--;
- this.b = g
- };
- E.prototype.Un = function() {
- var c = new(Q ? Uint8Array: Array)(this.b - 32768),
- d = this.b - 32768,
- f,
- g,
- h = this.a;
- if (Q) c.set(h.subarray(32768, c.length));
- else {
- f = 0;
- for (g = c.length; f < g; ++f) c[f] = h[f + 32768]
- }
- this.qQ.push(c);
- this.ZQ += c.length;
- if (Q) h.set(h.subarray(d, d + 32768));
- else for (f = 0; 32768 > f; ++f) h[f] = h[d + f];
- this.b = 32768;
- return h
- };
- E.prototype.Fma = function(c) {
- var d, f = this.input.length / this.H + 1 | 0,
- g, h, k, n = this.input,
- p = this.a;
- c && ("number" === typeof c.ea && (f = c.ea), "number" === typeof c.mma && (f += c.mma));
- 2 > f ? (g = (n.length - this.H) / this.xa[2], k = 258 * (g / 2) | 0, h = k < p.length ? p.length + k: p.length << 1) : h = p.length * f;
- Q ? (d = new Uint8Array(h), d.set(p)) : d = p;
- return this.a = d
- };
- E.prototype.K3 = function() {
- var c = 0,
- d = this.a,
- f = this.qQ,
- g, h = new(Q ? Uint8Array: Array)(this.ZQ + (this.b - 32768)),
- k,
- n,
- p,
- r;
- if (0 === f.length) return Q ? this.a.subarray(32768, this.b) : this.a.slice(32768, this.b);
- k = 0;
- for (n = f.length; k < n; ++k) {
- g = f[k];
- p = 0;
- for (r = g.length; p < r; ++p) h[c++] = g[p]
- }
- k = 32768;
- for (n = this.b; k < n; ++k) h[c++] = d[k];
- this.qQ = [];
- return this.buffer = h
- };
- E.prototype.tma = function() {
- var c, d = this.b;
- Q ? this.q4 ? (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);
- return this.buffer = c
- };
- O.prototype.d = function() {
- var d = this.input,
- g, h;
- g = this.g4.d();
- this.H = this.g4.H;
- this.Yma && (h = (d[this.H++] << 24 | d[this.H++] << 16 | d[this.H++] << 8 | d[this.H++]) >>> 0, h !== f(g) && c(Error("invalid adler-32 checksum")));
- return g
- };
- d("Zlib.Inflate", O);
- d("Zlib.Inflate.BufferType", S);
- S.YJa = S.oka;
- S.IKa = S.Bla;
- d("Zlib.Inflate.prototype.decompress", O.prototype.d);
- S = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
- Q && new Uint16Array(S);
- S = [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];
- Q && new Uint16Array(S);
- S = [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];
- Q && new Uint8Array(S);
- S = [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];
- Q && new Uint16Array(S);
- S = [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];
- Q && new Uint8Array(S);
- S = new(Q ? Uint8Array: Array)(288);
- M = 0;
- for (R = S.length; M < R; ++M) S[M] = 143 >= M ? 8 : 255 >= M ? 9 : 279 >= M ? 7 : 8;
- k(S);
- S = new(Q ? Uint8Array: Array)(30);
- M = 0;
- for (R = S.length; M < R; ++M) S[M] = 5;
- k(S);
- var Ka = 8
- }).call(this);
- H = window;
- H = H.SNa = H.Zlib;
- H.x5 = H.Deflate;
- H.x5.dRa = H.x5.compress;
- H.Inflate = H.Inflate;
- H.Inflate.YKa = H.Inflate.BufferType;
- H.Inflate.prototype.decompress = H.Inflate.prototype.decompress;
- C.Gna = C.O.extend({
- ctor: function(c) {
- var d, f, g, h;
- this.data = c;
- this.hc = 8;
- this.U1 = [];
- this.$P = [];
- this.By = {};
- this.td = s;
- this.text = {};
- for (g = s;;) {
- d = this.is();
- h = c = m;
- h = [];
- for (c = 0; 4 > c; ++c) h.push(String.fromCharCode(this.data[this.hc++]));
- c = h.join("");
- switch (c) {
- case "IHDR":
- this.width = this.is();
- this.height = this.is();
- this.zB = this.data[this.hc++];
- this.y_ = this.data[this.hc++];
- this.eRa = this.data[this.hc++];
- this.vSa = this.data[this.hc++];
- this.aYa = this.data[this.hc++];
- break;
- case "acTL":
- this.td = {
- v0a: this.is(),
- w0a: this.is() || Infinity,
- frames: []
- };
- break;
- case "PLTE":
- this.U1 = this.UI(d);
- break;
- case "fcTL":
- g && this.td.frames.push(g);
- this.hc += 4;
- g = {
- width: this.is(),
- height: this.is(),
- wja: this.is(),
- xja: this.is()
- };
- c = this.Cga();
- d = this.Cga() || 100;
- g.wm = 1E3 * c / d;
- g.IRa = this.data[this.hc++];
- g.CQa = this.data[this.hc++];
- g.data = [];
- break;
- case "IDAT":
- case "fdAT":
- "fdAT" === c && (this.hc += 4, d -= 4);
- c = (g != s ? g.data: m) || this.$P;
- for (h = 0; 0 <= d ? h < d: h > d; 0 <= d ? ++h: --h) c.push(this.data[this.hc++]);
- break;
- case "tRNS":
- this.By = {};
- switch (this.y_) {
- case 3:
- this.By.T0 = this.UI(d);
- d = 255 - this.By.T0.length;
- if (0 < d) for (c = 0; 0 <= d ? c < d: c > d; 0 <= d ? ++c: --c) this.By.T0.push(255);
- break;
- case 0:
- this.By.FXa = this.UI(d)[0];
- break;
- case 2:
- this.By.I2a = this.UI(d)
- }
- break;
- case "tEXt":
- h = this.UI(d);
- d = h.indexOf(0);
- c = String.fromCharCode.apply(String, h.slice(0, d));
- this.text[c] = String.fromCharCode.apply(String, h.slice(d + 1));
- break;
- case "IEND":
- g && this.td.frames.push(g);
- a: {
- switch (this.y_) {
- case 0:
- case 3:
- case 4:
- g = 1;
- break a;
- case 2:
- case 6:
- g = 3;
- break a
- }
- g = m
- }
- this.F = g;
- this.Nea = 4 === (f = this.y_) || 6 === f;
- f = this.F + (this.Nea ? 1 : 0);
- this.DFa = this.zB * f;
- a: {
- switch (this.F) {
- case 1:
- f = "DeviceGray";
- break a;
- case 3:
- f = "DeviceRGB";
- break a
- }
- f = m
- }
- this.aRa = f;
- Uint8Array != Array && (this.$P = new Uint8Array(this.$P));
- return;
- default:
- this.hc += d
- }
- this.hc += 4;
- this.hc > this.data.length && e(Error("Incomplete or corrupt PNG file"))
- }
- },
- UI: function(c) {
- var d, f;
- f = [];
- for (d = 0; 0 <= c ? d < c: d > c; 0 <= c ? ++d: --d) f.push(this.data[this.hc++]);
- return f
- },
- is: function() {
- var c, d, f, g;
- c = this.data[this.hc++] << 24;
- d = this.data[this.hc++] << 16;
- f = this.data[this.hc++] << 8;
- g = this.data[this.hc++];
- return c | d | f | g
- },
- Cga: function() {
- var c, d;
- c = this.data[this.hc++] << 8;
- d = this.data[this.hc++];
- return c | d
- },
- tya: function(c) {
- var d, f, g, h, k, n, p, r, v, y, z, D, E, F, G;
- c == s && (c = this.$P);
- if (0 === c.length) return new Uint8Array(0);
- c = (new Zlib.Inflate(c, {
- index: 0,
- tja: t
- })).decompress();
- r = this.DFa / 8;
- D = r * this.width;
- v = new Uint8Array(D * this.height);
- n = c.length;
- for (f = y = z = 0; y < n;) {
- switch (c[y++]) {
- case 0:
- for (d = 0; d < D; d += 1) v[f++] = c[y++];
- break;
- case 1:
- for (h = E = 0; E < D; h = E += 1) d = c[y++],
- k = h < r ? 0 : v[f - r],
- v[f++] = (d + k) % 256;
- break;
- case 2:
- for (h = k = 0; k < D; h = k += 1) d = c[y++],
- g = (h - h % r) / r,
- E = z && v[(z - 1) * D + g * r + h % r],
- v[f++] = (E + d) % 256;
- break;
- case 3:
- for (h = G = 0; G < D; h = G += 1) d = c[y++],
- g = (h - h % r) / r,
- k = h < r ? 0 : v[f - r],
- E = z && v[(z - 1) * D + g * r + h % r],
- v[f++] = (d + Math.floor((k + E) / 2)) % 256;
- break;
- case 4:
- for (h = G = 0; G < D; h = G += 1) d = c[y++],
- g = (h - h % r) / r,
- k = h < r ? 0 : v[f - r],
- 0 === z ? E = F = 0 : (E = v[(z - 1) * D + g * r + h % r], F = g && v[(z - 1) * D + (g - 1) * r + h % r]),
- p = k + E - F,
- h = Math.abs(p - k),
- g = Math.abs(p - E),
- p = Math.abs(p - F),
- k = h <= g && h <= p ? k: g <= p ? E: F,
- v[f++] = (d + k) % 256;
- break;
- default:
- e(Error("Invalid filter algorithm: " + c[y - 1]))
- }
- z++
- }
- return v
- },
- Vxa: function(c, d) {
- var f, g, h, k, n, p, r, v;
- g = this.F;
- v = s;
- f = this.Nea;
- this.U1.length && (v = (h = this.Dra) != s ? h: this.Dra = this.sya(), g = 4, f = q);
- h = c.data || c;
- r = h.length;
- n = v || d;
- k = p = 0;
- if (1 === g) for (; k < r;) g = v ? 4 * d[k / 4] : p,
- p = n[g++],
- h[k++] = p,
- h[k++] = p,
- h[k++] = p,
- h[k++] = f ? n[g++] : 255,
- p = g;
- else for (; k < r;) g = v ? 4 * d[k / 4] : p,
- h[k++] = n[g++],
- h[k++] = n[g++],
- h[k++] = n[g++],
- h[k++] = f ? n[g++] : 255,
- p = g
- },
- sya: function() {
- var c, d, f, g, h, k, n, p, r;
- f = this.U1;
- k = this.By.T0 || [];
- h = new Uint8Array((k.length || 0) + f.length);
- d = n = c = g = 0;
- for (p = f.length; n < p; d = n += 3) h[g++] = f[d],
- h[g++] = f[d + 1],
- h[g++] = f[d + 2],
- h[g++] = (r = k[c++]) != s ? r: 255;
- return h
- },
- DGa: function(c) {
- var d;
- c.width = this.width;
- c.height = this.height;
- c = c.getContext("2d");
- d = c.createImageData(this.width, this.height);
- this.Vxa(d, this.tya());
- return c.putImageData(d, 0, 0)
- }
- });
- C.mJa = {
- saa: t,
- Ww: s,
- xW: [],
- getUint8: function(c) {
- return this.Ww[c]
- },
- getUint16: function(c) {
- return this.saa ? this.Ww[c + 1] << 8 | this.Ww[c] : this.Ww[c] << 8 | this.Ww[c + 1]
- },
- getUint32: function(c) {
- var d = this.Ww;
- return this.saa ? 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]
- },
- Gxa: function() {
- var c = this.getUint16(0);
- 18761 === c ? this.A1 = q: 19789 === c ? this.A1 = t: (console.log(c), e(TypeError("Invalid byte order value.")));
- return this.A1
- },
- CCa: function() {
- 42 !== this.getUint16(2) && e(RangeError("You forgot your towel!"));
- return q
- },
- yAa: function(c) {
- var d = this.Kza;
- return c in d ? d[c] : s
- },
- wAa: function(c) {
- var d = this.Jza;
- if (c in d) return d[c];
- console.log("Unknown Field Tag:", c);
- return "Tag" + c
- },
- xAa: function(c) {
- 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 : s
- },
- zAa: function(c, d, f, g) {
- c = [];
- var h = this.xAa(d);
- if (4 >= h * f) this.A1 === t ? c.push(g >>> 8 * (4 - h)) : c.push(g);
- else for (var k = 0; k < f; k++) {
- var n = h * k;
- 8 <= h ? -1 !== ["RATIONAL", "SRATIONAL"].indexOf(d) ? (c.push(this.getUint32(g + n)), c.push(this.getUint32(g + n + 4))) : C.log("Can't handle this field type or size") : c.push(this.Lda(h, g + n))
- }
- "ASCII" === d && c.forEach(function(c, d, f) {
- f[d] = String.fromCharCode(c)
- });
- return c
- },
- Lda: function(c, d) {
- if (0 >= c) C.log("No bytes requested");
- else {
- if (1 >= c) return this.getUint8(d);
- if (2 >= c) return this.getUint16(d);
- if (3 >= c) return this.getUint32(d) >>> 8;
- if (4 >= c) return this.getUint32(d);
- C.log("Too many bytes requested")
- }
- },
- eAa: function(c, d, f) {
- f = f || 0;
- d += Math.floor(f / 8);
- var g = f + c;
- c = 32 - c;
- var h, k;
- 0 >= g ? console.log("No bits requested") : 8 >= g ? (h = 24 + f, k = this.getUint8(d)) : 16 >= g ? (h = 16 + f, k = this.getUint16(d)) : 32 >= g ? (h = f, k = this.getUint32(d)) : console.log("Too many bits requested");
- return {
- bits: k << h >>> c,
- byteOffset: d + Math.floor(g / 8),
- bitOffset: g % 8
- }
- },
- rga: function(c) {
- var d = this.getUint16(c),
- f = [];
- c += 2;
- for (var g = 0; g < d; c += 12, g++) {
- var h = this.getUint16(c),
- k = this.getUint16(c + 2),
- n = this.getUint32(c + 4),
- p = this.getUint32(c + 8),
- h = this.wAa(h),
- k = this.yAa(k),
- n = this.zAa(h, k, n, p);
- f[h] = {
- type: k,
- so: n
- }
- }
- this.xW.push(f);
- d = this.getUint32(c);
- 0 !== d && this.rga(d)
- },
- sx: function(c, d) {
- var f = Math.pow(2, 8 - d);
- return Math.floor(c * f + (f - 1))
- },
- AFa: function(c, d) {
- d = d || C.bd("canvas");
- this.Ww = c;
- this.canvas = d;
- this.Gxa();
- if (this.CCa()) {
- var f = this.getUint32(4);
- this.xW.length = 0;
- this.rga(f);
- var g = this.xW[0],
- f = g.ImageWidth.so[0],
- h = g.ImageLength.so[0];
- this.canvas.width = f;
- this.canvas.height = h;
- var k = [],
- n = g.Compression ? g.Compression.so[0] : 1,
- p = g.SamplesPerPixel.so[0],
- r = [],
- v = 0,
- y = t;
- g.BitsPerSample.so.forEach(function(c, d) {
- r[d] = {
- AB: c,
- TP: t,
- tH: m
- };
- 0 === c % 8 && (r[d].TP = q, r[d].tH = c / 8);
- v += c
- },
- this);
- if (0 === v % 8) var y = q,
- z = v / 8;
- var D = g.StripOffsets.so,
- E = D.length;
- if (g.StripByteCounts) var F = g.StripByteCounts.so;
- else C.log("Missing StripByteCounts!"),
- 1 === E ? F = [Math.ceil(f * h * v / 8)] : e(Error("Cannot recover from missing StripByteCounts"));
- for (var G = 0; G < E; G++) {
- var K = D[G];
- k[G] = [];
- for (var O = F[G], U = 0, X = 0, N = 1, Q = q, S = [], M = 0, R = 0, $ = 0; U < O; U += N) switch (n) {
- case 1:
- N = 0;
- for (S = []; N < p; N++) r[N].TP ? S.push(this.Lda(r[N].tH, K + U + r[N].tH * N)) : (X = this.eAa(r[N].AB, K + U, X), S.push(X.zB), U = X.byteOffset - K, X = X.AQa, e(RangeError("Cannot handle sub-byte bits per sample")));
- k[G].push(S);
- y ? N = z: (N = 0, e(RangeError("Cannot handle sub-byte bits per pixel")));
- break;
- case 32773:
- if (Q) {
- var Q = t,
- sa = 1,
- aa = 1,
- N = this.getInt8(K + U);
- 0 <= N && 127 >= N ? sa = N + 1 : -127 <= N && -1 >= N ? aa = -N + 1 : Q = q
- } else {
- for (var ta = this.getUint8(K + U), N = 0; N < aa; N++) r[R].TP ? ($ = $ << 8 * M | ta, M++, M === r[R].tH && (S.push($), $ = M = 0, R++)) : e(RangeError("Cannot handle sub-byte bits per sample")),
- R === p && (k[G].push(S), S = [], R = 0);
- sa--;
- 0 === sa && (Q = q)
- }
- N = 1
- }
- }
- if (d.getContext) {
- z = this.canvas.getContext("2d");
- z.fillStyle = "rgba(255, 255, 255, 0)";
- G = g.RowsPerStrip ? g.RowsPerStrip.so[0] : h;
- F = k.length;
- h %= G;
- h = 0 === h ? G: h;
- sa = G;
- y = 0;
- aa = g.PhotometricInterpretation.so[0];
- n = [];
- p = 0;
- g.ExtraSamples && (n = g.ExtraSamples.so, p = n.length);
- if (g.ColorMap) var ma = g.ColorMap.so,
- ba = Math.pow(2, r[0].AB);
- for (G = 0; G < F; G++) {
- G + 1 === F && (sa = h);
- g = k[G].length;
- y *= G;
- for (E = D = 0; D < sa, E < g; D++) for (K = 0; K < f; K++, E++) {
- S = k[G][E];
- M = U = O = 0;
- Q = 1;
- if (0 < p) for (R = 0; R < p; R++) if (1 === n[R] || 2 === n[R]) {
- Q = S[3 + R] / 256;
- break
- }
- switch (aa) {
- case 0:
- if (r[0].TP) var xa = Math.pow(16, 2 * r[0].tH);
- S.forEach(function(c, d, f) {
- f[d] = xa - c
- });
- case 1:
- O = U = M = this.sx(S[0], r[0].AB);
- break;
- case 2:
- O = this.sx(S[0], r[0].AB);
- U = this.sx(S[1], r[1].AB);
- M = this.sx(S[2], r[2].AB);
- break;
- case 3:
- ma === m && e(Error("Palette image missing color map"));
- S = S[0];
- O = this.sx(ma[S], 16);
- U = this.sx(ma[ba + S], 16);
- M = this.sx(ma[2 * ba + S], 16);
- break;
- default:
- e(RangeError("Unknown Photometric Interpretation:", aa))
- }
- z.fillStyle = "rgba(" + O + ", " + U + ", " + M + ", " + Q + ")";
- z.fillRect(K, y + D, 1, 1)
- }
- y = sa
- }
- }
- return this.canvas
- }
- },
- Jza: {
- 315 : "Artist",
- 258 : "BitsPerSample",
- 265 : "CellLength",
- 264 : "CellWidth",
- 320 : "ColorMap",
- 259 : "Compression",
- 33432 : "Copyright",
- 306 : "DateTime",
- 338 : "ExtraSamples",
- 266 : "FillOrder",
- 289 : "FreeByteCounts",
- 288 : "FreeOffsets",
- 291 : "GrayResponseCurve",
- 290 : "GrayResponseUnit",
- 316 : "HostComputer",
- 270 : "ImageDescription",
- 257 : "ImageLength",
- 256 : "ImageWidth",
- 271 : "Make",
- 281 : "MaxSampleValue",
- 280 : "MinSampleValue",
- 272 : "Model",
- 254 : "NewSubfileType",
- 274 : "Orientation",
- 262 : "PhotometricInterpretation",
- 284 : "PlanarConfiguration",
- 296 : "ResolutionUnit",
- 278 : "RowsPerStrip",
- 277 : "SamplesPerPixel",
- 305 : "Software",
- 279 : "StripByteCounts",
- 273 : "StripOffsets",
- 255 : "SubfileType",
- 263 : "Threshholding",
- 282 : "XResolution",
- 283 : "YResolution",
- 326 : "BadFaxLines",
- 327 : "CleanFaxData",
- 343 : "ClipPath",
- 328 : "ConsecutiveBadFaxLines",
- 433 : "Decode",
- 434 : "DefaultImageColor",
- 269 : "DocumentName",
- 336 : "DotRange",
- 321 : "HalftoneHints",
- 346 : "Indexed",
- 347 : "JPEGTables",
- 285 : "PageName",
- 297 : "PageNumber",
- 317 : "Predictor",
- 319 : "PrimaryChromaticities",
- 532 : "ReferenceBlackWhite",
- 339 : "SampleFormat",
- 559 : "StripRowCounts",
- 330 : "SubIFDs",
- 292 : "T4Options",
- 293 : "T6Options",
- 325 : "TileByteCounts",
- 323 : "TileLength",
- 324 : "TileOffsets",
- 322 : "TileWidth",
- 301 : "TransferFunction",
- 318 : "WhitePoint",
- 344 : "XClipPathUnits",
- 286 : "XPosition",
- 529 : "YCbCrCoefficients",
- 531 : "YCbCrPositioning",
- 530 : "YCbCrSubSampling",
- 345 : "YClipPathUnits",
- 287 : "YPosition",
- 37378 : "ApertureValue",
- 40961 : "ColorSpace",
- 36868 : "DateTimeDigitized",
- 36867 : "DateTimeOriginal",
- 34665 : "Exif IFD",
- 36864 : "ExifVersion",
- 33434 : "ExposureTime",
- 41728 : "FileSource",
- 37385 : "Flash",
- 40960 : "FlashpixVersion",
- 33437 : "FNumber",
- 42016 : "ImageUniqueID",
- 37384 : "LightSource",
- 37500 : "MakerNote",
- 37377 : "ShutterSpeedValue",
- 37510 : "UserComment",
- 33723 : "IPTC",
- 34675 : "ICC Profile",
- 700 : "XMP",
- 42112 : "GDAL_METADATA",
- 42113 : "GDAL_NODATA",
- 34377 : "Photoshop"
- },
- Kza: {
- 1 : "BYTE",
- 2 : "ASCII",
- 3 : "SHORT",
- 4 : "LONG",
- 5 : "RATIONAL",
- 6 : "SBYTE",
- 7 : "UNDEFINED",
- 8 : "SSHORT",
- 9 : "SLONG",
- 10 : "SRATIONAL",
- 11 : "FLOAT",
- 12 : "DOUBLE"
- }
- };
- C.Hl = function(c, d, f, g, h, k, n, p, r, v, y, z) {
- this.hc = c ? c: C.d(0, 0);
- this.startPos = d ? d: C.d(0, 0);
- this.color = f ? f: {
- r: 0,
- g: 0,
- b: 0,
- a: 255
- };
- this.DH = g ? g: {
- r: 0,
- g: 0,
- b: 0,
- a: 255
- };
- this.size = h || 0;
- this.L_ = k || 0;
- this.rotation = n || 0;
- this.kda = p || 0;
- this.bv = r || 0;
- this.atlasIndex = v || 0;
- this.Wd = y ? y: new C.Hl.AT;
- this.oh = z ? z: new C.Hl.BT;
- this.ffa = t;
- this.FH = C.d(0, 0)
- };
- C.Hl.AT = function(c, d, f) {
- this.dir = c ? c: C.d(0, 0);
- this.radialAccel = d || 0;
- this.tangentialAccel = f || 0
- };
- C.Hl.BT = function(c, d, f, g) {
- this.tm = c || 0;
- this.ida = d || 0;
- this.TI = f || 0;
- this.jda = g || 0
- };
- C.Hl.YK = [C.d(), C.d(), C.d(), C.d()];
- C.B = C.A.extend({
- CN: "",
- Bc: 0,
- N9: t,
- Wd: s,
- oh: s,
- qa: "ParticleSystem",
- WX: C.d(0, 0),
- Mt: s,
- Xv: 0,
- Wj: 0,
- wa: s,
- atlasIndex: 0,
- cx: t,
- iL: 0,
- pP: s,
- WR: s,
- pA: t,
- Og: 0,
- duration: 0,
- bB: s,
- Ot: s,
- nj: 0,
- qC: 0,
- tm: 0,
- wB: 0,
- ZC: 0,
- $C: 0,
- Bx: 0,
- MB: 0,
- Kg: s,
- Zt: s,
- Ef: s,
- nt: s,
- aD: 0,
- bD: 0,
- NB: 0,
- OB: 0,
- Ax: 0,
- wc: 0,
- da: s,
- C: s,
- Fb: t,
- qh: s,
- rH: t,
- Gb: 0,
- hf: s,
- Qb: s,
- Me: s,
- rG: s,
- Aa: s,
- eg: s,
- ctor: function(c) {
- C.A.prototype.ctor.call(this);
- this.Gb = C.B.rc;
- this.Wd = new C.B.AT;
- this.oh = new C.B.BT;
- this.C = {
- src: C.Ic,
- ga: C.Hc
- };
- this.Mt = [];
- this.bB = C.d(0, 0);
- this.Ot = C.d(0, 0);
- this.Kg = C.color(255, 255, 255, 255);
- this.Zt = C.color(255, 255, 255, 255);
- this.Ef = C.color(255, 255, 255, 255);
- this.nt = C.color(255, 255, 255, 255);
- this.CN = "";
- this.Bc = 0;
- this.N9 = t;
- this.WX = C.d(0, 0);
- this.Wj = this.Xv = 0;
- this.wa = s;
- this.atlasIndex = 0;
- this.cx = t;
- this.iL = 0;
- this.pP = C.B.uoa;
- this.WR = C.B.Uja;
- this.pA = t;
- this.wc = this.Ax = this.OB = this.NB = this.bD = this.aD = this.MB = this.Bx = this.$C = this.ZC = this.wB = this.tm = this.qC = this.nj = this.duration = this.Og = 0;
- this.da = s;
- this.Fb = t;
- this.qh = C.B.GE;
- this.rH = t;
- this.Me = [0, 0];
- this.hf = [];
- this.Qb = [];
- this.rG = C.rect(0, 0, 0, 0);
- this.Aa = q;
- C.L === C.la && (this.eg = s); ! c || "number" === typeof c ? (c = c || 100, this.sHa(C.B.P7), this.Hb(c)) : c && this.Ce(c)
- },
- U0: function() {
- for (var c = this.Qb,
- d = 0,
- f = this.wc; d < f; ++d) {
- var g = 6 * d,
- h = 4 * d;
- c[g + 0] = h + 0;
- c[g + 1] = h + 1;
- c[g + 2] = h + 2;
- c[g + 5] = h + 1;
- c[g + 4] = h + 2;
- c[g + 3] = h + 3
- }
- },
- Tea: function(c) {
- var d = C.Ec(),
- f = C.rect(c.x * d, c.y * d, c.width * d, c.height * d),
- g = c.width,
- h = c.height;
- this.da && (g = this.da.pixelsWidth, h = this.da.pixelsHeight);
- if (C.L !== C.cb) {
- C.Qy ? (c = (2 * f.x + 1) / (2 * g), d = (2 * f.y + 1) / (2 * h), g = c + (2 * f.width - 2) / (2 * g), f = d + (2 * f.height - 2) / (2 * h)) : (c = f.x / g, d = f.y / h, g = c + f.width / g, f = d + f.height / h);
- var h = f,
- f = d,
- d = h,
- k = 0,
- n = 0;
- this.wa ? (h = this.wa.textureAtlas.quads, k = this.atlasIndex, n = this.atlasIndex + this.wc) : (h = this.hf, k = 0, n = this.wc);
- for (; k < n; k++) {
- h[k] || (h[k] = C.I8());
- var p = h[k];
- p.T.v.xa = c;
- p.T.v.ea = d;
- p.Y.v.xa = g;
- p.Y.v.ea = d;
- p.X.v.xa = c;
- p.X.v.ea = f;
- p.V.v.xa = g;
- p.V.v.ea = f
- }
- }
- },
- XB: A("wa"),
- os: function(c) {
- if (this.wa != c) {
- var d = this.wa;
- if (this.wa = c) for (var f = this.Mt,
- g = 0; g < this.wc; g++) f[g].atlasIndex = g;
- c ? d || (this.wa.textureAtlas.zra(this.hf, this.atlasIndex), C.t.deleteBuffer(this.Me[1])) : (this.d9(), this.U0(), this.Va(d.ob()), this.Pw())
- }
- },
- WB: A("atlasIndex"),
- C2: x("atlasIndex"),
- oUa: A("pP"),
- sHa: x("pP"),
- BWa: A("WR"),
- e5a: x("WR"),
- zi: A("pA"),
- VVa: A("Og"),
- N4a: x("Og"),
- Rr: A("duration"),
- Wh: x("duration"),
- RBa: function() {
- return {
- x: this.bB.x,
- y: this.bB.y
- }
- },
- oIa: x("bB"),
- x0: function() {
- return {
- x: this.Ot.x,
- y: this.Ot.y
- }
- },
- vk: x("Ot"),
- gVa: A("nj"),
- tk: x("nj"),
- hVa: A("qC"),
- uk: x("qC"),
- ISa: A("tm"),
- ok: x("tm"),
- JSa: A("wB"),
- pk: x("wB"),
- MH: function() {
- this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getGravity() : Particle Mode should be Gravity");
- var c = this.Wd.gravity;
- return C.d(c.x, c.y)
- },
- oc: function(c) {
- this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setGravity() : Particle Mode should be Gravity");
- this.Wd.gravity = c
- },
- MP: function() {
- this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getSpeed() : Particle Mode should be Gravity");
- return this.Wd.speed
- },
- Xh: function(c) {
- this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setSpeed() : Particle Mode should be Gravity");
- this.Wd.speed = c
- },
- tea: function() {
- this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getSpeedVar() : Particle Mode should be Gravity");
- return this.Wd.speedVar
- },
- yj: function(c) {
- this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setSpeedVar() : Particle Mode should be Gravity");
- this.Wd.speedVar = c
- },
- xea: function() {
- this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getTangentialAccel() : Particle Mode should be Gravity");
- return this.Wd.tangentialAccel
- },
- no: function(c) {
- this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setTangentialAccel() : Particle Mode should be Gravity");
- this.Wd.tangentialAccel = c
- },
- yea: function() {
- this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getTangentialAccelVar() : Particle Mode should be Gravity");
- return this.Wd.tangentialAccelVar
- },
- oo: function(c) {
- this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setTangentialAccelVar() : Particle Mode should be Gravity");
- this.Wd.tangentialAccelVar = c
- },
- mea: function() {
- this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getRadialAccel() : Particle Mode should be Gravity");
- return this.Wd.radialAccel
- },
- wj: function(c) {
- this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setRadialAccel() : Particle Mode should be Gravity");
- this.Wd.radialAccel = c
- },
- nea: function() {
- this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getRadialAccelVar() : Particle Mode should be Gravity");
- return this.Wd.radialAccelVar
- },
- xj: function(c) {
- this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setRadialAccelVar() : Particle Mode should be Gravity");
- this.Wd.radialAccelVar = c
- },
- FBa: function() {
- this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getRotationIsDir() : Particle Mode should be Gravity");
- return this.Wd.rotationIsDir
- },
- iIa: function(c) {
- this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setRotationIsDir() : Particle Mode should be Gravity");
- this.Wd.rotationIsDir = c
- },
- vea: function() {
- this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getStartRadius() : Particle Mode should be Radius");
- return this.oh.startRadius
- },
- n3: function(c) {
- this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setStartRadius() : Particle Mode should be Radius");
- this.oh.startRadius = c
- },
- wea: function() {
- this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getStartRadiusVar() : Particle Mode should be Radius");
- return this.oh.startRadiusVar
- },
- o3: function(c) {
- this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setStartRadiusVar() : Particle Mode should be Radius");
- this.oh.startRadiusVar = c
- },
- Wda: function() {
- this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getEndRadius() : Particle Mode should be Radius");
- return this.oh.endRadius
- },
- P2: function(c) {
- this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setEndRadius() : Particle Mode should be Radius");
- this.oh.endRadius = c
- },
- Xda: function() {
- this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getEndRadiusVar() : Particle Mode should be Radius");
- return this.oh.endRadiusVar
- },
- Q2: function(c) {
- this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setEndRadiusVar() : Particle Mode should be Radius");
- this.oh.endRadiusVar = c
- },
- oea: function() {
- this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getRotatePerSecond() : Particle Mode should be Radius");
- return this.oh.hR
- },
- g3: function(c) {
- this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setRotatePerSecond() : Particle Mode should be Radius");
- this.oh.hR = c
- },
- pea: function() {
- this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getRotatePerSecondVar() : Particle Mode should be Radius");
- return this.oh.iR
- },
- h3: function(c) {
- this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setRotatePerSecondVar() : Particle Mode should be Radius");
- this.oh.iR = c
- },
- Za: function(c, d) {
- this.cx = q;
- C.A.prototype.Za.call(this, c, d)
- },
- th: function(c) {
- this.cx = q;
- C.A.prototype.th.call(this, c)
- },
- gb: function(c) {
- this.cx = q;
- C.A.prototype.gb.call(this, c)
- },
- pb: function(c) {
- this.cx = q;
- C.A.prototype.pb.call(this, c)
- },
- GWa: A("ZC"),
- wk: x("ZC"),
- HWa: A("$C"),
- xk: x("$C"),
- uUa: A("Bx"),
- sk: x("Bx"),
- vUa: A("MB"),
- R2: x("MB"),
- NP: function() {
- return C.color(this.Kg.r, this.Kg.g, this.Kg.b, this.Kg.a)
- },
- tg: function(c) {
- this.Kg = C.color(c)
- },
- uea: function() {
- return C.color(this.Zt.r, this.Zt.g, this.Zt.b, this.Zt.a)
- },
- zj: function(c) {
- this.Zt = C.color(c)
- },
- EP: function() {
- return C.color(this.Ef.r, this.Ef.g, this.Ef.b, this.Ef.a)
- },
- sg: function(c) {
- this.Ef = C.color(c)
- },
- Vda: function() {
- return C.color(this.nt.r, this.nt.g, this.nt.b, this.nt.a)
- },
- uj: function(c) {
- this.nt = C.color(c)
- },
- IWa: A("aD"),
- uia: x("aD"),
- JWa: A("bD"),
- via: x("bD"),
- wUa: A("NB"),
- Bha: x("NB"),
- xUa: A("OB"),
- Cha: x("OB"),
- sUa: A("Ax"),
- qk: x("Ax"),
- cCa: A("wc"),
- yia: function(c) {
- if (C.L === C.cb) this.wc = 200 > c ? c: 200;
- else {
- if (c > this.iL) {
- var d = C.Uc.BYTES_PER_ELEMENT;
- this.Qb = new Uint16Array(6 * c);
- var f = new ArrayBuffer(c * d),
- g = this.Mt;
- g.length = 0;
- for (var h = this.hf,
- k = h.length = 0; k < c; k++) g[k] = new C.Hl,
- h[k] = new C.Uc(s, s, s, s, f, k * d);
- this.wc = this.iL = c;
- if (this.wa) for (d = 0; d < c; d++) g[d].atlasIndex = d;
- this.eg = f;
- this.U0();
- this.Pw();
- this.da && this.Tea(C.rect(0, 0, this.da.width, this.da.height))
- } else this.wc = c;
- this.Zga()
- }
- },
- ob: A("da"),
- Va: function(c) {
- c.de ? this.q3(c, C.rect(0, 0, c.width, c.height)) : (this.Aa = t, c.ye(function(c) {
- this.Aa = q;
- this.q3(c, C.rect(0, 0, c.width, c.height))
- },
- this))
- },
- ek: A("C"),
- Yd: function(c, d) {
- if (d === m) this.C != c && (this.C = c, this.hl());
- else if (this.C.src != c || this.C.ga != d) this.C = {
- src: c,
- ga: d
- },
- this.hl()
- },
- qg: A("Fb"),
- $d: x("Fb"),
- lDa: function() {
- return this.C.src == C.SRC_ALPHA && this.C.ga == C.ONE || this.C.src == C.ONE && this.C.ga == C.ONE
- },
- Nm: function(c) {
- var d = this.C;
- c ? (d.src = C.SRC_ALPHA, d.ga = C.ONE) : C.L === C.la ? this.da && !this.da.Hp() ? (d.src = C.SRC_ALPHA, d.ga = C.ONE_MINUS_SRC_ALPHA) : (d.src = C.Ic, d.ga = C.Hc) : (d.src = C.Ic, d.ga = C.Hc)
- },
- xBa: A("qh"),
- a3: x("qh"),
- fYa: A("rH"),
- s3a: x("rH"),
- tUa: A("Gb"),
- rk: x("Gb"),
- j: function() {
- return this.Hb(150)
- },
- Ce: function(c) {
- this.CN = c;
- c = C.M.xd(c);
- return ! c ? (C.log("cc.ParticleSystem.initWithFile(): Particles: file not found"), t) : this.Lp(c, "")
- },
- fAa: function() {
- return C.rect(0, 0, C.Pb.width, C.Pb.height)
- },
- Lp: function(c) {
- var d = t,
- f = s,
- f = this.jwa,
- g = parseInt(f("maxParticles", c));
- if (this.Hb(g)) {
- this.tm = parseFloat(f("angle", c));
- this.wB = parseFloat(f("angleVariance", c));
- this.duration = parseFloat(f("duration", c));
- this.C.src = parseInt(f("blendFuncSource", c));
- this.C.ga = parseInt(f("blendFuncDestination", c));
- d = this.Kg;
- d.r = 255 * parseFloat(f("startColorRed", c));
- d.g = 255 * parseFloat(f("startColorGreen", c));
- d.b = 255 * parseFloat(f("startColorBlue", c));
- d.a = 255 * parseFloat(f("startColorAlpha", c));
- d = this.Zt;
- d.r = 255 * parseFloat(f("startColorVarianceRed", c));
- d.g = 255 * parseFloat(f("startColorVarianceGreen", c));
- d.b = 255 * parseFloat(f("startColorVarianceBlue", c));
- d.a = 255 * parseFloat(f("startColorVarianceAlpha", c));
- d = this.Ef;
- d.r = 255 * parseFloat(f("finishColorRed", c));
- d.g = 255 * parseFloat(f("finishColorGreen", c));
- d.b = 255 * parseFloat(f("finishColorBlue", c));
- d.a = 255 * parseFloat(f("finishColorAlpha", c));
- d = this.nt;
- d.r = 255 * parseFloat(f("finishColorVarianceRed", c));
- d.g = 255 * parseFloat(f("finishColorVarianceGreen", c));
- d.b = 255 * parseFloat(f("finishColorVarianceBlue", c));
- d.a = 255 * parseFloat(f("finishColorVarianceAlpha", c));
- this.ZC = parseFloat(f("startParticleSize", c));
- this.$C = parseFloat(f("startParticleSizeVariance", c));
- this.Bx = parseFloat(f("finishParticleSize", c));
- this.MB = parseFloat(f("finishParticleSizeVariance", c));
- this.p(parseFloat(f("sourcePositionx", c)), parseFloat(f("sourcePositiony", c)));
- this.Ot.x = parseFloat(f("sourcePositionVariancex", c));
- this.Ot.y = parseFloat(f("sourcePositionVariancey", c));
- this.aD = parseFloat(f("rotationStart", c));
- this.bD = parseFloat(f("rotationStartVariance", c));
- this.NB = parseFloat(f("rotationEnd", c));
- this.OB = parseFloat(f("rotationEndVariance", c));
- this.Gb = parseInt(f("emitterType", c));
- if (this.Gb == C.B.rc) d = this.Wd,
- d.gravity.x = parseFloat(f("gravityx", c)),
- d.gravity.y = parseFloat(f("gravityy", c)),
- d.speed = parseFloat(f("speed", c)),
- d.speedVar = parseFloat(f("speedVariance", c)),
- g = f("radialAcceleration", c),
- d.radialAccel = g ? parseFloat(g) : 0,
- g = f("radialAccelVariance", c),
- d.radialAccelVar = g ? parseFloat(g) : 0,
- g = f("tangentialAcceleration", c),
- d.tangentialAccel = g ? parseFloat(g) : 0,
- g = f("tangentialAccelVariance", c),
- d.tangentialAccelVar = g ? parseFloat(g) : 0,
- g = f("rotationIsDir", c).toLowerCase(),
- d.rotationIsDir = g != s && ("true" === g || "1" === g);
- else if (this.Gb == C.B.Cj) d = this.oh,
- d.startRadius = parseFloat(f("maxRadius", c)),
- d.startRadiusVar = parseFloat(f("maxRadiusVariance", c)),
- d.endRadius = parseFloat(f("minRadius", c)),
- d.endRadiusVar = 0,
- d.hR = parseFloat(f("rotatePerSecond", c)),
- d.iR = parseFloat(f("rotatePerSecondVariance", c));
- else return C.log("cc.ParticleSystem.initWithDictionary(): Invalid emitterType in config file"),
- t;
- this.nj = parseFloat(f("particleLifespan", c));
- this.qC = parseFloat(f("particleLifespanVariance", c));
- this.Ax = this.wc / this.nj;
- if (!this.wa) if (this.Fb = t, d = f("textureFileName", c), d = C.path.BB(this.CN, d), g = C.kb.av(d)) this.Va(g);
- else if ((c = f("textureImageData", c)) && 0 == c.length) {
- g = C.kb.sd(d);
- if (!g) return t;
- this.Va(g)
- } else {
- f = C.eja(c, 1);
- if (!f) return C.log("cc.ParticleSystem: error decoding or ungzipping textureImageData"),
- t;
- c = C.JAa(f);
- if (c !== C.P5 && c !== C.dT) return C.log("cc.ParticleSystem: unknown image format with Data"),
- t;
- g = C.bd("canvas");
- c === C.dT ? (new C.Gna(f)).DGa(g) : C.mJa.AFa(f, g);
- C.kb.wxa(d, g); (c = C.kb.av(d)) || C.log("cc.ParticleSystem.initWithDictionary() : error loading the texture");
- this.Va(c)
- }
- d = q
- }
- return d
- },
- Hb: function(c) {
- this.wc = c;
- var d, f = this.Mt;
- for (d = f.length = 0; d < c; d++) f[d] = new C.Hl;
- if (!f) return C.log("Particle system: not enough memory"),
- t;
- this.iL = c;
- if (this.wa) for (d = 0; d < this.wc; d++) f[d].atlasIndex = d;
- this.pA = q;
- this.C.src = C.Ic;
- this.C.ga = C.Hc;
- this.qh = C.B.GE;
- this.Gb = C.B.rc;
- this.cx = this.rH = t;
- this.cha(1);
- if (C.L === C.la) {
- if (!this.d9()) return t;
- this.U0();
- this.Pw();
- this.shaderProgram = C.ug.Xd(C.Co)
- }
- return q
- },
- wRa: function() {
- this.hD()
- },
- ywa: function() {
- if (this.tDa()) return t;
- var c, d = this.Mt;
- C.L === C.cb ? this.Og < d.length ? c = d[this.Og] : (c = new C.Hl, d.push(c)) : c = d[this.Og];
- this.NCa(c); ++this.Og;
- return q
- },
- NCa: function(c) {
- var d = C.$Fa;
- c.bv = this.nj + this.qC * d();
- c.bv = Math.max(0, c.bv);
- c.hc.x = this.bB.x + this.Ot.x * d();
- c.hc.y = this.bB.y + this.Ot.y * d();
- var f, g;
- f = this.Kg;
- var h = this.Zt,
- k = this.Ef;
- g = this.nt;
- C.L === C.cb ? (f = C.color(C.Nf(f.r + h.r * d(), 0, 255), C.Nf(f.g + h.g * d(), 0, 255), C.Nf(f.b + h.b * d(), 0, 255), C.Nf(f.a + h.a * d(), 0, 255)), g = C.color(C.Nf(k.r + g.r * d(), 0, 255), C.Nf(k.g + g.g * d(), 0, 255), C.Nf(k.b + g.b * d(), 0, 255), C.Nf(k.a + g.a * d(), 0, 255))) : (f = {
- r: C.Nf(f.r + h.r * d(), 0, 255),
- g: C.Nf(f.g + h.g * d(), 0, 255),
- b: C.Nf(f.b + h.b * d(), 0, 255),
- a: C.Nf(f.a + h.a * d(), 0, 255)
- },
- g = {
- r: C.Nf(k.r + g.r * d(), 0, 255),
- g: C.Nf(k.g + g.g * d(), 0, 255),
- b: C.Nf(k.b + g.b * d(), 0, 255),
- a: C.Nf(k.a + g.a * d(), 0, 255)
- });
- c.color = f;
- h = c.DH;
- k = c.bv;
- h.r = (g.r - f.r) / k;
- h.g = (g.g - f.g) / k;
- h.b = (g.b - f.b) / k;
- h.a = (g.a - f.a) / k;
- f = this.ZC + this.$C * d();
- f = Math.max(0, f);
- c.size = f;
- this.Bx === C.B.Kl ? c.L_ = 0 : (g = this.Bx + this.MB * d(), g = Math.max(0, g), c.L_ = (g - f) / k);
- f = this.aD + this.bD * d();
- g = this.NB + this.OB * d();
- c.rotation = f;
- c.kda = (g - f) / k;
- this.qh == C.B.GE ? c.startPos = this.vm(this.WX) : this.qh == C.B.vU && (c.startPos.x = this.ma.x, c.startPos.y = this.ma.y);
- f = C.ng(this.tm + this.wB * d());
- if (this.Gb === C.B.rc) k = this.Wd,
- g = c.Wd,
- h = k.speed + k.speedVar * d(),
- g.dir.x = Math.cos(f),
- g.dir.y = Math.sin(f),
- C.JC(g.dir, h),
- g.radialAccel = k.radialAccel + k.radialAccelVar * d(),
- g.tangentialAccel = k.tangentialAccel + k.tangentialAccelVar * d(),
- k.rotationIsDir && (c.rotation = -C.LC(C.UEa(g.dir)));
- else {
- g = this.oh;
- c = c.oh;
- var h = g.startRadius + g.startRadiusVar * d(),
- n = g.endRadius + g.endRadiusVar * d();
- c.TI = h;
- c.jda = g.endRadius === C.B.xoa ? 0 : (n - h) / k;
- c.tm = f;
- c.ida = C.ng(g.hR + g.iR * d())
- }
- },
- ZIa: function() {
- this.pA = t;
- this.Bc = this.duration;
- this.Xv = 0
- },
- Zga: function() {
- this.pA = q;
- this.Bc = 0;
- var c = this.Mt;
- for (this.Wj = 0; this.Wj < this.Og; ++this.Wj) c[this.Wj].bv = 0
- },
- tDa: function() {
- return this.Og >= this.wc
- },
- IJa: function(c, d) {
- var f = s;
- this.wa ? (f = this.wa.textureAtlas.quads[this.atlasIndex + c.atlasIndex], this.wa.textureAtlas.dirty = q) : f = this.hf[this.Wj];
- var g, h, k, n;
- this.Fb ? (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);
- n = 0 | c.color.a;
- var p = f.T.F;
- p.r = g;
- p.g = h;
- p.b = k;
- p.a = n;
- p = f.Y.F;
- p.r = g;
- p.g = h;
- p.b = k;
- p.a = n;
- p = f.X.F;
- p.r = g;
- p.g = h;
- p.b = k;
- p.a = n;
- p = f.V.F;
- p.r = g;
- p.g = h;
- p.b = k;
- p.a = n;
- g = c.size / 2;
- if (c.rotation) {
- h = -g;
- k = -g;
- n = d.x;
- var p = d.y,
- r = -C.ng(c.rotation),
- v = Math.cos(r),
- r = Math.sin(r);
- f.T.m.x = h * v - k * r + n;
- f.T.m.y = h * r + k * v + p;
- f.Y.m.x = g * v - k * r + n;
- f.Y.m.y = g * r + k * v + p;
- f.X.m.x = h * v - g * r + n;
- f.X.m.y = h * r + g * v + p;
- f.V.m.x = g * v - g * r + n;
- f.V.m.y = g * r + g * v + p
- } else f.T.m.x = d.x - g,
- f.T.m.y = d.y - g,
- f.Y.m.x = d.x + g,
- f.Y.m.y = d.y - g,
- f.X.m.x = d.x - g,
- f.X.m.y = d.y + g,
- f.V.m.x = d.x + g,
- f.V.m.y = d.y + g
- },
- MFa: function() {
- if (C.L === C.la) {
- var c = C.t;
- c.bindBuffer(c.ARRAY_BUFFER, this.Me[0]);
- c.bufferData(c.ARRAY_BUFFER, this.eg, c.DYNAMIC_DRAW)
- }
- },
- update: function(c) {
- if (this.pA && this.Ax) {
- var d = 1 / this.Ax;
- this.Og < this.wc && (this.Xv += c);
- for (; this.Og < this.wc && this.Xv > d;) this.ywa(),
- this.Xv -= d;
- this.Bc += c; - 1 != this.duration && this.duration < this.Bc && this.ZIa()
- }
- this.Wj = 0;
- d = C.Hl.YK[0];
- this.qh == C.B.GE ? C.gs(d, this.vm(this.WX)) : this.qh == C.B.vU && (d.x = this.ma.x, d.y = this.ma.y);
- if (this.Ja) {
- for (var f = C.Hl.YK[1], g = C.Hl.YK[2], h = C.Hl.YK[3], k = this.Mt; this.Wj < this.Og;) {
- C.TQ(f);
- C.TQ(g);
- C.TQ(h);
- var n = k[this.Wj];
- n.bv -= c;
- if (0 < n.bv) {
- if (this.Gb == C.B.rc) {
- var p = h,
- r = f,
- v = g;
- n.hc.x || n.hc.y ? (C.gs(r, n.hc), C.SEa(r)) : C.TQ(r);
- C.gs(v, r);
- C.JC(r, n.Wd.radialAccel);
- var y = v.x;
- v.x = -v.y;
- v.y = y;
- C.JC(v, n.Wd.tangentialAccel);
- C.gs(p, r);
- C.RQ(p, v);
- C.RQ(p, this.Wd.gravity);
- C.JC(p, c);
- C.RQ(n.Wd.dir, p);
- C.gs(p, n.Wd.dir);
- C.JC(p, c);
- C.RQ(n.hc, p)
- } else p = n.oh,
- p.tm += p.ida * c,
- p.TI += p.jda * c,
- n.hc.x = -Math.cos(p.tm) * p.TI,
- n.hc.y = -Math.sin(p.tm) * p.TI;
- if (!this.N9 || C.L === C.cb) n.color.r += n.DH.r * c,
- n.color.g += n.DH.g * c,
- n.color.b += n.DH.b * c,
- n.color.a += n.DH.a * c,
- n.ffa = q;
- n.size += n.L_ * c;
- n.size = Math.max(0, n.size);
- n.rotation += n.kda * c;
- p = f;
- this.qh == C.B.GE || this.qh == C.B.vU ? (r = g, C.gs(r, d), C.pga(r, n.startPos), C.gs(p, n.hc), C.pga(p, r)) : C.gs(p, n.hc);
- this.wa && (p.x += this.ma.x, p.y += this.ma.y);
- C.L == C.la ? this.IJa(n, p) : C.gs(n.FH, p); ++this.Wj
- } else if (n = n.atlasIndex, this.Wj !== this.Og - 1 && (p = k[this.Wj], k[this.Wj] = k[this.Og - 1], k[this.Og - 1] = p), this.wa && (this.wa.Gya(this.atlasIndex + n), k[this.Og - 1].atlasIndex = n), --this.Og, 0 == this.Og && this.rH) {
- this.hD();
- this.Vb.removeChild(this, q);
- return
- }
- }
- this.cx = t
- }
- this.wa || this.MFa()
- },
- NJa: function() {
- this.update(0)
- },
- jwa: function(c, d) {
- if (d) {
- var f = d[c];
- return f != s ? f: ""
- }
- return ""
- },
- hl: function() {
- if (this.wa) C.log("Can't change blending functions when the particle is being batched");
- else {
- var c = this.da;
- if (c && c instanceof C.Ma) {
- this.Fb = t;
- var d = this.C;
- d.src == C.Ic && d.ga == C.Hc && (c.Hp() ? this.Fb = q: (d.src = C.SRC_ALPHA, d.ga = C.ONE_MINUS_SRC_ALPHA))
- }
- }
- },
- s: function() {
- var c = new C.B;
- if (c.Hb(this.wc)) {
- c.ok(this.tm);
- c.pk(this.wB);
- c.Wh(this.Rr());
- var d = this.ek();
- c.Yd(d.src, d.ga);
- c.tg(this.NP());
- c.zj(this.uea());
- c.sg(this.EP());
- c.uj(this.Vda());
- c.wk(this.ZC);
- c.xk(this.$C);
- c.sk(this.Bx);
- c.R2(this.MB);
- c.p(C.d(this.x, this.y));
- c.vk(C.d(this.x0().x, this.x0().y));
- c.uia(this.aD || 0);
- c.via(this.bD || 0);
- c.Bha(this.NB || 0);
- c.Cha(this.OB || 0);
- c.rk(this.Gb);
- this.Gb == C.B.rc ? (d = this.MH(), c.oc(C.d(d.x, d.y)), c.Xh(this.MP()), c.yj(this.tea()), c.wj(this.mea()), c.xj(this.nea()), c.no(this.xea()), c.oo(this.yea())) : this.Gb == C.B.Cj && (c.n3(this.vea()), c.o3(this.wea()), c.P2(this.Wda()), c.Q2(this.Xda()), c.g3(this.oea()), c.h3(this.pea()));
- c.tk(this.nj);
- c.uk(this.qC);
- c.qk(this.Ax);
- if (!this.XB() && (c.$d(this.qg()), d = this.ob())) {
- var f = d.i();
- c.q3(d, C.rect(0, 0, f.width, f.height))
- }
- }
- return c
- },
- pHa: function(c) {
- var d = c.Yk; (0 != d.x || 0 != d.y) && C.log("cc.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets");
- C.L === C.la && (!this.da || c.ob().Sh != this.da.Sh) && this.Va(c.ob())
- },
- q3: function(c, d) {
- var f = this.da;
- if (C.L === C.la) {
- if ((!f || c.Sh != f.Sh) && f != c) this.da = c,
- this.hl()
- } else if ((!f || c != f) && f != c) this.da = c,
- this.hl();
- this.rG = d;
- this.Tea(d)
- },
- ka: function(c) {
- this.Aa && !this.wa && (C.L === C.cb ? this.Qq(c) : this.gn(c), C.kl++)
- },
- Qq: function(c) {
- c = c || C.t;
- c.save();
- c.globalCompositeOperation = this.lDa() ? "lighter": "source-over";
- for (var d = 0; d < this.Og; d++) {
- var f = this.Mt[d],
- g = 0 | 0.5 * f.size;
- if (this.pP == C.B.P7) {
- if (g = this.da.jd, g.width && g.height) {
- c.save();
- c.globalAlpha = f.color.a / 255;
- c.translate(0 | f.FH.x, -(0 | f.FH.y));
- var h = 4 * Math.floor(f.size / 4),
- k = this.rG.width,
- n = this.rG.height;
- c.scale(Math.max(1 / k * h, 1E-6), Math.max(1 / n * h, 1E-6));
- f.rotation && c.rotate(C.ng(f.rotation));
- c.translate( - (0 | k / 2), -(0 | n / 2));
- if (f.ffa && (h = C.kb.OP(g))) h.AJ || (h.AJ = C.bd("canvas"), h.AJ.width = g.width, h.AJ.height = g.height),
- C.TB(g, h, f.color, this.rG, h.AJ),
- g = h.AJ;
- c.drawImage(g, 0, 0);
- c.restore()
- }
- } else c.save(),
- c.globalAlpha = f.color.a / 255,
- c.translate(0 | f.FH.x, -(0 | f.FH.y)),
- this.WR == C.B.yoa ? (f.rotation && c.rotate(C.ng(f.rotation)), C.Df.Rya(c, g, f.color)) : C.Df.Lya(c, g, f.color),
- c.restore()
- }
- c.restore()
- },
- gn: function(c) {
- this.da && (c = c || C.t, this.pd.Af(), this.pd.Bj(), C.yi(this.da), C.Gea(this.C.src, this.C.ga), C.rf(C.Dv), c.bindBuffer(c.ARRAY_BUFFER, this.Me[0]), c.vertexAttribPointer(C.Lc, 3, c.FLOAT, t, 24, 0), c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, 24, 12), c.vertexAttribPointer(C.Vg, 2, c.FLOAT, t, 24, 16), c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Me[1]), c.drawElements(c.TRIANGLES, 6 * this.Wj, c.UNSIGNED_SHORT, 0))
- },
- V_a: function() {
- C.jU || this.Pw()
- },
- zPa: u(),
- Pw: function() {
- if (C.L != C.cb) {
- var c = C.t;
- this.Me[0] = c.createBuffer();
- c.bindBuffer(c.ARRAY_BUFFER, this.Me[0]);
- c.bufferData(c.ARRAY_BUFFER, this.eg, c.DYNAMIC_DRAW);
- this.Me[1] = c.createBuffer();
- c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Me[1]);
- c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Qb, c.STATIC_DRAW)
- }
- },
- d9: function() {
- if (C.L === C.cb) return q;
- if (this.wa) return C.log("cc.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode"),
- t;
- var c = C.Uc.BYTES_PER_ELEMENT,
- d = this.wc,
- f = this.hf;
- f.length = 0;
- this.Qb = new Uint16Array(6 * d);
- for (var g = new ArrayBuffer(c * d), h = 0; h < d; h++) f[h] = new C.Uc(s, s, s, s, g, h * c);
- if (!f || !this.Qb) return C.log("cocos2d: Particle system: not enough memory"),
- t;
- this.eg = g;
- return q
- }
- });
- H = C.B.prototype;
- C.e(H, "opacityModifyRGB", H.qg, H.$d);
- C.e(H, "batchNode", H.XB, H.os);
- C.e(H, "active", H.zi);
- C.e(H, "sourcePos", H.RBa, H.oIa);
- C.e(H, "posVar", H.x0, H.vk);
- C.e(H, "gravity", H.MH, H.oc);
- C.e(H, "speed", H.MP, H.Xh);
- C.e(H, "speedVar", H.tea, H.yj);
- C.e(H, "tangentialAccel", H.xea, H.no);
- C.e(H, "tangentialAccelVar", H.yea, H.oo);
- C.e(H, "radialAccel", H.mea, H.wj);
- C.e(H, "radialAccelVar", H.nea, H.xj);
- C.e(H, "rotationIsDir", H.FBa, H.iIa);
- C.e(H, "startRadius", H.vea, H.n3);
- C.e(H, "startRadiusVar", H.wea, H.o3);
- C.e(H, "endRadius", H.Wda, H.P2);
- C.e(H, "endRadiusVar", H.Xda, H.Q2);
- C.e(H, "rotatePerS", H.oea, H.g3);
- C.e(H, "rotatePerSVar", H.pea, H.h3);
- C.e(H, "startColor", H.NP, H.tg);
- C.e(H, "startColorVar", H.uea, H.zj);
- C.e(H, "endColor", H.EP, H.sg);
- C.e(H, "endColorVar", H.Vda, H.uj);
- C.e(H, "totalParticles", H.cCa, H.yia);
- C.e(H, "texture", H.ob, H.Va);
- C.B.create = function(c) {
- return new C.B(c)
- };
- C.B.AT = function(c, d, f, g, h, k, n, p) {
- this.gravity = c ? c: C.d(0, 0);
- this.speed = d || 0;
- this.speedVar = f || 0;
- this.tangentialAccel = g || 0;
- this.tangentialAccelVar = h || 0;
- this.radialAccel = k || 0;
- this.radialAccelVar = n || 0;
- this.rotationIsDir = p || t
- };
- C.B.BT = function(c, d, f, g, h, k) {
- this.startRadius = c || 0;
- this.startRadiusVar = d || 0;
- this.endRadius = f || 0;
- this.endRadiusVar = g || 0;
- this.hR = h || 0;
- this.iR = k || 0
- };
- C.B.uoa = 0;
- C.B.P7 = 1;
- C.B.yoa = 0;
- C.B.Uja = 1;
- C.B.$m = -1;
- C.B.Kl = -1;
- C.B.xoa = -1;
- C.B.rc = 0;
- C.B.Cj = 1;
- C.B.GE = 0;
- C.B.vU = 1;
- C.B.xNa = 2;
- C.o7 = C.B.extend({
- j: function() {
- return this.Hb(C.L === C.la ? 300 : 150)
- },
- Hb: function(c) {
- return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.wj(0), this.xj(0), this.Xh(60), this.yj(20), this.ok(90), this.pk(10), this.p(C.Q.aa.width / 2, 60), this.vk(C.d(40, 20)), this.tk(3), this.uk(0.25), this.wk(54), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(194, 64, 31, 255)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), this.Nm(q), q) : t
- }
- });
- C.o7.create = function() {
- var c = new C.o7;
- return c.j() ? c: s
- };
- C.p7 = C.B.extend({
- j: function() {
- return this.Hb(C.L === C.la ? 1500 : 150)
- },
- Hb: function(c) {
- return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, -90)), this.wj(0), this.xj(0), this.Xh(180), this.yj(50), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.ok(90), this.pk(20), this.tk(3.5), this.uk(1), this.qk(this.wc / this.nj), this.tg(C.color(128, 128, 128, 255)), this.zj(C.color(128, 128, 128, 255)), this.sg(C.color(26, 26, 26, 51)), this.uj(C.color(26, 26, 26, 51)), this.wk(8), this.xk(2), this.sk(C.B.Kl), this.Nm(t), q) : t
- }
- });
- C.p7.create = function() {
- var c = new C.p7;
- return c.j() ? c: s
- };
- C.x7 = C.B.extend({
- j: function() {
- return this.Hb(C.L === C.la ? 350 : 150)
- },
- Hb: function(c) {
- return C.B.prototype.Hb.call(this, c) ? (this.Nm(q), this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.wj(0), this.xj(0), this.Xh(20), this.yj(5), this.ok(90), this.pk(360), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(1), this.uk(0.5), this.wk(30), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(194, 64, 31, 255)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), q) : t
- }
- });
- C.x7.create = function() {
- var c = new C.x7;
- return c.j() ? c: s
- };
- C.r7 = C.B.extend({
- j: function() {
- return this.Hb(C.L === C.la ? 200 : 100)
- },
- Hb: function(c) {
- return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.Xh(60), this.yj(10), this.wj( - 80), this.xj(0), this.no(80), this.oo(0), this.ok(90), this.pk(360), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(4), this.uk(1), this.wk(37), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(31, 64, 194, 255)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), this.Nm(q), q) : t
- }
- });
- C.r7.create = function() {
- var c = new C.r7;
- return c.j() ? c: s
- };
- C.q7 = C.B.extend({
- j: function() {
- return this.Hb(C.L === C.la ? 250 : 100)
- },
- Hb: function(c) {
- return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.Xh(80), this.yj(10), this.wj( - 60), this.xj(0), this.no(15), this.oo(0), this.ok(90), this.pk(360), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(4), this.uk(1), this.wk(30), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(128, 128, 128, 255)), this.zj(C.color(128, 128, 128, 128)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), this.Nm(q), q) : t
- }
- });
- C.q7.create = function() {
- var c = new C.q7;
- return c.j() ? c: s
- };
- C.s7 = C.B.extend({
- j: function() {
- return this.Hb(C.L === C.la ? 150 : 100)
- },
- Hb: function(c) {
- return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d( - 200, 200)), this.Xh(15), this.yj(5), this.wj(0), this.xj(0), this.no(0), this.oo(0), this.ok(90), this.pk(360), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(2), this.uk(1), this.wk(60), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(51, 102, 179)), this.zj(C.color(0, 0, 51, 26)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), this.Nm(q), q) : t
- }
- });
- C.s7.create = function() {
- var c = new C.s7;
- return c.j() ? c: s
- };
- C.w7 = C.B.extend({
- j: function() {
- return this.Hb(C.L === C.la ? 500 : 100)
- },
- Hb: function(c) {
- return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.Xh(150), this.yj(0), this.wj( - 380), this.xj(0), this.no(45), this.oo(0), this.ok(90), this.pk(0), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(12), this.uk(0), this.wk(20), this.xk(0), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(128, 128, 128, 255)), this.zj(C.color(128, 128, 128, 0)), this.sg(C.color(128, 128, 128, 255)), this.uj(C.color(128, 128, 128, 0)), this.Nm(t), q) : t
- }
- });
- C.w7.create = function() {
- var c = new C.w7;
- return c.j() ? c: s
- };
- C.n7 = C.B.extend({
- j: function() {
- return this.Hb(C.L === C.la ? 700 : 300)
- },
- Hb: function(c) {
- return C.B.prototype.Hb.call(this, c) ? (this.Wh(0.1), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.Xh(70), this.yj(40), this.wj(0), this.xj(0), this.no(0), this.oo(0), this.ok(90), this.pk(360), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(5), this.uk(2), this.wk(15), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.Rr()), this.tg(C.color(179, 26, 51, 255)), this.zj(C.color(128, 128, 128, 0)), this.sg(C.color(128, 128, 128, 0)), this.uj(C.color(128, 128, 128, 0)), this.Nm(t), q) : t
- }
- });
- C.n7.create = function() {
- var c = new C.n7;
- return c.j() ? c: s
- };
- C.u7 = C.B.extend({
- j: function() {
- return this.Hb(C.L === C.la ? 200 : 100)
- },
- Hb: function(c) {
- return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.wj(0), this.xj(0), this.Xh(25), this.yj(10), this.ok(90), this.pk(5), this.p(C.Q.aa.width / 2, 0), this.vk(C.d(20, 0)), this.tk(4), this.uk(1), this.wk(60), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(204, 204, 204, 255)), this.zj(C.color(5, 5, 5, 0)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), this.Nm(t), q) : t
- }
- });
- C.u7.create = function() {
- var c = new C.u7;
- return c.j() ? c: s
- };
- C.v7 = C.B.extend({
- j: function() {
- return this.Hb(C.L === C.la ? 700 : 250)
- },
- Hb: function(c) {
- return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, -1)), this.Xh(5), this.yj(1), this.wj(0), this.xj(1), this.no(0), this.oo(1), c = C.Q.aa, this.p(c.width / 2, c.height + 10), this.vk(C.d(c.width / 2, 0)), this.ok( - 90), this.pk(5), this.tk(45), this.uk(15), this.wk(10), this.xk(5), this.sk(C.B.Kl), this.qk(10), this.tg(C.color(255, 255, 255, 255)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(255, 255, 255, 0)), this.uj(C.color(0, 0, 0, 0)), this.Nm(t), q) : t
- }
- });
- C.v7.create = function() {
- var c = new C.v7;
- return c.j() ? c: s
- };
- C.t7 = C.B.extend({
- j: function() {
- return this.Hb(C.L === C.la ? 1E3: 300)
- },
- Hb: function(c) {
- return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(10, -10)), this.wj(0), this.xj(1), this.no(0), this.oo(1), this.Xh(130), this.yj(30), this.ok( - 90), this.pk(5), c = C.Q.aa, this.p(c.width / 2, c.height), this.vk(C.d(c.width / 2, 0)), this.tk(4.5), this.uk(0), this.wk(4), this.xk(2), this.sk(C.B.Kl), this.qk(20), this.tg(C.color(179, 204, 255, 255)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(179, 204, 255, 128)), this.uj(C.color(0, 0, 0, 0)), this.Nm(t), q) : t
- }
- });
- C.t7.create = function() {
- var c = new C.t7;
- return c.j() ? c: s
- };
- C.OMa = 500;
- C.GT = C.A.extend({
- textureAtlas: s,
- DNa: q,
- C: s,
- qa: "ParticleBatchNode",
- ctor: function(c, d) {
- C.A.prototype.ctor.call(this);
- this.C = {
- src: C.Ic,
- ga: C.Hc
- };
- "string" == typeof c ? this.j(c, d) : c instanceof C.Ma && this.ta(c, d)
- },
- ta: function(c, d) {
- this.textureAtlas = new C.uq;
- this.textureAtlas.ta(c, d);
- this.l.length = 0;
- C.L === C.la && (this.shaderProgram = C.ug.Xd(C.Co));
- return q
- },
- Ce: function(c, d) {
- var f = C.kb.sd(c);
- return this.ta(f, d)
- },
- j: function(c, d) {
- var f = C.CNa.gk().sd(c);
- return this.ta(f, d)
- },
- q: function(c, d, f) {
- c || e("cc.ParticleBatchNode.addChild() : child should be non-null");
- c instanceof C.B || e("cc.ParticleBatchNode.addChild() : only supports cc.ParticleSystem as children");
- d = d == s ? c.zIndex: d;
- f = f == s ? c.tag: f;
- c.ob() != this.textureAtlas.texture && e("cc.ParticleSystem.addChild() : the child is not using the same texture id");
- var g = c.ek();
- if (0 === this.l.length) this.Yd(g);
- else if (g.src != this.C.src || g.ga != this.C.ga) {
- C.log("cc.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function");
- return
- }
- d = this.Kqa(c, d, f);
- f = 0;
- 0 != d ? (d = this.l[d - 1], f = d.WB() + d.wc) : f = 0;
- this.d1(c, f);
- c.os(this)
- },
- d1: function(c, d) {
- var f = c.wc,
- g = this.textureAtlas,
- h = g.totalQuads;
- c.C2(d);
- h + f > g.Yf && (this.Ysa(h + f), g.wda(g.Yf - f, f));
- c.WB() + f != h && g.Sfa(d, d + f);
- g.Pea(f);
- this.rZ()
- },
- removeChild: function(c, d) {
- if (c != s) if (c instanceof C.B || e("cc.ParticleBatchNode.removeChild(): only supports cc.ParticleSystem as children"), -1 == this.l.indexOf(c)) C.log("cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it");
- else {
- C.A.prototype.removeChild.call(this, c, d);
- var f = this.textureAtlas;
- f.yGa(c.WB(), c.wc);
- f.wda(f.totalQuads, c.wc);
- c.os(s);
- this.rZ()
- }
- },
- OC: function(c, d) {
- c || e("cc.ParticleBatchNode.reorderChild(): child should be non-null");
- c instanceof C.B || e("cc.ParticleBatchNode.reorderChild(): only supports cc.QuadParticleSystems as children");
- if ( - 1 === this.l.indexOf(c)) C.log("cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch");
- else if (d != c.zIndex) {
- if (1 < this.l.length) {
- var f = this.ksa(c, d);
- if (f.Zfa != f.Vfa) {
- this.l.splice(f.Zfa, 1);
- this.l.splice(f.Vfa, 0, c);
- f = c.WB();
- this.rZ();
- for (var g = 0,
- h = this.l,
- k = 0; k < h.length; k++) if (h[k] == c) {
- g = c.WB();
- break
- }
- this.textureAtlas.Sfa(f, c.wc, g);
- c.NJa()
- }
- }
- c.Ow(d)
- }
- },
- sGa: function(c, d) {
- this.removeChild(this.l[i], d)
- },
- xf: function(c) {
- for (var d = this.l,
- f = 0; f < d.length; f++) d[f].os(s);
- C.A.prototype.xf.call(this, c);
- this.textureAtlas.NC()
- },
- Gya: function(c) {
- c = this.textureAtlas.quads[c];
- c.Y.m.x = c.Y.m.y = c.V.m.x = c.V.m.y = c.X.m.x = c.X.m.y = c.T.m.x = c.T.m.y = 0;
- this.textureAtlas.Vt(q)
- },
- ka: function() {
- C.L !== C.cb && 0 != this.textureAtlas.totalQuads && (C.BC(this), C.Gea(this.C.src, this.C.ga), this.textureAtlas.KB())
- },
- ob: function() {
- return this.textureAtlas.texture
- },
- Va: function(c) {
- this.textureAtlas.texture = c;
- var d = this.C;
- c && (!c.Hp() && d.src == C.Ic && d.ga == C.Hc) && (d.src = C.SRC_ALPHA, d.ga = C.ONE_MINUS_SRC_ALPHA)
- },
- Yd: function(c, d) {
- d === m ? (this.C.src = c.src, this.C.ga = c.ga) : (this.C.src = c, this.C.src = d)
- },
- ek: function() {
- return {
- src: this.C.src,
- ga: this.C.ga
- }
- },
- J: function(c) {
- C.L !== C.cb && this.Ja && (C.Zr(), this.grid && this.grid.zi() && (this.grid.px(), this.CJ()), this.transform(c), this.ka(c), this.grid && this.grid.zi() && this.grid.mx(this), C.Yr())
- },
- rZ: function() {
- for (var c = 0,
- d = this.l,
- f = 0; f < d.length; f++) {
- var g = d[f];
- g.C2(c);
- c += g.wc
- }
- },
- Ysa: function(c) {
- C.log("cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from [" + this.textureAtlas.Yf + "] to [" + c + "].");
- this.textureAtlas.eR(c) || C.log("cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas")
- },
- Mua: function(c) {
- for (var d = this.l,
- f = d.length,
- g = 0; g < f; g++) if (d[g].zIndex > c) return g;
- return f
- },
- ksa: function(c, d) {
- for (var f = t,
- g = t,
- h = 0,
- k = 0,
- n = 0,
- p = this.l,
- r = p.length,
- v = 0; v < r; v++) {
- var y = p[v];
- if (y.zIndex > d && !g && (h = v, g = q, f && g)) break;
- if (c == y && (k = v, f = q, g || (n = -1), f && g)) break
- }
- g || (h = r);
- return {
- Vfa: h + n,
- Zfa: k
- }
- },
- Kqa: function(c, d, f) {
- c || e("cc.ParticleBatchNode._addChildHelper(): child should be non-null");
- if (c.parent) return C.log("cc.ParticleBatchNode._addChildHelper(): child already added. It can't be added again"),
- s;
- this.l || (this.l = []);
- var g = this.Mua(d);
- this.l.splice(g, 0, c);
- c.tag = f;
- c.Ow(d);
- c.parent = this;
- this.$c && (c.Z(), c.qj());
- return g
- },
- hl: function() {
- this.textureAtlas.texture.Hp() || (this.C.src = C.SRC_ALPHA, this.C.ga = C.ONE_MINUS_SRC_ALPHA)
- },
- VH: A("textureAtlas"),
- p3: x("textureAtlas")
- });
- H = C.GT.prototype;
- C.e(H, "texture", H.ob, H.Va);
- C.GT.create = function(c, d) {
- return new C.GT(c, d)
- };
- C.XLa = function(c, d, f) {
- this.Sn = c || C.rect(0, 0, 0, 0);
- this.end = d || C.rect(0, 0, 0, 0);
- this.duration = f || 0
- };
- C.WLa = C.O.extend({
- ctor: function() {
- C.Kp.sca(this)
- },
- aR: function() {
- C.Kp.aR(this)
- },
- pH: function() {
- return C.Kp.Fca(this)
- },
- nP: function() {
- return C.Kp.lda(this)
- },
- o_: B(t),
- Dya: u(),
- p_: B(t),
- Eya: u(),
- lI: u(),
- mP: u(),
- o0: B(""),
- p1: u(),
- mfa: u(),
- nfa: u(),
- lfa: u()
- });
- C.mT = C.O.extend({
- ve: s,
- Xb: s,
- Nq: "",
- kw: s,
- ctor: function() {
- this.Xb = new C.mT.Dma;
- this.kw = C.d(0, 0)
- },
- j: function() {
- if (!C.Sc.Xr) {
- this.ve = C.ic("#imeDispatcherInput");
- this.ve || (this.ve = C.pD("input"), this.ve.setAttribute("type", "text"), this.ve.setAttribute("id", "imeDispatcherInput"), this.ve.$p(0, 0), this.ve.DJ(0, 0), this.ve.style.opacity = "0", this.ve.style.fontSize = "1px", this.ve.setAttribute("tabindex", 2), this.ve.style.position = "absolute", this.ve.style.top = 0, this.ve.style.left = 0, document.body.appendChild(this.ve));
- var c = this;
- C.qb(this.ve, "input",
- function() {
- c.fY(c.ve.value)
- },
- t);
- C.qb(this.ve, "keydown",
- function(d) {
- d.keyCode === C.Uy.aJa ? (d.stopPropagation(), d.preventDefault()) : d.keyCode == C.Uy.c0 && (c.EH("\n", 1), d.stopPropagation(), d.preventDefault())
- },
- t);
- /msie/i.test(navigator.userAgent) && C.qb(this.ve, "keyup",
- function(d) {
- d.keyCode == C.Uy.Gca && c.fY(c.ve.value)
- },
- t);
- C.qb(window, "mousedown",
- function(d) {
- var f = d.pageY || 0;
- c.kw.x = d.pageX || 0;
- c.kw.y = f
- },
- t)
- }
- },
- fY: function(c) {
- var d, f;
- d = this.Nq.length < c.length ? this.Nq.length: c.length;
- for (f = 0; f < d && c[f] === this.Nq[f]; f++);
- var g = this.Nq.length - f,
- h = c.length - f;
- for (d = 0; d < g; d++) this.nda();
- for (d = 0; d < h; d++) this.EH(c[f + d], 1);
- this.Nq = c
- },
- EH: function(c, d) {
- this.Xb && c && !(0 >= d) && this.Xb.ki && this.Xb.ki.lI(c, d)
- },
- nda: function() {
- this.Xb && this.Xb.ki && this.Xb.ki.mP()
- },
- o0: function() {
- if (this.Xb && this.Xb.ki) {
- var c = this.Xb.ki.o0();
- return c ? c: ""
- }
- return ""
- },
- HRa: function(c) {
- if (this.Xb) for (var d = 0; d < this.Xb.Qk.length; d++) {
- var f = this.Xb.Qk[d];
- f && f.p1(c)
- }
- },
- FRa: function() {
- if (this.Xb) for (var c = 0; c < this.Xb.Qk.length; c++);
- },
- GRa: function() {
- if (this.Xb) for (var c = 0; c < this.Xb.Qk.length; c++);
- },
- ERa: function() {
- if (this.Xb) for (var c = 0; c < this.Xb.Qk.length; c++);
- },
- sca: function(c) {
- c && this.Xb && ( - 1 < this.Xb.Qk.indexOf(c) || this.Xb.Qk.splice(0, 0, c))
- },
- Fca: function(c) {
- if (!this.Xb || !c || -1 == this.Xb.Qk.indexOf(c)) return t;
- if (this.Xb.ki) {
- if (!this.Xb.ki.p_() || !c.o_()) return t;
- this.Xb.ki = s;
- this.B$(c);
- return q
- }
- if (!c.o_()) return t;
- this.B$(c);
- return q
- },
- B$: function(c) {
- C.Sc.Xr ? (this.Xb.ki = c, this.Nq = c.string || "", c = prompt("please enter your word:", this.Nq), c != s && this.fY(c), this.EH("\n", 1)) : (this.Xb.ki = c, this.Nq = c.string || "", this.ve.focus(), this.ve.value = this.Nq, this.Ira());
- },
- Ira: function() { / msie /i.test(navigator.userAgent) ? (this.ve.style.left = this.kw.x + "px", this.ve.style.top = this.kw.y + "px") : this.ve.DJ(this.kw.x, this.kw.y)
- },
- lda: function(c) {
- if (!this.Xb || !c || this.Xb.ki != c || !c.p_()) return t;
- this.Xb.ki = s;
- C.Pb.focus();
- return q
- },
- aR: function(c) {
- this.Xb && c && -1 != this.Xb.Qk.indexOf(c) && (this.Xb.ki && c == this.Xb.ki && (this.Xb.ki = s), C.Id(this.Xb.Qk, c))
- },
- n1a: function(c) {
- 32 > c ? c == C.Uy.Gca ? this.nda() : c == C.Uy.c0 && this.EH("\n", 1) : 255 > c && this.EH(String.fromCharCode(c), 1)
- }
- });
- C.mT.Dma = C.O.extend({
- ki: s,
- Qk: s,
- ctor: function() {
- this.Qk = []
- },
- wSa: function(c) {
- for (var d = 0; d < this.Qk.length; d++) if (this.Qk[d] == c) return d;
- return s
- }
- });
- C.Kp = new C.mT;
- document.body ? C.Kp.j() : C.qb(window, "load",
- function() {
- C.Kp.j()
- },
- t);
- C.BNa = C.O.extend({
- bga: B(t),
- dga: B(t),
- P1: B(t),
- cga: B(t),
- AEa: B(t)
- });
- C.Hj = C.fa.extend({
- delegate: s,
- gP: s,
- $Oa: s,
- Ni: "",
- Dw: "",
- IL: 0,
- qa: "TextFieldTTF",
- ctor: function(c, d, f, g, h) {
- this.gP = C.color(127, 127, 127);
- C.Kp.sca(this);
- C.fa.prototype.ctor.call(this);
- h !== m ? (this.WCa("", d, f, g, h), c && this.Di(c)) : g === m && f !== m && (this.sf("", d, f), c && this.Di(c))
- },
- ZB: A("delegate"),
- bq: x("delegate"),
- YB: A("IL"),
- ITa: A("gP"),
- F3a: x("gP"),
- WCa: function(c, d, f, g, h) {
- switch (arguments.length) {
- case 5:
- return c && this.Di(c),
- this.sf(this.Dw, g, h, d, f);
- case 3:
- return c && this.Di(c),
- this.sf(this.Dw, arguments[1], arguments[2]);
- default:
- e("Argument must be non-nil ")
- }
- },
- sa: function(c) {
- this.Ni = (c = String(c)) || "";
- this.Ni.length ? C.fa.prototype.sa.call(this, this.Ni) : C.fa.prototype.sa.call(this, this.Dw);
- this.IL = this.Ni.length
- },
- Wb: A("Ni"),
- Di: function(c) {
- this.Dw = c || "";
- this.Ni.length || C.fa.prototype.sa.call(this, this.Dw)
- },
- cC: A("Dw"),
- ka: function(c) {
- c = c || C.t;
- if (this.Ni && 0 < this.Ni.length) C.fa.prototype.ka.call(this, c);
- else {
- var d = this.color;
- this.color = this.gP;
- C.L === C.cb && this.JO();
- C.fa.prototype.ka.call(this, c);
- this.color = d
- }
- },
- J: function(c) {
- this._super(c)
- },
- pH: function() {
- return C.Kp.Fca(this)
- },
- nP: function() {
- return C.Kp.lda(this)
- },
- o_: function() {
- return this.delegate ? !this.delegate.bga(this) : q
- },
- Dya: u(),
- p_: function() {
- return this.delegate ? !this.delegate.dga(this) : q
- },
- Eya: u(),
- mP: function() {
- var c = this.Ni.length;
- if (0 != c && (!this.delegate || !this.delegate.cga(this, this.Ni[c - 1], 1))) 1 >= c ? (this.Ni = "", this.IL = 0, C.fa.prototype.sa.call(this, this.Dw)) : this.string = this.Ni.substring(0, c - 1)
- },
- aR: function() {
- C.Kp.aR(this)
- },
- lI: function(c) {
- var d = c;
- c = d.indexOf("\n"); - 1 < c && (d = d.substring(0, c));
- if (0 < d.length) {
- if (this.delegate && this.delegate.P1(this, d, d.length)) return;
- d = this.Ni + d;
- this.IL = d.length;
- this.string = d
- } - 1 != c && (!this.delegate || !this.delegate.P1(this, "\n", 1)) && this.nP()
- },
- o0: A("Ni"),
- p1: u(),
- mfa: u(),
- nfa: u(),
- lfa: u()
- });
- H = C.Hj.prototype;
- C.e(H, "charCount", H.YB);
- C.e(H, "placeHolder", H.cC, H.Di);
- C.Hj.create = function(c, d, f, g, h) {
- return new C.Hj(c, d, f, g, h)
- };
- C.FM = C.Cma;
- C.PF = "Arial";
- C.T$ = t;
- C.af = C.ha.extend({
- Wc: t,
- Xc: s,
- Xf: s,
- Sj: t,
- qa: "MenuItem",
- ctor: function(c, d) {
- var f = C.ha.prototype;
- f.ctor.call(this);
- this.Xf = this.Xc = s;
- this.Wc = this.Sj = t;
- f.S.call(this, 0.5, 0.5);
- this.Xc = d || s;
- if (this.Xf = c || s) this.Wc = q
- },
- oQ: A("Sj"),
- $d: u(),
- qg: B(t),
- pJ: function(c, d) {
- this.Xc = d;
- this.Xf = c
- },
- isEnabled: A("Wc"),
- Ib: x("Wc"),
- jI: function(c, d) {
- this.anchorY = this.anchorX = 0.5;
- this.Xc = d;
- this.Xf = c;
- this.Wc = q;
- this.Sj = t;
- return q
- },
- rect: function() {
- var c = this.ma,
- d = this.o,
- f = this.Ab;
- return C.rect(c.x - d.width * f.x, c.y - d.height * f.y, d.width, d.height)
- },
- selected: function() {
- this.Sj = q
- },
- qo: function() {
- this.Sj = t
- },
- pha: function(c, d) {
- this.Xc = d;
- this.Xf = c
- },
- kH: function() {
- if (this.Wc) {
- var c = this.Xc,
- d = this.Xf;
- if (d) if (c && "string" == typeof d) c[d](this);
- else c && "function" == typeof d ? d.call(c, this) : d(this)
- }
- }
- });
- H = C.af.prototype;
- C.e(H, "enabled", H.isEnabled, H.Ib);
- C.af.create = function(c, d) {
- return new C.af(c, d)
- };
- C.vv = C.af.extend({
- Pz: s,
- ee: s,
- aua: 0,
- kF: s,
- ctor: function(c, d, f) {
- C.af.prototype.ctor.call(this, d, f);
- this.ee = this.Pz = s;
- this.aua = 0;
- this.kF = s;
- c && (this.lG = 1, this.kF = C.color.WHITE, this.Pz = C.color(126, 126, 126), this.BR(c), this.cascadeOpacity = this.cascadeColor = q)
- },
- sAa: A("Pz"),
- nHa: x("Pz"),
- QAa: A("ee"),
- BR: function(c) {
- c && (this.q(c), c.anchorX = 0, c.anchorY = 0, this.width = c.width, this.height = c.height);
- this.ee && this.removeChild(this.ee, q);
- this.ee = c
- },
- Ib: function(c) {
- if (this.Wc != c) {
- var d = this.ee;
- c ? d.color = this.kF: (this.kF = d.color, d.color = this.Pz)
- }
- C.af.prototype.Ib.call(this, c)
- },
- K: function(c) {
- this.ee.opacity = c
- },
- rb: function() {
- return this.ee.opacity
- },
- G: function(c) {
- this.ee.color = c
- },
- Xa: function() {
- return this.ee.color
- },
- $ea: function(c, d, f) {
- this.jI(d, f);
- this.lG = 1;
- this.kF = C.color.WHITE;
- this.Pz = C.color(126, 126, 126);
- this.BR(c);
- return this.cascadeOpacity = this.cascadeColor = q
- },
- sa: function(c) {
- this.ee.string = c;
- this.width = this.ee.width;
- this.height = this.ee.height
- },
- Wb: function() {
- return this.ee.string
- },
- kH: function() {
- this.Wc && (this.yk(), this.scale = this.lG, C.af.prototype.kH.call(this))
- },
- selected: function() {
- if (this.Wc) {
- C.af.prototype.selected.call(this);
- var c = this.xP(C.$K);
- c ? this.yJ(c) : this.lG = this.scale;
- c = C.ae.create(0.1, 1.2 * this.lG);
- c.Qm(C.$K);
- this.Ya(c)
- }
- },
- qo: function() {
- if (this.Wc) {
- C.af.prototype.qo.call(this);
- this.VIa(C.$K);
- var c = C.ae.create(0.1, this.lG);
- c.Qm(C.$K);
- this.Ya(c)
- }
- }
- });
- H = C.vv.prototype;
- C.e(H, "string", H.Wb, H.sa);
- C.e(H, "disabledColor", H.sAa, H.nHa);
- C.e(H, "label", H.QAa, H.BR);
- C.vv.create = function(c, d, f) {
- return new C.vv(c, d, f)
- };
- C.E6 = C.vv.extend({
- ctor: function(c, d, f, g, h, k, n) {
- var p;
- c && 0 < c.length && (p = C.Gl.create(c, d, f, g, h));
- C.vv.prototype.ctor.call(this, p, k, n)
- },
- sf: function(c, d, f, g, h, k, n) { (!c || 0 == c.length) && e("cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0");
- var p = new C.Gl;
- p.sf(c, d, f, g, h);
- this.$ea(p, k, n);
- return q
- }
- });
- C.E6.create = function(c, d, f, g, h, k, n) {
- return new C.E6(c, d, f, g, h, k, n)
- };
- C.uv = C.vv.extend({
- Pc: s,
- Oc: s,
- ctor: function(c, d, f) {
- var g;
- c && 0 < c.length ? (this.Oc = C.PF, this.Pc = C.FM, g = C.fa.create(c, this.Oc, this.Pc)) : (this.Pc = 0, this.Oc = "");
- C.vv.prototype.ctor.call(this, g, d, f)
- },
- sf: function(c, d, f) { (!c || 0 == c.length) && e("Value should be non-null and its length should be greater than 0");
- this.Oc = C.PF;
- this.Pc = C.FM;
- c = C.fa.create(c, this.Oc, this.Pc);
- this.$ea(c, d, f);
- return q
- },
- Od: function(c) {
- this.Pc = c;
- this.$aa()
- },
- Vn: A("Pc"),
- Zd: function(c) {
- this.Oc = c;
- this.$aa()
- },
- Fp: A("Oc"),
- $aa: function() {
- var c = C.fa.create(this.ee.string, this.Oc, this.Pc);
- this.BR(c)
- }
- });
- C.uv.Od = function(c) {
- C.FM = c
- };
- C.uv.fontSize = function() {
- return C.FM
- };
- C.uv.Zd = function(c) {
- C.T$ && (C.PF = "");
- C.PF = c;
- C.T$ = q
- };
- H = C.uv.prototype;
- C.e(H, "fontSize", H.Vn, H.Od);
- C.e(H, "fontName", H.Fp, H.Zd);
- C.uv.fontName = function() {
- return C.PF
- };
- C.uv.create = function(c, d, f) {
- return new C.uv(c, d, f)
- };
- C.Zy = C.af.extend({
- Fg: s,
- Zi: s,
- Li: s,
- ctor: function(c, d, f, g, h) {
- C.af.prototype.ctor.call(this);
- this.Li = this.Zi = this.Fg = s;
- if (d !== m) {
- var k, n, p;
- h !== m ? (k = f, p = g, n = h) : g !== m && "function" === typeof g ? (k = f, p = g) : g !== m && "function" === typeof f ? (n = g, p = f, k = d) : f === m && (k = d);
- this.afa(c, d, k, p, n)
- }
- },
- kBa: A("Fg"),
- V2: function(c) {
- this.Fg != c && (c && (this.q(c, 0, C.bna), c.anchorX = 0, c.anchorY = 0), this.Fg && this.removeChild(this.Fg, q), this.Fg = c, this.width = this.Fg.width, this.height = this.Fg.height, this.EO(), c.eD && !c.Aa && c.ye(function(c) {
- this.width = c.width;
- this.height = c.height
- },
- this))
- },
- KBa: A("Zi"),
- k3: function(c) {
- this.Zi != c && (c && (this.q(c, 0, C.foa), c.anchorX = 0, c.anchorY = 0), this.Zi && this.removeChild(this.Zi, q), this.Zi = c, this.EO())
- },
- tAa: A("Li"),
- O2: function(c) {
- this.Li != c && (c && (this.q(c, 0, C.Gla), c.anchorX = 0, c.anchorY = 0), this.Li && this.removeChild(this.Li, q), this.Li = c, this.EO())
- },
- afa: function(c, d, f, g, h) {
- this.jI(g, h);
- this.V2(c);
- this.k3(d);
- this.O2(f);
- if (c = this.Fg) this.width = c.width,
- this.height = c.height,
- c.eD && !c.Aa && c.ye(function(c) {
- this.width = c.width;
- this.height = c.height;
- this.cascadeOpacity = this.cascadeColor = q
- },
- this);
- return this.cascadeOpacity = this.cascadeColor = q
- },
- G: function(c) {
- this.Fg.color = c;
- this.Zi && (this.Zi.color = c);
- this.Li && (this.Li.color = c)
- },
- Xa: function() {
- return this.Fg.color
- },
- K: function(c) {
- this.Fg.opacity = c;
- this.Zi && (this.Zi.opacity = c);
- this.Li && (this.Li.opacity = c)
- },
- rb: function() {
- return this.Fg.opacity
- },
- selected: function() {
- C.af.prototype.selected.call(this);
- this.Fg && (this.Li && (this.Li.visible = t), this.Zi ? (this.Fg.visible = t, this.Zi.visible = q) : this.Fg.visible = q)
- },
- qo: function() {
- C.af.prototype.qo.call(this);
- this.Fg && (this.Fg.visible = q, this.Zi && (this.Zi.visible = t), this.Li && (this.Li.visible = t))
- },
- Ib: function(c) {
- this.Wc != c && (C.af.prototype.Ib.call(this, c), this.EO())
- },
- EO: function() {
- var c = this.Fg,
- d = this.Zi,
- f = this.Li;
- this.Wc ? (c && (c.visible = q), d && (d.visible = t), f && (f.visible = t)) : f ? (c && (c.visible = t), d && (d.visible = t), f && (f.visible = q)) : (c && (c.visible = q), d && (d.visible = t))
- }
- });
- H = C.Zy.prototype;
- C.e(H, "normalImage", H.kBa, H.V2);
- C.e(H, "selectedImage", H.KBa, H.k3);
- C.e(H, "disabledImage", H.tAa, H.O2);
- C.Zy.create = function(c, d, f, g, h) {
- return new C.Zy(c, d, f, g, h || m)
- };
- C.wT = C.Zy.extend({
- ctor: function(c, d, f, g, h) {
- var k = s,
- n = s,
- p = s,
- r = s,
- v = s;
- c === m ? C.Zy.prototype.ctor.call(this) : (k = C.u.create(c), d && (n = C.u.create(d)), g === m ? r = f: h === m ? (r = f, v = g) : h && (p = C.u.create(f), r = g, v = h), C.Zy.prototype.ctor.call(this, k, n, p, r, v))
- },
- PHa: function(c) {
- this.V2(C.u.create(c))
- },
- jIa: function(c) {
- this.k3(C.u.create(c))
- },
- oHa: function(c) {
- this.O2(C.u.create(c))
- },
- QXa: function(c, d, f, g, h) {
- var k = s,
- n = s,
- p = s;
- c && (k = C.u.create(c));
- d && (n = C.u.create(d));
- f && (p = C.u.create(f));
- return this.afa(k, n, p, g, h)
- }
- });
- C.wT.create = function(c, d, f, g, h) {
- return new C.wT(c, d, f, g, h)
- };
- C.yT = C.af.extend({
- vg: s,
- jm: 0,
- Eb: s,
- ya: s,
- ctor: function() {
- var c = arguments.length,
- d, f;
- "function" === typeof arguments[c - 2] ? (d = arguments[c - 2], f = arguments[c - 1], c -= 2) : "function" === typeof arguments[c - 1] && (d = arguments[c - 1], c -= 1);
- C.af.prototype.ctor.call(this, d, f);
- this.jm = 0;
- this.vg = [];
- this.Eb = 0;
- this.ya = C.color.WHITE;
- if (0 < c) {
- d = this.vg;
- for (f = d.length = 0; f < c; f++) arguments[f] && d.push(arguments[f]);
- this.jm = C.EU;
- this.lJ(0);
- this.Pu(q);
- this.Qu(q)
- }
- },
- rb: A("Eb"),
- K: function(c) {
- this.Eb = c;
- if (this.vg && 0 < this.vg.length) for (var d = 0; d < this.vg.length; d++) this.vg[d].opacity = c;
- this.ya.a = c
- },
- Xa: function() {
- var c = this.ya;
- return C.color(c.r, c.g, c.b, c.a)
- },
- G: function(c) {
- var d = this.ya;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b;
- if (this.vg && 0 < this.vg.length) for (d = 0; d < this.vg.length; d++) this.vg[d].G(c);
- c.a !== m && !c.jx && this.K(c.a)
- },
- LBa: A("jm"),
- lJ: function(c) {
- if (c != this.jm) {
- this.jm = c; (c = this.lj(C.k5)) && c.Lm(t);
- c = this.vg[this.jm];
- this.q(c, 0, C.k5);
- var d = c.width,
- f = c.height;
- this.width = d;
- this.height = f;
- c.p(d / 2, f / 2)
- }
- },
- LWa: A("vg"),
- i5a: x("vg"),
- fQ: function(c) {
- var d = c.length;
- "function" === typeof c[c.length - 2] ? (this.jI(c[c.length - 2], c[c.length - 1]), d -= 2) : "function" === typeof c[c.length - 1] ? (this.jI(c[c.length - 1], s), d -= 1) : this.jI(s, s);
- for (var f = this.vg,
- g = f.length = 0; g < d; g++) c[g] && f.push(c[g]);
- this.jm = C.EU;
- this.lJ(0);
- return this.cascadeOpacity = this.cascadeColor = q
- },
- iQa: function(c) {
- this.vg.push(c)
- },
- kH: function() {
- this.Wc && this.lJ((this.jm + 1) % this.vg.length);
- C.af.prototype.kH.call(this)
- },
- selected: function() {
- C.af.prototype.selected.call(this);
- this.vg[this.jm].selected()
- },
- qo: function() {
- C.af.prototype.qo.call(this);
- this.vg[this.jm].qo()
- },
- Ib: function(c) {
- if (this.Wc != c) {
- C.af.prototype.Ib.call(this, c);
- var d = this.vg;
- if (d && 0 < d.length) for (var f = 0; f < d.length; f++) d[f].enabled = c
- }
- },
- e3a: function() {
- return this.vg[this.jm]
- },
- Z: function() {
- C.A.prototype.Z.call(this);
- this.lJ(this.jm)
- }
- });
- H = C.yT.prototype;
- C.e(H, "selectedIndex", H.LBa, H.lJ);
- C.yT.create = function() {
- 0 < arguments.length && arguments[arguments.length - 1] == s && C.log("parameters should not be ending with null in Javascript");
- var c = new C.yT;
- c.fQ(Array.prototype.slice.apply(arguments));
- return c
- };
- C.oE = 0;
- C.nE = 1;
- C.uMa = -128;
- C.eK = 5;
- C.Yy = C.ai.extend({
- enabled: t,
- ya: s,
- Eb: 0,
- Gf: s,
- zb: -1,
- ui: s,
- qa: "Menu",
- ctor: function(c) {
- C.ai.prototype.ctor.call(this);
- this.ya = C.color.WHITE;
- this.enabled = t;
- this.Eb = 255;
- this.Gf = s;
- this.zb = -1;
- this.ui = C.Oa.create({
- event: C.Oa.Gs,
- yy: q,
- nc: this.Vta,
- yd: this.Zta,
- cd: this.Xta,
- Xe: this.Wta
- });
- 0 < arguments.length && arguments[arguments.length - 1] == s && C.log("parameters should not be ending with null in Javascript");
- var d = arguments.length,
- f;
- if (0 == d) f = [];
- else if (1 == d) f = c instanceof Array ? c: [c];
- else if (1 < d) {
- f = [];
- for (var g = 0; g < d; g++) arguments[g] && f.push(arguments[g])
- }
- this.Vea(f)
- },
- Z: function() {
- var c = this.ui;
- c.Wi || C.Ka.addListener(c, this);
- C.A.prototype.Z.call(this)
- },
- Xa: function() {
- var c = this.ya;
- return C.color(c.r, c.g, c.b, c.a)
- },
- G: function(c) {
- var d = this.ya;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b;
- if ((d = this.l) && 0 < d.length) for (var f = 0; f < d.length; f++) d[f].G(c);
- c.a !== m && !c.jx && this.K(c.a)
- },
- rb: A("Eb"),
- K: function(c) {
- this.Eb = c;
- var d = this.l;
- if (d && 0 < d.length) for (var f = 0; f < d.length; f++) d[f].K(c);
- this.ya.a = c
- },
- isEnabled: A("enabled"),
- Ib: x("enabled"),
- fQ: function(c) {
- var d = [];
- if (c) for (var f = 0; f < c.length; f++) c[f] && d.push(c[f]);
- return this.Vea(d)
- },
- Vea: function(c) {
- if (C.ai.prototype.j.call(this)) {
- this.enabled = q;
- var d = C.KJ;
- this.p(d.width / 2, d.height / 2);
- this.Ca(d);
- this.S(0.5, 0.5);
- this.Hm(q);
- if (c) for (d = 0; d < c.length; d++) this.q(c[d], d);
- this.Gf = s;
- this.zb = C.oE;
- return this.cascadeOpacity = this.cascadeColor = q
- }
- return t
- },
- q: function(c, d, f) {
- c instanceof C.af || e("cc.Menu.addChild() : Menu only supports MenuItem objects as children");
- C.qe.prototype.q.call(this, c, d, f)
- },
- Kwa: function() {
- this.RZ(C.eK)
- },
- RZ: function(c) {
- var d = -c,
- f = this.l,
- g, h, k, n;
- if (f && 0 < f.length) {
- h = 0;
- for (g = f.length; h < g; h++) d += f[h].height * f[h].scaleY + c;
- var p = d / 2;
- h = 0;
- for (g = f.length; h < g; h++) n = f[h],
- k = n.height,
- d = n.scaleY,
- n.p(0, p - k * d / 2),
- p -= k * d + c
- }
- },
- Hwa: function() {
- this.QZ(C.eK)
- },
- QZ: function(c) {
- var d = -c,
- f = this.l,
- g, h, k, n;
- if (f && 0 < f.length) {
- g = 0;
- for (h = f.length; g < h; g++) d += f[g].width * f[g].scaleX + c;
- var p = -d / 2;
- g = 0;
- for (h = f.length; g < h; g++) n = f[g],
- d = n.scaleX,
- k = f[g].width,
- n.p(p + k * d / 2, 0),
- p += k * d + c
- }
- },
- Iwa: function() {
- 0 < arguments.length && arguments[arguments.length - 1] == s && C.log("parameters should not be ending with null in Javascript");
- for (var c = [], d = 0; d < arguments.length; d++) c.push(arguments[d]);
- var f = -5,
- g = 0,
- h = 0,
- k = 0,
- n, p, r, v = this.l;
- if (v && 0 < v.length) {
- d = 0;
- for (r = v.length; d < r; d++) if (! (g >= c.length) && (n = c[g])) p = v[d].height,
- h = h >= p || isNaN(p) ? h: p,
- ++k,
- k >= n && (f += h + 5, h = k = 0, ++g)
- }
- var y = C.Q.aa,
- z = n = h = g = 0,
- D = 0,
- f = f / 2;
- if (v && 0 < v.length) {
- d = 0;
- for (r = v.length; d < r; d++) {
- var E = v[d];
- 0 == n && (n = c[g], D = z = y.width / (1 + n));
- p = E.Dg();
- h = h >= p || isNaN(p) ? h: p;
- E.p(D - y.width / 2, f - p / 2);
- D += z; ++k;
- k >= n && (f -= h + 5, h = n = k = 0, ++g)
- }
- }
- },
- Jwa: function() {
- 0 < arguments.length && arguments[arguments.length - 1] == s && C.log("parameters should not be ending with null in Javascript");
- var c = [],
- d;
- for (d = 0; d < arguments.length; d++) c.push(arguments[d]);
- var f = [],
- g = [],
- h = -10,
- k = -5,
- n = 0,
- p = 0,
- r = 0,
- v,
- y,
- z,
- D,
- E = this.l;
- if (E && 0 < E.length) {
- d = 0;
- for (z = E.length; d < z; d++) if (y = E[d], !(n >= c.length) && (v = c[n])) D = y.width,
- p = p >= D || isNaN(D) ? p: D,
- k += y.height + 5,
- ++r,
- r >= v && (f.push(p), g.push(k), h += p + 10, p = r = 0, k = -5, ++n)
- }
- k = C.Q.aa;
- v = p = n = 0;
- var h = -h / 2,
- F = 0;
- if (E && 0 < E.length) {
- d = 0;
- for (z = E.length; d < z; d++) y = E[d],
- 0 == v && (v = c[n], F = g[n]),
- D = y.ef(),
- p = p >= D || isNaN(D) ? p: D,
- y.p(h + f[n] / 2, F - k.height / 2),
- F -= y.height + 10,
- ++r,
- r >= v && (h += p + 5, p = v = r = 0, ++n)
- }
- },
- removeChild: function(c, d) {
- c != s && (c instanceof C.af ? (this.Gf == c && (this.Gf = s), C.A.prototype.removeChild.call(this, c, d)) : C.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children"))
- },
- Vta: function(c, d) {
- var f = d.Cf;
- if (f.zb != C.oE || !f.Ja || !f.enabled) return t;
- for (var g = f.parent; g != s; g = g.parent) if (!g.Ja) return t;
- f.Gf = f.naa(c);
- return f.Gf ? (f.zb = C.nE, f.Gf.selected(), q) : t
- },
- Xta: function(c, d) {
- var f = d.Cf;
- f.zb !== C.nE ? C.log("cc.Menu.onTouchEnded(): invalid state") : (f.Gf && (f.Gf.qo(), f.Gf.kH()), f.zb = C.oE)
- },
- Wta: function(c, d) {
- var f = d.Cf;
- f.zb !== C.nE ? C.log("cc.Menu.onTouchCancelled(): invalid state") : (this.Gf && f.Gf.qo(), f.zb = C.oE)
- },
- Zta: function(c, d) {
- var f = d.Cf;
- if (f.zb !== C.nE) C.log("cc.Menu.onTouchMoved(): invalid state");
- else {
- var g = f.naa(c);
- g != f.Gf && (f.Gf && f.Gf.qo(), f.Gf = g, f.Gf && f.Gf.selected())
- }
- },
- Na: function() {
- this.zb == C.nE && (this.Gf && (this.Gf.qo(), this.Gf = s), this.zb = C.oE);
- C.A.prototype.Na.call(this)
- },
- $d: u(),
- qg: B(t),
- naa: function(c) {
- c = c.mh();
- var d = this.l,
- f;
- if (d && 0 < d.length) for (var g = 0; g < d.length; g++) if (f = d[g], f.Ja && f.isEnabled()) {
- var h = f.wi(c),
- k = f.rect();
- k.x = 0;
- k.y = 0;
- if (C.Ju(k, h)) return f
- }
- return s
- }
- });
- H = C.Yy.prototype;
- C.Yy.create = function(c) {
- var d = arguments.length;
- 0 < d && arguments[d - 1] == s && C.log("parameters should not be ending with null in Javascript");
- return 0 == d ? new C.Yy: 1 == d ? new C.Yy(c) : new C.Yy(Array.prototype.slice.call(arguments, 0))
- };
- C.pNa = 0;
- C.lNa = 1;
- C.oNa = 2;
- C.mNa = 3;
- C.nNa = 4;
- C.kNa = 5;
- C.q6a = function(c, d, f) {
- var g = 2;
- if (g + 1 > d) return t;
- c = new C.jka(c);
- c.DR(g);
- f.type = c.$();
- g += 10;
- if (g + 4 + 1 > d) return t;
- c.DR(g);
- f.width = c.dGa();
- f.height = c.cGa();
- f.pixelDepth = c.$();
- if (g + 5 + 1 > d) return t;
- d = c.$();
- f.Cda = 0;
- d & 32 && (f.Cda = 1);
- return q
- };
- C.r6a = function(c, d, f) {
- var g, h;
- g = 0 | f.pixelDepth / 2;
- h = f.height * f.width * g;
- if (18 + h > d) return t;
- f.hk = C.dL(c, 18, 18 + h);
- if (3 <= g) for (c = 0; c < h; c += g) d = f.hk[c],
- f.hk[c] = f.hk[c + 2],
- f.hk[c + 2] = d;
- return q
- };
- C.t6a = function(c) {
- var d, f;
- if (8 !== c.pixelDepth) {
- var g = c.pixelDepth / 8,
- h = new Uint8Array(c.height * c.width);
- if (h !== s) {
- for (f = d = 0; f < c.width * c.height; d += g, f++) h[f] = 0.3 * c.hk[d] + 0.59 * c.hk[d + 1] + 0.11 * c.hk[d + 2];
- c.pixelDepth = 8;
- c.type = 3;
- c.hk = h
- }
- }
- };
- C.o6a = function(c) {
- c && (c.hk = s)
- };
- C.s6a = function(c, d, f) {
- var g, h, k, n = 0,
- p = 0,
- r = 0,
- v = [],
- y = 0,
- z = 18;
- g = f.pixelDepth / 8;
- h = f.height * f.width;
- for (k = 0; k < h; k++) {
- if (0 != y) y--,
- p = 0 != r;
- else {
- if (z + 1 > d) break;
- y = c[z];
- z += 1; (r = y & 128) && (y -= 128);
- p = 0
- }
- if (!p) {
- if (z + g > d) break;
- v = C.dL(c, z, z + g);
- z += g;
- 3 <= g && (p = v[0], v[0] = v[2], v[2] = p)
- }
- for (p = 0; p < g; p++) f.hk[n + p] = v[p];
- n += g
- }
- return q
- };
- C.p6a = function(c) {
- for (var d = c.width * (c.pixelDepth / 8), f = 0; f < c.height / 2; f++) {
- var g = C.dL(c.hk, f * d, f * d + d);
- C.S8(C.dL(c.hk, (c.height - (f + 1)) * d, d), c.hk, f * d);
- C.S8(g, c.hk, (c.height - (f + 1)) * d)
- }
- c.Cda = 0
- };
- C.dL = function(c, d, f) {
- return c instanceof Array ? c.slice(d, f) : c.subarray(d, f)
- };
- C.S8 = function(c, d, f) {
- for (var g = 0; g < c.length; g++) d[f + g] = c[g]
- };
- C.jka = C.O.extend({
- rz: s,
- fb: 0,
- ctor: x("rz"),
- w3a: function(c) {
- this.rz = c;
- this.fb = 0
- },
- dTa: A("rz"),
- KV: function(c) {
- this.fb + Math.ceil(c / 8) < this.Ih.length || e(Error("Index out of bound"))
- },
- XV: function(c, d) {
- var f = c + d + 1,
- g = f >> 3;
- this.KV(f);
- var f = Math.pow(2, d - 1) - 1,
- h = this.jY(c + d, 1, g),
- k = this.jY(c, d, g),
- n = 0,
- p = 2,
- r = 0;
- do
- for (var v = this.IN(++r, g), y = c % 8 || 8, z = 1 << y; z >>= 1;) v & z && (n += 1 / p),
- p *= 2;
- while (c -= y);
- this.fb += g;
- return k == (f << 1) + 1 ? n ? NaN: h ? -Infinity: Infinity: (1 + -2 * h) * (k || n ? !k ? Math.pow(2, -f + 1) * n: Math.pow(2, k - f) * (1 + n) : 0)
- },
- IN: function(c, d) {
- return this.Ih[this.fb + d - c - 1]
- },
- VL: function(c, d) {
- var f = this.jY(0, c, c / 8),
- g = Math.pow(2, c);
- this.fb += c / 8;
- return d && f >= g / 2 ? f - g: f
- },
- NY: function(c, d) {
- for (++d; --d; c = 1073741824 == ((c %= 2147483648) & 1073741824) ? 2 * c: 2 * (c - 1073741824) + 2147483648);
- return c
- },
- jY: function(c, d, f) {
- var g = (c + d) % 8,
- h = c % 8,
- k = f - (c >> 3) - 1;
- c = f + ( - (c + d) >> 3);
- var n = k - c;
- d = this.IN(k, f) >> h & (1 << (n ? 8 - h: d)) - 1;
- for (n && g && (d += (this.IN(c++, f) & (1 << g) - 1) << (n--<<3) - h); n;) d += this.NY(this.IN(c++, f), (n--<<3) - h);
- return d
- },
- B1a: function() {
- return this.VL(32, q)
- },
- cGa: function() {
- return this.VL(32, t)
- },
- D1a: function() {
- return this.XV(23, 8)
- },
- C1a: function() {
- return this.VL(16, q)
- },
- dGa: function() {
- return this.VL(16, t)
- },
- $: function() {
- var c = this.Ih[this.fb];
- this.fb += 1;
- return c
- },
- y1a: function(c, d) {
- return this.rz instanceof Array ? this.rz.slice(c, d) : this.rz.subarray(c, d)
- },
- DR: x("fb"),
- hea: A("fb")
- });
- C.RK = 0;
- C.PK = 1;
- C.QK = 2;
- C.OK = C.ha.extend({
- zd: s,
- B1: s,
- CC: s,
- dg: s,
- rd: s,
- Br: s,
- qa: "TMXTiledMap",
- ctor: function(c, d) {
- C.A.prototype.ctor.call(this);
- this.dg = C.size(0, 0);
- this.rd = C.size(0, 0);
- d !== m ? this.b1(c, d) : c !== m && this.$0(c)
- },
- s0: function() {
- return C.size(this.dg.width, this.dg.height)
- },
- Mha: function(c) {
- this.dg.width = c.width;
- this.dg.height = c.height
- },
- RW: function() {
- return this.dg.width
- },
- EY: function(c) {
- this.dg.width = c
- },
- QW: function() {
- return this.dg.height
- },
- DY: function(c) {
- this.dg.height = c
- },
- eC: function() {
- return C.size(this.rd.width, this.rd.height)
- },
- xia: function(c) {
- this.rd.width = c.width;
- this.rd.height = c.height
- },
- OF: function() {
- return this.rd.width
- },
- EG: function(c) {
- this.rd.width = c
- },
- NF: function() {
- return this.rd.height
- },
- DG: function(c) {
- this.rd.height = c
- },
- kVa: A("B1"),
- y4a: x("B1"),
- gea: A("CC"),
- Qha: x("CC"),
- KP: A("zd"),
- HR: x("zd"),
- $0: function(c) { (!c || 0 == c.length) && e("cc.TMXTiledMap.initWithTMXFile(): tmxFile should be non-null or non-empty string.");
- this.height = this.width = 0;
- c = C.CE.create(c);
- if (!c) return t;
- var d = c.Xw; (!d || 0 === d.length) && C.log("cc.TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename.");
- this.o9(c);
- return q
- },
- b1: function(c, d) {
- this.height = this.width = 0;
- var f = C.CE.create(c, d),
- g = f.Xw; (!g || 0 === g.length) && C.log("cc.TMXTiledMap.initWithXML(): Map not found. Please check the filename.");
- this.o9(f);
- return q
- },
- o9: function(c) {
- this.dg = c.s0();
- this.rd = c.eC();
- this.B1 = c.orientation;
- this.CC = c.gea();
- this.zd = c.zd;
- this.Br = c.Br;
- var d = 0,
- f = c.oi;
- if (f) for (var g = s,
- h = 0,
- k = f.length; h < k; h++) if ((g = f[h]) && g.visible) g = this.gua(g, c),
- this.q(g, d, d),
- this.width = Math.max(this.width, g.width),
- this.height = Math.max(this.height, g.height),
- d++
- },
- mQa: function() {
- for (var c = [], d = this.l, f = 0, g = d.length; f < g; f++) {
- var h = d[f];
- h && h instanceof C.BE && c.push(h)
- }
- return c
- },
- $Ua: function(c) { (!c || 0 === c.length) && e("cc.TMXTiledMap.getLayer(): layerName should be non-null or non-empty string.");
- for (var d = this.l,
- f = 0; f < d.length; f++) {
- var g = d[f];
- if (g && g.DQ == c) return g
- }
- return s
- },
- yVa: function(c) { (!c || 0 === c.length) && e("cc.TMXTiledMap.getObjectGroup(): groupName should be non-null or non-empty string.");
- if (this.CC) for (var d = 0; d < this.CC.length; d++) {
- var f = this.CC[d];
- if (f && f.eI == c) return f
- }
- return s
- },
- z0: function(c) {
- return this.zd[c.toString()]
- },
- p1a: function(c) {
- return this.Br[c]
- },
- gua: function(c, d) {
- var f = this.Tva(c, d),
- f = C.BE.create(f, c, d);
- c.iga = t;
- f.DIa();
- return f
- },
- Tva: function(c, d) {
- var f = c.nb,
- g = d.Xw;
- if (g) for (var h = g.length - 1; 0 <= h; h--) {
- var k = g[h];
- if (k) for (var n = 0; n < f.height; n++) for (var p = 0; p < f.width; p++) {
- var r = c.$i[p + f.width * n];
- if (0 != r && (r & C.kU) >>> 0 >= k.Ex) return k
- }
- }
- C.log("cocos2d: Warning: TMX Layer " + c.name + " has no tiles");
- return s
- }
- });
- H = C.OK.prototype;
- C.e(H, "mapWidth", H.RW, H.EY);
- C.e(H, "mapHeight", H.QW, H.DY);
- C.e(H, "tileWidth", H.OF, H.EG);
- C.e(H, "tileHeight", H.NF, H.DG);
- C.OK.create = function(c, d) {
- return new C.OK(c, d)
- };
- C.upa = 0;
- C.rNa = 1;
- C.qNa = 2;
- C.tNa = 3;
- C.sNa = 4;
- C.uNa = 5;
- C.DE = 2147483648;
- C.EE = 1073741824;
- C.S7 = 536870912;
- C.T7 = (C.DE | C.EE | C.S7) >>> 0;
- C.kU = ~C.T7 >>> 0;
- C.Cv = C.O.extend({
- zd: s,
- name: "",
- nb: s,
- $i: s,
- visible: s,
- Eb: s,
- iga: q,
- pw: 1E5,
- ow: 0,
- offset: s,
- ctor: function() {
- this.zd = [];
- this.name = "";
- this.nb = s;
- this.$i = [];
- this.visible = q;
- this.Eb = 0;
- this.iga = q;
- this.pw = 1E5;
- this.ow = 0;
- this.offset = C.d(0, 0)
- },
- KP: A("zd"),
- HR: x("zd")
- });
- C.tpa = C.O.extend({
- name: "",
- Ex: 0,
- rd: s,
- xJ: 0,
- margin: 0,
- Jia: "",
- ZP: s,
- ctor: function() {
- this.rd = C.size(0, 0);
- this.ZP = C.size(0, 0)
- },
- WI: function(c) {
- var d = C.rect(0, 0, 0, 0);
- d.width = this.rd.width;
- d.height = this.rd.height;
- c &= C.kU;
- c -= parseInt(this.Ex, 10);
- var f = parseInt((this.ZP.width - 2 * this.margin + this.xJ) / (this.rd.width + this.xJ), 10);
- d.x = parseInt(c % f * (this.rd.width + this.xJ) + this.margin, 10);
- d.y = parseInt(parseInt(c / f, 10) * (this.rd.height + this.xJ) + this.margin, 10);
- return d
- }
- });
- C.CE = C.GK.extend({
- zd: s,
- orientation: s,
- parentElement: s,
- VQ: s,
- CQ: 0,
- H3: t,
- gD: s,
- I_: s,
- rN: s,
- dg: s,
- rd: s,
- oi: s,
- Xw: s,
- Br: s,
- PN: "",
- D9: 0,
- ctor: function(c, d) {
- C.GK.prototype.ctor.apply(this);
- this.dg = C.size(0, 0);
- this.rd = C.size(0, 0);
- this.oi = [];
- this.Xw = [];
- this.rN = [];
- this.zd = [];
- this.Br = {};
- this.D9 = 0;
- d !== m ? this.b1(c, d) : c !== m && this.$0(c)
- },
- FVa: A("orientation"),
- G4a: x("orientation"),
- s0: function() {
- return C.size(this.dg.width, this.dg.height)
- },
- Mha: function(c) {
- this.dg.width = c.width;
- this.dg.height = c.height
- },
- RW: function() {
- return this.dg.width
- },
- EY: function(c) {
- this.dg.width = c
- },
- QW: function() {
- return this.dg.height
- },
- DY: function(c) {
- this.dg.height = c
- },
- eC: function() {
- return C.size(this.rd.width, this.rd.height)
- },
- xia: function(c) {
- this.rd.width = c.width;
- this.rd.height = c.height
- },
- OF: function() {
- return this.rd.width
- },
- EG: function(c) {
- this.rd.width = c
- },
- NF: function() {
- return this.rd.height
- },
- DG: function(c) {
- this.rd.height = c
- },
- eVa: A("oi"),
- DHa: function(c) {
- this.oi.push(c)
- },
- ZWa: A("Xw"),
- rIa: function(c) {
- this.Xw.push(c)
- },
- gea: A("rN"),
- Qha: function(c) {
- this.rN.push(c)
- },
- RVa: A("parentElement"),
- L4a: x("parentElement"),
- SVa: A("VQ"),
- M4a: x("VQ"),
- aVa: A("CQ"),
- q4a: x("CQ"),
- KWa: A("H3"),
- h5a: x("H3"),
- KP: A("zd"),
- HR: x("zd"),
- $0: function(c) {
- this.caa(c, s);
- return this.V1(c)
- },
- b1: function(c, d) {
- this.caa(s, d);
- return this.BFa(c)
- },
- V1: function(c, d) {
- var f = (d = d || t) ? c: C.M.xd(c);
- f || e("Please load the resource first : " + c);
- var g, h, f = this.MX(f).documentElement;
- g = f.getAttribute("version");
- h = f.getAttribute("orientation");
- if ("map" == f.nodeName && ("1.0" != g && g !== s && C.log("cocos2d: TMXFormat: Unsupported TMX version:" + g), "orthogonal" == h ? this.orientation = C.RK: "isometric" == h ? this.orientation = C.QK: "hexagonal" == h ? this.orientation = C.PK: h !== s && C.log("cocos2d: TMXFomat: Unsupported orientation:" + h), g = C.size(0, 0), g.width = parseFloat(f.getAttribute("width")), g.height = parseFloat(f.getAttribute("height")), this.Mha(g), g = C.size(0, 0), g.width = parseFloat(f.getAttribute("tilewidth")), g.height = parseFloat(f.getAttribute("tileheight")), this.xia(g), h = f.querySelectorAll("map \x3e properties \x3e property"))) {
- var k = {};
- for (g = 0; g < h.length; g++) k[h[g].getAttribute("name")] = h[g].getAttribute("value");
- this.zd = k
- }
- k = f.getElementsByTagName("tileset");
- "map" !== f.nodeName && (k = [], k.push(f));
- for (g = 0; g < k.length; g++) {
- h = k[g];
- var n = h.getAttribute("source");
- if (n) h = d ? C.path.join(this.PN, n) : C.path.BB(c, n),
- this.V1(h);
- else {
- n = new C.tpa;
- n.name = h.getAttribute("name") || "";
- n.Ex = parseInt(h.getAttribute("firstgid")) || 0;
- n.xJ = parseInt(h.getAttribute("spacing")) || 0;
- n.margin = parseInt(h.getAttribute("margin")) || 0;
- var p = C.size(0, 0);
- p.width = parseFloat(h.getAttribute("tilewidth"));
- p.height = parseFloat(h.getAttribute("tileheight"));
- n.rd = p;
- var p = h.getElementsByTagName("image")[0].getAttribute("source"),
- r = -1;
- this.gD && (r = this.gD.lastIndexOf("/"));
- n.Jia = -1 !== r ? this.gD.substr(0, r + 1) + p: this.PN + (this.PN ? "/": "") + p;
- this.rIa(n);
- if (p = h.getElementsByTagName("tile")) for (r = 0; r < p.length; r++) {
- h = p[r];
- this.VQ = parseInt(n.Ex) + parseInt(h.getAttribute("id") || 0);
- var v = h.querySelectorAll("properties \x3e property");
- if (v) {
- var y = {};
- for (h = 0; h < v.length; h++) {
- var z = v[h].getAttribute("name");
- y[z] = v[h].getAttribute("value")
- }
- this.Br[this.VQ] = y
- }
- }
- }
- }
- if (k = f.getElementsByTagName("layer")) for (g = 0; g < k.length; g++) {
- p = k[g];
- r = p.getElementsByTagName("data")[0];
- n = new C.Cv;
- n.name = p.getAttribute("name");
- h = C.size(0, 0);
- h.width = parseFloat(p.getAttribute("width"));
- h.height = parseFloat(p.getAttribute("height"));
- n.nb = h;
- h = p.getAttribute("visible");
- n.visible = "0" != h;
- h = p.getAttribute("opacity") || 1;
- n.Eb = h ? parseInt(255 * parseFloat(h)) : 255;
- n.offset = C.d(parseFloat(p.getAttribute("x")) || 0, parseFloat(p.getAttribute("y")) || 0);
- v = "";
- for (h = 0; h < r.childNodes.length; h++) v += r.childNodes[h].nodeValue;
- v = v.trim();
- h = r.getAttribute("compression");
- y = r.getAttribute("encoding");
- if (h && "gzip" !== h && "zlib" !== h) return C.log("cc.TMXMapInfo.parseXMLFile(): unsupported compression method"),
- s;
- switch (h) {
- case "gzip":
- n.$i = C.eja(v, 4);
- break;
- case "zlib":
- h = new Zlib.Inflate(C.$a.hv.fda(v, 1));
- n.$i = C.sJa(h.decompress());
- break;
- case s:
- case "":
- if ("base64" == y) n.$i = C.$a.hv.fda(v, 4);
- else if ("csv" === y) {
- n.$i = [];
- h = v.split(",");
- for (r = 0; r < h.length; r++) n.$i.push(parseInt(h[r]))
- } else {
- h = r.getElementsByTagName("tile");
- n.$i = [];
- for (r = 0; r < h.length; r++) n.$i.push(parseInt(h[r].getAttribute("gid")))
- }
- break;
- default:
- this.CQ == C.Cv.i4 && C.log("cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported")
- }
- if (p = p.querySelectorAll("properties \x3e property")) {
- r = {};
- for (h = 0; h < p.length; h++) r[p[h].getAttribute("name")] = p[h].getAttribute("value");
- n.zd = r
- }
- this.DHa(n)
- }
- if (k = f.getElementsByTagName("objectgroup")) for (g = 0; g < k.length; g++) {
- p = k[g];
- n = new C.spa;
- n.eI = p.getAttribute("name");
- n.XHa(C.d(parseFloat(p.getAttribute("x")) * this.eC().width || 0, parseFloat(p.getAttribute("y")) * this.eC().height || 0));
- if (r = p.querySelectorAll("objectgroup \x3e properties \x3e property")) for (h = 0; h < r.length; h++) v = {},
- v[r[h].getAttribute("name")] = r[h].getAttribute("value"),
- n.zd = v;
- if (p = p.querySelectorAll("object")) for (h = 0; h < p.length; h++) {
- v = p[h];
- r = {};
- r.name = v.getAttribute("name") || "";
- r.type = v.getAttribute("type") || "";
- r.x = parseInt(v.getAttribute("x") || 0) + n.NA.x;
- y = parseInt(v.getAttribute("y") || 0) + n.NA.y;
- r.width = parseInt(v.getAttribute("width")) || 0;
- r.height = parseInt(v.getAttribute("height")) || 0;
- r.y = parseInt(this.s0().height * this.eC().height) - y - r.height;
- if (y = v.querySelectorAll("properties \x3e property")) for (z = 0; z < y.length; z++) r[y[z].getAttribute("name")] = y[z].getAttribute("value");
- if ((y = v.querySelectorAll("polygon")) && 0 < y.length)(y = y[0].getAttribute("points")) && (r.polygonPoints = this.Laa(y));
- if ((v = v.querySelectorAll("polyline")) && 0 < v.length)(v = v[0].getAttribute("points")) && (r.polylinePoints = this.Laa(v));
- n.QHa(r)
- }
- this.Qha(n)
- }
- return f
- },
- Laa: function(c) {
- if (!c) return s;
- var d = [];
- c = c.split(" ");
- for (var f = 0; f < c.length; f++) {
- var g = c[f].split(",");
- d.push({
- x: g[0],
- y: g[1]
- })
- }
- return d
- },
- BFa: function(c) {
- return this.V1(c, q)
- },
- WWa: A("Br"),
- q5a: function(c) {
- this.Br.push(c)
- },
- TTa: A("I_"),
- M3a: x("I_"),
- OWa: A("gD"),
- k5a: x("gD"),
- caa: function(c, d) {
- this.Xw.length = 0;
- this.oi.length = 0;
- this.gD = c;
- d && (this.PN = d);
- this.rN.length = 0;
- this.zd.length = 0;
- this.Br.length = 0;
- this.I_ = "";
- this.H3 = t;
- this.CQ = C.Cv.i4;
- this.parentElement = C.upa;
- this.D9 = 0
- }
- });
- H = C.CE.prototype;
- C.e(H, "mapWidth", H.RW, H.EY);
- C.e(H, "mapHeight", H.QW, H.DY);
- C.e(H, "tileWidth", H.OF, H.EG);
- C.e(H, "tileHeight", H.NF, H.DG);
- C.CE.create = function(c, d) {
- return new C.CE(c, d)
- };
- C.M.Zp(["tmx", "tsx"], C.Xba);
- C.Cv.i4 = 1;
- C.Cv.iKa = 2;
- C.Cv.jKa = 4;
- C.Cv.kKa = 8;
- C.spa = C.O.extend({
- zd: s,
- eI: "",
- NA: s,
- EA: s,
- ctor: function() {
- this.eI = "";
- this.NA = C.d(0, 0);
- this.zd = [];
- this.EA = []
- },
- $Va: A("NA"),
- XHa: function(c) {
- this.NA.x = c.x;
- this.NA.y = c.y
- },
- KP: A("zd"),
- HR: function(c) {
- this.zd.push(c)
- },
- NUa: function() {
- return this.eI.toString()
- },
- k4a: x("eI"),
- q1a: function(c) {
- return this.zd[c]
- },
- z0a: function(c) {
- if (this.EA && 0 < this.EA.length) for (var d = this.EA,
- f = 0,
- g = d.length; f < g; f++) {
- var h = d[f].name;
- if (h && h == c) return d[f]
- }
- return s
- },
- AVa: A("EA"),
- QHa: function(c) {
- this.EA.push(c)
- }
- });
- C.BE = C.Bh.extend({
- xh: s,
- xl: s,
- pC: s,
- zd: s,
- DQ: "",
- nb: s,
- Pe: s,
- Eb: 255,
- pw: s,
- ow: s,
- BZ: s,
- vZ: s,
- YNa: s,
- Cn: s,
- Dh: s,
- Ul: s,
- gi: s,
- Ki: s,
- CV: s,
- hO: s,
- iO: s,
- bu: 0,
- eZ: 0,
- yaa: 1E7,
- qa: "TMXLayer",
- ctor: function(c, d, f) {
- C.Bh.prototype.ctor.call(this);
- this.Zg = [];
- this.nb = C.size(0, 0);
- this.Pe = C.size(0, 0);
- if (C.L === C.cb) {
- var g = C.Pb,
- h = C.bd("canvas");
- h.width = g.width;
- h.height = g.height;
- this.gi = h;
- this.Ki = this.gi.getContext("2d");
- var k = new C.Ma;
- k.Ng(h);
- k.Md();
- this.CV = k;
- this.width = g.width;
- this.height = g.height;
- this.Fq = this
- }
- f !== m && this.$Ca(c, d, f)
- },
- Ca: function(c, d) {
- var f = this.o;
- C.A.prototype.Ca.call(this, c, d);
- if (C.L === C.cb) {
- var g = this.gi,
- h = C.Ec();
- g.width = 0 | 1.5 * f.width * h;
- g.height = 0 | 1.5 * f.height * h;
- this.Ki.translate(0, g.height);
- f = this.CV.o;
- f.width = g.width;
- f.height = g.height;
- f = g.width * g.height;
- if (f > this.yaa) {
- this.hO || (this.hO = []);
- this.iO || (this.iO = []);
- this.bu = Math.ceil(f / this.yaa);
- f = this.hO;
- for (h = 0; h < this.bu; h++) {
- f[h] || (f[h] = document.createElement("canvas"), this.iO[h] = f[h].getContext("2d"));
- var k = f[h];
- k.width = this.eZ = Math.round(g.width / this.bu);
- k.height = g.height
- }
- for (h = this.bu; h < f.length; h++) k.width = 0,
- k.height = 0
- } else this.bu = 0
- }
- },
- ob: s,
- MF: A("CV"),
- J: s,
- Hr: function(c) {
- var d = c || C.t;
- if (this.Ja) {
- d.save();
- this.transform(c);
- var f, g = this.l;
- if (this.Lk) {
- var h = C.view;
- h.vba();
- var k = this.Ki,
- n = this.gi;
- k.clearRect(0, 0, n.width, -n.height);
- k.save();
- k.translate(this.Nb.x, -this.Nb.y);
- if (g) {
- this.ed();
- for (f = 0; f < g.length; f++) g[f] && g[f].J(k)
- }
- k.restore();
- if (0 < this.bu) {
- g = this.eZ;
- k = n.height;
- for (f = 0; f < this.bu; f++) this.iO[f].drawImage(n, f * g, 0, g, k, 0, 0, g, k)
- }
- h.hba();
- this.Lk = t
- }
- this.ka(c);
- d.restore()
- }
- },
- ka: s,
- Qq: function(c) {
- c = c || C.t;
- var d = 0 | -this.Nb.x,
- f = 0 | -this.Nb.y,
- g = C.view,
- h = this.gi;
- if (h) {
- var k = this.bu,
- n = h.height * g.pa;
- if (0 < k) for (var h = this.hO,
- p = 0; p < k; p++) {
- var r = h[p];
- c.drawImage(h[p], 0, 0, r.width, r.height, d + p * this.eZ, -(f + n), r.width * g.ia, n)
- } else c.drawImage(h, 0, 0, h.width, h.height, d, -(f + n), h.width * g.ia, n)
- }
- },
- dVa: function() {
- return C.size(this.nb.width, this.nb.height)
- },
- t4a: function(c) {
- this.nb.width = c.width;
- this.nb.height = c.height
- },
- vsa: function() {
- return this.nb.width
- },
- bva: function(c) {
- this.nb.width = c
- },
- usa: function() {
- return this.nb.height
- },
- ava: function(c) {
- this.nb.height = c
- },
- lVa: function() {
- return C.size(this.Pe.width, this.Pe.height)
- },
- z4a: function(c) {
- this.Pe.width = c.width;
- this.Pe.height = c.height
- },
- OF: function() {
- return this.Pe.width
- },
- EG: function(c) {
- this.Pe.width = c
- },
- NF: function() {
- return this.Pe.height
- },
- DG: function(c) {
- this.Pe.height = c
- },
- XWa: A("xh"),
- r5a: x("xh"),
- YWa: A("xl"),
- s5a: x("xl"),
- cVa: A("pC"),
- s4a: x("pC"),
- KP: A("zd"),
- HR: x("zd"),
- $Ca: function(c, d, f) {
- var g = d.nb,
- h = 0.35 * parseInt(g.width * g.height) + 1,
- k;
- c && (k = C.kb.sd(c.Jia));
- return this.ta(k, h) ? (this.DQ = d.name, this.nb = g, this.xh = d.$i, this.pw = d.pw, this.ow = d.ow, this.Eb = d.Eb, this.zd = d.zd, this.Ul = C.Q.Ul, this.xl = c, this.Pe = f.eC(), this.pC = f.orientation, c = this.era(d.offset), this.p(C.c2(c)), this.Dh = [], this.Ca(C.Gia(C.size(this.nb.width * this.Pe.width, this.nb.height * this.Pe.height))), this.vZ = t, this.BZ = 0, q) : t
- },
- M1a: function() {
- this.xh && (this.xh = s);
- this.Dh && (this.Dh = s)
- },
- VWa: function(c, d) {
- c || e("cc.TMXLayer.getTileAt(): pos should be non-null");
- d !== m && (c = C.d(c, d)); (c.x >= this.nb.width || c.y >= this.nb.height || 0 > c.x || 0 > c.y) && e("cc.TMXLayer.getTileAt(): invalid position");
- if (!this.xh || !this.Dh) return C.log("cc.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released"),
- s;
- var f = s,
- g = this.H0(c);
- if (0 === g) return f;
- var h = 0 | c.x + c.y * this.nb.width,
- f = this.lj(h);
- f || (g = this.xl.WI(g), g = C.js(g), f = new C.u, f.ta(this.texture, g), f.batchNode = this, f.p(this.IP(c)), f.vertexZ = this.ica(c), f.anchorX = 0, f.anchorY = 0, f.opacity = this.Eb, g = this.hV(h), this.Dwa(f, g, h));
- return f
- },
- H0: function(c, d) {
- c || e("cc.TMXLayer.getTileGIDAt(): pos should be non-null");
- d !== m && (c = C.d(c, d)); (c.x >= this.nb.width || c.y >= this.nb.height || 0 > c.x || 0 > c.y) && e("cc.TMXLayer.getTileGIDAt(): invalid position");
- return ! this.xh || !this.Dh ? (C.log("cc.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released"), s) : (this.xh[0 | c.x + c.y * this.nb.width] & C.kU) >>> 0
- },
- aCa: function(c, d) {
- c || e("cc.TMXLayer.getTileFlagsAt(): pos should be non-null");
- d !== m && (c = C.d(c, d)); (c.x >= this.nb.width || c.y >= this.nb.height || 0 > c.x || 0 > c.y) && e("cc.TMXLayer.getTileFlagsAt(): invalid position");
- return ! this.xh || !this.Dh ? (C.log("cc.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released"), s) : (this.xh[0 | c.x + c.y * this.nb.width] & C.T7) >>> 0
- },
- p5a: function(c, d, f, g) {
- d || e("cc.TMXLayer.setTileGID(): pos should be non-null");
- g !== m ? d = C.d(d, f) : g = f; (d.x >= this.nb.width || d.y >= this.nb.height || 0 > d.x || 0 > d.y) && e("cc.TMXLayer.setTileGID(): invalid position");
- if (!this.xh || !this.Dh) C.log("cc.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released");
- else if (0 !== c && c < this.xl.Ex) C.log("cc.TMXLayer.setTileGID(): invalid gid:" + c);
- else {
- g = g || 0;
- this.Fn();
- f = this.aCa(d);
- var h = this.H0(d);
- if (h != c || f != g) if (f = (c | g) >>> 0, 0 === c) this.CGa(d);
- else if (0 === h) this.ota(f, d);
- else {
- var h = d.x + d.y * this.nb.width,
- k = this.lj(h);
- k ? (c = this.xl.WI(c), c = C.js(c), k.qc(c, t), g != s && this.$N(k, d, f), this.xh[h] = f) : this.iwa(f, d)
- }
- }
- },
- CGa: function(c, d) {
- c || e("cc.TMXLayer.removeTileAt(): pos should be non-null");
- d !== m && (c = C.d(c, d)); (c.x >= this.nb.width || c.y >= this.nb.height || 0 > c.x || 0 > c.y) && e("cc.TMXLayer.removeTileAt(): invalid position");
- if (!this.xh || !this.Dh) C.log("cc.TMXLayer.removeTileAt(): TMXLayer: the tiles map has been released");
- else if (0 !== this.H0(c)) {
- C.L === C.cb && this.Fn();
- var f = 0 | c.x + c.y * this.nb.width,
- g = this.hV(f);
- this.xh[f] = 0;
- this.Dh.splice(g, 1);
- if (f = this.lj(f)) C.Bh.prototype.removeChild.call(this, f, q);
- else if (C.L === C.la && this.textureAtlas.Vga(g), this.l) for (var f = this.l,
- h = 0,
- k = f.length; h < k; h++) {
- var n = f[h];
- if (n) {
- var p = n.atlasIndex;
- p >= g && (n.atlasIndex = p - 1)
- }
- }
- }
- },
- IP: function(c, d) {
- d !== m && (c = C.d(c, d));
- var f = C.d(0, 0);
- switch (this.pC) {
- case C.RK:
- f = this.mua(c);
- break;
- case C.QK:
- f = this.lua(c);
- break;
- case C.PK:
- f = this.kua(c)
- }
- return C.c2(f)
- },
- z0: function(c) {
- return this.zd[c]
- },
- DIa: function() {
- C.L === C.cb ? this.xl.ZP = this.qi.o: (this.xl.ZP = this.textureAtlas.texture.o, this.textureAtlas.texture.B2());
- this.fua();
- C.L === C.cb && this.Fn();
- for (var c = this.nb.height,
- d = this.nb.width,
- f = 0; f < c; f++) for (var g = 0; g < d; g++) {
- var h = this.xh[g + d * f];
- 0 !== h && (this.Qqa(h, C.d(g, f)), this.pw = Math.min(h, this.pw), this.ow = Math.max(h, this.ow))
- }
- this.ow >= this.xl.Ex && this.pw >= this.xl.Ex || C.log("cocos2d:TMX: Only 1 tileset per layer is supported")
- },
- q: function() {
- C.log("addChild: is not supported on cc.TMXLayer. Instead use setTileGID or tileAt.")
- },
- removeChild: function(c, d) {
- if (c) if ( - 1 === this.l.indexOf(c)) C.log("cc.TMXLayer.removeChild(): Tile does not belong to TMXLayer");
- else {
- C.L === C.cb && this.Fn();
- var f = c.atlasIndex;
- this.xh[this.Dh[f]] = 0;
- this.Dh.splice(f, 1);
- C.Bh.prototype.removeChild.call(this, c, d)
- }
- },
- bVa: A("DQ"),
- r4a: x("DQ"),
- lua: function(c) {
- return C.d(this.Pe.width / 2 * (this.nb.width + c.x - c.y - 1), this.Pe.height / 2 * (2 * this.nb.height - c.x - c.y - 2))
- },
- mua: function(c) {
- return C.d(c.x * this.Pe.width, (this.nb.height - c.y - 1) * this.Pe.height)
- },
- kua: function(c) {
- return C.d(3 * c.x * this.Pe.width / 4, (this.nb.height - c.y - 1) * this.Pe.height + (1 == c.x % 2 ? -this.Pe.height / 2 : 0))
- },
- era: function(c) {
- var d = C.d(0, 0);
- switch (this.pC) {
- case C.RK:
- d = C.d(c.x * this.Pe.width, -c.y * this.Pe.height);
- break;
- case C.QK:
- d = C.d(this.Pe.width / 2 * (c.x - c.y), this.Pe.height / 2 * ( - c.x - c.y));
- break;
- case C.PK:
- (0 !== c.x || 0 !== c.y) && C.log("offset for hexagonal map not implemented yet")
- }
- return d
- },
- Qqa: function(c, d) {
- var f = this.xl.WI(c),
- f = C.js(f),
- g = 0 | d.x + d.y * this.nb.width,
- f = this.qY(f);
- this.$N(f, d, c);
- var h = this.Dh.length;
- this.iQ(f, h);
- this.Dh.splice(h, 0, g);
- return f
- },
- ota: function(c, d) {
- var f = this.xl.WI(c),
- f = C.js(f),
- g = 0 | d.x + d.y * this.nb.width,
- f = this.qY(f);
- this.$N(f, d, c);
- var h = this.Tqa(g);
- this.iQ(f, h);
- this.Dh.splice(h, 0, g);
- if (this.l) for (var k = this.l,
- n = 0,
- p = k.length; n < p; n++) {
- var r = k[n];
- if (r) {
- var v = r.atlasIndex;
- v >= h && (r.atlasIndex = v + 1)
- }
- }
- this.xh[g] = c;
- return f
- },
- iwa: function(c, d) {
- var f = this.xl.WI(c),
- g = this.Ul,
- f = C.rect(f.x / g, f.y / g, f.width / g, f.height / g),
- g = d.x + d.y * this.nb.width,
- f = this.qY(f);
- this.$N(f, d, c);
- f.atlasIndex = this.hV(g);
- f.dirty = q;
- f.$h();
- this.xh[g] = c;
- return f
- },
- fua: function() {
- var c = this.z0("cc_vertexz");
- if (c) if ("automatic" == c) {
- this.vZ = q;
- var d = this.z0("cc_alpha_func"),
- c = 0;
- d && (c = parseFloat(d));
- C.L === C.la && (this.shaderProgram = C.ug.Xd(C.KK), d = C.t.getUniformLocation(this.shaderProgram.Lx(), C.G8), this.shaderProgram.Af(), this.shaderProgram.sJ(d, c))
- } else this.BZ = parseInt(c, 10)
- },
- $N: function(c, d, f) {
- var g = d.x + d.y * this.nb.width;
- c.p(this.IP(d));
- C.L === C.la ? c.vertexZ = this.ica(d) : c.tag = g;
- c.anchorX = 0;
- c.anchorY = 0;
- c.opacity = this.Eb;
- C.L === C.la && (c.rotation = 0);
- c.Nd(t);
- c.Uf(t); (f & C.S7) >>> 0 ? (c.anchorX = 0.5, c.anchorY = 0.5, c.x = this.IP(d).x + c.width / 2, c.y = this.IP(d).y + c.height / 2, d = (f & (C.DE | C.EE) >>> 0) >>> 0, d == C.DE ? c.rotation = 90 : d == C.EE ? c.rotation = 270 : (c.rotation = d == (C.EE | C.DE) >>> 0 ? 90 : 270, c.Nd(q))) : ((f & C.DE) >>> 0 && c.Nd(q), (f & C.EE) >>> 0 && c.Uf(q))
- },
- qY: function(c) {
- C.L === C.la ? (this.Cn ? (this.Cn.batchNode = s, this.Cn.qc(c, t)) : (this.Cn = new C.u, this.Cn.ta(this.texture, c, t)), this.Cn.batchNode = this) : (this.Cn = new C.u, this.Cn.ta(this.eu, c, t), this.Cn.batchNode = this, this.Cn.parent = this);
- return this.Cn
- },
- ica: function(c) {
- var d = 0,
- f = 0;
- if (this.vZ) switch (this.pC) {
- case C.QK:
- f = this.nb.width + this.nb.height;
- d = -(f - (c.x + c.y));
- break;
- case C.RK:
- d = -(this.nb.height - c.y);
- break;
- case C.PK:
- C.log("TMX Hexa zOrder not supported");
- break;
- default:
- C.log("TMX invalid value")
- } else d = this.BZ;
- return d
- },
- hV: function(c) {
- var d;
- if (this.Dh) for (var f = this.Dh,
- g = 0,
- h = f.length; g < h && !(d = f[g], d == c); g++);
- "number" != typeof d && C.log("cc.TMXLayer._atlasIndexForExistantZ(): TMX atlas index not found. Shall not happen");
- return g
- },
- Tqa: function(c) {
- for (var d = this.Dh,
- f = 0,
- g = d.length; f < g && !(c < d[f]); f++);
- return f
- }
- });
- H = C.BE.prototype;
- C.L == C.la ? (H.ka = C.Bh.prototype.ka, H.J = C.Bh.prototype.J, H.ob = C.Bh.prototype.ob) : (H.ka = H.Qq, H.J = H.Hr, H.ob = H.MF);
- C.e(H, "texture", H.ob, H.Va);
- C.e(H, "layerWidth", H.vsa, H.bva);
- C.e(H, "layerHeight", H.usa, H.ava);
- C.e(H, "tileWidth", H.OF, H.EG);
- C.e(H, "tileHeight", H.NF, H.DG);
- C.BE.create = function(c, d, f) {
- return new C.BE(c, d, f)
- };
- C.JT = C.O.extend({
- vG: s,
- fb: s,
- hF: s,
- jWa: A("vG"),
- W4a: x("vG"),
- hea: A("fb"),
- DR: x("fb"),
- CTa: A("hF"),
- iHa: x("hF"),
- PCa: function(c, d) {
- this.vG = c;
- this.fb = d;
- this.hF = s;
- return q
- }
- });
- C.JT.create = function(c, d) {
- var f = new C.JT;
- f.PCa(c, d);
- return f
- };
- C.m7 = C.ha.extend({
- Yx: s,
- nX: s,
- qa: "ParallaxNode",
- QVa: A("Yx"),
- K4a: x("Yx"),
- ctor: function() {
- C.ha.prototype.ctor.call(this);
- this.Yx = [];
- this.nX = C.d( - 100, -100)
- },
- q: function(c, d, f, g) {
- if (3 === arguments.length) C.log("ParallaxNode: use addChild(child, z, ratio, offset) instead");
- else {
- c || e("cc.ParallaxNode.addChild(): child should be non-null");
- var h = C.JT.create(f, g);
- h.iHa(c);
- this.Yx.push(h);
- c.p(this.ma.x * f.x + g.x, this.ma.y * f.y + g.y);
- C.ha.prototype.q.call(this, c, d, c.tag)
- }
- },
- removeChild: function(c, d) {
- for (var f = this.Yx,
- g = 0; g < f.length; g++) if (f[g].hF == c) {
- f.splice(g, 1);
- break
- }
- C.ha.prototype.removeChild.call(this, c, d)
- },
- xf: function(c) {
- this.Yx.length = 0;
- C.ha.prototype.xf.call(this, c)
- },
- J: function() {
- var c = this.Gqa();
- if (!C.b2(c, this.nX)) {
- for (var d = this.Yx,
- f = 0,
- g = d.length; f < g; f++) {
- var h = d[f];
- h.hF.p( - c.x + c.x * h.vG.x + h.fb.x, -c.y + c.y * h.vG.y + h.fb.y)
- }
- this.nX = c
- }
- C.ha.prototype.J.call(this)
- },
- Gqa: function() {
- for (var c = this.ma,
- d = this; d.parent != s;) d = d.parent,
- c = C.ho(c, d.Ld());
- return c
- }
- });
- C.m7.create = function() {
- return new C.m7
- };
- if (C.Sc.jO) {
- var Oa = C.S6a = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext);
- C.NU = C.O.extend({
- Wz: s,
- $b: s,
- Rw: s,
- HZ: s,
- src: s,
- KC: s,
- autoplay: s,
- controls: s,
- d0a: s,
- currentTime: 0,
- startTime: 0,
- duration: 0,
- Uj: s,
- GZ: 1,
- AN: 0,
- xe: t,
- QG: q,
- dm: -1,
- ctor: function(c) {
- this.Wz = {};
- this.src = c;
- this.HZ = Oa.createGain ? Oa.createGain() : Oa.createGainNode();
- this.Uta = this.Tta.bind(this);
- this.Rta = this.Qta.bind(this)
- },
- PX: function(c) {
- var d = this.Rw = Oa.createBufferSource(),
- f = this.HZ;
- c = c || 0;
- d.buffer = this.$b;
- f.gain.value = this.GZ;
- d.connect(f);
- f.connect(Oa.destination);
- d.loop = this.Uj;
- this.QG = this.xe = t;
- d.start ? d.start(0, c) : d.noteGrainOn ? (f = d.buffer.duration, this.loop ? d.noteGrainOn(0, c, f) : d.noteGrainOn(0, c, f - c)) : d.noteOn(0);
- this.AN = 0
- },
- Pba: function() {
- var c = this.Rw;
- this.QG || (c.stop ? c.stop(0) : c.k0a(0), this.QG = q)
- },
- play: function() {
- if ( - 1 == this.dm) this.dm = 0;
- else if (1 == this.dm) {
- var c = this.Rw;
- if (this.QG || !(c && 2 == c.playbackState)) this.startTime = Oa.currentTime,
- this.PX(0)
- }
- },
- pause: function() {
- this.AN = Oa.currentTime;
- this.xe = q;
- this.Pba()
- },
- nk: function() {
- this.xe && this.PX(this.$b ? (this.AN - this.startTime) % this.$b.duration: 0)
- },
- stop: function() {
- this.AN = 0;
- this.xe = t;
- this.Pba()
- },
- load: function() {
- var c = this;
- if (1 != c.dm) {
- c.dm = -1;
- c.played = t;
- c.ended = q;
- var d = new XMLHttpRequest;
- d.open("GET", c.src, q);
- d.responseType = "arraybuffer";
- d.onload = function() {
- Oa.decodeAudioData(d.response, c.Uta, c.Rta)
- };
- d.send()
- }
- },
- addEventListener: function(c, d) {
- this.Wz[c] = d.bind(this)
- },
- removeEventListener: function(c) {
- delete this.Wz[c]
- },
- GQa: function() {
- return C.Sc.jO
- },
- Tta: function(c) {
- this.$b = c;
- c = this.Wz.success;
- var d = this.Wz.canplaythrough;
- c && c();
- d && d(); (0 == this.dm || "autoplay" == this.autoplay || this.autoplay == q) && this.PX();
- this.dm = 1
- },
- Qta: function() {
- var c = this.Wz.error;
- c && c();
- this.dm = -2
- },
- cloneNode: function() {
- var c = new C.NU(this.src);
- c.volume = this.volume;
- c.dm = this.dm;
- c.$b = this.$b; (0 == c.dm || -1 == c.dm) && c.load();
- return c
- }
- });
- H = C.NU.prototype;
- C.e(H, "loop", A("Uj"),
- function(c) {
- this.Uj = c;
- this.Rw && (this.Rw.loop = c)
- });
- C.e(H, "volume", A("GZ"),
- function(c) {
- this.GZ = c;
- this.HZ.gain.value = c
- });
- C.e(H, "paused", A("xe"));
- C.e(H, "ended",
- function() {
- var c = this.Rw;
- return ! this.xe && (this.QG || !c || 3 == c.playbackState)
- });
- C.e(H, "played",
- function() {
- var c = this.Rw;
- return c && 2 == c.playbackState
- })
- }
- C.o4 = C.O.extend({
- TY: t,
- Hh: s,
- QL: s,
- Vj: 0,
- f9: 0,
- li: {},
- VE: {},
- lM: 1,
- uX: 5,
- kt: s,
- qG: [],
- ctor: function() {
- this.TY = 0 < C.jV.kO.length;
- this.kt && (this.kt = this.kt.bind(this))
- },
- W6a: B(t),
- Uda: A("lM"),
- tga: function(c, d) {
- if (this.TY) {
- var f = this.Hh;
- f && this.au(f);
- c != this.QL && (this.Hh = f = this.GW(c), this.QL = c);
- f && (f.loop = d || t, this.QX(f))
- }
- },
- GW: function(c) {
- var d = C.M,
- f = d.xd(c);
- f || (d.load(c), f = d.xd(c));
- return f
- },
- QX: function(c) {
- c.ended || (c.stop ? c.stop() : (c.pause(), c.currentTime = 0));
- this.Vj = 2;
- c.play()
- },
- Sia: function(c) {
- if (0 < this.Vj) {
- var d = this.Hh;
- d && this.au(d) && (c && C.M.rh(this.QL), this.QL = this.Hh = s, this.Vj = 0)
- }
- },
- au: function(c) {
- return c && !c.ended ? (c.stop ? c.stop() : c.duration && Infinity != c.duration ? c.currentTime = c.duration: c.pause(), q) : t
- },
- Y1: function() {
- 2 == this.Vj && (this.Hh.pause(), this.Vj = 1)
- },
- aha: function() {
- 1 == this.Vj && (this.qr(this.Hh), this.Vj = 2)
- },
- qr: function(c) {
- c && !c.ended && (c.nk ? c.nk() : c.play())
- },
- GGa: function() {
- this.Hh && this.QX(this.Hh)
- },
- iBa: function() {
- return 0 == this.Vj ? 0 : this.Hh.volume
- },
- NHa: function(c) {
- 0 < this.Vj && (this.Hh.volume = Math.min(Math.max(c, 0), 1))
- },
- nQ: function() {
- return 2 == this.Vj && this.Hh && !this.Hh.ended
- },
- JW: function(c) {
- var d = this.VE[c];
- d || (d = this.VE[c] = []);
- return d
- },
- P$: function(c) {
- var d;
- if (!this.TY) return s;
- for (var f = this.JW(c), g = 0, h = f.length; g < h; g++) {
- var k = f[g];
- if (k.ended) {
- d = k;
- d.currentTime = 0;
- window.TQa && d.load();
- break
- }
- }
- if (!d) {
- if (f.length >= this.uX) return C.log("Error: " + c + " greater than " + this.uX),
- s;
- d = this.GW(c);
- if (!d) return s;
- d = d.cloneNode(q);
- this.kt && C.qb(d, "pause", this.kt);
- d.volume = this.lM;
- f.push(d)
- }
- return d
- },
- Zx: function(c, d) {
- var f = this.P$(c);
- if (!f) return s;
- f.loop = d || t;
- f.play();
- var g = this.f9++;
- this.li[g] = f;
- return g
- },
- zha: function(c) {
- c = this.lM = Math.min(Math.max(c, 0), 1);
- var d = this.li,
- f;
- for (f in d) d[f].volume = c
- },
- X1: function(c) { (c = this.li[c]) && !c.ended && c.pause()
- },
- W1: function() {
- var c = this.li,
- d;
- for (d in c) {
- var f = c[d];
- f.ended || f.pause()
- }
- },
- u2: function(c) {
- this.qr(this.li[c])
- },
- t2: function() {
- var c = this.li,
- d;
- for (d in c) this.qr(c[d])
- },
- G3: function(c) {
- this.au(this.li[c]);
- delete this.li[c]
- },
- cD: function() {
- var c = this.li,
- d;
- for (d in c) this.au(c[d]),
- delete c[d]
- },
- V3: function(c) {
- var d = C.M,
- f = this.li,
- g = this.JW(c);
- d.rh(c);
- if (0 != g.length) {
- d = g[0].src;
- delete this.VE[c];
- for (var h in f) f[h].src == d && (this.au(f[h]), delete f[h])
- }
- },
- end: function() {
- this.Sia();
- this.cD()
- },
- Naa: function() {
- var c = this.li,
- d, f;
- for (f in c) if ((d = c[f]) && !d.ended && !d.paused) this.qG.push(d),
- d.pause();
- this.nQ() && (this.qG.push(this.Hh), this.Hh.pause())
- },
- jba: function() {
- for (var c = this.qG,
- d = 0,
- f = c.length; d < f; d++) this.qr(c[d]);
- c.length = 0
- }
- }); ! C.Sc.jO && 0 > C.Sc.Ova && (C.p4 = C.o4.extend({
- mu: [],
- oG: [],
- Ok: s,
- uX: 2,
- kM: {},
- tw: t,
- Xz: 0,
- hX: t,
- QX: function(c) {
- this.aZ();
- this._super(c)
- },
- aha: function() {
- 1 == this.Vj && (this.aZ(), this.tw = t, this.Xz = 0, this._super())
- },
- Zx: function(c, d) {
- var f = this.Ok,
- g = d ? this.P$(c) : this.Lsa(c);
- if (!g) return s;
- g.loop = d || t;
- var h = this.f9++;
- this.li[h] = g;
- this.nQ() && (this.Y1(), this.tw = q);
- f ? (f != g && this.mu.push(this.Mz), this.mu.push(h), f.pause()) : (this.Ok = g, this.Mz = h, g.play());
- return h
- },
- X1: function() {
- C.log("pauseEffect not supported in single audio mode!")
- },
- W1: function() {
- var c = this.mu,
- d = this.oG,
- f = this.Ok;
- if (f) {
- for (var g = 0,
- h = c.length; g < h; g++) d.push(c[g]);
- c.length = 0;
- d.push(this.Mz);
- f.pause()
- }
- },
- u2: function() {
- C.log("resumeEffect not supported in single audio mode!")
- },
- t2: function() {
- var c = this.mu,
- d = this.oG;
- this.nQ() && (this.Y1(), this.tw = q);
- for (var f = 0,
- g = d.length; f < g; f++) c.push(d[f]);
- d.length = 0;
- if (!this.Ok && 0 <= c.length && (c = c.pop(), d = this.li[c])) this.Mz = c,
- this.Ok = d,
- this.qr(d)
- },
- G3: function(c) {
- var d = this.Ok,
- f = this.mu,
- g = this.oG;
- d && this.Mz == c ? this.au(d) : (d = f.indexOf(c), 0 <= d ? f.splice(d, 1) : (d = g.indexOf(c), 0 <= d && g.splice(d, 1)))
- },
- cD: function() {
- this.aZ(); ! this.Ok && this.tw && (this.qr(this.Hh), this.Vj = 2, this.tw = t, this.Xz = 0)
- },
- V3: function(c) {
- var d = C.M,
- f = this.li,
- g = this.kM,
- h = this.JW(c),
- k = this.Ok;
- d.rh(c);
- if (0 != h.length || g[c]) {
- d = 0 < h.length ? h[0].src: g[c].src;
- delete this.VE[c];
- delete g[c];
- for (var n in f) f[n].src == d && delete f[n];
- k && k.src == d && this.au(k)
- }
- },
- Lsa: function(c) {
- var d = this.kM[c],
- f = this.mu,
- g = this.oG,
- h = this.li;
- if (d) d.currentTime = 0;
- else {
- d = this.GW(c);
- if (!d) return s;
- d = d.cloneNode(q);
- this.kt && C.qb(d, "pause", this.kt);
- d.volume = this.lM;
- this.kM[c] = d
- }
- c = 0;
- for (var k = f.length; c < k;) h[f[c]] == d ? f.splice(c, 1) : c++;
- c = 0;
- for (k = g.length; c < k;) h[g[c]] == d ? g.splice(c, 1) : c++;
- d.WF = q;
- return d
- },
- aZ: function() {
- var c = this.Ok,
- d = this.VE,
- f = this.kM,
- g = this.mu,
- h = this.oG;
- if (c || !(0 == g.length && 0 == h.length)) {
- for (var k in f) {
- var n = f[k];
- n.duration && Infinity != n.duration && (n.currentTime = n.duration)
- }
- g.length = 0;
- h.length = 0;
- for (k in d) {
- f = d[k];
- g = 0;
- for (h = f.length; g < h; g++) n = f[g],
- n.loop = t,
- n.duration && Infinity != n.duration && (n.currentTime = n.duration)
- }
- c && this.au(c)
- }
- },
- kt: function() {
- if (!this.hX) {
- var c = this.Psa();
- if (c) c.WF ? (delete c.WF, c.play()) : this.qr(c);
- else if (this.tw) {
- c = this.Hh;
- if (c.duration && Infinity != c.duration) {
- var d = c.currentTime + this.Xz,
- d = d - c.duration * (d / c.duration | 0);
- c.currentTime = d
- }
- this.Xz = 0;
- this.qr(c);
- this.Vj = 2;
- this.tw = t
- }
- }
- },
- Psa: function() {
- var c = this.mu,
- d = this.li,
- f = this.Ok,
- g = f ? f.currentTime - (f.startTime || 0) : 0;
- for (this.Xz += g; 0 != c.length;) {
- var h = c.pop();
- if (f = d[h]) {
- if (f.WF || f.loop || f.duration && f.currentTime + g < f.duration) return this.Mz = h,
- this.Ok = f,
- !f.WF && (f.duration && Infinity != f.duration) && (c = f.currentTime + g, c -= f.duration * (c / f.duration | 0), f.currentTime = c),
- f.WF = t,
- f;
- f.duration && Infinity != f.duration && (f.currentTime = f.duration)
- }
- }
- return this.Ok = this.Mz = s
- },
- Naa: function() {
- var c = this.Ok;
- this.hX = q;
- if (c = 2 == this.Vj ? this.Hh: c) this.qG.push(c),
- c.pause()
- },
- jba: function() {
- var c = this.qG;
- this.hX = t;
- 0 < c.length && (this.qr(c[0]), c.length = 0)
- }
- }));
- C.jV = {
- kO: s,
- zP: function() {
- return C.M.dxa
- },
- oX: function(c, d, f, g, h, k, n) {
- var p = this,
- r = C.M,
- v = C.path,
- y = this.kO,
- z = "";
- if (0 == y.length) return n("can not support audio!");
- if ( - 1 == g) z = (v.Cp(c) || "").toLowerCase(),
- p.exa(z) || (z = y[0], g = 0);
- else if (g < y.length) z = y[g];
- else return n("can not found the resource of audio! Last match url is : " + c);
- if (0 <= h.indexOf(z)) return p.oX(c, d, f, g + 1, h, k, n);
- c = v.s_(c, z);
- h.push(z);
- k = p.yta(c, k,
- function(r) {
- if (r) return p.oX(c, d, f, g + 1, h, k, n);
- n(s, k)
- },
- g == y.length - 1);
- r.fj[d] = k
- },
- exa: function(c) {
- return ! c ? t: 0 <= this.kO.indexOf(c.toLowerCase())
- },
- yta: function(c, d, f, g) {
- var h = "file://" == location.origin ? Audio: C.NU || Audio;
- 2 == arguments.length ? (f = d, d = new h) : 3 < arguments.length && !d && (d = new h);
- d.src = c;
- d.KC = "auto";
- h = navigator.userAgent;
- /Mobile/.test(h) && (/iPhone OS/.test(h) || /iPad/.test(h) || /Firefox/.test(h)) || /MSIE/.test(h) ? (d.load(), f(s, d)) : (C.qb(d, "canplaythrough",
- function() {
- f(s, d);
- this.removeEventListener("canplaythrough", arguments.callee, t);
- this.removeEventListener("error", arguments.callee, t)
- },
- t), C.qb(d, "error",
- function() {
- f("load " + c + " failed");
- g && (this.removeEventListener("canplaythrough", arguments.callee, t), this.removeEventListener("error", arguments.callee, t))
- },
- t), d.load());
- return d
- },
- load: function(c, d, f, g) {
- this.oX(c, d, f, -1, [], s, g)
- }
- };
- C.jV.kO = function() {
- var c = C.bd("audio"),
- d = [];
- if (c.canPlayType) {
- var f = function(d) {
- d = c.canPlayType(d);
- return "no" != d && "" != d
- };
- f('audio/ogg; codecs\x3d"vorbis"') && d.push(".ogg");
- f("audio/mpeg") && d.push(".mp3");
- f('audio/wav; codecs\x3d"1"') && d.push(".wav");
- f("audio/mp4") && d.push(".mp4"); (f("audio/x-m4a") || f("audio/aac")) && d.push(".m4a")
- }
- return d
- } ();
- C.M.Zp(["mp3", "ogg", "wav", "mp4", "m4a"], C.jV);
- C.ud = C.p4 ? new C.p4: new C.o4;
- C.Ka.MZ(C.qf.kK,
- function() {
- C.ud.Naa()
- });
- C.Ka.MZ(C.qf.JD,
- function() {
- C.ud.jba()
- });
- C.KS = 9;
- C.nla = 1;
- C.qla = 2;
- C.rla = 4;
- C.ola = 8;
- C.pla = 16;
- C.f5 = 32;
- C.sla = 64;
- C.mla = 128;
- C.uo = 256;
- C.Rg = 1;
- C.jv = 2;
- C.iv = 4;
- C.mLa = 8;
- C.lLa = 8;
- C.Kc = C.ai.extend({
- jaa: t,
- ROa: t,
- ui: s,
- qa: "Control",
- qg: A("jaa"),
- $d: function(c) {
- this.jaa = c;
- for (var d = this.le(), f = 0, g = d.length; f < g; f++) {
- var h = d[f];
- h && h.sb && h.$d(c)
- }
- },
- zb: C.Rg,
- UBa: A("zb"),
- Wc: t,
- SN: t,
- xt: t,
- $L: s,
- Ib: function(c) {
- this.zb = (this.Wc = c) ? C.Rg: C.iv;
- this.Tf()
- },
- isEnabled: A("Wc"),
- Wu: function(c) {
- this.SN = c;
- this.Tf()
- },
- oQ: A("SN"),
- vj: function(c) {
- this.xt = c;
- this.Tf()
- },
- mQ: A("xt"),
- DCa: function() {
- for (var c = this.getParent(); c != s; c = c.getParent()) if (!c.Ja) return t;
- return q
- },
- ctor: function() {
- C.ai.prototype.ctor.call(this);
- this.$L = {};
- this.ya = C.color.WHITE
- },
- j: function() {
- if (C.ai.prototype.j.call(this)) {
- this.zb = C.Rg;
- this.Wc = q;
- this.xt = this.SN = t;
- var c = C.Oa.create({
- event: C.Oa.Gs
- });
- this.nc && (c.nc = this.nc.bind(this));
- this.yd && (c.yd = this.yd.bind(this));
- this.cd && (c.cd = this.cd.bind(this));
- this.Xe && (c.Xe = this.Xe.bind(this));
- this.ui = c;
- return q
- }
- return t
- },
- Z: function() {
- var c = this.ui;
- c.Wi || C.Ka.addListener(c, this);
- C.A.prototype.Z.call(this)
- },
- Bi: function(c) {
- for (var d = 0,
- f = C.KS; d < f; d++) if (c & 1 << d) for (var g = this.iW(1 << d), h = 0, k = g.length; h < k; h++) g[h].jDa(this)
- },
- nH: function(c, d, f) {
- for (var g = 0,
- h = C.KS; g < h; g++) f & 1 << g && this.b9(c, d, 1 << g)
- },
- s2a: function(c, d, f) {
- for (var g = 0,
- h = C.KS; g < h; g++) f & 1 << g && this.Eua(c, d, 1 << g)
- },
- Gp: function(c) {
- return this.wi(c.mh())
- },
- Zn: function(c) {
- c = c.mh();
- c = this.getParent().wi(c);
- return C.Ju(this.Ae(), c)
- },
- VOa: B(s),
- iW: function(c) {
- c = c.toString();
- this.$L[c] || (this.$L[c] = []);
- return this.$L[c]
- },
- b9: function(c, d, f) {
- c = new C.Ema(c, d, f);
- this.iW(f).push(c)
- },
- Eua: function(c, d, f) {
- f = this.iW(f);
- if (!c && !d) f.length = 0;
- else for (var g = 0; g < f.length;) {
- var h = f[g],
- k = q;
- c && (k = c == h.zea());
- d && (k = k && d == h.Qr());
- k ? C.Id(f, h) : g++
- }
- },
- Tf: u()
- });
- H = C.Kc.prototype;
- C.e(H, "state", H.UBa);
- C.e(H, "enabled", H.isEnabled, H.Ib);
- C.e(H, "selected", H.oQ, H.Wu);
- C.e(H, "highlighted", H.mQ, H.vj);
- H = s;
- C.Kc.create = function() {
- var c = new C.Kc;
- return c && c.j() ? c: s
- };
- C.j5 = 3435855873;
- C.Ym = C.Kc.extend({
- zF: t,
- MJ: t,
- Nh: s,
- XF: s,
- tF: s,
- SL: s,
- Yw: s,
- Eh: s,
- Eb: 0,
- tA: t,
- qO: s,
- WG: s,
- rO: s,
- Kv: s,
- Kaa: t,
- eN: 0,
- dN: 0,
- qa: "ControlButton",
- ctor: function() {
- C.Kc.prototype.ctor.call(this);
- this.Nh = C.size(0, 0);
- this.XF = C.d(0, 0);
- this.tF = "";
- this.SL = C.color.WHITE;
- this.qO = {};
- this.WG = {};
- this.rO = {};
- this.Kv = {}
- },
- j: function() {
- return this.gQ(C.fa.create("", "Arial", 12), C.Sa.create())
- },
- Tf: function() {
- if (this.Kaa) {
- this.Yw && this.Yw.va(t);
- this.Eh && this.Eh.va(t);
- this.U2(this.XF);
- var c = this.zb;
- this.tF = this.I0(c);
- this.SL = this.bCa(c);
- var d = this.Yw = this.YH(c);
- d && d.sa && d.sa(this.tF);
- d && d.sb && d.G(this.SL);
- var f = this.i();
- d && d.p(f.width / 2, f.height / 2); (c = this.Eh = this.cAa(c)) && c.p(f.width / 2, f.height / 2);
- f = C.size(0, 0);
- if (d) {
- var g = d.Ae();
- f.width = g.width;
- f.height = g.height
- }
- this.zF ? c && c.Ca(f.width + 2 * this.dN, f.height + 2 * this.eN) : c && (g = c.Nh, g = C.size(g.width, g.height), 0 >= g.width && (g.width = f.width), 0 >= g.height && (g.height = f.height), c.Ca(g));
- f = d ? d.Ae() : C.rect(0, 0, 0, 0);
- g = c ? c.Ae() : C.rect(0, 0, 0, 0);
- f = C.MC(f, g);
- this.Ca(f.width, f.height);
- f = this.i();
- d && (d.p(f.width / 2, f.height / 2), d.va(q));
- c && (c.p(f.width / 2, f.height / 2), c.va(q))
- }
- },
- gQ: function(c, d) { (!c || !c.sb) && e("cc.ControlButton.initWithLabelAndBackgroundSprite(): label should be non-null");
- d || e("cc.ControlButton.initWithLabelAndBackgroundSprite(): backgroundSprite should be non-null");
- return C.Kc.prototype.j.call(this, q) ? (this.Kaa = q, this.qO = {},
- this.WG = {},
- this.rO = {},
- this.Kv = {},
- this.tA = t, this.MJ = q, this.tF = s, this.fha(q), this.De(C.size(0, 0)), this.MJ = q, this.Hm(t), this.S(0.5, 0.5), this.Yw = c, this.Eh = d, this.K(255), this.$d(q), this.RR(c.Wb(), C.Rg), this.QR(c.Xa(), C.Rg), this.r3(c, C.Rg), this.sR(d, C.Rg), this.zb = C.Rg, this.dN = 24, this.eN = 12, this.XF = C.d(0.5, 0.5), this.De(C.size(0, 0)), this.Tf(), q) : t
- },
- bDa: function(c, d, f) {
- c = C.fa.create(c, d, f);
- return this.gQ(c, C.Sa.create())
- },
- Wea: function(c) {
- var d = C.fa.create("", "Arial", 30);
- return this.gQ(d, c)
- },
- JRa: A("zF"),
- fha: function(c) {
- this.zF = c;
- this.Tf()
- },
- yXa: A("MJ"),
- Bia: function(c) {
- return this.MJ = c
- },
- y0: A("Nh"),
- De: function(c) {
- if (0 === c.width && 0 === c.height) this.zF = q;
- else {
- this.zF = t;
- var d = this.Kv,
- f;
- for (f in d) d[f].De(c)
- }
- this.Nh = c;
- this.Tf()
- },
- RAa: A("XF"),
- U2: function(c) {
- this.XF = c;
- this.Yw && this.Yw.S(c)
- },
- FOa: A("tF"),
- GOa: A("SL"),
- rb: A("Eb"),
- K: function(c) {
- C.Kc.prototype.K.call(this, c);
- var d = this.Kv,
- f;
- for (f in d) d[f].K(c)
- },
- G: function(c) {
- C.Kc.prototype.G.call(this, c);
- var d = this.Kv,
- f;
- for (f in d) d[f].G(c)
- },
- Xa: function() {
- var c = this.od;
- return C.color(c.r, c.g, c.b, c.a)
- },
- FYa: A("tA"),
- POa: A("eN"),
- IOa: A("dN"),
- A4a: function(c, d) {
- this.eN = d;
- this.dN = c;
- this.Tf()
- },
- Ib: function(c) {
- C.Kc.prototype.Ib.call(this, c);
- this.Tf()
- },
- Wu: function(c) {
- C.Kc.prototype.Wu.call(this, c);
- this.Tf()
- },
- vj: function(c) {
- this.zb = c ? C.jv: C.Rg;
- C.Kc.prototype.vj.call(this, c); (c = this.xP(C.j5)) && this.yJ(c);
- this.Tf();
- this.MJ && (c = C.ae.create(0.05, this.mQ() && this.isEnabled() && !this.oQ() ? 1.1 : 1), c.Qm(C.j5), this.Ya(c))
- },
- nc: function(c) {
- if (!this.Zn(c) || !this.isEnabled() || !this.Ja || !this.DCa()) return t;
- this.tA = q;
- this.vj(q);
- this.Bi(C.nla);
- return q
- },
- yd: function(c) { ! this.Wc || !this.tA || this.SN ? this.xt && this.vj(t) : (c = this.Zn(c)) && !this.xt ? (this.vj(q), this.Bi(C.ola)) : c && this.xt ? this.Bi(C.qla) : !c && this.xt ? (this.vj(t), this.Bi(C.pla)) : !c && !this.xt && this.Bi(C.rla)
- },
- cd: function(c) {
- this.tA = t;
- this.vj(t);
- this.Zn(c) ? this.Bi(C.f5) : this.Bi(C.sla)
- },
- Xe: function() {
- this.tA = t;
- this.vj(t);
- this.Bi(C.mla)
- },
- I0: function(c) {
- var d = this.qO;
- return d ? d[c] ? d[c] : d[C.Rg] : ""
- },
- RR: function(c, d) {
- this.qO[d] = c || "";
- this.zb == d && this.Tf()
- },
- bCa: function(c) {
- return (c = this.WG[c]) ? c: (c = this.WG[C.Rg]) ? c: C.color.WHITE
- },
- QR: function(c, d) {
- this.WG[d] = c;
- this.zb == d && this.Tf()
- },
- YH: function(c) {
- var d = this.rO;
- return d[c] ? d[c] : d[C.Rg]
- },
- r3: function(c, d) {
- var f = this.rO;
- if (f[d]) {
- var g = f[d];
- g && this.removeChild(g, q)
- }
- f[d] = c;
- c.va(t);
- c.S(0.5, 0.5);
- this.q(c, 1);
- this.zb == d && this.Tf()
- },
- s3: function(c, d) {
- var f = this.I0(d);
- f || (f = "");
- this.r3(C.fa.create(f, c, 12), d)
- },
- bXa: function(c) {
- c = this.YH(c);
- return c != s && c instanceof C.fa ? c.Fp() : ""
- },
- t3: function(c, d) {
- var f = this.YH(d);
- f != s && f instanceof C.fa && f.Od(c)
- },
- cXa: function(c) {
- c = this.YH(c);
- return c != s && c instanceof C.fa ? c.Vn() : 0
- },
- t5a: function(c, d) {
- var f = this.I0(d);
- f || (f = "");
- this.r3(C.rv.create(f, c), d)
- },
- aXa: function(c) {
- c = this.YH(c);
- return c != s && c instanceof C.rv ? c.FF: ""
- },
- cAa: function(c) {
- var d = this.Kv;
- return d[c] ? d[c] : d[C.Rg]
- },
- sR: function(c, d) {
- var f = this.Kv;
- if (f[d]) {
- var g = f[d];
- g && this.removeChild(g, q)
- }
- f[d] = c;
- c.va(t);
- c.S(0.5, 0.5);
- this.q(c);
- f = this.Nh; (0 !== f.width || 0 !== f.height) && c.De(f);
- this.zb === d && this.Tf()
- },
- D2: function(c, d) {
- var f = C.Sa.$xa(c);
- this.sR(f, d)
- }
- });
- H = C.Ym.prototype;
- C.e(H, "adjustBackground", H.FSa, H.fha);
- C.e(H, "preferredSize", H.y0, H.De);
- C.e(H, "labelAnchor", H.RAa, H.U2);
- H = s;
- C.Ym.create = function(c, d) {
- var f;
- if (0 == arguments.length) return (f = new C.Ym) && f.j() ? f: s;
- 1 == arguments.length ? (f = new C.Ym, f.Wea(arguments[0])) : 2 == arguments.length ? (f = new C.Ym, f.gQ(c, d)) : 3 == arguments.length && (f = new C.Ym, f.bDa(arguments[0], arguments[1], arguments[2]));
- return f
- };
- function Pa() {
- this.a = this.b = this.g = this.r = m
- }
- C.jT = function(c, d, f) {
- this.Rf = c;
- this.tl = d;
- this.ea = f
- };
- C.Ah = {};
- C.Ah.lx = function(c, d, f, g) {
- c = C.u.create("#" + c);
- if (!c) return s;
- c.p(f);
- c.S(g);
- d.q(c);
- return c
- };
- C.Ah.uma = function(c) {
- var d = new C.jT,
- f, g;
- f = c.r < c.g ? c.r: c.g;
- f = f < c.b ? f: c.b;
- g = c.r > c.g ? c.r: c.g;
- g = g > c.b ? g: c.b;
- d.ea = g;
- f = g - f;
- if (0 < g) d.tl = f / g;
- else return d.tl = 0,
- d.Rf = -1,
- d;
- d.Rf = c.r >= g ? (c.g - c.b) / f: c.g >= g ? 2 + (c.b - c.r) / f: 4 + (c.r - c.g) / f;
- d.Rf *= 60;
- 0 > d.Rf && (d.Rf += 360);
- return d
- };
- C.Ah.WT = function(c) {
- var d, f, g, h, k = new Pa;
- k.a = 1;
- if (0 >= c.tl) {
- if (!c.Rf) return k.r = c.ea,
- k.g = c.ea,
- k.b = c.ea,
- k;
- k.r = 0;
- k.g = 0;
- k.b = 0;
- return k
- }
- d = c.Rf;
- 360 <= d && (d = 0);
- d /= 60;
- h = 0 | d;
- g = d - h;
- d = c.ea * (1 - c.tl);
- f = c.ea * (1 - c.tl * g);
- g = c.ea * (1 - c.tl * (1 - g));
- switch (h) {
- case 0:
- k.r = c.ea;
- k.g = g;
- k.b = d;
- break;
- case 1:
- k.r = f;
- k.g = c.ea;
- k.b = d;
- break;
- case 2:
- k.r = d;
- k.g = c.ea;
- k.b = g;
- break;
- case 3:
- k.r = d;
- k.g = f;
- k.b = c.ea;
- break;
- case 4:
- k.r = g;
- k.g = d;
- k.b = c.ea;
- break;
- default:
- k.r = c.ea,
- k.g = d,
- k.b = f
- }
- return k
- };
- C.Ah.G4 = function(c, d) {
- return C.MC(c, d)
- };
- C.Ema = C.O.extend({
- Ke: s,
- Xc: s,
- OL: s,
- ctor: function(c, d, f) {
- this.Xc = c;
- this.Ke = d;
- this.OL = f
- },
- Qr: A("Ke"),
- zea: A("Xc"),
- LTa: A("OL"),
- jDa: function(c) {
- if (this.Xc && this.Ke) if ("string" == typeof this.Ke) this.Xc[this.Ke](c, this.OL);
- else this.Ke.call(this.Xc, c, this.OL)
- }
- });
- C.Sa = C.ha.extend({
- sb: q,
- cB: s,
- s9: s,
- lp: t,
- Yi: s,
- iu: s,
- Zw: s,
- ju: s,
- lw: s,
- Iq: s,
- Lw: s,
- Zs: s,
- Nv: s,
- Ov: s,
- Mq: s,
- Fb: t,
- Gg: s,
- Nh: s,
- Eb: 0,
- ya: s,
- df: s,
- OM: 0,
- QM: 0,
- PM: 0,
- NM: 0,
- Mba: t,
- WY: t,
- Aa: t,
- ac: s,
- qa: "Scale9Sprite",
- eD: A("Aa"),
- ye: function(c, d) {
- this.ac.push({
- jl: c,
- jj: d
- })
- },
- cf: function() {
- this.Aa = q;
- for (var c = this.ac,
- d = 0,
- f = c.length; d < f; d++) {
- var g = c[d];
- g.jl.call(g.jj, this)
- }
- c.length = 0
- },
- BO: function() {
- var c;
- c = this.OM;
- var d = this.QM,
- f = this.PM,
- g = this.cB,
- h = this.NM;
- c = 0 === c && 0 === d && 0 === f && 0 === h ? C.rect(0, 0, 0, 0) : this.WY ? C.rect(h, c, g.width - f - c, g.height - d - h) : C.rect(c, d, g.width - c - f, g.height - d - h);
- this.Gc(c)
- },
- cwa: function() {
- if (this.iu && this.ju && this.Ov && this.Zs && this.Iq) {
- var c = this.o,
- d = this.iu,
- f = this.ju,
- g = this.Ov,
- h = this.Zs,
- k = this.Iq,
- n = this.Iq.i(),
- p = d.i(),
- r = h.i(),
- v = c.width - p.width - f.i().width,
- c = c.height - p.height - g.i().height,
- v = v / n.width,
- c = c / n.height,
- p = n.width * v,
- y = n.height * c,
- z = r.width,
- r = r.height;
- if (C.L == C.la) {
- var D = Math.round(p);
- p != D && (p = D, v = p / n.width);
- D = Math.round(y);
- y != D && (y = D, c = y / n.height)
- }
- k.gb(v);
- k.pb(c);
- var n = this.lw,
- D = this.Lw,
- E = this.Zw,
- F = this.Nv,
- G = C.d(0, 0);
- h.S(G);
- g.S(G);
- d.S(G);
- f.S(G);
- n.S(G);
- D.S(G);
- E.S(G);
- F.S(G);
- k.S(G);
- h.p(0, 0);
- g.p(z + p, 0);
- d.p(0, r + y);
- f.p(z + p, r + y);
- n.p(0, r);
- n.pb(c);
- D.p(z + p, r);
- D.pb(c);
- F.p(z, 0);
- F.gb(v);
- E.p(z, r + y);
- E.gb(v);
- k.p(z, r)
- }
- },
- ctor: function() {
- C.ha.prototype.ctor.call(this);
- this.cB = C.rect(0, 0, 0, 0);
- this.s9 = C.rect(0, 0, 0, 0);
- this.Mq = C.color(255, 255, 255, 255);
- this.Gg = C.size(0, 0);
- this.Nh = C.size(0, 0);
- this.ya = C.color(255, 255, 255, 255);
- this.Eb = 255;
- this.df = C.rect(0, 0, 0, 0);
- this.ac = []
- },
- sBa: A("Gg"),
- y0: A("Nh"),
- LOa: function() {
- return this.Nh.width
- },
- KOa: function() {
- return this.Nh.height
- },
- De: function(c) {
- this.Ca(c);
- this.Nh = c
- },
- wPa: function(c) {
- this.Qh(c);
- this.Nh.width = c
- },
- vPa: function(c) {
- this.Ph(c);
- this.Nh.height = c
- },
- rb: A("Eb"),
- K: function(c) {
- if (this.Yi) {
- this.Eb = c;
- for (var d = this.Yi.le(), f = 0; f < d.length; f++) {
- var g = d[f];
- g && g.sb && g.K(c)
- }
- this.ya.a = c
- }
- },
- dc: function(c) {
- C.ha.prototype.dc.call(this, c);
- this.K(this.hb)
- },
- Xa: function() {
- var c = this.ya;
- return C.color(c.r, c.g, c.b, c.a)
- },
- G: function(c) {
- if (this.Yi) {
- var d = this.ya;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b;
- for (var d = this.Yi.le(), f = 0; f < d.length; f++) {
- var g = d[f];
- g && g.sb && g.G(c)
- }
- c.a !== m && !c.jx && this.K(c.a)
- }
- },
- Tb: function(c) {
- C.ha.prototype.Tb.call(this, c);
- this.G(this.wb)
- },
- l0: A("df"),
- Gc: function(c) {
- if (this.Yi) {
- var d = this.o,
- f = d.width,
- d = d.height;
- this.kD(this.Yi, this.cB, this.WY, c);
- this.Ca(f, d)
- }
- },
- MAa: A("OM"),
- Jha: function(c) {
- this.OM = c;
- this.BO()
- },
- OAa: A("QM"),
- Lha: function(c) {
- this.QM = c;
- this.BO()
- },
- NAa: A("PM"),
- Kha: function(c) {
- this.PM = c;
- this.BO()
- },
- LAa: A("NM"),
- Iha: function(c) {
- this.NM = c;
- this.BO()
- },
- Ca: function(c, d) {
- C.A.prototype.Ca.call(this, c, d);
- this.lp = q
- },
- Qh: function(c) {
- C.A.prototype.Qh.call(this, c);
- this.lp = q
- },
- Ph: function(c) {
- C.A.prototype.Ph.call(this, c);
- this.lp = q
- },
- J: function(c) {
- this.lp && (this.cwa(), this.lp = t);
- C.ha.prototype.J.call(this, c)
- },
- j: function() {
- return this.dQ(s, C.rect(0, 0, 0, 0), t, C.rect(0, 0, 0, 0))
- },
- dQ: function(c, d, f, g) {
- g === m && (g = f, f = t);
- c && this.kD(c, d, f, g);
- this.S(0.5, 0.5);
- return this.lp = q
- },
- Ce: function(c, d, f) {
- c instanceof C.az ? (f = c = d, d = C.rect(0, 0, 0, 0)) : (d = d || C.rect(0, 0, 0, 0), f = f || C.rect(0, 0, 0, 0));
- c || e("cc.Scale9Sprite.initWithFile(): file should be non-null");
- var g = C.kb.av(c);
- if (!g) {
- var g = C.kb.sd(c),
- h = g.de; (this.Aa = h) || g.ye(function(c) {
- var d = this.Nh,
- d = C.size(d.width, d.height);
- c = c.i();
- this.kD(this.Yi, C.rect(0, 0, c.width, c.height), t, this.df);
- this.De(d);
- this.lp = q;
- this.cf()
- },
- this)
- }
- return this.dQ(C.Bh.create(c, 9), d, t, f)
- },
- mj: function(c, d) { (!c || !c.ob()) && e("cc.Scale9Sprite.initWithSpriteFrame(): spriteFrame should be non-null and its texture should be non-null");
- d = d || C.rect(0, 0, 0, 0);
- var f = c.Aa; (this.Aa = f) || c.ye(function(c) {
- var d = this.Nh,
- d = C.size(d.width, d.height);
- this.kD(this.Yi, c.Vh(), C.L == C.la && c.fg, this.df);
- this.De(d);
- this.lp = q;
- this.cf()
- },
- this);
- f = C.Bh.create(c.ob(), 9);
- return this.dQ(f, c.Vh(), C.L == C.la && c.fg, d)
- },
- pl: function(c, d) {
- c || e("cc.Scale9Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null");
- d = d || C.rect(0, 0, 0, 0);
- var f = C.Fe.nh(c);
- return f == s ? (C.log("cc.Scale9Sprite.initWithSpriteFrameName(): can't find the sprite frame by spriteFrameName"), t) : this.mj(f, d)
- },
- B2a: function(c) {
- var d = new C.Sa;
- return d && d.dQ(this.Yi, this.cB, t, c) ? d: s
- },
- $d: function(c) {
- if (this.Yi) {
- this.Fb = c;
- var d = this.Yi.le();
- if (d) for (var f = 0,
- g = d.length; f < g; f++) d[f].$d(c)
- }
- },
- qg: A("Fb"),
- kD: function(c, d, f, g) {
- var h = this.rb(),
- k = this.Xa();
- d = C.rect(d.x, d.y, d.width, d.height);
- this.xf(q);
- this.Yi != c && (this.Yi = c);
- c = c.ob();
- var n = c.de;
- if (this.Aa = n) {
- c = this.Yi;
- c.xf(q);
- n = this.df;
- n.x = g.x;
- n.y = g.y;
- n.width = g.width;
- n.height = g.height;
- this.WY = f;
- n = c.ob();
- C.wG(d) && (d = n.i(), d = C.rect(0, 0, d.width, d.height));
- var p = this.cB = d;
- p.x = d.x;
- p.y = d.y;
- p.width = d.width;
- p.height = d.height;
- this.Gg.width = d.width;
- this.Gg.height = d.height;
- p = this.Nh;
- 0 === p.width && 0 === p.height && (p.width = d.width, p.height = d.height);
- p = this.s9;
- g && (p.x = g.x, p.y = g.y, p.width = g.width, p.height = g.height);
- var r = d.width;
- g = d.height;
- C.wG(p) && (p.x = r / 3, p.y = g / 3, p.width = r / 3, p.height = g / 3);
- var v = p.x,
- y = p.width,
- z = r - (v + y),
- D = p.y,
- E = p.height,
- F = g - (D + E),
- G = 0,
- K = 0;
- g = C.rect(G, K, v, D);
- var G = G + v,
- p = C.rect(G, K, y, D),
- r = C.rect(G + y, K, z, D),
- G = 0,
- K = 0 + D,
- O = C.rect(G, K, v, E),
- G = G + v,
- U = C.rect(G, K, y, E),
- G = G + y,
- X = C.rect(G, K, z, E),
- G = 0,
- K = 0 + D + E,
- D = C.rect(G, K, v, F),
- G = G + v,
- v = C.rect(G, K, y, F),
- G = G + y,
- y = C.rect(G, K, z, F),
- z = {
- a: 1,
- b: 0,
- H: 0,
- P: 1,
- na: 0,
- oa: 0
- };
- if (f) {
- f = U;
- var F = y,
- G = D,
- K = r,
- E = g,
- N = X,
- Q = O,
- S = v,
- M = p,
- z = C.OJ(z, d.height + d.x, d.y),
- z = C.Pja(z),
- U = C.Gi(U, z),
- y = C.Gi(y, z),
- D = C.Gi(D, z),
- r = C.Gi(r, z);
- g = C.Gi(g, z);
- X = C.Gi(X, z);
- O = C.Gi(O, z);
- v = C.Gi(v, z);
- p = C.Gi(p, z);
- f.x = U.x;
- f.y = U.y;
- F.x = y.x;
- F.y = y.y;
- G.x = D.x;
- G.y = D.y;
- K.x = r.x;
- K.y = r.y;
- E.x = g.x;
- E.y = g.y;
- N.x = X.x;
- N.y = X.y;
- Q.x = O.x;
- Q.y = O.y;
- S.x = v.x;
- S.y = v.y;
- M.x = p.x;
- M.y = p.y;
- this.Iq = new C.u;
- this.Iq.ta(n, f, q);
- c.q(this.Iq, 0, C.Sa.a7);
- this.Zw = new C.u;
- this.Zw.ta(n, M, q);
- c.q(this.Zw, 1, C.Sa.d7);
- this.Nv = new C.u;
- this.Nv.ta(n, S, q);
- c.q(this.Nv, 1, C.Sa.Z6);
- this.lw = new C.u;
- this.lw.ta(n, Q, q);
- c.q(this.lw, 1, C.Sa.b7);
- this.Lw = new C.u;
- this.Lw.ta(n, N, q);
- c.q(this.Lw, 1, C.Sa.c7);
- this.iu = new C.u;
- this.iu.ta(n, E, q);
- c.q(this.iu, 2, C.Sa.e7);
- this.ju = new C.u;
- this.ju.ta(n, K, q);
- c.q(this.ju, 2, C.Sa.f7);
- this.Zs = new C.u;
- this.Zs.ta(n, G, q);
- c.q(this.Zs, 2, C.Sa.Kna);
- this.Ov = new C.u;
- this.Ov.ta(n, F, q)
- } else z = C.OJ(z, d.x, d.y),
- C.Io(U, z),
- C.Io(y, z),
- C.Io(D, z),
- C.Io(r, z),
- C.Io(g, z),
- C.Io(X, z),
- C.Io(O, z),
- C.Io(v, z),
- C.Io(p, z),
- this.Iq = new C.u,
- this.Iq.ta(n, U),
- c.q(this.Iq, 0, C.Sa.a7),
- this.Zw = new C.u,
- this.Zw.ta(n, p),
- c.q(this.Zw, 1, C.Sa.d7),
- this.Nv = new C.u,
- this.Nv.ta(n, v),
- c.q(this.Nv, 1, C.Sa.Z6),
- this.lw = new C.u,
- this.lw.ta(n, O),
- c.q(this.lw, 1, C.Sa.b7),
- this.Lw = new C.u,
- this.Lw.ta(n, X),
- c.q(this.Lw, 1, C.Sa.c7),
- this.iu = new C.u,
- this.iu.ta(n, g),
- c.q(this.iu, 2, C.Sa.e7),
- this.ju = new C.u,
- this.ju.ta(n, r),
- c.q(this.ju, 2, C.Sa.f7),
- this.Zs = new C.u,
- this.Zs.ta(n, D),
- c.q(this.Zs, 2, C.Sa.Kna),
- this.Ov = new C.u,
- this.Ov.ta(n, y);
- c.q(this.Ov, 2, C.Sa.Lna);
- this.Ca(d);
- this.q(c);
- this.Mba && (this.K(h), (255 !== k.r || 255 !== k.g || 255 !== k.b) && this.G(k));
- return this.Mba = q
- }
- c.ye(function() {
- this.lp = q;
- this.cf()
- },
- this)
- },
- pc: function(c) {
- var d = C.Bh.create(c.ob(), 9),
- f = c.Aa; (this.Aa = f) || c.ye(function(c) {
- var d = this.Nh,
- d = C.size(d.width, d.height);
- this.kD(this.Yi, c.Vh(), C.L == C.la && c.fg, this.df);
- this.De(d);
- this.lp = q;
- this.cf()
- },
- this);
- this.kD(d, c.Vh(), C.L == C.la && c.fg, C.rect(0, 0, 0, 0));
- this.NM = this.PM = this.QM = this.OM = 0
- }
- });
- H = C.Sa.prototype;
- C.e(H, "preferredSize", H.y0, H.De);
- C.e(H, "capInsets", H.l0, H.Gc);
- C.e(H, "insetLeft", H.MAa, H.Jha);
- C.e(H, "insetTop", H.OAa, H.Lha);
- C.e(H, "insetRight", H.NAa, H.Kha);
- C.e(H, "insetBottom", H.LAa, H.Iha);
- H = s;
- C.Sa.create = function(c, d, f) {
- var g;
- if (2 === arguments.length) if ("string" == typeof c) {
- if ((g = new C.Sa) && g.Ce(c, d)) return g
- } else {
- if (c instanceof C.az && (g = new C.Sa) && g.Ce(c, f)) return g
- } else if (3 === arguments.length) {
- if ((g = new C.Sa) && g.Ce(c, d, f)) return g
- } else if (1 === arguments.length) {
- if ((g = new C.Sa) && g.Ce(c)) return g
- } else if (0 === arguments.length && (g = new C.Sa) && g.j()) return g;
- return s
- };
- C.Sa.$xa = function(c) {
- var d = new C.Sa;
- return d && d.mj(c, m) ? d: s
- };
- C.Sa.cda = function(c, d) {
- c || e("cc.Scale9Sprite.createWithSpriteFrameName(): spriteFrameName should be non-null");
- var f = new C.Sa;
- return f && f.pl(c, d) ? f: s
- };
- C.Sa.a7 = 0;
- C.Sa.d7 = 1;
- C.Sa.b7 = 2;
- C.Sa.c7 = 3;
- C.Sa.Z6 = 4;
- C.Sa.f7 = 5;
- C.Sa.e7 = 6;
- C.Sa.Lna = 7;
- C.NK = C.qe.extend({});
- C.NK.Q6a = function(c) {
- var d = new C.NK;
- d.j();
- d.Ca(0, c);
- return d
- };
- C.NK.MXa = function(c) {
- var d = new C.NK;
- d.j();
- d.Ca(c, 0);
- return d
- };
- C.wK = C.qe.extend({
- sb: q,
- ya: s,
- Eb: 0,
- qa: "MenuPassive",
- ctor: u(),
- Xa: function() {
- var c = this.ya;
- return C.color(c.r, c.g, c.b, c.a)
- },
- G: function(c) {
- var d = this.ya;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b;
- if (this.l && 0 < this.l.length) for (d = 0; d < this.l.length; d++) this.l[d] && this.l[d].sb && this.l[d].G(c);
- c.a !== m && !c.jx && this.K(c.a)
- },
- rb: A("Eb"),
- K: function(c) {
- this.Eb = c;
- if (this.l && 0 < this.l.length) for (var d = 0; d < this.l.length; d++) this.l[d] && this.l[d].sb && this.l[d].K(c);
- this.ya.a = c
- },
- fQ: function(c, d) {
- if (this.j()) {
- var f = C.Q.aa;
- this.Hm(q);
- this.S(0.5, 0.5);
- this.Ca(f);
- this.p(f.width / 2, f.height / 2);
- f = 0;
- if (c) {
- this.q(c, f);
- for (var g = 0; g < d.length; g++) d[g] && (f++, this.q(d[g], f))
- }
- return q
- }
- return t
- },
- Kwa: function() {
- this.RZ(C.eK)
- },
- RZ: function(c) {
- var d = -c,
- f;
- if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (d += this.l[f].i().height * this.l[f].pa + c);
- var g = 0,
- h = d / 2;
- if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (g = Math.max(g, this.l[f].i().width), this.l[f].p(0, h - this.l[f].i().height * this.l[f].pa / 2), h -= this.l[f].i().height * this.l[f].pa + c);
- this.Ca(g, d)
- },
- Hwa: function() {
- this.QZ(C.eK)
- },
- QZ: function(c) {
- var d = -c,
- f;
- if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (d += this.l[f].i().width * this.l[f].ia + c);
- var g = 0,
- h = -d / 2;
- if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (g = Math.max(g, this.l[f].i().height), this.l[f].p(h + this.l[f].i().width * this.l[f].ia / 2, 0), h += this.l[f].i().width * this.l[f].ia + c);
- this.Ca(d, g)
- },
- Iwa: function(c) {
- var d = [],
- f;
- for (f = 1; f < arguments.length; f++) d.push(arguments[f]);
- var g = -5,
- h = 0,
- k = 0,
- n = 0,
- p, r;
- if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (h >= d.length ? C.log("cc.MenuPassive.alignItemsInColumns(): invalid row index") : (p = d[h]) ? (r = this.l[f].i().height, k = 0 | (k >= r || r == s ? k: r), ++n, n >= p && (g += k + 5, k = n = 0, ++h)) : C.log("cc.MenuPassive.alignItemsInColumns(): can not have zero columns on a row"));
- var v = C.Q.aa,
- y = p = k = h = 0,
- z = 0,
- g = g / 2;
- if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (0 == p && (p = d[h], z = y = v.width / (1 + p)), r = this.l[f].i().height, k = 0 | (k >= r || r == s ? k: r), this.l[f].p(z - v.width / 2, g - this.l[f].i().height / 2), z += y, ++n, n >= p && (g -= k + 5, k = p = n = 0, ++h))
- },
- Jwa: function(c) {
- var d = [],
- f;
- for (f = 1; f < arguments.length; f++) d.push(arguments[f]);
- var g = [],
- h = [],
- k = -10,
- n = -5,
- p = 0,
- r = 0,
- v = 0,
- y,
- z;
- if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (p >= d.length ? C.log("cc.MenuPassive.alignItemsInRows(): invalid row index") : (y = d[p]) ? (z = this.l[f].i().width, r = 0 | (r >= z || z == s ? r: z), n += 0 | this.l[f].i().height + 5, ++v, v >= y && (g.push(r), h.push(n), k += r + 10, r = v = 0, n = -5, ++p)) : C.log("cc.MenuPassive.alignItemsInColumns(): can't have zero rows on a column"));
- n = C.Q.aa;
- r = p = 0;
- y = s;
- var k = -k / 2,
- D = 0;
- if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (y == s && (y = d[p], D = h[p]), z = this.l[f].i().width, r = 0 | (r >= z || z == s ? r: z), this.l[f].p(k + g[p] / 2, D - n.height / 2), D -= this.l[f].i().height + 10, ++v, v >= y && (k += r + 5, r = y = v = 0, ++p))
- },
- $d: u(),
- qg: B(t)
- });
- C.wK.create = function(c) {
- c || (c = s);
- for (var d = [], f = 1; f < arguments.length; f++) d.push(arguments[f]);
- return (f = new C.wK) && f.fQ(c, d) ? f: s
- };
- C.wK.oRa = function(c) {
- return C.wK.create(c, s)
- };
- C.dK = C.Kc.extend({
- tY: 0,
- BL: 0,
- Le: s,
- bua: s,
- Cba: s,
- nm: s,
- je: s,
- Kk: 0,
- Eq: 0,
- qa: "ControlSaturationBrightnessPicker",
- IBa: A("tY"),
- gAa: A("BL"),
- KH: A("Le"),
- tBa: A("BL"),
- NBa: A("Cba"),
- D0: A("nm"),
- F0: A("je"),
- a1: function(c, d) {
- return C.Kc.prototype.j.call(this) ? (this.Le = C.Ah.lx("colourPickerBackground.png", c, d, C.d(0, 0)), this.bua = C.Ah.lx("colourPickerOverlay.png", c, d, C.d(0, 0)), this.Cba = C.Ah.lx("colourPickerShadow.png", c, d, C.d(0, 0)), this.nm = C.Ah.lx("colourPicker.png", c, d, C.d(0.5, 0.5)), this.je = d, this.Kk = 35, this.Eq = this.Le.i().width / 2, q) : t
- },
- Ib: function(c) {
- C.Kc.prototype.Ib.call(this, c);
- this.nm && this.nm.K(c ? 255 : 128)
- },
- qja: function(c) {
- var d = new C.jT;
- d.tl = 1;
- d.Rf = c.Rf;
- d.ea = 1;
- c = C.Ah.WT(d);
- this.Le.G(C.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b))
- },
- EJa: function(c) {
- c = C.d(this.je.x + this.Kk + this.Eq * (1 - c.tl), this.je.y + this.Kk + this.Eq * c.ea);
- this.GO(c)
- },
- GO: function(c) {
- var d = this.je.x + 0.5 * this.Le.Ae().width,
- f = this.je.y + 0.5 * this.Le.Ae().height,
- g = c.x - d,
- h = c.y - f,
- k = Math.sqrt(g * g + h * h),
- g = Math.atan2(h, g),
- h = 0.5 * this.Le.Ae().width;
- k > h && (c.x = d + h * Math.cos(g), c.y = f + h * Math.sin(g));
- this.nm.p(c);
- c.x < this.je.x + this.Kk ? c.x = this.je.x + this.Kk: c.x > this.je.x + this.Kk + this.Eq - 1 && (c.x = this.je.x + this.Kk + this.Eq - 1);
- c.y < this.je.y + this.Kk ? c.y = this.je.y + this.Kk: c.y > this.je.y + this.Kk + this.Eq && (c.y = this.je.y + this.Kk + this.Eq);
- this.tY = 1 - Math.abs((this.je.x + this.Kk - c.x) / this.Eq);
- this.BL = Math.abs((this.je.y + this.Kk - c.y) / this.Eq)
- },
- gF: function(c) {
- var d = this.je.x + 0.5 * this.Le.Ae().width,
- f = this.je.y + 0.5 * this.Le.Ae().height,
- d = c.x - d,
- f = c.y - f;
- return Math.sqrt(d * d + f * f) <= 0.5 * this.Le.Ae().width ? (this.GO(c), this.Bi(C.uo), q) : t
- },
- nc: function(c) {
- if (!this.isEnabled() || !this.Ja) return t;
- c = this.Gp(c);
- return this.gF(c)
- },
- yd: function(c) {
- c = this.Gp(c);
- this.gF(c)
- }
- });
- H = C.dK.prototype;
- C.e(H, "saturation", H.IBa);
- C.e(H, "brightness", H.gAa);
- C.e(H, "background", H.KH);
- C.e(H, "overlay", H.tBa);
- C.e(H, "shadow", H.NBa);
- C.e(H, "slider", H.D0);
- C.e(H, "startPos", H.F0);
- H = s;
- C.dK.create = function(c, d) {
- var f = new C.dK;
- f.a1(c, d);
- return f
- };
- C.cK = C.Kc.extend({
- kA: 0,
- TF: 0,
- Le: s,
- nm: s,
- je: s,
- qa: "ControlHuePicker",
- GAa: A("kA"),
- AR: function(c) {
- this.kA = c;
- this.Gha(this.kA / 360)
- },
- HAa: A("TF"),
- Gha: function(c) {
- this.TF = c;
- this.kA = 360 * this.TF;
- c = this.Le.Ae();
- var d = 0.5 * c.width - 15,
- f = C.ng(360 * this.TF - 180);
- this.nm.p(this.je.x + 0.5 * c.width + d * Math.cos(f), this.je.y + 0.5 * c.height + d * Math.sin(f))
- },
- Ib: function(c) {
- C.Kc.prototype.Ib.call(this, c);
- this.nm && this.nm.K(c ? 255 : 128)
- },
- KH: A("Le"),
- D0: A("nm"),
- F0: A("je"),
- a1: function(c, d) {
- return C.Kc.prototype.j.call(this) ? (this.Le = C.Ah.lx("huePickerBackground.png", c, d, C.d(0, 0)), this.nm = C.Ah.lx("colourPicker.png", c, d, C.d(0.5, 0.5)), this.nm.p(d.x, d.y + 0.5 * this.Le.Ae().height), this.je = d, this.TF = this.kA = 0, q) : t
- },
- GO: function(c) {
- var d = this.Le.Ae();
- this.AR(C.LC(Math.atan2(c.y - (this.je.y + 0.5 * d.height), c.x - (this.je.x + 0.5 * d.width))) + 180);
- this.Bi(C.uo)
- },
- gF: function(c) {
- var d = Math.sqrt(Math.pow(c.x + 10, 2) + Math.pow(c.y, 2));
- return 80 > d && 59 < d ? (this.GO(c), q) : t
- },
- nc: function(c) {
- if (!this.isEnabled() || !this.Ja) return t;
- c = this.Gp(c);
- return this.gF(c)
- },
- yd: function(c) {
- c = this.Gp(c);
- this.gF(c)
- }
- });
- H = C.cK.prototype;
- C.e(H, "hue", H.GAa, H.AR);
- C.e(H, "huePercent", H.HAa, H.Gha);
- C.e(H, "background", H.KH);
- C.e(H, "slider", H.D0);
- C.e(H, "startPos", H.F0);
- H = s;
- C.cK.create = function(c, d) {
- var f = new C.cK;
- f.a1(c, d);
- return f
- };
- C.OS = C.Kc.extend({
- Yl: s,
- ft: s,
- dw: s,
- Le: s,
- qa: "ControlColourPicker",
- GCa: function(c) {
- this.Yl.Rf = c.kA;
- c = C.Ah.WT(this.Yl);
- C.Kc.prototype.G.call(this, C.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b));
- this.Bi(C.uo);
- this.awa()
- },
- Lxa: function(c) {
- this.Yl.tl = c.tY;
- this.Yl.ea = c.BL;
- c = C.Ah.WT(this.Yl);
- C.Kc.prototype.G.call(this, C.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b));
- this.Bi(C.uo)
- },
- G: function(c) {
- C.Kc.prototype.G.call(this, c);
- var d = new Pa;
- d.r = c.r / 255;
- d.g = c.g / 255;
- d.b = c.b / 255;
- d.a = 1;
- this.Yl = C.Ah.uma(d);
- this.dca()
- },
- KH: A("Le"),
- j: function() {
- if (C.Kc.prototype.j.call(this)) {
- C.Fe.Lr(I.E4);
- var c = C.Bh.create(I.F4);
- this.q(c);
- this.Yl = new C.jT(0, 0, 0);
- this.Le = C.Ah.lx("menuColourPanelBackground.png", c, C.d(0, 0), C.d(0.5, 0.5));
- var d = C.cc(this.Le.Ld(), C.d(this.Le.i().width / 2, this.Le.i().height / 2));
- this.dw = C.cK.create(c, C.d(d.x + 8, d.y + 8));
- this.ft = C.dK.create(c, C.d(d.x + 28, d.y + 28));
- this.dw.nH(this, this.GCa, C.uo);
- this.ft.nH(this, this.Lxa, C.uo);
- this.dca();
- this.q(this.dw);
- this.q(this.ft);
- this.Ca(this.Le.i());
- return q
- }
- return t
- },
- awa: function() {
- this.dw.AR(this.Yl.Rf);
- this.ft.qja(this.Yl)
- },
- dca: function() {
- this.dw.AR(this.Yl.Rf);
- this.ft.qja(this.Yl);
- this.ft.EJa(this.Yl)
- },
- Ib: function(c) {
- C.Kc.prototype.Ib.call(this, c);
- this.dw != s && this.dw.Ib(c);
- this.ft && this.ft.Ib(c)
- },
- nc: B(t)
- });
- H = C.OS.prototype;
- C.e(H, "background", H.KH);
- H = s;
- C.OS.create = function() {
- var c = new C.OS;
- c.j();
- return c
- };
- var I = I || {};
- I.E4 = I.E4 || "res/extensions/CCControlColourPickerSpriteSheet.plist";
- I.F4 = I.F4 || "res/extensions/CCControlColourPickerSpriteSheet.png";
- C.F7 = 24;
- C.aNa = 8;
- C.QS = C.Kc.extend({
- Hd: 0,
- Rb: 0,
- sc: 0,
- iN: 0,
- gN: 0,
- vc: s,
- Pt: s,
- Eh: s,
- qa: "ControlSlider",
- Qf: A("Hd"),
- ne: function(c) {
- c = Math.max(c, this.Rb);
- this.Hd = c = Math.min(c, this.sc);
- this.Tf();
- this.Bi(C.uo)
- },
- QH: A("Rb"),
- iJ: function(c) {
- this.iN = this.Rb = c;
- this.Rb >= this.sc && (this.sc = this.Rb + 1);
- this.ne(this.Hd)
- },
- PH: A("sc"),
- hJ: function(c) {
- this.gN = this.sc = c;
- this.sc <= this.Rb && (this.Rb = this.sc - 1);
- this.ne(this.Hd)
- },
- Zn: function(c) {
- c = c.mh();
- c = this.getParent().wi(c);
- var d = this.Ae();
- d.width += this.vc.i().width;
- d.x -= this.vc.i().width / 2;
- return C.Ju(d, c)
- },
- Tx: function(c) {
- c = c.mh();
- c = this.wi(c);
- 0 > c.x ? c.x = 0 : c.x > this.Eh.i().width && (c.x = this.Eh.i().width);
- return c
- },
- fBa: A("iN"),
- LHa: x("iN"),
- dBa: A("gN"),
- JHa: x("gN"),
- XH: A("vc"),
- zBa: A("Pt"),
- bAa: A("Eh"),
- YCa: function(c, d, f) {
- return C.Kc.prototype.j.call(this) ? (this.Hm(t), this.Eh = c, this.Pt = d, this.vc = f, c = C.Ah.G4(c.Ae(), f.Ae()), this.Ca(c.width, c.height), this.Eh.S(0.5, 0.5), this.Eh.p(c.width / 2, c.height / 2), this.q(this.Eh), this.Pt.S(0, 0.5), this.Pt.p(0, c.height / 2), this.q(this.Pt), this.vc.p(0, c.height / 2), this.q(this.vc), this.Rb = 0, this.sc = 1, this.ne(this.Rb), q) : t
- },
- Ib: function(c) {
- C.Kc.prototype.Ib.call(this, c);
- this.vc && this.vc.K(c ? 255 : 128)
- },
- GIa: function(c) {
- this.Wu(q);
- this.vc.G(C.color.GRAY);
- this.ne(this.c4(c))
- },
- IIa: function(c) {
- this.ne(this.c4(c))
- },
- HIa: function() {
- this.oQ() && this.ne(this.c4(this.vc.Ld()));
- this.vc.G(C.color.WHITE);
- this.Wu(t)
- },
- hXa: function(c) {
- c = c.mh();
- c = this.wi(c);
- 0 > c.x ? c.x = 0 : c.x > this.Eh.i().width + C.F7 && (c.x = this.Eh.i().width + C.F7);
- return c
- },
- nc: function(c) {
- if (!this.Zn(c) || !this.isEnabled() || !this.Ja) return t;
- c = this.Tx(c);
- this.GIa(c);
- return q
- },
- yd: function(c) {
- c = this.Tx(c);
- this.IIa(c)
- },
- cd: function() {
- this.HIa(C.d(0, 0))
- },
- Tf: function() {
- this.vc.rs((this.Hd - this.Rb) / (this.sc - this.Rb) * this.Eh.i().width);
- var c = this.Pt.WH(),
- c = C.rect(c.x, c.y, this.vc.Rc(), c.height);
- this.Pt.qc(c, this.Pt.jf)
- },
- c4: function(c) {
- c = c.x / this.Eh.i().width;
- return Math.max(Math.min(this.Rb + c * (this.sc - this.Rb), this.gN), this.iN)
- }
- });
- H = C.QS.prototype;
- C.e(H, "value", H.Qf, H.ne);
- C.e(H, "minValue", H.QH, H.iJ);
- C.e(H, "maxValue", H.PH, H.hJ);
- C.e(H, "minAllowedValue", H.fBa, H.LHa);
- C.e(H, "maxAllowedValue", H.dBa, H.JHa);
- C.e(H, "thumbSprite", H.XH);
- C.e(H, "progressSprite", H.zBa);
- C.e(H, "backgroundSprite", H.bAa);
- H = s;
- C.QS.create = function(c, d, f) {
- "string" == typeof c && (c = C.u.create(c), d = C.u.create(d), f = C.u.create(f));
- var g = new C.QS;
- g.YCa(c, d, f);
- return g
- };
- C.q5 = C.Kc.extend({
- If: s,
- aaa: 0,
- dG: t,
- FA: t,
- qa: "ControlSwitch",
- ctor: function() {
- C.Kc.prototype.ctor.call(this)
- },
- W0: function(c, d, f, g, h, k) {
- c || e("cc.ControlSwitch.initWithMaskSprite(): maskSprite should be non-null.");
- d || e("cc.ControlSwitch.initWithMaskSprite(): onSprite should be non-null.");
- f || e("cc.ControlSwitch.initWithMaskSprite(): offSprite should be non-null.");
- g || e("cc.ControlSwitch.initWithMaskSprite(): thumbSprite should be non-null.");
- return this.j() ? (this.FA = q, this.If = new C.r5, this.If.W0(c, d, f, g, h, k), this.If.p(this.If.i().width / 2, this.If.i().height / 2), this.q(this.If), this.Hm(t), this.S(0.5, 0.5), this.Ca(this.If.i()), q) : t
- },
- ER: function(c, d) {
- var f = (this.FA = c) ? this.If.Kt: this.If.ww;
- d || t ? this.If.Ya(C.fv.create(0.2, "sliderXPosition", this.If.tr, f)) : this.If.MR(f);
- this.Bi(C.uo)
- },
- AYa: A("FA"),
- HXa: A("dG"),
- Ib: function(c) {
- this.Wc = c;
- this.If.K(c ? 255 : 128)
- },
- Tx: function(c) {
- c = c.mh();
- return c = this.wi(c)
- },
- nc: function(c) {
- if (!this.Zn(c) || !this.isEnabled() || !this.Ja) return t;
- this.dG = t;
- this.aaa = this.Tx(c).x - this.If.tr;
- this.If.vc.G(C.color.GRAY);
- this.If.Tf();
- return q
- },
- yd: function(c) {
- c = this.Tx(c);
- c = C.d(c.x - this.aaa, 0);
- this.dG = q;
- this.If.MR(c.x)
- },
- cd: function(c) {
- c = this.Tx(c);
- this.If.vc.G(C.color.WHITE);
- this.dG ? this.ER(!(c.x < this.If.i().width / 2), q) : this.ER(!this.FA, q)
- },
- Xe: function(c) {
- c = this.Tx(c);
- this.If.vc.G(C.color.WHITE);
- this.dG ? this.ER(!(c.x < this.If.i().width / 2), q) : this.ER(!this.FA, q)
- }
- });
- C.q5.create = function(c, d, f, g, h, k) {
- var n = new C.q5;
- return n && n.W0(c, d, f, g, h, k) ? n: s
- };
- C.r5 = C.u.extend({
- tr: 0,
- Kt: 0,
- ww: 0,
- Qba: 0,
- sX: 0,
- tX: s,
- un: s,
- hr: s,
- vc: s,
- kG: s,
- iG: s,
- Hz: s,
- Ud: s,
- l9: s,
- ctor: function() {
- C.u.prototype.ctor.call(this);
- this.sX = this.ww = this.Kt = this.tr = 0;
- this.tX = C.size(0, 0);
- this.iG = this.kG = this.vc = this.hr = this.un = s
- },
- W0: function(c, d, f, g, h, k) {
- return C.u.prototype.ta.call(this, c.ob()) ? (this.Kt = 0, this.ww = -d.i().width + g.i().width / 2, this.tr = this.Kt, this.Uha(d), this.Sha(f), this.qJ(g), this.Tha(h), this.Rha(k), this.Ud = c, c = this.tX = this.Ud.i(), this.Ud.p(0, 0), this.Hz = C.Tc.create(), this.Hz.S(0.5, 0.5), this.Hz.p(c.width / 2, c.height / 2), this.Hz.OR(this.Ud), this.l9 = C.yv.create(c.width, c.height), this.Hz.q(this.l9.E0()), this.q(this.Hz), this.q(this.vc), this.Tf(), q) : t
- },
- Tf: function() {
- this.un.p(this.un.i().width / 2 + this.tr, this.un.i().height / 2);
- this.hr.p(this.un.i().width + this.hr.i().width / 2 + this.tr, this.hr.i().height / 2);
- this.kG && this.kG.p(this.un.Rc() - this.vc.i().width / 6, this.un.i().height / 2);
- this.iG && this.iG.p(this.hr.Rc() + this.vc.i().width / 6, this.hr.i().height / 2);
- this.vc.p(this.un.i().width + this.tr, this.tX.height / 2)
- },
- MR: function(c) {
- c <= this.ww ? c = this.ww: c >= this.Kt && (c = this.Kt);
- this.tr = c;
- this.Tf()
- },
- QBa: A("tr"),
- Csa: function() {
- return this.un.i().width
- },
- zsa: function() {
- return this.hr.i().height
- },
- Z3: function(c, d) {
- C.log("key \x3d " + d + ", value \x3d " + c);
- this.MR(c)
- },
- SHa: x("Kt"),
- qBa: A("Kt"),
- RHa: x("ww"),
- nBa: A("ww"),
- GHa: function(c) {
- this.Ud.Va(c)
- },
- $Aa: function() {
- return this.Ud.ob()
- },
- o5a: x("Qba"),
- UWa: A("Qba"),
- FHa: x("sX"),
- ZAa: A("sX"),
- Uha: x("un"),
- rBa: A("un"),
- Sha: x("hr"),
- oBa: A("hr"),
- qJ: x("vc"),
- XH: A("vc"),
- Tha: x("kG"),
- pBa: A("kG"),
- Rha: x("iG"),
- mBa: A("iG")
- });
- H = C.r5.prototype;
- C.e(H, "sliderX", H.QBa, H.MR);
- C.e(H, "onPos", H.qBa, H.SHa);
- C.e(H, "offPos", H.nBa, H.RHa);
- C.e(H, "maskTexture", H.$Aa, H.GHa);
- C.e(H, "maskPos", H.ZAa, H.FHa);
- C.e(H, "onSprite", H.rBa, H.Uha);
- C.e(H, "offSprite", H.oBa, H.Sha);
- C.e(H, "thumbSprite", H.XH, H.qJ);
- C.e(H, "onLabel", H.pBa, H.Tha);
- C.e(H, "offLabel", H.mBa, H.Rha);
- C.e(H, "onSideWidth", H.Csa);
- C.e(H, "offSideWidth", H.zsa);
- H = s;
- C.h5 = 0;
- C.i5 = 1;
- C.XJ = 2;
- C.ED = C.color(55, 55, 55);
- C.LS = C.color(147, 147, 147);
- C.g5 = "CourierNewPSMT";
- C.j4 = 0.15;
- C.Cja = 12;
- C.RS = C.Kc.extend({
- bh: s,
- Si: s,
- Gt: s,
- Nt: s,
- Hd: 0,
- oF: t,
- pz: t,
- ou: t,
- Rb: 0,
- sc: 0,
- $t: 0,
- XG: t,
- bx: C.XJ,
- YE: 0,
- qa: "ControlStepper",
- ctor: function() {
- C.Kc.prototype.ctor.call(this);
- this.Nt = this.Gt = this.Si = this.bh = s;
- this.Hd = 0;
- this.ou = this.pz = this.oF = t;
- this.$t = this.sc = this.Rb = 0;
- this.XG = t;
- this.bx = C.XJ;
- this.YE = 0
- },
- TCa: function(c, d) {
- c || e("cc.ControlStepper.initWithMinusSpriteAndPlusSprite(): Minus sprite should be non-null.");
- d || e("cc.ControlStepper.initWithMinusSpriteAndPlusSprite(): Plus sprite should be non-null.");
- if (this.j()) {
- this.oF = this.pz = q;
- this.Rb = 0;
- this.sc = 100;
- this.Hd = 0;
- this.$t = 1;
- this.ou = t;
- this.Hm(t);
- this.Oha(c);
- this.bh.p(c.i().width / 2, c.i().height / 2);
- this.q(this.bh);
- this.Nha(C.fa.create("-", C.g5, 40, C.size(40, 40), C.Fs, C.MU));
- this.Gt.G(C.LS);
- this.Gt.p(this.bh.i().width / 2, this.bh.i().height / 2);
- this.bh.q(this.Gt);
- this.Xha(d);
- this.Si.p(c.i().width + d.i().width / 2, c.i().height / 2);
- this.q(this.Si);
- this.Wha(C.fa.create("+", C.g5, 40, C.size(40, 40), C.Fs, C.MU));
- this.Nt.G(C.ED);
- this.Nt.p(this.Si.i().width / 2, this.Si.i().height / 2);
- this.Si.q(this.Nt);
- var f = C.Ah.G4(this.bh.Ae(), this.Si.Ae());
- this.Ca(this.bh.i().width + this.Si.i().height, f.height);
- return q
- }
- return t
- },
- BIa: function(c) {
- if (this.ou = c) this.Gt.G(C.ED),
- this.Nt.G(C.ED);
- this.ne(this.Hd)
- },
- uCa: A("ou"),
- iJ: function(c) {
- c >= this.sc && e("cc.ControlStepper.setMinimumValue(): minimumValue should be numerically less than maximumValue.");
- this.Rb = c;
- this.ne(this.Hd)
- },
- QH: A("Rb"),
- hJ: function(c) {
- c <= this.Rb && e("cc.ControlStepper.setMaximumValue(): maximumValue should be numerically less than maximumValue.");
- this.sc = c;
- this.ne(this.Hd)
- },
- PH: A("sc"),
- ne: function(c) {
- this.w3(c, q)
- },
- Qf: A("Hd"),
- pIa: function(c) {
- 0 >= c && e("cc.ControlStepper.setMaximumValue(): stepValue should be numerically greater than 0.");
- this.$t = c
- },
- WBa: A("$t"),
- rDa: A("oF"),
- w3: function(c, d) {
- c < this.Rb ? c = this.ou ? this.sc: this.Rb: c > this.sc && (c = this.ou ? this.Rb: this.sc);
- this.Hd = c;
- this.ou || (this.Gt.G(c == this.Rb ? C.LS: C.ED), this.Nt.G(c == this.sc ? C.LS: C.ED));
- d && this.Bi(C.uo)
- },
- Pia: function() {
- this.YE = -1;
- this.rg(this.update, C.j4, C.xv, 3 * C.j4)
- },
- Ria: function() {
- this.Zh(this.update)
- },
- update: function() {
- this.YE++;
- this.YE < C.Cja && 0 != this.YE % 3 || (this.bx == C.h5 ? this.w3(this.Hd - this.$t, this.oF) : this.bx == C.i5 && this.w3(this.Hd + this.$t, this.oF))
- },
- ija: function(c) {
- c.x < this.bh.i().width && this.Hd > this.Rb ? (this.bx = C.h5, this.bh.G(C.color.GRAY), this.Si.G(C.color.WHITE)) : c.x >= this.bh.i().width && this.Hd < this.sc ? (this.bx = C.i5, this.bh.G(C.color.WHITE), this.Si.G(C.color.GRAY)) : (this.bx = C.XJ, this.bh.G(C.color.WHITE), this.Si.G(C.color.WHITE))
- },
- nc: function(c) {
- if (!this.Zn(c) || !this.isEnabled() || !this.Ja) return t;
- c = this.Gp(c);
- this.ija(c);
- this.XG = q;
- this.pz && this.Pia();
- return q
- },
- yd: function(c) {
- this.Zn(c) ? (c = this.Gp(c), this.ija(c), this.XG || (this.XG = q, this.pz && this.Pia())) : (this.XG = t, this.bx = C.XJ, this.bh.G(C.color.WHITE), this.Si.G(C.color.WHITE), this.pz && this.Ria())
- },
- cd: function(c) {
- this.bh.G(C.color.WHITE);
- this.Si.G(C.color.WHITE);
- this.pz && this.Ria();
- this.Zn(c) && (c = this.Gp(c), this.ne(this.Hd + (c.x < this.bh.i().width ? 0 - this.$t: this.$t)))
- },
- Oha: x("bh"),
- hBa: A("bh"),
- Xha: x("Si"),
- wBa: A("Si"),
- Nha: x("Gt"),
- gBa: A("Gt"),
- Wha: x("Nt"),
- vBa: A("Nt")
- });
- H = C.RS.prototype;
- C.e(H, "wraps", H.uCa, H.BIa);
- C.e(H, "value", H.Qf, H.ne);
- C.e(H, "minValue", H.QH, H.iJ);
- C.e(H, "maxValue", H.PH, H.hJ);
- C.e(H, "stepValue", H.WBa, H.pIa);
- C.e(H, "continuous", H.rDa);
- C.e(H, "minusSprite", H.hBa, H.Oha);
- C.e(H, "plusSprite", H.wBa, H.Xha);
- C.e(H, "minusLabel", H.gBa, H.Nha);
- C.e(H, "plusLabel", H.vBa, H.Wha);
- H = s;
- C.RS.create = function(c, d) {
- var f = new C.RS;
- return f && f.TCa(c, d) ? f: s
- };
- C.PS = C.Kc.extend({
- vc: s,
- RA: s,
- PA: s,
- Hd: 0,
- Rb: 0,
- sc: 1,
- qa: "ControlPotentiometer",
- cDa: function(c, d, f) {
- return this.j() ? (this.Zha(d), this.qJ(f), this.vc.p(d.Ld()), this.q(f, 2), this.q(d, 1), this.q(c), this.Ca(c.i()), this.Rb = 0, this.sc = 1, this.ne(this.Rb), q) : t
- },
- Ib: function(c) {
- this.Ib(c);
- this.vc != NULL && this.vc.K(c ? 255 : 128)
- },
- ne: function(c) {
- c < this.Rb && (c = this.Rb);
- c > this.sc && (c = this.sc);
- this.Hd = c;
- c = (c - this.Rb) / (this.sc - this.Rb);
- this.RA.X2(100 * c);
- this.vc.th(360 * c);
- this.Bi(C.uo)
- },
- Qf: A("Hd"),
- iJ: function(c) {
- this.Rb = c;
- this.Rb >= this.sc && (this.sc = this.Rb + 1);
- this.ne(this.sc)
- },
- QH: A("Rb"),
- hJ: function(c) {
- this.sc = c;
- this.sc <= this.Rb && (this.Rb = this.sc - 1);
- this.ne(this.Rb)
- },
- PH: A("sc"),
- Zn: function(c) {
- c = this.Gp(c);
- return this.Iya(this.RA.Ld(), c) < Math.min(this.i().width / 2, this.i().height / 2)
- },
- nc: function(c) {
- if (!this.Zn(c) || !this.isEnabled() || !this.Ja) return t;
- this.PA = this.Gp(c);
- this.NFa(this.PA);
- return q
- },
- yd: function(c) {
- c = this.Gp(c);
- this.PFa(c)
- },
- cd: function() {
- this.OFa(C.d(0, 0))
- },
- Iya: function(c, d) {
- var f = c.x - d.x,
- g = c.y - d.y;
- return Math.sqrt(f * f + g * g)
- },
- Lwa: function(c, d, f, g) {
- return 180 * (Math.atan2(d.x - c.x, d.y - c.y) - Math.atan2(g.x - f.x, g.y - f.y)) / Math.PI
- },
- NFa: function() {
- this.Wu(q);
- this.vc.G(C.color.GRAY)
- },
- PFa: function(c) {
- var d = this.Lwa(this.RA.Ld(), c, this.RA.Ld(), this.PA);
- 180 < d ? d -= 360 : -180 > d && (d += 360);
- this.ne(this.Hd + d / 360 * (this.sc - this.Rb));
- this.PA = c
- },
- OFa: function() {
- this.vc.G(C.color.WHITE);
- this.Wu(t)
- },
- qJ: x("vc"),
- XH: A("vc"),
- Zha: x("RA"),
- ABa: A("RA"),
- ZHa: x("PA"),
- JP: A("PA")
- });
- H = C.PS.prototype;
- C.e(H, "value", H.Qf, H.ne);
- C.e(H, "minValue", H.QH, H.iJ);
- C.e(H, "maxValue", H.PH, H.hJ);
- C.e(H, "progressTimer", H.ABa, H.Zha);
- C.e(H, "thumbSprite", H.XH, H.qJ);
- C.e(H, "prevLocation", H.JP, H.ZHa);
- H = s;
- C.PS.create = function(c, d, f) {
- var g = new C.PS;
- return g && (c = C.u.create(c), f = C.u.create(f), d = C.Lb.create(C.u.create(d)), g.cDa(c, d, f)) ? g: s
- };
- C.B7 = -1;
- C.bz = 0;
- C.IK = 1;
- C.HK = 2;
- C.Rxa = function(c) {
- var d = C.view;
- return c * ((d.ia + d.pa) / 2) / 160
- };
- C.Foa = C.O.extend({
- MGa: u(),
- NGa: u()
- });
- C.Ml = C.qe.extend({
- NPa: 0,
- gPa: 0,
- ePa: 0,
- Oq: s,
- Kh: C.HK,
- fn: t,
- xra: s,
- Ta: s,
- sm: t,
- fN: s,
- hN: s,
- aF: t,
- jF: t,
- zG: s,
- pB: s,
- YG: 0,
- Kf: s,
- On: s,
- Baa: 0,
- Aaa: 0,
- mG: s,
- uY: t,
- Sba: s,
- ui: s,
- qa: "ScrollView",
- ctor: function() {
- C.qe.prototype.ctor.call(this);
- this.xra = C.d(0, 0);
- this.fN = C.d(0, 0);
- this.hN = C.d(0, 0);
- this.zG = C.d(0, 0);
- this.pB = C.d(0, 0);
- this.Kf = [];
- this.On = C.size(0, 0);
- this.mG = new C.az(0, 0, 0, 0);
- this.Sba = new C.az(0, 0, 0, 0)
- },
- j: function() {
- return this.kI(C.size(200, 200), s)
- },
- kI: function(c, d) {
- var f = C.d(0, 0);
- return C.qe.prototype.j.call(this) ? (this.Ta = d, this.Ta || (this.Ta = C.qe.create(), this.Ta.Hm(t), this.Ta.S(f)), this.VR(c), this.vh(q), this.Kf.length = 0, this.Oq = s, this.jF = this.aF = q, this.Kh = C.HK, this.Ta.p(f), this.YG = 0, this.q(this.Ta), this.Baa = this.Aaa = 1, q) : t
- },
- SC: function(c, d) {
- if (d) this.lHa(c, 0.15);
- else {
- if (!this.aF) {
- var f = this.bs(),
- g = this.Fu();
- c.x = Math.max(f.x, Math.min(g.x, c.x));
- c.y = Math.max(f.y, Math.min(g.y, c.y))
- }
- this.Ta.p(c)
- }
- },
- lAa: function() {
- var c = this.Ta.Ld();
- return C.d(c.x, c.y)
- },
- lHa: function(c, d) {
- var f = C.Bs.create(d, c),
- g = C.Jc.create(this.Mva, this);
- this.Ta.Ya(C.La.create(f, g));
- this.rg(this.OX)
- },
- Cia: function(c, d) {
- if (d) this.CIa(c, 0.15);
- else {
- var f = this.Ta;
- if (f.SH() != c) {
- var g, h;
- 0 == this.YG ? (h = this.On, h = C.d(0.5 * h.width, 0.5 * h.height), h = this.vm(h)) : h = this.pB;
- g = f.wi(h);
- f.Za(Math.max(this.Baa, Math.min(this.Aaa, c)));
- g = f.vm(g);
- h = C.cc(h, g);
- this.SC(C.ho(f.Ld(), h))
- }
- }
- },
- Fea: function() {
- return this.Ta.SH()
- },
- CIa: function(c, d) {
- if (0 < d) {
- var f = this.Ta.SH();
- f != c && (f = C.fv.create(d, "zoomScale", f, c), this.Ya(f))
- } else this.Cia(c)
- },
- bs: function() {
- var c = this.Ta,
- d = c.i(),
- f = this.On;
- return C.d(f.width - d.width * c.ia, f.height - d.height * c.pa)
- },
- Fu: function() {
- return C.d(0, 0)
- },
- zYa: function(c) {
- var d = this.lAa(),
- f = this.On,
- g = this.Fea(),
- d = C.rect( - d.x / g, -d.y / g, f.width / g, f.height / g);
- return C.gGa(d, c.Ae())
- },
- pause: function() {
- this.Ta.pause();
- for (var c = this.Ta.le(), d = 0; d < c.length; d++) c[d].pause();
- this._super()
- },
- nk: function() {
- for (var c = this.Ta.le(), d = 0, f = c.length; d < f; d++) c[d].nk();
- this.Ta.nk();
- this._super()
- },
- oYa: A("fn"),
- OYa: A("sm"),
- mDa: A("aF"),
- mha: x("aF"),
- rCa: A("On"),
- VR: function(c) {
- this.On = c;
- C.A.prototype.Ca.call(this, c)
- },
- kAa: A("Ta"),
- uha: function(c) {
- c && (this.xf(q), this.Ta = c, c.Hm(t), c.S(0, 0), this.q(c), this.VR(this.On))
- },
- $B: A("Kh"),
- sh: x("Kh"),
- ZB: A("Oq"),
- bq: x("Oq"),
- nc: function(c) {
- if (!this.Ja) return t;
- var d = this.VW(),
- f = this.Ta,
- g = f.vm(f.Bp(c)),
- h = this.Kf;
- if (2 < h.length || this.sm || !C.Ju(d, g)) return t;
- h.push(c);
- 1 === h.length ? (this.pB = this.Bp(c), this.sm = t, this.fn = q, this.zG.x = 0, this.YG = this.zG.y = 0) : 2 == h.length && (this.pB = C.S1(this.Bp(h[0]), this.Bp(h[1])), this.YG = C.kga(f.Bp(h[0]), f.Bp(h[1])), this.fn = t);
- return q
- },
- yd: function(c) {
- if (this.Ja) if (1 === this.Kf.length && this.fn) {
- this.sm = q;
- this.VW();
- var d = this.Bp(c);
- c = C.cc(d, this.pB);
- var f = 0,
- g = this.Kh,
- h;
- if (g === C.IK) f = c.y,
- h = this.Ta.Vd(),
- this.bs().y <= h && h <= this.Fu().y || (c.y *= 0.35);
- else if (g === C.bz) f = c.x,
- h = this.Ta.Rc(),
- this.bs().x <= h && h <= this.Fu().x || (c.x *= 0.35);
- else {
- f = Math.sqrt(c.x * c.x + c.y * c.y);
- h = this.Ta.Vd();
- var k = this.bs(),
- n = this.Fu();
- k.y <= h && h <= n.y || (c.y *= 0.35);
- h = this.Ta.Rc();
- k.x <= h && h <= n.x || (c.x *= 0.35)
- }
- if (this.sm || !(0.04375 > Math.abs(C.Rxa(f)))) if (this.sm || (c.x = 0, c.y = 0), this.pB = d, this.sm = q, this.fn) {
- switch (g) {
- case C.IK:
- c.x = 0;
- break;
- case C.bz:
- c.y = 0
- }
- f = this.Ta.Ld();
- d = f.x + c.x;
- f = f.y + c.y;
- this.zG = c;
- this.SC(C.d(d, f))
- }
- } else 2 === this.Kf.length && !this.fn && (c = C.kga(this.Ta.Bp(this.Kf[0]), this.Ta.Bp(this.Kf[1])), this.Cia(this.Fea() * c / this.YG))
- },
- cd: function() {
- this.Ja && (1 == this.Kf.length && this.sm && this.rg(this.WV), this.Kf.length = 0, this.sm = this.fn = t)
- },
- Xe: function() {
- this.Ja && (this.Kf.length = 0, this.sm = this.fn = t)
- },
- Ca: function(c, d) {
- this.Ta != s && (d === m ? this.Ta.Ca(c) : this.Ta.Ca(c, d), this.eS())
- },
- Qh: function(c) {
- var d = this.Ta;
- d != s && (d.Qh(c), this.eS())
- },
- Ph: function(c) {
- var d = this.Ta;
- d != s && (d.Ph(c), this.eS())
- },
- i: function() {
- return this.Ta.i()
- },
- eS: function() {
- if (this.Ta != s) {
- var c = this.On,
- d = this.Fu();
- this.fN.x = d.x + 0.2 * c.width;
- this.fN.y = d.y + 0.2 * c.height;
- d = this.bs();
- this.hN.x = d.x - 0.2 * c.width;
- this.hN.y = d.y - 0.2 * c.height
- }
- },
- pDa: A("jF"),
- sha: x("jF"),
- J: function(c) {
- if (this.Ja) {
- c = c || C.t;
- var d, f = this.l,
- g, h;
- if (C.L === C.cb) {
- c.save();
- this.transform(c);
- this.m9(c);
- if (f && 0 < f.length) {
- h = f.length;
- this.ed();
- for (d = 0; d < h; d++) if ((g = f[d]) && 0 > g.Wa) g.J(c);
- else break;
- for (this.ka(c); d < h; d++) f[d].J(c)
- } else this.ka(c);
- this.c9();
- c.restore()
- } else {
- C.Zr();
- var k = this.grid;
- k && k.zi() && (k.px(), this.CJ());
- this.transform(c);
- this.m9(c);
- if (f && 0 < f.length) {
- h = f.length;
- for (d = 0; d < h; d++) if ((g = f[d]) && 0 > g.Wa) g.J();
- else break;
- for (this.ka(c); d < h; d++) f[d].J()
- } else this.ka(c);
- this.c9(c);
- k && k.zi() && k.mx(this);
- C.Yr()
- }
- }
- },
- q: function(c, d, f) {
- c || e(Error("child must not nil!"));
- d = d || c.Wa;
- f = f || c.Fm();
- this.Ta != c ? this.Ta.q(c, d, f) : C.qe.prototype.q.call(this, c, d, f)
- },
- k1: function() {
- return this.ui != s
- },
- vh: function(c) {
- this.ui && C.Ka.removeListener(this.ui);
- this.ui = s;
- c ? (c = C.Oa.create({
- event: C.Oa.Gs
- }), this.nc && (c.nc = this.nc.bind(this)), this.yd && (c.yd = this.yd.bind(this)), this.cd && (c.cd = this.cd.bind(this)), this.Xe && (c.Xe = this.Xe.bind(this)), this.ui = c, C.Ka.addListener(c, this)) : (this.sm = this.fn = t, this.Kf.length = 0)
- },
- SOa: B(s),
- xua: function(c) {
- var d = this.bs(),
- f = this.Fu(),
- g = this.Kh,
- h = this.Ta.Ld(),
- k = h.x,
- n = h.y;
- if (g === C.HK || g === C.bz) k = Math.max(k, d.x),
- k = Math.min(k, f.x);
- if (g == C.HK || g == C.IK) n = Math.min(n, f.y),
- n = Math.max(n, d.y); (n != h.y || k != h.x) && this.SC(C.d(k, n), c)
- },
- WV: function() {
- if (this.fn) this.Zh(this.WV);
- else {
- var c, d;
- c = this.Ta.Ld();
- var f = this.zG;
- this.Ta.p(c.x + f.x, c.y + f.y);
- this.aF ? (c = this.fN, d = this.hN) : (c = this.Fu(), d = this.bs());
- var g = this.Ta.Rc(),
- h = this.Ta.Vd();
- f.x *= 0.95;
- f.y *= 0.95;
- this.SC(C.d(g, h));
- if (1 >= Math.abs(f.x) && 1 >= Math.abs(f.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.Zh(this.WV),
- this.xua(q)
- }
- },
- OX: function() {
- this.fn && this.Zh(this.OX)
- },
- Mva: function() {
- this.Zh(this.OX)
- },
- m9: function(c) {
- if (this.jF) {
- this.uY = t;
- var d = this.VW(),
- f = C.view,
- g = this.ia,
- h = this.pa;
- c = c || C.t;
- if (C.L === C.cb) d = this.On.width * g * f.ia,
- f = this.On.height * h * f.pa,
- c.beginPath(),
- c.rect(0, 0, d, -f),
- c.clip(),
- c.closePath();
- else if (f = C.view, f.ADa()) {
- if (this.uY = q, this.mG = f.JBa(), C.fGa(d, this.mG)) {
- var k = this.mG;
- c = Math.max(d.x, k.x);
- h = Math.max(d.y, k.y);
- g = Math.min(d.x + d.width, k.x + k.width);
- d = Math.min(d.y + d.height, k.y + k.height);
- f.LR(c, h, g - c, d - h)
- }
- } else c.enable(c.SCISSOR_TEST),
- f.LR(d.x, d.y, d.width, d.height)
- }
- },
- c9: function(c) {
- this.jF && C.L === C.la && (this.uY ? (c = this.mG, C.view.LR(c.x, c.y, c.width, c.height)) : (c = c || C.t, c.disable(c.SCISSOR_TEST)))
- },
- QOa: u(),
- VW: function() {
- for (var c = this.vm(C.d(0, 0)), d = this.On, f = this.ia, g = this.pa, h = this.Vb; h != s; h = h.getParent()) f *= h.ia,
- g *= h.pa;
- 0 > f && (c.x += d.width * f, f = -f);
- 0 > g && (c.y += d.height * g, g = -g);
- h = this.Sba;
- h.x = c.x;
- h.y = c.y;
- h.width = d.width * f;
- h.height = d.height * g;
- return h
- }
- });
- H = C.Ml.prototype;
- C.e(H, "minOffset", H.bs);
- C.e(H, "maxOffset", H.Fu);
- C.e(H, "bounceable", H.mDa, H.mha);
- C.e(H, "viewSize", H.rCa, H.VR);
- C.e(H, "container", H.kAa, H.uha);
- C.e(H, "direction", H.$B, H.sh);
- C.e(H, "delegate", H.ZB, H.bq);
- C.e(H, "clippingToBounds", H.pDa, H.sha);
- H = s;
- C.Ml.create = function(c, d) {
- var f = new C.Ml;
- if (2 == arguments.length) {
- if (f && f.kI(c, d)) return f
- } else if (f && f.j()) return f;
- return s
- };
- C.Joa = C.O.extend({
- jJ: u(),
- Dm: B(0)
- });
- C.Koa = C.Joa.extend({
- EX: 0,
- ctor: function() {
- this.EX = 0
- },
- jJ: x("EX"),
- Dm: A("EX")
- });
- function Sa(c, d) {
- return c.Dm() - d.Dm()
- }
- C.lS = C.O.extend({
- En: s,
- ctor: function() {
- this.En = []
- },
- efa: function(c) {
- c || e("cc.ArrayForObjectSorting.insertSortedObject(): addObject should be non-null.");
- this.gDa(c, this.iC(c))
- },
- zGa: function(c) {
- if (0 != this.count()) {
- var d = this.iC(c);
- d < this.count() && d != C.zo && this.Ux(d).Dm() == c.Dm() && this.p2(d)
- }
- },
- E4a: function(c, d) {
- var f = this.iC(d);
- if (f < this.count() && f != C.zo) {
- var g = this.Ux(f);
- g.Dm() == d.Dm() && (this.p2(f), g.jJ(c), this.efa(g))
- }
- },
- Yfa: function(c) {
- if (0 == this.count()) return s;
- var d = new C.Koa;
- d.jJ(c);
- var f = this.iC(d);
- f < this.count() && f != C.zo && (d = this.Ux(f), d.Dm() != c && (d = s));
- return d
- },
- zVa: B(s),
- iC: function(c) {
- var d = 0;
- if (c) {
- var f = 0;
- c = c.Dm();
- for (var g = this.En,
- h = 0; h < g.length; h++) {
- var k = g[h].Dm();
- if (c == k || c >= f && c < k) break;
- f = k;
- d++
- }
- } else d = C.zo;
- return d
- },
- count: function() {
- return this.En.length
- },
- T_a: function() {
- var c = this.En;
- return 0 == c.length ? s: c[c.length - 1]
- },
- Ux: function(c) {
- return this.En[c]
- },
- wca: function(c) {
- this.En.push(c);
- this.En.sort(Sa)
- },
- p2: function(c) {
- this.En.splice(c, 1);
- this.En.sort(Sa)
- },
- gDa: function(c, d) {
- this.En.splice(d, 0, c);
- this.En.sort(Sa)
- }
- });
- C.M7 = 0;
- C.ppa = 1;
- C.zpa = C.A.extend({
- Yq: 0,
- qa: "TableViewCell",
- PUa: A("Yq"),
- xHa: x("Yq"),
- reset: function() {
- this.Yq = C.zo
- },
- jJ: x("Yq"),
- Dm: A("Yq")
- });
- H = C.zpa.prototype;
- C.e(H, "objectId", H.Dm, H.jJ);
- H = s;
- C.ANa = C.Foa.extend({
- i6a: u(),
- h6a: u(),
- j6a: u(),
- k6a: u()
- });
- C.zNa = C.O.extend({
- bJa: function(c) {
- return this.Axa(c)
- },
- Axa: function() {
- return C.size(0, 0)
- },
- g6a: B(s),
- x0a: B(0)
- });
- C.xU = C.Ml.extend({
- sB: s,
- Qb: s,
- Cz: s,
- VV: s,
- jZ: s,
- sN: s,
- HL: s,
- Er: s,
- ctor: function() {
- C.Ml.prototype.ctor.call(this);
- this.sN = C.B7;
- this.HL = []
- },
- Dqa: function(c) {
- var d = 0,
- f = -1;
- switch (this.$B()) {
- case C.bz:
- c = c.x;
- break;
- default:
- c = c.y
- }
- for (var g = this.HL; f >= d;) {
- var h = 0 | d + (f - d) / 2,
- k = g[h],
- n = g[h + 1];
- if (c >= k && c <= n) return h;
- c < k ? f = h - 1 : d = h + 1
- }
- return 0 >= d ? 0 : -1
- },
- Zsa: function(c) {
- c = {
- x: c.x,
- y: c.y
- };
- this.sB === C.M7 && (c.y = this.Ta.i().height - c.y);
- c = this.Dqa(c); - 1 != c && (c = Math.max(0, c), -1 < c && (c = C.zo));
- return c
- },
- Eqa: function(c) {
- switch (this.$B()) {
- case C.bz:
- c = C.d(this.HL[c], 0);
- break;
- default:
- c = C.d(0, this.HL[c])
- }
- return c
- },
- Kta: function(c) {
- var d = this.Eqa(c);
- c = this.VV.bJa(this, c);
- this.sB === C.M7 && (d.y = this.Ta.i().height - d.y - c.height);
- return d
- },
- JPa: u(),
- sZ: function() {
- var c = C.size(0, 0);
- this.Ca(c);
- this.sN != this.Kh && (this.Kh == C.bz ? this.SC(C.d(0, 0)) : this.SC(C.d(0, this.bs().y)), this.sN = this.Kh)
- },
- Caa: function(c) {
- this.Cz.wca(c);
- this.bt.zGa(c);
- C.Id(this.Qb, c.Yq);
- c.reset();
- c.getParent() == this.Ta && this.Ta.removeChild(c, q)
- },
- YN: function(c, d) {
- d.S(0, 0);
- d.p(this.Kta(c));
- d.xHa(c)
- },
- Y8: function(c) {
- c.getParent() != this.Ta && this.Ta.q(c);
- this.bt.efa(c);
- var d = this.Qb;
- c = c.Yq; - 1 == d.indexOf(c) && (d.push(c), d.sort(function(c, d) {
- return c - d
- }))
- },
- pAa: A("VV"),
- vha: x("VV"),
- ZB: A("jZ"),
- bq: x("jZ"),
- zIa: function(c) {
- this.sB != c && (this.sB = c, 0 < this.bt.count() && this.mGa())
- },
- qCa: A("sB"),
- kI: function(c, d) {
- return C.Ml.prototype.kI.call(this, c, d) ? (this.bt = new C.lS, this.Cz = new C.lS, this.Qb = [], this.jZ = s, this.sB = C.ppa, this.sh(C.IK), C.Ml.prototype.bq.call(this, this), q) : t
- },
- F6a: function(c) {
- if (! (c == C.zo || -1 < c)) {
- var d = this.r_(c);
- d && this.Caa(d);
- d = s;
- this.YN(c, d);
- this.Y8(d)
- }
- },
- SXa: function(c) {
- if (! (c == C.zo || -1 < c)) {
- var d, f = this.bt;
- if (d = f.Yfa(c)) for (var g = d = f.iC(d); g < f.count(); g++) d = f.Ux(g),
- this.YN(d.Yq + 1, d);
- d = s;
- this.YN(c, d);
- this.Y8(d);
- this.sZ()
- }
- },
- d2a: function(c) {
- if (! (c == C.zo || -1 < c)) {
- var d = this.r_(c);
- if (d) {
- var f = this.bt,
- g = f.iC(d);
- this.Caa(d);
- C.Id(this.Qb, c);
- for (c = f.count() - 1; c > g; c--) d = f.Ux(c),
- this.YN(d.Yq - 1, d)
- }
- }
- },
- mGa: function() {
- this.sN = C.B7;
- for (var c = this.bt,
- d = this.Cz,
- f = this.Ta,
- g = 0,
- h = c.count(); g < h; g++) {
- var k = c.Ux(g);
- d.wca(k);
- k.reset();
- k.getParent() == f && f.removeChild(k, q)
- }
- this.Qb = [];
- this.bt = new C.lS;
- this.sZ()
- },
- uRa: function() {
- if (0 === this.Cz.count()) return s;
- var c = this.Cz.Ux(0);
- this.Cz.p2(0);
- return c
- },
- r_: function(c) {
- return - 1 == this.Qb.indexOf(c) ? s: this.bt.Yfa(c)
- },
- MGa: u(),
- NGa: u(),
- cd: function(c, d) {
- if (this.Ja) {
- if (this.Er) {
- var f = this.Ae(),
- g = C.d(f.x, f.y),
- g = this.Vb.vm(g);
- f.x = g.x;
- f.y = g.y;
- this.Er = s
- }
- C.Ml.prototype.cd.call(this, c, d)
- }
- },
- nc: function(c, d) {
- if (!this.Ja) return t;
- var f = C.Ml.prototype.nc.call(this, c, d);
- if (1 === this.Kf.length) {
- var g;
- g = this.Ta.Bp(c);
- g = this.Zsa(g);
- this.Er = g === C.zo ? s: this.r_(g)
- } else this.Er && (this.Er = s);
- return f
- },
- yd: function(c, d) {
- C.Ml.prototype.yd.call(this, c, d);
- this.Er && this.sm && (this.Er = s)
- },
- Xe: function(c, d) {
- C.Ml.prototype.Xe.call(this, c, d);
- this.Er && (this.Er = s)
- }
- });
- H = C.xU.prototype;
- C.e(H, "dataSource", H.pAa, H.vha);
- C.e(H, "delegate", H.ZB, H.bq);
- C.e(H, "verticalFillOrder", H.qCa, H.zIa);
- H = s;
- C.xU.create = function(c, d, f) {
- var g = new C.xU;
- g.kI(d, f);
- g.vha(c);
- g.sZ();
- return g
- };
- var Ta = "contentSize",
- Ua = "scale";
- function Va(c) {
- C.log("Unexpected property: '" + c + "'!")
- }
- function Wa(c, d) {
- this.QGa = c;
- this.target = d
- }
- function Xa(c, d, f) {
- this.PGa = c;
- this.target = d;
- this.Qxa = f
- }
- C.Ea = C.O.extend({
- Nz: s,
- ctor: function() {
- this.Nz = new C.Ev
- },
- lEa: function(c, d) {
- return this.ji(c, d)
- },
- zFa: function(c, d, f) {
- for (var g = f.zc(t), h = f.zc(t), h = g + h, k = 0; k < h; k++) {
- var n = k >= g,
- p = f.zc(t),
- r = f.wf(),
- v = t,
- y = f.$();
- if (y === Ya || y === Za || y === $a) v = q;
- c instanceof C.zD ? c.fF && n && (c = c.fF, v = -1 != c.userObject.indexOf(r)) : n && c == f.Mc.hm && (n = c.userObject, n || (n = [], c.userObject = n), n.push(r));
- switch (p) {
- case ab:
- p = this.sFa(c, d, f, r);
- v && this.HEa(c, d, r, p, f);
- break;
- case eb:
- p = this.qFa(c, d, f);
- v && this.Xx(c, d, r, p, f);
- break;
- case ib:
- p = this.rFa(c, d, f);
- v && this.GEa(c, d, r, p, f);
- break;
- case jb:
- p = this.uFa(c, d, f);
- v && this.es(c, d, r, p, f);
- break;
- case kb:
- p = this.tFa(c, d, f, r);
- v && this.IEa(c, d, r, p, f);
- break;
- case lb:
- p = this.lFa(c, d, f);
- v && this.FEa(c, d, r, p, f);
- break;
- case pb:
- p = this.iFa(c, d, f);
- v && this.Vx(c, d, r, p, f);
- break;
- case qb:
- p = this.gFa(c, d, f, r);
- v && this.EEa(c, d, r, p, f);
- break;
- case rb:
- p = this.jFa(c, d, f);
- v && this.EI(c, d, r, p, f);
- break;
- case sb:
- p = this.oFa(c, d, f);
- v && this.M1(c, d, r, p, f);
- break;
- case tb:
- p = this.pFa(c, d, f);
- v && this.Wx(c, d, r, p, f);
- break;
- case xb:
- p = this.kFa(c, d, f);
- v && this.K1(c, d, r, p, f);
- break;
- case yb:
- p = this.dFa(c, d, f, r);
- v && this.fo(c, d, r, p, f);
- break;
- case zb:
- p = this.vFa(c, d, f, r);
- v && this.fs(c, d, r, p, f);
- break;
- case Hb:
- p = this.YEa(c, d, f);
- v && this.DEa(c, d, r, p, f);
- break;
- case Ib:
- p = this.yFa(c, d, f);
- v && this.O1(c, d, r, p, f);
- break;
- case Jb:
- p = this.bFa(c, d, f, r);
- v && this.rl(c, d, r, p, f);
- break;
- case Kb:
- p = this.eFa(c, d, f, r);
- v && this.sj(c, d, r, p, f);
- break;
- case Lb:
- p = this.fFa(c, d, f);
- v && this.I1(c, d, r, p, f);
- break;
- case Mb:
- p = this.hFa(c, d, f);
- v && this.J1(c, d, r, p, f);
- break;
- case Nb:
- p = this.ZEa(c, d, f);
- v && this.rj(c, d, r, p, f);
- break;
- case Ob:
- p = f.Sl + this.mFa(c, d, f);
- v && this.L1(c, d, r, p, f);
- break;
- case Wb:
- p = this.nFa(c, d, f);
- v && this.FI(c, d, r, p, f);
- break;
- case Xb:
- p = this.wFa(c, d, f);
- v && this.N1(c, d, r, p, f);
- break;
- case Yb:
- p = this.xFa(c, d, f);
- v && this.GI(c, d, r, p, f);
- break;
- case Zb:
- p = this.$Ea(c, d, f);
- v && this.G1(c, d, r, p, f);
- break;
- case $b:
- p = this.aFa(c, d, f);
- v && p != s && this.H1(c, d, r, p, f);
- break;
- case ac:
- p = this.cFa(c, d, f);
- v && this.DI(c, d, r, p, f);
- break;
- default:
- C.log("Unexpected property type: '" + p + "'!")
- }
- }
- },
- WTa: A("Nz"),
- ji: function() {
- return C.A.create()
- },
- sFa: function(c, d, f, g) {
- var h = f.Yb(),
- k = f.Yb(),
- n = f.zc(t);
- d = f.Mc.AP(d);
- var p = C.FW(h, k, n, d);
- c.p(C.Vza(p, n, d)); - 1 < f.dn.indexOf(g) && f.Mc.iy([h, k, n], c, g);
- return p
- },
- qFa: function(c, d, f) {
- c = f.Yb();
- f = f.Yb();
- return C.d(c, f)
- },
- rFa: function(c, d, f) {
- c = f.Yb();
- f = f.Yb();
- return C.d(c, f)
- },
- uFa: function(c, d, f) {
- c = f.Yb();
- var g = f.Yb(),
- h = f.zc(t);
- d = f.Mc.AP(d);
- switch (h) {
- case bc:
- break;
- case ic:
- c = d.width - c;
- g = d.height - g;
- break;
- case jc:
- c = d.width * c / 100;
- g = d.height * g / 100;
- break;
- case kc:
- c = d.width * c / 100;
- break;
- case lc:
- g = d.height * g / 100;
- break;
- case mc:
- d = C.Jb.yu();
- c *= d;
- g *= d;
- break;
- default:
- C.log("Unknown CCB type.")
- }
- return C.size(c, g)
- },
- tFa: function(c, d, f, g) {
- d = f.Yb();
- var h = f.Yb(),
- k = f.zc(t);
- C.kia(c, d, h, k); - 1 < f.dn.indexOf(g) && f.Mc.iy([d, h, k], c, g);
- k == nc && (d *= C.Jb.yu(), h *= C.Jb.yu());
- return [d, h]
- },
- iFa: function(c, d, f) {
- return f.Yb()
- },
- gFa: function(c, d, f, g) {
- d = f.Yb(); - 1 < f.dn.indexOf(g) && f.Mc.iy(d, c, g);
- return d
- },
- jFa: function(c, d, f) {
- c = f.Yb();
- f.zc(t) == nc && (c *= C.Jb.yu());
- return c
- },
- oFa: function(c, d, f) {
- return f.zc(q)
- },
- pFa: function(c, d, f) {
- return f.zc(q)
- },
- kFa: function(c, d, f) {
- c = f.Yb();
- f = f.Yb();
- return [c, f]
- },
- dFa: function(c, d, f, g) {
- d = f.VI(); - 1 < f.dn.indexOf(g) && f.Mc.iy(d, c, g);
- return d
- },
- vFa: function(c, d, f, g) {
- d = f.wf();
- var h = f.wf(),
- k;
- h != s && 0 != h.length && (0 == d.length ? (h = f.Sl + h, d = C.kb.sd(h), h = d.i(), h = C.rect(0, 0, h.width, h.height), k = C.di.create(d, h)) : (k = C.Fe, d = f.Sl + d, -1 == f.Ft.indexOf(d) && (k.Lr(d), f.Ft.push(d)), k = k.nh(h)), -1 < f.dn.indexOf(g) && f.Mc.iy(k, c, g));
- return k
- },
- YEa: function(c, d, f) {
- c = f.Sl + f.wf();
- f = f.wf();
- d = s;
- f = C.Jb.Efa(f);
- c = C.Jb.Efa(c);
- f != s && "" != f && (d = C.oH, d.nwa(c), d = d.ll(f));
- return d
- },
- yFa: function(c, d, f) {
- c = f.Sl + f.wf();
- return "" != c ? C.kb.sd(c) : s
- },
- bFa: function(c, d, f, g) {
- d = f.$(); - 1 < f.dn.indexOf(g) && f.Mc.iy(d, c, g);
- return d
- },
- eFa: function(c, d, f, g) {
- d = f.$();
- var h = f.$(),
- k = f.$();
- d = {
- r: d,
- g: h,
- b: k
- }; - 1 < f.dn.indexOf(g) && f.Mc.iy(C.aK.create(d), c, g);
- return d
- },
- fFa: function(c, d, f) {
- c = 0 | 255 * f.Yb();
- d = 0 | 255 * f.Yb();
- var g = 0 | 255 * f.Yb(),
- h = f.Yb(),
- h = 1 >= h ? 0 | 255 * h: h,
- k = 0 | 255 * f.Yb(),
- n = 0 | 255 * f.Yb(),
- p = 0 | 255 * f.Yb();
- f = f.Yb();
- var r = [];
- r[0] = {
- r: c,
- g: d,
- b: g,
- a: h
- };
- r[1] = {
- r: k,
- g: n,
- b: p,
- a: 1 >= f ? 0 | 255 * f: f
- };
- return r
- },
- hFa: function(c, d, f) {
- c = f.VI();
- f = f.VI();
- return [c, f]
- },
- ZEa: function(c, d, f) {
- c = f.zc(t);
- f = f.zc(t);
- return new C.Vm(c, f)
- },
- mFa: function(c, d, f) {
- return f.wf()
- },
- wFa: function(c, d, f) {
- return f.wf()
- },
- xFa: function(c, d, f) {
- return f.wf()
- },
- nFa: function(c, d, f) {
- return f.wf()
- },
- $Ea: function(c, d, f) {
- d = f.wf();
- var g = f.zc(t);
- if (g !== oc) {
- var h = s;
- if (f.qn) g === pc ? (f.PO(c), f.OO(d), f.NO(0)) : (f.zca(c), f.yca(d), f.xca(0));
- else if (g === pc ? h = f.Mc.hm: g === qc && (h = f.Rd), h != s) if (0 < d.length) if (c = 0, h != s && h.NEa && (c = m), 0 == c && f.Bz != s && (c = m), 0 == c) C.log("Skipping selector '" + d + "' since no CCBSelectorResolver is present.");
- else return new Wa(c, h);
- else C.log("Unexpected empty selector.");
- else C.log("Unexpected NULL target for selector.")
- }
- return s
- },
- aFa: function(c, d, f) {
- d = f.wf();
- var g = f.zc(t),
- h = f.zc(t);
- if (g !== oc) if (f.qn) g == pc ? (f.PO(c), f.OO(d), f.NO(h)) : (f.zca(c), f.yca(d), f.xca(h));
- else if (c = s, g == pc ? c = f.Mc.hm: g == qc && (c = f.Rd), c != s) if (0 < d.length) if (g = 0, c != s && c.MEa && (g = m), 0 == g && f.Bz != s && (g = m), 0 == g) C.log("Skipping selector '" + d + "' since no CCBSelectorResolver is present.");
- else return new Xa(g, c, h);
- else C.log("Unexpected empty selector.");
- else C.log("Unexpected NULL target for selector.");
- return s
- },
- cFa: function(c, d, f) {
- var g = f.Sl + f.wf(),
- g = C.Jb.zya(g) + ".ccbi";
- c = new C.Jb(f);
- var h = C.M.xd(g);
- h || (h = C.M.K0(g), h = C.M.Ifa(h), C.M.fj[g] = h);
- c.Au(h, f.Rd);
- c.Mc.f3(d.i());
- c.iha(f.Iv);
- c.Mc.VC(f.Rd);
- d = c.Aga(t);
- f.iha(c.Iv);
- d && -1 != c.Mc.nz && c.Mc.v2(c.Mc.nz, 0);
- return d
- },
- lFa: function(c, d, f) {
- c = f.Yb();
- f = f.Yb();
- return [c, f]
- },
- HEa: function(c, d, f, g) {
- "position" === f ? c.p(g) : Va(f)
- },
- Xx: function(c, d, f, g) {
- "anchorPoint" === f ? c.S(g) : Va(f)
- },
- GEa: function(c, d, f) {
- Va(f)
- },
- es: function(c, d, f, g) {
- f === Ta ? c.Ca(g) : Va(f)
- },
- IEa: function(c, d, f, g) {
- f === Ua ? (c.gb(g[0]), c.pb(g[1])) : Va(f)
- },
- FEa: function(c, d, f, g) {
- if ("skew" === f) c.nJ(g[0]),
- c.oJ(g[1]);
- else {
- d = f + "X";
- var h = f + "Y"; (!c[d] || !c[h]) && Va(f);
- c[d](g[0]);
- c[h](g[1])
- }
- },
- Vx: function(c, d, f, g) {
- this.Nz.vl(g, f)
- },
- EEa: function(c, d, f, g) {
- "rotation" === f ? c.th(g) : Va(f)
- },
- EI: function(c, d, f) {
- Va(f)
- },
- M1: function(c, d, f, g) {
- "tag" === f ? c.Qm(g) : Va(f)
- },
- Wx: function(c, d, f) {
- Va(f)
- },
- K1: function(c, d, f) {
- Va(f)
- },
- fo: function(c, d, f, g) {
- "visible" === f ? c.va(g) : "ignoreAnchorPointForPosition" === f ? c.Hm(g) : Va(f)
- },
- fs: function(c, d, f) {
- Va(f)
- },
- DEa: function(c, d, f) {
- Va(f)
- },
- O1: function(c, d, f) {
- Va(f)
- },
- rl: function(c, d, f) {
- Va(f)
- },
- sj: function(c, d, f) {
- Va(f)
- },
- I1: function(c, d, f) {
- Va(f)
- },
- J1: function(c, d, f) {
- Va(f)
- },
- rj: function(c, d, f) {
- Va(f)
- },
- L1: function(c, d, f) {
- Va(f)
- },
- N1: function(c, d, f, g) {
- this.Nz.vl(g, f)
- },
- GI: function(c, d, f) {
- Va(f)
- },
- FI: function(c, d, f) {
- Va(f)
- },
- G1: function(c, d, f) {
- Va(f)
- },
- H1: function(c, d, f) {
- Va(f)
- },
- DI: function(c, d, f) {
- Va(f)
- }
- });
- C.Ea.M = function() {
- return new C.Ea
- };
- C.CMa = C.O.extend({
- C0a: u()
- });
- C.bLa = C.O.extend({
- NEa: u(),
- LEa: u(),
- MEa: u()
- });
- C.aLa = C.O.extend({
- lRa: u()
- });
- C.$Ka = C.O.extend({
- A0a: B(t),
- xEa: B(t)
- });
- C.wS = C.Ea.extend({
- ji: function() {
- return C.zD.create()
- },
- DI: function(c, d, f, g, h) {
- "ccbFile" == f ? c.nha(g) : C.Ea.prototype.DI.call(this, c, d, f, g, h)
- }
- });
- C.wS.M = function() {
- return new C.wS
- };
- C.iq = C.Ea.extend({
- ji: u(),
- H1: function(c, d, f, g, h) {
- "ccControl" == f ? c.nH(g.target, g.PGa, g.Qxa) : C.Ea.prototype.H1.call(this, c, d, f, g, h)
- },
- fo: function(c, d, f, g, h) {
- "enabled" == f ? c.Ib(g) : "selected" == f ? c.Wu(g) : C.Ea.prototype.fo.call(this, c, d, f, g, h)
- }
- });
- C.NS = C.iq.extend({
- ji: function() {
- return C.Ym.create()
- },
- fo: function(c, d, f, g, h) {
- "zoomOnTouchDown" == f ? c.Bia(g) : C.iq.prototype.fo.call(this, c, d, f, g, h)
- },
- N1: function(c, d, f, g, h) {
- "title|1" == f ? c.RR(g, C.Rg) : "title|2" == f ? c.RR(g, C.jv) : "title|3" == f ? c.RR(g, C.iv) : C.iq.prototype.N1.call(this, c, d, f, g, h)
- },
- FI: function(c, d, f, g, h) {
- "titleTTF|1" == f ? c.s3(g, C.Rg) : "titleTTF|2" == f ? c.s3(g, C.jv) : "titleTTF|3" == f ? c.s3(g, C.iv) : C.iq.prototype.FI.call(this, c, d, f, g, h)
- },
- EI: function(c, d, f, g, h) {
- "titleTTFSize|1" == f ? c.t3(g, C.Rg) : "titleTTFSize|2" == f ? c.t3(g, C.jv) : "titleTTFSize|4" == f ? c.t3(g, C.iv) : C.iq.prototype.EI.call(this, c, d, f, g, h)
- },
- Xx: function(c, d, f, g, h) {
- "labelAnchorPoint" == f ? c.U2(g) : C.iq.prototype.Xx.call(this, c, d, f, g, h)
- },
- es: function(c, d, f, g, h) {
- "preferedSize" == f ? c.De(g) : C.iq.prototype.es.call(this, c, d, f, g, h)
- },
- fs: function(c, d, f, g, h) {
- "backgroundSpriteFrame|1" == f ? g != s && c.D2(g, C.Rg) : "backgroundSpriteFrame|2" == f ? g != s && c.D2(g, C.jv) : "backgroundSpriteFrame|3" == f ? g != s && c.D2(g, C.iv) : C.iq.prototype.fs.call(this, c, d, f, g, h)
- },
- sj: function(c, d, f, g, h) {
- "titleColor|1" == f ? c.QR(g, C.Rg) : "titleColor|2" == f ? c.QR(g, C.jv) : "titleColor|3" == f ? c.QR(g, C.iv) : C.iq.prototype.sj.call(this, c, d, f, g, h)
- }
- });
- C.NS.M = function() {
- return new C.NS
- };
- Ua = "scale";
- C.dU = C.Ea.extend({
- ji: function() {
- return C.Ml.create()
- },
- es: function(c, d, f, g, h) {
- f == Ta ? c.VR(g) : C.Ea.prototype.es.call(this, c, d, f, g, h)
- },
- DI: function(c, d, f, g, h) {
- "container" == f ? (c.uha(g), c.eS()) : C.Ea.prototype.DI.call(this, c, d, f, g, h)
- },
- fo: function(c, d, f, g, h) {
- "clipsToBounds" == f ? c.sha(g) : "bounces" == f ? c.mha(g) : C.Ea.prototype.fo.call(this, c, d, f, g, h)
- },
- Vx: function(c, d, f, g, h) {
- f == Ua ? c.Za(g) : C.Ea.prototype.Vx.call(this, c, d, f, g, h)
- },
- Wx: function(c, d, f, g, h) {
- "direction" == f ? c.sh(g) : C.Ea.prototype.Wx.call(this, c, d, f, g, h)
- }
- });
- C.dU.M = function() {
- return new C.dU
- };
- var Ta = "contentSize",
- rc = "color",
- sc = "opacity",
- tc = "blendFunc";
- C.cU = C.Ea.extend({
- ji: function() {
- var c = C.Sa.create();
- c.S(0, 0);
- return c
- },
- sj: function(c, d, f, g, h) {
- f == rc ? (255 !== g.r || 255 !== g.g || 255 !== g.b) && c.G(g) : C.Ea.prototype.sj.call(this, c, d, f, g, h)
- },
- rl: function(c, d, f, g, h) {
- f == sc ? c.K(g) : C.Ea.prototype.rl.call(this, c, d, f, g, h)
- },
- rj: function(c, d, f, g, h) {
- f != tc && C.Ea.prototype.rj.call(this, c, d, f, g, h)
- },
- fs: function(c, d, f, g, h) {
- "spriteFrame" == f ? c.pc(g) : C.Ea.prototype.fs.call(this, c, d, f, g, h)
- },
- es: function(c, d, f, g, h) {
- f != Ta && ("preferedSize" == f ? c.De(g) : C.Ea.prototype.es.call(this, c, d, f, g, h))
- },
- Vx: function(c, d, f, g, h) {
- "insetLeft" == f ? c.Jha(g) : "insetTop" == f ? c.Lha(g) : "insetRight" == f ? c.Kha(g) : "insetBottom" == f ? c.Iha(g) : C.Ea.prototype.Vx.call(this, c, d, f, g, h)
- }
- });
- C.cU.M = function() {
- return new C.cU
- };
- rc = "color";
- sc = "opacity";
- tc = "blendFunc";
- C.hU = C.Ea.extend({
- ji: function() {
- return C.u.create()
- },
- sj: function(c, d, f, g, h) {
- f === rc ? (255 !== g.r || 255 !== g.g || 255 !== g.b) && c.G(g) : C.Ea.prototype.sj.call(this, c, d, f, g, h)
- },
- rl: function(c, d, f, g, h) {
- f === sc ? c.K(g) : C.Ea.prototype.rl.call(this, c, d, f, g, h)
- },
- rj: function(c, d, f, g, h) {
- f === tc ? c.Yd(g) : C.Ea.prototype.rj.call(this, c, d, f, g, h)
- },
- fs: function(c, d, f, g, h) {
- "displayFrame" === f ? g ? c.pc(g) : C.log("ERROR: SpriteFrame is null") : C.Ea.prototype.fs.call(this, c, d, f, g, h)
- },
- J1: function(c, d, f, g, h) {
- "flip" === f ? (c.Nd(g[0]), c.Uf(g[1])) : C.Ea.prototype.J1.call(this, c, d, f, g, h)
- }
- });
- C.hU.M = function() {
- return new C.hU
- };
- C.Ck = C.Ea.extend({
- ji: function() {
- var c = C.qe.create();
- c.Ca(0, 0);
- return c
- },
- fo: function(c, d, f, g, h) {
- "touchEnabled" === f || "isTouchEnabled" === f || "accelerometerEnabled" === f || "isAccelerometerEnabled" === f || "mouseEnabled" === f || "isMouseEnabled" === f || ("keyboardEnabled" === f || "isKeyboardEnabled" === f ? c.CHa && !C.Sc.wDa ? c.CHa(g) : C.log("The property 'isKeyboardEnabled' is not supported!") : C.Ea.prototype.fo.call(this, c, d, f, g, h))
- }
- });
- C.Ck.M = function() {
- return new C.Ck
- };
- C.rT = C.Ck.extend({
- ji: function() {
- return C.gd.create()
- },
- sj: function(c, d, f, g, h) {
- f === rc ? c.G(g) : C.Ck.prototype.sj.call(this, c, d, f, g, h)
- },
- rl: function(c, d, f, g, h) {
- f === sc ? c.K(g) : C.Ck.prototype.rl.call(this, c, d, f, g, h)
- },
- rj: function(c, d, f, g, h) {
- f === tc ? c.Yd(g) : C.Ck.prototype.rj.call(this, c, d, f, g, h)
- }
- });
- C.rT.M = function() {
- return new C.rT
- };
- C.tT = C.Ck.extend({
- ji: function() {
- return C.pq.create()
- },
- sj: function(c, d, f, g, h) {
- "startColor" === f ? c.tg(g) : "endColor" == f ? c.sg(g) : C.Ck.prototype.sj.call(this, c, d, f, g, h)
- },
- rl: function(c, d, f, g, h) {
- "startOpacity" === f ? c.tia(g) : "endOpacity" === f ? c.Aha(g) : C.Ck.prototype.rl.call(this, c, d, f, g, h)
- },
- Xx: function(c, d, f, g, h) {
- "vector" === f ? c.UR(g) : C.Ck.prototype.Xx.call(this, c, d, f, g, h)
- },
- rj: function(c, d, f, g, h) {
- f === tc ? c.Yd(g) : C.Ck.prototype.rj.call(this, c, d, f, g, h)
- }
- });
- C.tT.M = function() {
- return new C.tT
- };
- C.zT = C.Ck.extend({
- ji: function() {
- var c = C.Yy.create();
- c.Ca(0, 0);
- return c
- }
- });
- C.zT.M = function() {
- return new C.zT
- };
- C.F6 = C.Ea.extend({
- ji: B(s),
- G1: function(c, d, f, g, h) {
- "block" === f ? s != g && c.pJ(g.QGa, g.target) : C.Ea.prototype.G1.call(this, c, d, f, g, h)
- },
- fo: function(c, d, f, g, h) {
- "isEnabled" === f ? c.Ib(g) : C.Ea.prototype.fo.call(this, c, d, f, g, h)
- }
- });
- C.xT = C.F6.extend({
- ji: function() {
- return C.wT.create()
- },
- fs: function(c, d, f, g, h) {
- "normalSpriteFrame" === f ? g != s && c.PHa(g) : "selectedSpriteFrame" === f ? g != s && c.jIa(g) : "disabledSpriteFrame" === f ? g != s && c.oHa(g) : C.F6.prototype.fs.call(this, c, d, f, g, h)
- }
- });
- C.xT.M = function() {
- return new C.xT
- };
- C.qT = C.Ea.extend({
- ji: function() {
- return C.fa.create()
- },
- sj: function(c, d, f, g, h) {
- f === rc ? (255 !== g.r || 255 !== g.g || 255 !== g.b) && c.G(g) : C.Ea.prototype.sj.call(this, c, d, f, g, h)
- },
- rl: function(c, d, f, g, h) {
- f === sc ? c.K(g) : C.Ea.prototype.rl.call(this, c, d, f, g, h)
- },
- rj: function(c, d, f, g, h) {
- f === tc ? c.Yd(g) : C.Ea.prototype.rj.call(this, c, d, f, g, h)
- },
- FI: function(c, d, f, g, h) {
- "fontName" === f ? c.Zd(g) : C.Ea.prototype.FI.call(this, c, d, f, g, h)
- },
- GI: function(c, d, f, g, h) {
- "string" === f ? c.sa(g) : C.Ea.prototype.GI.call(this, c, d, f, g, h)
- },
- EI: function(c, d, f, g, h) {
- "fontSize" === f ? c.Od(g) : C.Ea.prototype.EI.call(this, c, d, f, g, h)
- },
- Wx: function(c, d, f, g, h) {
- "horizontalAlignment" === f ? c.S2(g) : "verticalAlignment" === f ? c.y3(g) : C.Ea.prototype.Wx.call(this, c, d, f, g, h)
- },
- es: function(c, d, f, g, h) {
- "dimensions" === f ? c.N2(g) : C.Ea.prototype.es.call(this, c, d, f, g, h)
- }
- });
- C.qT.M = function() {
- return new C.qT
- };
- C.pT = C.Ea.extend({
- ji: function() {
- return C.rv.create()
- },
- sj: function(c, d, f, g, h) {
- f === rc ? (255 !== g.r || 255 !== g.g || 255 !== g.b) && c.G(g) : C.Ea.prototype.sj.call(this, c, d, f, g, h)
- },
- rl: function(c, d, f, g, h) {
- f === sc ? c.K(g) : C.Ea.prototype.rl.call(this, c, d, f, g, h)
- },
- rj: function(c, d, f, g, h) {
- f === tc ? c.Yd(g) : C.Ea.prototype.rj.call(this, c, d, f, g, h)
- },
- L1: function(c, d, f, g, h) {
- "fntFile" === f ? c.UC(g) : C.Ea.prototype.L1.call(this, c, d, f, g, h)
- },
- GI: function(c, d, f, g, h) {
- "string" === f ? c.sa(g) : C.Ea.prototype.GI.call(this, c, d, f, g, h)
- }
- });
- C.pT.M = function() {
- return new C.pT
- };
- C.HT = C.Ea.extend({
- ji: function() {
- return C.B.create()
- },
- Wx: function(c, d, f, g, h) {
- "emitterMode" === f ? c.rk(g) : C.Ea.prototype.Wx.call(this, c, d, f, g, h)
- },
- Xx: function(c, d, f, g, h) {
- "posVar" === f ? c.vk(g) : "gravity" === f ? c.oc(g) : C.Ea.prototype.Xx.call(this, c, d, f, g, h)
- },
- Vx: function(c, d, f, g, h) {
- "emissionRate" === f ? c.qk(g) : "duration" === f ? c.Wh(g) : C.Ea.prototype.Vx.call(this, c, d, f, g, h)
- },
- M1: function(c, d, f, g, h) {
- "totalParticles" === f ? c.yia(g) : C.Ea.prototype.M1.call(this, c, d, f, g, h)
- },
- K1: function(c, d, f, g, h) {
- "life" === f ? (c.tk(g[0]), c.uk(g[1])) : "startSize" === f ? (c.wk(g[0]), c.xk(g[1])) : "endSize" === f ? (c.sk(g[0]), c.R2(g[1])) : "startSpin" === f ? (c.uia(g[0]), c.via(g[1])) : "endSpin" === f ? (c.Bha(g[0]), c.Cha(g[1])) : "angle" === f ? (c.ok(g[0]), c.pk(g[1])) : "speed" === f ? (c.Xh(g[0]), c.yj(g[1])) : "tangentialAccel" === f ? (c.no(g[0]), c.oo(g[1])) : "radialAccel" === f ? (c.wj(g[0]), c.xj(g[1])) : "startRadius" === f ? (c.n3(g[0]), c.o3(g[1])) : "endRadius" === f ? (c.P2(g[0]), c.Q2(g[1])) : "rotatePerSecond" === f ? (c.g3(g[0]), c.h3(g[1])) : C.Ea.prototype.K1.call(this, c, d, f, g, h)
- },
- I1: function(c, d, f, g, h) {
- "startColor" === f ? (c.tg(g[0]), c.zj(g[1])) : "endColor" === f ? (c.sg(g[0]), c.uj(g[1])) : C.Ea.prototype.I1.call(this, c, d, f, g, h)
- },
- rj: function(c, d, f, g, h) {
- f === tc ? c.Yd(g) : C.Ea.prototype.rj.call(this, c, d, f, g, h)
- },
- O1: function(c, d, f, g, h) {
- "texture" === f ? c.Va(g) : C.Ea.prototype.O1.call(this, c, d, f, g, h)
- }
- });
- C.HT.M = function() {
- return new C.HT
- };
- C.Dj = C.O.extend({
- Hq: s,
- ctor: function() {
- this.Hq = {}
- },
- Mga: function() {
- this.lk("CCNode", C.Ea.M());
- this.lk("CCLayer", C.Ck.M());
- this.lk("CCLayerColor", C.rT.M());
- this.lk("CCLayerGradient", C.tT.M());
- this.lk("CCSprite", C.hU.M());
- this.lk("CCLabelBMFont", C.pT.M());
- this.lk("CCLabelTTF", C.qT.M());
- this.lk("CCScale9Sprite", C.cU.M());
- this.lk("CCScrollView", C.dU.M());
- this.lk("CCBFile", C.wS.M());
- this.lk("CCMenu", C.zT.M());
- this.lk("CCMenuItemImage", C.xT.M());
- this.lk("CCControlButton", C.NS.M());
- this.lk("CCParticleSystemQuad", C.HT.M())
- },
- lk: function(c, d) {
- this.Hq[c] = d
- },
- B6a: function(c) {
- this.Hq[c] && delete this.Hq[c]
- },
- Mda: function(c) {
- return this.Hq[c] ? this.Hq[c] : s
- },
- r1a: function(c) {
- if (c) for (var d in this.Hq) delete this.Hq[d];
- this.Hq = {}
- }
- });
- C.Dj.ZI = s;
- C.Dj.jEa = function() {
- return new C.Dj
- };
- C.Dj.P5a = function() {
- C.Dj.ZI == s && (C.Dj.ZI = new C.Dj, C.Dj.ZI.Mga());
- return C.Dj.ZI
- };
- C.Dj.s1a = function() {
- C.Dj.ZI = s
- };
- C.Dj.tEa = function() {
- var c = C.Dj.jEa();
- c.Mga();
- return c
- };
- var ab = 0,
- jb = 1,
- eb = 2,
- ib = 3,
- kb = 4,
- qb = 5,
- sb = 6,
- pb = 7,
- xb = 8,
- yb = 9,
- zb = 10,
- Ib = 11,
- Jb = 12,
- Kb = 13,
- Lb = 14,
- Mb = 15,
- Nb = 16,
- Ob = 17,
- Yb = 18,
- Wb = 19,
- tb = 20,
- Zb = 21,
- Hb = 22,
- ac = 23,
- Xb = 24,
- $b = 25,
- rb = 26,
- lb = 27,
- Ya = 0,
- Za = 1,
- $a = 2,
- oc = 0,
- pc = 1,
- qc = 2,
- bc = 0,
- jc = 1,
- ic = 2,
- kc = 3,
- lc = 4,
- mc = 5,
- nc = 1;
- C.zD = C.A.extend({
- fF: s,
- mTa: A("fF"),
- nha: x("fF")
- });
- C.zD.create = function() {
- return new C.zD
- };
- C.Jb = C.O.extend({
- qn: t,
- Ih: s,
- Sl: "",
- bra: 0,
- Cg: 0,
- ht: 0,
- bZ: s,
- Ft: s,
- Rd: s,
- Mc: s,
- Iv: s,
- dn: s,
- eF: s,
- DV: s,
- GL: s,
- Bz: s,
- zw: s,
- Aw: s,
- BX: s,
- eV: s,
- HA: s,
- IA: s,
- GA: s,
- nPa: t,
- ctor: function(c, d, f, g) {
- this.bZ = [];
- this.Ft = [];
- this.Cg = this.ht = -1;
- 0 != arguments.length && (c instanceof C.Jb ? (this.Ft = c.Ft, this.eF = c.eF, this.GL = c.GL, this.Bz = c.Bz, this.DV = c.DV, this.HA = c.HA, this.IA = c.IA, this.GA = c.GA, this.zw = c.zw, this.Aw = c.Aw, this.Sl = c.Sl) : (this.eF = c, this.GL = d, this.Bz = f, this.DV = g))
- },
- oTa: A("Sl"),
- eHa: x("Sl"),
- Au: function(c, d) {
- this.Mc = new C.z4;
- this.Ih = c;
- this.bra = c.length;
- this.Cg = this.ht = 0;
- this.Rd = d;
- this.Mc.f3(C.Q.aa);
- return q
- },
- bPa: function(c) {
- var d = this.cI(),
- f = "load " + c + " failed!";
- d.open("GET", c, t);
- var g = s;
- if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
- d.setRequestHeader("Accept-Charset", "x-user-defined");
- d.send(s);
- if (200 != d.status) return C.log(f),
- s;
- if (d = C.RV(d.responseBody)) g = this.Nva(d),
- this.Vra[c] = g
- } else {
- d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dx-user-defined");
- d.send(s);
- if (200 != d.status) return C.log(f),
- s;
- g = this.Nva(d.responseText);
- this.Vra[c] = g
- }
- return g
- },
- Bga: function(c, d, f, g) {
- f == s ? f = C.Q.aa: f instanceof C.z4 && (g = f, f = C.Q.aa);
- var h = C.M.xd(c);
- h || (h = C.M.K0(c), h = C.M.Ifa(h), C.M.fj[c] = h);
- return this.bGa(h, d, f, g)
- },
- bGa: function(c, d, f) {
- this.Au(c, d);
- c = this.Mc;
- c.f3(f);
- c.VC(d);
- this.zw = [];
- this.Aw = [];
- this.HA = [];
- this.IA = [];
- this.GA = [];
- this.Iv = new C.Ev; (d = this.Aga(q)) && -1 != c.nz && c.v2(c.nz, 0);
- if (this.qn) {
- f = [];
- c = [];
- for (var g = this.Iv,
- h = g.vB(), k = 0; k < h.length; k++) f.push(h[k]),
- c.push(g.Km(h[k]));
- this.BX = f;
- this.eV = c
- }
- return d
- },
- nRa: function(c, d, f, g) {
- c = this.Bga(c, d, f, g);
- d = C.Ll.create();
- d.q(c);
- return d
- },
- nTa: A("GL"),
- pTa: A("Bz"),
- OSa: A("Mc"),
- p3a: x("Mc"),
- KSa: A("dn"),
- iVa: A("Ft"),
- iea: A("Rd"),
- zc: function(c) {
- for (var d = 0; ! this.O$();) d++;
- for (var f = 0,
- g = d - 1; 0 <= g; g--) this.O$() && (f |= 1 << g);
- f |= 1 << d;
- c = c ? f % 2 ? 0 | f / 2 : 0 | -f / 2 : f - 1;
- this.Mqa();
- return c
- },
- $: function() {
- var c = this.Ih[this.Cg];
- this.Cg++;
- return c
- },
- VI: function() {
- return 0 != this.$()
- },
- Yb: function() {
- switch (this.$()) {
- case 0:
- return 0;
- case 1:
- return 1;
- case 2:
- return - 1;
- case 3:
- return 0.5;
- case 4:
- return this.zc(q);
- default:
- return this.XV(23, 8)
- }
- },
- XV: function(c, d) {
- var f = c + d + 1,
- g = f >> 3;
- this.KV(f);
- var f = Math.pow(2, d - 1) - 1,
- h = this.Yaa(c + d, 1, g),
- k = this.Yaa(c, d, g),
- n = 0,
- p = 2,
- r = 0;
- do
- for (var v = this.JN(++r, g), y = c % 8 || 8, z = 1 << y; z >>= 1;) v & z && (n += 1 / p),
- p *= 2;
- while (c -= y);
- this.Cg += g;
- return k == (f << 1) + 1 ? n ? NaN: h ? -Infinity: Infinity: (1 + -2 * h) * (k || n ? !k ? Math.pow(2, -f + 1) * n: Math.pow(2, k - f) * (1 + n) : 0)
- },
- Yaa: function(c, d, f) {
- var g = (c + d) % 8,
- h = c % 8,
- k = f - (c >> 3) - 1;
- c = f + ( - (c + d) >> 3);
- var n = k - c;
- d = this.JN(k, f) >> h & (1 << (n ? 8 - h: d)) - 1;
- for (n && g && (d += (this.JN(c++, f) & (1 << g) - 1) << (n--<<3) - h); n;) d += this.NY(this.JN(c++, f), (n--<<3) - h);
- return d
- },
- JN: function(c, d) {
- return this.Ih[this.Cg + d - c - 1]
- },
- NY: function(c, d) {
- for (++d; --d; c = 1073741824 == ((c %= 2147483648) & 1073741824) ? 2 * c: 2 * (c - 1073741824) + 2147483648);
- return c
- },
- KV: function(c) {
- this.Cg + Math.ceil(c / 8) < this.Ih.length || e(Error("Index out of bound"))
- },
- wf: function() {
- return this.bZ[this.zc(t)]
- },
- vYa: A("qn"),
- JVa: A("HA"),
- KVa: A("IA"),
- IVa: A("GA"),
- LVa: A("zw"),
- MVa: A("Aw"),
- vVa: A("BX"),
- QSa: A("eV"),
- PSa: A("Iv"),
- iha: x("Iv"),
- yca: function(c) {
- this.HA.push(c)
- },
- zca: function(c) {
- this.IA.push(c)
- },
- xca: function(c) {
- this.GA.push(c)
- },
- OO: function(c) {
- this.Mc.OO(c)
- },
- PO: function(c) {
- this.Mc.PO(c)
- },
- NO: function(c) {
- this.Mc.NO(c)
- },
- Aga: function(c) {
- if (!this.rua() || !this.uua() || !this.sua()) return s;
- var d = this.Zaa();
- this.Iv.vl(this.Mc, d);
- c && this.v9(d);
- return d
- },
- bQa: function(c) {
- this.zw.push(c)
- },
- cQa: function(c) {
- c != s && this.Aw.push(c)
- },
- v9: function(c) {
- c.userObject = s;
- c = c.le();
- for (var d = 0,
- f = c.length; d < f; d++) this.v9(c[d])
- },
- qua: function(c) {
- var d = this.zc(t);
- if (!d) return q;
- for (var f = new C.yS,
- g = this.qn,
- h = this.Mc,
- k = f.br,
- n = 0; n < d; n++) {
- var p = this.Yb(),
- r = this.wf(),
- v = this.zc(t),
- y = [r, v],
- z = new C.RJ;
- z.setTime(p);
- z.ne(y);
- g && h.VM.push(v + ":" + r);
- k.push(z)
- }
- c.fHa(f);
- return q
- },
- tua: function(c) {
- var d = this.zc(t);
- if (!d) return q;
- for (var f = new C.yS,
- g = f.br,
- h = 0; h < d; h++) {
- var k = this.Yb(),
- n = this.wf(),
- p = this.Yb(),
- r = this.Yb(),
- v = this.Yb(),
- n = [n, p, r, v],
- p = new C.RJ;
- p.setTime(k);
- p.ne(n);
- g.push(p)
- }
- c.nIa(f);
- return q
- },
- sua: function() {
- for (var c = this.Mc.YA,
- d = this.zc(t), f = 0; f < d; f++) {
- var g = new C.nka;
- g.Wh(this.Yb());
- g.Ze(this.wf());
- g.kIa(this.zc(t));
- g.hHa(this.zc(q));
- if (!this.qua(g) || !this.tua(g)) return t;
- c.push(g)
- }
- this.Mc.bHa(this.zc(q));
- return q
- },
- aGa: function(c) {
- var d = new C.RJ;
- d.setTime(this.Yb());
- var f = this.zc(t),
- g = 0,
- h = s;
- if (2 === f || 3 === f || 4 === f || 5 === f || 6 === f || 7 === f) g = this.Yb();
- d.Ru(f);
- d.tHa(g);
- c == yb ? h = this.VI() : c == Jb ? h = this.$() : c == Kb ? (c = C.color(this.$(), this.$(), this.$()), h = C.aK.create(c)) : c == lb ? h = [this.Yb(), this.Yb()] : c == qb ? h = this.Yb() : c == kb || c == ab || c == lb ? h = [this.Yb(), this.Yb()] : c == zb && (c = this.wf(), f = this.wf(), "" == c ? (f = this.Sl + f, c = C.kb.sd(f), f = c.i(), f = C.rect(0, 0, f.width, f.height), h = C.di.create(c, f)) : (c = this.Sl + c, g = C.Fe, -1 == this.Ft.indexOf(c) && (g.Lr(c), this.Ft.push(c)), h = g.nh(f)));
- d.ne(h);
- return d
- },
- rua: function() {
- if (this.Ih == s) return t;
- var c = this.wua(this.Cg, 4, q);
- this.Cg += 4;
- if ("ccbi" != c) return t;
- c = this.zc(t);
- if (5 != c) return C.log("WARNING! Incompatible ccbi file version (file: " + c + " reader: 5)"),
- t;
- this.qn = this.VI();
- this.Mc.qn = this.qn;
- return q
- },
- wua: function(c, d, f) {
- c = "";
- var g = this.Ih,
- h = this.Cg;
- if (f || t) for (f = d - 1; 0 <= f; f--) c += String.fromCharCode(g[h + f]);
- else for (f = 0; f < d; f++) c += String.fromCharCode(g[h + f]);
- return c
- },
- uua: function() {
- for (var c = this.zc(t), d = 0; d < c; d++) this.vua();
- return q
- },
- vua: function() {
- for (var c = this.$(), d = this.$(), c = c << 8 | d, d = "", f = this.Ih, g = this.Cg, h = 0; h < c; h++) var k = f[g + h].toString("16").toUpperCase(),
- k = 1 < k.length ? k: "0" + k,
- d = d + ("%" + k);
- d = decodeURIComponent(d);
- this.Cg += c;
- this.bZ.push(d)
- },
- Zaa: function(c) {
- var d = this.wf(),
- f,
- g = this.qn,
- h = this.Mc;
- g && (f = this.wf());
- var k = this.zc(t),
- n;
- k != oc && (n = this.wf());
- var p = this.eF.Mda(d);
- p || (p = this.eF.Mda("CCNode"));
- d = p.lEa(c, this);
- h.hm || h.hIa(d);
- g && d == h.hm && h.rHa(f);
- var r = new C.Ev,
- v = this.dn = [],
- y = this.zc(t);
- for (f = 0; f < y; ++f) {
- for (var z = this.zc(t), D = new C.Ev, E = this.zc(t), F = 0; F < E; ++F) {
- var G = new C.yS;
- G.Ze(this.wf());
- G.rJ(this.zc(t));
- v.push(G.getName());
- for (var K = this.zc(t), O = G.br, U = 0; U < K; ++U) {
- var X = this.aGa(G.xc);
- O.push(X)
- }
- D.vl(G, G.getName())
- }
- r.vl(D, z)
- }
- 0 < r.count() && h.SO(d, r);
- p.zFa(d, c, this);
- d instanceof C.zD && (f = d.fF, f.p(d.Ld()), f.th(d.Mx()), f.gb(d.ia), f.pb(d.pa), f.Qm(d.Fm()), f.va(q), h.rEa(d, f), d.nha(s), d = f);
- f = s;
- k != oc && g && (k == pc ? (h.wwa(n), h.xwa(d)) : (this.zw.push(n), this.Aw.push(d)));
- if (0 < p.Nz.length && !g && (f = d, f != s && f.xEa != s)) {
- g = p.Nz.vB();
- for (f = 0; f < g.length; f++);
- }
- this.dn = s;
- g = this.zc(t);
- for (f = 0; f < g; f++) h = this.Zaa(d),
- d.q(h);
- return d
- },
- O$: function() {
- var c = 0 != (this.Ih[this.Cg] & 1 << this.ht);
- this.ht++;
- 8 <= this.ht && (this.ht = 0, this.Cg++, this.Cg > this.Ih.length && e("out of the data bound"));
- return c
- },
- Mqa: function() {
- this.ht && (this.ht = 0, this.Cg++)
- },
- oPa: u()
- });
- C.Jb.t9 = 1;
- C.Jb.Z4a = function(c) {
- C.Jb.t9 = c
- };
- C.Jb.yu = function() {
- return C.Jb.t9
- };
- C.Jb.Z_a = function(c, d, f, g) {
- g = g || C.Jb.A0();
- c = C.Jb.load(c, d, f, g);
- d = C.Ll.create();
- d.q(c);
- return d
- };
- C.Jb.y9 = {};
- C.Jb.I1a = function(c, d) {
- C.Jb.y9[c] = C.O.extend(d)
- };
- C.Jb.load = function(c, d, f, g) {
- g = g || C.Jb.A0();
- var h = new C.Jb(C.Dj.tEa());
- h.eHa(g);
- if (5 > c.length || c.toLowerCase().lastIndexOf(".ccbi") != c.length - 5) c += ".ccbi";
- c = h.Bga(c, d, f);
- var k, n, p;
- if (d) {
- g = h.HA;
- var r = h.IA,
- v = h.GA;
- for (f = 0; f < g.length; f++) k = g[f],
- n = r[f],
- p = v[f],
- n instanceof C.Ym ? n.nH(d, d[k], p) : n.pha(d[k], d);
- g = h.zw;
- r = h.Aw;
- for (f = 0; f < g.length; f++) k = g[f],
- n = r[f],
- d[k] = n
- }
- g = h.BX;
- h = h.eV;
- if (!g || !h) return c;
- r = C.Jb.y9;
- for (f = 0; f < g.length; f++) {
- var y = g[f],
- v = h[f];
- y.pQa = v;
- if (k = v.kW) {
- var z = r[k];
- z || e("Can not find controller : " + k);
- z = new z;
- z.hRa = k;
- y.gRa = z;
- z.J2a = y;
- for (var D = v.cM,
- E = v.dM,
- F = v.bM,
- y = 0; y < D.length; y++) k = D[y],
- n = E[y],
- p = F[y],
- n instanceof C.Ym ? n.nH(z, z[k], p) : n.pha(z[k], z);
- p = v.eM;
- D = v.fM;
- for (y = 0; y < p.length; y++) k = p[y],
- n = D[y],
- z[k] = n;
- z.$fa && "function" == typeof z.$fa && z.$fa();
- k = v.VM;
- for (y = 0; y < k.length; y++) p = k[y].split(":"),
- n = p[0],
- p = p[1],
- 1 == n ? v.oha(C.Jc.create(z[p], z), k[y]) : 2 == n && d && v.oha(C.Jc.create(d[p], d), k[y])
- }
- }
- return c
- };
- C.Jb.iba = "";
- C.Jb.$4a = function(c) {
- C.Jb.iba = c
- };
- C.Jb.A0 = function() {
- return C.Jb.iba
- };
- C.Jb.Efa = function(c) {
- var d = c.lastIndexOf("/");
- return - 1 != d ? c.substring(d + 1, c.length - d) : c
- };
- C.Jb.zya = function(c) {
- var d = c.lastIndexOf(".");
- return - 1 != d ? c.substring(0, d) : c
- };
- C.Jb.toLowerCase = function(c) {
- return c.toLowerCase()
- };
- C.Jb.aSa = function(c, d) {
- return c.length >= d.length ? 0 == c.lastIndexOf(d) : t
- };
- C.Jb.concat = function(c, d) {
- return c + d
- };
- C.M.Zp(["ccbi"], C.$qa);
- C.ZLa = 0;
- C.NLa = 1;
- C.PMa = 2;
- C.KKa = 3;
- C.JNa = 4;
- C.aK = C.O.extend({
- ya: s,
- ctor: function() {
- this.ya = C.color(0, 0, 0)
- },
- Xa: A("ya")
- });
- C.aK.create = function(c) {
- var d = new C.aK;
- d && (d.ya.r = c.r, d.ya.g = c.g, d.ya.b = c.b);
- return d
- };
- C.C4 = C.O.extend({
- Hd: s,
- xc: 0,
- TUa: u(),
- getFloatValue: u(),
- jTa: u(),
- lTa: u(),
- YVa: u(),
- Qf: A("Hd")
- });
- C.C4.create = function() {
- return new C.C4
- };
- C.RJ = C.O.extend({
- Hd: s,
- Rba: 0,
- iM: 0,
- oW: 0,
- Qf: A("Hd"),
- ne: x("Hd"),
- getTime: A("Rba"),
- setTime: x("Rba"),
- qUa: A("iM"),
- Ru: x("iM"),
- pUa: A("oW"),
- tHa: x("oW")
- });
- C.nka = C.O.extend({
- D: 0,
- kd: "",
- TN: 0,
- HV: 0,
- DL: s,
- bO: s,
- ctor: function() {
- this.kd = ""
- },
- Rr: A("D"),
- Wh: x("D"),
- getName: A("kd"),
- Ze: x("kd"),
- xWa: A("TN"),
- kIa: x("TN"),
- BTa: A("HV"),
- hHa: x("HV"),
- uTa: A("DL"),
- fHa: x("DL"),
- DWa: A("bO"),
- nIa: x("bO")
- });
- C.yS = C.O.extend({
- kd: s,
- xc: 0,
- br: s,
- ctor: function() {
- this.j()
- },
- j: function() {
- this.br = [];
- this.kd = ""
- },
- getName: A("kd"),
- Ze: x("kd"),
- $H: A("xc"),
- rJ: x("xc"),
- YUa: A("br")
- });
- C.Vza = function(c, d, f) {
- var g = C.d(0, 0);
- 0 === d ? g = c: 1 === d ? (g.x = c.x, g.y = f.height - c.y) : 2 === d ? (g.x = f.width - c.x, g.y = f.height - c.y) : 3 === d ? (g.x = f.width - c.x, g.y = c.y) : 4 === d ? (g.x = f.width * c.x / 100, g.y = f.height * c.y / 100) : 5 === d && (d = C.Jb.yu(), g.x = c.x * d, g.y = c.y * d);
- return g
- };
- C.FW = function(c, d, f, g) {
- var h = C.d(0, 0);
- 0 === f ? (h.x = c, h.y = d) : 1 === f ? (h.x = c, h.y = g.height - d) : 2 === f ? (h.x = g.width - c, h.y = g.height - d) : 3 === f ? (h.x = g.width - c, h.y = d) : 4 === f ? (h.x = g.width * c / 100, h.y = g.height * d / 100) : 5 === f && (f = C.Jb.yu(), h.x = c * f, h.y = d * f);
- return h
- };
- C.kia = function(c, d, f, g) {
- c || e("cc.setRelativeScale(): node should be non-null");
- 5 === g && (g = C.Jb.yu(), d *= g, f *= g);
- c.gb(d);
- c.pb(f)
- };
- C.ZKa = C.O.extend({
- cRa: u()
- });
- C.z4 = C.O.extend({
- YA: s,
- gG: s,
- qz: s,
- nz: 0,
- hm: s,
- Rd: s,
- QN: s,
- Oq: s,
- yG: s,
- eM: s,
- fM: s,
- cM: s,
- dM: s,
- bM: s,
- kW: "",
- mX: "",
- VM: s,
- kX: s,
- dV: s,
- Xc: s,
- qn: t,
- ctor: function() {
- this.QN = C.size(0, 0);
- this.j()
- },
- j: function() {
- this.YA = [];
- this.gG = new C.Ev;
- this.qz = new C.Ev;
- this.eM = [];
- this.fM = [];
- this.cM = [];
- this.dM = [];
- this.bM = [];
- this.VM = [];
- this.kX = {};
- return q
- },
- yWa: A("YA"),
- d5a: x("YA"),
- TSa: A("nz"),
- bHa: x("nz"),
- qWa: A("hm"),
- hIa: x("hm"),
- iea: A("Rd"),
- VC: x("Rd"),
- PO: function(c) {
- this.dM.push(c)
- },
- OO: function(c) {
- this.cM.push(c)
- },
- NO: function(c) {
- this.bM.push(c)
- },
- xwa: function(c) {
- this.fM.push(c)
- },
- wwa: function(c) {
- this.eM.push(c)
- },
- rHa: x("kW"),
- kUa: A("kW"),
- iUa: A("cM"),
- jUa: A("dM"),
- hUa: A("bM"),
- lUa: A("eM"),
- mUa: A("fM"),
- ZUa: A("mX"),
- XUa: A("VM"),
- pWa: A("QN"),
- f3: function(c) {
- this.QN = C.size(c.width, c.height)
- },
- ZB: A("Oq"),
- bq: x("Oq"),
- sWa: function() {
- return this.yG ? this.yG.getName() : s
- },
- AP: function(c) {
- return c ? c.i() : this.QN
- },
- SO: function(c, d) {
- this.gG.vl(d, c)
- },
- iy: function(c, d, f) {
- var g = this.qz.Km(d);
- g || (g = new C.Ev, this.qz.vl(g, d));
- g.vl(c, f)
- },
- rEa: function(c, d) {
- var f = this.qz,
- g = f.Km(c);
- g != s && (f.vl(g, d), f.q2(c));
- f = this.gG;
- g = f.Km(c);
- g != s && (f.vl(g, d), f.q2(c))
- },
- Wza: function(c) {
- var d = 0,
- f = [];
- c = c.br;
- for (var g = c.length,
- h = 0; h < g; ++h) {
- var k = c[h],
- n = k.getTime() - d,
- d = k.getTime();
- 0 < n && f.push(C.fd.create(n));
- n = k.Qf();
- k = n[0];
- n = n[1];
- if (this.qn) k = this.kX[n + ":" + k],
- k != s && f.push(k);
- else {
- var p;
- n == pc ? p = this.hm: n == qc && (p = this.Rd);
- p != s && (0 < k.length ? (n = 0, p.LEa != s && (n = m), 0 == n ? C.log("Skipping selector '" + k + "' since no CCBSelectorResolver is present.") : f.push(C.Jc.create(n, p))) : C.log("Unexpected empty selector."))
- }
- }
- return 1 > f.length ? s: C.La.create(f)
- },
- Xza: function(c) {
- var d = 0,
- f = [];
- c = c.br;
- for (var g = c.length,
- h = 0; h < g; ++h) {
- var k = c[h],
- n = k.getTime() - d,
- d = k.getTime();
- 0 < n && f.push(C.fd.create(n));
- k = k.Qf();
- f.push(C.AS.create(C.Jb.A0() + k[0], parseFloat(k[1]), parseFloat(k[2]), parseFloat(k[3])))
- }
- return 1 > f.length ? s: C.La.create(f)
- },
- M2a: function(c) {
- this.w2(this.SW(c), 0)
- },
- N2a: function(c, d) {
- this.w2(this.SW(c), d)
- },
- w2: function(c, d) { - 1 === c && e("cc.BuilderAnimationManager.runAnimationsForSequenceIdTweenDuration(): Sequence id should not be -1");
- d = d || 0;
- this.hm.yk();
- for (var f = this.gG.vB(), g = 0, h = f.length; g < h; g++) {
- var k = f[g];
- k.yk();
- var n = this.gG.Km(k).Km(c),
- p,
- r = [];
- if (n) {
- var v = n.vB();
- for (p = 0; p < v.length; p++) {
- var y = v[p],
- z = n.Km(y);
- r.push(y);
- this.Wua(k, z, d);
- this.Kua(k, z, d)
- }
- }
- if (n = this.qz.Km(k)) {
- v = n.vB();
- for (p = 0; p < v.length; p++) y = v[p],
- -1 == r.indexOf(y) && (z = n.Km(y), z != s && this.yY(y, k, z, d))
- }
- }
- f = this.S$(c);
- g = C.La.create(C.fd.create(f.Rr() + d), C.Jc.create(this.Nua, this));
- this.hm.Ya(g);
- f.DL && (g = this.Wza(f.DL)) && this.hm.Ya(g);
- f.bO && (g = this.Xza(f.bO)) && this.hm.Ya(g);
- this.yG = this.S$(c)
- },
- v2: function(c, d) {
- this.w2("string" === typeof c ? this.SW(c) : c, d || 0)
- },
- XGa: function(c, d) {
- this.Xc = c;
- this.dV = d
- },
- G3a: function(c, d) {
- this.XGa(c, d)
- },
- oha: function(c, d) {
- this.kX[d] = c
- },
- debug: u(),
- IF: function(c, d) {
- var f = this.qz.Km(c);
- return f ? f.Km(d) : s
- },
- SW: function(c) {
- for (var d = s,
- f = this.YA,
- g = 0,
- h = f.length; g < h; g++) if ((d = f[g]) && d.getName() === c) return d.TN;
- return - 1
- },
- S$: function(c) {
- for (var d = s,
- f = this.YA,
- g = 0,
- h = f.length; g < h; g++) if ((d = f[g]) && d.TN === c) return d;
- return s
- },
- J$: function(c, d, f, g) {
- c = d.getTime() - (c ? c.getTime() : 0);
- var h;
- if ("rotation" === f) return C.xS.create(c, d.Qf());
- if ("rotationX" === f) return C.A4.create(c, d.Qf());
- if ("rotationY" === f) return C.B4.create(c, d.Qf());
- if ("opacity" === f) return C.xo.create(c, d.Qf());
- if ("color" === f) return g = d.Qf().Xa(),
- C.ez.create(c, g.r, g.g, g.b);
- if ("visible" === f) return d.Qf() ? C.La.create(C.fd.create(c), C.Fj.create()) : C.La.create(C.fd.create(c), C.Fl.create());
- if ("displayFrame" === f) return C.La.create(C.fd.create(c), C.zS.create(d.Qf()));
- if ("position" === f) return f = this.IF(g, f),
- f = f[2],
- h = d.Qf(),
- d = h[0],
- h = h[1],
- g = this.AP(g.getParent()),
- g = C.FW(d, h, f, g),
- C.Bs.create(c, g);
- if ("scale" === f) return f = this.IF(g, f),
- f = f[2],
- h = d.Qf(),
- d = h[0],
- h = h[1],
- f === nc && (g = C.Jb.yu(), d *= g, h *= g),
- C.ae.create(c, d, h);
- if ("skew" === f) return h = d.Qf(),
- d = h[0],
- h = h[1],
- C.rq.create(c, d, h);
- C.log("BuilderReader: Failed to create animation for property: " + f);
- return s
- },
- yY: function(c, d, f, g) {
- if (0 < g) {
- var h = new C.RJ;
- h.ne(f);
- h.setTime(g);
- h.Ru(1);
- f = this.J$(s, h, c, d);
- d.Ya(f)
- } else "position" === c ? (c = this.IF(d, c), c = c[2], g = f[0], f = f[1], d.p(C.FW(g, f, c, this.AP(d.getParent())))) : "scale" === c ? (c = this.IF(d, c), c = c[2], g = f[0], f = f[1], C.kia(d, g, f, c)) : "skew" === c ? (g = f[0], f = f[1], d.nJ(g), d.oJ(f)) : "rotation" === c ? d.th(f) : "rotationX" == c ? d.b5a(f) : "rotationY" == c ? d.c5a(f) : "opacity" === c ? d.K(f) : "displayFrame" === c ? d.pc(f) : "color" === c ? (f = f.Xa(), (255 !== f.r || 255 !== f.g || 255 !== f.b) && d.G(f)) : "visible" === c ? d.va(f || t) : C.log("unsupported property name is " + c)
- },
- Wua: function(c, d, f) {
- var g = d.br;
- 0 === g.length ? ((g = this.IF(c, d.getName())) || C.log("cc.BuilderAnimationManager._setFirstFrame(): No baseValue found for property"), this.yY(d.getName(), c, g, f)) : this.yY(d.getName(), c, g[0].Qf(), f)
- },
- lsa: function(c, d, f) {
- if (1 === d || 0 === d) return c;
- if (2 === d) return C.$D.create(c, f);
- if (3 === d) return C.As.create(c, f);
- if (4 === d) return C.Oy.create(c, f);
- if (11 === d) return C.KD.create(c);
- if (12 === d) return C.MD.create(c);
- if (13 === d) return C.LD.create(c);
- if (8 === d) return C.OD.create(c);
- if (9 === d) return C.QD.create(c);
- if (10 === d) return C.PD.create(c);
- if (5 === d) return C.XD.create(c, f);
- if (6 === d) return C.ZD.create(c, f);
- if (7 === d) return C.YD.create(c, f);
- C.log("BuilderReader: Unkown easing type " + d);
- return c
- },
- Kua: function(c, d, f) {
- var g = d.br,
- h = g.length;
- if (1 < h) {
- var k = [];
- f = g[0].getTime() + f;
- 0 < f && k.push(C.fd.create(f));
- for (f = 0; f < h - 1; ++f) {
- var n = g[f],
- p = this.J$(n, g[f + 1], d.getName(), c);
- p && (p = this.lsa(p, n.iM, n.oW), k.push(p))
- }
- d = C.La.create(k);
- c.Ya(d)
- }
- },
- Nua: function() {
- var c = this.yG;
- this.mX != c.getName() && (this.mX = c.getName());
- c = c.HV;
- this.yG = s; - 1 != c && this.v2(c, 0);
- this.Xc && this.dV && this.dV.call(this.Xc)
- }
- });
- C.zS = C.yh.extend({
- vr: s,
- mj: function(c) {
- this.vr = c;
- return q
- },
- update: function() {
- this.target.pc(this.vr)
- }
- });
- C.zS.create = function(c) {
- var d = new C.zS;
- return d && d.mj(c) ? d: s
- };
- C.xS = C.N.extend({
- Sw: 0,
- O9: 0,
- J9: 0,
- k: function(c, d) {
- return C.N.prototype.k.call(this, c) ? (this.O9 = d, q) : t
- },
- update: function(c) {
- this.target.th(this.Sw + this.J9 * c)
- },
- R: function(c) {
- C.N.prototype.R.call(this, c);
- this.Sw = this.target.Mx();
- this.J9 = this.O9 - this.Sw
- }
- });
- C.xS.create = function(c, d) {
- var f = new C.xS;
- return f && f.k(c, d) ? f: s
- };
- C.A4 = C.N.extend({});
- C.A4.create = function() {
- e("rotationX has not been implemented in cocos2d-html5")
- };
- C.B4 = C.N.extend({});
- C.B4.create = function() {
- e("rotationY has not been implemented in cocos2d-html5")
- };
- C.AS = C.yh.extend({
- j: function(c) {
- this.Ura = c;
- return q
- },
- update: function() {
- C.ud.Zx(this.Ura)
- }
- });
- C.AS.create = function(c) {
- var d = new C.AS;
- return d && d.j(c) ? d: s
- };
- C.Pd = {};
- C.Pd.a9 = function(c) {
- for (var d in C.Pd.C1) c[d] = C.Pd.C1[d];
- C.e(c, "x", c.Rc, c.rs);
- C.e(c, "y", c.Vd, c.Uu);
- C.e(c, "width", c.ef, c.Qh);
- C.e(c, "height", c.Dg, c.Ph);
- C.e(c, "anchorX", c.L$, c.Re);
- C.e(c, "anchorY", c.M$, c.Se);
- C.e(c, "scale", c.SH, c.Za);
- C.e(c, "scaleX", c.LP, c.gb);
- C.e(c, "scaleY", c.TH, c.TH);
- C.e(c, "rotation", c.Mx, c.th);
- C.e(c, "skewX", c.rea, c.nJ);
- C.e(c, "skewY", c.sea, c.oJ);
- C.e(c, "visible", c.l1, c.va);
- C.e(c, "parent", c.getParent, c.cq);
- C.e(c, "opacity", c.rb, c.K)
- };
- C.Pd.C1 = {
- p: function(c, d) {
- d === m ? (this.ma.x = c.x, this.ma.y = c.y) : (this.ma.x = c, this.ma.y = d);
- this.Da();
- this.ja.DJ(this.ma.x, -this.ma.y)
- },
- Uu: function(c) {
- this.ma.y = c;
- this.Da();
- this.ja.DJ(this.ma.x, -this.ma.y)
- },
- rs: function(c) {
- this.ma.x = c;
- this.Da();
- this.ja.DJ(this.ma.x, -this.ma.y)
- },
- Za: function(c, d) {
- this.ia = c;
- this.pa = d || c;
- this.Da();
- this.ja.$p(this.ia, this.pa)
- },
- gb: function(c) {
- this.ia = c;
- this.Da();
- this.ja.$p(this.ia, this.pa)
- },
- pb: function(c) {
- this.pa = c;
- this.Da();
- this.ja.$p(this.ia, this.pa)
- },
- S: function(c, d) {
- var f = this.Ab;
- d === m ? (f.x = c.x, f.y = c.y) : (f.x = c, f.y = d);
- var g = this.Nb,
- h = this.o;
- g.x = h.width * f.x;
- g.y = h.height * f.y;
- this.ja.style[C.ic.Gu + "TransformOrigin"] = "" + g.x + "px " + -g.y + "px";
- this.ignoreAnchor ? (this.ja.style.marginLeft = 0, this.ja.style.marginBottom = 0) : (this.ja.style.marginLeft = this.CDa ? 0 : -g.x + "px", this.ja.style.marginBottom = -g.y + "px");
- this.Da()
- },
- Re: function(c) {
- var d = this.Ab;
- c !== d.x && (d.x = c, c = this.Nb, c.x = this.o.width * d.x, this.ja.style[C.ic.Gu + "TransformOrigin"] = "" + c.x + "px " + -c.y + "px", this.ignoreAnchor ? (this.ja.style.marginLeft = 0, this.ja.style.marginBottom = 0) : this.ja.style.marginLeft = this.CDa ? 0 : -c.x + "px", this.Da())
- },
- Se: function(c) {
- var d = this.Ab;
- c !== d.y && (d.y = c, c = this.Nb, c.y = this.o.height * d.y, this.ja.style[C.ic.Gu + "TransformOrigin"] = "" + c.x + "px " + -c.y + "px", this.ignoreAnchor ? (this.ja.style.marginLeft = 0, this.ja.style.marginBottom = 0) : this.ja.style.marginBottom = -c.y + "px", this.Da())
- },
- Ca: function(c, d) {
- var f = this.o;
- d === m ? (f.width = c.width, f.height = c.height) : (f.width = c, f.height = d);
- var g = this.Nb,
- h = this.Ab;
- g.x = f.width * h.x;
- g.y = f.height * h.y;
- this.ja.width = f.width;
- this.ja.height = f.height;
- this.S(this.dk());
- this.canvas && (this.canvas.width = f.width, this.canvas.height = f.height);
- this.Da();
- this.m2()
- },
- Qh: function(c) {
- var d = this.o;
- c !== d.width && (d.width = c, c = this.Ab, this.Nb.x = d.width * c.x, this.ja.width = d.width, this.anchorX = c.x, this.canvas && (this.canvas.width = d.width), this.Da(), this.m2())
- },
- Ph: function(c) {
- var d = this.o;
- c !== d.height && (d.height = c, c = this.Ab, this.Nb.y = d.height * c.y, this.ja.height = d.height, this.anchorY = c.y, this.canvas && (this.canvas.height = d.height), this.Da(), this.m2())
- },
- th: function(c) {
- this.XA != c && (this.Xi = this.im = c, this.Dn = this.Xi * (Math.PI / 180), this.Mw = this.im * (Math.PI / 180), this.Da(), this.ja.rotate(c))
- },
- nJ: function(c) {
- this.ig = c;
- this.Da();
- this.ja.qia(this.ig, this.jg)
- },
- oJ: function(c) {
- this.jg = c;
- this.Da();
- this.ja.qia(this.ig, this.jg)
- },
- va: function(c) {
- this.Ja = c;
- this.Da();
- this.ja && (this.ja.style.display = c ? "block": "none")
- },
- Ow: function(c) {
- this.Wa = c;
- this.Da();
- this.ja && (this.ja.zIndex = c)
- },
- cq: function(c) {
- this.Vb = c;
- c !== s && (c.S(c.dk()), this.Da(), C.Pd.UQ(this))
- },
- nk: function() {
- this.Em().Mm(this);
- this.UB().Mm(this);
- C.Ka.Mm(this);
- this.ja && !this.ja.parentNode && (this.getParent() ? C.Pd.UQ(this) : this.ja.ox(C.container));
- this.ja && (this.ja.style.visibility = "visible")
- },
- pause: function() {
- this.Em().hs(this);
- this.UB().hs(this);
- C.Ka.hs(this);
- this.ja && (this.ja.style.visibility = "hidden")
- },
- ze: function() {
- this.yk();
- this.FJ();
- this.Jk(this.l, C.A.Gj.ze);
- this.ja && this.ja.remove()
- },
- vGa: function() {
- this.ja.remove()
- },
- K: function(c) {
- this.Eb = c;
- this.ja.style.opacity = c / 255
- },
- m2: function() {
- if (this.jfa) {
- var c = this.l;
- this.l = [];
- C.u.prototype.J.call(this, this.HB);
- this.l = c
- } else C.u.prototype.J.call(this, this.HB)
- }
- };
- C.Pd.Gua = function() {
- var c = C.ic("#EGLViewDiv");
- if (c) {
- var d = C.view,
- f = d.LH(),
- g = d.jh,
- h = d.$da(),
- k = d.Pq,
- n = f.width,
- p = f.height;
- 0 === f.width && 0 === f.height && (n = h.width, p = h.height);
- f = g.width / k;
- 0 === g.width && 0 === g.height && (f = h.width);
- c.style.position = "absolute";
- c.style.width = n + "px";
- c.style.maxHeight = p + "px";
- c.style.margin = 0;
- c.$p(d.ia / k, d.pa / k);
- c.style.left = (f - n) / 2 + "px";
- c.style.bottom = "0px"
- }
- };
- C.Pd.UQ = function(c) {
- var d = c.getParent();
- if (d && c.ja) if (d.ja || (C.Pd.placeHolder(d), d.cq = C.Pd.C1.cq), c.ja.ox(d.ja), d.S(d.dk()), d.getParent()) C.Pd.UQ(d);
- else if (d.$c) if (c = C.ic("#EGLViewDiv")) d.ja.ox(c);
- else {
- c = C.pD("div");
- c.id = "EGLViewDiv";
- var f = C.view,
- g = f.LH(),
- h = f.jh,
- k = f.$da(),
- n = f.Pq,
- p = g.width,
- r = g.height;
- 0 === g.width && 0 === g.height && (p = k.width, r = k.height);
- g = h.width / n;
- 0 === h.width && 0 === h.height && (g = k.width);
- c.style.position = "absolute";
- c.style.width = p + "px";
- c.style.maxHeight = r + "px";
- c.style.margin = 0;
- c.$p(f.ia / n, f.pa / n);
- c.style.left = (g - p) / 2 + "px";
- c.style.bottom = "0px";
- d.ja.ox(c);
- c.ox(C.container)
- }
- };
- C.Pd.setTransform = function(c) {
- if (c.HB) if (c.HB.translate(c.Ep().x, c.Ep().y), c.jfa) {
- var d = c.l;
- c.l = [];
- C.u.prototype.J.call(c, c.HB);
- c.l = d
- } else C.u.prototype.J.call(c, c.HB);
- c.ja && (c.ja.position.x = c.Rc(), c.ja.position.y = -c.Vd(), c.ja.rotation = c.Mx(), c.ja.scale = {
- x: c.ia,
- y: c.pa
- },
- c.ja.wy = {
- x: c.ig,
- y: c.jg
- },
- c.S && c.S(c.dk()), c.ja.Ay())
- };
- C.Pd.Mza = function(c) {
- c.ja = C.pD("div");
- c.canvas = C.pD("canvas");
- var d = c.i();
- c.canvas.width = d.width;
- c.canvas.height = d.height;
- c.ja.style.position = "absolute";
- c.ja.style.bottom = 0;
- c.HB = c.canvas.getContext("2d");
- c.ja.appendChild(c.canvas);
- c.getParent() && C.Pd.UQ(c);
- c.jfa = q
- };
- C.Pd.placeHolder = function(c) {
- c.ja = C.pD("div");
- c.placeholder = q;
- c.ja.style.position = "absolute";
- c.ja.style.bottom = 0;
- c.ja.style.width = (c.i().width || C.Q.aa.width) + "px";
- c.ja.style.maxHeight = (c.i().height || C.Q.aa.height) + "px";
- c.ja.style.margin = 0;
- C.Pd.setTransform(c);
- c.ja.Ay();
- C.Pd.a9(c)
- };
- C.Pd.B_ = function(c) {
- if (1 < arguments.length) C.Pd.B_(arguments);
- else if (1 == arguments.length && !arguments[0].length) C.Pd.B_([arguments[0]]);
- else for (var d = arguments[0], f = 0; f < d.length; f++) d[f] instanceof C.u ? d[f].ja || C.Pd.Mza(d[f]) : C.log("DOM converter only supports sprite and menuitems yet"),
- C.Pd.a9(d[f]),
- d[f].J = u(),
- d[f].transform = u(),
- C.Pd.setTransform(d[f]),
- d[f].va(d[f].Ja)
- };
- C.Ima = 0;
- C.aMa = 1;
- C.dMa = 2;
- C.cMa = 3;
- C.bMa = 4;
- C.Rla = 0;
- C.FLa = 1;
- C.GLa = 2;
- C.HLa = 3;
- C.JLa = 4;
- C.ELa = 5;
- C.ILa = 6;
- C.Pla = 0;
- C.Qla = 1;
- C.DLa = 2;
- C.CLa = 3;
- C.BLa = 4;
- C.MLa = C.O.extend({
- SRa: u(),
- TRa: u(),
- VRa: u(),
- URa: u()
- });
- C.jE = C.Ym.extend({
- lW: s,
- Oq: s,
- Qra: C.Rla,
- Pra: C.Qla,
- vta: C.Ima,
- CPa: "",
- xn: "",
- TG: s,
- MA: s,
- zaa: 50,
- Lqa: 18,
- Qd: s,
- Qz: 14,
- jM: "Arial",
- BN: "",
- pG: 14,
- FPa: t,
- qa: "EditBox",
- ctor: function(c) {
- function d() {
- h.blur()
- }
- C.Ym.prototype.ctor.call(this);
- this.TG = C.color.WHITE;
- this.MA = C.color.GRAY;
- this.Ca(c);
- var f = this.lW = new C.u;
- f.ka = u();
- this.q(f);
- var g = this,
- h = this.Qd = C.bd("input");
- h.type = "text";
- h.style.fontSize = this.Qz + "px";
- h.style.color = "#000000";
- h.style.border = 0;
- h.style.background = "transparent";
- h.style.width = "100%";
- h.style.height = "100%";
- h.style.active = 0;
- h.style.outline = "medium";
- C.qb(h, "input", u());
- C.qb(h, "keypress",
- function(c) {
- c.keyCode === C.Uy.c0 && (c.stopPropagation(), c.preventDefault(), C.Pb.focus())
- });
- C.qb(h, "focus",
- function() {
- this.value == g.xn && (this.value = "", this.style.fontSize = g.Qz + "px", this.style.color = C.Ap(g.TG));
- C.qb(C.Pb, "click", d)
- });
- C.qb(h, "blur",
- function() {
- "" == this.value && (this.value = g.xn, this.style.fontSize = g.pG + "px", this.style.color = C.Ap(g.MA));
- C.Pb.removeEventListener("click", d)
- });
- C.Pd.B_(f);
- f.ja.appendChild(h);
- f.ja.Q5a = t;
- f.ja.style.width = c.width - 6 + "px";
- f.ja.style.height = c.height - 6 + "px";
- f.canvas.remove()
- },
- b4a: function(c, d) {
- this.Qz = d;
- this.jM = c;
- this.XN()
- },
- rr: function(c) {
- if (c = C.fa.xM.exec(c)) this.Qz = parseInt(c[1]),
- this.jM = c[2],
- this.XN()
- },
- Zd: function(c) {
- this.jM = c;
- this.XN()
- },
- Od: function(c) {
- this.Qz = c;
- this.XN()
- },
- XN: function() {
- this.Qd.value != this.xn && (this.Qd.style.fontFamily = this.jM, this.Qd.style.fontSize = this.Qz + "px")
- },
- PR: function(c) {
- C.log("Please use the setString");
- c != s && ("" == c ? (this.Qd.value = this.xn, this.Qd.style.color = C.Ap(this.MA)) : (this.Qd.value = c, this.Qd.style.color = C.Ap(this.TG)))
- },
- sa: function(c) {
- c != s && ("" == c ? (this.Qd.value = this.xn, this.Qd.style.color = C.Ap(this.MA)) : (this.Qd.value = c, this.Qd.style.color = C.Ap(this.TG)))
- },
- uHa: function(c) {
- this.TG = c;
- this.Qd.value != this.xn && (this.Qd.style.color = C.Ap(c))
- },
- qs: function(c) { ! isNaN(c) && 0 < c && (this.zaa = c, this.Qd.maxLength = c)
- },
- Kx: A("zaa"),
- Di: function(c) {
- if (c != s) {
- var d = this.xn;
- this.xn = c;
- this.Qd.value == d && (this.Qd.value = c, this.Qd.style.color = C.Ap(this.MA), this.AG())
- }
- },
- Q4a: function(c, d) {
- this.BN = c;
- this.pG = d;
- this.AG()
- },
- dva: function(c) {
- if (c = C.fa.xM.exec(c)) this.BN = c[2],
- this.pG = parseInt(c[1]),
- this.AG()
- },
- UHa: function(c) {
- this.BN = c;
- this.AG()
- },
- VHa: function(c) {
- this.pG = c;
- this.AG()
- },
- AG: function() {
- this.Qd.value == this.xn && (this.Qd.style.fontFamily = this.BN, this.Qd.style.fontSize = this.pG + "px")
- },
- THa: function(c) {
- this.MA = c;
- this.Qd.value == this.xn && (this.Qd.style.color = C.Ap(c))
- },
- zHa: function(c) {
- this.Pra = c;
- this.Qd.type = c == C.Pla ? "password": "text"
- },
- QWa: function() {
- C.log("Please use the getString");
- return this.Qd.value
- },
- Wb: function() {
- return this.Qd.value
- },
- XCa: function(c, d) {
- return this.Wea(d) ? (this.lW.x = 3, this.lW.y = 3, this.Bia(t), this.De(c), this.y = this.x = 0, this.b9(this, this.nJa, C.f5), q) : t
- },
- bq: x("Oq"),
- cC: A("xn"),
- AHa: x("Qra"),
- fIa: x("vta"),
- p1: function(c) {
- var d = C.jE.Vh(this);
- d.y -= 4;
- d.bYa(c.end) ? this.Lqa = c.end.rVa() - d.sVa() : C.log("needn't to adjust view layout.")
- },
- mfa: u(),
- nfa: u(),
- lfa: u(),
- nJa: u(),
- PXa: function(c, d) {
- this.Ora = c.width;
- this.ja.style.width = this.Ora.toString() + "px";
- this.Nra = c.height;
- this.ja.style.height = this.Nra.toString() + "px";
- this.ja.style.backgroundColor = C.Ap(d)
- }
- });
- H = C.jE.prototype;
- C.e(H, "font", s, H.rr);
- C.e(H, "fontName", s, H.Zd);
- C.e(H, "fontSize", s, H.Od);
- C.e(H, "fontColor", s, H.uHa);
- C.e(H, "string", H.Wb, H.sa);
- C.e(H, "maxLength", H.Kx, H.qs);
- C.e(H, "placeHolder", H.cC, H.Di);
- C.e(H, "placeHolderFont", s, H.dva);
- C.e(H, "placeHolderFontName", s, H.UHa);
- C.e(H, "placeHolderFontSize", s, H.VHa);
- C.e(H, "placeHolderFontColor", s, H.THa);
- C.e(H, "inputFlag", s, H.zHa);
- C.e(H, "delegate", s, H.bq);
- C.e(H, "inputMode", s, H.AHa);
- C.e(H, "returnType", s, H.fIa);
- H = s;
- C.jE.Vh = function(c) {
- var d = c.i(),
- d = C.rect(0, 0, d.width, d.height);
- return C.Gi(d, c.ql())
- };
- C.jE.create = function(c, d, f, g) {
- var h = new C.jE(c);
- h.XCa(c, d) && (f && h.sR(f, C.jv), g && h.sR(g, C.iv));
- return h
- };
- C.Il = C.ha.extend({
- fh: s,
- ON: t,
- lta: function(c, d) {
- this.ON = q;
- this.fh.push(c);
- c.Ow(d)
- },
- ctor: function() {
- C.ha.prototype.ctor.call(this);
- this.fh = []
- },
- Yc: function(c, d, f) {
- C.assert(c != s, "child must be non-nil");
- C.assert(!c.parent, "child already added. It can't be added again");
- d = d || c.Wa;
- f && c.Qm(f);
- this.lta(c, d);
- c.cq(this);
- c.Vha(C.kR);
- this.$c && (c.Z(), this.TM && c.qj());
- this.Zf && this.Rz();
- this.Ag && this.Sz()
- },
- BBa: function(c) {
- C.assert(c != C.yK, "Invalid tag");
- for (var d = this.fh,
- f = 0,
- g = d.length; f < g; f++) if (d.Fm() == c) return d[f];
- return s
- },
- Ai: function(c, d) {
- d == s && (d = q);
- var f = this.fh;
- if (0 !== f.length) {
- var g = f.indexOf(c); - 1 < g && (this.$c && (c.ph(), c.Na()), d && c.ze(), c.cq(s), f.splice(g, 1))
- }
- },
- m2a: function(c, d) {
- C.assert(c != C.yK, "Invalid tag");
- d == s && (d = q);
- var f = this.BBa(c);
- f == s ? C.log("cocos2d: removeChildByTag(tag \x3d %d): child not found!", c) : this.Ai(f, d)
- },
- W1a: function() {
- this.oGa(q)
- },
- oGa: function(c) {
- c == s && (c = q);
- for (var d = this.fh,
- f = 0,
- g = d.length; f < g; f++) {
- var h = d[f];
- this.$c && (h.ph(), h.Na());
- c && h.ze();
- h.cq(s)
- }
- d.length = 0
- },
- x2a: function(c, d) {
- C.assert(c != s, "Child must be non-nil");
- this.ON = q;
- c.Vha(C.kR++);
- c.Ow(d)
- },
- YR: function() {
- if (this.ON) {
- var c = this.fh,
- d = c.length,
- f, g, h;
- for (f = 1; f < d; f++) {
- h = c[f];
- for (g = f - 1; 0 <= g;) {
- if (h.Wa < c[g].Wa) c[g + 1] = c[g];
- else if (h.Wa === c[g].Wa && h.arrivalOrder < c[g].arrivalOrder) c[g + 1] = c[g];
- else break;
- g--
- }
- c[g + 1] = h
- }
- this.ON = t
- }
- },
- J: s,
- Hr: function(c) {
- if (this.Ja) {
- c = c || C.t;
- var d, f, g = this.l,
- h, k = this.fh,
- n = this.l.length,
- p = k.length;
- c.save();
- this.transform(c);
- this.ed();
- this.YR();
- for (d = 0; d < n; d++) if (h = g[d], 0 > h.Wa) h.J(c);
- else break;
- for (f = 0; f < p; f++) if (h = k[f], 0 > h.Wa) h.J(c);
- else break;
- for (this.ka(c); d < n; d++) g[d] && g[d].J(c);
- for (; f < p; f++) k[d] && k[d].J(c);
- this.Lk = t;
- this.arrivalOrder = 0;
- c.restore()
- }
- },
- fx: function() {
- if (this.Ja) {
- var c = C.t,
- d, f = C.Jd,
- g;
- f.stack.push(f.top);
- C.Pp(this.KG, f.top);
- f.top = this.KG;
- var h = this.grid;
- h && h.Wg && h.px();
- this.transform();
- var k = this.l,
- n = this.fh,
- p = k.length,
- r = n.length;
- this.ed();
- this.YR();
- for (d = 0; d < p; d++) if (k[d] && 0 > k[d].Wa) k[d].J();
- else break;
- for (g = 0; g < r; g++) if (n[g] && 0 > n[g].Wa) n[g].J();
- else break;
- for (this.ka(c); d < p; d++) k[d] && k[d].J();
- for (; g < r; g++) n[g] && n[g].J();
- this.arrivalOrder = 0;
- h && h.Wg && h.mx(this);
- f.top = f.stack.pop()
- }
- },
- ze: function() {
- C.A.prototype.ze.call(this);
- for (var c = this.fh,
- d = 0,
- f = c.length; d < f; d++) c[d].ze()
- },
- Z: function() {
- C.A.prototype.Z.call(this);
- for (var c = this.fh,
- d = 0,
- f = c.length; d < f; d++) c[d].Z()
- },
- qj: function() {
- C.A.prototype.qj.call(this);
- for (var c = this.fh,
- d = 0,
- f = c.length; d < f; d++) c[d].qj()
- },
- Na: function() {
- C.A.prototype.Na.call(this);
- for (var c = this.fh,
- d = 0,
- f = c.length; d < f; d++) c[d].Na()
- },
- ph: function() {
- C.A.prototype.ph.call(this);
- for (var c = this.fh,
- d = 0,
- f = c.length; d < f; d++) c[d].ph()
- },
- dc: function(c) {
- this.hb = this.Ig * c / 255;
- this.Gd();
- if (this.Ag) {
- var d, f = this.l,
- g = this.hb;
- c = 0;
- for (d = f.length; c < d; c++) f[c].dc && f[c].dc(g);
- f = this.fh;
- c = 0;
- for (d = f.length; c < d; c++) f[c].dc && f[c].dc(g)
- }
- },
- Tb: function(c) {
- var d = this.wb,
- f = this.od;
- d.r = f.r * c.r / 255;
- d.g = f.g * c.g / 255;
- d.b = f.b * c.b / 255;
- this.Gd();
- if (this.Zf) {
- var g = this.l;
- c = 0;
- for (f = g.length; c < f; c++) g[c].Tb && g[c].Tb(d);
- g = this.fh;
- c = 0;
- for (f = g.length; c < f; c++) g[c].Tb && g[c].Tb(d)
- }
- },
- yRa: function() {
- var c = C.color.WHITE,
- d, f, g = this.l;
- d = 0;
- for (f = g.length; d < f; d++) g[d].Tb(c);
- g = this.fh;
- d = 0;
- for (f = g.length; d < f; d++) g[d].Tb(c)
- }
- });
- C.Il.prototype.J = C.L === C.cb ? C.Il.prototype.Hr: C.Il.prototype.fx;
- C.Il.create = function() {
- return new C.Il
- };
- var uc = uc || C.O;
- uc.extend = uc.extend || C.O.extend;
- var vc = vc || C.Il;
- vc.extend = vc.extend || C.Il.extend;
- var J = vc.extend({
- Wc: q,
- Pv: q,
- uO: t,
- Qv: s,
- CO: t,
- rm: s,
- oB: s,
- Dr: s,
- Ln: s,
- Mn: s,
- kd: "default",
- Jr: s,
- xq: 0,
- ca: C.size(0, 0),
- mc: s,
- wA: s,
- Ct: 0,
- Rq: t,
- Rj: q,
- Cb: t,
- bV: t,
- $A: s,
- hg: s,
- qh: s,
- Ed: s,
- qPa: t,
- cw: t,
- Ht: s,
- ui: s,
- ya: s,
- qa: "Widget",
- Bb: t,
- Db: t,
- Eb: 255,
- SF: t,
- Kn: s,
- ctor: function() {
- C.Il.prototype.ctor.call(this);
- this.Qv = J.rS;
- this.rm = C.d(0, 0);
- this.oB = C.d(0, 0);
- this.Dr = C.d(0, 0);
- this.Jr = J.HE;
- this.ca = C.size(0, 0);
- this.mc = C.size(0, 0);
- this.wA = {};
- this.$A = J.E7;
- this.hg = C.d(0, 0);
- this.qh = J.g7;
- this.Ed = C.d(0, 0);
- this.Ht = [];
- this.ya = C.color(255, 255, 255, 255);
- this.Ct = wc.NONE;
- this.j()
- },
- j: function() {
- return C.Il.prototype.j.call(this) ? (this.wA = {},
- this.ol(), this.wR(q), this.CI = this.BEa.bind(this), this.PQ = s, this.S(C.d(0.5, 0.5)), this.We(q), this.Pu(q), this.Qu(q), q) : t
- },
- Z: function() {
- this.pja();
- C.Il.prototype.Z.call(this)
- },
- Na: function() {
- this.hD();
- C.Il.prototype.Na.call(this)
- },
- J: function(c) {
- this.Ja && (this.Qn(), C.Il.prototype.J.call(this, c))
- },
- pg: function() {
- var c = this.getParent();
- return c instanceof J ? c: s
- },
- Mf: function(c) {
- var d = this.ca;
- this.Cb ? (d.width = c.width, d.height = c.height) : (d.width = this.mc.width, d.height = this.mc.height);
- this.gc()
- },
- faa: function() {
- var c = this.K$(this);
- return c == s ? q: c && !c.isEnabled() ? t: c.faa()
- },
- K$: function(c) {
- if (s == c) return s;
- c = c.getParent();
- return s == c ? s: c instanceof J ? c: this.K$(c.getParent())
- },
- gaa: function(c) {
- return s == c ? q: (c = c.getParent()) && !c.Ja ? t: this.gaa(c)
- },
- fOa: function() {
- this.Tra.removeEventListener(this.ui);
- this.jn == this && (this.jn = s)
- },
- Ib: x("Wc"),
- ol: u(),
- SO: function(c, d, f) {
- c instanceof J ? C.log("Please use addChild to add a Widget.") : (C.A.prototype.q.call(this, c, d, f), this.Ht.push(c))
- },
- GP: function(c) {
- for (var d = this.Ht,
- f = 0; f < d.length; f++) {
- var g = d[f];
- if (g && g.Fm() == c) return g
- }
- return s
- },
- fea: A("Ht"),
- removeNode: function(c) {
- C.A.prototype.removeChild.call(this, c);
- C.Id(this.Ht, c)
- },
- Uga: function(c) {
- var d = this.GP(c);
- d ? this.removeNode(d) : C.log("cocos2d: removeNodeByTag(tag \x3d %d): child not found!", c)
- },
- Qga: function() {
- for (var c = 0; c < this.Ht.length; c++) C.A.prototype.removeChild.call(this, this.Ht[c]);
- this.Ht.length = 0
- },
- yf: function(c) {
- var d = this.mc.width = c.width;
- c = this.mc.height = c.height;
- this.Cb && (d = this.width, c = this.height);
- this.ca.width = d;
- this.ca.height = c;
- this.$c && ((c = this.pg()) ? (d = c.width, c = c.height) : (d = this.Vb.width, c = this.Vb.height), this.hg.x = 0 < d ? this.mc.width / d: 0, this.hg.y = 0 < c ? this.mc.height / c: 0);
- this.gc()
- },
- Qh: function(c) {
- c = this.mc.width = c;
- this.Cb && (c = this.width);
- this.ca.width = c;
- this.$c && (c = (c = this.pg()) ? c.width: this.Vb.width, this.hg.x = 0 < c ? this.mc.width / c: 0);
- this.gc()
- },
- Ph: function(c) {
- c = this.mc.height = c;
- this.Cb && (c = this.height);
- this.ca.height = c;
- this.$c && (c = (c = this.pg()) ? c.height: this.Vb.height, this.hg.y = 0 < c ? this.mc.height / c: 0);
- this.gc()
- },
- pia: function(c) {
- this.hg.x = c.x;
- this.hg.y = c.y;
- var d = this.mc.width,
- f = this.mc.height;
- this.$c && ((f = this.pg()) ? (d = f.width * c.x, f = f.height * c.y) : (d = this.Vb.width * c.x, f = this.Vb.height * c.y));
- this.Cb || (this.ca.width = d, this.ca.height = f);
- this.mc.width = d;
- this.mc.height = f;
- this.gc()
- },
- Ava: function(c) {
- this.hg.x = c;
- var d = this.mc.width;
- this.$c && (d = this.pg(), d = (d ? d.width: this.Vb.width) * c);
- this.Cb || (this.ca.width = d);
- this.mc.width = d;
- this.gc()
- },
- Yua: function(c) {
- this.hg.y = c;
- var d = this.mc.height;
- this.$c && (d = this.pg(), d = (d ? d.height: this.Vb.height) * c);
- this.Cb || (this.ca.height = d);
- this.mc.height = d;
- this.gc()
- },
- pja: function(c) {
- c || (c = (c = this.pg()) ? c.TAa() : this.Vb.i());
- var d;
- switch (this.$A) {
- case J.E7:
- d = this.Cb ? this.i() : this.mc;
- this.ca.width = d.width;
- this.ca.height = d.height;
- var f = d = 0;
- 0 < c.width && (d = this.mc.width / c.width);
- 0 < c.height && (f = this.mc.height / c.height);
- this.hg.x = d;
- this.hg.y = f;
- break;
- case J.voa:
- f = C.size(c.width * this.hg.x, c.height * this.hg.y),
- d = this.Cb ? this.Xn() : f,
- this.ca.width = d.width,
- this.ca.height = d.height,
- this.mc.width = f.width,
- this.mc.height = f.height
- }
- this.gc();
- d = this.Ld();
- switch (this.qh) {
- case J.g7:
- 0 >= c.width || 0 >= c.height ? (this.Ed.x = 0, this.Ed.y = 0) : (this.Ed.x = d.x / c.width, this.Ed.y = d.y / c.height);
- break;
- case J.h7:
- d = C.d(c.width * this.Ed.x, c.height * this.Ed.y)
- }
- this.p(d)
- },
- l3: x("$A"),
- OBa: A("$A"),
- We: function(c) {
- this.Cb != c && (c = (this.Cb = c) ? this.i() : this.mc, this.ca.width = c.width, this.ca.height = c.height, this.gc())
- },
- rYa: A("Cb"),
- UH: function() {
- return C.size(this.ca)
- },
- XTa: function() {
- return C.size(this.mc)
- },
- TAa: function() {
- return C.size(this.ca)
- },
- CWa: function() {
- return C.d(this.hg)
- },
- Rsa: function() {
- return this.hg.x
- },
- rsa: function() {
- return this.hg.y
- },
- wXa: function() {
- return this.vm(C.d(this.Ab.x * this.o.width, this.Ab.y * this.o.height))
- },
- Sr: function() {
- return this
- },
- Xn: function() {
- return C.size(this.o)
- },
- gc: function() {
- this.Ca(this.ca);
- for (var c = this.le(), d = 0, f = c.length; d < f; d++) {
- var g = c[d];
- g instanceof J && g.pja()
- }
- },
- i: A("ca"),
- ef: function() {
- return this.ca.width
- },
- Dg: function() {
- return this.ca.height
- },
- vh: function(c) {
- this.uO !== c && ((this.uO = c) ? (this.ui = C.Oa.create({
- event: C.Oa.Gs,
- yy: q,
- nc: this.nc.bind(this),
- yd: this.yd.bind(this),
- cd: this.cd.bind(this)
- }), C.Ka.addListener(this.ui, this)) : C.Ka.removeListener(this.ui))
- },
- k1: A("uO"),
- mQ: A("SF"),
- vj: function(c) {
- c != this.SF && (this.SF = c, this.Pv ? this.SF ? this.G2(J.qS) : this.G2(J.wD) : this.GC())
- },
- TR: function(c) {
- this.CO != c && ((this.CO = c) ? this.Lu() : this.hD())
- },
- DDa: A("CO"),
- sDa: A("Rq"),
- yR: function(c) {
- if (this.Rq = c) this.jn = this
- },
- qYa: A("Rj"),
- a4a: x("Rq"),
- Pf: function(c, d) {
- if (s == this.PQ || s == this.PQ(c)) {
- var f = d instanceof L;
- if (this.Rq || f) {
- var g = this.getParent();
- return s == g ? f ? d.Pf(c, d) : d: g.Pf(c, d)
- }
- return d
- }
- f = this.PQ(c);
- this.xx(this, f);
- return f
- },
- z2a: function() {
- this != this.jn && this.xx(this.jn, this)
- },
- RTa: A("jn"),
- YRa: u(),
- CI: s,
- PQ: s,
- Wr: function(c, d, f) {
- var g = this.pg();
- g && g.Wr(c, d, f)
- },
- BEa: function(c, d) {
- c && c.yR(t);
- d && d.yR(q)
- },
- xx: function(c, d) {
- c && !c.Rq && (c = this.jn);
- d != c && (d && d.CI && d.CI(c, d), c && d.CI && c.CI(c, d), C.Ka.dispatchEvent(new C.fma(c, d)))
- },
- wR: function(c) { (this.Pv = c) ? (this.Qv = J.rS, this.G2(J.wD)) : this.GC()
- },
- G2: function(c) {
- if (this.Qv != c) switch (this.Qv = c = c || J.wD, this.Qv) {
- case J.wD:
- this.KI();
- break;
- case J.qS:
- this.LI()
- }
- },
- KI: u(),
- LI: u(),
- GC: u(),
- Fya: u(),
- nc: function(c) {
- this.cw = t;
- if (this.Ja && this.isEnabled() && this.faa() && this.gaa(this)) {
- var d = c.mh();
- this.rm.x = d.x;
- this.rm.y = d.y;
- this.hC(this.rm) && this.f1(this.rm) && (this.cw = q)
- }
- if (!this.cw) return t;
- this.vj(q); (d = this.pg()) && d.Wr(J.lU, this, c);
- this.YFa();
- return q
- },
- yd: function(c) {
- var d = c.mh();
- this.oB.x = d.x;
- this.oB.y = d.y;
- this.vj(this.hC(d)); (d = this.pg()) && d.Wr(J.FE, this, c);
- this.Rfa()
- },
- cd: function(c) {
- var d = c.mh();
- this.Dr.x = d.x;
- this.Dr.y = d.y; (d = this.pg()) && d.Wr(J.Eo, this, c);
- c = this.SF;
- this.vj(t);
- c ? this.o2() : this.Mca()
- },
- Xe: function() {
- this.vj(t);
- this.Mca()
- },
- E0a: u(),
- YFa: function() {
- this.Kn && this.Kn(this, J.lU);
- this.Ln && this.Mn && this.Mn.call(this.Ln, this, J.UK)
- },
- Rfa: function() {
- this.Kn && this.Kn(this, J.FE);
- this.Ln && this.Mn && this.Mn.call(this.Ln, this, J.FE)
- },
- o2: function() {
- this.Kn && this.Kn(this, J.Eo);
- this.Ln && this.Mn && this.Mn.call(this.Ln, this, J.Eo)
- },
- Mca: function() {
- this.Kn && this.Kn(this, J.mU);
- this.Ln && this.Mn && this.Mn.call(this.Ln, this, J.mU)
- },
- a0a: u(),
- uB: function(c, d) {
- d === m ? this.Kn = c: (this.Mn = c, this.Ln = d)
- },
- hC: function(c) {
- var d = C.rect(0, 0, this.o.width, this.o.height);
- return C.Ju(d, this.wi(c))
- },
- f1: function(c) {
- this.bV = t;
- for (var d = this.getParent(), f = s; d;) {
- if (d instanceof L && d.Kq) {
- this.bV = q;
- f = d;
- break
- }
- d = d.getParent()
- }
- return ! this.bV ? q: f ? f.hC(c) ? f.f1(c) : t: q
- },
- VQa: function(c) {
- C.log("clippingParentAreaContainPoint is deprecated. Please use isClippingParentContainsPoint instead.");
- this.f1(c)
- },
- Exa: function(c, d, f) {
- var g = this.pg();
- g && g.Exa(c, d, f)
- },
- p: function(c, d) {
- if (this.$c) {
- var f = this.pg();
- f && (f = f.UH(), 0 >= f.width || 0 >= f.height ? (this.Ed.x = 0, this.Ed.y = 0) : d ? (this.Ed.x = c / f.width, this.Ed.y = d / f.height) : (this.Ed.x = c.x / f.width, this.Ed.y = c.y / f.height))
- }
- C.A.prototype.p.call(this, c, d)
- },
- rs: function(c) {
- if (this.$c) {
- var d = this.pg();
- d && (d = d.width, this.Ed.x = 0 >= d ? 0 : c / d)
- }
- C.A.prototype.rs.call(this, c)
- },
- Uu: function(c) {
- if (this.$c) {
- var d = this.pg();
- d && (d = d.height, this.Ed.y = 0 >= d ? 0 : c / d)
- }
- C.A.prototype.Uu.call(this, c)
- },
- Z2: function(c) {
- this.Ed = c;
- if (this.$c && (c = this.pg())) c = c.UH(),
- this.p(c.width * this.Ed.x, c.height * this.Ed.y)
- },
- Bva: function(c) {
- this.Ed.x = c;
- if (this.$c) {
- var d = this.pg();
- d && this.rs(d.width * c)
- }
- },
- Cva: function(c) {
- this.Ed.y = c;
- if (this.$c) {
- var d = this.pg();
- d && this.Uu(d.height * c)
- }
- },
- AJa: function() {
- this.S(this.dk())
- },
- aWa: function() {
- return C.d(this.Ed)
- },
- Ssa: function() {
- return this.Ed.x
- },
- Tsa: function() {
- return this.Ed.y
- },
- a3: x("qh"),
- xBa: A("qh"),
- Nd: function(c) {
- this.Bb = c;
- this.Ak()
- },
- oI: A("Bb"),
- Uf: function(c) {
- this.Db = c;
- this.yl()
- },
- pI: A("Db"),
- Ak: u(),
- yl: u(),
- Qn: u(),
- nDa: A("Pv"),
- isEnabled: A("Wc"),
- yc: function() {
- return this.Rc() - this.Ab.x * this.ca.width
- },
- wd: function() {
- return this.Vd() - this.Ab.y * this.ca.height
- },
- Fc: function() {
- return this.yc() + this.ca.width
- },
- Be: function() {
- return this.wd() + this.ca.height
- },
- kXa: function() {
- C.log("getTouchStartPos is deprecated. Please use getTouchBeganPosition instead.");
- return this.J0()
- },
- J0: function() {
- return C.d(this.rm)
- },
- iXa: function() {
- C.log("getTouchMovePos is deprecated. Please use getTouchMovePosition instead.");
- return this.eCa()
- },
- eCa: function() {
- return C.d(this.oB)
- },
- gXa: function() {
- C.log("getTouchEndPos is deprecated. Please use getTouchEndPosition instead.");
- return this.dCa()
- },
- dCa: function() {
- return C.d(this.Dr)
- },
- Ze: x("kd"),
- getName: A("kd"),
- sCa: A("Jr"),
- ly: function(c) {
- c && (this.wA[c.Cm()] = c, this.Ct = c.Cm())
- },
- ml: function(c) {
- c = c || this.Ct;
- return this.wA[c]
- },
- fk: B("Widget"),
- s: function() {
- var c = this.Uh();
- c.vx(this);
- c.ux(this);
- return c
- },
- Uh: function() {
- return J.create()
- },
- ux: function(c) {
- c = c.le();
- for (var d = 0; d < c.length; d++) {
- var f = c[d];
- f instanceof J && this.q(f.s())
- }
- },
- xi: u(),
- vx: function(c) {
- this.Ib(c.isEnabled());
- this.va(c.Ja);
- this.wR(c.Pv);
- this.vh(c.k1());
- this.ul(c.Wa);
- this.TR(c.CO);
- this.Qm(c.Fm());
- this.Ze(c.getName());
- this.ey(c.xq);
- this.Cb.width = c.Cb.width;
- this.Cb.height = c.Cb.height;
- this.ca.width = c.ca.width;
- this.ca.height = c.ca.height;
- this.mc.width = c.mc.width;
- this.mc.height = c.mc.height;
- this.xi(c);
- this.$A = c.$A;
- this.hg.x = c.hg.x;
- this.hg.y = c.hg.y;
- this.qh = c.qh;
- this.Ed.x = c.Ed.x;
- this.Ed.y = c.Ed.y;
- this.p(c.Ld());
- this.S(c.dk());
- this.gb(c.ia);
- this.pb(c.pa);
- this.th(c.Mx());
- this.i3(c.Xi);
- this.j3(c.im);
- this.Nd(c.oI());
- this.Uf(c.pI());
- this.G(c.Xa());
- this.K(c.rb());
- this.Kn = c.Kn;
- this.Ln = c.Ln;
- this.Mn = c.Mn;
- this.Rq = c.Rq;
- this.Rj = c.Rj;
- for (var d in c.wA) {
- var f = c.wA[d];
- f && this.ly(f.s())
- }
- this.gc()
- },
- ey: x("xq"),
- Ida: A("xq"),
- Xa: function() {
- return C.color(this.ya.r, this.ya.g, this.ya.b, this.ya.a)
- },
- K: function(c) {
- c !== this.ya.a && (this.ya.a = c, this.jD(c))
- },
- rb: A("hb"),
- jD: function(c) {
- for (var d in this.l) {
- var f = this.l[d];
- f && f.sb && f.K(c)
- }
- },
- Ei: function(c) {
- c.sb && c.G(this.ya)
- },
- Al: function(c) {
- c.sb && c.K(this.ya.a)
- },
- I6a: function(c) {
- c.G(this.ya);
- c.K(this.Eb)
- }
- }),
- H = J.prototype;
- C.e(H, "xPercent", H.Ssa, H.Bva);
- C.e(H, "yPercent", H.Tsa, H.Cva);
- C.e(H, "widthPercent", H.Rsa, H.Ava);
- C.e(H, "heightPercent", H.rsa, H.Yua);
- C.e(H, "widgetParent", H.pg);
- C.e(H, "enabled", H.isEnabled, H.Ib);
- C.e(H, "focused", H.sDa, H.yR);
- C.e(H, "sizeType", H.OBa, H.l3);
- C.e(H, "widgetType", H.sCa);
- C.e(H, "touchEnabled", H.k1, H.vh);
- C.e(H, "updateEnabled", H.DDa, H.TR);
- C.e(H, "bright", H.nDa, H.wR);
- C.e(H, "name", H.getName, H.Ze);
- C.e(H, "actionTag", H.Ida, H.ey);
- C.e(H, "opacity", H.rb, H.K);
- H = s;
- J.create = function() {
- return new J
- };
- J.rS = -1;
- J.wD = 0;
- J.qS = 1;
- J.HE = 0;
- J.xpa = 1;
- J.bn = 0;
- J.Jl = 1;
- J.Nl = 0;
- J.Zm = 1;
- J.Pa = 0;
- J.ab = 1;
- J.UK = 0;
- J.FE = 1;
- J.Eo = 2;
- J.mU = 3;
- J.E7 = 0;
- J.voa = 1;
- J.g7 = 0;
- J.h7 = 1;
- C.fma = C.oe.extend({
- kwa: s,
- lwa: s,
- ctor: function(c, d) {
- this.kwa = d;
- this.lwa = c
- }
- });
- var L = J.extend({
- Kq: t,
- Xs: s,
- Cd: s,
- qL: s,
- ZE: s,
- et: s,
- $E: J.Pa,
- ii: s,
- ff: s,
- ya: s,
- Kg: s,
- Ef: s,
- Ji: s,
- Eb: 255,
- rL: s,
- Dt: s,
- $g: q,
- JL: q,
- Lq: s,
- $f: s,
- XW: t,
- sPa: t,
- So: s,
- OV: s,
- qa: "Layout",
- Aq: s,
- Ga: 0,
- Ha: 0,
- mOa: 0,
- tOa: 0,
- oOa: 0,
- rOa: 0,
- sOa: 0,
- nOa: 0,
- pOa: 0,
- qOa: 0,
- lOa: 0,
- iOa: 0,
- jOa: 0,
- kOa: 0,
- j9: 0,
- cPa: 0,
- mw: t,
- Bw: t,
- $q: t,
- ctor: function() {
- this.Dt = L.yja;
- this.Jr = J.xpa;
- this.Lq = L.SJ;
- this.et = L.t4;
- J.prototype.ctor.call(this);
- this.ZE = C.rect(0, 0, 0, 0);
- this.ya = C.color(255, 255, 255, 255);
- this.Kg = C.color(255, 255, 255, 255);
- this.Ef = C.color(255, 255, 255, 255);
- this.Ji = C.d(0, -1);
- this.rL = C.size(0, 0);
- this.So = C.rect(0, 0, 0, 0);
- this.Aq = C.color(255, 255, 255, 255)
- },
- Z: function() {
- J.prototype.Z.call(this);
- this.$f && this.$f.Z();
- this.JL = this.$g = q
- },
- Na: function() {
- J.prototype.Na.call(this);
- this.$f && this.$f.Na()
- },
- w4a: x("mw"),
- xYa: A("mw"),
- O4a: x("Bw"),
- CYa: A("Bw"),
- Pf: function(c, d) {
- if (this.$q || this.Rq) {
- var f = this.getParent();
- this.$q = t;
- if (this.Bw) {
- var g = this.Bw(c, d);
- return g instanceof L && f ? (f.$q = q, f.Pf(c, this)) : g
- }
- if (s == f) return this;
- f.$q = q;
- return f.Pf(c, this)
- }
- if (d.Rq || d instanceof L) if (this.Dt == L.nq) switch (c) {
- case J.bn:
- return this.EM(c, d);
- case J.Jl:
- return this.DM(c, d);
- case J.Zm:
- case J.Nl:
- return this.bp(this, c) ? this.jw(d, c) ? this.Pf(c, this) : d: this.Pf(c, this);
- default:
- return C.assert(0, "Invalid Focus Direction"),
- d
- } else if (this.Dt == L.oq) switch (c) {
- case J.bn:
- case J.Jl:
- return this.bp(this, c) ? this.jw(d, c) ? this.Pf(c, this) : d: this.Pf(c, this);
- case J.Zm:
- return this.DM(c, d);
- case J.Nl:
- return this.EM(c, d);
- default:
- return C.assert(0, "Invalid Focus Direction"),
- d
- } else return C.assert(0, "Un Supported Layout type, please use VBox and HBox instead!!!"),
- d;
- else return d
- },
- FC: s,
- j: function() {
- return J.prototype.j.call(this) ? (this.We(t), this.yf(C.size(0, 0)), this.S(0, 0), this.FC = this.EF.bind(this), q) : t
- },
- Fqa: function(c) {
- c = c || C.t;
- for (var d = this.$f,
- f = C.view.ia,
- g = C.view.pa,
- h = 0; h < d.$b.length; h++) {
- var k = d.$b[h].wg,
- n = k[0];
- c.beginPath();
- c.moveTo(n.x * f, -n.y * g);
- for (var n = 1,
- p = k.length; n < p; n++) c.lineTo(k[n].x * f, -k[n].y * g)
- }
- },
- q: function(c, d, f) {
- c instanceof J && this.Tia(c);
- J.prototype.q.call(this, c, d, f);
- this.$g = q
- },
- removeChild: function(c, d) {
- J.prototype.removeChild.call(this, c, d);
- this.$g = q
- },
- xf: function(c) {
- J.prototype.xf.call(this, c);
- this.$g = q
- },
- Ku: function(c) {
- J.prototype.Ku(c);
- this.$g = q
- },
- oDa: A("Kq"),
- J: function(c) {
- if (this.Ja) if (this.Qn(), this.Vl(), this.Kq) switch (this.Lq) {
- case L.SJ:
- this.E3(c);
- break;
- case L.H4:
- this.z2(c)
- } else J.prototype.J.call(this, c)
- },
- ed: function() {
- J.prototype.ed.call(this);
- this.Vl()
- },
- E3: s,
- Lva: function(c) {
- var d = c || C.t;
- if (this.$f && this.$f.Ja) if (L.rn = -1, L.rn + 1 == C.xy) L.gx = q,
- L.gx && (C.log("Nesting more than " + C.xy + "stencils is not supported. Everything will be drawn without stencil for this node and its childs."), L.gx = t),
- C.A.prototype.J.call(this, c);
- else {
- L.rn++;
- var f = 1 << L.rn,
- g = f | f - 1;
- c = d.isEnabled(d.STENCIL_TEST);
- var h = d.getParameter(d.STENCIL_WRITEMASK),
- k = d.getParameter(d.STENCIL_FUNC),
- n = d.getParameter(d.STENCIL_REF),
- p = d.getParameter(d.STENCIL_VALUE_MASK),
- r = d.getParameter(d.STENCIL_FAIL),
- v = d.getParameter(d.STENCIL_PASS_DEPTH_FAIL),
- y = d.getParameter(d.STENCIL_PASS_DEPTH_PASS);
- d.enable(d.STENCIL_TEST);
- d.stencilMask(f);
- var z = d.getParameter(d.DEPTH_WRITEMASK);
- d.depthMask(t);
- d.stencilFunc(d.NEVER, f, f);
- d.stencilOp(d.ZERO, d.KEEP, d.KEEP);
- C.Df.X_(C.d(0, 0), C.mga(), C.color(255, 255, 255, 255));
- d.stencilFunc(d.NEVER, f, f);
- d.stencilOp(d.REPLACE, d.KEEP, d.KEEP);
- C.Zr();
- this.transform();
- this.$f.J();
- d.depthMask(z);
- d.stencilFunc(d.EQUAL, g, g);
- d.stencilOp(d.KEEP, d.KEEP, d.KEEP);
- g = f = 0;
- this.ed();
- this.YR();
- for (var z = this.l,
- D = this.fh,
- E = z.length,
- F = D.length,
- G; f < E; f++) if ((G = z[f]) && 0 > G.Wa) G.J();
- else break;
- for (; g < F; g++) if ((G = D[g]) && 0 > G.Wa) G.J();
- else break;
- for (this.ka(); f < E; f++) z[f].J();
- for (; g < F; g++) D[g].J();
- d.stencilFunc(k, n, p);
- d.stencilOp(r, v, y);
- d.stencilMask(h);
- c || d.disable(d.STENCIL_TEST);
- L.rn--;
- C.Yr()
- }
- },
- Oba: function(c) {
- if (this.$f && this.$f.Ja) {
- c = c || C.t;
- if (this.Rv() || this.$f instanceof C.u) {
- var d = c.canvas,
- f = L.TW();
- f.width = d.width;
- f.height = d.height;
- f.getContext("2d").drawImage(d, 0, 0);
- c.save();
- C.A.prototype.J.call(this, c);
- c.globalCompositeOperation = "destination-in";
- this.transform(c);
- this.$f.J();
- c.restore();
- c.save();
- c.setTransform(1, 0, 0, 1, 0, 0);
- c.globalCompositeOperation = "destination-over";
- c.drawImage(f, 0, 0)
- } else {
- var f = this.l,
- g;
- c.save();
- this.transform(c);
- this.$f.J(c);
- c.clip();
- this.Rv(q);
- this.ed();
- this.YR();
- for (var h, k = this.fh,
- n = f.length,
- p = k.length,
- d = 0; d < n; d++) if ((g = f[d]) && 0 > g.Wa) g.J(c);
- else break;
- for (h = 0; h < p; h++) if ((g = k[h]) && 0 > g.Wa) g.J(c);
- else break;
- for (; d < n; d++) f[d].J(c);
- for (; h < p; h++) k[h].J(c);
- this.Rv(t)
- }
- c.restore()
- }
- },
- QF: t,
- Rv: function(c) {
- if (c === q || c === t) C.Tc.prototype.QF = c;
- return C.Tc.prototype.QF
- },
- z2: s,
- Lua: function(c) {
- var d = this.Qda();
- c = c || C.t;
- this.XW && c.enable(c.SCISSOR_TEST);
- C.view.LR(d.x, d.y, d.width, d.height);
- C.A.prototype.J.call(this);
- this.XW && c.disable(c.SCISSOR_TEST)
- },
- aq: function(c) {
- if (c != this.Kq) switch (this.Kq = c, this.Lq) {
- case L.SJ:
- c ? (this.$f = C.Tg.create(), C.L === C.cb && (this.$f.ka = this.Fqa.bind(this)), this.$c && this.$f.Z(), this.wia(this.o)) : (this.$c && this.$f.Na(), this.$f = s)
- }
- },
- tha: function(c) {
- if (c != this.Lq) {
- var d = this.Kq;
- this.aq(t);
- this.Lq = c;
- this.aq(d)
- }
- },
- GTa: A("Lq"),
- wia: function(c) {
- if (this.Kq && this.Lq == L.SJ) {
- var d = [];
- d[0] = C.d(0, 0);
- d[1] = C.d(c.width, 0);
- d[2] = C.d(c.width, c.height);
- d[3] = C.d(0, c.height);
- c = C.color.GREEN;
- this.$f.clear();
- this.$f.Of(d, 4, c, 0, c)
- }
- },
- w2a: function() {
- this.Vl()
- },
- Qda: function() {
- if (this.JL) {
- var c = this.vm(C.d(0, 0)),
- d = this.ql(),
- f = this.o.width * d.a,
- d = this.o.height * d.P,
- g;
- g = this;
- for (var h = t; g;) if ((g = g.getParent()) && g instanceof L && g.Kq) if (h || (this.OV = g, h = q), g.Lq == L.H4) {
- this.XW = t;
- break
- }
- if (this.OV) {
- g = this.OV.Qda();
- var h = c.x - f * this.Ab.x,
- k = c.y - d * this.Ab.y,
- n = f,
- p = d,
- r = c.x - g.x;
- 0 > r && (h = g.x, n += r);
- f = c.x + f - (g.x + g.width);
- 0 < f && (n -= f);
- f = c.y + d - (g.y + g.height);
- 0 < f && (p -= f);
- c = c.y - g.y;
- 0 > c && (k = g.x, p += c);
- 0 > n && (n = 0);
- 0 > p && (p = 0);
- this.So.x = h;
- this.So.y = k;
- this.So.width = n;
- this.So.height = p
- } else this.So.x = c.x - f * this.Ab.x,
- this.So.y = c.y - d * this.Ab.y,
- this.So.width = f,
- this.So.height = d;
- this.JL = t
- }
- return this.So
- },
- gc: function() {
- J.prototype.gc.call(this);
- this.wia(this.o);
- this.JL = this.$g = q;
- this.Cd && (this.Cd.p(0.5 * this.o.width, 0.5 * this.o.height), this.Xs && this.Cd instanceof C.Sa && this.Cd.De(this.o));
- this.ii && this.ii.Ca(this.o);
- this.ff && this.ff.Ca(this.o)
- },
- rR: function(c) {
- this.Xs != c && (this.Ai(this.Cd), this.Cd = s, this.Xs = c, this.lca(), this.Nu(this.qL, this.$E), this.bJ(this.ZE))
- },
- gYa: A("Xs"),
- Nu: function(c, d) {
- if (c) {
- d = d || J.Pa;
- this.Cd == s && this.lca();
- this.qL = c;
- this.$E = d;
- if (this.Xs) {
- var f = this.Cd;
- switch (this.$E) {
- case J.Pa:
- f.Ce(c);
- break;
- case J.ab:
- f.pl(c)
- }
- f.De(this.o)
- } else switch (f = this.Cd, this.$E) {
- case J.Pa:
- f.Va(c);
- break;
- case J.ab:
- f.pc(c)
- }
- this.rL = this.Cd.i();
- this.Cd.p(this.o.width / 2, this.o.height / 2);
- this.cca()
- }
- },
- bJ: function(c) {
- this.ZE = c;
- this.Xs && this.Cd.Gc(c)
- },
- ZSa: A("ZE"),
- Tia: function(c) {
- if (c) switch (this.Dt) {
- case L.nq:
- case L.oq:
- var d = c.ml(wc.LINEAR);
- d || c.ly(Ic.create());
- break;
- case L.$y:
- (d = c.ml(wc.$y)) || c.ly(P.create())
- }
- },
- lca: function() {
- this.Xs ? (this.Cd = C.Sa.create(), this.Cd.De(this.o)) : this.Cd = C.u.create();
- this.Yc(this.Cd, L.Sja, -1);
- this.Cd.p(this.o.width / 2, this.o.height / 2)
- },
- b2a: function() {
- this.Cd && (this.Ai(this.Cd), this.Cd = s, this.qL = "", this.rL = C.size(0, 0))
- },
- pR: function(c) {
- if (this.et != c) {
- switch (this.et) {
- case L.t4:
- this.ii && (this.Ai(this.ii), this.ii = s);
- this.ff && (this.Ai(this.ff), this.ff = s);
- break;
- case L.oS:
- this.ii && (this.Ai(this.ii), this.ii = s);
- break;
- case L.nS:
- this.ff && (this.Ai(this.ff), this.ff = s)
- }
- this.et = c;
- switch (this.et) {
- case L.oS:
- this.ii = C.gd.create();
- this.ii.Ca(this.o);
- this.ii.K(this.Eb);
- this.ii.G(this.ya);
- this.Yc(this.ii, L.r4, -1);
- break;
- case L.nS:
- this.ff = C.pq.create(C.color(255, 0, 0, 255), C.color(0, 255, 0, 255)),
- this.ff.Ca(this.o),
- this.ff.K(this.Eb),
- this.ff.tg(this.Kg),
- this.ff.sg(this.Ef),
- this.ff.UR(this.Ji),
- this.Yc(this.ff, L.r4, -1)
- }
- }
- },
- WSa: A("et"),
- Mu: function(c, d) {
- d ? (this.Kg.r = c.r, this.Kg.g = c.g, this.Kg.b = c.b, this.ff && this.ff.tg(c), this.Ef = d, this.ff && this.ff.sg(d)) : (this.ya.r = c.r, this.ya.g = c.g, this.ya.b = c.b, this.ii && this.ii.G(c))
- },
- USa: function() {
- var c = this.ya;
- return C.color(c.r, c.g, c.b, c.a)
- },
- bTa: function() {
- var c = this.Kg;
- return C.color(c.r, c.g, c.b, c.a)
- },
- YSa: function() {
- var c = this.Ef;
- return C.color(c.r, c.g, c.b, c.a)
- },
- oR: function(c) {
- this.Eb = c;
- switch (this.et) {
- case L.oS:
- this.ii.K(c);
- break;
- case L.nS:
- this.ff.K(c)
- }
- },
- VSa: A("Eb"),
- qR: function(c) {
- this.Ji.x = c.x;
- this.Ji.y = c.y;
- this.ff && this.ff.UR(c)
- },
- XSa: A("Ji"),
- t3a: function(c) {
- this.Aq.r = c.r;
- this.Aq.g = c.g;
- this.Aq.b = c.b;
- this.cca()
- },
- u3a: function(c) {
- this.Aq.a = c;
- this.aAa()
- },
- aAa: function() {
- var c = this.Aq;
- return C.color(c.r, c.g, c.b, c.a)
- },
- $Sa: function() {
- return this.Aq.a
- },
- cca: function() {
- this.Cd && this.Cd.G(this.Aq)
- },
- aTa: A("rL"),
- Pm: function(c) {
- this.Dt = c;
- c = this.l;
- for (var d = s,
- f = 0; f < c.length; f++) d = c[f],
- d instanceof J && this.Tia(d);
- this.$g = q
- },
- Cm: A("Dt"),
- y2a: function() {
- this.$g = q
- },
- Vl: function() {
- if (this.$g) {
- var c = this.Ara();
- c && c.Vl(this);
- this.$g = t
- }
- },
- Ara: function() {
- var c = s;
- switch (this.Dt) {
- case L.oq:
- c = Jc.create();
- break;
- case L.nq:
- c = Kc.create();
- break;
- case L.$y:
- c = Lc.create()
- }
- return c
- },
- MW: function() {
- return this.i()
- },
- NW: function() {
- return this.le()
- },
- lPa: u(),
- BOa: u(),
- iPa: u(),
- jPa: u(),
- Lta: u(),
- Lta: u(),
- HPa: function() {
- this.Cd && this.Cd.K(this.j9)
- },
- IPa: function() {
- this.Cd && (this.Cd.G(this.Aq), this.Cd.K(this.j9))
- },
- R$: function() {
- for (var c = this.le(), d = C.size(0, 0), f = 0, g, h = 0, k = c.length; h < k; h++) if (g = c[h], s != g && g instanceof L) g = g.R$(),
- d.width += g.width,
- d.height += g.height;
- else if (g instanceof J) {
- f++;
- var n = w.ml().pi;
- g = w.i();
- d.width += g.width + 0.5 * (n.right + n.left);
- d.height += g.height + 0.5 * (n.top + n.bottom)
- }
- c = this.Cm();
- c == L.nq && (d.height -= d.height / f * (f - 1));
- c == L.oq && (d.width -= d.width / f * (f - 1));
- return d
- },
- EF: function(c, d) {
- if (d == s || d == this) return this.x$();
- var f = 0,
- g = this.le(),
- h = g.length,
- k,
- n = C.pv,
- p = 0;
- if (c == J.bn || c == J.Jl || c == J.Zm || c == J.Nl) {
- for (k = this.Zo(d); f < h;) {
- var r = g[f];
- r && (r instanceof J && r.Rj) && (r = r instanceof L ? r.r9(d) : C.Ye(C.cc(this.Zo(r), k)), r < n && (p = f, n = r));
- f++
- }
- return p
- }
- C.assert(0, "invalid focus direction!");
- return 0
- },
- vM: function(c, d) {
- if (d == s || d == this) return this.x$();
- var f = 0,
- g = this.le().size(),
- h = -C.pv,
- k = 0;
- if (c == J.bn || c == J.Jl || c == J.Zm || c == J.Nl) {
- for (var n = this.Zo(d); f < g;) {
- if (w && w instanceof J && w.Rj) {
- var p = w instanceof L ? w.q9(d) : C.Ye(C.cc(this.Zo(w), n));
- p > h && (k = f, h = p)
- }
- f++
- }
- return k
- }
- C.assert(0, "invalid focus direction!!!");
- return 0
- },
- r9: function(c) {
- for (var d = C.pv,
- f = this.Zo(c), g = this.l, h = 0, k = g.length; h < k; h++) {
- var n = g[h];
- if (n instanceof L) n = n.r9(c);
- else if (n instanceof J && n.Rj) n = C.Ye(C.cc(this.Zo(n), f));
- else continue;
- n < d && (d = n)
- }
- return d
- },
- q9: function(c) {
- for (var d = -C.pv,
- f = this.Zo(c), g = this.l, h = 0, k = g.length; h < k; h++) {
- var n = g[h];
- if (n instanceof L) n = n.q9(c);
- else if (n instanceof J && n.Rj) n = this.Zo(w),
- n = C.Ye(C.cc(n, f));
- else continue;
- n > d && (d = n)
- }
- return d
- },
- Xra: function(c, d) {
- if (d != s) {
- var f = this.Zo(d),
- g = this.Zo(this.y$());
- c == J.bn ? this.FC = f.x > g.x ? this.EF.bind(this) : this.vM.bind(this) : c == J.Jl ? this.FC = f.x > g.x ? this.vM.bind(this) : this.EF.bind(this) : c == J.Zm ? this.FC = f.y > g.y ? this.EF.bind(this) : this.vM.bind(this) : c == J.Nl ? this.FC = f.y < g.y ? this.EF.bind(this) : this.vM.bind(this) : C.assert(0, "invalid direction!")
- }
- },
- y$: function() {
- for (var c = this.l,
- d = 0,
- f = c.length; d < f; d++) {
- var g = c[d];
- if (g instanceof L) {
- if (g = g.y$()) return g
- } else if (g instanceof C.QNa) return g
- }
- return s
- },
- x$: function() {
- for (var c = 0,
- d = this.le(), f = d.length; c < f;) {
- var g = d[c];
- if (g && g instanceof J && g.Rj) return c;
- c++
- }
- return 0
- },
- Wra: function(c) {
- var d = this.eA(c);
- return d ? d.Rj ? d: this.Wra(c + 1) : s
- },
- Zo: function(c) {
- var d = c instanceof L ? c.R$() : c.i();
- return c.vm(C.d(d.width / 2, d.height / 2))
- },
- DM: function(c, d) {
- var f = s,
- f = this.l,
- g = f.indexOf(d),
- g = g + 1;
- if (g < f.length) {
- if (f = this.eA(g)) {
- if (f.Rj) {
- if (f instanceof L) return f.$q = q,
- f.Pf(c, f);
- this.xx(d, f);
- return f
- }
- return this.DM(c, f)
- }
- return d
- }
- if (this.mw) {
- if (this.JV()) {
- f = this.eA(0);
- if (f.Rj) {
- if (f instanceof L) return f.$q = q,
- f.Pf(c, f);
- this.xx(d, f);
- return f
- }
- return this.DM(c, f)
- }
- return d instanceof L ? d: this.jn
- }
- return this.bp(d, c) ? this.jw(this, c) ? this.Pf(c, this) : d instanceof L ? d: this.jn: this.Pf(c, this)
- },
- EM: function(c, d) {
- var f = s,
- f = this.l,
- g = f.indexOf(d),
- g = g - 1;
- if (0 <= g) {
- f = this.eA(g);
- if (f.Rj) {
- if (f instanceof L) return f.$q = q,
- f.Pf(c, f);
- this.xx(d, f);
- return f
- }
- return this.EM(c, f)
- }
- if (this.mw) {
- if (this.JV()) {
- g = f.length - 1;
- f = this.eA(g);
- if (f.Rj) {
- if (f instanceof L) return f.$q = q,
- f.Pf(c, f);
- this.xx(d, f);
- return f
- }
- return this.EM(c, f)
- }
- return d instanceof L ? d: this.jn
- }
- return this.bp(d, c) ? this.jw(this, c) ? this.Pf(c, this) : d instanceof L ? d: this.jn: this.Pf(c, this)
- },
- eA: function(c) {
- for (var d = this.l,
- f = d.length,
- g = 0,
- h = c; c < f;) {
- var k = d[c];
- if (k && k instanceof J) return k;
- g++;
- c++
- }
- for (c = 0; c < h;) {
- if ((f = d[c]) && f instanceof J) return f;
- g++;
- c++
- }
- return s
- },
- bp: function(c, d) {
- var f = c.getParent();
- if (f instanceof L) return q;
- var g = f.le(),
- h = g.indexOf(c);
- if (f.Cm() == L.nq) {
- if (d == J.bn) return 0 == h ? 1 * this.bp(f, d) : t;
- if (d == J.Jl) return h == g.length - 1 ? 1 * this.bp(f, d) : t;
- if (d == J.Zm || d == J.Nl) return this.bp(f, d)
- } else if (f.Cm() == L.oq) {
- if (d == J.Nl) return 0 == h ? 1 * this.bp(f, d) : t;
- if (d == J.Zm) return h == g.length - 1 ? 1 * this.bp(f, d) : t;
- if (d == J.bn || d == J.Jl) return this.bp(f, d)
- } else C.assert(0, "invalid layout Type");
- return t
- },
- jw: function(c, d) {
- var f = c.getParent();
- if (f == s) return t;
- if (f.mw) {
- var g = f.Cm();
- if (g == L.nq) return d == J.bn || d == J.Jl ? q: this.jw(f, d);
- if (g == L.oq) return d == J.Zm || d == J.Nl ? q: this.jw(f, d);
- C.assert(0, "invalid layout type")
- } else return this.jw(f, d)
- },
- Bw: function(c, d) {
- if (this.JV()) {
- var f = this.jn;
- this.Xra(c, f);
- f = this.FC(c, f);
- f = this.eA(f);
- if (f instanceof L) return f.$q = q,
- f.Pf(c, f);
- this.xx(d, f);
- return f
- }
- return this
- },
- JV: function() {
- for (var c = this.l,
- d = 0,
- f = c.length; d < f; d++) {
- var g = c[d];
- if (g && g instanceof J && g.Rj) return q
- }
- return t
- },
- fk: B("Layout"),
- Uh: function() {
- return L.create()
- },
- ux: function(c) {
- J.prototype.ux.call(this, c)
- },
- xi: function(c) {
- this.rR(c.Xs);
- this.Nu(c.qL, c.$E);
- this.bJ(c.ZE);
- this.pR(c.et);
- this.Mu(c.ya);
- this.Mu(c.Kg, c.Ef);
- this.oR(c.Eb);
- this.qR(c.Ji);
- this.Pm(c.Dt);
- this.aq(c.Kq);
- this.tha(c.Lq);
- this.mw = c.mw;
- this.Bw = c.Bw
- }
- });
- L.MM = s;
- L.gx = s;
- L.rn = s;
- L.GG = s;
- C.L == C.la ? (L.prototype.E3 = L.prototype.Lva, L.prototype.z2 = L.prototype.Lua) : (L.prototype.E3 = L.prototype.Oba, L.prototype.z2 = L.prototype.Oba);
- L.TW = function() {
- return C.Tc.GG || (C.Tc.GG = C.bd("canvas"))
- };
- H = L.prototype;
- C.e(H, "clippingEnabled", H.oDa, H.aq);
- C.e(H, "clippingType", s, H.tha);
- C.e(H, "layoutType", H.Cm, H.Pm);
- H = s;
- L.create = function() {
- return new L
- };
- L.t4 = 0;
- L.oS = 1;
- L.nS = 2;
- L.yja = 0;
- L.oq = 1;
- L.nq = 2;
- L.$y = 3;
- L.SJ = 0;
- L.H4 = 1;
- L.Sja = -2;
- L.r4 = -2;
- var Mc = uc.extend({
- left: 0,
- top: 0,
- right: 0,
- bottom: 0,
- ctor: function(c, d, f, g) {
- c && d === m && (this.left = c.left, this.top = c.top, this.right = c.right, this.bottom = c.bottom);
- g !== m && (this.left = c, this.top = d, this.right = f, this.bottom = g)
- },
- mo: function(c, d, f, g) {
- this.left = c;
- this.top = d;
- this.right = f;
- this.bottom = g
- },
- cSa: function(c) {
- return this.left == c.left && this.top == c.top && this.right == c.right && this.bottom == c.bottom
- }
- });
- function Nc() {
- return new Mc(0, 0, 0, 0)
- }
- var wc = uc.extend({
- pi: s,
- Ct: s,
- ctor: function() {
- this.pi = new Mc;
- this.Ct = wc.NONE
- },
- mo: function(c, d, f, g) {
- "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 = f, this.pi.bottom = g)
- },
- mVa: A("pi"),
- Cm: A("Ct"),
- s: function() {
- var c = this.Uh();
- c.vx(this);
- return c
- },
- Uh: function() {
- return wc.create()
- },
- vx: function(c) {
- this.pi = c.pi
- }
- });
- wc.create = function() {
- return new wc
- };
- wc.NONE = 0;
- wc.LINEAR = 1;
- wc.$y = 2;
- var Ic = wc.extend({
- $M: s,
- ctor: function() {
- wc.prototype.ctor.call(this);
- this.$M = Ic.NONE;
- this.Ct = wc.LINEAR
- },
- oc: x("$M"),
- MH: A("$M"),
- Uh: function() {
- return Ic.create()
- },
- vx: function(c) {
- wc.prototype.vx.call(this, c);
- c && (this.mR(c.Iw), this.IR(c.SA), this.JR(c.TA), this.oc(c.$M))
- }
- });
- Ic.create = function() {
- return new Ic
- };
- Ic.NONE = 0;
- Ic.bn = 1;
- Ic.U7 = 2;
- Ic.Jl = 3;
- Ic.pS = 4;
- Ic.ES = 5;
- Ic.DS = 6;
- var P = wc.extend({
- Iw: s,
- TA: "",
- SA: "",
- ri: t,
- ctor: function() {
- wc.prototype.ctor.call(this);
- this.Iw = P.NONE;
- this.SA = this.TA = "";
- this.ri = t;
- this.Ct = wc.$y
- },
- mR: x("Iw"),
- GSa: A("Iw"),
- JR: x("TA"),
- lWa: A("TA"),
- IR: x("SA"),
- kWa: A("SA"),
- Uh: function() {
- return P.create()
- },
- vx: function(c) {
- wc.prototype.vx.call(this, c);
- this.mR(c.Iw);
- this.JR(c.TA);
- this.IR(c.SA)
- }
- });
- P.create = function() {
- return new P
- };
- P.NONE = 0;
- P.T6 = 1;
- P.S6 = 2;
- P.U6 = 3;
- P.P6 = 4;
- P.yka = 5;
- P.R6 = 6;
- P.O6 = 7;
- P.N6 = 8;
- P.Q6 = 9;
- P.i6 = 10;
- P.h6 = 11;
- P.j6 = 12;
- P.p6 = 13;
- P.o6 = 14;
- P.n6 = 15;
- P.s6 = 16;
- P.r6 = 17;
- P.q6 = 18;
- P.l6 = 19;
- P.k6 = 20;
- P.m6 = 21;
- var bd = uc.extend({
- Vl: u()
- }),
- Jc = bd.extend({
- Vl: function(c) {
- var d = c.MW();
- c = c.NW();
- for (var f = d.height,
- g = 0,
- h = c.length; g < h; g++) {
- var k = c[g];
- if (k) {
- var n = k.ml();
- if (n) {
- var p = n.MH(),
- r = k.dk(),
- v = k.i(),
- y = r.x * v.width,
- f = f - (1 - r.y) * v.height;
- switch (p) {
- case Ic.Jl:
- y = d.width - (1 - r.x) * v.width;
- break;
- case Ic.DS:
- y = d.width / 2 - v.width * (0.5 - r.x)
- }
- n = n.pi;
- y += n.left;
- f -= n.top;
- k.p(y, f);
- f = k.Vd() - k.dk().y * k.i().height - n.bottom
- }
- }
- }
- }
- });
- Jc.create = function() {
- return new Jc
- };
- var Kc = bd.extend({
- Vl: function(c) {
- var d = c.MW();
- c = c.NW();
- for (var f = 0,
- g = 0,
- h = c.length; g < h; g++) {
- var k = c[g];
- if (k) {
- var n = k.ml();
- if (n) {
- var p = n.MH(),
- r = k.dk(),
- v = k.UH(),
- f = f + r.x * v.width,
- y = d.height - (1 - r.y) * v.height;
- switch (p) {
- case Ic.pS:
- y = r.y * v.height;
- break;
- case Ic.ES:
- y = d.height / 2 - v.height * (0.5 - r.y)
- }
- n = n.pi;
- f += n.left;
- y -= n.top;
- k.p(f, y);
- f = k.Fc() + n.right
- }
- }
- }
- }
- });
- Kc.create = function() {
- return new Kc
- };
- var Lc = bd.extend({
- qZ: s,
- LO: s,
- hH: s,
- Ga: 0,
- Ha: 0,
- ge: s,
- Vl: function(c) {
- for (var d = this.LO = this.gsa(c); 0 < this.qZ;) {
- for (var f = 0,
- g = d.length; f < g; f++) {
- this.hH = d[f];
- var h = this.hH.ml();
- h && !h.ri && this.dra(c) && (this.cra(), this.hH.p(this.Ga, this.Ha), h.ri = q)
- }
- this.qZ--
- }
- this.LO.length = 0
- },
- gsa: function(c) {
- c = c.NW();
- for (var d = [], f = 0, g = c.length; f < g; f++) {
- var h = c[f];
- h && (h.ml().ri = t, this.qZ++, d.push(h))
- }
- return d
- },
- Gsa: function(c) {
- var d = s;
- if ((c = c.ml().TA) && 0 != c.length) for (var f = this.LO,
- g = 0,
- h = f.length; g < h; g++) {
- var k = f[g];
- if (k) {
- var n = k.ml();
- if (n && n.SA == c) {
- d = k;
- this.ge = n;
- break
- }
- }
- }
- return d
- },
- dra: function(c) {
- var d = this.hH,
- f = d.dk(),
- g = d.i();
- this.Ha = this.Ga = 0;
- var h = this.Gsa(d),
- d = d.ml().Iw;
- c = c.MW();
- switch (d) {
- case P.NONE:
- case P.T6:
- this.Ga = f.x * g.width;
- this.Ha = c.height - (1 - f.y) * g.height;
- break;
- case P.S6:
- this.Ga = 0.5 * c.width - g.width * (0.5 - f.x);
- this.Ha = c.height - (1 - f.y) * g.height;
- break;
- case P.U6:
- this.Ga = c.width - (1 - f.x) * g.width;
- this.Ha = c.height - (1 - f.y) * g.height;
- break;
- case P.P6:
- this.Ga = f.x * g.width;
- this.Ha = 0.5 * c.height - g.height * (0.5 - f.y);
- break;
- case P.yka:
- this.Ga = 0.5 * c.width - g.width * (0.5 - f.x);
- this.Ha = 0.5 * c.height - g.height * (0.5 - f.y);
- break;
- case P.R6:
- this.Ga = c.width - (1 - f.x) * g.width;
- this.Ha = 0.5 * c.height - g.height * (0.5 - f.y);
- break;
- case P.O6:
- this.Ga = f.x * g.width;
- this.Ha = f.y * g.height;
- break;
- case P.N6:
- this.Ga = 0.5 * c.width - g.width * (0.5 - f.x);
- this.Ha = f.y * g.height;
- break;
- case P.Q6:
- this.Ga = c.width - (1 - f.x) * g.width;
- this.Ha = f.y * g.height;
- break;
- case P.i6:
- if (h) {
- if (this.ge && !this.ge.ri) return t;
- var d = h.Be(),
- k = h.yc();
- this.Ha = d + f.y * g.height;
- this.Ga = k + f.x * g.width
- }
- break;
- case P.h6:
- if (h) {
- if (this.ge && !this.ge.ri) return t;
- c = h.i();
- d = h.Be();
- this.Ha = d + f.y * g.height;
- this.Ga = h.yc() + 0.5 * c.width + f.x * g.width - 0.5 * g.width
- }
- break;
- case P.j6:
- if (h) {
- if (this.ge && !this.ge.ri) return t;
- d = h.Be();
- k = h.Fc();
- this.Ha = d + f.y * g.height;
- this.Ga = k - (1 - f.x) * g.width
- }
- break;
- case P.p6:
- if (h) {
- if (this.ge && !this.ge.ri) return t;
- d = h.Be();
- k = h.yc();
- this.Ha = d - (1 - f.y) * g.height;
- this.Ga = k - (1 - f.x) * g.width
- }
- break;
- case P.o6:
- if (h) {
- if (this.ge && !this.ge.ri) return t;
- c = h.i();
- k = h.yc();
- this.Ga = k - (1 - f.x) * g.width;
- this.Ha = h.wd() + 0.5 * c.height + f.y * g.height - 0.5 * g.height
- }
- break;
- case P.n6:
- if (h) {
- if (this.ge && !this.ge.ri) return t;
- d = h.wd();
- k = h.yc();
- this.Ha = d + f.y * g.height;
- this.Ga = k - (1 - f.x) * g.width
- }
- break;
- case P.s6:
- if (h) {
- if (this.ge && !this.ge.ri) return t;
- d = h.Be();
- k = h.Fc();
- this.Ha = d - (1 - f.y) * g.height;
- this.Ga = k + f.x * g.width
- }
- break;
- case P.r6:
- if (h) {
- if (this.ge && !this.ge.ri) return t;
- c = h.i();
- k = h.Fc();
- this.Ga = k + f.x * g.width;
- this.Ha = h.wd() + 0.5 * c.height + f.y * g.height - 0.5 * g.height
- }
- break;
- case P.q6:
- if (h) {
- if (this.ge && !this.ge.ri) return t;
- d = h.wd();
- k = h.Fc();
- this.Ha = d + f.y * g.height;
- this.Ga = k + f.x * g.width
- }
- break;
- case P.l6:
- if (h) {
- if (this.ge && !this.ge.ri) return t;
- d = h.wd();
- k = h.yc();
- this.Ha = d - (1 - f.y) * g.height;
- this.Ga = k + f.x * g.width
- }
- break;
- case P.k6:
- if (h) {
- if (this.ge && !this.ge.ri) return t;
- c = h.i();
- d = h.wd();
- this.Ha = d - (1 - f.y) * g.height;
- this.Ga = h.yc() + 0.5 * c.width + f.x * g.width - 0.5 * g.width
- }
- break;
- case P.m6:
- if (h) {
- if (this.ge && !this.ge.ri) return t;
- d = h.wd();
- k = h.Fc();
- this.Ha = d - (1 - f.y) * g.height;
- this.Ga = k - (1 - f.x) * g.width
- }
- }
- return q
- },
- cra: function() {
- var c = this.hH.ml(),
- d = c.pi;
- switch (c.Iw) {
- case P.NONE:
- case P.T6:
- this.Ga += d.left;
- this.Ha -= d.top;
- break;
- case P.S6:
- this.Ha -= d.top;
- break;
- case P.U6:
- this.Ga -= d.right;
- this.Ha -= d.top;
- break;
- case P.P6:
- this.Ga += d.left;
- break;
- case P.R6:
- this.Ga -= d.right;
- break;
- case P.O6:
- this.Ga += d.left;
- this.Ha += d.bottom;
- break;
- case P.N6:
- this.Ha += d.bottom;
- break;
- case P.Q6:
- this.Ga -= d.right;
- this.Ha += d.bottom;
- break;
- case P.i6:
- this.Ha += d.bottom;
- this.Ga += d.left;
- break;
- case P.j6:
- this.Ha += d.bottom;
- this.Ga -= d.right;
- break;
- case P.h6:
- this.Ha += d.bottom;
- break;
- case P.p6:
- this.Ga -= d.right;
- this.Ha -= d.top;
- break;
- case P.n6:
- this.Ga -= d.right;
- this.Ha += d.bottom;
- break;
- case P.o6:
- this.Ga -= d.right;
- break;
- case P.s6:
- this.Ga += d.left;
- this.Ha -= d.top;
- break;
- case P.q6:
- this.Ga += d.left;
- this.Ha += d.bottom;
- break;
- case P.r6:
- this.Ga += d.left;
- break;
- case P.l6:
- this.Ha -= d.top;
- this.Ga += d.left;
- break;
- case P.m6:
- this.Ha -= d.top;
- this.Ga -= d.right;
- break;
- case P.k6:
- this.Ha -= d.top
- }
- }
- });
- Lc.create = function() {
- return new Lc
- };
- var cd = L.extend({
- j: function() {
- return L.prototype.j.call(this) ? (this.Pm(L.nq), q) : t
- },
- Mp: function(c) {
- return this.j() ? (this.yf(c), q) : t
- }
- });
- cd.create = function(c) {
- var d = new cd;
- return c ? d.Mp() ? d: s: d
- };
- var dd = L.extend({
- j: function() {
- return L.prototype.j.call(this) ? (this.Pm(L.$y), q) : t
- },
- Mp: function(c) {
- return this.j() ? (this.yf(c), q) : t
- }
- });
- dd.create = function(c) {
- var d = new dd;
- return c ? d.Mp() ? d: s: d
- };
- var ed = L.extend({
- j: function() {
- return L.prototype.j.call(this) ? (this.Pm(L.PNa), q) : t
- },
- Mp: function(c) {
- return this.j() ? (this.yf(c), q) : t
- }
- });
- ed.create = function(c) {
- var d = new ed;
- return c ? d.Mp() ? d: s: d
- };
- function fd(c, d) {
- if (!c) return s;
- if (c.xq == d) return c;
- for (var f = c.le(), g = 0; g < f.length; g++) {
- var h = fd(f[g], d);
- if (h != s) return h
- }
- return s
- };
- var gd = J.extend({
- eb: s,
- Ob: s,
- Ub: s,
- kg: s,
- CX: "",
- NV: "",
- eW: "",
- Qe: q,
- W: t,
- zz: s,
- Az: s,
- yz: s,
- hG: J.Pa,
- sG: J.Pa,
- wF: J.Pa,
- It: s,
- bY: s,
- gW: s,
- YQ: t,
- pO: s,
- uw: 1,
- vw: 1,
- Ew: 1,
- Fw: 1,
- Jta: t,
- aY: t,
- Gra: t,
- Ag: q,
- qa: "Button",
- DX: q,
- $X: q,
- fW: q,
- Oc: "Thonburi",
- Pc: 12,
- xc: 0,
- ctor: function() {
- this.zz = C.rect(0, 0, 0, 0);
- this.Az = C.rect(0, 0, 0, 0);
- this.yz = C.rect(0, 0, 0, 0);
- var c = this.ca;
- this.It = C.size(c.width, c.height);
- this.bY = C.size(c.width, c.height);
- this.gW = C.size(c.width, c.height);
- this.pO = C.color.WHITE;
- J.prototype.ctor.call(this)
- },
- j: function(c, d, f, g) {
- if (J.prototype.j.call(this)) {
- this.vh(q);
- if (c === m) return q;
- this.pj(c, d, f, g)
- }
- return t
- },
- ol: function() {
- this.eb = C.u.create();
- this.Ob = C.u.create();
- this.Ub = C.u.create();
- this.kg = C.fa.create("");
- this.Yc(this.eb, gd.K6, -1);
- this.Yc(this.Ob, gd.i7, -1);
- this.Yc(this.Ub, gd.w5, -1);
- this.Yc(this.kg, gd.rpa, -1)
- },
- uh: function(c) {
- this.W != c && (this.Qv = J.rS, this.W = c, this.Ai(this.eb), this.Ai(this.Ob), this.Ai(this.Ub), this.W ? (this.eb = C.Sa.create(), this.Ob = C.Sa.create(), this.Ub = C.Sa.create()) : (this.eb = C.u.create(), this.Ob = C.u.create(), this.Ub = C.u.create()), this.Rx(this.CX, this.hG), this.Sx(this.NV, this.sG), this.Qx(this.eW, this.wF), this.Yc(this.eb, gd.K6, -1), this.Yc(this.Ob, gd.i7, -1), this.Yc(this.Ub, gd.w5, -1), this.W ? (c = this.Cb, this.We(t), this.Qe = c) : this.We(this.Qe), this.I2(this.zz), this.J2(this.Az), this.H2(this.yz), this.wR(this.Pv))
- },
- j1: A("W"),
- We: function(c) {
- if (!this.W || this.W && !c) J.prototype.We.call(this, c),
- this.Qe = c
- },
- Xn: A("It"),
- pj: function(c, d, f, g) {
- this.Rx(c, g);
- this.Sx(d, g);
- this.Qx(f, g)
- },
- Rx: function(c, d) {
- if (c) {
- d = d || J.Pa;
- this.CX = c;
- this.hG = d;
- if (this.W) {
- var f = this.eb;
- switch (this.hG) {
- case J.Pa:
- f.Ce(c);
- break;
- case J.ab:
- f.pl(c)
- }
- f.Gc(this.zz)
- } else switch (f = this.eb, this.hG) {
- case J.Pa:
- f.Va(c);
- break;
- case J.ab:
- f.pc(c)
- }
- this.It = this.eb.i();
- this.Ak();
- this.yl();
- this.eb.G(this.Xa());
- this.eb.K(this.rb());
- this.Mf(this.It);
- this.DX = this.Jta = q
- }
- },
- Sx: function(c, d) {
- if (c) {
- d = d || J.Pa;
- this.NV = c;
- this.sG = d;
- if (this.W) {
- var f = this.Ob;
- switch (this.sG) {
- case J.Pa:
- f.Ce(c);
- break;
- case J.ab:
- f.pl(c)
- }
- f.Gc(this.Az)
- } else switch (f = this.Ob, this.sG) {
- case J.Pa:
- f.Va(c);
- break;
- case J.ab:
- f.pc(c)
- }
- this.bY = this.Ob.i();
- this.Ak();
- this.yl();
- this.Ub.G(this.Xa());
- this.Ub.K(this.rb());
- this.$X = this.aY = q
- }
- },
- Qx: function(c, d) {
- if (c) {
- d = d || J.Pa;
- this.eW = c;
- this.wF = d;
- if (this.W) {
- var f = this.Ub;
- switch (this.wF) {
- case J.Pa:
- f.Ce(c);
- break;
- case J.ab:
- f.pl(c)
- }
- f.Gc(this.yz)
- } else switch (f = this.Ub, this.wF) {
- case J.Pa:
- f.Va(c);
- break;
- case J.ab:
- f.pc(c)
- }
- this.gW = this.Ub.i();
- this.Ak();
- this.yl();
- this.Ub.G(this.Xa());
- this.Ub.K(this.rb());
- this.fW = this.Gra = q
- }
- },
- Gc: function(c) {
- this.I2(c);
- this.J2(c);
- this.H2(c)
- },
- I2: function(c) {
- this.zz = c;
- this.W && this.eb.Gc(c)
- },
- xTa: A("zz"),
- J2: function(c) {
- this.Az = c;
- this.W && this.Ob.Gc(c)
- },
- yTa: A("Az"),
- H2: function(c) {
- this.yz = c;
- this.W && this.Ub.Gc(c)
- },
- wTa: A("yz"),
- KI: function() {
- this.eb.va(q);
- this.Ob.va(t);
- this.Ub.va(t);
- if (this.aY) {
- if (this.YQ) {
- this.eb.yk();
- this.Ob.yk();
- var c = C.ae.create(0.05, this.uw, this.vw);
- this.eb.Ya(c);
- this.Ob.Za(this.Ew, this.Fw)
- }
- } else this.W ? this.JJa() : (this.eb.yk(), this.eb.Za(this.uw, this.vw))
- },
- LI: function() {
- if (this.aY) {
- if (this.eb.va(t), this.Ob.va(q), this.Ub.va(t), this.YQ) {
- this.eb.yk();
- this.Ob.yk();
- var c = C.ae.create(0.05, this.Ew + 0.1, this.Fw + 0.1);
- this.Ob.Ya(c);
- this.eb.Za(this.Ew + 0.1, this.Fw + 0.1)
- }
- } else this.eb.va(q),
- this.Ob.va(q),
- this.Ub.va(t),
- this.W ? this.eb.G(ja.GRAY) : (this.eb.yk(), this.eb.Za(this.uw + 0.1, this.vw + 0.1))
- },
- GC: function() {
- this.eb.va(t);
- this.Ob.va(t);
- this.Ub.va(q);
- this.eb.Za(this.uw, this.vw);
- this.Ob.Za(this.Ew, this.Fw)
- },
- Nd: function(c) {
- this.kg.Nd(c);
- this.W || (this.eb.Nd(c), this.Ob.Nd(c), this.Ub.Nd(c))
- },
- Z3a: function(c) {
- this.kg.Uf(c);
- this.W || (this.eb.Uf(c), this.Ob.Uf(c), this.Ub.Uf(c))
- },
- oI: function() {
- return this.W ? t: this.eb.oI()
- },
- pI: function() {
- return this.W ? t: this.eb.pI()
- },
- Ak: function() {
- var c = this.Bb ? -1 : 1;
- this.kg.gb(c);
- this.W ? (this.eb.gb(c), this.Ob.gb(c), this.Ub.gb(c)) : (this.eb.Nd(this.Bb), this.Ob.Nd(this.Bb), this.Ub.Nd(this.Bb))
- },
- yl: function() {
- var c = this.Db ? -1 : 1;
- this.kg.pb(c);
- this.W ? (this.eb.pb(c), this.Ob.pb(c), this.Ub.pb(c)) : (this.eb.Uf(this.Db), this.Ob.Uf(this.Db), this.Ub.Uf(this.Db))
- },
- JJa: function() {
- this.eb.G(this.Xa());
- this.Ob.G(this.Xa());
- this.Ub.G(this.Xa());
- this.eb.K(this.rb());
- this.Ob.K(this.rb());
- this.Ub.K(this.rb())
- },
- S: function(c, d) {
- d === m ? (J.prototype.S.call(this, c), this.eb.S(c), this.Ob.S(c), this.Ub.S(c)) : (J.prototype.S.call(this, c, d), this.eb.S(c, d), this.Ob.S(c, d), this.Ub.S(c, d));
- this.kg.p(this.ca.width * (0.5 - this.Ab.x), this.ca.height * (0.5 - this.Ab.y))
- },
- Re: function(c) {
- J.prototype.Re.call(this, c);
- this.eb.Re(c);
- this.Ob.Re(c);
- this.Ub.Re(c);
- this.kg.rs(this.ca.width * (0.5 - this.Ab.x))
- },
- Se: function(c) {
- J.prototype.Se.call(this, c);
- this.eb.Se(c);
- this.Ob.Se(c);
- this.Ub.Se(c);
- this.kg.Uu(this.ca.height * (0.5 - this.Ab.y))
- },
- gc: function() {
- J.prototype.gc.call(this);
- this.KJa();
- this.Xfa();
- this.wga();
- this.mda()
- },
- i: A("It"),
- ef: function() {
- return this.W ? this.ca.width: this.It.width
- },
- Dg: function() {
- return this.W ? this.ca.height: this.It.height
- },
- Sr: function() {
- if (this.Pv) switch (this.Qv) {
- case J.wD:
- return this.eb;
- case J.qS:
- return this.Ob;
- default:
- return s
- } else return this.Ub
- },
- Xfa: function() {
- if (this.Cb) this.W || (this.eb.Za(1), this.uw = this.vw = 1);
- else if (this.W) this.eb.De(this.ca),
- this.uw = this.vw = 1;
- else {
- var c = this.It;
- if (0 >= c.width || 0 >= c.height) {
- this.eb.Za(1);
- return
- }
- var d = this.ca.width / c.width,
- c = this.ca.height / c.height;
- this.eb.gb(d);
- this.eb.pb(c);
- this.uw = d;
- this.vw = c
- }
- this.eb.p(this.o.width / 2, this.o.height / 2)
- },
- wga: function() {
- if (this.Cb) this.W || (this.Ob.Za(1), this.Ew = this.Fw = 1);
- else if (this.W) this.Ob.De(this.ca),
- this.Ew = this.Fw = 1;
- else {
- var c = this.bY;
- if (0 >= c.width || 0 >= c.height) {
- this.Ob.Za(1);
- return
- }
- var d = this.ca.width / c.width,
- c = this.ca.height / c.height;
- this.Ob.gb(d);
- this.Ob.pb(c);
- this.Ew = d;
- this.Fw = c
- }
- this.Ob.p(this.o.width / 2, this.o.height / 2)
- },
- mda: function() {
- if (this.Cb) this.W || this.Ub.Za(1);
- else if (this.W) this.Ub.De(this.ca);
- else {
- var c = this.gW;
- if (0 >= c.width || 0 >= c.height) {
- this.Ub.Za(1);
- return
- }
- var d = this.ca.height / c.height;
- this.Ub.gb(this.ca.width / c.width);
- this.Ub.pb(d)
- }
- this.Ub.p(this.o.width / 2, this.o.height / 2)
- },
- Qn: function() {
- this.DX && (this.Xfa(), this.DX = t);
- this.$X && (this.wga(), this.$X = t);
- this.fW && (this.mda(), this.fW = t)
- },
- KJa: function() {
- this.kg.p(0.5 * this.o.width, 0.5 * this.o.height)
- },
- oy: x("YQ"),
- vy: function(c) {
- this.kg.sa(c)
- },
- Dea: function() {
- return this.kg.Wb()
- },
- sy: function(c) {
- this.pO.r = c.r;
- this.pO.g = c.g;
- this.pO.b = c.b;
- this.kg.Tb(c)
- },
- Aea: function() {
- return this.kg.Xa()
- },
- uy: function(c) {
- this.kg.Od(c)
- },
- Cea: function() {
- return this.kg.Vn()
- },
- ty: function(c) {
- this.kg.Zd(c)
- },
- Bea: function() {
- return this.kg.Fp()
- },
- wva: function(c) {
- this.kg.font = c
- },
- Nsa: function() {
- return this.kg.font
- },
- IJ: function() {
- this.Ei(this.eb);
- this.Ei(this.Ob);
- this.Ei(this.Ub)
- },
- fk: B("Button"),
- Uh: function() {
- return gd.create()
- },
- xi: function(c) {
- this.Qe = c.Qe;
- this.uh(c.W);
- this.Rx(c.CX, c.hG);
- this.Sx(c.NV, c.sG);
- this.Qx(c.eW, c.wF);
- this.I2(c.zz);
- this.J2(c.Az);
- this.H2(c.yz);
- this.vy(c.Dea());
- this.ty(c.Bea());
- this.uy(c.Cea());
- this.sy(c.Aea());
- this.oy(c.YQ)
- }
- }),
- H = gd.prototype;
- C.e(H, "titleText", H.Dea, H.vy);
- C.e(H, "titleFont", H.Nsa, H.wva);
- C.e(H, "titleFontSize", H.Cea, H.uy);
- C.e(H, "titleFontName", H.Bea, H.ty);
- C.e(H, "titleColor", H.Aea, H.sy);
- H = s;
- gd.create = function(c, d, f, g) {
- var h = new gd;
- if (c === m) return h;
- h.j(c, d, f, g)
- };
- gd.K6 = -2;
- gd.i7 = -2;
- gd.w5 = -2;
- gd.rpa = -1;
- gd.G7 = 0;
- gd.vpa = 1;
- var hd = J.extend({
- Vc: s,
- te: s,
- Oe: s,
- se: s,
- we: s,
- Sj: q,
- Tv: s,
- Uv: s,
- Sv: s,
- pV: J.Pa,
- oV: J.Pa,
- DW: J.Pa,
- nV: J.Pa,
- BW: J.Pa,
- i9: "",
- k9: "",
- I$: "",
- h9: "",
- H$: "",
- qa: "CheckBox",
- pL: q,
- sL: q,
- CM: q,
- oL: q,
- BM: q,
- ctor: function() {
- J.prototype.ctor.call(this)
- },
- j: function(c, d, f, g, h, k) {
- return J.prototype.j.call(this) ? (this.Sj = q, this.vh(q), c === m && this.pj(c, d, f, g, h, k), q) : t
- },
- ol: function() {
- this.Vc = C.u.create();
- this.te = C.u.create();
- this.Oe = C.u.create();
- this.se = C.u.create();
- this.we = C.u.create();
- this.Yc(this.Vc, hd.Zja, -1);
- this.Yc(this.te, hd.$ja, -1);
- this.Yc(this.Oe, hd.qma, -1);
- this.Yc(this.se, hd.Yja, -1);
- this.Yc(this.we, hd.pma, -1);
- window.test = [this.Vc, this.te, this.Oe, this.se, this.we];
- window.a = this
- },
- pj: function(c, d, f, g, h, k) {
- this.uC(c, k);
- this.wC(d, k);
- this.xC(f, k);
- this.vC(g, k);
- this.yC(h, k)
- },
- uC: function(c, d) {
- if (c) {
- d = d || J.Pa;
- this.i9 = c;
- this.pV = d;
- var f = this.Vc;
- switch (this.pV) {
- case J.Pa:
- f.Va(c);
- break;
- case J.ab:
- f.pc(c)
- }
- this.YZ();
- f.Aa || (this.Vc.Ca(this.mc), f.ye(function() {
- this.YZ()
- },
- this));
- this.Ak();
- this.yl();
- this.Vc.G(this.Xa());
- this.Vc.K(this.rb());
- this.Mf(this.Vc.i());
- this.pL = q
- }
- },
- wC: function(c, d) {
- if (c) {
- d = d || J.Pa;
- this.k9 = c;
- this.oV = d;
- switch (this.oV) {
- case J.Pa:
- this.te.Va(c);
- break;
- case J.ab:
- this.te.pc(c)
- }
- this.Ak();
- this.yl();
- this.te.G(this.Xa());
- this.te.K(this.rb());
- this.sL = q
- }
- },
- xC: function(c, d) {
- if (c) {
- d = d || J.Pa;
- this.I$ = c;
- this.DW = d;
- switch (this.DW) {
- case J.Pa:
- this.Oe.Va(c);
- break;
- case J.ab:
- this.Oe.pc(c)
- }
- this.Ak();
- this.yl();
- this.Oe.G(this.Xa());
- this.Oe.K(this.rb());
- this.CM = q
- }
- },
- vC: function(c, d) {
- if (c) {
- d = d || J.Pa;
- this.h9 = c;
- this.nV = d;
- switch (this.nV) {
- case J.Pa:
- this.se.Va(c);
- break;
- case J.ab:
- this.se.pc(c)
- }
- this.Ak();
- this.yl();
- this.se.G(this.Xa());
- this.se.K(this.rb());
- this.oL = q
- }
- },
- yC: function(c, d) {
- if (c) {
- d = d || J.Pa;
- this.H$ = c;
- this.BW = d;
- switch (this.BW) {
- case J.Pa:
- this.we.Va(c);
- break;
- case J.ab:
- this.we.pc(c)
- }
- this.Ak();
- this.yl();
- this.we.G(this.Xa());
- this.we.K(this.rb());
- this.BM = q
- }
- },
- KI: function() {
- this.Vc.va(q);
- this.te.va(t);
- this.se.va(t);
- this.we.va(t)
- },
- LI: function() {
- this.Vc.va(t);
- this.te.va(q);
- this.se.va(t);
- this.we.va(t)
- },
- GC: function() {
- this.Vc.va(t);
- this.te.va(t);
- this.se.va(q);
- this.Oe.va(t);
- this.Sj && this.we.va(q)
- },
- qy: function(c) {
- c != this.Sj && (this.Sj = c, this.Oe.va(this.Sj))
- },
- MBa: A("Sj"),
- RGa: function() {
- this.Sv && this.Sv(this, hd.K5);
- this.Tv && this.Uv && this.Uv.call(this.Tv, this, hd.K5)
- },
- tJa: function() {
- this.Sv && this.Sv(this, hd.M5);
- this.Tv && this.Uv && this.Uv.call(this.Tv, this, hd.M5)
- },
- o2: function() {
- J.prototype.o2.call(this);
- this.Sj ? (this.qy(t), this.tJa()) : (this.qy(q), this.RGa())
- },
- UPa: function(c, d) {
- this.Uv = c;
- this.Tv = d
- },
- addEventListener: x("Sv"),
- Xn: function() {
- return this.Vc.i()
- },
- Ak: function() {
- this.Vc.Nd(this.Bb);
- this.te.Nd(this.Bb);
- this.Oe.Nd(this.Bb);
- this.se.Nd(this.Bb);
- this.we.Nd(this.Bb)
- },
- yl: function() {
- this.Vc.Uf(this.Db);
- this.te.Uf(this.Db);
- this.Oe.Uf(this.Db);
- this.se.Uf(this.Db);
- this.we.Uf(this.Db)
- },
- S: function(c, d) {
- d === m ? (J.prototype.S.call(this, c), this.Vc.S(c), this.te.S(c), this.se.S(c), this.Oe.S(c), this.we.S(c)) : (J.prototype.S.call(this, c, d), this.Vc.S(c, d), this.te.S(c, d), this.se.S(c, d), this.Oe.S(c, d), this.we.S(c, d))
- },
- Re: function(c) {
- J.prototype.Re.call(this, c);
- this.Vc.Re(c);
- this.te.Re(c);
- this.se.Re(c);
- this.Oe.Re(c);
- this.we.Re(c)
- },
- Se: function(c) {
- J.prototype.Se.call(this, c);
- this.Vc.Se(c);
- this.te.Se(c);
- this.se.Se(c);
- this.Oe.Se(c);
- this.we.Se(c)
- },
- gc: function() {
- J.prototype.gc.call(this);
- this.BM = this.oL = this.CM = this.sL = this.pL = q
- },
- i: function() {
- return this.Vc.i()
- },
- ef: function() {
- return this.Vc.ef()
- },
- Dg: function() {
- return this.Vc.Dg()
- },
- Sr: A("Vc"),
- YZ: function() {
- if (this.Cb) this.Vc.Za(1);
- else {
- var c = this.Vc.i();
- if (0 >= c.width || 0 >= c.height) {
- this.Vc.Za(1);
- return
- }
- var d = this.ca.height / c.height;
- this.Vc.gb(this.ca.width / c.width);
- this.Vc.pb(d)
- }
- c = this.o.width / 2;
- d = this.o.height / 2;
- this.Vc.p(c, d);
- this.te.p(c, d);
- this.Oe.p(c, d);
- this.se.p(c, d);
- this.we.p(c, d)
- },
- kxa: function() {
- if (this.Cb) this.te.Za(1);
- else {
- var c = this.te.i();
- if (0 >= c.width || 0 >= c.height) this.te.Za(1);
- else {
- var d = this.ca.height / c.height;
- this.te.gb(this.ca.width / c.width);
- this.te.pb(d)
- }
- }
- },
- Tza: function() {
- if (this.Cb) this.Oe.Za(1);
- else {
- var c = this.Oe.i();
- if (0 >= c.width || 0 >= c.height) this.Oe.Za(1);
- else {
- var d = this.ca.height / c.height;
- this.Oe.gb(this.ca.width / c.width);
- this.Oe.pb(d)
- }
- }
- },
- jxa: function() {
- if (this.Cb) this.se.Za(1);
- else {
- var c = this.se.i();
- if (0 >= c.width || 0 >= c.height) this.se.Za(1);
- else {
- var d = this.ca.height / c.height;
- this.se.gb(this.ca.width / c.width);
- this.se.pb(d)
- }
- }
- },
- Sza: function() {
- if (this.Cb) this.we.Za(1);
- else {
- var c = this.we.i();
- if (0 >= c.width || 0 >= c.height) this.we.Za(1);
- else {
- var d = this.ca.height / c.height;
- this.we.gb(this.ca.width / c.width);
- this.we.pb(d)
- }
- }
- },
- IJ: function() {
- this.Ei(this.Vc);
- this.Ei(this.te);
- this.Ei(this.Oe);
- this.Ei(this.se);
- this.Ei(this.we)
- },
- jD: function() {
- this.Al(this.Vc);
- this.Al(this.te);
- this.Al(this.Oe);
- this.Al(this.se);
- this.Al(this.we)
- },
- fk: B("CheckBox"),
- Uh: function() {
- return hd.create()
- },
- xi: function(c) {
- c instanceof hd && (this.uC(c.i9, c.pV), this.wC(c.k9, c.oV), this.xC(c.I$, c.DW), this.vC(c.h9, c.nV), this.yC(c.H$, c.BW), this.qy(c.Sj), this.Tv = c.Tv, this.Uv = c.Uv, this.Sv = c.Sv)
- },
- Qn: function() {
- this.pL && (this.YZ(), this.pL = t);
- this.sL && (this.kxa(), this.sL = t);
- this.CM && (this.Tza(), this.CM = t);
- this.oL && (this.jxa(), this.oL = t);
- this.BM && (this.Sza(), this.BM = t)
- }
- }),
- H = hd.prototype;
- C.e(H, "selected", H.MBa, H.qy);
- H = s;
- hd.create = function(c, d, f, g, h, k) {
- var n = new hd;
- c === m ? n.j() : n.j(c, d, f, g, h, k);
- return n
- };
- hd.K5 = 0;
- hd.M5 = 1;
- hd.Zja = -1;
- hd.$ja = -1;
- hd.Yja = -1;
- hd.qma = -1;
- hd.pma = -1;
- var id = J.extend({
- W: t,
- Qe: q,
- df: s,
- Dd: s,
- Jn: "",
- LM: J.Pa,
- lA: s,
- qa: "ImageView",
- KM: q,
- ctor: function() {
- this.df = C.rect(0, 0, 0, 0);
- this.lA = C.size(this.ca.width, this.ca.height);
- J.prototype.ctor.call(this)
- },
- j: function(c, d) {
- J.prototype.j.call(this);
- c !== m && this.Sf(c, d);
- return q
- },
- ol: function() {
- this.Dd = C.u.create();
- this.Yc(this.Dd, id.Fk, -1)
- },
- Sf: function(c, d) {
- if (c) {
- d = d || J.Pa;
- this.Jn = c;
- this.LM = d;
- var f = this.Dd;
- switch (this.LM) {
- case J.Pa:
- this.W ? (f.Ce(c), f.Gc(this.df)) : f.Va(c);
- break;
- case J.ab:
- this.W ? (f.pl(c), f.Gc(this.df)) : f.pc(c)
- }
- this.lA = f.i();
- this.Ak();
- this.yl();
- f.G(this.Xa());
- f.K(this.rb());
- this.Mf(this.lA);
- this.KM = q
- }
- },
- qc: function(c) {
- this.W || this.Dd.qc(c)
- },
- Ak: function() {
- this.W ? this.Dd.gb(this.Bb ? -1 : 1) : this.Dd.Nd(this.Bb)
- },
- yl: function() {
- this.W ? this.Dd.pb(this.Db ? -1 : 1) : this.Dd.Uf(this.Db)
- },
- Qn: function() {
- this.KM && (this.ICa(), this.KM = t)
- },
- uh: function(c) {
- this.W != c && (this.W = c, this.Ai(this.Dd), this.Dd = s, this.Dd = this.W ? C.Sa.create() : C.u.create(), this.Sf(this.Jn, this.LM), this.Yc(this.Dd, id.Fk, -1), this.W ? (c = this.Cb, this.We(t), this.Qe = c) : this.We(this.Qe), this.Gc(this.df))
- },
- j1: A("W"),
- We: function(c) {
- if (!this.W || this.W && !c) J.prototype.We.call(this, c),
- this.Qe = c
- },
- Gc: function(c) {
- this.df = c;
- this.W && this.Dd.Gc(c)
- },
- l0: A("df"),
- S: function(c, d) {
- d === m ? (J.prototype.S.call(this, c), this.Dd.S(c)) : (J.prototype.S.call(this, c, d), this.Dd.S(c, d))
- },
- Re: function(c) {
- J.prototype.Re.call(this, c);
- this.Dd.Re(c)
- },
- Se: function(c) {
- J.prototype.Se.call(this, c);
- this.Dd.Se(c)
- },
- gc: function() {
- J.prototype.gc.call(this);
- this.KM = q
- },
- i: A("lA"),
- ef: function() {
- return this.lA.width
- },
- Dg: function() {
- return this.lA.height
- },
- Sr: A("Dd"),
- ICa: function() {
- if (this.Cb) this.W || this.Dd.Za(1);
- else if (this.W) this.Dd.De(this.ca);
- else {
- var c = this.Dd.i();
- if (0 >= c.width || 0 >= c.height) {
- this.Dd.Za(1);
- return
- }
- this.Dd.gb(this.ca.width / c.width);
- this.Dd.pb(this.ca.height / c.height)
- }
- this.Dd.p(this.o.width / 2, this.o.height / 2)
- },
- IJ: function() {
- this.Ei(this.Dd)
- },
- jD: function() {
- this.Al(this.Dd)
- },
- fk: B("ImageView"),
- Xn: u(),
- Uh: function() {
- return id.create()
- },
- xi: function(c) {
- c instanceof id && (this.Qe = c.Qe, this.uh(c.W), this.Sf(c.Jn, c.LM), this.Gc(c.df))
- }
- });
- id.create = function(c, d) {
- var f = new id;
- c !== m && f.j(c, d);
- return f
- };
- id.Fk = -1;
- var jd = J.extend({
- Kh: s,
- em: 100,
- ax: 0,
- lb: s,
- MN: J.Pa,
- Rl: s,
- W: t,
- Qe: q,
- df: s,
- Jn: "",
- sta: t,
- qa: "LoadingBar",
- Bq: q,
- ctor: function() {
- this.Kh = jd.WK;
- this.Rl = C.size(0, 0);
- this.df = C.rect(0, 0, 0, 0);
- J.prototype.ctor.call(this)
- },
- ol: function() {
- this.lb = C.u.create();
- C.A.prototype.q.call(this, this.lb, jd.Fk, -1);
- this.lb.S(0, 0.5)
- },
- sh: function(c) {
- if (this.Kh != c) switch (this.Kh = c, this.Kh) {
- case jd.WK:
- this.lb.S(0, 0.5);
- this.lb.p(0.5 * -this.ax, 0);
- this.W || this.lb.Nd(t);
- break;
- case jd.wU:
- this.lb.S(1, 0.5),
- this.lb.p(0.5 * this.ax, 0),
- this.W || this.lb.Nd(q)
- }
- },
- $B: A("Kh"),
- Sf: function(c, d) {
- if (c) {
- this.MN = d = d || J.Pa;
- this.Jn = c;
- var f = this.lb;
- switch (this.MN) {
- case J.Pa:
- this.W ? (f.Ce(c), f.Gc(this.df)) : f.Va(c);
- break;
- case J.ab:
- this.W ? (f.pl(c), f.Gc(this.df)) : f.pc(c)
- }
- f.G(this.Xa());
- f.K(this.rb());
- var g = f.i();
- this.Rl.width = g.width;
- this.Rl.height = g.height;
- switch (this.Kh) {
- case jd.WK:
- f.S(0, 0.5);
- this.W || f.Nd(t);
- break;
- case jd.wU:
- f.S(1, 0.5),
- this.W || f.Nd(q)
- }
- this.$O();
- this.Mf(this.Rl);
- this.Bq = q
- }
- },
- uh: function(c) {
- this.W != c && (this.W = c, this.Ai(this.lb), this.lb = this.W ? C.Sa.create() : C.u.create(), this.Sf(this.Jn, this.MN), this.Yc(this.lb, jd.Fk, -1), this.W ? (c = this.Cb, this.We(t), this.Qe = c) : this.We(this.Qe), this.Gc(this.df), this.Ci(this.em))
- },
- j1: A("W"),
- Gc: function(c) {
- this.df = c;
- this.W && this.lb.Gc(c)
- },
- l0: A("df"),
- Ci: function(c) {
- if (! (0 > c || 100 < c) && !(0 >= this.ax)) if (this.em = c, c = this.em / 100, this.W) this.mia();
- else {
- var d = this.lb.WH();
- this.lb.qc(C.rect(d.x, d.y, this.Rl.width * c, this.Rl.height))
- }
- },
- u0: A("em"),
- gc: function() {
- J.prototype.gc.call(this);
- this.Bq = q
- },
- We: function(c) {
- if (!this.W || this.W && !c) J.prototype.We.call(this, c),
- this.Qe = c
- },
- Xn: A("Rl"),
- i: A("Rl"),
- ef: function() {
- return this.Rl.width
- },
- Dg: function() {
- return this.Rl.height
- },
- Sr: A("lb"),
- $O: function() {
- var c = this.lb;
- if (this.Cb) this.W || (this.ax = this.Rl.width, c.Za(1));
- else if (this.ax = this.ca.width, this.W) this.mia();
- else {
- var d = this.Rl;
- if (0 >= d.width || 0 >= d.height) {
- c.Za(1);
- return
- }
- var f = this.ca.height / d.height;
- c.gb(this.ca.width / d.width);
- c.pb(f)
- }
- switch (this.Kh) {
- case jd.WK:
- c.p(0, 0.5 * this.o.height);
- break;
- case jd.wU:
- c.p(this.ax, 0.5 * this.o.height)
- }
- },
- Qn: function() {
- this.Bq && (this.$O(), this.Bq = t)
- },
- mia: function() {
- this.lb.De(C.size(this.em / 100 * this.ax, this.ca.height))
- },
- IJ: function() {
- this.Ei(this.lb)
- },
- jD: function() {
- this.Al(this.lb)
- },
- fk: B("LoadingBar"),
- Uh: function() {
- return jd.create()
- },
- xi: function(c) {
- c instanceof jd && (this.Qe = c.Qe, this.uh(c.W), this.Sf(c.Jn, c.MN), this.Gc(c.df), this.Ci(c.em), this.sh(c.Kh))
- }
- }),
- H = jd.prototype;
- C.e(H, "direction", H.$B, H.sh);
- C.e(H, "percent", H.u0, H.Ci);
- H = s;
- jd.create = function(c, d) {
- var f = new jd;
- c !== m && f.Sf(c);
- d !== m && f.Ci(d);
- return f
- };
- jd.WK = 0;
- jd.wU = 1;
- jd.Fk = -1;
- var kd = J.extend({
- lb: s,
- Sd: s,
- QA: s,
- bl: s,
- mm: s,
- lm: s,
- aB: s,
- uL: 0,
- em: 0,
- W: t,
- Qe: q,
- Jn: "",
- gY: "",
- Hba: "",
- Iba: "",
- Gba: "",
- EL: s,
- FL: s,
- HG: s,
- IG: s,
- vL: J.Pa,
- FN: J.Pa,
- rV: J.Pa,
- sV: J.Pa,
- qV: J.Pa,
- sta: t,
- qa: "Slider",
- Bq: q,
- uG: q,
- ctor: function() {
- this.QA = C.size(0, 0);
- this.EL = C.rect(0, 0, 0, 0);
- this.FL = C.rect(0, 0, 0, 0);
- J.prototype.ctor.call(this)
- },
- j: function() {
- return J.prototype.j.call(this) ? q: t
- },
- ol: function() {
- this.lb = C.u.create();
- this.Sd = C.u.create();
- this.Sd.S(0, 0.5);
- this.Yc(this.lb, kd.s4, -1);
- this.Yc(this.Sd, kd.j7, -1);
- this.bl = C.u.create();
- this.mm = C.u.create();
- this.mm.va(t);
- this.lm = C.u.create();
- this.lm.va(t);
- this.aB = C.A.create();
- this.aB.q(this.bl);
- this.aB.q(this.mm);
- this.aB.q(this.lm);
- this.Yc(this.aB, kd.Tja, -1)
- },
- kk: function(c, d) {
- if (c) {
- d = d || J.Pa;
- this.Jn = c;
- this.vL = d;
- var f = this.lb;
- switch (this.vL) {
- case J.Pa:
- this.W ? f.Ce(c) : f.Va(c);
- break;
- case J.ab:
- this.W ? f.pl(c) : f.pc(c)
- }
- f.G(this.Xa());
- f.K(this.rb());
- this.uG = this.Bq = q;
- this.Mf(this.lb.i())
- }
- },
- Eu: function(c, d) {
- if (c) {
- d = d || J.Pa;
- this.gY = c;
- this.FN = d;
- var f = this.Sd;
- switch (this.FN) {
- case J.Pa:
- this.W ? f.Ce(c) : f.Va(c);
- break;
- case J.ab:
- this.W ? f.pl(c) : f.pc(c)
- }
- this.Sd.G(this.Xa());
- this.Sd.K(this.rb());
- this.Sd.S(C.d(0, 0.5));
- f = this.Sd.i();
- this.QA = {
- width: f.width,
- height: f.height
- };
- this.uG = q
- }
- },
- uh: function(c) {
- this.W != c && (this.W = c, this.Ai(this.lb, q), this.Ai(this.Sd, q), this.Sd = this.lb = s, this.W ? (this.lb = C.Sa.create(), this.Sd = C.Sa.create()) : (this.lb = C.u.create(), this.Sd = C.u.create()), this.kk(this.Jn, this.vL), this.Eu(this.gY, this.FN), this.Yc(this.lb, kd.s4, -1), this.Yc(this.Sd, kd.j7, -1), this.W ? (c = this.Cb, this.We(t), this.Qe = c) : this.We(this.Qe), this.rha(this.EL), this.qha(this.FL))
- },
- j1: A("W"),
- We: function(c) {
- if (!this.W || this.W && !c) J.prototype.We.call(this, c),
- this.Qe = c
- },
- Gc: function(c) {
- this.rha(c);
- this.qha(c)
- },
- rha: function(c) {
- this.EL = c;
- this.W && this.lb.Gc(c)
- },
- vTa: A("EL"),
- qha: function(c) {
- this.FL = c;
- this.W && this.Sd.Gc(c)
- },
- zTa: A("FL"),
- Lfa: function(c, d, f, g) {
- this.sC(c, g);
- this.tC(d, g);
- this.rC(f, g)
- },
- sC: function(c, d) {
- if (c) {
- d = d || J.Pa;
- this.Hba = c;
- this.rV = d;
- switch (this.rV) {
- case J.Pa:
- this.bl.Va(c);
- break;
- case J.ab:
- this.bl.pc(c)
- }
- this.bl.G(this.Xa());
- this.bl.K(this.rb())
- }
- },
- tC: function(c, d) {
- if (c) {
- d = d || J.Pa;
- this.Iba = c;
- this.sV = d;
- switch (this.sV) {
- case J.Pa:
- this.mm.Va(c);
- break;
- case J.ab:
- this.mm.pc(c)
- }
- this.mm.G(this.Xa());
- this.mm.K(this.rb())
- }
- },
- rC: function(c, d) {
- if (c) {
- d = d || J.Pa;
- this.Gba = c;
- this.qV = d;
- switch (this.qV) {
- case J.Pa:
- this.lm.Va(c);
- break;
- case J.ab:
- this.lm.pc(c)
- }
- this.lm.G(this.Xa());
- this.lm.K(this.rb())
- }
- },
- Ci: function(c) {
- 100 < c && (c = 100);
- 0 > c && (c = 0);
- this.em = c;
- c = this.uL * (c / 100);
- this.aB.p(C.d(c, this.o.height / 2));
- if (this.W) this.Sd.De(C.size(c, this.QA.height));
- else {
- var d = this.Sd,
- f = d.WH();
- d.qc(C.rect(f.x, f.y, c, f.height), d.jf)
- }
- },
- hC: function(c) {
- c = this.bl.wi(c);
- var d = this.bl.i(),
- d = C.rect(0, 0, d.width, d.height);
- return C.Ju(d, c)
- },
- nc: function(c, d) {
- var f = J.prototype.nc.call(this, c, d);
- if (this.cw) {
- var g = this.wi(this.rm);
- this.Ci(this.jea(g.x));
- this.sga()
- }
- return f
- },
- yd: function(c) {
- c = this.wi(c.mh());
- this.Ci(this.jea(c.x));
- this.sga()
- },
- cd: function(c, d) {
- J.prototype.cd.call(this, c, d)
- },
- Xe: function(c, d) {
- J.prototype.Xe.call(this, c, d)
- },
- jea: function(c) {
- return 100 * (c / this.uL)
- },
- YPa: function(c, d) {
- this.IG = c;
- this.HG = d
- },
- addEventListener: x("mb"),
- sga: function() {
- this.HG && this.IG && this.IG.call(this.HG, this, kd.E5);
- this.mb && this.mb(kd.E5)
- },
- u0: A("em"),
- gc: function() {
- J.prototype.gc.call(this);
- this.uG = this.Bq = q
- },
- Qn: function() {
- this.Bq && (this.$O(), this.Bq = t);
- this.uG && (this.VFa(), this.uG = t)
- },
- Xn: function() {
- return this.lb.i()
- },
- Sr: A("lb"),
- $O: function() {
- if (this.Cb) this.lb.Za(1),
- this.uL = this.o.width;
- else if (this.uL = this.o.width, this.W) this.lb.De(this.o);
- else {
- var c = this.lb.i();
- if (0 >= c.width || 0 >= c.height) {
- this.lb.Za(1);
- return
- }
- var d = this.o.height / c.height;
- this.lb.gb(this.o.width / c.width);
- this.lb.pb(d)
- }
- this.lb.p(this.o.width / 2, this.o.height / 2);
- this.Ci(this.em)
- },
- VFa: function() {
- if (this.Cb) {
- if (!this.W) {
- var c = this.QA,
- d = this.o.width / c.width,
- c = this.o.height / c.height;
- this.Sd.gb(d);
- this.Sd.pb(c)
- }
- } else if (this.W) this.Sd.De(this.o),
- this.QA = this.Sd.i();
- else {
- c = this.QA;
- if (0 >= c.width || 0 >= c.height) {
- this.Sd.Za(1);
- return
- }
- d = this.o.width / c.width;
- c = this.o.height / c.height;
- this.Sd.gb(d);
- this.Sd.pb(c)
- }
- this.Sd.p(0, this.o.height / 2);
- this.Ci(this.em)
- },
- i: function() {
- var c = this.lb.i();
- return C.size(c.width, c.height)
- },
- ef: function() {
- return this.lb.ef()
- },
- Dg: function() {
- return this.lb.Dg()
- },
- KI: function() {
- this.bl.va(q);
- this.mm.va(t);
- this.lm.va(t)
- },
- LI: function() {
- this.bl.va(t);
- this.mm.va(q);
- this.lm.va(t)
- },
- GC: function() {
- this.bl.va(t);
- this.mm.va(t);
- this.lm.va(q)
- },
- fk: B("Slider"),
- Uh: function() {
- return kd.create()
- },
- xi: function(c) {
- this.Qe = c.Qe;
- this.uh(c.W);
- this.kk(c.Jn, c.vL);
- this.Eu(c.gY, c.FN);
- this.sC(c.Hba, c.rV);
- this.tC(c.Iba, c.sV);
- this.rC(c.Gba, c.qV);
- this.Ci(c.em);
- this.HG = c.HG;
- this.IG = c.IG;
- this.mb = c.mb
- },
- IJ: function() {
- this.Ei(this.lb);
- this.Ei(this.Sd);
- this.Ei(this.bl);
- this.Ei(this.mm);
- this.Ei(this.lm)
- },
- jD: function() {
- this.Al(this.lb);
- this.Al(this.Sd);
- this.Al(this.bl);
- this.Al(this.mm);
- this.Al(this.lm)
- }
- }),
- H = kd.prototype;
- C.e(H, "percent", H.u0, H.Ci);
- H = s;
- kd.create = function() {
- var c = new kd;
- return c && c.j() ? c: s
- };
- kd.E5 = 0;
- kd.s4 = -3;
- kd.j7 = -2;
- kd.Tja = -1;
- var ld = J.extend({
- xO: t,
- oN: 1,
- pN: 1,
- Oc: "Thonburi",
- Pc: 10,
- Gaa: 0.5,
- yb: "",
- hB: s,
- EPa: 0,
- DPa: 0,
- qa: "Text",
- xc: s,
- cr: q,
- ctor: function() {
- this.xc = ld.aqa.G7;
- this.hB = C.size(0, 0);
- J.prototype.ctor.call(this)
- },
- j: function(c, d, f) {
- return J.prototype.j.call(this) ? (0 < arguments.length && (this.sa(c), this.Zd(d), this.Od(f)), q) : t
- },
- ol: function() {
- this.yb = C.fa.create();
- C.A.prototype.q.call(this, this.yb, ld.Fk, -1)
- },
- PR: function(c) {
- C.log("Please use the setString");
- this.sa(c)
- },
- sa: function(c) {
- this.yb.sa(c);
- this.Mf(this.yb.i());
- this.cr = q
- },
- getStringValue: function() {
- C.log("Please use the getString");
- return this.yb.Wb()
- },
- Wb: function() {
- return this.yb.Wb()
- },
- zu: function() {
- return this.yb.zu()
- },
- Od: function(c) {
- this.Pc = c;
- this.yb.Od(c);
- this.Mf(this.yb.i());
- this.cr = q
- },
- Vn: A("Pc"),
- Zd: function(c) {
- this.Oc = c;
- this.yb.Zd(c);
- this.Mf(this.yb.i());
- this.cr = q
- },
- ry: function(c) {
- this.yb.N2(c);
- this.Mf(this.yb.i());
- this.cr = q
- },
- RWa: function() {
- return this.yb.rAa()
- },
- Xu: function(c) {
- this.yb.S2(c);
- this.Mf(this.yb.i());
- this.cr = q
- },
- XBa: function() {
- return this.yb.$o
- },
- Yu: function(c) {
- this.yb.y3(c);
- this.Mf(this.yb.i());
- this.cr = q
- },
- YBa: function() {
- return this.yb.xp
- },
- SR: x("xO"),
- PYa: A("xO"),
- KI: function() {
- this.xO && (this.yb.gb(this.oN), this.yb.pb(this.pN))
- },
- LI: function() {
- this.xO && (this.yb.gb(this.oN + this.Gaa), this.yb.pb(this.pN + this.Gaa))
- },
- GC: u(),
- Ak: function() {
- this.Bb ? this.yb.gb( - 1) : this.yb.gb(1)
- },
- gc: function() {
- J.prototype.gc.call(this);
- this.cr = q
- },
- Qn: function() {
- this.cr && (this.BQ(), this.cr = t)
- },
- Xn: function() {
- return this.yb.i()
- },
- Sr: A("yb"),
- BQ: function() {
- if (this.Cb) this.yb.Za(1),
- this.oN = this.pN = 1;
- else {
- this.yb.N2(C.size(this.o.width, this.o.height));
- var c = this.yb.i();
- if (0 >= c.width || 0 >= c.height) {
- this.yb.Za(1);
- return
- }
- var d = this.o.width / c.width,
- c = this.o.height / c.height;
- this.yb.gb(d);
- this.yb.pb(c);
- this.oN = d;
- this.pN = c
- }
- this.yb.p(this.o.width / 2, this.o.height / 2)
- },
- fk: B("Label"),
- a0: function(c, d, f) {
- this.yb.a0(c, d, f)
- },
- $Ra: u(),
- ZRa: u(),
- ARa: u(),
- Uh: function() {
- return ld.create()
- },
- Fp: A("Oc"),
- $H: A("xc"),
- rr: function(c) {
- var d = C.fa.xM.exec(c);
- d && (this.Pc = parseInt(d[1]), this.Oc = d[2], this.yb.rr(c), this.BQ())
- },
- bw: function() {
- return this.yb.bw()
- },
- VN: function(c) {
- this.hB.width = c;
- this.yb.VN(c);
- this.BQ()
- },
- UN: function(c) {
- this.hB.height = c;
- this.yb.UN(c);
- this.BQ()
- },
- KF: function() {
- return this.hB.width
- },
- IW: function() {
- return this.hB.height
- },
- xi: function(c) {
- c instanceof c && (this.Zd(c.Oc), this.Od(c.Vn()), this.sa(c.Wb()), this.SR(c.y6a), this.ry(c.hB), this.Xu(c.yb.$o), this.Yu(c.yb.xp))
- }
- }),
- H = ld.prototype;
- C.e(H, "boundingWidth", H.KF, H.VN);
- C.e(H, "boundingHeight", H.IW, H.UN);
- C.e(H, "string", H.Wb, H.sa);
- C.e(H, "stringLength", H.zu);
- C.e(H, "font", H.bw, H.rr);
- C.e(H, "fontSize", H.Vn, H.Od);
- C.e(H, "fontName", H.Fp, H.Zd);
- C.e(H, "textAlign", H.XBa, H.Xu);
- C.e(H, "verticalAlign", H.YBa, H.Yu);
- H = s;
- ld.create = function(c, d, f) {
- var g = new ld;
- if (0 < arguments.length) {
- if (g && g.j(c, d, f)) return g
- } else if (g && g.j()) return g;
- return s
- };
- ld.Fk = -1;
- ld.aqa = {
- G7: 0,
- vpa: 1
- };
- var md = J.extend({
- Mh: s,
- Tw: "",
- IV: "",
- Tj: 0,
- Oi: 0,
- $Y: "",
- qa: "TextAtlas",
- YF: s,
- ctor: function() {
- J.prototype.ctor.call(this)
- },
- ol: function() {
- this.Mh = new C.Gl;
- this.Mh.S(C.d(0.5, 0.5));
- this.Yc(this.Mh, md.Fk, -1)
- },
- setProperty: function(c, d, f, g, h) {
- this.Tw = c;
- this.IV = d;
- this.Tj = f;
- this.Oi = g;
- this.$Y = h;
- this.Mh.sf(c, this.IV, this.Tj, this.Oi, this.$Y[0]);
- this.Mf(this.Mh.i());
- this.YF = q
- },
- sa: function(c) {
- this.Tw = c;
- this.Mh.sa(c);
- this.Mf(this.Mh.i());
- this.YF = q
- },
- setStringValue: function(c) {
- C.log("Please use the setString");
- this.sa(c)
- },
- getStringValue: function() {
- C.log("Please use the getString");
- return this.Wb()
- },
- Wb: function() {
- return this.Mh.Wb()
- },
- zu: function() {
- return this.Mh.zu()
- },
- gc: function() {
- J.prototype.gc.call(this);
- this.YF = q
- },
- Qn: function() {
- this.YF && (this.gEa(), this.YF = t)
- },
- Xn: function() {
- return this.Mh.i()
- },
- Sr: A("Mh"),
- gEa: function() {
- if (this.Cb) this.Mh.Za(1);
- else {
- var c = this.Mh.i();
- if (0 >= c.width || 0 >= c.height) {
- this.Mh.Za(1);
- return
- }
- var d = this.ca.height / c.height;
- this.Mh.gb(this.ca.width / c.width);
- this.Mh.pb(d)
- }
- this.Mh.p(this.o.width / 2, this.o.height / 2)
- },
- fk: B("LabelAtlas"),
- Uh: function() {
- return md.create()
- },
- xi: function(c) {
- c && this.setProperty(c.Tw, c.IV, c.Tj, c.Oi, c.$Y)
- }
- }),
- H = md.prototype;
- C.e(H, "string", H.Wb, H.sa);
- H = s;
- md.create = function(c, d, f, g, h) {
- var k = new md;
- return k && k.j() ? (0 < arguments.length && k.setProperty(c, d, f, g, h), k) : s
- };
- md.Fk = -1;
- var nd, od = nd = J.extend({
- ah: s,
- A$: t,
- Zra: "",
- Tw: "",
- qa: "TextBMFont",
- WM: q,
- ctor: function() {
- J.prototype.ctor.call(this)
- },
- ol: function() {
- this.ah = C.rv.create();
- this.Yc(this.ah, nd.Fk, -1)
- },
- UC: function(c) {
- c && (this.Zra = c, this.ah.sf("", c), this.AJa(), this.y1(), this.ah.Aa || this.ah.ye(function() {
- this.y1()
- },
- this), this.ah.G(this.Xa()), this.ah.K(this.rb()), this.A$ = q, this.sa(this.Tw))
- },
- PR: function(c) {
- C.log("Please use the setString");
- this.sa(c)
- },
- sa: function(c) {
- this.Tw = c;
- this.A$ && (this.ah.sa(c), this.Mf(this.ah.i()), this.WM = q)
- },
- Wb: A("Tw"),
- zu: function() {
- return this.ah.zu()
- },
- gc: function() {
- J.prototype.gc.call(this);
- this.WM = q
- },
- Qn: function() {
- this.WM && (this.y1(), this.WM = t)
- },
- Xn: function() {
- return this.ah.i()
- },
- Sr: A("ah"),
- y1: function() {
- if (this.Cb) this.ah.Za(1);
- else {
- var c = this.ah.i();
- if (0 >= c.width || 0 >= c.height) {
- this.ah.Za(1);
- return
- }
- var d = this.ca.height / c.height;
- this.ah.gb(this.ca.width / c.width);
- this.ah.pb(d)
- }
- this.ah.p(this.o.width / 2, this.o.height / 2)
- },
- fk: B("LabelBMFont")
- }),
- H = nd.prototype;
- C.e(H, "string", H.Wb, H.setStringValue);
- H = s;
- nd.create = function(c, d) {
- var f = new nd;
- return f && f.j() ? (d && c && (f.UC(d), f.sa(c)), f) : s
- };
- nd.Fk = -1;
- var pd = C.Hj.extend({
- maxLengthEnabled: t,
- maxLength: 0,
- passwordEnabled: t,
- Cw: "",
- iV: t,
- aW: t,
- cX: t,
- YV: t,
- qa: "UICCTextField",
- In: q,
- ctor: function() {
- C.Hj.prototype.ctor.call(this);
- this.maxLengthEnabled = t;
- this.maxLength = 0;
- this.passwordEnabled = t;
- this.Cw = "*";
- this.YV = this.cX = this.aW = this.iV = t
- },
- Z: function() {
- C.Hj.prototype.bq.call(this, this)
- },
- bga: function() {
- this.aJ(q);
- return t
- },
- P1: function(c, d, f) {
- if (1 == f && "\n" == d) return t;
- this.gJ(q);
- return this.maxLengthEnabled && C.Hj.prototype.YB.call(this) >= this.maxLength ? q: t
- },
- cga: function() {
- this.cJ(q);
- return t
- },
- dga: function() {
- this.dJ(q);
- return t
- },
- lI: function(c, d) {
- "\n" != c && this.maxLengthEnabled && this.Wb().length >= this.maxLength ? this.passwordEnabled && this.FR(this.Wb()) : (C.Hj.prototype.lI.call(this, c, d), this.passwordEnabled && 0 < C.Hj.prototype.YB.call(this) && this.FR(this.Wb()))
- },
- mP: function() {
- C.Hj.prototype.mP.call(this);
- 0 < C.Hj.prototype.YB.call(this) && this.passwordEnabled && this.FR(this.Ni)
- },
- F0a: function() {
- C.Hj.prototype.pH.call(this)
- },
- WQa: function() {
- C.Hj.prototype.nP.call(this)
- },
- my: x("maxLengthEnabled"),
- qI: A("maxLengthEnabled"),
- qs: x("maxLength"),
- Kx: A("maxLength"),
- YB: function() {
- return C.Hj.prototype.YB.call(this)
- },
- ny: x("passwordEnabled"),
- rI: A("passwordEnabled"),
- WC: function(c) {
- if (! (1 < c.length)) {
- var d = c.charCodeAt(0);
- 33 > d || 126 < d || (this.Cw = c)
- }
- },
- FR: function(c) {
- var d = "",
- f = c.length;
- c = f;
- this.maxLengthEnabled && f > this.maxLength && (c = this.maxLength);
- for (f = 0; f < c; ++f) d += this.Cw;
- C.fa.prototype.sa.call(this, d)
- },
- aJ: x("iV"),
- yP: A("iV"),
- dJ: x("aW"),
- DP: A("aW"),
- gJ: x("cX"),
- FP: A("cX"),
- cJ: x("YV"),
- CP: A("YV"),
- j: function() {
- return J.prototype.j.call(this) ? (this.vh(q), q) : t
- },
- AEa: B(t)
- });
- pd.create = function(c, d, f) {
- var g = new pd;
- return g && g.sf("", d, f) ? (c && g.Di(c), g) : s
- };
- var qd = J.extend({
- za: s,
- yO: 0,
- vO: 0,
- fca: t,
- zr: s,
- Ar: s,
- bOa: s,
- xOa: s,
- TOa: s,
- uOa: s,
- cOa: s,
- yOa: s,
- UOa: s,
- vOa: s,
- Cw: "",
- In: q,
- ctor: function() {
- J.prototype.ctor.call(this)
- },
- j: function() {
- return J.prototype.j.call(this) ? (this.vh(q), q) : t
- },
- Z: function() {
- J.prototype.Z.call(this);
- this.TR(q)
- },
- Na: function() {
- this.TR(t);
- L.prototype.Na.call(this)
- },
- ol: function() {
- this.za = pd.create("input words here", "Thonburi", 20);
- this.Yc(this.za, qd.Fk, -1)
- },
- u3: function(c) {
- this.yO = c.width;
- this.vO = c.height
- },
- u5a: x("fca"),
- Qn: function() {
- this.In && (this.cJa(), this.In = t)
- },
- hC: function(c) {
- if (this.fca) {
- c = this.wi(c);
- var d = C.rect( - this.yO * this.Ab.x, -this.vO * this.Ab.y, this.yO, this.vO);
- 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 q
- } else return J.prototype.hC.call(this, c);
- return t
- },
- jXa: function() {
- return C.size(this.yO, this.vO)
- },
- PR: function(c) {
- C.log("Please use the setString");
- this.sa(c)
- },
- sa: function(c) {
- c && (c = String(c), this.qI() && (c = c.substr(0, this.Kx())), this.rI() ? (this.za.FR(c), this.za.sa(""), this.za.lI(c, c.length)) : this.za.sa(c), this.In = q, this.Mf(this.za.i()))
- },
- Di: function(c) {
- this.za.Di(c);
- this.In = q;
- this.Mf(this.za.i())
- },
- cC: function() {
- return this.za.cC()
- },
- rr: function(c) {
- this.za.rr(c);
- this.In = q
- },
- bw: function() {
- return this.za.bw()
- },
- Od: function(c) {
- this.za.Od(c);
- this.In = q;
- this.Mf(this.za.i())
- },
- Vn: function() {
- return this.za.NWa()
- },
- Zd: function(c) {
- this.za.Zd(c);
- this.In = q;
- this.Mf(this.za.i())
- },
- Fp: function() {
- return this.za.MWa()
- },
- Fya: function() {
- this.za.nP()
- },
- getStringValue: function() {
- C.log("Please use the getString");
- return this.Wb()
- },
- Wb: function() {
- return this.za.Wb()
- },
- zu: function() {
- return this.za.zu()
- },
- nc: function(c, d) {
- var f = this,
- g = J.prototype.nc.call(f, c, d);
- f.cw && setTimeout(function() {
- f.za.pH()
- },
- 0);
- return g
- },
- my: function(c) {
- this.za.my(c)
- },
- qI: function() {
- return this.za.qI()
- },
- qs: function(c) {
- this.za.qs(c);
- this.sa(this.Wb())
- },
- Kx: function() {
- return this.za.Kx()
- },
- ny: function(c) {
- this.za.ny(c)
- },
- rI: function() {
- return this.za.rI()
- },
- WC: function(c) {
- this.za.WC(c);
- this.Cw = c;
- this.sa(this.Wb())
- },
- WVa: A("Cw"),
- update: function() {
- this.yP() && (this.bxa(), this.aJ(t));
- this.DP() && (this.Bya(), this.dJ(t));
- this.FP() && (this.hDa(), this.gJ(t), this.In = q, this.Mf(this.za.i()));
- this.CP() && (this.yya(), this.cJ(t), this.In = q, this.Mf(this.za.i()))
- },
- yP: function() {
- return this.za.yP()
- },
- aJ: function(c) {
- this.za.aJ(c)
- },
- DP: function() {
- return this.za.DP()
- },
- dJ: function(c) {
- this.za.dJ(c)
- },
- FP: function() {
- return this.za.FP()
- },
- gJ: function(c) {
- this.za.gJ(c)
- },
- CP: function() {
- return this.za.CP()
- },
- cJ: function(c) {
- this.za.cJ(c)
- },
- bxa: function() {
- this.zr && this.Ar && this.Ar.call(this.zr, this, qd.Xla);
- this.mb && this.mb(this, 0)
- },
- Bya: function() {
- this.zr && this.Ar && this.Ar.call(this.zr, this, qd.Zla);
- this.mb && this.mb(this, 1)
- },
- hDa: function() {
- this.zr && this.Ar && this.Ar.call(this.zr, this, qd.$la);
- this.mb && this.mb(this, 2)
- },
- yya: function() {
- this.zr && this.Ar && this.Ar.call(this.zr, this, qd.Yla);
- this.mb && this.mb(this, 3)
- },
- ZPa: function(c, d) {
- this.Ar = c;
- this.zr = d
- },
- S: function(c, d) {
- d === m ? (J.prototype.S.call(this, c), this.za.S(c)) : (J.prototype.S.call(this, c, d), this.za.S(c, d))
- },
- Re: function(c) {
- J.prototype.Re.call(this, c);
- this.za.Re(c)
- },
- Se: function(c) {
- J.prototype.Se.call(this, c);
- this.za.Se(c)
- },
- gc: function() {
- J.prototype.gc.call(this);
- this.In = q
- },
- cJa: function() {
- if (this.Cb) {
- this.za.Za(1);
- var c = this.i();
- this.ca.width = c.width;
- this.ca.height = c.height
- } else {
- c = this.i();
- if (0 >= c.width || 0 >= c.height) {
- this.za.Za(1);
- return
- }
- var d = this.ca.height / c.height;
- this.za.gb(this.ca.width / c.width);
- this.za.pb(d)
- }
- this.za.p(this.o.width / 2, this.o.height / 2)
- },
- i: function() {
- return this.za.i()
- },
- ef: function() {
- return this.za.ef()
- },
- Dg: function() {
- return this.za.Dg()
- },
- Sr: A("za"),
- IJ: function() {
- this.Ei(this.za)
- },
- jD: function() {
- this.Al(this.za)
- },
- fk: B("TextField"),
- pH: function() {
- this.za.pH()
- },
- Uh: function() {
- return qd.create()
- },
- xi: function(c) {
- this.sa(c.za.Wb());
- this.Di(c.Wb());
- this.Od(c.za.Vn());
- this.Zd(c.za.Fp());
- this.my(c.qI());
- this.qs(c.Kx());
- this.ny(c.rI());
- this.WC(c.Cw);
- this.aJ(c.yP());
- this.dJ(c.DP());
- this.gJ(c.FP());
- this.cJ(c.CP())
- }
- });
- qd.create = function(c, d, f) {
- var g = new qd;
- return g && g.j() ? (c && (d && f) && (g.Di(c), g.Zd(d), g.Od(f)), g) : s
- };
- H = qd.prototype;
- C.e(H, "string", H.Wb, H.sa);
- C.e(H, "placeHolder", H.cC, H.Di);
- C.e(H, "font", H.bw, H.rr);
- C.e(H, "fontSize", H.Vn, H.Od);
- C.e(H, "fontName", H.Fp, H.Zd);
- C.e(H, "maxLengthEnabled", H.qI, H.my);
- C.e(H, "maxLength", H.Kx, H.qs);
- C.e(H, "passwordEnabled", H.rI, H.ny);
- H = s;
- qd.create = function() {
- return new qd
- };
- qd.Xla = 0;
- qd.Zla = 1;
- qd.$la = 2;
- qd.Yla = 3;
- qd.Fk = -1;
- var rd = uc.extend({
- type: 0,
- tag: 0,
- color: s,
- ctor: function() {
- this.tag = this.type = 0;
- this.color = C.color(255, 255, 255, 255)
- },
- j: function(c, d, f) {
- this.tag = c;
- this.color.r = d.r;
- this.color.g = d.g;
- this.color.b = d.b;
- this.color.a = f
- }
- }),
- sd = rd.extend({
- text: "",
- fontName: "",
- fontSize: 0,
- ctor: function() {
- rd.prototype.ctor.call(this);
- this.type = rd.iU;
- this.fontName = this.text = "";
- this.fontSize = 0
- },
- j: function(c, d, f, g, h, k) {
- rd.prototype.j.call(this, c, d, f);
- this.text = g;
- this.fontName = h;
- this.fontSize = k
- }
- });
- sd.create = function(c, d, f, g, h, k) {
- var n = new sd;
- n.j(c, d, f, g, h, k);
- return n
- };
- var td = rd.extend({
- sP: "",
- kJa: s,
- lJa: 0,
- ctor: function() {
- rd.prototype.ctor.call(this);
- this.type = rd.lT;
- this.sP = "";
- this.kJa = C.rect(0, 0, 0, 0);
- this.lJa = 0
- },
- j: function(c, d, f, g) {
- rd.prototype.j.call(this, c, d, f);
- this.sP = g
- }
- });
- td.create = function(c, d, f, g) {
- var h = new td;
- h.j(c, d, f, g);
- return h
- };
- var ud = rd.extend({
- kP: s,
- ctor: function() {
- rd.prototype.ctor.call(this);
- this.type = rd.hq;
- this.kP = s
- },
- j: function(c, d, f, g) {
- rd.prototype.j.call(this, c, d, f);
- this.kP = g
- }
- });
- ud.create = function(c, d, f, g) {
- var h = new ud;
- h.j(c, d, f, g);
- return h
- };
- var vd = J.extend({
- $v: t,
- VA: s,
- mt: s,
- sn: 0,
- CZ: 0,
- lt: s,
- ctor: function() {
- J.prototype.ctor.call(this);
- this.$v = t;
- this.VA = [];
- this.mt = [];
- this.CZ = this.sn = 0
- },
- ol: function() {
- this.lt = C.A.create();
- this.lt.S(0.5, 0.5);
- this.Yc(this.lt, 0, -1)
- },
- VXa: function(c, d) {
- this.VA.splice(d, 0, c);
- this.$v = q
- },
- v1a: function(c) {
- this.VA.push(c);
- this.$v = q
- },
- h2a: function(c) {
- "number" === typeof c ? this.VA.splice(c, 1) : C.Id(this.VA, c);
- this.$v = q
- },
- Pza: function() {
- if (this.$v) {
- this.lt.xf();
- this.mt.length = 0;
- var c, d, f = this.VA;
- if (this.Cb) {
- this.RO();
- for (c = 0; c < f.length; c++) {
- d = f[c];
- var g = s;
- switch (d.type) {
- case rd.iU:
- g = C.fa.create(d.text, d.fontName, d.fontSize);
- break;
- case rd.lT:
- g = C.u.create(d.sP);
- break;
- case rd.hq:
- g = d.kP
- }
- g.G(d.color);
- g.K(d.color.a);
- this.SI(g)
- }
- } else {
- this.RO();
- for (c = 0; c < f.length; c++) switch (d = f[c], d.type) {
- case rd.iU:
- this.Lea(d.text, d.fontName, d.fontSize, d.color);
- break;
- case rd.lT:
- this.zCa(d.sP, d.color, d.color.a);
- break;
- case rd.hq:
- this.Kea(d.kP)
- }
- }
- this.Oza();
- this.$v = t
- }
- },
- Lea: function(c, d, f, g) {
- var h = C.fa.create(c, d, f),
- k = h.i().width;
- this.sn -= k;
- 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 = C.fa.create(k.substr(0, h), d, f), h.G(g), h.K(g.a), this.SI(h)), this.RO(), this.Lea(c, d, f, g)) : (h.G(g), h.K(g.a), this.SI(h))
- },
- zCa: function(c) {
- c = C.u.create(c);
- this.Kea(c)
- },
- Kea: function(c) {
- var d = c.i();
- this.sn -= d.width;
- 0 > this.sn ? (this.RO(), this.SI(c), this.sn -= d.width) : this.SI(c)
- },
- RO: function() {
- this.sn = this.mc.width;
- this.mt.push([])
- },
- Oza: function() {
- var c = 0,
- d = this.lt,
- f = this.mt;
- if (this.Cb) {
- for (var g = 0,
- h = f[0], k = 0, n = 0; n < h.length; n++) {
- var p = h[n];
- p.S(C.d(0, 0));
- p.p(C.d(k, 0));
- d.q(p, 1, n);
- f = p.i();
- g += f.width;
- c = Math.max(c, f.height);
- k += f.width
- }
- d.Ca(C.size(g, c))
- } else {
- for (var g = [], r = 0; r < f.length; r++) {
- h = f[r];
- for (n = k = 0; n < h.length; n++) p = h[n],
- k = Math.max(p.i().height, k);
- g[r] = k;
- c += g[r]
- }
- c = this.mc.height;
- for (r = 0; r < f.length; r++) {
- h = f[r];
- k = 0;
- c -= g[r] + this.CZ;
- for (n = 0; n < h.length; n++) p = h[n],
- p.S(C.d(0, 0)),
- p.p(C.d(k, c)),
- d.q(p, 1, 10 * r + n),
- k += p.i().width
- }
- d.Ca(this.ca)
- }
- this.mt.length = 0;
- this.Cb ? (h = this.Xn(), this.ca.width = h.width, this.ca.height = h.height) : (this.ca.width = this.mc.width, this.ca.height = this.mc.height);
- this.Mf(this.ca);
- d.p(0.5 * this.o.width, 0.5 * this.o.height)
- },
- SI: function(c) {
- 0 >= this.mt.length || this.mt[this.mt.length - 1].push(c)
- },
- J: function(c) {
- this.Wc && (this.Pza(), J.prototype.J.call(this, c))
- },
- L5a: x("CZ"),
- S: function(c) {
- J.prototype.S.call(this, c);
- this.lt.S(c)
- },
- Xn: function() {
- return this.lt.i()
- },
- i: function() {
- return this.lt.i()
- },
- We: function(c) {
- this.Cb != c && (this.$v = q, J.prototype.We.call(this, c))
- },
- fk: B("RichText")
- });
- vd.create = function() {
- return new vd
- };
- rd.iU = 0;
- rd.lT = 1;
- rd.hq = 2;
- var T = L.extend({
- z: s,
- direction: s,
- Mo: s,
- Rh: 0,
- fi: 0,
- bg: 0,
- kf: 0,
- Ro: 0,
- No: 0,
- Po: 0,
- Qo: 0,
- WE: t,
- oz: 0,
- Ql: 0,
- XE: 0,
- eX: t,
- lN: t,
- Xg: s,
- wL: t,
- Qw: 0,
- jN: s,
- iF: 0,
- Et: t,
- hu: t,
- St: t,
- Ys: t,
- su: t,
- bF: t,
- Oo: s,
- yL: 0,
- iI: t,
- mf: s,
- nf: s,
- qa: "ScrollView",
- mb: s,
- ctor: function() {
- L.prototype.ctor.call(this);
- this.direction = T.Fla;
- this.Mo = C.d(0, 0);
- this.Qo = this.Po = this.No = this.Ro = this.kf = this.bg = this.fi = this.Rh = 0;
- this.WE = t;
- this.Ql = this.oz = 0;
- this.XE = -1E3;
- this.lN = this.eX = t;
- this.Xg = C.d(0, 0);
- this.wL = t;
- this.Qw = 0;
- this.jN = C.d(0, 0);
- this.iF = 5;
- this.bF = this.su = this.Ys = this.St = this.hu = this.Et = t;
- this.Oo = C.d(0, 0);
- this.yL = 0;
- this.iI = q;
- this.nf = this.mf = s
- },
- j: function() {
- return L.prototype.j.call(this) ? (this.aq(q), this.z.vh(t), q) : t
- },
- Z: function() {
- L.prototype.Z.call(this);
- this.Lu(q)
- },
- Pf: function(c, d) {
- return this.Cm() == L.oq || this.Cm() == L.nq ? this.z.Pf(c, d) : J.prototype.Pf.call(this, c, d)
- },
- ol: function() {
- L.prototype.ol.call(this);
- this.z = L.create();
- this.Yc(this.z, 1, 1)
- },
- gc: function() {
- L.prototype.gc.call(this);
- var c = this.o;
- this.Rh = c.height;
- this.kf = c.width;
- var d = c.width / 3,
- f = c.height / 3;
- this.Ro = c.height - f;
- this.No = f;
- this.Po = d;
- this.Qo = this.o.width - d;
- f = this.z.i();
- d = f.height;
- f = Math.max(f.width, c.width);
- d = Math.max(d, c.height);
- this.z.Ca(C.size(f, d));
- this.z.p(0, c.height - this.z.i().height)
- },
- ky: function(c) {
- var d = this.o,
- f = d.width,
- g = d.height,
- h = this.z.i();
- c.width < d.width ? C.log("Inner width \x3c\x3d scrollview width, it will be force sized!") : f = c.width;
- c.height < d.height ? C.log("Inner height \x3c\x3d scrollview height, it will be force sized!") : g = c.height;
- this.z.yf(C.size(f, g));
- switch (this.direction) {
- case T.wo:
- c = this.z.i();
- h = h.height - c.height;
- this.ko(0, h);
- break;
- case T.vo:
- this.z.Fc() <= d.width && (c = this.z.i(), h = h.width - c.width, this.ko(h, 0));
- break;
- case T.zg:
- c = this.z.i(),
- f = h.height - c.height,
- g = 0,
- this.z.Fc() <= d.width && (g = h.width - c.width),
- this.ko(g, f)
- }
- h = this.z;
- c = h.i();
- f = h.Ld();
- g = h.dk();
- 0 < h.yc() && h.p(g.x * c.width, f.y);
- h.Fc() < d.width && h.p(d.width - (1 - g.x) * c.width, f.y);
- 0 < f.y && h.p(f.x, g.y * c.height);
- h.Be() < d.height && h.p(f.x, d.height - (1 - g.y) * c.height)
- },
- $ua: function(c) {
- var d = this.o.width,
- f = d,
- g = this.z,
- h = g.width;
- c < d ? C.log("Inner width \x3c\x3d scrollview width, it will be force sized!") : f = c;
- g.width = f;
- switch (this.direction) {
- case T.vo:
- case T.zg:
- g.Fc() <= d && this.ko(h - g.width, 0)
- }
- c = g.anchorX;
- 0 < g.yc() && (g.x = c * f);
- g.Fc() < d && (g.x = d - (1 - c) * f)
- },
- Zua: function(c) {
- var d = this.o.height,
- f = d,
- g = this.z,
- h = g.height;
- c < d ? C.log("Inner height \x3c\x3d scrollview height, it will be force sized!") : f = c;
- g.height = f;
- switch (this.direction) {
- case T.wo:
- case T.zg:
- this.ko(0, h - f)
- }
- c = g.anchorY;
- 0 < g.yc() && (g.y = c * f);
- g.Fc() < d && (g.y = d - (1 - c) * f)
- },
- KAa: function() {
- return this.z.i()
- },
- tsa: function() {
- return this.z.width
- },
- ssa: function() {
- return this.z.height
- },
- q: function(c, d, f) {
- if (!c) return t;
- d = d || c.Wa;
- f = f || c.Fm();
- return this.z.q(c, d, f)
- },
- xf: function() {
- this.Ku(q)
- },
- Ku: function(c) {
- this.z.Ku(c)
- },
- removeChild: function(c, d) {
- return this.z.removeChild(c, d)
- },
- le: function() {
- return this.z.le()
- },
- m0: function() {
- return this.z.m0()
- },
- lj: function(c) {
- return this.z.lj(c)
- },
- Pda: function(c) {
- return this.z.Pda(c)
- },
- SO: function(c, d, f) {
- this.z.SO(c, d, f)
- },
- GP: function(c) {
- return this.z.GP(c)
- },
- fea: function() {
- return this.z.fea()
- },
- removeNode: function(c) {
- this.z.removeNode(c)
- },
- Uga: function(c) {
- this.z.Uga(c)
- },
- Qga: function() {
- this.z.Qga()
- },
- eo: function(c, d) {
- var f = this.z.Ld();
- this.jN.x = f.x + c;
- this.jN.y = f.y + d;
- this.z.p(this.jN)
- },
- hxa: function(c) {
- var d = this.oz;
- this.oz += c;
- if (this.eX) 0 >= this.Ql + this.XE * this.oz ? (this.dD(), this.wH()) : (d = (this.Ql + 0.5 * this.XE * (2 * d + c)) * c, this.ko(d * this.Mo.x, d * this.Mo.y) || (this.dD(), this.wH()));
- else if (this.lN) {
- var d = this.Mo.x * c * this.Ql,
- f = this.Mo.y * c * this.Ql;
- c = this.Fxa(d, f);
- d = this.ko(d, f);
- if (!c || !d) this.dD(),
- this.wH()
- } else this.ko(this.Mo.x * c * this.Ql, this.Mo.y * c * this.Ql) || (this.dD(), this.wH())
- },
- txa: function(c) {
- var d = this.yL,
- f = this.Oo;
- 0 >= d && this.F3();
- this.uxa(f.x * c * d, f.y * c * d) || this.F3()
- },
- wH: function() {
- if (!this.su) return t;
- this.Dxa();
- if (this.hu || this.Ys || this.Et || this.St) {
- var c, d;
- this.hu && this.Et ? (c = C.cc(C.d(0, this.o.height), C.d(this.z.yc(), this.z.Be())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.hu && this.St ? (c = C.cc(C.d(this.o.width, this.o.height), C.d(this.z.Fc(), this.z.Be())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.Ys && this.Et ? (c = C.cc(C.d(0, 0), C.d(this.z.yc(), this.z.wd())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.Ys && this.St ? (c = C.cc(C.d(this.o.width, 0), C.d(this.z.Fc(), this.z.wd())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.hu ? (c = C.cc(C.d(0, this.o.height), C.d(0, this.z.Be())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.Ys ? (c = C.cc(C.d(0, 0), C.d(0, this.z.wd())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.Et ? (c = C.cc(C.d(0, 0), C.d(this.z.yc(), 0)), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.St && (c = C.cc(C.d(this.o.width, 0), C.d(this.z.Fc(), 0)), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d));
- return q
- }
- return t
- },
- Dxa: function() {
- this.z.wd() > this.fi ? (this.ks(), this.Ys = q) : this.Ys = t;
- this.z.Be() < this.Rh ? (this.ns(), this.hu = q) : this.hu = t;
- this.z.Fc() < this.kf ? (this.ms(), this.St = q) : this.St = t;
- this.z.yc() > this.bg ? (this.ls(), this.Et = q) : this.Et = t
- },
- $u: function(c) {
- this.yL = c;
- this.bF = q
- },
- F3: function() {
- this.bF = t;
- this.yL = 0;
- this.Ys = this.hu = this.St = this.Et = t
- },
- Oia: function(c, d, f, g) {
- this.dD();
- this.Mo = c;
- this.eX = f;
- this.Ql = d;
- this.WE = q;
- this.XE = g
- },
- po: function(c, d, f) {
- this.lN = t;
- this.Xg = c;
- var g = C.cc(c, this.z.Ld());
- c = C.vf(g);
- var h = 0,
- k = -1E3,
- g = C.Ye(g);
- f ? (k = -(2 * g) / (d * d), h = 2 * g / d) : (this.lN = q, h = g / d);
- this.Oia(c, h, f, k)
- },
- ao: function(c, d) {
- c.x !== m && (d = c.y, c = c.x);
- var f = c,
- g = d;
- switch (this.direction) {
- case T.wo:
- 0 >= d && (g = Math.max(d, this.o.height - this.z.i().height));
- break;
- case T.vo:
- 0 >= c && (f = Math.max(c, this.o.width - this.z.i().width));
- break;
- case T.zg:
- 0 >= d && (g = Math.max(d, this.o.height - this.z.i().height)),
- 0 >= c && (f = Math.max(c, this.o.width - this.z.i().width))
- }
- this.z.p(f, g)
- },
- dD: function() {
- this.WE = t;
- this.oz = this.Ql = 0
- },
- uxa: function(c, d) {
- var f = q,
- g, h, k;
- 0 < c && 0 < d ? (g = c, h = d, k = this.z.Fc(), k + g >= this.kf && (g = this.kf - k, this.g_(), f = t), k = this.z.Be(), k + d >= this.Rh && (h = this.Rh - k, this.h_(), f = t), this.eo(g, h)) : 0 > c && 0 < d ? (g = c, h = d, k = this.z.yc(), k + g <= this.bg && (g = this.bg - k, this.f_(), f = t), k = this.z.Be(), k + d >= this.Rh && (h = this.Rh - k, this.h_(), f = t), this.eo(g, h)) : 0 > c && 0 > d ? (g = c, h = d, k = this.z.yc(), k + g <= this.bg && (g = this.bg - k, this.f_(), f = t), k = this.z.wd(), k + d <= this.fi && (h = this.fi - k, this.b_(), f = t), this.eo(g, h)) : 0 < c && 0 > d ? (g = c, h = d, k = this.z.Fc(), k + g >= this.kf && (g = this.kf - k, this.g_(), f = t), k = this.z.wd(), k + d <= this.fi && (h = this.fi - k, this.b_(), f = t), this.eo(g, h)) : 0 == c && 0 < d ? (h = d, k = this.z.Be(), k + d >= this.Rh && (h = this.Rh - k, this.h_(), f = t), this.eo(0, h)) : 0 == c && 0 > d ? (h = d, k = this.z.wd(), k + d <= this.fi && (h = this.fi - k, this.b_(), f = t), this.eo(0, h)) : 0 < c && 0 == d ? (g = c, k = this.z.Fc(), k + g >= this.kf && (g = this.kf - k, this.g_(), f = t), this.eo(g, 0)) : 0 > c && 0 == d && (g = c, h = this.z.yc(), h + g <= this.bg && (g = this.bg - h, this.f_(), f = t), this.eo(g, 0));
- return f
- },
- Fxa: function(c, d) {
- var f = q,
- g;
- switch (this.direction) {
- case T.wo:
- 0 < this.Mo.y ? (g = this.z.wd(), g + d >= this.Xg.y && (f = t)) : (g = this.z.wd(), g + d <= this.Xg.y && (f = t));
- break;
- case T.vo:
- 0 < this.Mo.x ? (g = this.z.yc(), g + c >= this.Xg.x && (f = t)) : (g = this.z.yc(), g + c <= this.Xg.x && (f = t));
- break;
- case T.zg:
- 0 < c && 0 < d ? (g = this.z.yc(), g + c >= this.Xg.x && (f = t), g = this.z.wd(), g + d >= this.Xg.y && (f = t)) : 0 > c && 0 < d ? (g = this.z.Fc(), g + c <= this.Xg.x && (f = t), g = this.z.wd(), g + d >= this.Xg.y && (f = t)) : 0 > c && 0 > d ? (g = this.z.Fc(), g + c <= this.Xg.x && (f = t), g = this.z.Be(), g + d <= this.Xg.y && (f = t)) : 0 < c && 0 > d ? (g = this.z.yc(), g + c >= this.Xg.x && (f = t), g = this.z.Be(), g + d <= this.Xg.y && (f = t)) : 0 == c && 0 < d ? (g = this.z.wd(), g + d >= this.Xg.y && (f = t)) : 0 > c && 0 == d ? (g = this.z.Fc(), g + c <= this.Xg.x && (f = t)) : 0 == c && 0 > d ? (g = this.z.Be(), g + d <= this.Xg.y && (f = t)) : 0 < c && 0 == d && (g = this.z.yc(), g + c >= this.Xg.x && (f = t))
- }
- return f
- },
- MTa: function(c) {
- this.Ql -= this.XE * c;
- return this.Ql * c
- },
- ko: function(c, d) {
- var f = q;
- this.OGa();
- switch (this.direction) {
- case T.wo:
- f = this.LGa(c, d);
- break;
- case T.vo:
- f = this.KGa(c, d);
- break;
- case T.zg:
- f = this.JGa(c, d)
- }
- return f
- },
- LGa: function(c, d) {
- var f = d,
- g = q,
- h;
- this.su ? (h = this.z.wd(), h + d >= this.No && (f = this.No - h, this.ks(), g = t), h = this.z.Be(), h + d <= this.Ro && (f = this.Ro - h, this.ns(), g = t)) : (h = this.z.wd(), h + d >= this.fi && (f = this.fi - h, this.ks(), g = t), h = this.z.Be(), h + d <= this.Rh && (f = this.Rh - h, this.ns(), g = t));
- this.eo(0, f);
- return g
- },
- KGa: function(c) {
- var d = q,
- f = c,
- g;
- this.su ? (g = this.z.Fc(), g + c <= this.Qo && (f = this.Qo - g, this.ms(), d = t), g = this.z.yc(), g + c >= this.Po && (f = this.Po - g, this.ls(), d = t)) : (g = this.z.Fc(), g + c <= this.kf && (f = this.kf - g, this.ms(), d = t), g = this.z.yc(), g + c >= this.bg && (f = this.bg - g, this.ls(), d = t));
- this.eo(f, 0);
- return d
- },
- JGa: function(c, d) {
- var f = q,
- g = c,
- h = d,
- k;
- this.su ? 0 < c && 0 < d ? (k = this.z.yc(), k + c >= this.Po && (g = this.Po - k, this.ls(), f = t), k = this.z.wd(), k + d >= this.No && (h = this.No - k, this.ks(), f = t)) : 0 > c && 0 < d ? (k = this.z.Fc(), k + c <= this.Qo && (g = this.Qo - k, this.ms(), f = t), k = this.z.wd(), k + d >= this.No && (h = this.No - k, this.ks(), f = t)) : 0 > c && 0 > d ? (k = this.z.Fc(), k + c <= this.Qo && (g = this.Qo - k, this.ms(), f = t), k = this.z.Be(), k + d <= this.Ro && (h = this.Ro - k, this.ns(), f = t)) : 0 < c && 0 > d ? (k = this.z.yc(), k + c >= this.Po && (g = this.Po - k, this.ls(), f = t), k = this.z.Be(), k + d <= this.Ro && (h = this.Ro - k, this.ns(), f = t)) : 0 == c && 0 < d ? (k = this.z.wd(), k + d >= this.No && (h = this.No - k, this.ks(), f = t)) : 0 > c && 0 == d ? (k = this.z.Fc(), k + c <= this.Qo && (g = this.Qo - k, this.ms(), f = t)) : 0 == c && 0 > d ? (k = this.z.Be(), k + d <= this.Ro && (h = this.Ro - k, this.ns(), f = t)) : 0 < c && 0 == d && (k = this.z.yc(), k + c >= this.Po && (g = this.Po - k, this.ls(), f = t)) : 0 < c && 0 < d ? (k = this.z.yc(), k + c >= this.bg && (g = this.bg - k, this.ls(), f = t), k = this.z.wd(), k + d >= this.fi && (h = this.fi - k, this.ks(), f = t)) : 0 > c && 0 < d ? (k = this.z.Fc(), k + c <= this.kf && (g = this.kf - k, this.ms(), f = t), k = this.z.wd(), k + d >= this.fi && (h = this.fi - k, this.ks(), f = t)) : 0 > c && 0 > d ? (k = this.z.Fc(), k + c <= this.kf && (g = this.kf - k, this.ms(), f = t), k = this.z.Be(), k + d <= this.Rh && (h = this.Rh - k, this.ns(), f = t)) : 0 < c && 0 > d ? (k = this.z.yc(), k + c >= this.bg && (g = this.bg - k, this.ls(), f = t), k = this.z.Be(), k + d <= this.Rh && (h = this.Rh - k, this.ns(), f = t)) : 0 == c && 0 < d ? (k = this.z.wd(), k + d >= this.fi && (h = this.fi - k, this.ks(), f = t)) : 0 > c && 0 == d ? (k = this.z.Fc(), k + c <= this.kf && (g = this.kf - k, this.ms(), f = t)) : 0 == c && 0 > d ? (k = this.z.Be(), k + d <= this.Rh && (h = this.Rh - k, this.ns(), f = t)) : 0 < c && 0 == d && (k = this.z.yc(), k + c >= this.bg && (g = this.bg - k, this.ls(), f = t));
- this.eo(g, h);
- return f
- },
- T2a: function(c, d) {
- this.po(C.d(this.z.Rc(), 0), c, d)
- },
- a3a: function(c, d) {
- this.po(C.d(this.z.Rc(), this.o.height - this.z.i().height), c, d)
- },
- W2a: function(c, d) {
- this.po(C.d(0, this.z.Vd()), c, d)
- },
- $2a: function(c, d) {
- this.po(C.d(this.o.width - this.z.i().width, this.z.Vd()), c, d)
- },
- b3a: function(c, d) {
- this.direction != T.zg ? C.log("Scroll direction is not both!") : this.po(C.d(0, this.o.height - this.z.i().height), c, d)
- },
- c3a: function(c, d) {
- if (this.direction != T.zg) C.log("Scroll direction is not both!");
- else {
- var f = this.z.i();
- this.po(C.d(this.o.width - f.width, this.o.height - f.height), c, d)
- }
- },
- U2a: function(c, d) {
- this.direction != T.zg ? C.log("Scroll direction is not both!") : this.po(C.d(0, 0), c, d)
- },
- V2a: function(c, d) {
- this.direction != T.zg ? C.log("Scroll direction is not both!") : this.po(C.d(this.o.width - this.z.i().width, 0), c, d)
- },
- Z2a: function(c, d, f) {
- var g = this.o.height - this.z.i().height;
- this.po(C.d(this.z.Rc(), g + c * -g / 100), d, f)
- },
- Y2a: function(c, d, f) {
- var g = this.z.i().width - this.o.width;
- this.po(C.d( - (c * g / 100), this.z.Vd()), d, f)
- },
- X2a: function(c, d, f) {
- if (this.direction == T.zg) {
- var g = this.o.height - this.z.i().height,
- h = -g,
- k = this.z.i().width - this.o.width;
- this.po(C.d( - (c.x * k / 100), g + c.y * h / 100), d, f)
- }
- },
- TYa: function() {
- this.ao(this.z.Rc(), 0)
- },
- aZa: function() {
- this.ao(this.z.Rc(), this.o.height - this.z.i().height)
- },
- WYa: function() {
- this.ao(0, this.z.Vd())
- },
- $Ya: function() {
- this.ao(this.o.width - this.z.i().width, this.z.Vd())
- },
- bZa: function() {
- this.direction != T.zg ? C.log("Scroll direction is not both!") : this.ao(0, this.o.height - this.z.i().height)
- },
- cZa: function() {
- if (this.direction != T.zg) C.log("Scroll direction is not both!");
- else {
- var c = this.z.i();
- this.ao(this.o.width - c.width, this.o.height - c.height)
- }
- },
- UYa: function() {
- this.direction != T.zg ? C.log("Scroll direction is not both!") : this.ao(0, 0)
- },
- VYa: function() {
- this.direction != T.zg ? C.log("Scroll direction is not both!") : this.ao(this.o.width - this.z.i().width, 0)
- },
- ZYa: function(c) {
- var d = this.o.height - this.z.i().height;
- this.ao(this.z.Rc(), d + c * -d / 100)
- },
- YYa: function(c) {
- var d = this.z.i().width - this.o.width;
- this.ao( - (c * d / 100), this.z.Vd())
- },
- XYa: function(c) {
- if (this.direction == T.zg) {
- var d = this.z.i(),
- f = this.o.height - d.height;
- this.ao( - (c.x * (d.width - this.o.width) / 100), f + c.y * -f / 100)
- }
- },
- UIa: function() {
- this.WE && this.dD();
- this.bF && this.F3();
- this.Qw = 0
- },
- Aza: function() {
- if (!this.wH() && this.iI && !(0.016 >= this.Qw)) {
- var c = 0,
- d;
- switch (this.direction) {
- case T.wo:
- c = this.Dr.y - this.rm.y;
- d = 0 > c ? T.boa: T.eoa;
- break;
- case T.vo:
- c = this.Dr.x - this.rm.x;
- d = 0 > c ? T.coa: T.doa;
- break;
- case T.zg:
- d = C.cc(this.Dr, this.rm),
- c = C.Ye(d),
- d = C.vf(d)
- }
- c = Math.min(Math.abs(c) / this.Qw, T.Dja);
- this.Oia(d, c, q, -1E3);
- this.Qw = 0
- }
- },
- gI: function() {
- this.UIa();
- this.wL = q
- },
- fI: function(c) {
- c = C.cc(c.mh(), c.JP());
- switch (this.direction) {
- case T.wo:
- this.ko(0, c.y);
- break;
- case T.vo:
- this.ko(c.x, 0);
- break;
- case T.zg:
- this.ko(c.x, c.y)
- }
- },
- fC: function() {
- this.Aza();
- this.wL = t
- },
- nc: function(c, d) {
- var f = L.prototype.nc.call(this, c, d);
- this.cw && this.gI(c);
- return f
- },
- yd: function(c, d) {
- L.prototype.yd.call(this, c, d);
- this.fI(c)
- },
- cd: function(c, d) {
- L.prototype.cd.call(this, c, d);
- this.fC(c)
- },
- Xe: function(c, d) {
- L.prototype.Xe.call(this, c, d)
- },
- update: function(c) {
- this.WE && this.hxa(c);
- this.bF && this.txa(c);
- this.eGa(c)
- },
- eGa: function(c) {
- this.wL && (this.Qw += c)
- },
- Wr: function(c, d, f) {
- var g = f.mh();
- switch (c) {
- case J.lU:
- this.rm.x = g.x;
- this.rm.y = g.y;
- this.gI(f);
- break;
- case J.FE:
- C.Ye(C.cc(d.J0(), g)) > this.iF && (d.vj(t), this.oB.x = g.x, this.oB.y = g.y, this.fI(f));
- break;
- case J.mU:
- case J.Eo:
- this.Dr.x = g.x,
- this.Dr.y = g.y,
- this.fC(f)
- }
- },
- ns: function() {
- this.mf && this.nf && this.nf.call(this.mf, this, T.J5);
- this.mb && this.mb(this, T.J5)
- },
- ks: function() {
- this.mf && this.nf && this.nf.call(this.mf, this, T.G5);
- this.mb && this.mb(this, T.G5)
- },
- ls: function() {
- this.mf && this.nf && this.nf.call(this.mf, this, T.H5);
- this.mb && this.mb(this, T.H5)
- },
- ms: function() {
- this.mf && this.nf && this.nf.call(this.mf, this, T.I5);
- this.mb && this.mb(this, T.I5)
- },
- OGa: function() {
- this.mf && this.nf && this.nf.call(this.mf, this, T.F5);
- this.mb && this.mb(this, T.F5)
- },
- h_: function() {
- this.mf && this.nf && this.nf.call(this.mf, this, T.D5);
- this.mb && this.mb(this, T.D5)
- },
- b_: function() {
- this.mf && this.nf && this.nf.call(this.mf, this, T.A5);
- this.mb && this.mb(this, T.A5)
- },
- f_: function() {
- this.mf && this.nf && this.nf.call(this.mf, this, T.B5);
- this.mb && this.mb(this, T.B5)
- },
- g_: function() {
- this.mf && this.nf && this.nf.call(this.mf, this, T.C5);
- this.mb && this.mb(this, T.C5)
- },
- XPa: function(c, d) {
- this.nf = c;
- this.mf = d
- },
- addEventListener: x("mb"),
- sh: x("direction"),
- $B: A("direction"),
- vR: x("su"),
- kYa: A("su"),
- yHa: x("iI"),
- tYa: A("iI"),
- RUa: A("z"),
- Pm: function(c) {
- this.z.Pm(c)
- },
- Cm: function() {
- return this.z.Cm()
- },
- Vl: function() {
- this.$g && (this.$g = t)
- },
- fk: B("ScrollView"),
- Uh: function() {
- return T.create()
- },
- ux: function(c) {
- L.prototype.ux.call(this, c)
- },
- xi: function(c) {
- c instanceof T && (L.prototype.xi.call(this, c), this.ky(c.KAa()), this.sh(c.direction), this.vR(c.su), this.yHa(c.iI), this.mf = c.mf, this.nf = c.nf, this.mb = c.mb)
- }
- }),
- H = T.prototype;
- C.e(H, "innerWidth", H.tsa, H.$ua);
- C.e(H, "innerHeight", H.ssa, H.Zua);
- H = s;
- T.create = function() {
- return new T
- };
- T.Fla = 0;
- T.wo = 1;
- T.vo = 2;
- T.zg = 3;
- T.J5 = 0;
- T.G5 = 1;
- T.H5 = 2;
- T.I5 = 3;
- T.F5 = 4;
- T.D5 = 5;
- T.A5 = 6;
- T.B5 = 7;
- T.C5 = 8;
- T.Dja = 1E3;
- T.eoa = C.d(0, 1);
- T.boa = C.d(0, -1);
- T.coa = C.d( - 1, 0);
- T.doa = C.d(1, 0);
- var wd = T.extend({
- rw: s,
- Eg: s,
- wt: s,
- pn: 0,
- yA: s,
- zA: s,
- UV: 0,
- gm: q,
- qa: "ListView",
- ctor: function() {
- T.prototype.ctor.call(this);
- this.rw = s;
- this.Eg = [];
- this.wt = wd.hT;
- this.pn = 0;
- this.zA = this.yA = s;
- this.UV = 0;
- this.gm = q
- },
- j: function() {
- return T.prototype.j.call(this) ? (this.Pm(L.oq), q) : t
- },
- BHa: function(c) {
- c && (this.rw = c)
- },
- FJa: function() {
- switch (this.direction) {
- case T.wo:
- for (var c = this.Eg.length,
- d = (c - 1) * this.pn, f = 0; f < c; f++) var g = this.Eg[f],
- d = d + g.i().height;
- c = this.o.width;
- this.ky(C.size(c, d));
- break;
- case T.vo:
- c = this.Eg.length;
- d = (c - 1) * this.pn;
- for (f = 0; f < c; f++) g = this.Eg[f],
- d += g.i().width;
- c = this.o.height;
- this.ky(C.size(d, c))
- }
- },
- YI: function(c) {
- if (c) switch (this.direction) {
- case T.wo:
- var d = c.ml();
- if (d) switch (0 == this.OH(c) ? d.mo(Nc()) : d.mo(new Mc(0, this.pn, 0, 0)), this.wt) {
- case wd.a6:
- d.oc(Ic.bn);
- break;
- case wd.b6:
- d.oc(Ic.Jl);
- break;
- case wd.hT:
- d.oc(Ic.DS)
- } else {
- d = Ic.create();
- switch (this.wt) {
- case wd.a6:
- d.oc(Ic.bn);
- break;
- case wd.b6:
- d.oc(Ic.Jl);
- break;
- case wd.hT:
- d.oc(Ic.DS)
- }
- 0 == this.OH(c) ? d.mo(Nc()) : d.mo(new Mc(0, this.pn, 0, 0));
- c.ly(d)
- }
- break;
- case T.vo:
- if (d = c.ml()) switch (0 == this.OH(c) ? d.mo(Nc()) : d.mo(new Mc(this.pn, 0, 0, 0)), this.wt) {
- case wd.c6:
- d.oc(Ic.U7);
- break;
- case wd.Y5:
- d.oc(Ic.pS);
- break;
- case wd.Z5:
- d.oc(Ic.ES)
- } else {
- d = Ic.create();
- switch (this.wt) {
- case wd.c6:
- d.oc(Ic.U7);
- break;
- case wd.Y5:
- d.oc(Ic.pS);
- break;
- case wd.Z5:
- d.oc(Ic.ES)
- }
- 0 == this.OH(c) ? d.mo(Nc()) : d.mo(new Mc(this.pn, 0, 0, 0));
- c.ly(d)
- }
- }
- },
- u1a: function() {
- if (this.rw) {
- var c = this.rw.s();
- this.YI(c);
- this.q(c);
- this.gm = q
- }
- },
- UXa: function(c) {
- if (this.rw) {
- var d = this.rw.s();
- this.Eg.splice(c, 0, d);
- T.prototype.q.call(this, d);
- this.YI(d);
- this.gm = q
- }
- },
- yga: function(c) {
- this.YI(c);
- this.q(c);
- this.gm = q
- },
- q: function(c, d, f) {
- c && (d = d || c.Wa, f = f || c.Fm(), T.prototype.q.call(this, c, d, f), this.Eg.push(c))
- },
- removeChild: function(c, d) {
- if (c) {
- var f = this.Eg.indexOf(c); - 1 < f && this.Eg.splice(f, 1);
- T.prototype.removeChild.call(this, c, d)
- }
- },
- xf: function() {
- this.Ku(q)
- },
- Ku: function(c) {
- T.prototype.Ku.call(this, c);
- this.Eg = []
- },
- TXa: function(c, d) {
- this.Eg.splice(d, 0, c);
- T.prototype.q.call(this, c);
- this.YI(c);
- this.gm = q
- },
- removeItem: function(c) {
- if (c = this.getItem(c)) this.removeChild(c),
- this.gm = q
- },
- i2a: function() {
- this.removeItem(this.Eg.length - 1)
- },
- S1a: function() {
- this.xf()
- },
- getItem: function(c) {
- return 0 > c || c >= this.Eg.length ? s: this.Eg[c]
- },
- VUa: A("Eg"),
- OH: function(c) {
- return this.Eg.indexOf(c)
- },
- oc: function(c) {
- this.wt != c && (this.wt = c, this.gm = q)
- },
- T2: function(c) {
- this.pn != c && (this.pn = c, this.gm = q)
- },
- WUa: A("pn"),
- sh: function(c) {
- switch (c) {
- case T.wo:
- this.Pm(L.oq);
- break;
- case T.vo:
- this.Pm(L.nq);
- break;
- case T.zg:
- return;
- default:
- return
- }
- T.prototype.sh.call(this, c)
- },
- A2a: function() {
- this.gm = q
- },
- iGa: function() {
- for (var c = 0; c < this.Eg.length; c++) {
- var d = this.Eg[c];
- d.ul(c);
- this.YI(d)
- }
- this.FJa()
- },
- Vl: function() {
- L.prototype.Vl.call(this);
- this.gm && (this.iGa(), this.gm = t)
- },
- VPa: function(c, d) {
- this.yA = d;
- this.zA = c
- },
- addEventListener: x("mb"),
- SGa: function(c) {
- c = c == J.lU ? wd.xna: wd.wna;
- this.yA && this.zA && this.zA.call(this.yA, this, c);
- this.mb && this.mb(this, c)
- },
- Wr: function(c, d, f) {
- T.prototype.Wr.call(this, c, d, f);
- if (1 != c) {
- for (f = d; f;) {
- if (f && f.getParent() == this.z) {
- this.UV = this.OH(f);
- break
- }
- f = f.getParent()
- }
- d.mQ() && this.SGa(c)
- }
- },
- OTa: A("UV"),
- gc: function() {
- T.prototype.gc.call(this);
- this.gm = q
- },
- fk: B("ListView"),
- Uh: function() {
- return wd.create()
- },
- ux: function(c) {
- c = c.Eg;
- for (var d = 0; d < c.length; d++) this.yga(c[d].s())
- },
- xi: function(c) {
- T.prototype.xi.call(this, c);
- this.BHa(c.rw);
- this.T2(c.pn);
- this.oc(c.wt);
- this.yA = c.yA;
- this.zA = c.zA;
- this.mb = c.mb
- }
- });
- wd.create = function() {
- return new wd
- };
- wd.LLa = 0;
- wd.xna = 0;
- wd.wna = 1;
- wd.a6 = 0;
- wd.b6 = 1;
- wd.hT = 2;
- wd.c6 = 3;
- wd.Y5 = 4;
- wd.Z5 = 5;
- var xd = L.extend({
- Mj: 0,
- uc: s,
- wO: s,
- Vva: 0,
- Uva: 0,
- Gta: s,
- xA: s,
- WA: s,
- bg: 0,
- kf: 0,
- fw: t,
- Jj: 0,
- mL: 0,
- lV: 0,
- iF: 0,
- JA: s,
- KA: s,
- qa: "PageView",
- mb: s,
- ctor: function() {
- L.prototype.ctor.call(this);
- this.Mj = 0;
- this.uc = [];
- this.wO = xd.nU;
- this.Uva = this.Vva = 0;
- this.WA = this.xA = this.Gta = s;
- this.kf = this.bg = 0;
- this.fw = t;
- this.lV = this.mL = this.Jj = 0;
- this.iF = 5;
- this.KA = this.JA = s
- },
- j: function() {
- return L.prototype.j.call(this) ? (this.aq(q), q) : t
- },
- Z: function() {
- L.prototype.Z.call(this);
- this.Lu(q)
- },
- lQa: function(c, d, f) {
- if (c && !(0 > d)) {
- var g = this.uc.length;
- d >= g ? f && (d > g && C.log("pageIdx is %d, it will be added as page id [%d]", d, g), d = this.Xxa(), d.q(c), this.TO(d)) : (d = this.uc[d]) && d.q(c)
- }
- },
- Xxa: function() {
- var c = L.create();
- c.Ca(this.i());
- return c
- },
- TO: function(c) {
- c && -1 == this.uc.indexOf(c) && (this.Yc(c), this.uc.push(c), this.$g = q)
- },
- XXa: function(c, d) {
- 0 > d || (!c || -1 != this.uc.indexOf(c)) || (d >= this.uc.length ? this.TO(c) : (this.uc[d] = c, this.Yc(c)), this.$g = q)
- },
- xGa: function(c) {
- c && (this.Ai(c), c = this.uc.indexOf(c), -1 < c && this.uc.splice(c, 1), this.$g = q)
- },
- l2a: function(c) {
- 0 > c || c >= this.uc.length || (c = this.uc[c]) && this.xGa(c)
- },
- V1a: function() {
- for (var c = this.uc,
- d = 0,
- f = c.length; d < f; d++) this.Ai(c[d]);
- this.uc.length = 0
- },
- CJa: function() {
- 0 >= this.uc.length ? this.WA = this.xA = s: (this.xA = this.uc[0], this.WA = this.uc[this.uc.length - 1])
- },
- OVa: function() {
- return this.uc.length
- },
- cWa: function(c) {
- return this.UH().width * (c - this.Mj)
- },
- gc: function() {
- L.prototype.gc.call(this);
- this.kf = this.i().width;
- this.$g = q
- },
- zJa: function() {
- for (var c = this.i(), d = this.uc, f = 0, g = d.length; f < g; f++) d[f].Ca(c)
- },
- yJa: function() {
- var c = this.uc.length;
- if (0 >= c) this.Mj = 0;
- else {
- this.Mj >= c && (this.Mj = c - 1);
- for (var d = this.i().width, f = this.uc, g = 0; g < c; g++) f[g].p(C.d((g - this.Mj) * d, 0))
- }
- },
- A2: function(c) {
- 0 > c || c >= this.uc.length || (this.Mj = c, this.Jj = -this.uc[c].Ld().x, this.mL = Math.abs(this.Jj) / 0.2, this.lV = 0 < this.Jj ? 1 : 0, this.fw = q)
- },
- update: function(c) {
- this.fw && this.gxa(c)
- },
- gxa: function(c) {
- switch (this.lV) {
- case 0:
- c *= this.mL;
- 0 <= this.Jj + c ? (c = -this.Jj, this.Jj = 0, this.fw = t) : this.Jj += c;
- this.$I( - c);
- this.fw || this.qga();
- break;
- case 1:
- c *= this.mL,
- 0 >= this.Jj - c ? (c = this.Jj, this.Jj = 0, this.fw = t) : this.Jj -= c,
- this.$I(c),
- this.fw || this.qga()
- }
- },
- nc: function(c, d) {
- var f = L.prototype.nc.call(this, c, d);
- this.cw && this.gI(c);
- return f
- },
- yd: function(c) {
- this.fI(c);
- var d = this.pg();
- d && d.Wr(J.FE, this, c);
- this.Rfa()
- },
- cd: function(c, d) {
- L.prototype.cd.call(this, c, d);
- this.fC(c)
- },
- Xe: function(c, d) {
- L.prototype.Xe.call(this, c, d);
- this.fC(c)
- },
- Vl: function() {
- this.$g && (this.yJa(), this.zJa(), this.CJa(), this.$g = t)
- },
- E1: function(c) {
- for (var d = this.uc,
- f = d.length,
- g = 0; g < f; g++) {
- var h = d[g],
- k = h.Ld();
- h.p(k.x + c, k.y)
- }
- },
- $I: function(c) {
- if (0 >= this.uc.length || !this.xA || !this.WA) return t;
- var d = c;
- switch (this.wO) {
- case xd.nU:
- if (this.WA.Fc() + c <= this.kf) return d = this.kf - this.WA.Fc(),
- this.E1(d),
- t;
- break;
- case xd.V7:
- if (this.xA.yc() + c >= this.bg) return d = this.bg - this.xA.yc(),
- this.E1(d),
- t
- }
- this.E1(d);
- return q
- },
- gI: u(),
- fI: function(c) {
- c = c.mh().x - c.JP().x;
- 0 > c ? this.wO = xd.nU: 0 < c && (this.wO = xd.V7);
- this.$I(c)
- },
- fC: function() {
- if (! (0 >= this.uc.length)) {
- var c = this.uc[this.Mj];
- if (c) {
- var d = c.Ld(),
- c = this.uc.length,
- d = d.x,
- f = this.UH().width / 2;
- d <= -f ? this.Mj >= c - 1 ? this.$I( - d) : this.A2(this.Mj + 1) : d >= f ? 0 >= this.Mj ? this.$I( - d) : this.A2(this.Mj - 1) : this.A2(this.Mj)
- }
- }
- },
- Wr: function(c, d, f) {
- switch (c) {
- case 0:
- this.gI(f);
- break;
- case 1:
- c = 0;
- c = Math.abs(d.J0().x - f.x);
- c > this.iF && (d.yR(t), this.fI(f));
- break;
- case 2:
- this.fC(f)
- }
- },
- qga: function() {
- this.JA && this.KA && this.KA.call(this.JA, this, xd.L5);
- this.mb && this.mb(this, xd.L5)
- },
- WPa: function(c, d) {
- this.KA = c;
- this.JA = d
- },
- addEventListener: x("mb"),
- NTa: A("Mj"),
- PVa: A("uc"),
- NVa: function(c) {
- return 0 > c || c >= this.uc.size() ? s: this.uc[c]
- },
- fk: B("PageView"),
- Uh: function() {
- return xd.create()
- },
- ux: function(c) {
- c = c.uc;
- for (var d = 0; d < c.length; d++) this.TO(c[d].s())
- },
- xi: function(c) {
- L.prototype.xi.call(this, c);
- this.mb = c.mb;
- this.JA = c.JA;
- this.KA = c.KA
- }
- });
- xd.create = function() {
- var c = new xd;
- return c && c.j() ? c: s
- };
- xd.L5 = 0;
- xd.nU = 0;
- xd.V7 = 1;
- C.zh = C.O.extend({
- Rd: s,
- kd: "",
- Wc: q,
- ctor: function() {
- this.Rd = s;
- this.kd = "";
- this.Wc = q
- },
- j: B(q),
- Z: u(),
- Na: u(),
- update: u(),
- QC: u(),
- isEnabled: A("Wc"),
- Ib: x("Wc"),
- getName: A("kd"),
- Ze: x("kd"),
- VC: x("Rd"),
- iea: A("Rd")
- });
- C.zh.create = function() {
- return new C.zh
- };
- C.o5 = C.O.extend({
- Gh: s,
- Rd: s,
- ctor: function(c) {
- this.Gh = s;
- this.Rd = c
- },
- Rda: function(c) {
- c || e("cc.ComponentContainer.getComponent(): name should be non-null");
- c = c.trim();
- return this.Gh[c]
- },
- add: function(c) {
- c || e("cc.ComponentContainer.add(): component should be non-null");
- if (c.Rd) return C.log("cc.ComponentContainer.add(): Component already added. It can't be added again"),
- t;
- this.Gh == s && (this.Gh = {},
- this.Rd.Lu());
- if (this.Gh[c.getName()]) return C.log("cc.ComponentContainer.add(): Component already added. It can't be added again"),
- t;
- c.VC(this.Rd);
- this.Gh[c.getName()] = c;
- c.Z();
- return q
- },
- remove: function(c) {
- c || e("cc.ComponentContainer.remove(): name should be non-null");
- if (!this.Gh) return t;
- if (c instanceof C.zh) return this.eba(c);
- c = c.trim();
- return this.eba(this.Gh[c])
- },
- eba: function(c) {
- if (c) return t;
- c.Na();
- c.VC(s);
- delete this.Gh[c.getName()];
- return q
- },
- mk: function() {
- if (this.Gh) {
- var c = this.Gh,
- d;
- for (d in c) {
- var f = c[d];
- f.Na();
- f.VC(s);
- delete c[d]
- }
- this.Rd.hD();
- this.Gh = s
- }
- },
- XNa: function() {
- this.Gh = {}
- },
- J: function(c) {
- if (this.Gh) {
- var d = this.Gh,
- f;
- for (f in d) d[f].update(c)
- }
- },
- gfa: function() {
- if (!this.Gh) return q;
- for (var c in this.Gh) return t;
- return q
- }
- });
- var V = V || {};
- V.O = V.O || C.O;
- V.O.extend = V.O.extend || C.O.extend;
- V.A = V.A || C.A;
- V.A.extend = V.A.extend || C.A.extend;
- V.ha = V.ha || C.ha;
- V.ha.extend = V.ha.extend || C.ha.extend;
- V.u = V.u || C.u;
- V.u.extend = V.u.extend || C.u.extend;
- V.zh = V.zh || C.zh;
- V.zh.extend = V.zh.extend || C.zh.extend;
- V.YQa = "v1.3.0.0";
- V.mKa = V.O.extend({
- Lp: function(c, d, f) {
- c = c.substr(c.lastIndexOf("/") + 1, c.length());
- C.log("filename \x3d\x3d %s", c.toString());
- for (var g = [], h = d.actionlist, k = 0; k < h; k++) {
- var n = new ActionObject;
- n.Lp(d.actionlist[k], f);
- g.push(n)
- }
- this.vq[c] = g
- },
- i0: function(c, d) {
- var f = this.vq[c];
- if (f) for (var g = 0; g < f.length; g++) {
- var h = f[g];
- if (d == h.getName()) return h
- }
- },
- GFa: function(c, d) {
- var f = this.i0(c, d);
- f && f.play();
- return f
- },
- kGa: function() {
- for (var c in this.vq) delete this.vq[c];
- this.vq = []
- }
- });
- V.MNa = 0.3;
- V.oqa = 1;
- V.pqa = 1.1;
- V.$ma = 5E6;
- V.Aja = 50;
- V.Bja = 100;
- V.hKa = V.$ma / V.Aja / V.Bja;
- V.lKa = t;
- V.ID = t;
- V.mv = t;
- V.qQa = B("v1.1.0.0");
- V.e5 = "version";
- V.WJ = 2;
- V.xs = 0.3;
- V.JS = "skeleton";
- V.Dka = "armatures";
- V.J4 = "armature";
- V.DD = "b";
- V.dla = "d";
- V.Bka = "animations";
- V.I4 = "animation";
- V.c5 = "mov";
- V.IS = "f";
- V.jla = "TextureAtlas";
- V.d5 = "SubTexture";
- V.yg = "name";
- V.Iy = "dr";
- V.Pka = "fi";
- V.P4 = "to";
- V.Q4 = "drTW";
- V.U4 = "lp";
- V.AD = "sc";
- V.V4 = "dl";
- V.O4 = "dI";
- V.hLa = "vert";
- V.eLa = "frag";
- V.Tka = "plist";
- V.FS = "parent";
- V.TJ = "kX";
- V.UJ = "kY";
- V.BD = "cX";
- V.CD = "cY";
- V.HS = "z";
- V.R4 = "evt";
- V.Vka = "sd";
- V.Wka = "sdE";
- V.VJ = "twE";
- V.Xka = "twR";
- V.Oka = "twEP";
- V.Rka = "isArmature";
- V.Nka = "displayType";
- V.Ska = "mov";
- V.Ika = "bd";
- V.Hka = "bd_src";
- V.Gka = "bd_dst";
- V.Jy = "x";
- V.Ky = "y";
- V.M4 = "cocos2d_x";
- V.N4 = "cocos2d_y";
- V.Z4 = "width";
- V.T4 = "height";
- V.W4 = "pX";
- V.X4 = "pY";
- V.Kka = "cocos2d_pX";
- V.Lka = "cocos2d_pY";
- V.K4 = "a";
- V.Y4 = "r";
- V.S4 = "g";
- V.L4 = "b";
- V.Fka = "aM";
- V.Uka = "rM";
- V.Qka = "gM";
- V.Jka = "bM";
- V.Mka = "colorTransform";
- V.GS = "tweenFrame";
- V.fLa = "rotation";
- V.gLa = "uci";
- V.a5 = "con";
- V.cla = "con_vt";
- V.iLa = "movementEventFrame";
- V.kLa = "soundFrame";
- V.b5 = "NaN";
- V.fla = "frame_data";
- V.gla = "mov_bone_data";
- V.jLa = "mov_frame_data";
- V.hla = "mov_data";
- V.Cka = "animation_data";
- V.ela = "display_data";
- V.ila = "skin_data";
- V.Yka = "bone_data";
- V.Eka = "armature_data";
- V.bla = "contour_data";
- V.kla = "texture_data";
- V.lla = "vertex";
- V.Zka = "color";
- V.$ka = "config_file_path";
- V.ala = "content_scale";
- function yd() {
- this.uQa = s;
- this.fRa = [];
- this.yH = 1;
- this.xQa = this.filename = "";
- this.EB = this.tP = 0
- }
- V.lP = {
- nF: [],
- COa: V.WJ,
- gOa: V.xs,
- OA: 1,
- mz: 0,
- Jv: 0,
- R4a: x("OA"),
- bWa: A("OA"),
- clear: function() {
- this.nF = [];
- this.Jv = this.mz = 0
- },
- rca: function(c, d) {
- if ( - 1 == this.nF.indexOf(c)) {
- this.nF.push(c);
- var f = C.path.Cp(c).toLowerCase(),
- g = new yd;
- g.filename = c;
- g.ZZ = this.$sa(c);
- ".xml" == f ? this.vwa(c, g) : (".json" == f || ".exportjson" == f) && this.twa(c, g, d)
- }
- },
- swa: function(c, d, f, g) {
- if ( - 1 != this.nF.indexOf(c)) d && f && (0 == this.Jv && 0 == this.mz ? this.gV(d, f, 1) : this.gV(d, f, (this.Jv - this.mz) / this.Jv));
- else {
- this.Jv++;
- this.mz++;
- var h = this;
- C.Q.Em().y2(this,
- function() {
- h.rca(c, g);
- h.mz--;
- h.gV(d, f, (h.Jv - h.mz) / h.Jv)
- },
- 0.1, t)
- }
- },
- gV: function(c, d, f) {
- if (c && "string" == typeof d) c[d](f);
- else c && "function" == typeof d && d.call(c, f)
- },
- $sa: function(c) {
- var d = c.lastIndexOf("/");
- return c = -1 < d ? c.substr(0, d + 1) : ""
- },
- vwa: function(c, d) {
- var f = C.M.xd(c);
- f || e("Please load the resource first : " + c); (f = C.IGa.parse(f).documentElement) && this.rwa(f, d)
- },
- rwa: function(c, d) {
- if (c) {
- d.tP = parseFloat(c.getAttribute(V.e5));
- for (var f = c.querySelectorAll(V.JS + " \x3e " + V.Dka + " \x3e " + V.J4 + ""), g = V.Mr, h = 0; h < f.length; h++) {
- var k = this.eya(f[h], d);
- g.LZ(k.name, k, d.filename)
- }
- f = c.querySelectorAll(V.JS + " \x3e " + V.Bka + " \x3e " + V.I4 + "");
- for (h = 0; h < f.length; h++) k = this.cya(f[h], d),
- g.KZ(k.name, k, d.filename);
- f = c.querySelectorAll(V.JS + " \x3e " + V.jla + " \x3e " + V.d5 + "");
- for (h = 0; h < f.length; h++) k = this.uya(f[h], d),
- g.Aca(k.name, k, d.filename)
- } else C.log("XML error or XML is empty.")
- },
- eya: function(c, d) {
- var f = c.getAttribute(V.yg),
- g = new V.kS;
- g.name = f;
- for (var f = c.querySelectorAll(V.J4 + " \x3e " + V.DD), h = 0; h < f.length; h++) {
- var k = f[h],
- n = k.getAttribute(V.FS),
- p = s;
- if (n) for (var r = 0; r < f.length && !(p = f[r], n == f[r].getAttribute(V.yg)); r++);
- k = this.gya(k, p, d);
- g.nca(k)
- }
- return g
- },
- gya: function(c, d, f) {
- var g = c.getAttribute(V.yg);
- if ("" != g) {
- d = new V.y4;
- d.name = g;
- d.RI = c.getAttribute(V.FS) || "";
- d.Tm = parseInt(c.getAttribute(V.HS)) || 0;
- c = c.querySelectorAll(V.DD + " \x3e " + V.dla);
- for (var h, g = 0; g < c.length; g++) h = c[g],
- h = this.hya(h, f),
- d.tca(h);
- return d
- }
- },
- hya: function(c) {
- var d = s;
- 1 == (parseFloat(c.getAttribute(V.Rka)) || 0) ? (d = new V.vD, d.il = V.Ly) : (d = new V.sq, d.il = V.zs); (c = c.getAttribute(V.yg) || "") && (d.displayName = c);
- return d
- },
- cya: function(c, d) {
- var f = c.getAttribute(V.yg),
- g = new V.jS,
- h = V.Mr.Gx(f);
- g.name = f;
- for (var f = c.querySelectorAll(V.I4 + " \x3e " + V.c5), k = s, n = 0; n < f.length; n++) k = f[n],
- k = this.oya(k, h, d),
- g.uca(k);
- return g
- },
- oya: function(c, d, f) {
- var g = c.getAttribute(V.yg),
- h = new V.I6;
- h.name = g;
- g = g = 0;
- g = parseFloat(c.getAttribute(V.Iy)) || 0;
- h.duration = g;
- g = parseFloat(c.getAttribute(V.P4)) || 0;
- h.wu = g;
- g = parseFloat(c.getAttribute(V.Q4)) || 0;
- h.qP = g;
- g = c.getAttribute(V.U4);
- h.loop = g ? Boolean(parseFloat(g)) : q;
- if (g = c.getAttribute(V.VJ)) g != V.b5 ? (g = parseFloat(g) || 0, h.tweenEasing = 2 == g ? V.bb.XC: g) : h.tweenEasing = V.bb.oj;
- c = c.querySelectorAll(V.c5 + " \x3e " + V.DD);
- for (var k = s,
- g = 0; g < c.length; g++) {
- var k = c[g],
- n = k.getAttribute(V.yg);
- if (!h.t0(n)) {
- var n = d.Hx(n),
- p = n.RI,
- r = s;
- if ("" != p) for (var v = 0; v < c.length && !(r = c[v], p == r.getAttribute(V.yg)); v++);
- k = this.pya(k, r, n, f);
- h.vca(k)
- }
- }
- return h
- },
- pya: function(c, d, f, g) {
- var h = new V.H6,
- k;
- c && (k = parseFloat(c.getAttribute(V.AD)) || 0, h.scale = k, k = parseFloat(c.getAttribute(V.V4)) || 0, 0 < k && (k -= 1), h.wm = k);
- var n = 0,
- p = k = 0,
- r = s,
- v = [];
- if (d != s) {
- for (var y = d.querySelectorAll(V.DD + " \x3e " + V.IS), n = 0; n < y.length; n++) v.push(y[n]);
- n = v.length
- }
- var y = 0,
- z = c.getAttribute(V.yg);
- h.name = z;
- c = c.querySelectorAll(V.DD + " \x3e " + V.IS);
- for (var D = z = 0; D < c.length; D++) {
- var E = c[D];
- if (d) for (; z < n && (r ? y < k || y >= k + p: 1);) r = v[z],
- k += p,
- p = parseFloat(r.getAttribute(V.Iy)),
- z++;
- E = this.mya(E, r, f, g);
- h.QO(E);
- E.kj = y;
- y += E.duration;
- h.duration = y
- }
- d = h.kh;
- f = Math.PI;
- for (n = d.length - 1; 0 <= n; n--) if (0 < n) {
- g = d[n].skewX - d[n - 1].skewX;
- k = d[n].skewY - d[n - 1].skewY;
- if (g < -f || g > f) d[n - 1].skewX = 0 > g ? d[n - 1].skewX - 2 * f: d[n - 1].skewX + 2 * f;
- if (k < -f || k > f) d[n - 1].skewY = 0 > k ? d[n - 1].skewY - 2 * f: d[n - 1].skewY + 2 * f
- }
- 0 < h.kh.length && (E = new V.qv, E.copy(h.kh[h.kh.length - 1]), E.kj = h.duration, h.QO(E));
- return h
- },
- mya: function(c, d, f, g) {
- f = new V.qv;
- f.zC = c.getAttribute(V.Ska) || "";
- f.event = c.getAttribute(V.R4) || "";
- f.pxa = parseInt(c.getAttribute(V.Ika)) || V.u4;
- var h = f.blendFunc;
- switch (f.pxa) {
- case V.u4:
- h.src = C.Ic;
- h.ga = C.Hc;
- break;
- case V.Vja:
- h.src = C.SRC_ALPHA;
- h.ga = C.ONE;
- break;
- case V.Wja:
- h.src = C.ONE_MINUS_SRC_ALPHA;
- h.ga = C.ONE_MINUS_DST_COLOR;
- break;
- case V.Xja:
- h.src = C.ONE,
- h.ga = C.ONE_MINUS_DST_COLOR
- }
- f.ZR = c.getAttribute(V.Vka) || "";
- f.$R = c.getAttribute(V.Wka) || "";
- h = c.getAttribute(V.GS);
- h == s && (h = q);
- f.Cu = Boolean(h);
- g.tP >= V.WJ ? (f.x = parseFloat(c.getAttribute(V.M4)) || 0, f.y = -parseFloat(c.getAttribute(V.N4)) || 0) : (f.x = parseFloat(c.getAttribute(V.Jy)) || 0, f.y = -parseFloat(c.getAttribute(V.Ky)) || 0);
- f.x *= this.OA;
- f.y *= this.OA;
- f.scaleX = parseFloat(c.getAttribute(V.BD)) || 0;
- f.scaleY = parseFloat(c.getAttribute(V.CD)) || 0;
- f.skewX = C.ng(parseFloat(c.getAttribute(V.TJ)) || 0);
- f.skewY = C.ng( - parseFloat(c.getAttribute(V.UJ)) || 0);
- f.duration = parseFloat(c.getAttribute(V.Iy)) || 0;
- f.ij = parseFloat(c.getAttribute(V.O4)) || 0;
- f.Tm = parseFloat(c.getAttribute(V.HS)) || 0;
- f.Cy = parseFloat(c.getAttribute(V.Xka)) || 0;
- h = c.querySelectorAll(V.IS + " \x3e " + V.Mka);
- if (0 < h.length) {
- var k = h[0],
- n = 0,
- p = 0,
- r = 0,
- v = 0,
- y = 0,
- z = 0,
- D = 100,
- h = parseFloat(k.getAttribute(V.K4)) || 0,
- n = parseFloat(k.getAttribute(V.Y4)) || n,
- p = parseFloat(k.getAttribute(V.S4)) || p,
- r = parseFloat(k.getAttribute(V.L4)) || r,
- E = k.getAttribute(V.Fka);
- E && (v = parseFloat(E)); (E = k.getAttribute(V.Uka)) && (y = parseFloat(E));
- var F = k.getAttribute(V.Qka);
- E && (z = parseFloat(F)); (k = k.getAttribute(V.Jka)) && (D = parseFloat(k));
- f.a = 2.55 * v + h;
- f.r = 2.55 * y + n;
- f.g = 2.55 * z + p;
- f.b = 2.55 * D + r;
- f.$n = q
- } - 1 == f.ij && (f.a = 0); (c = c.getAttribute(V.VJ)) && (f.tweenEasing = c != V.b5 ? 2 == c ? V.bb.XC: c: V.bb.oj);
- d && (c = new V.Um, g.tP >= V.WJ ? (c.x = parseFloat(d.getAttribute(V.M4)) || 0, c.y = parseFloat(d.getAttribute(V.N4)) || 0) : (c.x = parseFloat(d.getAttribute(V.Jy)) || 0, c.y = parseFloat(d.getAttribute(V.Ky)) || 0), c.skewX = parseFloat(d.getAttribute(V.TJ)) || 0, c.skewY = parseFloat(d.getAttribute(V.UJ)) || 0, c.y = -c.y, c.skewX = C.ng(c.skewX), c.skewY = C.ng( - c.skewY), V.Ij.pJa(f, c));
- return f
- },
- uya: function(c, d) {
- var f = new V.a8;
- c.getAttribute(V.yg) && (f.name = c.getAttribute(V.yg));
- var g, h, k, n = 0;
- d.tP >= V.WJ ? (g = parseFloat(c.getAttribute(V.Kka)) || 0, h = parseFloat(c.getAttribute(V.Lka)) || 0) : (g = parseFloat(c.getAttribute(V.W4)) || 0, h = parseFloat(c.getAttribute(V.X4)) || 0);
- k = parseFloat(c.getAttribute(V.Z4)) || 0;
- n = parseFloat(c.getAttribute(V.T4)) || 0;
- f.WQ = g / k;
- f.XQ = (n - h) / n;
- g = c.querySelectorAll(V.d5 + " \x3e " + V.a5);
- for (h = 0; h < g.length; h++) this.kya(g[h], d);
- return f
- },
- kya: function(c) {
- var d = new V.p5;
- c = c.querySelectorAll(V.a5 + " \x3e " + V.cla);
- for (var f, g = 0; g < c.length; g++) {
- f = c[g];
- var h = C.d(0, 0);
- h.x = parseFloat(f.getAttribute(V.Jy)) || 0;
- h.y = parseFloat(f.getAttribute(V.Ky)) || 0;
- d.dv.push(h)
- }
- return d
- },
- twa: function(c, d, f) {
- this.uwa(C.M.xd(c), d, f)
- },
- uwa: function(c, d, f) {
- d.yH = c[V.ala] || 1;
- for (var g = c[V.Eka] || [], h, k = 0; k < g.length; k++) h = this.fya(g[k], d),
- V.Mr.LZ(h.name, h, d.filename);
- g = c[V.Cka] || [];
- for (k = 0; k < g.length; k++) h = this.dya(g[k], d),
- V.Mr.KZ(h.name, h, d.filename);
- g = c[V.kla] || [];
- for (k = 0; k < g.length; k++) h = this.vya(g[k], d),
- V.Mr.Aca(h.name, h, d.filename);
- if (f) {
- c = c[V.$ka] || [];
- for (k = 0; k < c.length; k++) f = c[k],
- g = f.lastIndexOf("."),
- f = f.substring(0, g),
- g = d.ZZ + f + ".plist",
- f = d.ZZ + f + ".png",
- V.Mr.mH(g, f, d.filename)
- }
- },
- fya: function(c, d) {
- var f = new V.kS,
- g = c[V.yg];
- g && (f.name = g);
- d.EB = f.IB = c[V.e5] || 0.1;
- for (var g = c[V.Yka], h = 0; h < g.length; h++) f.nca(this.jya(g[h], d));
- return f
- },
- jya: function(c, d) {
- var f = new V.y4;
- this.gda(f, c, d);
- f.name = c[V.yg] || "";
- f.RI = c[V.FS] || "";
- for (var g = c[V.ela] || [], h = 0; h < g.length; h++) {
- var k = this.iya(g[h], d);
- f.tca(k)
- }
- return f
- },
- iya: function(c, d) {
- var f = c[V.Nka] || V.zs,
- g = s;
- switch (f) {
- case V.zs:
- g = new V.sq;
- g.displayName = c[V.yg] || "";
- var h = (c[V.ila] || [])[0];
- if (h) {
- var k = g.skinData;
- k.x = (h[V.Jy] || 0) * this.OA;
- k.y = (h[V.Ky] || 0) * this.OA;
- h[V.BD] !== m && (k.scaleX = h[V.BD]);
- h[V.CD] !== m && (k.scaleY = h[V.CD]);
- k.skewX = h[V.TJ] || 0;
- k.skewY = h[V.UJ] || 0;
- k.x *= d.yH;
- k.y *= d.yH
- }
- break;
- case V.Ly:
- g = new V.vD;
- g.displayName = c[V.yg] || "";
- break;
- case V.HD:
- g = new V.DK;
- g.displayName = d.ZZ + c[V.Tka] || "";
- break;
- default:
- g = new V.sq
- }
- g.il = f;
- return g
- },
- dya: function(c, d) {
- var f = new V.jS;
- f.name = c[V.yg] || "";
- for (var g = c[V.hla] || [], h = 0; h < g.length; h++) {
- var k = this.rya(g[h], d);
- f.uca(k)
- }
- return f
- },
- rya: function(c, d) {
- var f = new V.I6;
- f.loop = c[V.U4] || t;
- f.qP = c[V.Q4] || 0;
- f.wu = c[V.P4] || 0;
- f.duration = c[V.Iy] || 0;
- c[V.AD] !== m && (f.scale = c[V.AD]);
- f.tweenEasing = c[V.VJ] || V.bb.oj;
- f.name = c[V.yg] || "";
- for (var g = c[V.gla] || [], h = 0; h < g.length; h++) {
- var k = this.qya(g[h], d);
- f.vca(k)
- }
- return f
- },
- qya: function(c, d) {
- var f = new V.H6;
- f.wm = c[V.V4] || 0;
- c[V.AD] !== m && (f.scale = c[V.AD]);
- f.name = c[V.yg] || "";
- for (var g = c[V.fla] || [], h = 0; h < g.length; h++) {
- var k = this.nya(g[h], d);
- f.QO(k);
- d.EB < V.xs && (k.kj = f.duration, f.duration += k.duration)
- }
- if (d.EB < V.oqa) {
- g = f.kh;
- k = Math.PI;
- for (h = g.length - 1; 0 <= h; h--) if (0 < h) {
- var n = g[h].skewX - g[h - 1].skewX,
- p = g[h].skewY - g[h - 1].skewY;
- if (n < -k || n > k) g[h - 1].skewX = 0 > n ? g[h - 1].skewX - 2 * k: g[h - 1].skewX + 2 * k;
- if (p < -k || p > k) g[h - 1].skewY = 0 > p ? g[h - 1].skewY - 2 * k: g[h - 1].skewY + 2 * k
- }
- }
- d.EB < V.xs && 0 < f.kh.length && (k = new V.qv, k.copy(f.kh[f.kh.length - 1]), f.QO(k), k.kj = f.duration);
- return f
- },
- nya: function(c, d) {
- var f = new V.qv;
- this.gda(f, c, d);
- f.duration = c[V.Iy] || 0;
- f.tweenEasing = c[V.VJ] || V.bb.oj;
- f.ij = c[V.O4] || 0;
- var g = c[V.Gka] || C.Hc;
- f.blendFunc.src = c[V.Hka] || C.Ic;
- f.blendFunc.ga = g;
- f.event = c[V.R4] || s;
- c[V.GS] !== m && (f.Cu = c[V.GS]);
- d.EB < V.xs ? f.duration = c[V.Iy] || 0 : f.kj = c[V.Pka] || 0;
- for (var g = c[V.Oka] || [], h = 0; h < g.length; h++) f.LB[h] = g[h];
- return f
- },
- vya: function(c) {
- var d = new V.a8;
- d.name = c[V.yg] || "";
- d.width = c[V.Z4] || 0;
- d.height = c[V.T4] || 0;
- d.WQ = c[V.W4] || 0;
- d.XQ = c[V.X4] || 0;
- c = c[V.bla] || [];
- for (var f = 0; f < c.length; f++) {
- var g = this.lya(c[f]);
- d.tx.push(g)
- }
- return d
- },
- lya: function(c) {
- var d = new V.p5;
- c = c[V.lla] || [];
- for (var f = 0; f < c.length; f++) {
- var g = c[f],
- h = C.d(0, 0);
- h.x = g[V.Jy] || 0;
- h.y = g[V.Ky] || 0;
- d.dv.push(h)
- }
- return d
- },
- gda: function(c, d, f) {
- c.x = d[V.Jy] || 0;
- c.y = d[V.Ky] || 0;
- c.x *= f.yH;
- c.y *= f.yH;
- c.Tm = d[V.HS] || 0;
- c.skewX = d[V.TJ] || 0;
- c.skewY = d[V.UJ] || 0;
- d[V.BD] !== m && (c.scaleX = d[V.BD]);
- d[V.CD] !== m && (c.scaleY = d[V.CD]);
- if (d = d[V.Zka] || s) f.EB < V.pqa && (d = d[0]),
- c.a = d[V.K4],
- c.r = d[V.Y4],
- c.g = d[V.S4],
- c.b = d[V.L4],
- c.$n = q,
- delete d
- },
- uGa: function(c) {
- C.Id(this.nF, c)
- }
- };
- V.Mia = {
- nO: {},
- Wsa: [],
- mH: function(c, d) {
- C.Fe.Lr(c, d)
- },
- $Ba: B(s),
- clear: function() {
- this.nO = {};
- this.Wsa = []
- }
- };
- V.Ij = V.Ij || V.O.extend({});
- V.Ij.UP = {
- a: 1,
- b: 0,
- H: 0,
- P: 1,
- na: 0,
- oa: 0
- };
- V.Ij.VP = {
- a: 1,
- b: 0,
- H: 0,
- P: 1,
- na: 0,
- oa: 0
- };
- V.Ij.Ip = C.d(0, 0);
- V.Ij.Jp = C.d(0, 0);
- V.Ij.pJa = function(c, d) {
- this.F1(c, this.UP);
- this.F1(d, this.VP);
- this.VP = C.iS(this.VP);
- this.UP = C.Qg(this.UP, this.VP);
- this.Pfa(this.UP, c)
- };
- V.Ij.F1 = function(c, d) {
- if (c.skewX == -c.skewY) {
- var f = Math.sin(c.skewX),
- g = Math.cos(c.skewX);
- d.a = c.scaleX * g;
- d.b = c.scaleX * -f;
- d.H = c.scaleY * f;
- d.P = c.scaleY * g
- } else d.a = c.scaleX * Math.cos(c.skewY),
- d.b = c.scaleX * Math.sin(c.skewY),
- d.H = c.scaleY * Math.sin(c.skewX),
- d.P = c.scaleY * Math.cos(c.skewY);
- d.na = c.x;
- d.oa = c.y
- };
- V.Ij.Pfa = function(c, d) {
- this.Ip.x = 0;
- this.Ip.y = 1;
- this.Ip = C.wv(this.Ip, c);
- this.Ip.x -= c.na;
- this.Ip.y -= c.oa;
- this.Jp.x = 1;
- this.Jp.y = 0;
- this.Jp = C.wv(this.Jp, c);
- this.Jp.x -= c.na;
- this.Jp.y -= c.oa;
- d.skewX = -(Math.atan2(this.Ip.y, this.Ip.x) - 1.5707964);
- d.skewY = Math.atan2(this.Jp.y, this.Jp.x);
- d.scaleX = Math.sqrt(c.a * c.a + c.b * c.b);
- d.scaleY = Math.sqrt(c.H * c.H + c.P * c.P);
- d.x = c.na;
- d.y = c.oa
- };
- V.Ij.h0a = function(c, d) {
- c.x += d.x;
- c.y += d.y;
- c.skewX += d.skewX;
- c.skewY += d.skewY;
- c.scaleX += d.scaleX;
- c.scaleY += d.scaleY
- };
- V.Ij.vEa = function(c, d) {
- c.x -= d.x;
- c.y -= d.y;
- c.skewX -= d.skewX;
- c.skewY -= d.skewY;
- c.scaleX -= d.scaleX;
- c.scaleY -= d.scaleY
- };
- V.bb = {
- bya: -1,
- oj: 0,
- B3: 1,
- C3: 2,
- XC: 3,
- d2: 4,
- f2: 5,
- e2: 6,
- F_: 7,
- H_: 8,
- G_: 9,
- g2: 10,
- i2: 11,
- h2: 12,
- j2: 13,
- l2: 14,
- k2: 15,
- e0: 16,
- g0: 17,
- f0: 18,
- u_: 19,
- xza: 20,
- v_: 21,
- Y_: 22,
- $_: 23,
- Z_: 24,
- VZ: 25,
- XZ: 26,
- WZ: 27,
- c_: 28,
- e_: 29,
- d_: 30,
- bja: 1E4
- };
- V.jc = V.jc || V.O.extend({});
- V.Bo = 2 * Math.PI;
- V.D6 = Math.PI / 2;
- V.ana = Math.PI;
- V.jc.rJa = function(c, d, f) {
- var g = 0;
- switch (d) {
- case V.bb.bya:
- g = this.aya(c, f);
- break;
- case V.bb.oj:
- g = this.oj(c);
- break;
- case V.bb.B3:
- g = this.B3(c);
- break;
- case V.bb.C3:
- g = this.C3(c);
- break;
- case V.bb.XC:
- g = this.XC(c);
- break;
- case V.bb.d2:
- g = this.d2(c);
- break;
- case V.bb.f2:
- g = this.f2(c);
- break;
- case V.bb.e2:
- g = this.e2(c);
- break;
- case V.bb.F_:
- g = this.F_(c);
- break;
- case V.bb.H_:
- g = this.H_(c);
- break;
- case V.bb.G_:
- g = this.G_(c);
- break;
- case V.bb.g2:
- g = this.g2(c);
- break;
- case V.bb.i2:
- g = this.i2(c);
- break;
- case V.bb.h2:
- g = this.h2(c);
- break;
- case V.bb.j2:
- g = this.j2(c);
- break;
- case V.bb.l2:
- g = this.l2(c);
- break;
- case V.bb.k2:
- g = this.k2(c);
- break;
- case V.bb.e0:
- g = this.e0(c);
- break;
- case V.bb.g0:
- g = this.g0(c);
- break;
- case V.bb.f0:
- g = this.f0(c);
- break;
- case V.bb.u_:
- g = this.u_(c);
- break;
- case V.bb.xza:
- g = this.Hxa(c);
- break;
- case V.bb.v_:
- g = this.v_(c);
- break;
- case V.bb.Y_:
- g = this.Y_(c, f);
- break;
- case V.bb.$_:
- g = this.$_(c, f);
- break;
- case V.bb.Z_:
- g = this.Z_(c, f);
- break;
- case V.bb.VZ:
- g = this.VZ(c);
- break;
- case V.bb.XZ:
- g = this.XZ(c);
- break;
- case V.bb.WZ:
- g = this.WZ(c);
- break;
- case V.bb.c_:
- g = this.c_(c);
- break;
- case V.bb.e_:
- g = this.e_(c);
- break;
- case V.bb.d_:
- g = this.d_(c);
- break;
- default:
- g = this.XC(c)
- }
- return g
- };
- V.jc.oj = da();
- V.jc.B3 = function(c) {
- return - 1 * Math.cos(c * V.D6) + 1
- };
- V.jc.C3 = function(c) {
- return Math.sin(c * V.D6)
- };
- V.jc.XC = function(c) {
- return - 0.5 * (Math.cos(V.ana * c) - 1)
- };
- V.jc.d2 = function(c) {
- return c * c
- };
- V.jc.f2 = function(c) {
- return - 1 * c * (c - 2)
- };
- V.jc.e2 = function(c) {
- c *= 2;
- if (1 > c) return 0.5 * c * c; --c;
- return - 0.5 * (c * (c - 2) - 1)
- };
- V.jc.F_ = function(c) {
- return c * c * c
- };
- V.jc.H_ = function(c) {
- c -= 1;
- return c * c * c + 1
- };
- V.jc.G_ = function(c) {
- c *= 2;
- if (1 > c) return 0.5 * c * c * c;
- c -= 2;
- return 0.5 * (c * c * c + 2)
- };
- V.jc.g2 = function(c) {
- return c * c * c * c
- };
- V.jc.i2 = function(c) {
- c -= 1;
- return - (c * c * c * c - 1)
- };
- V.jc.h2 = function(c) {
- c *= 2;
- if (1 > c) return 0.5 * c * c * c * c;
- c -= 2;
- return - 0.5 * (c * c * c * c - 2)
- };
- V.jc.j2 = function(c) {
- return c * c * c * c * c
- };
- V.jc.l2 = function(c) {
- c -= 1;
- return c * c * c * c * c + 1
- };
- V.jc.k2 = function(c) {
- c *= 2;
- if (1 > c) return 0.5 * c * c * c * c * c;
- c -= 2;
- return 0.5 * (c * c * c * c * c + 2)
- };
- V.jc.e0 = function(c) {
- return 0 == c ? 0 : Math.pow(2, 10 * (c - 1)) - 0.0010
- };
- V.jc.g0 = function(c) {
- return 1 == c ? 1 : -Math.pow(2, -10 * c) + 1
- };
- V.jc.f0 = function(c) {
- c /= 0.5;
- return c = 1 > c ? 0.5 * Math.pow(2, 10 * (c - 1)) : 0.5 * ( - Math.pow(2, -10 * (c - 1)) + 2)
- };
- V.jc.u_ = function(c) {
- return - 1 * (Math.sqrt(1 - c * c) - 1)
- };
- V.jc.Hxa = function(c) {
- c -= 1;
- return Math.sqrt(1 - c * c)
- };
- V.jc.v_ = function(c) {
- c *= 2;
- if (1 > c) return - 0.5 * (Math.sqrt(1 - c * c) - 1);
- c -= 2;
- return 0.5 * (Math.sqrt(1 - c * c) + 1)
- };
- V.jc.Y_ = function(c, d) {
- var f = 0.3;
- 0 < d.length && (f = d[0]);
- var g = 0;
- 0 == c || 1 == c ? g = c: (c -= 1, g = -Math.pow(2, 10 * c) * Math.sin((c - f / 4) * V.Bo / f));
- return g
- };
- V.jc.$_ = function(c, d) {
- var f = 0.3;
- 0 < d.length && (f = d[0]);
- var g = 0;
- return g = 0 == c || 1 == c ? c: Math.pow(2, -10 * c) * Math.sin((c - f / 4) * V.Bo / f) + 1
- };
- V.jc.Z_ = function(c, d) {
- var f = 0.3;
- 0 < d.length && (f = d[0]);
- var g = 0;
- 0 == c || 1 == c ? g = c: (f || (f = 0.3 * 1.5), g = f / 4, c = 2 * c - 1, g = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin((c - g) * V.Bo / f) : 0.5 * Math.pow(2, -10 * c) * Math.sin((c - g) * V.Bo / f) + 1);
- return g
- };
- V.jc.VZ = function(c) {
- return c * c * (2.70158 * c - 1.70158)
- };
- V.jc.XZ = function(c) {
- c -= 1;
- return c * c * (2.70158 * c + 1.70158) + 1
- };
- V.jc.WZ = function(c) {
- c *= 2;
- if (1 > c) return c * c * (3.5949095 * c - 2.5949095) / 2;
- c -= 2;
- return c * c * (3.5949095 * c + 2.5949095) / 2 + 1
- };
- V.Nr = function(c) {
- if (c < 1 / 2.75) return 7.5625 * c * c;
- if (c < 2 / 2.75) return c -= 1.5 / 2.75,
- 7.5625 * c * c + 0.75;
- if (c < 2.5 / 2.75) return c -= 2.25 / 2.75,
- 7.5625 * c * c + 0.9375;
- c -= 2.625 / 2.75;
- return 7.5625 * c * c + 0.984375
- };
- V.jc.c_ = function(c) {
- return 1 - V.Nr(1 - c)
- };
- V.jc.e_ = function(c) {
- return V.Nr(c)
- };
- V.jc.d_ = function(c) {
- var d = 0;
- return d = 0.5 > c ? 0.5 * (1 - V.Nr(1 - 2 * c)) : 0.5 * V.Nr(2 * c - 1) + 0.5
- };
- V.jc.aya = function(c, d) {
- if (0 < d.length) {
- var f = 1 - c;
- return d[1] * f * f * f + 3 * d[3] * c * f * f + 3 * d[5] * c * c * f + d[7] * c * c * c
- }
- return c
- };
- V.QB = function(c, d) {
- for (; c > d;) c -= d;
- return c
- };
- function zd(c) {
- c && c.rh && c.rh()
- }
- V.kfa = function(c, d, f) {
- var g = C.d(0, 0);
- f && (g = c.wi(d));
- c = c.i();
- c = C.rect(0, 0, c.width, c.height);
- return C.Ju(c, g)
- };
- V.cNa = V.kfa;
- V.woa = V.kfa;
- V.eSa = function(c, d, f, g, h) {
- var k = C.d(0, 0);
- g && !h && (k.x = Math.pow(1 - c, 2) * d.x + 2 * c * (1 - c) * f.x + Math.pow(c, 2) * g.x, k.y = Math.pow(1 - c, 2) * d.y + 2 * c * (1 - c) * f.y + Math.pow(c, 2) * g.y);
- h && (k.x = d.x * Math.pow(1 - c, 3) + 3 * c * f.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 * f.y * Math.pow(1 - c, 2) + 3 * g.y * Math.pow(c, 2) * (1 - c) + h.y * Math.pow(c, 3));
- return k
- };
- V.fSa = function(c, d, f, g, h) {
- var k = C.d(0, 0);
- k.x = d.x + f * Math.cos(g + h * c);
- k.y = d.y + f * Math.sin(g + h * c);
- return k
- };
- function Ad() {
- this.a2 = [];
- this.SZ = [];
- this.xB = [];
- this.M3 = []
- }
- V.Mr = {
- Vs: {},
- Ws: {},
- du: {},
- Vqa: t,
- LN: {},
- $1a: function(c) {
- for (var d = this.RH(c), f = 0; f < d.SZ.length; f++) {
- var g = d.SZ[f];
- this.rGa(g)
- }
- for (f = 0; f < d.xB.length; f++) g = d.xB[f],
- this.pGa(g);
- for (f = 0; f < d.M3.length; f++) g = d.M3[f],
- this.BGa(g);
- for (f = 0; f < d.a2.length; f++) g = d.a2[f],
- C.Fe.AGa(g);
- delete this.LN[c];
- V.lP.uGa(c)
- },
- LZ: function(c, d, f) {
- this.Ws && (this.RH(f).SZ.push(c), this.Ws[c] = d)
- },
- rGa: function(c) {
- this.Ws[c] && delete this.Ws[c]
- },
- Gx: function(c) {
- var d = s;
- this.Ws && (d = this.Ws[c]);
- return d
- },
- RSa: A("Ws"),
- KZ: function(c, d, f) {
- this.Vs && (this.RH(f).xB.push(c), this.Vs[c] = d)
- },
- pGa: function(c) {
- this.Vs[c] && delete this.Vs[c]
- },
- Jda: function(c) {
- var d = s;
- this.Vs[c] && (d = this.Vs[c]);
- return d
- },
- LSa: A("Vs"),
- Aca: function(c, d, f) {
- this.du && (this.RH(f).M3.push(c), this.du[c] = d)
- },
- BGa: function(c) {
- this.du[c] && delete this.du[c]
- },
- ZBa: function(c) {
- var d = s;
- this.du && (d = this.du[c]);
- return d
- },
- TWa: A("du"),
- pwa: function() {
- var c, d, f, g = t;
- 1 == arguments.length ? (f = arguments[0], g = q, this.UO(f)) : 3 == arguments.length && (c = arguments[0], d = arguments[1], f = arguments[2], this.UO(f), this.mH(d, c, f));
- V.lP.rca(f, g)
- },
- RPa: function() {
- var c, d, f, g, h, k = t;
- 3 == arguments.length ? (f = arguments[0], h = arguments[1], g = arguments[2], k = q, this.UO(f)) : 5 == arguments.length && (c = arguments[0], d = arguments[1], f = arguments[2], h = arguments[3], g = arguments[4], this.UO(f), this.mH(d, c, f));
- V.lP.swa(f, g, h, k)
- },
- mH: function(c, d, f) {
- this.RH(f).a2.push(c);
- V.Mia.mH(c, d)
- },
- eYa: A("Vqa"),
- UO: function(c) {
- this.LN[c] || (this.LN[c] = new Ad)
- },
- RH: function(c) {
- return this.LN[c]
- },
- clear: function() {
- this.Vs = {};
- this.Ws = {};
- this.du = {};
- V.Mia.clear();
- V.lP.clear()
- }
- };
- V.u4 = 0;
- V.EKa = 1;
- V.zKa = 2;
- V.Wja = 3;
- V.FKa = 4;
- V.Xja = 5;
- V.GKa = 6;
- V.CKa = 7;
- V.Vja = 8;
- V.HKa = 9;
- V.AKa = 10;
- V.DKa = 11;
- V.yKa = 12;
- V.BKa = 13;
- V.zs = 0;
- V.Ly = 1;
- V.HD = 2;
- V.gK = 3;
- V.Um = V.O.extend({
- x: 0,
- y: 0,
- Tm: 0,
- skewX: 0,
- skewY: 0,
- scaleX: 1,
- scaleY: 1,
- Cy: 0,
- $n: t,
- r: 255,
- g: 255,
- b: 255,
- a: 255,
- ctor: function() {
- this.skewY = this.skewX = this.Tm = this.y = this.x = 0;
- this.scaleY = this.scaleX = 1;
- this.Cy = 0;
- this.$n = t;
- this.a = this.b = this.g = this.r = 255
- },
- copy: function(c) {
- this.x = c.x;
- this.y = c.y;
- this.Tm = c.Tm;
- this.scaleX = c.scaleX;
- this.scaleY = c.scaleY;
- this.skewX = c.skewX;
- this.skewY = c.skewY;
- this.Cy = c.Cy;
- this.$n = c.$n;
- this.r = c.r;
- this.g = c.g;
- this.b = c.b;
- this.a = c.a
- },
- G: function(c) {
- this.r = c.r;
- this.g = c.g;
- this.b = c.b;
- this.a = c.a
- },
- Xa: function() {
- return C.color(this.r, this.g, this.b, this.a)
- },
- J3: function(c, d, f) {
- this.x = d.x - c.x;
- this.y = d.y - c.y;
- this.scaleX = d.scaleX - c.scaleX;
- this.scaleY = d.scaleY - c.scaleY;
- this.skewX = d.skewX - c.skewX;
- this.skewY = d.skewY - c.skewY;
- this.$n || c.$n || d.$n ? (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.$n = q) : (this.a = this.r = this.g = this.b = 0, this.$n = t);
- f && (this.skewX > C.PI && (this.skewX -= V.Bo), this.skewX < -C.PI && (this.skewX += V.Bo), this.skewY > C.PI && (this.skewY -= V.Bo), this.skewY < -C.PI && (this.skewY += V.Bo));
- d.Cy && (this.skewX += d.Cy * V.Bo, this.skewY -= d.Cy * V.Bo)
- }
- });
- V.My = V.O.extend({
- il: V.gK,
- displayName: "",
- ctor: function() {
- this.il = V.gK
- },
- PQa: function(c) {
- var d = c.lastIndexOf("."); - 1 != d && (c = c.substring(0, d));
- return c
- },
- copy: function(c) {
- this.displayName = c.displayName;
- this.il = c.il
- }
- });
- V.sq = V.My.extend({
- skinData: s,
- ctor: function() {
- this.skinData = new V.Um;
- this.il = V.zs
- },
- copy: function(c) {
- V.My.prototype.copy.call(this, c);
- this.skinData = c.skinData
- }
- });
- V.vD = V.My.extend({
- displayName: "",
- ctor: function() {
- this.displayName = "";
- this.il = V.Ly
- }
- });
- V.DK = V.My.extend({
- ctor: function() {
- this.il = V.HD
- }
- });
- V.y4 = V.Um.extend({
- oP: s,
- name: "",
- RI: "",
- qxa: s,
- ctor: function() {
- this.oP = [];
- this.RI = this.name = "";
- this.qxa = s
- },
- j: u(),
- tca: function(c) {
- this.oP.push(c)
- },
- Am: function(c) {
- return this.oP[c]
- }
- });
- V.kS = V.O.extend({
- sH: s,
- name: "",
- IB: 0.1,
- ctor: function() {
- this.sH = {};
- this.name = "";
- this.IB = 0.1
- },
- j: B(q),
- nca: function(c) {
- this.sH[c.name] = c
- },
- gTa: A("sH"),
- Hx: function(c) {
- return this.sH[c]
- }
- });
- V.qv = V.Um.extend({
- duration: 0,
- tweenEasing: 0,
- GH: 0,
- LB: s,
- ij: -1,
- zC: "",
- event: "",
- ZR: "",
- $R: "",
- blendFunc: 0,
- kj: 0,
- Cu: q,
- ctor: function() {
- V.Um.prototype.ctor.call(this);
- this.duration = 1;
- this.tweenEasing = V.bb.oj;
- this.GH = 0;
- this.LB = [];
- this.ij = 0;
- this.$R = this.ZR = this.event = this.zC = "";
- this.blendFunc = new C.Vm(C.Ic, C.Hc);
- this.kj = 0;
- this.Cu = q
- },
- copy: function(c) {
- V.Um.prototype.copy.call(this, c);
- this.duration = c.duration;
- this.tweenEasing = c.tweenEasing;
- this.ij = c.ij;
- this.zC = c.zC;
- this.event = c.event;
- this.ZR = c.ZR;
- this.$R = c.$R;
- this.blendFunc = c.blendFunc;
- this.Cu = c.Cu;
- this.GH = c.GH;
- this.LB = [];
- if (0 != this.GH) for (var d = 0; d < this.GH; d++) this.LB[d] = c.LB[d]
- }
- });
- V.H6 = V.O.extend({
- wm: 0,
- scale: 1,
- duration: 0,
- kh: s,
- name: "",
- ctor: function() {
- this.wm = 0;
- this.scale = 1;
- this.duration = 0;
- this.kh = [];
- this.name = ""
- },
- j: function() {
- this.kh = []
- },
- QO: function(c) {
- this.kh.push(c)
- },
- Zda: function(c) {
- return this.kh[c]
- }
- });
- V.I6 = V.O.extend({
- D1: s,
- duration: 0,
- scale: 1,
- wu: 0,
- qP: V.bb.oj,
- loop: q,
- tweenEasing: 2,
- name: "",
- ctor: function() {
- this.name = "";
- this.duration = 0;
- this.scale = 1;
- this.qP = this.wu = 0;
- this.loop = q;
- this.tweenEasing = V.bb.oj;
- this.D1 = {}
- },
- vca: function(c) {
- this.D1[c.name] = c
- },
- t0: function(c) {
- return this.D1[c]
- }
- });
- V.jS = V.O.extend({
- JQ: s,
- AI: s,
- name: "",
- ctor: function() {
- this.JQ = {};
- this.AI = []
- },
- uca: function(c) {
- this.JQ[c.name] = c;
- this.AI.push(c.name)
- },
- cea: function(c) {
- return this.JQ[c]
- },
- dea: function() {
- return Object.keys(this.JQ).length
- }
- });
- function Bd(c, d) {
- this.x = c || 0;
- this.y = d || 0
- }
- V.p5 = V.O.extend({
- dv: s,
- ctor: function() {
- this.dv = []
- },
- j: function() {
- this.dv = [];
- return q
- },
- kQa: function(c) {
- c = Bd(c.x, c.y);
- this.dv.push(c)
- }
- });
- V.a8 = V.O.extend({
- height: 0,
- width: 0,
- WQ: 0,
- XQ: 0,
- name: "",
- tx: s,
- ctor: function() {
- this.width = this.height = 0;
- this.XQ = this.WQ = 0.5;
- this.name = "";
- this.tx = []
- },
- j: function() {
- this.tx = []
- },
- qca: function(c) {
- this.tx.push(c)
- },
- BP: function(c) {
- return this.tx[c]
- }
- });
- V.hK = V.O.extend({
- jt: s,
- Kj: s,
- xF: s,
- ctor: function() {
- this.xF = this.Kj = this.jt = s
- },
- j: B(q),
- eJ: x("jt"),
- fUa: A("jt"),
- jHa: x("Kj"),
- HTa: A("Kj"),
- TC: x("xF"),
- Am: A("xF"),
- rh: function() {
- zd(this.jt);
- this.jt = s;
- zd(this.xF);
- this.xF = s;
- zd(this.Kj);
- this.Kj = s
- }
- });
- V.hK.create = function() {
- var c = new V.hK;
- return c && c.j() ? c: s
- };
- V.Sg = V.Sg || V.O.extend({});
- V.Sg.NZ = function(c, d, f) {
- switch (f.il) {
- case V.zs:
- this.Cwa(c, d, f);
- break;
- case V.HD:
- this.zwa(c, d, f);
- break;
- case V.Ly:
- this.owa(c, d, f)
- }
- };
- V.Sg.Wxa = function(c, d) {
- switch (d.Am().il) {
- case V.zs:
- this.bda(c, d);
- break;
- case V.HD:
- this.ada(c, d);
- break;
- case V.Ly:
- this.Zca(c, d)
- }
- };
- V.Sg.Vsa = {
- a: 1,
- b: 0,
- H: 0,
- P: 1,
- na: 0,
- oa: 0
- };
- V.Sg.DJa = function(c, d, f) {
- var g = c.aC();
- if (g) {
- switch (c.q0()) {
- case V.zs:
- f && g.fja();
- break;
- case V.HD:
- this.HJa(c, g, d);
- break;
- case V.Ly:
- this.BJa(g, d);
- break;
- default:
- d = c.uVa(),
- g.UGa(d)
- }
- if ((V.ID || V.mv) && f) if (g = c.Kd.en, f = g.Kj) {
- d = g.jt;
- var h = d.me(),
- g = this.Vsa;
- g.a = h.a;
- g.b = h.b;
- g.H = h.H;
- g.P = h.P;
- g.na = h.na;
- g.oa = h.oa;
- d = d.Ep();
- d = C.wv(d, g);
- g.na = d.x;
- g.oa = d.y;
- c = C.Qg(g, c.Nc.me());
- f.$h(c)
- }
- }
- };
- V.Sg.Cwa = function(c, d, f) {
- var g = new V.sq;
- g.copy(f);
- d.TC(g);
- this.bda(c, d)
- };
- V.Sg.bda = function(c, d) {
- var f = s,
- g = d.Am(),
- f = g.displayName,
- h = f.lastIndexOf("."); - 1 != h && (f = f.substring(0, h));
- f = "" == f ? V.Do.create() : V.Do.cda(f + ".png");
- d.eJ(f);
- f.E2(c);
- this.V0(c, d, g.displayName, f); (h = c.Nc) && (h.Gx().IB >= V.xs ? f.ss(g.skinData) : f.ss(c.Hx()))
- };
- V.Sg.V0 = function(c, d, f, g) {
- var h = f.lastIndexOf("."); - 1 != h && (f = f.substring(0, h)); (f = V.Mr.ZBa(f)) && g.S(f.WQ, f.XQ);
- if ((V.ID || V.mv) && f && 0 < f.tx.length) c = V.$J.create(c),
- c.qwa(f.tx),
- d.jHa(c)
- };
- V.Sg.owa = function(c, d, f) {
- var g = new V.vD;
- g.copy(f);
- d.TC(g);
- this.Zca(c, d)
- };
- V.Sg.Zca = function(c, d) {
- var f = V.Bk.create(d.Am().displayName, c);
- d.eJ(f)
- };
- V.Sg.BJa = function(c, d) {
- c && (c.ed(), c.update(d))
- };
- V.Sg.zwa = function(c, d, f) {
- var g = new V.DK;
- g.copy(f);
- d.TC(g);
- this.ada(c, d)
- };
- V.Sg.ada = function(c, d) {
- var f = C.B.create(d.Am().displayName);
- f.Lm();
- f.ze();
- c.Nc && f.cq(c.Nc);
- d.eJ(f)
- };
- V.Sg.HJa = function(c, d, f) {
- var g = new V.Um;
- V.Ij.Pfa(c.nu, g);
- d.p(g.x, g.y);
- d.gb(g.scaleX);
- d.pb(g.scaleY);
- d.update(f)
- };
- V.XS = V.O.extend({
- ag: s,
- en: s,
- Ne: s,
- Xo: -1,
- yM: t,
- hd: s,
- Ja: q,
- aM: s,
- ctor: function() {
- this.ag = [];
- this.Ne = this.en = s;
- this.Xo = -1;
- this.yM = t;
- this.hd = s;
- this.Ja = q;
- this.aM = V.gK
- },
- j: function(c) {
- this.hd = c;
- this.Sea(c.Hx());
- return q
- },
- NZ: function(c, d) {
- var f = s;
- 0 <= d && d < this.ag.length ? f = this.ag[d] : (f = V.hK.create(), this.ag.push(f));
- var g = s;
- if (c instanceof V.Do) {
- c.E2(this.hd);
- g = new V.sq;
- V.Sg.V0(this.hd, f, c.Wv, c);
- var h = f.Am();
- if (h instanceof V.sq) c.ss(h.skinData),
- g.skinData = h.skinData;
- else for (h = this.ag.length - 2; 0 <= h; h--) {
- var k = this.ag[h].Am();
- if (k instanceof V.sq) {
- c.ss(k.skinData);
- g.skinData = k.skinData;
- break
- }
- }
- } else c instanceof C.B ? (g = new V.DK, c.Lm(), c.ze(), (h = this.hd.Nc) && c.cq(h)) : c instanceof V.Bk ? (h = c, g = new V.vD, g.displayName = h.getName(), h.Tu(this.hd)) : g = new V.My;
- f.eJ(c);
- f.TC(g);
- d == this.Xo && (this.Xo = -1, this.Or(d, t))
- },
- UNa: function(c, d) {
- var f = s;
- if (d instanceof V.Do) {
- d.E2(this.hd);
- f = new V.sq;
- f.displayName = d.Wv;
- V.Sg.V0(this.hd, c, d.Wv, d);
- var g = c.Am();
- if (g instanceof V.sq) d.ss(g.skinData);
- else {
- for (var g = t,
- h = this.ag.length - 2; 0 <= h; h--) {
- var k = this.ag[h].Am();
- if (k) {
- g = q;
- d.ss(k.skinData);
- f.skinData = k.skinData;
- break
- }
- }
- g || d.ss(new V.Um);
- d.ss(new V.Um)
- }
- } else d instanceof C.B ? (f = new V.DK, f.displayName = d.CN) : d instanceof V.Bk ? (f = new V.vD, f.displayName = d.getName(), d.Tu(this.hd)) : f = new V.My;
- c.eJ(d);
- c.TC(f)
- },
- Sga: function(c) {
- this.ag.splice(c, 1);
- c == this.Xo && this.xR(s)
- },
- ZTa: A("ag"),
- Or: function(c, d) {
- if (c >= this.ag.length) C.log("the index value is out of range");
- else if (this.yM = d, 0 > c) this.Xo = c,
- this.Ne && (this.Ne.Lm(q), this.xR(s), this.Ne = s);
- else if (this.Xo != c) {
- this.Xo = c;
- var f = this.ag[this.Xo];
- f && this.xR(f)
- }
- },
- Oca: function(c, d) {
- for (var f = 0; f < this.ag.length; f++) if (this.ag[f].Am().displayName == c) {
- this.Or(f, d);
- break
- }
- },
- xR: function(c) {
- var d = this.en; (V.ID || V.mv) && d && d.Kj && d.Kj.setActive(t);
- d = this.en = c; (V.ID || V.mv) && d && d.Kj && d.Kj.setActive(q);
- c = d == s ? s: d.jt;
- this.Ne && (this.Ne instanceof V.Bk && this.hd.K2(s), this.Ne.Lm(q), this.Ne = s); (this.Ne = c) ? (c instanceof V.Bk ? this.hd.K2(c) : c instanceof C.B && c.Zga(), c.sb && (c.G(this.hd.xu()), c.K(this.hd.hb)), this.aM = this.en.Am().il) : this.aM = V.gK
- },
- aC: A("Ne"),
- q0: A("aM"),
- QTa: A("Xo"),
- PTa: A("en"),
- YTa: function(c) {
- return this.ag[c]
- },
- Sea: function(c) {
- this.ag = [];
- if (c) {
- c = c.oP;
- for (var d = 0; d < c.length; d++) {
- var f = c[d],
- g = V.hK.create();
- g.TC(f);
- V.Sg.Wxa(this.hd, g);
- this.ag.push(g)
- }
- }
- },
- Pxa: function(c, d) {
- var f = C.d(0, 0);
- d === m ? (f.x = c.x, f.y = c.y) : (f.x = c, f.y = d);
- if (!this.Ja || 0 > this.Xo) return t;
- var g = t;
- switch (this.en.Am().il) {
- case V.zs:
- var g = C.d(0, 0),
- h = this.en.jt,
- h = h.lj(0),
- g = V.woa(h, f, g)
- }
- return g
- },
- va: function(c) {
- this.Ne && (this.Ja = c, this.Ne.va(c))
- },
- l1: A("Ja"),
- i: function() {
- return ! this.Ne ? C.size(0, 0) : this.Ne.i()
- },
- Ae: function() {
- return ! this.Ne ? C.rect(0, 0, 0, 0) : this.Ne.Ae()
- },
- dk: function() {
- return ! this.Ne ? C.d(0, 0) : this.Ne.dk()
- },
- Ep: function() {
- return ! this.Ne ? C.d(0, 0) : this.Ne.Ep()
- },
- HUa: A("yM"),
- rh: function() {
- this.ag = [];
- this.Ne && (this.Ne.Lm(q), this.Ne = s)
- }
- });
- V.XS.create = function(c) {
- var d = new V.XS;
- return d && d.j(c) ? d: s
- };
- V.Do = V.u.extend({
- QY: s,
- ej: s,
- RY: s,
- Wv: "",
- Nc: s,
- qa: "Skin",
- ctor: function() {
- C.u.prototype.ctor.call(this);
- this.ej = this.QY = s;
- this.Wv = "";
- this.RY = {
- a: 1,
- b: 0,
- H: 0,
- P: 1,
- na: 0,
- oa: 0
- };
- this.Nc = s
- },
- pl: function(c) {
- var d = C.u.prototype.pl.call(this, c);
- this.Wv = c;
- return d
- },
- Ce: function(c) {
- var d = C.u.prototype.Ce.call(this, c);
- this.Wv = c;
- return d
- },
- ss: function(c) {
- this.QY = c;
- this.gb(c.scaleX);
- this.pb(c.scaleY);
- this.i3(C.LC(c.skewX));
- this.j3(C.LC( - c.skewY));
- this.p(c.x, c.y);
- c = this.me();
- var d = this.RY;
- d.a = c.a;
- d.b = c.b;
- d.H = c.H;
- d.P = c.P;
- d.na = c.na;
- d.oa = c.oa;
- this.fja()
- },
- PBa: A("QY"),
- E2: x("ej"),
- Kda: A("ej"),
- fja: function() {
- var c = this.Lf = C.Qg(this.RY, this.ej.nu),
- d = this.Nc;
- d && d.XB() && (this.Lf = C.Qg(c, d.me()));
- C.L === C.cb && (c = this.Lf, c.b *= -1, c.H *= -1, c.b = [c.H, c.H = c.b][0])
- },
- Ae: function() {
- var c = C.rect(0, 0, this.o.width, this.o.height),
- d = this.me();
- C.L === C.cb && (d.b *= -1, d.H *= -1, d.b = [d.H, d.H = d.b][0]);
- return C.Gi(c, d)
- },
- uAa: A("Wv"),
- ql: function() {
- return C.Qg(this.Lf, this.ej.Nc.ql())
- },
- j0a: function() {
- var c = this.Lf,
- d = this.Nb,
- d = C.wv(d, c);
- c.na = d.x;
- c.oa = d.y;
- return C.Qg(c, this.ej.Nc.ql())
- }
- });
- V.Do.prototype.me = C.A.prototype.nN;
- H = V.Do.prototype;
- C.e(H, "skinData", H.PBa, H.ss);
- C.e(H, "displayName", H.uAa);
- H = s;
- V.Do.create = function(c, d) {
- var f = arguments.length,
- g = new V.Do;
- if (0 === f) {
- if (g.j()) return g
- } else if (g && g.Ce(c, d)) return g;
- return s
- };
- V.Do.cda = function(c) {
- var d = new V.Do;
- return d && d.pl(c) ? d: s
- };
- V.NJ = -4;
- V.rD = -3;
- V.sD = -2;
- V.h4 = -1;
- V.gS = 0;
- V.zja = 1;
- V.qD = 2;
- V.Ek = V.O.extend({
- np: 1,
- $l: q,
- yt: q,
- am: t,
- Pk: 0,
- zn: 0,
- Xk: 0,
- zO: 0,
- VO: s,
- Yg: 0,
- Qj: 0,
- dh: 0,
- Lz: s,
- qta: t,
- ctor: function() {
- this.np = 1;
- this.yt = this.$l = q;
- this.am = t;
- this.zn = this.Qj = this.Pk = this.Yg = 0;
- this.Xk = V.zja;
- this.zO = V.bb.oj;
- this.VO = 1 / 60;
- this.Qj = this.Lz = 0;
- this.qta = t
- },
- pause: function() {
- this.yt = q;
- this.am = t
- },
- nk: function() {
- this.yt = t;
- this.am = q
- },
- stop: function() {
- this.$l = q;
- this.am = t
- },
- play: function(c, d) {
- this.yt = this.$l = t;
- this.am = q;
- this.Yg = 0;
- this.dh = c;
- this.zO = d
- },
- update: function(c) {
- if (this.$l || this.yt || 0 >= this.zn) return t;
- var d = this.dh,
- f = this.Yg;
- 0 >= d ? (this.Pk = 1, f = 0) : (f += this.np * (c / this.VO), this.Pk = f / d, f = V.QB(f, d));
- this.Yg = f;
- this.X3();
- return q
- },
- X3: u(),
- Hea: function(c) {
- var d = this.Xk;
- d == V.rD ? d = V.qD: d == V.sD && (d = V.gS);
- this.Xk = d;
- this.Lz = c;
- this.dh = this.Qj
- },
- nAa: function() {
- return this.Lz = (this.zn - 1) * this.Pk
- },
- xDa: A("yt"),
- qDa: A("$l"),
- oAa: A("Pk"),
- DBa: A("zn"),
- bea: A("Xk"),
- iCa: A("zO"),
- MSa: A("VO"),
- n3a: x("VO"),
- eWa: A("np"),
- GR: x("np"),
- ifa: A("am")
- });
- H = V.Ek.prototype;
- C.e(H, "currentFrameIndex", H.nAa);
- C.e(H, "paused", H.xDa);
- C.e(H, "completed", H.qDa);
- C.e(H, "currentPercent", H.oAa);
- C.e(H, "rawDuration", H.DBa);
- C.e(H, "loop", H.bea);
- C.e(H, "tweenEasing", H.iCa);
- C.e(H, "playing", H.ifa);
- H = s;
- V.xK = {
- start: 0,
- complete: 1,
- oEa: 2
- };
- V.m4 = V.O.extend({
- e9: s,
- $s: s,
- km: s,
- ctor: function(c, d, f) {
- this.Ih = f;
- this.$s = d;
- this.km = c
- },
- call: function() {
- this.$s && this.$s.apply(this.km, this.e9)
- },
- jha: x("e9")
- });
- function Cd() {
- this.armature = s;
- this.Tfa = this.Ufa = ""
- }
- function Dd() {
- this.ej = s;
- this.Hda = "";
- this.currentFrameIndex = this.fga = 0
- }
- V.PJ = V.Ek.extend({
- qu: s,
- er: s,
- Nc: s,
- sw: "",
- oua: 0,
- vp: 0,
- aj: s,
- cA: s,
- CA: s,
- Yt: 1,
- Ur: t,
- yW: s,
- yX: s,
- userObject: s,
- gr: s,
- xw: t,
- kN: t,
- dp: 0,
- ctor: function() {
- V.Ek.prototype.ctor.call(this);
- this.er = this.qu = s;
- this.sw = "";
- this.Nc = s;
- this.vp = this.oua = 0;
- this.aj = [];
- this.CA = this.cA = s;
- this.Yt = 1;
- this.Ur = t;
- this.yW = [];
- this.yX = [];
- this.userObject = s;
- this.gr = [];
- this.kN = this.xw = t;
- this.dp = 0
- },
- j: function(c) {
- this.Nc = c;
- this.aj = [];
- return q
- },
- pause: function() {
- for (var c = 0; c < this.aj.length; c++) this.aj[c].pause();
- V.Ek.prototype.pause.call(this)
- },
- nk: function() {
- for (var c = 0; c < this.aj.length; c++) this.aj[c].nk();
- V.Ek.prototype.nk.call(this)
- },
- stop: function() {
- for (var c = 0; c < this.aj.length; c++) this.aj[c].stop();
- this.aj = [];
- V.Ek.prototype.stop.call(this)
- },
- sia: function(c) {
- if (c != this.Yt) {
- this.Yt = c;
- this.np = !this.er ? this.Yt: this.Yt * this.er.scale;
- c = this.Nc.Fh;
- for (var d in c) {
- var f = c[d];
- f.lu.GR(this.np);
- f.Tl && f.Tl.ll().GR(this.np)
- }
- }
- },
- SBa: A("Yt"),
- Zza: A("Yt"),
- YGa: function(c) {
- return this.sia(c)
- },
- play: function(c, d, f) {
- if (this.qu == s) C.log("this.animationData can not be null");
- else if (this.er = this.qu.cea(c), this.er == s) C.log("this._movementData can not be null");
- else {
- d === m && (d = -1);
- f === m && (f = -1);
- var g = this.er;
- this.zn = g.duration;
- this.sw = c;
- this.np = this.Yt * g.scale;
- d = -1 == d ? g.wu: d;
- c = g.qP;
- c = 0 == c ? this.zn: c;
- var h = g.tweenEasing;
- f = 0 > f ? g.loop: Boolean(f);
- this.xw = t;
- V.Ek.prototype.play.call(this, d, h);
- 0 == this.zn ? this.Xk = V.NJ: (this.Xk = f ? V.sD: V.rD, this.Qj = c);
- this.aj = [];
- var k, n = this.Nc.Fh,
- p;
- for (p in n) {
- var r = n[p];
- k = g.t0(r.getName());
- var v = r.lu;
- k && 0 < k.kh.length ? (this.aj.push(v), k.duration = g.duration, v.play(k, d, c, f, h), v.GR(this.np), r.Tl && r.Tl.ll().GR(this.np)) : r.YP || (r.Kd.Or( - 1, t), v.stop())
- }
- this.Nc.update(0)
- }
- },
- h1a: function(c, d, f) {
- this.gr = [];
- this.kN = f;
- this.xw = q;
- for (f = this.dp = 0; f < c.length; f++) this.gr.push({
- name: c[f],
- wu: d
- });
- this.Y3()
- },
- Y3: function() {
- if (this.xw) {
- if (this.kN) {
- var c = this.gr[this.dp];
- this.play(c.name, c.wu, -1, 0);
- this.dp++;
- this.dp >= this.gr.length && (this.dp = 0)
- } else this.dp < this.gr.length ? (c = this.gr[this.dp], this.play(c.name, c.wu, -1, 0), this.dp++) : this.xw = t;
- this.xw = q
- }
- },
- QP: function(c) {
- if (!this.er || 0 > c || c >= this.er.duration) C.log("Please ensure you have played a movement, and the frameIndex is in the range.");
- else {
- var d = this.Ur;
- this.am = this.Ur = q;
- this.$l = this.yt = t;
- V.Ek.prototype.Hea.call(this, c);
- this.Pk = this.Lz / (this.er.duration - 1);
- this.Yg = this.dh * this.Pk;
- for (var f = 0; f < this.aj.length; f++) this.aj[f].QP(c);
- this.Nc.update(0);
- this.Ur = d
- }
- },
- xCa: function(c) {
- this.QP(c);
- this.pause()
- },
- IFa: function(c, d, f, g) {
- "undefined" == typeof d && (d = -1);
- "undefined" == typeof g && (g = -1);
- f = this.qu.AI; - 1 > c || c >= f.length || this.play(f[c], d, g, 0)
- },
- f1a: function(c, d, f, g, h) {
- C.log("playByIndex is deprecated. Use playWithIndex instead.");
- this.IFa(c, d, f, g, h)
- },
- g1a: function(c, d, f) {
- this.gr = [];
- this.kN = f;
- this.xw = q;
- this.dp = 0;
- f = this.qu.AI;
- for (var g = 0; g < c.length; g++) this.gr.push({
- name: f[c[g]],
- wu: d
- });
- this.Y3()
- },
- dea: function() {
- return this.qu.dea()
- },
- update: function(c) {
- if (V.Ek.prototype.update.call(this, c)) for (var d = 0; d < this.aj.length; d++) this.aj[d].update(c);
- for (c = this.yW; 0 < c.length;) d = c.shift(),
- this.Ur = q,
- this.yxa([d.ej, d.Hda, d.fga, d.currentFrameIndex]),
- this.Ur = t;
- for (c = this.yX; 0 < c.length;) d = c.shift(),
- this.zxa([d.armature, d.Ufa, d.Tfa])
- },
- X3: function() {
- var c = this.Pk;
- if (1 <= c) {
- switch (this.Xk) {
- case V.rD:
- if (this.Xk = V.qD, this.Yg = (c - 1) * this.dh, c = this.Yg / this.Qj, 1 > c) {
- this.dh = this.Qj;
- this.KQ(this.Nc, V.xK.start, this.sw);
- break
- }
- case V.qD:
- case V.NJ:
- c = 1;
- this.$l = q;
- this.am = t;
- this.KQ(this.Nc, V.xK.complete, this.sw);
- this.Y3();
- break;
- case V.sD:
- this.Xk = V.gS;
- c = V.QB(c, 1);
- this.Yg = 0 == this.dh ? 0 : V.QB(this.Yg, this.dh);
- this.dh = 0 < this.Qj ? this.Qj: 1;
- this.KQ(this, V.xK.start, this.sw);
- break;
- default:
- this.Yg = V.QB(this.Yg, this.dh),
- this.vp = 0,
- this.KQ(this.Nc, V.xK.oEa, this.sw)
- }
- this.Pk = c
- }
- },
- STa: function() {
- return this.$l ? "": this.sw
- },
- MHa: function(c, d) {
- this.CA = new V.m4(d, c)
- },
- zxa: function(c) {
- this.CA && (this.CA.jha(c), this.CA.call())
- },
- d4a: function(c, d) {
- this.cA = new V.m4(d, c)
- },
- yxa: function(c) {
- this.cA && (this.cA.jha(c), this.cA.call())
- },
- KQ: function(c, d, f) {
- if (this.CA) {
- var g = new Cd;
- g.armature = c;
- g.Ufa = d;
- g.Tfa = f;
- this.yX.push(g)
- }
- },
- Rza: function(c, d, f, g) {
- if (this.cA) {
- var h = new Dd;
- h.ej = c;
- h.Hda = d;
- h.fga = f;
- h.currentFrameIndex = g;
- this.yW.push(h)
- }
- },
- gha: x("qu"),
- Jda: A("qu"),
- xIa: x("userObject"),
- lCa: A("userObject"),
- sYa: A("Ur"),
- m4a: x("Ur")
- });
- H = V.PJ.prototype;
- C.e(H, "speedScale", H.SBa, H.sia);
- C.e(H, "animationScale", H.Zza, H.YGa);
- H = s;
- V.PJ.create = function(c) {
- var d = new V.PJ;
- return d && d.j(c) ? d: s
- };
- V.DU = V.Ek.extend({
- Fd: s,
- Jf: s,
- Qc: s,
- Cq: s,
- Ri: s,
- hd: s,
- dA: 0,
- Mv: 0,
- $w: 0,
- vp: 0,
- Sq: 0,
- td: s,
- LA: t,
- ctor: function() {
- V.Ek.prototype.ctor.call(this);
- this.Ri = this.hd = this.Cq = this.Qc = this.Jf = this.Fd = s;
- this.dA = V.bb.oj;
- this.Sq = this.vp = 0;
- this.td = s;
- this.LA = t
- },
- j: function(c) {
- this.Qc = new V.qv;
- this.Cq = new V.qv;
- this.hd = c;
- this.Fd = this.hd.Fd;
- this.Fd.ij = -1;
- if (c = c.Nc) this.td = c.ll();
- return q
- },
- play: function(c, d, f, g, h) {
- V.Ek.prototype.play.call(this, d, h);
- this.Xk = g ? V.sD: V.rD;
- this.Sq = this.vp = this.Mv = this.$w = 0;
- h = c != this.Ri;
- this.Ri = c;
- this.zn = this.Ri.duration;
- c = this.Ri.Zda(0);
- this.Fd.ij = c.ij;
- this.hd.Nc.Gx().IB >= V.xs && (V.Ij.vEa(this.Fd, this.hd.Hx()), this.Fd.scaleX += 1, this.Fd.scaleY += 1);
- 0 == this.zn || 1 == this.Ri.kh.length ? (this.Xk = V.NJ, 0 == d ? this.Ou(c, c) : this.Ou(this.Fd, c), this.dA = V.bb.oj) : 1 < this.Ri.kh.length && (this.Qj = f * this.Ri.scale, g && 0 != this.Ri.wm ? this.Ou(this.Fd, this.S3(this.hja(1 - this.Ri.wm), this.Cq)) : !h || 0 == d ? this.Ou(c, c) : this.Ou(this.Fd, c));
- this.S3(0)
- },
- QP: function(c) {
- V.Ek.prototype.Hea.call(this, c);
- this.Sq = this.vp = this.Mv = this.$w = 0;
- this.am = q;
- this.$l = this.yt = t;
- this.Pk = this.Lz / (this.zn - 1);
- this.Yg = this.dh * this.Pk
- },
- xCa: function(c) {
- this.QP(c);
- this.pause()
- },
- X3: function() {
- var c = this.Pk,
- d = this.Xk;
- if (1 <= c) switch (d) {
- case V.NJ:
- c = 1;
- this.$l = q;
- this.am = t;
- break;
- case V.rD:
- d = V.qD;
- c = 0 >= this.Qj ? 1 : (c - 1) * this.dh / this.Qj;
- 1 <= c ? (c = 1, this.$l = q, this.am = t) : (this.dh = this.Qj, this.Yg = c * this.dh, this.Sq = this.vp = this.Mv = this.$w = 0);
- break;
- case V.sD:
- d = V.gS;
- this.dh = 0 < this.Qj ? this.Qj: 1;
- 0 != this.Ri.wm ? (this.Yg = (1 - this.Ri.wm) * this.dh, c = this.Yg / this.dh) : this.Yg = c = 0;
- this.Sq = this.vp = this.Mv = this.$w = 0;
- break;
- case V.qD:
- c = 1;
- this.$l = q;
- this.am = t;
- break;
- default:
- this.Yg = V.QB(this.Yg, this.dh),
- this.Mv = this.$w = 0
- }
- 1 > c && d < V.h4 && (c = Math.sin(c * C.PI / 2));
- this.Pk = c;
- this.Xk = d;
- d > V.h4 && (c = this.hja(c));
- this.dA != V.bb.bja && this.S3(c)
- },
- Ou: function(c, d, f) {
- "undefined" == typeof f && (f = q);
- 0 > c.ij && 0 <= d.ij ? (this.Qc.copy(d), this.Cq.J3(d, d, f)) : 0 > d.ij && 0 <= c.ij ? (this.Qc.copy(c), this.Cq.J3(d, d, f)) : (this.Qc.copy(c), this.Cq.J3(c, d, f));
- c.Cu || (this.Fd.copy(c), this.Fd.Cu = q);
- this.Zwa(c)
- },
- Zwa: function(c) {
- if (c) {
- var d = this.hd,
- f = c.ij,
- g = d.Kd;
- g.yM || (g.Or(f, t), (f = g.aC()) && f.Yd(c.blendFunc));
- this.Fd.Tm = c.Tm;
- d.OJa(); (d = d.Tl) && "" != c.zC && d.ll().play(c.zC)
- }
- },
- S3: function(c, d) {
- d || (d = this.Fd);
- var f = this.Qc,
- g = this.Cq;
- f.Cu || (c = 0);
- d.x = f.x + c * g.x;
- d.y = f.y + c * g.y;
- d.scaleX = f.scaleX + c * g.scaleX;
- d.scaleY = f.scaleY + c * g.scaleY;
- d.skewX = f.skewX + c * g.skewX;
- d.skewY = f.skewY + c * g.skewY;
- this.hd.tIa(q);
- d && g.$n && this.qJa(c, d);
- return d
- },
- qJa: function(c, d) {
- var f = this.Qc,
- g = this.Cq;
- d.a = f.a + c * g.a;
- d.r = f.r + c * g.r;
- d.g = f.g + c * g.g;
- d.b = f.b + c * g.b;
- this.hd.ro()
- },
- hja: function(c) {
- 1 < c && 0 != this.Ri.wm && (c = V.QB(c, 1));
- var d = (this.zn - 1) * c,
- f,
- g,
- h = this.$w,
- k = this.Mv,
- n = this.vp;
- if (d < h || d >= h + k) {
- var k = this.Ri.kh.length,
- p = this.Ri.kh;
- if (d < p[0].kj) return f = g = p[0],
- this.Ou(f, g),
- c;
- if (d >= p[k - 1].kj) {
- if (this.LA) return f = g = p[k - 1],
- this.Ou(f, g),
- c;
- this.LA = q
- } else this.LA = t;
- do
- if (this.Sq = n, f = p[this.Sq], h = f.kj, n = this.Sq + 1, n >= k && (n = 0), g = p[n], f.event && !this.td.Ur && this.td.Rza(this.hd, f.event, f.kj, d), d == f.kj || this.LA && this.Sq == k - 1) break;
- while (d < f.kj || d >= g.kj);
- k = g.kj - f.kj;
- this.dA = f.tweenEasing;
- this.Ou(f, g, t);
- this.$w = h;
- this.Mv = k;
- this.vp = n
- }
- c = 0 == k ? 0 : (d - h) / k;
- d = this.dA != V.bb.oj ? this.dA: this.zO;
- d != V.bb.bja && (d != V.bb.oj && !this.LA) && (c = V.jc.rJa(c, d, this.Qc.LB));
- return c
- },
- gy: x("td"),
- ll: A("td"),
- rh: function() {
- this.Cq = this.Qc = s
- }
- });
- V.DU.create = function(c) {
- var d = new V.DU;
- return d && d.j(c) ? d: s
- };
- V.RMa = 32;
- V.m5 = V.O.extend({
- w9: 0,
- V$: 0,
- ctor: function(c, d) {
- this.w9 = c || 0;
- this.V$ = d || 0
- },
- oja: function(c) {
- c.ZQa = this.w9;
- c.group = this.V$
- }
- });
- V.xla = V.O.extend({
- shape: s,
- D_: s,
- colliderFilter: s,
- dF: s,
- ctor: function(c) {
- this.shape = s;
- this.D_ = c;
- this.colliderFilter = new V.m5;
- V.mv && (this.dF = [])
- },
- BP: A("D_"),
- L3a: x("D_"),
- zWa: A("shape"),
- lIa: x("shape"),
- Jx: A("colliderFilter"),
- ps: x("colliderFilter"),
- sTa: A("dF")
- });
- V.$J = V.O.extend({
- hi: s,
- hd: s,
- ei: s,
- Wg: t,
- uM: s,
- ctor: function() {
- this.hi = [];
- this.ei = this.hd = s;
- this.Wg = t;
- this.uM = s
- },
- j: function(c) {
- this.hi = [];
- c && (this.hd = c);
- this.uM = new V.m5;
- return q
- },
- qca: function(c) {
- var d = new V.xla(c);
- this.hi.push(d);
- if (V.mv) {
- d = d.dF;
- c = c.dv;
- for (var f = 0; f < c.length; f++) d.push(new Bd(0, 0))
- }
- },
- qwa: function(c) {
- for (var d = 0; d < c.length; d++) this.qca(c[d])
- },
- f2a: function(c) {
- for (var d = this.hi,
- f = 0; f < d.length; f++) if (d[f].BP() == c) {
- d.splice(f, 1);
- break
- }
- },
- mk: function() {
- this.hi = []
- },
- ps: function(c) {
- this.uM = c;
- for (var d = 0; d < this.hi.length; d++) {
- var f = this.hi[d];
- f.ps(c);
- V.ID && f.shape && f.Jx().oja(f.shape)
- }
- },
- Jx: A("uM"),
- setActive: function(c) {
- if (this.Wg != c) {
- this.Wg = c;
- c = this.ei;
- var d;
- if (c) if (d = s, this.Wg) for (var f = 0; f < this.hi.length; f++) d = this.hi[f],
- d = d.shape,
- c.D3.Awa(d);
- else for (f = 0; f < this.hi.length; f++) d = this.hi[f],
- d = d.shape,
- c.D3.o2a(d)
- }
- },
- Yza: A("Wg"),
- n0: A("hi"),
- ECa: C.d(0, 0),
- $h: function(c) {
- if (this.Wg) for (var d = s,
- f = this.ei,
- g = this.ECa,
- h = 0; h < this.hi.length; h++) {
- var d = this.hi[h],
- k = d.BP(),
- n = s;
- f && (n = d.shape);
- for (var k = k.dv,
- p = d.dF,
- d = 0; d < k.length; d++) if (g.x = k[d].x, g.y = k[d].y, g = C.wv(g, c), n && (n.wg[2 * d] = g.x, n.wg[2 * d + 1] = g.y), V.mv) {
- var r = C.d(0, 0);
- r.x = g.x;
- r.y = g.y;
- p[d] = r
- }
- if (n) for (d = 0; d < k.length; d++) p = cp.ea.normalize(cp.ea.d1a(cp.ea.sub(n.wg[(d + 1) % n.wg.length], n.wg[d]))),
- n.ixa[d].ds = p,
- n.ixa[d].P = cp.ea.KRa(p, n.wg[d])
- }
- },
- k0: A("ei"),
- uR: function(c) {
- this.ei = c;
- for (var d = 0; d < this.hi.length; d++) {
- c = this.hi[d];
- for (var f = [], g = c.BP().dv, d = 0; d < g.length; d++) {
- var h = g[d];
- f.push(h.x);
- f.push(h.y)
- }
- f = new cp.UMa(this.ei, f, cp.R6a);
- f.i3a = q;
- f.data = this.hd;
- this.Wg && this.ei.D3.Awa(f);
- c.lIa(f);
- c.Jx().oja(f)
- }
- }
- });
- H = V.$J.prototype;
- C.e(H, "colliderFilter", H.Jx, H.ps);
- C.e(H, "active", H.Yza, H.setActive);
- C.e(H, "body", H.k0, H.uR);
- H = s;
- V.$J.create = function(c) {
- var d = new V.$J;
- return d && d.j(c) ? d: s
- };
- V.Bk = V.ha.extend({
- td: s,
- ru: s,
- batchNode: s,
- name: "",
- Sva: s,
- zN: s,
- Fh: s,
- gu: s,
- Rqa: s,
- gp: s,
- version: 0,
- kz: q,
- ei: s,
- nO: s,
- C: s,
- qa: "Armature",
- ctor: function(c, d) {
- C.ha.prototype.ctor.call(this);
- this.batchNode = this.ru = this.td = s;
- this.name = "";
- this.gu = this.Fh = this.zN = this.Sva = s;
- this.Rqa = {};
- this.gp = C.d(0, 0);
- this.version = 0;
- this.kz = q;
- this.C = this.nO = this.ei = s;
- d && V.Bk.prototype.j.call(this, c, d)
- },
- j: function(c, d) {
- C.ha.prototype.j.call(this);
- d && (this.zN = d);
- this.xf();
- this.td = new V.PJ;
- this.td.j(this);
- this.Fh = {};
- this.gu = [];
- this.nO = {};
- this.C = {
- src: C.Ic,
- ga: C.Hc
- };
- this.name = !c ? "": c;
- var f = V.Mr;
- if ("" != c) {
- var g = f.Jda(c);
- if (!g) return C.log("AnimationData not exist! "),
- t;
- this.td.gha(g);
- this.ru = f = f.Gx(c);
- var f = f.sH,
- h;
- for (h in f) {
- var f = this.$ca(String(h)),
- k = g.cea(g.AI[0]);
- if (k && (k = k.t0(f.getName())) && !(0 >= k.kh.length)) if (k = k.Zda(0)) f.Fd.copy(k),
- f.Or(k.ij, t)
- }
- this.update(0);
- this.GJa()
- } else this.name = "new_armature",
- this.ru = new V.kS,
- this.ru.name = this.name,
- g = new V.jS,
- g.name = this.name,
- f.LZ(this.name, this.ru),
- f.KZ(this.name, g),
- this.td.gha(g);
- C.L === C.la && this.mJ(C.ug.Xd(C.LK));
- this.Qu(q);
- this.Pu(q);
- return q
- },
- Z: function() {
- C.ha.prototype.Z.call(this);
- this.Lu()
- },
- Na: function() {
- C.ha.prototype.Na.call(this);
- this.hD()
- },
- $ca: function(c) {
- var d = this.Kda(c);
- if (d) return d;
- var d = this.ru.Hx(c),
- f = d.RI,
- g = s;
- "" != f ? (this.$ca(f), g = V.ws.create(c), this.mca(g, f)) : (g = V.ws.create(c), this.mca(g, ""));
- g.lha(d);
- g.Kd.Or( - 1, t);
- return g
- },
- mca: function(c, d) {
- if (c) if (this.Fh[c.getName()]) C.log("bone already added. It can't be added again");
- else {
- if (d) {
- var f = this.Fh[d];
- f ? f.oca(c) : this.gu.push(c)
- } else this.gu.push(c);
- c.nR(this);
- this.Fh[c.getName()] = c;
- this.q(c)
- } else C.log("Argument must be non-nil")
- },
- c2a: function(c, d) {
- c ? (c.nR(s), c.Lm(d), C.Id(this.gu, c), delete this.Fh[c.getName()], this.removeChild(c, q)) : C.log("bone must be added to the bone dictionary!")
- },
- Kda: function(c) {
- return this.Fh[c]
- },
- NQa: function(c, d) {
- if (c) {
- var f = c.HP();
- f && (C.Id(f.Mk, c), c.Tu(s));
- d && ((f = this.Fh[d]) ? (f.oca(c), C.Id(this.gu, c)) : this.gu.push(c))
- } else C.log("bone must be added to the bone dictionary!")
- },
- hTa: A("Fh"),
- GJa: function() {
- var c = this.i_();
- this.Ca(c);
- var d = this.gp;
- d.x = -c.x;
- d.y = -c.y;
- 0 != c.width && 0 != c.height && this.S(d.x / c.width, d.y / c.height)
- },
- update: function(c) {
- this.td.update(c);
- for (var d = this.gu,
- f = 0; f < d.length; f++) d[f].update(c);
- this.kz = t
- },
- me: s,
- nN: function() {
- if (this.el) {
- this.kz = q;
- var c = this.ma.x,
- d = this.ma.y,
- f = this.Nb.x,
- g = -f,
- h = this.Nb.y,
- k = -h,
- n = this.ia,
- p = this.pa;
- this.nn && (c += f, d += h);
- var r = 1,
- v = 0,
- y = 1,
- z = 0;
- if (0 !== this.Xi || 0 !== this.im) r = Math.cos( - this.Dn),
- v = Math.sin( - this.Dn),
- y = Math.cos( - this.Mw),
- z = Math.sin( - this.Mw);
- var c = c + (y * this.gp.x * this.ia + -v * this.gp.y * this.pa),
- d = d + (z * this.gp.x * this.ia + r * this.gp.y * this.pa),
- D = this.ig || this.jg;
- if (!D && (0 !== f || 0 !== h)) c += y * g * n + -v * k * p,
- d += z * g * n + r * k * p;
- c = {
- a: y * n,
- b: z * n,
- H: -v * p,
- P: r * p,
- na: c,
- oa: d
- };
- if (D && (c = C.Qg({
- a: 1,
- b: Math.tan(C.ng(this.jg)),
- H: Math.tan(C.ng(this.ig)),
- P: 1,
- na: 0,
- oa: 0
- },
- c), 0 !== f || 0 !== h)) c = C.OJ(c, g, k);
- this.yq && (c = C.Qg(c, this.iz), this.yq = t);
- this.Lf = c;
- this.el = t
- }
- return this.Lf
- },
- Ita: function() {
- this.Lf || (this.Lf = {
- a: 1,
- b: 0,
- H: 0,
- P: 1,
- na: 0,
- oa: 0
- });
- if (this.el) {
- this.kz = q;
- var c = this.Lf;
- c.na = this.ma.x;
- c.oa = this.ma.y;
- var d = 1,
- f = 0;
- this.Xi && (d = Math.cos( - this.Dn), f = Math.sin( - this.Dn));
- c.a = c.P = d;
- c.H = -f;
- c.b = f;
- var g = this.ia,
- h = this.pa,
- k = this.Nb.x,
- n = this.Nb.y,
- p = 1E-6 > g && -1E-6 < g ? 1E-6: g,
- r = 1E-6 > h && -1E-6 < h ? 1E-6: h;
- c.na += d * this.gp.x * g + -f * this.gp.y * h;
- c.oa += f * this.gp.x * g + d * this.gp.y * h;
- if (this.ig || this.jg) {
- var v = Math.tan( - this.ig * Math.PI / 180),
- y = Math.tan( - this.jg * Math.PI / 180),
- z = n * v * p,
- D = k * y * r;
- c.a = d + -f * y;
- c.H = d * v + -f;
- c.b = f + d * y;
- c.P = f * v + d;
- c.na += d * z + -f * D;
- c.oa += f * z + d * D
- }
- if (1 !== g || 1 !== h) c.a *= p,
- c.b *= p,
- c.H *= r,
- c.P *= r;
- c.na += d * -k * p + -f * -n * r;
- c.oa += f * -k * p + d * -n * r;
- this.nn && (c.na += k, c.oa += n);
- this.yq && (this.Lf = C.Qg(this.Lf, this.iz), this.yq = t);
- c.na |= 0;
- c.oa |= 0;
- this.el = t
- }
- return this.Lf
- },
- ka: u(),
- Yd: x("C"),
- ek: A("C"),
- i_: function() {
- for (var c = 0,
- d = 0,
- f = 0,
- g = 0,
- h = q,
- g = C.rect(0, 0, 0, 0), k = 0; k < this.l.length; k++) if (c = this.l[k], c instanceof V.ws) {
- var n = c.Kd.Ae();
- h ? (c = C.io(n), d = C.jo(n), f = C.Xp(n), g = C.Yp(n), h = t) : (c = C.io(n) < C.io(g) ? C.io(n) : C.io(g), d = C.jo(n) < C.jo(g) ? C.jo(n) : C.jo(g), f = C.Xp(n) > C.Xp(g) ? C.Xp(n) : C.Xp(g), g = C.Yp(n) > C.Yp(g) ? C.Yp(n) : C.Yp(g));
- g = C.rect(c, d, f - c, g - d)
- }
- return C.Gi(g, this.me())
- },
- fTa: function(c, d) {
- for (var f = this.l.length - 1; 0 <= f; f--) {
- var g = this.l[f];
- if (g instanceof V.ws && g.Kd.Pxa(c, d)) return g
- }
- return s
- },
- $Ba: B(s),
- Tu: function(c) {
- this.zN = c;
- for (var d in this.Fh) this.Fh[d].nR(this)
- },
- ps: function(c) {
- for (var d in this.Fh) this.Fh[d].ps(c)
- },
- NRa: function() {
- C.Df.tj(255, 255, 255, 255);
- C.Df.Su(1);
- for (var c in this.Fh) for (var d = this.Fh[c].n0(), f = 0; f < d.length; f++) {
- var g = d[f].dF;
- C.Df.Of(g, g.length, q)
- }
- },
- HP: A("zN"),
- ll: A("td"),
- gy: x("td"),
- Gx: A("ru"),
- q3a: x("ru"),
- getName: A("name"),
- Ze: x("name"),
- XB: A("batchNode"),
- os: x("batchNode"),
- rXa: A("version"),
- setVersion: x("version"),
- SSa: A("kz"),
- k0: A("ei"),
- uR: function(c) {
- if (this.ei != c) {
- this.ei = c;
- this.ei.data = this;
- var d, f;
- for (c = 0; c < this.l.length; c++) if (d = this.l[c], d instanceof V.ws) {
- d = d.Kd.ag;
- for (var g = 0; g < d.length; g++) f = d[g],
- (f = f.Kj) && f.uR(this.ei)
- }
- }
- },
- AWa: function() {
- return this.ei ? this.ei.O5a: []
- }
- });
- V.Bk.prototype.me = C.L == C.la ? V.Bk.prototype.nN: V.Bk.prototype.Ita;
- H = V.Bk.prototype;
- C.e(H, "parentBone", H.HP, H.Tu);
- C.e(H, "body", H.k0, H.uR);
- C.e(H, "colliderFilter", s, H.ps);
- H = s;
- V.Bk.create = function(c, d) {
- var f = new V.Bk;
- return f && f.j(c, d) ? f: s
- };
- V.ws = V.ha.extend({
- Dq: s,
- Nc: s,
- Tl: s,
- Kd: s,
- YP: t,
- lu: s,
- Fd: s,
- name: "",
- Mk: s,
- parentBone: s,
- um: t,
- nu: s,
- C: 0,
- aP: t,
- MO: s,
- fV: s,
- F9: 0,
- qa: "Bone",
- ctor: function() {
- C.ha.prototype.ctor.call(this);
- this.Kd = this.Tl = this.Nc = this.Dq = s;
- this.YP = t;
- this.Fd = this.lu = s;
- this.name = "";
- this.Mk = [];
- this.parentBone = s;
- this.um = q;
- this.nu = {
- a: 1,
- b: 0,
- H: 0,
- P: 1,
- na: 0,
- oa: 0
- };
- this.C = new C.Vm(C.Ic, C.Hc);
- this.aP = t
- },
- rh: function() {
- zd(this.Fd);
- for (var c = 0; c < this.Mk.length; c++) zd(this.Mk[c]);
- this.Mk = [];
- zd(this.lu);
- zd(this.Kd);
- zd(this.Dq);
- zd(this.Tl)
- },
- j: function(c) {
- C.ha.prototype.j.call(this);
- c && (this.name = c);
- this.Fd = new V.qv;
- this.lu = new V.DU;
- this.lu.j(this);
- this.Kd = new V.XS;
- this.Kd.j(this);
- this.MO = new V.Um;
- this.Dq = new V.Um;
- return q
- },
- lha: function(c) {
- c ? (this.Dq = c, this.name = this.Dq.name, this.ul(this.Dq.Tm), this.Kd.Sea(c)) : C.log("boneData must not be null")
- },
- Hx: A("Dq"),
- nR: function(c) { (this.Nc = c) ? (this.lu.gy(this.Nc.ll()), this.F9 = this.Nc.Gx().IB, this.fV = this.Nc.HP()) : this.fV = s
- },
- $za: A("Nc"),
- update: function(c) {
- var d = this.parentBone,
- f = this.Nc,
- g = this.Fd,
- h = this.nu,
- k = this.MO,
- n = this.fV;
- d && (this.um = this.um || d.um);
- n && !this.um && (this.um = n.um);
- this.um && (this.F9 >= V.xs && (d = this.Dq, 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.ma.x, k.y = g.y + this.ma.y, k.scaleX = g.scaleX * this.ia, k.scaleY = g.scaleY * this.pa, k.skewX = g.skewX + this.ig + this.Xi, k.skewY = g.skewY + this.jg - this.im, this.parentBone ? this.Cca(this.parentBone) : n && this.Cca(n), V.Ij.F1(k, h), n && (this.nu = C.Qg(h, f.me())));
- V.Sg.DJa(this, c, this.um || f.kz);
- f = this.Mk;
- for (g = 0; g < f.length; g++) f[g].update(c);
- this.um = t
- },
- Cca: function(c) {
- var d = this.MO,
- f = c.nu;
- c = c.MO;
- var g = d.x,
- h = d.y;
- d.x = g * f.a + h * f.H + c.x;
- d.y = g * f.b + h * f.P + c.y;
- d.scaleX *= c.scaleX;
- d.scaleY *= c.scaleY;
- d.skewX += c.skewX;
- d.skewY += c.skewY
- },
- J: function(c) {
- if (this.Ja) {
- var d = this.Kd.aC();
- d && d.J(c)
- }
- },
- Tb: function(c) {
- this.od = C.color(255, 255, 255);
- C.ha.prototype.Tb.call(this, c);
- this.ro()
- },
- dc: function(c) {
- this.Ig = 255;
- C.ha.prototype.dc.call(this, c);
- this.ro()
- },
- G: function(c) {
- C.ha.prototype.G.call(this, c);
- this.ro()
- },
- K: function(c) {
- C.ha.prototype.K.call(this, c);
- this.ro()
- },
- ro: function() {
- var c = this.Kd.aC();
- if (c && c.sb) {
- var d = this.wb,
- f = this.Fd,
- g = this.hb * f.a / 255,
- d = C.color(d.r * f.r / 255, d.g * f.g / 255, d.b * f.b / 255);
- c.K(g);
- c.G(d)
- }
- },
- OJa: function() {
- this.Nc.Gx().IB >= V.xs ? this.ul(this.Fd.Tm + this.Dq.Tm) : this.ul(this.Fd.Tm)
- },
- oca: function(c) {
- c ? c.parentBone ? C.log("child already added. It can't be added again") : 0 > this.Mk.indexOf(c) && (this.Mk.push(c), c.Tu(this)) : C.log("Argument must be non-nil")
- },
- Rga: function(c, d) {
- for (var f = 0; f < this.Mk.length; f++) if (this.Mk[f] == c) {
- if (d) for (var g = c.Mk,
- h = 0; h < g.length; h++) c.Rga(g[h], d);
- c.Tu(s);
- c.Kd.xR(s);
- C.Id(this.Mk, c)
- }
- },
- Lm: function(c) {
- this.parentBone && this.parentBone.Rga(this, c)
- },
- Tu: x("parentBone"),
- HP: A("parentBone"),
- K2: function(c) {
- this.Tl != c && (c == s && this.Tl && this.Tl.Tu(s), this.Tl = c)
- },
- hAa: A("Tl"),
- iAa: A("Mk"),
- gCa: A("lu"),
- ul: function(c) {
- this.MPa != c && C.A.prototype.ul.call(this, c)
- },
- tIa: x("um"),
- QYa: A("um"),
- i0a: A("nu"),
- ql: function() {
- return C.Qg(this.nu, this.Nc.ql())
- },
- aC: function() {
- return this.Kd.aC()
- },
- q0: function() {
- return this.Kd.q0()
- },
- NZ: function(c, d) {
- return this.Kd.NZ(c, d || 0)
- },
- Sga: function(c) {
- this.Kd.Sga(c)
- },
- Bwa: function(c, d) {
- return this.Kd.Bwa(c, d || 0)
- },
- OQa: function(c, d) {
- C.log("changeDisplayByIndex is deprecated. Use changeDisplayWithIndex instead.");
- this.Or(c, d)
- },
- Or: function(c, d) {
- this.Kd.Or(c, d)
- },
- Oca: function(c, d) {
- this.Kd.Oca(c, d)
- },
- n0: function() {
- var c = this.Kd.en;
- return c && (c = c.Kj) ? c.n0() : []
- },
- ps: function(c) {
- for (var d = this.Kd.ag,
- f = 0; f < d.length; f++) {
- var g = d[f].Kj;
- g && g.ps(c)
- }
- },
- Jx: function() {
- var c = this.Kd.en;
- return c && (c = c.Kj) ? c.Jx() : s
- },
- U3a: x("Kd"),
- gUa: A("Kd"),
- n4a: x("YP"),
- QUa: A("YP"),
- hCa: A("Fd"),
- Ze: x("name"),
- getName: A("name"),
- Yd: function(c) {
- if (this.C.src != c.src || this.C.ga != c.ga) this.C = c,
- this.aP = q
- },
- ek: A("C"),
- x3a: x("aP"),
- jYa: A("aP")
- });
- H = V.ws.prototype;
- C.e(H, "boneData", H.Hx, H.lha);
- C.e(H, "armature", H.$za, H.nR);
- C.e(H, "childArmature", H.hAa, H.K2);
- C.e(H, "childrenBone", H.iAa);
- C.e(H, "tween", H.gCa);
- C.e(H, "tweenData", H.hCa);
- C.e(H, "colliderFilter", H.Jx, H.ps);
- H = s;
- V.ws.create = function(c) {
- var d = new V.ws;
- return d && d.j(c) ? d: s
- };
- V.R5 = 0;
- V.T5 = 1;
- V.S5 = 2;
- V.U5 = 3;
- V.Q5 = 4;
- V.oma = 5;
- V.fc = {
- oLa: -1,
- sv: 0,
- Goa: 1,
- Ioa: 2,
- Hoa: 3,
- Sna: 4,
- Una: 5,
- Tna: 6,
- yla: 7,
- Ala: 8,
- zla: 9,
- Vna: 10,
- Xna: 11,
- Wna: 12,
- Yna: 13,
- $na: 14,
- Zna: 15,
- jma: 16,
- lma: 17,
- kma: 18,
- ula: 19,
- wla: 20,
- vla: 21,
- bma: 22,
- dma: 23,
- cma: 24,
- fka: 25,
- hka: 26,
- gka: 27,
- kka: 28,
- mka: 29,
- lka: 30
- };
- V.to = V.O.extend({
- Pr: 0,
- ym: 0,
- Dp: 0,
- BSa: s,
- time: 0,
- ctor: function() {
- this.time = this.Dp = this.ym = this.Pr = 0
- },
- Qr: B(s),
- LF: function(c) {
- if (c === s) return console.error("Action cannot be null!"),
- s;
- var d;
- switch (this.ym) {
- case V.fc.sv:
- d = c;
- break;
- case V.fc.Goa:
- d = c.ra(C.uza());
- break;
- case V.fc.Ioa:
- d = c.ra(C.wza());
- break;
- case V.fc.Hoa:
- d = c.ra(C.vza());
- break;
- case V.fc.Sna:
- d = c.ra(C.lza());
- break;
- case V.fc.Una:
- d = c.ra(C.nza());
- break;
- case V.fc.Tna:
- d = c.ra(C.mza());
- break;
- case V.fc.yla:
- d = c.ra(C.cza());
- break;
- case V.fc.Ala:
- d = c.ra(C.eza());
- break;
- case V.fc.zla:
- d = c.ra(C.dza());
- break;
- case V.fc.Vna:
- d = c.ra(C.oza());
- break;
- case V.fc.Xna:
- d = c.ra(C.qza());
- break;
- case V.fc.Wna:
- d = c.ra(C.pza());
- break;
- case V.fc.Yna:
- d = c.ra(C.rza());
- break;
- case V.fc.$na:
- d = c.ra(C.tza());
- break;
- case V.fc.Zna:
- d = c.ra(C.sza());
- break;
- case V.fc.jma:
- d = c.ra(C.fza());
- break;
- case V.fc.lma:
- d = c.ra(C.hza());
- break;
- case V.fc.kma:
- d = c.ra(C.gza());
- break;
- case V.fc.ula:
- d = c.ra(C.$ya());
- break;
- case V.fc.wla:
- d = c.ra(C.bza());
- break;
- case V.fc.vla:
- d = c.ra(C.aza());
- break;
- case V.fc.bma:
- d = c.ra(C.qda());
- break;
- case V.fc.dma:
- d = c.ra(C.sda());
- break;
- case V.fc.cma:
- d = c.ra(C.rda());
- break;
- case V.fc.fka:
- d = c.ra(C.Tya());
- break;
- case V.fc.hka:
- d = c.ra(C.Vya());
- break;
- case V.fc.gka:
- d = c.ra(C.Uya());
- break;
- case V.fc.kka:
- d = c.ra(C.Xya());
- break;
- case V.fc.mka:
- d = c.ra(C.Zya());
- break;
- case V.fc.lka:
- d = c.ra(C.Yya())
- }
- return d
- },
- fJ: function(c) {
- this.Aqa = [];
- for (var d = 0; d < c.length; d++) this.Aqa.push(c[d])
- },
- Ru: x("iM")
- });
- V.Jja = V.to.extend({
- ma: s,
- ctor: function() {
- V.to.prototype.ctor.call(this);
- this.ma = C.d(0, 0);
- this.Pr = V.R5
- },
- p: function(c, d) {
- d === m ? (this.ma.x = c.x, this.ma.y = c.y) : (this.ma.x = c, this.ma.y = d)
- },
- Ld: A("ma"),
- Qr: function(c) {
- c = C.Bs.create(c, this.ma);
- c.ym = this.ym || V.fc.sv;
- return this.LF(c)
- }
- });
- V.Nja = V.to.extend({
- ia: 1,
- pa: 1,
- ctor: function() {
- V.to.prototype.ctor.call(this);
- this.pa = this.ia = 1;
- this.Pr = V.T5
- },
- gb: x("ia"),
- LP: A("ia"),
- pb: x("pa"),
- TH: A("pa"),
- Qr: function(c) {
- c = C.ae.create(c, this.ia, this.pa);
- c.ym = this.ym || V.fc.sv;
- return this.LF(c)
- }
- });
- V.Mja = V.to.extend({
- XA: 0,
- ctor: function() {
- V.to.prototype.ctor.call(this);
- this.XA = 0;
- this.Pr = V.S5
- },
- th: x("XA"),
- Mx: A("XA"),
- Qr: function(c) {
- c = C.wE.create(c, this.XA);
- c.ym = this.ym || V.fc.sv;
- return this.LF(c)
- }
- });
- V.Fja = V.to.extend({
- Eb: 255,
- ctor: function() {
- V.to.prototype.ctor.call(this);
- this.Eb = 255;
- this.Pr = V.Q5
- },
- K: x("Eb"),
- rb: A("Eb"),
- Qr: function(c) {
- c = C.xo.create(c, this.Eb);
- c.ym = this.ym || V.fc.sv;
- return this.LF(c)
- }
- });
- V.Oja = V.to.extend({
- ya: s,
- ctor: function() {
- V.to.prototype.ctor.call(this);
- this.ya = C.color(255, 255, 255, 255);
- this.Pr = V.U5
- },
- G: function(c) {
- var d = this.ya;
- d.r = c.r;
- d.g = c.g;
- d.b = c.b
- },
- Xa: function() {
- var c = this.ya;
- return C.color(c.r, c.g, c.b, c.a)
- },
- Qr: function(c) {
- c = C.ez.create(c, this.ya.r, this.ya.g, this.ya.b);
- c.ym = this.ym || V.fc.sv;
- return this.LF(c)
- }
- });
- V.actionManager = {
- vq: {},
- Lp: function(c, d, f) {
- c = c.substr(c.lastIndexOf("/") + 1, c.length);
- d = d.actionlist;
- for (var g = [], h = 0; h < d.length; h++) {
- var k = new V.Lja;
- k.Lp(d[h], f);
- g.push(k)
- }
- this.vq[c] = g
- },
- i0: function(c, d) {
- var f = this.vq[c];
- if (!f) return s;
- for (var g = 0; g < f.length; g++) {
- var h = f[g];
- if (d == h.getName()) return h
- }
- return s
- },
- GFa: function(c, d, f) { (c = this.i0(c, d)) && c.play(f)
- },
- kGa: function() {
- this.vq = {}
- },
- clear: function() {
- this.vq = {}
- }
- };
- V.Kja = V.O.extend({
- Cra: 0,
- Era: 0,
- fl: 0,
- xq: 0,
- ara: s,
- hz: s,
- Ke: s,
- Mi: s,
- aw: 0,
- ctor: function() {
- this.Era = this.Cra = 0;
- this.fl = 0.1;
- this.xq = 0;
- this.Ke = this.hz = this.ara = s;
- this.Mi = [];
- this.aw = V.oma;
- for (var c = 0; c < this.aw; c++) this.Mi.push([])
- },
- Lp: function(c, d) {
- this.ey(c.ActionTag);
- for (var f = c.actionframelist,
- g = 0; g < f.length; g++) {
- for (var h = f[g], k = h.tweenType, n = h.tweenParameter, p = [], r = 0; r < n; r++) p.push(h.tweenParameter[r]);
- if (h.positionx !== m) {
- var r = h.positionx,
- v = h.positiony,
- n = new V.Jja;
- n.Ru(k);
- n.fJ(p);
- n.p(r, v);
- r = this.Mi[V.R5];
- r.push(n)
- }
- h.scalex !== m && (r = h.scalex, v = h.scaley, n = new V.Nja, n.Ru(k), n.fJ(p), n.gb(r), n.pb(v), r = this.Mi[V.T5], r.push(n));
- h.rotation !== m && (r = h.rotation, n = new V.Mja, n.Ru(k), n.fJ(p), n.th(r), r = this.Mi[V.S5], r.push(n));
- h.opacity !== m && (r = h.opacity, n = new V.Fja, n.Ru(k), n.fJ(p), n.K(r), r = this.Mi[V.Q5], r.push(n));
- h.colorr !== m && (r = h.colorr, v = h.colorg, h = h.colorb, n = new V.Oja, n.Ru(k), n.fJ(p), n.G(C.color(r, v, h)), r = this.Mi[V.U5], r.push(n))
- }
- this.JCa(d)
- },
- JCa: function(c) {
- c instanceof J && (c = fd(c, this.xq)) && this.vl(c)
- },
- vJ: function(c) {
- this.fl = c;
- this.hGa()
- },
- jCa: A("fl"),
- ey: x("xq"),
- Ida: A("xq"),
- vl: x("DA"),
- lBa: A("DA"),
- j0: function() {
- return this.DA instanceof C.A || this.DA instanceof J ? this.DA: s
- },
- WXa: function(c, d) {
- d != s && this.Mi[d.Pr].splice(c, 0, d)
- },
- $Pa: function(c) {
- c && this.Mi[c.Pr].push(c)
- },
- sRa: function(c) {
- c != s && C.Id(this.Mi[c.Pr], c)
- },
- UQa: function() {
- for (var c = 0; c < this.aw; c++) this.Mi[c] = []
- },
- hGa: function() {
- if (this.DA == s) return s;
- for (var c = [], d = 0; d < this.aw; d++) {
- var f = this.Mi[d];
- if (! (0 >= f.length)) {
- for (var g = [], h = 0; h < f.length; h++) {
- var k = f[h];
- 0 != h && (k = k.Qr((k.Dp - f[h - 1].Dp) * this.fl)) && g.push(k)
- }
- g && (f = C.La.create(g), f != s && c.push(f))
- }
- }
- this.Ke = s;
- return this.hz = C.ci.create(c)
- },
- FFa: function(c) {
- this.DA == s || this.hz == s || (this.Ke = c ? C.La.create(this.hz, c) : C.La.create(this.hz), this.Ya())
- },
- Ya: function() {
- var c = this.j0();
- c != s && this.Ke != s && c.Ya(this.Ke)
- },
- yJ: function() {
- var c = this.j0();
- c != s && this.Ke != s && (this.Ke.ik() || c.yJ(this.Ke))
- },
- AAa: function() {
- for (var c = 99999,
- d = t,
- f = 0; f < this.aw; f++) {
- var g = this.Mi[f];
- 0 >= g.length || (d = q, g = g[0].Dp, c = c > g ? g: c)
- }
- d || (c = 0);
- return c
- },
- SAa: function() {
- for (var c = -1,
- d = t,
- f = 0; f < this.aw; f++) {
- var g = this.Mi[f];
- 0 >= g.length || (d = q, g = g[g.length - 1].Dp, c = c < g ? g: c)
- }
- d || (c = 0);
- return c
- },
- xJa: function(c) {
- for (var d = t,
- f = this.fl,
- g = 0; g < this.aw; g++) {
- var h = this.Mi[g];
- if (h != s) for (var k = 0; k < h.length; k++) {
- var n = h[k];
- if (n.Dp * f == c) {
- this.rP(1, 1, n);
- d = q;
- break
- } else if (n.Dp * f > c) {
- 0 == k ? (this.rP(1, 1, n), d = t) : (d = h[k - 1], h = (n.Dp - d.Dp) * f, k = c - d.Dp * f, this.rP(h, 1, d), this.rP(h, k / h, n), d = q);
- break
- }
- }
- }
- return d
- },
- rP: function(c, d, f) {
- c = f.Qr(c);
- f = this.j0();
- c == s || f == s || (c.R(f), c.update(d))
- },
- kDa: function() {
- return this.Ke == s ? q: this.Ke.ik()
- }
- });
- V.Lja = V.O.extend({
- Ik: s,
- kd: "",
- Uj: t,
- NX: t,
- Oaa: t,
- fl: 0,
- RL: 0,
- hh: s,
- uW: 0,
- ctor: function() {
- this.Ik = [];
- this.kd = "";
- this.Oaa = this.NX = this.Uj = t;
- this.fl = 0.1;
- this.uW = this.RL = 0;
- this.hh = new C.cz;
- C.Q.Em().lR(this.hh, 0, t)
- },
- Ze: x("kd"),
- getName: A("kd"),
- CR: x("Uj"),
- bea: A("Uj"),
- vJ: function(c) {
- this.fl = c;
- c = this.Ik.length;
- for (var d = 0; d < c; d++) this.Ik[d].vJ(this.fl)
- },
- jCa: A("fl"),
- VTa: A("RL"),
- N3a: x("RL"),
- fXa: A("uW"),
- ifa: A("Oaa"),
- Lp: function(c, d) {
- this.Ze(c.name);
- this.CR(c.loop);
- this.vJ(c.unittime);
- for (var f = c.actionnodelist,
- g = 0,
- h = 0; h < f.length; h++) {
- var k = new V.Kja;
- k.Lp(f[h], d);
- k.vJ(this.fl);
- this.Ik.push(k);
- k = k.SAa() - k.AAa();
- k > g && (g = k)
- }
- this.uW = g * this.fl
- },
- QPa: function(c) {
- c && (this.Ik.push(c), c.vJ(this.fl))
- },
- O1a: function(c) {
- c != s && C.Id(this.Ik, c)
- },
- play: function(c) {
- this.stop();
- this.LJa(0);
- for (var d = this.Ik.length,
- f = 0; f < d; f++) this.Ik[f].FFa(c);
- this.Uj && this.hh.y2(this, this.Fia, 0, C.xv, 0, t)
- },
- pause: function() {
- this.NX = q
- },
- stop: function() {
- for (var c = 0; c < this.Ik.length; c++) this.Ik[c].yJ();
- this.hh.W3(this, this.Fia);
- this.NX = t
- },
- LJa: function(c) {
- this.RL = c;
- for (var d = 0; d < this.Ik.length; d++) this.Ik[d].xJa(c)
- },
- Fia: function() {
- if (this.Uj) {
- for (var c = q,
- d = this.Ik,
- f = 0; f < d.length; f++) if (d[f].kDa() == t) {
- c = t;
- break
- }
- c && this.play()
- }
- }
- });
- V.MS = V.zh.extend({
- Pi: s,
- Fa: "",
- ctor: function() {
- C.zh.prototype.ctor.call(this);
- this.Pi = {};
- this.Fa = "";
- this.kd = "CCComAttribute"
- },
- j: function() {
- this.Pi = {};
- return q
- },
- o4a: function(c, d) {
- c ? this.Pi[c] = d: C.log("Argument must be non-nil")
- },
- V3a: function(c, d) {
- c ? this.Pi[c] = d: C.log("Argument must be non-nil")
- },
- $3a: function(c, d) {
- c ? this.Pi[c] = d: C.log("Argument must be non-nil")
- },
- y3a: function(c, d) {
- c ? this.Pi[c] = d: C.log("Argument must be non-nil")
- },
- sa: function(c, d) {
- c ? this.Pi[c] = d: C.log("Argument must be non-nil")
- },
- vl: function(c, d) {
- c ? this.Pi[c] = d: C.log("Argument must be non-nil")
- },
- SUa: function(c) {
- return parseInt(this.Pi[c] || 0)
- },
- nUa: function(c) {
- return parseFloat(this.Pi[c] || 0)
- },
- FUa: function(c) {
- return parseFloat(this.Pi[c] || 0)
- },
- iTa: function(c) {
- return Boolean(this.Pi[c] || t)
- },
- Wb: function(c) {
- return this.Pi[c] || ""
- },
- lBa: function(c) {
- return this.Pi[c]
- },
- parse: function(c) {
- this.Pi = C.M.xd(c)
- }
- });
- V.MS.create = function() {
- var c = new V.MS;
- return c && c.j() ? c: s
- };
- V.bK = V.zh.extend({
- Fa: "",
- Uj: t,
- ctor: function() {
- C.zh.prototype.ctor.call(this);
- this.kd = "Audio"
- },
- j: B(q),
- Z: u(),
- Na: function() {
- this.WIa(q);
- this.cD()
- },
- end: function() {
- C.ud.end()
- },
- QFa: function(c) {
- C.M.load(c)
- },
- HFa: function(c, d) {
- c ? C.ud.tga(c, d) : C.ud.tga(this.Fa, this.Uj)
- },
- WIa: function(c) {
- C.ud.Sia(c)
- },
- a1a: function() {
- C.ud.Y1()
- },
- D2a: function() {
- C.ud.aha()
- },
- H2a: function() {
- C.ud.GGa()
- },
- V6a: B(t),
- hYa: function() {
- return C.ud.nQ()
- },
- cTa: function() {
- return C.ud.iBa()
- },
- v3a: function(c) {
- C.ud.NHa(c)
- },
- Uda: function() {
- return C.ud.Uda()
- },
- zha: function(c) {
- C.ud.zha(c)
- },
- Zx: function(c, d) {
- return c ? C.ud.Zx(c, d) : C.ud.Zx(this.Fa, this.Uj)
- },
- X1: function(c) {
- C.ud.X1(c)
- },
- W1: function() {
- C.ud.W1()
- },
- u2: function(c) {
- C.ud.u2(c)
- },
- t2: function() {
- C.ud.t2()
- },
- G3: function(c) {
- C.ud.G3(c)
- },
- cD: function() {
- C.ud.cD()
- },
- RFa: function(c) {
- this.Eha(c);
- this.CR(t)
- },
- V3: function(c) {
- C.ud.V3(c)
- },
- Eha: x("Fa"),
- CR: x("Uj"),
- getFile: A("Fa"),
- wYa: A("Uj")
- });
- V.bK.create = function() {
- var c = new V.bK;
- return c && c.j() ? c: s
- };
- V.n5 = V.zh.extend({
- ctor: function() {
- C.zh.prototype.ctor.call(this);
- this.kd = "ComController"
- },
- j: B(q),
- Z: function() {
- this.Rd != s && this.Rd.Lu()
- },
- Na: u(),
- update: u(),
- isEnabled: A("Wc"),
- Ib: function() {
- this.Wc = b
- }
- });
- V.n5.create = function() {
- var c = new V.n5;
- return c && c.j() ? c: s
- };
- V.lv = V.zh.extend({
- Rt: s,
- ctor: function(c, d) {
- C.zh.prototype.ctor.call(this);
- this.Rt = c;
- this.kd = d;
- this.GYa = q
- },
- Z: function() {
- this.Rd && this.Rd.q(this.Rt)
- },
- Na: function() {
- this.Rd && (this.Rd.removeChild(this.Rt, q), this.Rt = s)
- },
- tVa: A("Rt"),
- C4a: x("Rt")
- });
- V.lv.create = function(c, d) {
- var f = new V.lv(c, d);
- return f && f.j() ? f: s
- };
- V.BI = {
- AO: {},
- Aya: function() {
- this.Zl = s
- },
- zH: function(c) {
- var d = s; (c = this.AO[c]) && (d = new c.ut);
- return d
- },
- Nga: function(c) {
- this.AO[c.qa] = c
- },
- kRa: function(c) {
- var d = s;
- "Panel" === c ? c = "Layout": "TextArea" === c ? c = "Label": "TextButton" === c && (c = "Button");
- if ((c = this.AO[c]) && c.ut) d = c.ut;
- return d
- },
- Yxa: function(c) {
- var d = s;
- if ((c = this.AO[c]) && c.ut) d = c.ut;
- return d
- }
- };
- V.R7 = V.O.extend({
- qa: "",
- ut: s,
- ctor: function(c, d) {
- d ? (this.qa = c, this.ut = d) : (this.qa = c.qa, this.ut = c.ut);
- V.BI.Nga(this)
- }
- });
- V.h3a = function(c) {
- c = V.P3.get(c);
- if (c != s) for (var d = 0; d < c.length; d++);
- };
- V.J1a = function(c, d) {
- new V.R7(c, d)
- };
- V.P3 = {
- hn: {},
- Vba: {},
- fr: [],
- Aya: function() {
- this.mk();
- this.Zl = s
- },
- parse: function(c) {
- for (var d = 0; d < c.length; ++d) {
- var f = c[d],
- g = V.BU.create();
- g.QC(f);
- for (var f = g.cH,
- h = 0; h < f.length; h++) this.add(f[h], g);
- this.Vba[g.ni] = g
- }
- },
- get: function(c) {
- return this.hn[c]
- },
- fCa: function(c) {
- return this.Vba[c]
- },
- add: function(c, d) {
- var f = this.hn[c];
- f || (f = []); - 1 == f.indexOf(d) && (f.push(d), this.hn[c] = f)
- },
- mk: function() {
- for (var c in this.hn) for (var d = this.hn[c], f = 0; f < d.length; f++) d[f].mk();
- this.hn = {}
- },
- remove: function(c, d) {
- if (d) return this.Bua(c, d);
- var f = t,
- g = this.hn[c];
- if (g) {
- for (f = 0; f < g.length; f++) {
- var h = g[f];
- h && h.mk()
- }
- delete this.hn[c];
- f = q
- }
- return f
- },
- Bua: function(c, d) {
- var f = t;
- do {
- var g = this.hn[c];
- if (g) {
- for (f = 0; f < g.length; f++) {
- var h = g[f];
- if (h && h == d) {
- h.mk();
- g.splice(f, 1);
- break
- }
- }
- f = q
- }
- } while ( 0 );
- return f
- },
- v2a: function(c) {
- c = this.fCa(c);
- if (!c) return t;
- for (var d = c.cH,
- f = 0; f < d.length; f++) this.remove(d[f], c);
- return q
- },
- gfa: function() {
- return ! this.hn || 0 >= this.hn.length
- },
- SPa: function(c, d, f) {
- if (! (c == s || f == s || d == s)) {
- for (var g, h = t,
- k = 0; k < this.fr.length; k++) if ((g = this.fr[k]) && g[0] == c) g.kca(d, f),
- h = q;
- h || (g = new V.Qja, c.ll().MHa(g.Ywa, g), g.kca(d, f), this.fr.push([c, g]))
- }
- },
- a2a: function(c, d, f) {
- if (! (c == s || d == s || f == s)) for (var g, h = 0; h < this.fr.length; h++)(g = this.fr[h]) && g[0] == c && g.qGa(f, d)
- },
- Z1a: function(c) {
- if (c != s) for (var d, f = 0; f < this.fr.length; f++) if ((d = this.fr[f]) && d[0] == c) {
- this.fr.splice(f, 1);
- break
- }
- },
- Q1a: function() {
- this.fr = []
- },
- version: B("1.2.0.0")
- };
- V.Qja = V.O.extend({
- nw: s,
- ctor: function() {
- this.nw = []
- },
- Ywa: function(c, d, f) {
- for (var g, h, k = 0; k < this.nw.length; k++) g = this.nw[k],
- h = g[0],
- (g = g[1]) && g.call(h, c, d, f)
- },
- kca: function(c, d) {
- this.nw.push([d, c])
- },
- qGa: function(c, d) {
- for (var f, g = 0; g < this.nw.length; g++) f = this.nw[g],
- f[0] == d && this.nw.splice(g, 1)
- }
- });
- V.XKa = V.O.extend({
- ctor: u(),
- j: B(q),
- M_: B(q),
- QC: u(),
- mk: u()
- });
- V.WKa = V.O.extend({
- ctor: u(),
- j: B(q),
- Jya: u(),
- QC: u(),
- mk: u()
- });
- V.BU = V.O.extend({
- gt: s,
- Gv: s,
- ni: 0,
- mM: q,
- cH: s,
- ctor: function() {
- this.ni = 0;
- this.mM = q
- },
- j: function() {
- this.gt = [];
- this.Gv = [];
- this.cH = [];
- return q
- },
- M_: function() {
- if (!this.mM || 0 == this.gt.length) return q;
- for (var c = q,
- d = s,
- f = 0; f < this.gt.length; f++)(d = this.gt[f]) && d.M_ && (c = c && d.M_());
- return c
- },
- Jya: function() {
- if (this.mM && 0 != this.Gv.length) for (var c = 0; c < this.Gv.length; c++);
- },
- mk: function() {
- for (var c = s,
- d = 0; d < this.gt.length; d++)(c = this.gt[d]) && c.mk();
- this.gt = [];
- for (d = 0; d < this.Gv.length; d++)(c = this.Gv[d]) && c.mk();
- this.Gv = []
- },
- QC: function(c) {
- this.ni = c.id || 0;
- for (var d = c.conditions || [], f = 0; f < d.length; f++) {
- var g = d[f],
- h = g.classname,
- k = V.BI.zH(h);
- k ? (k.QC(g), k.j(), this.gt.push(k)) : C.log("class named classname(" + h + ") can not implement!")
- }
- d = c.actions || [];
- for (f = 0; f < d.length; f++) g = d[f],
- h = g.classname,
- (k = V.BI.zH(h)) ? (k.QC(g), k.j(), this.Gv.push(k)) : C.log("class named classname(" + h + ") can not implement!");
- c = c.events || [];
- for (f = 0; f < c.length; f++) g = c[f],
- g = g.id,
- 0 > g || this.cH.push(g)
- },
- IAa: A("ni"),
- W3a: x("mM"),
- AUa: A("cH")
- });
- V.BU.create = function() {
- var c = new V.BU;
- return c.j() ? c: s
- };
- V.zk = {
- Fa: "",
- Faa: t,
- wW: {},
- pX: {},
- qX: {},
- nCa: function(c) {
- if (!c) return 0;
- var d = c.length;
- if (7 > d) return 0;
- var f = c.indexOf("."),
- g = c.substr(0, f);
- c = c.substr(f + 1, d - 1);
- var f = c.indexOf("."),
- h = c.substr(0, f);
- c = c.substr(f + 1, d - 1);
- var f = c.indexOf("."),
- k = c.substr(0, f);
- c = c.substr(f + 1, d - 1);
- f = c.indexOf(".");
- return 1E3 * parseInt(g) + 100 * parseInt(h) + 10 * parseInt(k) + parseInt( - 1 == f ? c: c.substr(0, f))
- },
- aS: function(c, d) {
- this.wW[c] = d
- },
- CUa: function(c) {
- return this.wW[c]
- },
- SJa: function(c) {
- var d = C.M.xd(c);
- d || e("Please load the resource first : " + c);
- var f = C.path.dirname(c);
- this.Fa = "" == f ? f: f + "/";
- var f = d.version,
- g = this.nCa(f);
- c = (f ? 250 > g ? new V.O8: new V.qqa: new V.O8).E_(d, this.Fa, c);
- if (!f || 250 > g) this.Faa = q;
- return c
- },
- clear: function() {
- this.Fa = "";
- this.Faa = t;
- this.wW = {}
- },
- K1a: function(c, d, f, g) {
- d = V.BI;
- var h = new V.R7(c, f);
- d.Nga(h);
- f && (this.pX[c] = f);
- g && (this.qX[c] = g)
- },
- DUa: A("Fa"),
- UVa: A("pX"),
- TVa: A("qX")
- };
- V.N8 = V.O.extend({
- Fa: "",
- E_: u(),
- oD: u()
- });
- V.O8 = V.N8.extend({
- E_: function(c, d, f) {
- this.Fa = "" == d ? d: C.path.join(d, "/");
- for (var g = c.textures,
- h = 0; h < g.length; h++) {
- var k = d,
- k = k + g[h];
- C.Fe.Lr(k)
- }
- d = c.designWidth;
- g = c.designHeight;
- 0 >= d || 0 >= g ? (C.log("Read design size error!"), V.zk.aS(f, C.Q.aa)) : V.zk.aS(f, C.size(d, g));
- h = this.oD(c.widgetTree);
- k = h.i();
- 0 == k.width && 0 == k.height && h.yf(C.size(d, g));
- V.actionManager.Lp(f, c.animation, h);
- return h
- },
- oD: function(c) {
- var d = s,
- f = c.classname,
- g = c.options;
- "Button" == f ? (d = gd.create(), this.kJ(d, g)) : "CheckBox" == f ? (d = hd.create(), this.bia(d, g)) : "Label" == f ? (d = ld.create(), this.c3(d, g)) : "LabelAtlas" == f ? (d = md.create(), this.dia(d, g)) : "LoadingBar" == f ? (d = jd.create(), this.fia(d, g)) : "ScrollView" == f ? (d = T.create(), this.d3(d, g)) : "TextArea" == f ? (d = ld.create(), this.c3(d, g)) : "TextButton" == f ? (d = gd.create(), this.kJ(d, g)) : "TextField" == f ? (d = qd.create(), this.hia(d, g)) : "ImageView" == f ? (d = id.create(), this.cia(d, g)) : "Panel" == f ? (d = L.create(), this.Vu(d, g)) : "Slider" == f ? (d = kd.create(), this.gia(d, g)) : "LabelBMFont" == f ? (d = nd.create(), this.eia(d, g)) : "DragPanel" == f && (d = T.create(), this.d3(d, g));
- c = c.children;
- for (f = 0; f < c.length; f++)(g = this.oD(c[f])) && d.q(g);
- return d
- },
- Ee: function(c, d) {
- d.ignoreSize !== m && c.We(d.ignoreSize);
- c.yf(C.size(d.width, d.height));
- c.Qm(d.tag);
- c.ey(d.actiontag);
- c.vh(d.touchAble);
- var f = d.name;
- c.Ze(f ? f: "default");
- c.p(C.d(d.x, d.y));
- d.scaleX !== m && c.gb(d.scaleX);
- d.scaleY !== m && c.pb(d.scaleY);
- d.rotation !== m && c.th(d.rotation);
- d.visible !== m && c.va(d.visible);
- c.ul(d.ZOrder)
- },
- b3: u(),
- aia: u(),
- Ad: function(c, d) {
- d.opacity !== m && c.K(d.opacity);
- c.G(C.color(d.colorR !== m ? d.colorR: 255, d.colorG !== m ? d.colorG: 255, d.colorB !== m ? d.colorB: 255));
- c.S(d.anchorPointX !== m ? d.anchorPointX: c.Jr == J.HE ? 0.5 : 0, d.anchorPointY !== m ? d.anchorPointY: c.Jr == J.HE ? 0.5 : 0);
- var f = d.flipY;
- c.Nd(d.flipX);
- c.Uf(f)
- },
- kJ: function(c, d) {
- this.Ee(c, d);
- var f = d.scale9Enable;
- c.uh(f);
- var g = d.normal,
- h = d.pressed,
- k = d.disabled,
- n = g ? this.Fa + g: s,
- p = h ? this.Fa + h: s,
- r = k ? this.Fa + k: s,
- v = d.useMergedTexture;
- f ? (v ? c.pj(g, h, k, J.ab) : c.pj(n, p, r), d.scale9Width !== m && d.scale9Height !== m && c.yf(C.size(d.scale9Width, d.scale9Height))) : v ? c.pj(g, h, k, J.ab) : c.pj(n, p, r);
- d.text !== m && (f = d.text || "") && c.vy(f);
- d.fontSize !== m && c.uy(d.fontSize);
- d.fontName !== m && c.ty(d.fontName);
- f = C.color(d.textColorR !== m ? d.textColorR: 255, d.textColorG !== m ? d.textColorG: 255, d.textColorB !== m ? d.textColorB: 255);
- c.sy(f);
- this.Ad(c, d)
- },
- bia: function(c, d) {
- this.Ee(c, d);
- var f = d.backGroundBox,
- g = d.backGroundBoxSelected,
- h = d.frontCross,
- k = d.backGroundBoxDisabled,
- n = d.frontCrossDisabled,
- p = this.Fa,
- r = f ? p + f: s,
- v = g ? p + g: s,
- y = h ? p + h: s,
- z = k ? p + k: s,
- p = n ? p + n: s;
- d.useMergedTexture ? c.pj(f, g, h, k, n, J.ab) : c.pj(r, v, y, z, p);
- c.qy(d.selectedState || t);
- this.Ad(c, d)
- },
- cia: function(c, d) {
- this.Ee(c, d);
- var f = d.fileName,
- g = d.scale9Enable || t;
- c.uh(g);
- var h = this.Fa,
- k = s;
- f && (k = h + f);
- h = d.useMergedTexture;
- g ? (h ? c.Sf(f, J.ab) : c.Sf(k), d.scale9Width !== m && d.scale9Height !== m && c.yf(C.size(d.scale9Width, d.scale9Height)), c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight))) : h ? c.Sf(f, J.ab) : c.Sf(k);
- this.Ad(c, d)
- },
- c3: function(c, d) {
- this.Ee(c, d);
- c.SR(d.touchScaleEnable);
- c.sa(d.text);
- d.fontSize !== m && c.Od(d.fontSize);
- d.fontName !== m && c.Zd(d.fontName);
- if (d.areaWidth !== m && d.areaHeight !== m) {
- var f = C.size(d.areaWidth, d.areaHeight);
- c.ry(f)
- }
- d.hAlignment && c.Xu(d.hAlignment);
- d.vAlignment && c.Yu(d.vAlignment);
- this.Ad(c, d)
- },
- dia: function(c, d) {
- this.Ee(c, d);
- var f = d.charMapFile !== m,
- g = d.itemWidth !== m,
- h = d.itemHeight !== m,
- k = d.startCharMap !== m;
- d.stringValue !== m && (f && g && h && k && d.charMapFile) && c.setProperty(d.stringValue, this.Fa + d.charMapFile, d.itemWidth, d.itemHeight, d.startCharMap);
- this.Ad(c, d)
- },
- Vu: function(c, d) {
- this.Ee(c, d); ! (c instanceof T) && !(c instanceof wd) && c.aq(d.clipAble);
- var f = d.backGroundScale9Enable;
- c.rR(f);
- var g = d.bgColorR,
- h = d.bgColorG,
- k = d.bgColorB,
- n = d.bgStartColorR,
- p = d.bgStartColorG,
- r = d.bgStartColorB,
- v = d.bgEndColorR,
- y = d.bgEndColorG,
- z = d.bgEndColorB;
- c.qR(C.d(d.vectorX, d.vectorY));
- var D = d.bgColorOpacity;
- c.pR(d.colorType);
- c.Mu(C.color(n, p, r), C.color(v, y, z));
- c.Mu(C.color(g, h, k));
- c.oR(D);
- h = (g = d.backGroundImage) ? this.Fa + g: s;
- d.useMergedTexture ? c.Nu(g, J.ab) : c.Nu(h);
- f && c.bJ(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight));
- this.Ad(c, d)
- },
- d3: function(c, d) {
- this.Vu(c, d);
- c.ky(C.size(d.innerWidth, d.innerHeight));
- c.sh(d.direction);
- c.vR(d.bounceEnable);
- this.Ad(c, d)
- },
- T4a: function(c, d) {
- this.Ee(c, d); (c instanceof T || c instanceof wd) && c.aq(d.clipAble);
- this.Ad(c, d)
- },
- gia: function(c, d) {
- this.Ee(c, d);
- var f = d.barTextureScale9Enable || t;
- c.uh(f);
- var g = d.length,
- h = d.useMergedTexture;
- if (d.barFileName !== m) if (f) {
- var k = (f = d.barFileName) ? this.Fa + f: s;
- h ? c.kk(f, J.ab) : c.kk(k);
- c.yf(C.size(g, c.i().height))
- } else k = (f = d.barFileName) ? this.Fa + f: s,
- h ? c.kk(f, J.ab) : c.kk(k);
- var g = d.ballNormal,
- f = d.ballPressed,
- k = d.ballDisabled,
- n = g ? this.Fa + g: s,
- p = f ? this.Fa + f: s,
- r = k ? this.Fa + k: s;
- h ? c.Lfa(g, f, k, J.ab) : c.Lfa(n, p, r);
- c.Ci(d.percent);
- k = (f = d.progressBarFileName) ? this.Fa + f: s;
- h ? c.Eu(f, J.ab) : c.Eu(k);
- this.Ad(c, d)
- },
- cIa: function(c, d) {
- this.Ee(c, d);
- c.sa(d.text);
- d.fontSize !== m && c.Od(d.fontSize);
- c.G(C.color(d.colorR, d.colorG, d.colorB));
- c.Zd(d.fontName);
- if (d.areaWidth !== m && d.areaHeight !== m) {
- var f = C.size(d.areaWidth, d.areaHeight);
- c.ry(f)
- }
- d.hAlignment && c.Xu(d.hAlignment);
- d.vAlignment && c.Yu(d.vAlignment);
- this.Ad(c, d)
- },
- dIa: function(c, d) {
- this.kJ(c, d);
- c.vy(d.text || "");
- c.sy(C.color(d.textColorR !== m ? d.textColorR: 255, d.textColorG !== m ? d.textColorG: 255, d.textColorB !== m ? d.textColorB: 255));
- d.fontSize !== m && c.uy(d.fontSize);
- d.fontName !== m && c.ty(d.fontName);
- this.Ad(c, d)
- },
- hia: function(c, d) {
- this.Ee(c, d);
- d.placeHolder !== m && c.Di(d.placeHolder);
- c.sa(d.text);
- d.fontSize !== m && c.Od(d.fontSize);
- d.fontName !== m && c.Zd(d.fontName);
- d.touchSizeWidth !== m && d.touchSizeHeight !== m && c.u3(C.size(d.touchSizeWidth, d.touchSizeHeight));
- var f = d.maxLengthEnable;
- c.my(f);
- f && c.qs(d.maxLength);
- f = d.passwordEnable;
- c.ny(f);
- f && c.WC(d.passwordStyleText);
- this.Ad(c, d)
- },
- fia: function(c, d) {
- this.Ee(c, d);
- var f = d.texture,
- g = f ? this.Fa + f: s;
- d.useMergedTexture ? c.Sf(f, J.ab) : c.Sf(g);
- c.sh(d.direction);
- c.Ci(d.percent);
- this.Ad(c, d)
- },
- aIa: function(c, d) {
- this.Vu(c, d)
- },
- bIa: function(c, d) {
- this.Vu(c, d)
- },
- eia: function(c, d) {
- this.Ee(c, d);
- c.UC(this.Fa + d.fileName);
- c.sa(d.text);
- this.Ad(c, d)
- }
- });
- V.qqa = V.N8.extend({
- E_: function(c, d, f) {
- this.Fa = "" == d ? d: C.path.join(d, "/");
- for (var g = c.textures,
- h = 0; h < g.length; h++) {
- var k = d,
- k = k + g[h];
- C.Fe.Lr(k)
- }
- d = c.designWidth;
- g = c.designHeight;
- 0 >= d || 0 >= g ? (C.log("Read design size error!"), V.zk.aS(f, C.Q.aa)) : V.zk.aS(f, C.size(d, g));
- h = this.oD(c.widgetTree);
- k = h.i();
- 0 == k.width && 0 == k.height && h.yf(C.size(d, g));
- V.actionManager.Lp(f, c.animation, h);
- return h
- },
- b3: function(c, d, f) {
- c.Bd(d, f)
- },
- aia: function(c, d, f) {
- var g = V.zk,
- h = g.pX[c],
- g = g.qX[c];
- h && g && h.f3a.call(this, c, d, f)
- },
- oD: function(c) {
- var d = s,
- f = c.classname,
- g = c.options;
- "Button" == f ? d = gd.create() : "CheckBox" == f ? d = hd.create() : "Label" == f ? d = ld.create() : "LabelAtlas" == f ? d = md.create() : "LoadingBar" == f ? d = jd.create() : "ScrollView" == f ? d = T.create() : "TextArea" == f ? d = ld.create() : "TextButton" == f ? d = gd.create() : "TextField" == f ? d = qd.create() : "ImageView" == f ? d = id.create() : "Panel" == f ? d = L.create() : "Slider" == f ? d = kd.create() : "LabelBMFont" == f ? d = nd.create() : "DragPanel" == f ? d = T.create() : "ListView" == f ? d = wd.create() : "PageView" == f ? d = xd.create() : "Widget" == f && (d = J.create());
- var h = f;
- switch (h) {
- case "Panel":
- h = "Layout";
- break;
- case "TextArea":
- h = "Label";
- break;
- case "TextButton":
- h = "Button"
- }
- if (h = V.BI.Yxa(h + "Reader")) this.b3(h, d, g);
- else {
- var k;
- d instanceof gd ? k = V.D4: d instanceof hd ? k = V.l5: d instanceof id ? k = V.e6: d instanceof md ? k = V.t6: d instanceof od ? k = V.u6: d instanceof ld ? k = V.v6: d instanceof jd ? k = V.B6: d instanceof kd ? k = V.L7: d instanceof qd ? k = V.Y7: d instanceof wd ? k = V.z6: d instanceof T ? k = V.eU: d instanceof xd ? k = V.l7: d instanceof L ? k = V.vK: d instanceof J && (k = V.Je);
- this.b3(k, d, g);
- g || C.log("GetParseError");
- this.aia(f, d, g)
- }
- c = c.children;
- for (f = 0; f < c.length; f++) if (g = this.oD(c[f])) d instanceof xd ? d.TO(g) : d instanceof wd ? d.yga(g) : (d instanceof L && (g.qh == J.h7 && (k = g.Ld(), h = d.dk(), g.Z2(C.d(k.x + h.x, k.y + h.y))), k = d.Ep(), g.p(C.d(g.Rc() + k.x, g.Vd() + k.y))), d.q(g));
- return d
- },
- Ee: function(c, d) {
- var f = d.name;
- c.Ze(f ? f: "default");
- d.ignoreSize !== m && c.We(d.ignoreSize);
- c.l3(d.sizeType);
- c.a3(d.positionType);
- c.pia(C.d(d.sizePercentX, d.sizePercentY));
- c.Z2(C.d(d.positionPercentX, d.positionPercentY));
- c.yf(C.size(d.width, d.height));
- c.Qm(d.tag);
- c.ey(d.actiontag);
- c.vh(d.touchAble);
- c.p(C.d(d.x, d.y));
- d.scaleX !== m && c.gb(d.scaleX);
- d.scaleY !== m && c.pb(d.scaleY);
- d.rotation !== m && c.th(d.rotation);
- d.visible !== m && c.va(d.visible);
- c.ul(d.ZOrder);
- if (f = d.layoutParameter) {
- var g;
- switch (f.type) {
- case 1:
- g = Ic.create();
- g.oc(f.gravity);
- break;
- case 2:
- g = P.create(),
- g.IR(f.relativeName),
- g.JR(f.relativeToName),
- g.mR(f.align)
- }
- g.mo(new Mc(f.marginLeft, f.marginTop, f.marginRight, f.marginDown));
- c.ly(g)
- }
- },
- Ad: function(c, d) {
- d.opacity !== m && c.K(d.opacity);
- c.G(C.color(d.colorR !== m ? d.colorR: 255, d.colorG !== m ? d.colorG: 255, d.colorB !== m ? d.colorB: 255));
- c.S(d.anchorPointX !== m ? d.anchorPointX: c.Jr == J.HE ? 0.5 : 0, d.anchorPointY !== m ? d.anchorPointY: c.Jr == J.HE ? 0.5 : 0);
- var f = d.flipY;
- c.Nd(d.flipX);
- c.Uf(f)
- },
- kJ: function(c, d) {
- this.Ee(c, d);
- var f = d.scale9Enable;
- c.uh(f);
- var g = d.normalData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.Rx(g ? this.Fa + g: s);
- break;
- case 1:
- g = g.path,
- c.Rx(g, J.ab)
- }
- g = d.pressedData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.Sx(g ? this.Fa + g: s);
- break;
- case 1:
- g = g.path,
- c.Sx(g, J.ab)
- }
- g = d.disabledData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.Qx(g ? this.Fa + g: s);
- break;
- case 1:
- g = g.path,
- c.Qx(g, J.ab)
- }
- f && (c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), d.scale9Width !== m && d.scale9Height !== m && c.yf(C.size(d.scale9Width, d.scale9Height)));
- d.text !== m && (f = d.text || "") && c.vy(f);
- d.fontSize !== m && c.uy(d.fontSize);
- d.fontName !== m && c.ty(d.fontName);
- f = C.color(d.textColorR !== m ? d.textColorR: 255, d.textColorG !== m ? d.textColorG: 255, d.textColorB !== m ? d.textColorB: 255);
- c.sy(f);
- this.Ad(c, d)
- },
- bia: function(c, d) {
- this.Ee(c, d);
- var f = d.backGroundBoxData;
- switch (f.resourceType) {
- case 0:
- f = f.path;
- c.uC(f ? this.Fa + f: s);
- break;
- case 1:
- f = f.path,
- c.uC(f, J.ab)
- }
- f = d.backGroundBoxSelectedData;
- switch (f.resourceType) {
- case 0:
- f = f.path;
- c.wC(f ? this.Fa + f: s);
- break;
- case 1:
- f = f.path,
- c.wC(f, J.ab)
- }
- f = d.frontCrossData;
- switch (f.resourceType) {
- case 0:
- f = f.path;
- c.xC(f ? this.Fa + f: s);
- break;
- case 1:
- f = f.path,
- c.xC(f, J.ab)
- }
- f = d.backGroundBoxDisabledData;
- switch (f.resourceType) {
- case 0:
- f = f.path;
- c.vC(f ? this.Fa + f: s);
- break;
- case 1:
- f = f.path,
- c.vC(f, J.ab)
- }
- switch (d.frontCrossDisabledData.resourceType) {
- case 0:
- f = d.path;
- c.yC(f ? this.Fa + f: s);
- break;
- case 1:
- f = d.path,
- c.yC(f, J.ab)
- }
- c.qy(d.selectedState || t);
- c.qy(d, "selectedState");
- this.Ad(c, d)
- },
- cia: function(c, d) {
- this.Ee(c, d);
- var f = d.fileNameData;
- switch (f.resourceType) {
- case 0:
- var g = this.Fa; (f = f.path) && c.Sf(g + f);
- break;
- case 1:
- f = f.path,
- c.Sf(f, J.ab)
- }
- g = d.scale9Enable || t;
- c.uh(g);
- g && (d.scale9Width !== m && d.scale9Height !== m && c.yf(C.size(d.scale9Width, d.scale9Height)), c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)));
- this.Ad(c, d)
- },
- c3: function(c, d) {
- this.Ee(c, d);
- c.SR(d.touchScaleEnable);
- c.sa(d.text);
- d.fontSize !== m && c.Od(d.fontSize);
- d.fontName !== m && c.Zd(d.fontName);
- if (d.areaWidth !== m && d.areaHeight !== m) {
- var f = C.size(d.areaWidth, d.areaHeight);
- c.ry(f)
- }
- d.hAlignment && c.Xu(d.hAlignment);
- d.vAlignment && c.Yu(d.vAlignment);
- this.Ad(c, d)
- },
- dia: function(c, d) {
- this.Ee(c, d);
- var f = d.charMapFile !== m,
- g = d.itemWidth !== m,
- h = d.itemHeight !== m,
- k = d.startCharMap !== m;
- if (d.stringValue !== m && f && g && h && k) switch (f = d.charMapFileData, f.resourceType) {
- case 0:
- c.setProperty(d.stringValue, this.Fa + f.path, d.itemWidth, d.itemHeight, d.startCharMap);
- break;
- case 1:
- C.log("Wrong res type of LabelAtlas!")
- }
- this.Ad(c, d)
- },
- Vu: function(c, d) {
- this.Ee(c, d); ! (c instanceof T) && !(c instanceof wd) && c.aq(d.clipAble);
- var f = d.backGroundScale9Enable;
- c.rR(f);
- var g = d.bgColorR,
- h = d.bgColorG,
- k = d.bgColorB,
- n = d.bgStartColorR,
- p = d.bgStartColorG,
- r = d.bgStartColorB,
- v = d.bgEndColorR,
- y = d.bgEndColorG,
- z = d.bgEndColorB;
- c.qR(C.d(d.vectorX, d.vectorY));
- var D = d.bgColorOpacity;
- c.pR(d.colorType);
- c.Mu(C.color(n, p, r), C.color(v, y, z));
- c.Mu(C.color(g, h, k));
- c.oR(D);
- g = d.backGroundImageData || {};
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.Nu(g ? this.Fa + g: s);
- break;
- case 1:
- g = g.path,
- c.Nu(g, J.ab)
- }
- f && c.bJ(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight));
- c.Pm(d.layoutType);
- this.Ad(c, d)
- },
- d3: function(c, d) {
- this.Vu(c, d);
- c.ky(C.size(d.innerWidth, d.innerHeight));
- c.sh(d.direction);
- c.vR(d.bounceEnable);
- this.Ad(c, d)
- },
- gia: function(c, d) {
- this.Ee(c, d);
- var f = d.barTextureScale9Enable || t;
- c.uh(f);
- var g = d.length;
- if (d.barFileName !== m) if (f) {
- var f = d.barFileNameData,
- h = f.resourceType;
- switch (h) {
- case 0:
- f = (f = f.path) ? this.Fa + f: s;
- c.kk(f);
- break;
- case 1:
- f = f.path,
- c.kk(f, J.ab)
- }
- c.yf(C.size(g, c.i().height))
- } else switch (f = d.barFileNameData, h = f.resourceType, h) {
- case 0:
- f = (f = f.path) ? this.Fa + f: s;
- c.kk(f);
- break;
- case 1:
- f = f.path,
- c.kk(f, J.ab)
- }
- g = d.ballNormalData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.sC(g ? this.Fa + g: s);
- break;
- case 1:
- g = g.path,
- c.sC(g, J.ab)
- }
- g = d.ballPressedData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.tC(g ? this.Fa + g: s);
- break;
- case 1:
- g = g.path,
- c.tC(g, J.ab)
- }
- g = d.ballDisabledData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.rC(g ? this.Fa + g: s);
- break;
- case 1:
- g = g.path,
- c.rC(g, J.ab)
- }
- g = d.progressBarData;
- switch (g.resourceType) {
- case 0:
- f = (f = g.path) ? this.Fa + f: s;
- c.Eu(f);
- break;
- case 1:
- f = g.path,
- c.Eu(f, J.ab)
- }
- this.Ad(c, d);
- c.Ci(d.percent)
- },
- cIa: function(c, d) {
- this.Ee(c, d);
- c.sa(d.text);
- d.fontSize !== m && c.Od(d.fontSize);
- c.G(C.color(d.colorR, d.colorG, d.colorB));
- c.Zd(d.fontName);
- if (d.areaWidth !== m && d.areaHeight !== m) {
- var f = C.size(d.areaWidth, d.areaHeight);
- c.ry(f)
- }
- d.hAlignment && c.Xu(d.hAlignment);
- d.vAlignment && c.Yu(d.vAlignment);
- this.Ad(c, d)
- },
- dIa: function(c, d) {
- this.kJ(c, d);
- c.vy(d.text || "");
- c.sy(C.color(d.textColorR !== m ? d.textColorR: 255, d.textColorG !== m ? d.textColorG: 255, d.textColorB !== m ? d.textColorB: 255));
- d.fontSize !== m && c.uy(d.fontSize);
- d.fontName !== m && c.ty(d.fontName);
- this.Ad(c, d)
- },
- hia: function(c, d) {
- this.Ee(c, d);
- d.placeHolder !== m && c.Di(d.placeHolder);
- c.sa(d.text);
- d.fontSize !== m && c.Od(d.fontSize);
- d.fontName !== m && c.Zd(d.fontName);
- d.touchSizeWidth !== m && d.touchSizeHeight !== m && c.u3(C.size(d.touchSizeWidth, d.touchSizeHeight));
- var f = d.maxLengthEnable;
- c.my(f);
- f && c.qs(d.maxLength);
- f = d.passwordEnable;
- c.ny(f);
- f && c.WC(d.passwordStyleText);
- this.Ad(c, d)
- },
- fia: function(c, d) {
- this.Ee(c, d);
- var f = d.textureData;
- switch (f.resourceType) {
- case 0:
- var g = this.Fa; (f = f.path) && c.Sf(g + f);
- break;
- case 1:
- f = f.path,
- c.Sf(f, J.ab)
- }
- g = d.scale9Enable;
- c.uh(g);
- g && (c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), c.yf(C.size(d.width, d.height)));
- c.sh(d.direction);
- c.Ci(d.percent);
- this.Ad(c, d)
- },
- aIa: function(c, d) {
- this.Vu(c, d);
- c.ky(C.size(d.innerWidth || 0, d.innerHeight || 0));
- c.sh(d.direction || 0);
- c.oc(d.gravity || 0);
- c.T2(d.itemMargin || 0)
- },
- bIa: function(c, d) {
- this.Vu(c, d)
- },
- eia: function(c, d) {
- this.Ee(c, d);
- var f = d.fileNameData;
- switch (f.resourceType) {
- case 0:
- c.UC(this.Fa + f.path);
- break;
- case 1:
- C.log("Wrong res type of LabelAtlas!")
- }
- c.sa(d.text);
- this.Ad(c, d)
- }
- });
- V.R2a = {
- uV: "",
- AA: s,
- xY: s,
- gf: s,
- mRa: function(c) {
- this.gf = s;
- this.uV = C.path.dirname(c);
- var d = C.M.xd(c);
- d || e("Please load the resource first : " + c);
- this.gf = this.zH(d, s);
- V.P3.parse(d.Triggers || []);
- return this.gf
- },
- zH: function(c, d) {
- var f = c.classname;
- if ("CCNode" == f) {
- var g = s;
- d ? (g = C.A.create(), d.q(g)) : g = C.A.create();
- this.$Ha(g, c);
- for (var h = c.components,
- k = 0; k < h.length; k++) {
- var n = h[k];
- if (!n) break;
- var f = n.classname,
- p = n.name,
- r = n.fileData,
- v = "",
- y = "",
- z = 0;
- r != s && (z = r.resourceType !== m ? r.resourceType: -1, v = C.path.join(this.uV, r.path), y = r.plistFile);
- var D = C.path.Cp(v);
- if ("CCSprite" == f) {
- f = s;
- if (0 == z) {
- if (".png" != D) continue;
- f = C.u.create(v)
- } else if (1 == z) {
- if (".plist" != D) continue;
- y = C.path.join(this.uV, y);
- C.Fe.Lr(y, C.path.s_(y, ".png"));
- f = C.u.create("#" + r.path)
- } else continue;
- v = V.lv.create(f, "CCSprite");
- p != s && v.Ze(p);
- g.pu(v);
- this.at(f, n)
- } else if ("CCTMXTiledMap" == f) r = s,
- 0 == z && ".tmx" == D && (r = C.OK.create(v), v = V.lv.create(r, "CCTMXTiledMap"), p != s && v.Ze(p), g.pu(v), this.at(r, n));
- else if ("CCParticleSystemQuad" == f)".plist" == D && (D = s, 0 == z ? (D = C.B.create(v), D.p(0, 0), v = V.lv.create(D, "CCParticleSystemQuad"), p != s && v.Ze(p), g.pu(v), this.at(D, n)) : C.log("unknown resourcetype on CCParticleSystemQuad!"));
- else if ("CCArmature" == f) 0 == z && ((z = C.M.xd(v)) || C.log("Please load the resource [%s] first!", v), z = z.armature_data[0].name, V.Mr.pwa(v), z = V.Bk.create(z), v = V.lv.create(z, "CCArmature"), p != s && v.Ze(p), g.pu(v), (p = n.selectedactionname) && z.ll() && z.ll().play(p), this.at(z, n));
- else if ("CCComAudio" == f) {
- var E = s;
- 0 == z && (E = V.bK.create(), E.RFa(v), p && E.Ze(p), g.pu(E), this.at(E, n))
- } else "CCComAttribute" == f ? (D = s, 0 == z ? (D = V.MS.create(), "" != v && D.parse(v), p && D.Ze(p), g.pu(D), this.at(D, n)) : C.log("unknown resourcetype on CCComAttribute!")) : "CCBackgroundAudio" == f ? D && 0 == z && (E = V.bK.create(), E.QFa(v), E.Eha(v), z = Boolean(n.loop || 0), E.CR(z), p && E.Ze(p), g.pu(E), E.HFa(v, z), this.at(E, n)) : "GUIComponent" == f && (v = V.zk.SJa(v), v = V.lv.create(v, "GUIComponent"), p != s && v.Ze(p), g.pu(v), this.at(E, n))
- }
- h = c.gameobjects;
- for (k = 0; k < h.length; k++) {
- n = h[k];
- if (!n) break;
- this.zH(n, g)
- }
- return g
- }
- return s
- },
- Wfa: function(c, d) {
- if (c == s) return s;
- for (var f = s,
- g = c.le(), h = 0; h < g.length && !((f = g[h]) && f.Fm() == d) && !(f = this.Wfa(f, d)); h++);
- return f
- },
- GP: function(c) {
- return this.gf == s ? s: this.gf.Fm() == c ? this.gf: this.Wfa(this.gf, c)
- },
- $Ha: function(c, d) {
- c.p("undefined" === typeof d.x ? 0 : d.x, "undefined" === typeof d.y ? 0 : d.y);
- c.va(Boolean("undefined" === typeof d.visible ? 1 : d.visible));
- c.Qm("undefined" === typeof d.objecttag ? -1 : d.objecttag);
- c.ul("undefined" === typeof d.zorder ? 0 : d.zorder);
- var f = "undefined" === typeof d.scaley ? 1 : d.scaley;
- c.gb("undefined" === typeof d.scalex ? 1 : d.scalex);
- c.pb(f);
- c.th("undefined" === typeof d.rotation ? 0 : d.rotation)
- },
- pJ: function(c, d) {
- this.AA = d;
- this.xY = c
- },
- at: function(c, d) {
- this.xY && this.xY.call(this.AA, c, d)
- },
- version: B("1.2.0.0"),
- clear: function() {
- V.P3.mk();
- C.ud.end()
- }
- };
- V.RNa = V.O.extend({
- Bd: u()
- });
- V.Je = {
- gk: function() {
- return V.Je
- },
- Bd: function(c, d) {
- var f = d.ignoreSize;
- f && c.We(f);
- c.l3(d.sizeType);
- c.a3(d.positionType);
- c.pia(C.d(d.sizePercentX, d.sizePercentY));
- c.Z2(C.d(d.positionPercentX, d.positionPercentY));
- c.yf(C.size(d.width, d.height));
- c.Qm(d.tag);
- c.ey(d.actiontag);
- c.vh(d.touchAble);
- f = d.name;
- c.Ze(f ? f: "default");
- c.p(C.d(d.x, d.y)); (f = d.scalex) && c.gb(f); (f = d.scaleY) && c.pb(f); (f = d.rotation) && c.th(f); (f = d.visible) && c.va(f);
- c.ul(d.ZOrder);
- if (d.layoutParameter) {
- var f = d.layoutParameter,
- g = s;
- switch (f.type) {
- case 1:
- g = new Ic;
- g.oc(f.gravity);
- break;
- case 2:
- var h = g = new P;
- h.IR(f.relativeName);
- h.JR(f.relativeToName);
- h.mR(f.align)
- }
- g && (g.mo(f.marginLeft, f.marginTop, f.marginRight, f.marginDown), c.ly(g))
- }
- },
- lo: function(c, d) {
- var f = d.opacity;
- f && c.K(f);
- c.G(C.color(d.colorR || 255, d.colorG || 255, d.colorB || 255));
- c.S(C.d(d.anchorPointX || (c.Jr === V.rqa ? 0.5 : 0), d.anchorPointY || (c.Jr === V.rqa ? 0.5 : 0)))
- }
- };
- V.D4 = {
- gk: function() {
- return V.D4
- },
- Bd: function(c, d) {
- V.Je.Bd.call(this, c, d);
- var f = V.zk.Fa,
- g = d.scale9Enable;
- c.uh(g);
- var h = d.normalData;
- switch (h.resourceType) {
- case 0:
- h = h.path;
- c.Rx(h && "" !== h ? f + h: s);
- break;
- case 1:
- h = h.path,
- c.Rx(h, 1)
- }
- h = d.pressedData;
- switch (h.resourceType) {
- case 0:
- h = h.path;
- c.Sx(h && "" !== h ? f + h: s);
- break;
- case 1:
- h = h.path,
- c.Sx(h, 1)
- }
- h = d.disabledData;
- switch (h.resourceType) {
- case 0:
- h = h.path;
- c.Qx(h && "" !== h ? f + h: s);
- break;
- case 1:
- h = h.path,
- c.Qx(h, 1)
- }
- g && (c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), f = d.scale9Height, d.scale9Width && f && c.yf(C.size(d.scale9Width, d.scale9Height)));
- d.text && (f = d.text) && c.vy(f);
- c.sy(C.color(d.textColorR ? d.textColorR: 255, d.textColorG ? d.textColorG: 255, d.textColorB ? d.textColorB: 255));
- d.fontSize && c.uy(d.fontSize);
- d.fontName && c.ty(d.fontName);
- V.Je.lo.call(this, c, d)
- }
- };
- V.l5 = {
- gk: function() {
- return V.l5
- },
- Bd: function(c, d) {
- V.Je.Bd.call(this, c, d);
- var f = V.zk.Fa,
- g = d.backGroundBoxData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.uC(g && "" !== g ? f + g: s);
- break;
- case 1:
- g = g.path,
- c.uC(g, 1)
- }
- g = d.backGroundBoxSelectedData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.wC(g && "" !== g ? f + g: s);
- break;
- case 1:
- g = g.path,
- c.wC(g, 1)
- }
- g = d.frontCrossData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.xC(g && "" !== g ? f + g: s);
- break;
- case 1:
- g = g.path,
- c.xC(g, 1)
- }
- g = d.backGroundBoxDisabledData;
- switch (g.resourceType) {
- case 0:
- g = g.path;
- c.vC(g && "" !== g ? f + g: s);
- break;
- case 1:
- g = g.path,
- c.vC(g, 1)
- }
- switch (d.frontCrossDisabledData.resourceType) {
- case 0:
- g = d.path;
- c.yC(g && "" !== g ? f + g: s);
- break;
- case 1:
- g = d.path,
- c.yC(g, 1)
- }
- V.Je.lo.call(this, c, d)
- }
- };
- V.e6 = {
- gk: function() {
- return V.e6
- },
- Bd: function(c, d) {
- V.Je.Bd.call(this, c, d);
- var f = V.zk.Fa,
- g = d.fileNameData;
- switch (g.resourceType) {
- case 0:
- (g = g.path) && "" !== g && c.Sf(f + g);
- break;
- case 1:
- g = g.path,
- c.Sf(g, 1)
- }
- f = t;
- d.scale9Enable && (f = d.scale9Enable);
- c.uh(f);
- f && (f = d.scale9Height, d.scale9Width && f && c.yf(C.size(d.scale9Width, d.scale9Height)), c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)));
- V.Je.lo.call(this, c, d)
- }
- };
- V.t6 = {
- gk: function() {
- return V.t6
- },
- Bd: function(c, d) {
- V.Je.Bd.call(this, c, d);
- var f = V.zk.Fa,
- g = d.charMapFileData || d.charMapFile,
- h = d.itemWidth,
- k = d.itemHeight,
- n = d.startCharMap;
- if (d.stringValue && g && h && k && n) switch (g = d.charMapFileData, g.resourceType) {
- case 0:
- c.setProperty(d.stringValue, f + g.path, d.itemWidth, d.itemHeight, d.startCharMap);
- break;
- case 1:
- C.log("Wrong res type of LabelAtlas!")
- }
- V.Je.lo.call(this, c, d)
- }
- };
- V.u6 = {
- gk: function() {
- return V.u6
- },
- Bd: function(c, d) {
- V.Je.Bd.call(this, c, d);
- var f = V.zk.Fa,
- g = d.fileNameData;
- switch (g.resourceType) {
- case 0:
- c.UC(f + g.path);
- break;
- case 1:
- C.log("Wrong res type of LabelAtlas!")
- }
- c.PR(d.text);
- V.Je.lo.call(this, c, d)
- }
- };
- V.v6 = {
- gk: function() {
- return V.v6
- },
- Bd: function(c, d) {
- V.Je.Bd.call(this, c, d);
- c.SR(d.touchScaleEnable);
- c.sa(d.text);
- d.fontSize && c.Od(d.fontSize);
- d.fontName && c.Zd(d.fontName);
- var f = d.areaHeight;
- d.areaWidth && f && (f = C.size(d.areaWidth, d.areaHeight), c.ry(f));
- d.hAlignment && c.Xu(d.hAlignment);
- d.vAlignment && c.Yu(d.vAlignment);
- V.Je.lo.call(this, c, d)
- }
- };
- V.vK = {
- gk: function() {
- return V.vK
- },
- Bd: function(c, d) {
- V.Je.Bd.call(this, c, d);
- var f = V.zk.Fa,
- g = 0,
- h = 0;
- d.adaptScreen ? (h = C.Q.aa, g = h.width, h = h.height) : (g = d.width, h = d.height);
- c.yf(C.size(g, h));
- c.aq(d.clipAble);
- g = d.backGroundScale9Enable;
- c.rR(g);
- var h = d.bgColorR,
- k = d.bgColorG,
- n = d.bgColorB,
- p = d.bgStartColorR,
- r = d.bgStartColorG,
- v = d.bgStartColorB,
- y = d.bgEndColorR,
- z = d.bgEndColorG,
- D = d.bgEndColorB;
- c.qR(C.d(d.vectorX, d.vectorY));
- var E = d.bgColorOpacity;
- c.pR(d.colorType);
- c.Mu(C.color(p, r, v), C.color(y, z, D));
- c.Mu(C.color(h, k, n));
- c.oR(E);
- if (h = d.backGroundImageData) switch (h.resourceType) {
- case 0:
- h = h.path;
- c.Nu(h && "" !== h ? f + h: s);
- break;
- case 1:
- h = h.path,
- c.Nu(h, 1)
- }
- g && c.bJ(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight));
- c.Pm(d.layoutType);
- V.Je.lo.call(this, c, d)
- }
- };
- V.eU = {
- gk: function() {
- return V.eU
- },
- Bd: function(c, d) {
- V.vK.Bd.call(this, c, d);
- c.ky(C.size(d.innerWidth, d.innerHeight));
- c.sh(d.direction);
- c.vR(d.bounceEnable);
- V.Je.lo.call(this, c, d)
- }
- };
- V.z6 = {
- gk: function() {
- return V.z6
- },
- Bd: function(c, d) {
- V.eU.Bd.call(this, c, d);
- c.sh(d.direction);
- c.oc(d.gravity);
- c.T2(d.itemMargin)
- }
- };
- V.B6 = {
- gk: function() {
- return V.B6
- },
- Bd: function(c, d) {
- V.Je.Bd.call(this, c, d);
- var f = V.zk.Fa,
- g = d.textureData;
- switch (g.resourceType) {
- case 0:
- (g = g.path) && "" !== g && c.Sf(f + g);
- break;
- case 1:
- g = g.path,
- c.Sf(g, 1)
- }
- f = d.scale9Enable;
- c.uh(f);
- f && (c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), c.yf(C.size(d.width, d.height)));
- c.sh(d.direction);
- c.Ci(d.percent);
- V.Je.lo.call(this, c, d)
- }
- };
- V.l7 = {
- $Xa: s,
- gk: function() {
- return V.l7
- },
- Bd: function(c, d) {
- V.vK.Bd.call(this, c, d)
- }
- };
- V.L7 = {
- gk: function() {
- return V.L7
- },
- Bd: function(c, d) {
- V.Je.Bd.call(this, c, d);
- var f = V.zk.Fa,
- g = d.scale9Enable;
- c.uh(g);
- var h = d.length;
- if (d.barFileName) {
- if (g) {
- var g = d.barFileNameData,
- k = d.resourceType;
- switch (k) {
- case 0:
- g = (g = g.path) && "" !== g ? f + g: s;
- c.kk(g);
- break;
- case 1:
- g = g.path,
- c.kk(g, 1)
- }
- c.yf(C.size(h, c.i().height))
- }
- } else switch (g = d.barFileNameData, k = g.resourceType, k) {
- case 0:
- g = (g = g.path) && "" !== g ? f + g: s;
- c.kk(g);
- break;
- case 1:
- g = g.path,
- c.kk(g, 1)
- }
- h = d.ballNormalData;
- switch (h.resourceType) {
- case 0:
- h = h.path;
- c.sC(h && "" !== h ? f + h: s);
- break;
- case 1:
- h = h.path,
- c.sC(h, 1)
- }
- h = d.ballPressedData;
- switch (h.resourceType) {
- case 0:
- h = h.path;
- c.tC(h && "" !== h ? f + h: s);
- break;
- case 1:
- h = h.path,
- c.tC(h, 1)
- }
- h = d.ballDisabledData;
- switch (h.resourceType) {
- case 0:
- h = h.path;
- c.rC(h && "" !== h ? f + h: s);
- break;
- case 1:
- h = h.path,
- c.rC(h, 1)
- }
- h = d.progressBarData;
- switch (h.resourceType) {
- case 0:
- g = (g = h.path) && "" !== g ? f + g: s;
- c.Eu(g);
- break;
- case 1:
- g = h.path,
- c.Eu(g, 1)
- }
- V.Je.lo.call(this, c, d)
- }
- };
- V.Y7 = {
- gk: function() {
- return V.Y7
- },
- Bd: function(c, d) {
- V.Je.Bd.call(this, c, d);
- var f = d.placeHolder;
- f && c.Di(f);
- c.sa(d.text); (f = d.fontSize1) && c.Od(f); (f = d.fontName) && c.Zd(f);
- var f = d.touchSizeWidth,
- g = d.touchSizeHeight;
- f && g && c.u3(f, g);
- f = d.maxLengthEnable;
- c.my(f);
- f && c.qs(d.maxLength);
- f = d.passwordEnable;
- c.ny(f);
- f && c.WC(d.passwordStyleText);
- f = d.areaWidth;
- g = d.areaHeight;
- f && g && (f = C.size(f, g), c.ry(f)); (f = d.hAlignment) && c.Xu(f); (f = d.vAlignment) && c.Yu(f);
- V.Je.lo.call(this, c, d)
- }
- };
- function Ed(c, d) {
- this.name = c;
- this.parent = d
- }
- Ed.prototype = {
- length: 0,
- x: 0,
- y: 0,
- Rea: q,
- Qea: q
- };
- function Fd(c, d) {
- this.name = c;
- this.boneData = d
- }
- Fd.prototype = {
- TZ: s,
- PZ: t
- };
- function Gd(c, d) {
- this.data = c;
- this.parent = d;
- this.Zu()
- }
- Gd.prototype = {
- x: 0,
- y: 0,
- Im: 0,
- Rp: 0,
- Rm: 0,
- Jm: 0,
- m11: 0,
- Sm: 0,
- LJ: 0,
- Dy: 1,
- Ey: 1,
- lD: function(c, d) {
- var f = this.parent;
- f != s ? (this.Rm = this.x * f.Im + this.y * f.Rp + f.Rm, this.Sm = this.x * f.Jm + this.y * f.m11 + f.Sm, this.data.Rea ? (this.Dy = f.Dy * this.scaleX, this.Ey = f.Ey * this.scaleY) : (this.Dy = this.scaleX, this.Ey = this.scaleY), this.LJ = this.data.Qea ? f.LJ + this.rotation: this.rotation) : (this.Rm = c ? -this.x: this.x, this.Sm = d != t ? -this.y: this.y, this.Dy = this.scaleX, this.Ey = this.scaleY, this.LJ = this.rotation);
- var g = this.LJ * Math.PI / 180,
- f = Math.cos(g),
- g = Math.sin(g);
- this.Im = f * this.Dy;
- this.Jm = g * this.Dy;
- this.Rp = -g * this.Ey;
- this.m11 = f * this.Ey;
- c && (this.Im = -this.Im, this.Rp = -this.Rp);
- d != t && (this.Jm = -this.Jm, this.m11 = -this.m11)
- },
- Zu: function() {
- var c = this.data;
- this.x = c.x;
- this.y = c.y;
- this.rotation = c.rotation;
- this.scaleX = c.scaleX;
- this.scaleY = c.scaleY
- }
- };
- function Hd(c, d, f) {
- this.data = c;
- this.wl = d;
- this.ej = f;
- this.Zu()
- }
- Hd.prototype = {
- Uqa: 0,
- Th: s,
- hy: function(c) {
- this.Th = c;
- this.Uqa = this.wl.time
- },
- Zu: function() {
- var c = this.data;
- this.r = c.r;
- this.g = c.g;
- this.b = c.b;
- this.a = c.a;
- for (var d = this.wl.data.zf,
- f = 0,
- g = d.length; f < g; f++) if (d[f] == c) {
- this.hy(!c.TZ ? s: Id(this.wl, f, c.TZ));
- break
- }
- }
- };
- function Jd(c) {
- this.name = c;
- this.XO = {}
- }
- Jd.prototype = {
- JH: function(c, d) {
- return this.XO[c + ":" + d]
- }
- };
- function Kd(c, d, f) {
- this.name = c;
- this.Yia = d;
- this.duration = f
- }
- Kd.prototype = {
- apply: function(c, d, f, g, h) {
- g && 0 != this.duration && (f %= this.duration, d %= this.duration);
- g = this.Yia;
- for (var k = 0,
- n = g.length; k < n; k++) g[k].apply(c, d, f, h, 1)
- }
- };
- function Ld(c, d, f) {
- var g = 0,
- h = Math.floor(c.length / f) - 2;
- if (0 == h) return f;
- for (var k = h >>> 1;;) {
- c[(k + 1) * f] <= d ? g = k + 1 : h = k;
- if (g == h) return (g + 1) * f;
- k = g + h >>> 1
- }
- }
- function Md(c) {
- this.hj = [];
- this.hj.length = 6 * (c - 1)
- }
- Md.prototype = {};
- function Nd(c, d, f) {
- f = 0 > f ? 0 : 1 < f ? 1 : f;
- var g = 6 * d,
- h = c.hj;
- d = h[g];
- if (!d) return f;
- if ( - 1 == d) return 0;
- c = h[g + 1];
- for (var k = h[g + 2], n = h[g + 3], p = h[g + 4], r = h[g + 5], g = d, h = c, v = 8;;) {
- if (g >= f) return d = g - d,
- c = h - c,
- c + (h - c) * (f - d) / (g - d);
- if (0 == v) break;
- v--;
- d += k;
- c += n;
- k += p;
- n += r;
- g += d;
- h += c
- }
- return h + (1 - h) * (f - g) / (1 - g)
- }
- function Od(c) {
- this.hj = new Md(c);
- this.frames = [];
- this.frames.length = 2 * c
- }
- Od.prototype = {
- qx: 0,
- Bm: function() {
- return this.frames.length / 2
- },
- Om: function(c, d, f) {
- c *= 2;
- this.frames[c] = d;
- this.frames[c + 1] = f
- },
- apply: function(c, d, f, g, h) {
- d = this.frames;
- if (! (f < d[0])) {
- c = c.vd[this.qx];
- if (f >= d[d.length - 2]) d = c.data.rotation + d[d.length - 1] - c.rotation;
- else {
- var k = Ld(d, f, 2);
- g = d[k - 1];
- var n = d[k];
- f = 1 - (f - n) / (d[k - 2] - n);
- f = Nd(this.hj, k / 2 - 1, f);
- for (d = d[k + 1] - g; 180 < d;) d -= 360;
- for (; - 180 > d;) d += 360;
- d = c.data.rotation + (g + d * f) - c.rotation
- }
- for (; 180 < d;) d -= 360;
- for (; - 180 > d;) d += 360;
- c.rotation += d * h
- }
- }
- };
- function Pd(c) {
- this.hj = new Md(c);
- this.frames = [];
- this.frames.length = 3 * c
- }
- Pd.prototype = {
- qx: 0,
- Bm: function() {
- return this.frames.length / 3
- },
- Om: function(c, d, f, g) {
- c *= 3;
- this.frames[c] = d;
- this.frames[c + 1] = f;
- this.frames[c + 2] = g
- },
- apply: function(c, d, f, g, h) {
- d = this.frames;
- if (! (f < d[0])) if (c = c.vd[this.qx], f >= 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;
- else {
- g = Ld(d, f, 3);
- var k = d[g - 2],
- n = d[g - 1],
- p = d[g];
- f = 1 - (f - p) / (d[g + -3] - p);
- f = Nd(this.hj, g / 3 - 1, f);
- c.x += (c.data.x + k + (d[g + 1] - k) * f - c.x) * h;
- c.y += (c.data.y + n + (d[g + 2] - n) * f - c.y) * h
- }
- }
- };
- function Qd(c) {
- this.hj = new Md(c);
- this.frames = [];
- this.frames.length = 3 * c
- }
- Qd.prototype = {
- qx: 0,
- Bm: function() {
- return this.frames.length / 3
- },
- Om: function(c, d, f, g) {
- c *= 3;
- this.frames[c] = d;
- this.frames[c + 1] = f;
- this.frames[c + 2] = g
- },
- apply: function(c, d, f, g, h) {
- d = this.frames;
- if (! (f < d[0])) if (c = c.vd[this.qx], f >= 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;
- else {
- g = Ld(d, f, 3);
- var k = d[g - 2],
- n = d[g - 1],
- p = d[g];
- f = 1 - (f - p) / (d[g + -3] - p);
- f = Nd(this.hj, g / 3 - 1, f);
- c.scaleX += (c.data.scaleX - 1 + k + (d[g + 1] - k) * f - c.scaleX) * h;
- c.scaleY += (c.data.scaleY - 1 + n + (d[g + 2] - n) * f - c.scaleY) * h
- }
- }
- };
- function Rd(c) {
- this.hj = new Md(c);
- this.frames = [];
- this.frames.length = 5 * c
- }
- Rd.prototype = {
- YC: 0,
- Bm: function() {
- return this.frames.length / 5
- },
- Om: function(c, d, f, g, h, k) {
- c *= 5;
- this.frames[c] = d;
- this.frames[c + 1] = f;
- this.frames[c + 2] = g;
- this.frames[c + 3] = h;
- this.frames[c + 4] = k
- },
- apply: function(c, d, f, g, h) {
- d = this.frames;
- if (! (f < d[0])) if (c = c.zf[this.YC], f >= 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];
- else {
- g = Ld(d, f, 5);
- var k = d[g - 4],
- n = d[g - 3],
- p = d[g - 2],
- r = d[g - 1],
- v = d[g];
- f = 1 - (f - v) / (d[g - 5] - v);
- f = Nd(this.hj, g / 5 - 1, f);
- k += (d[g + 1] - k) * f;
- n += (d[g + 2] - n) * f;
- p += (d[g + 3] - p) * f;
- d = r + (d[g + 4] - r) * f;
- 1 > h ? (c.r += (k - c.r) * h, c.g += (n - c.g) * h, c.b += (p - c.b) * h, c.a += (d - c.a) * h) : (c.r = k, c.g = n, c.b = p, c.a = d)
- }
- }
- };
- function Sd(c) {
- this.hj = new Md(c);
- this.frames = [];
- this.frames.length = c;
- this.UZ = [];
- this.UZ.length = c
- }
- Sd.prototype = {
- YC: 0,
- Bm: function() {
- return this.frames.length
- },
- Om: function(c, d, f) {
- this.frames[c] = d;
- this.UZ[c] = f
- },
- apply: function(c, d, f) {
- d = this.frames;
- f < d[0] || (f = this.UZ[f >= d[d.length - 1] ? d.length - 1 : Ld(d, f, 1) - 1], c.zf[this.YC].hy(!f ? s: Id(c, this.YC, f)))
- }
- };
- function Td(c) {
- this.frames = [];
- this.frames.length = c;
- this.zm = [];
- this.zm.length = c
- }
- Td.prototype = {
- Bm: function() {
- return this.frames.length
- },
- Om: function(c, d, f) {
- this.frames[c] = d;
- this.zm[c] = f
- },
- apply: function(c, d, f, g, h) {
- if (g) {
- var k = this.frames,
- n = k.length;
- if (d > f) this.apply(c, d, Number.MAX_VALUE, g, h),
- d = -1;
- else if (d >= k[n - 1]) return;
- if (! (f < k[0])) {
- if (d < k[0]) c = 0;
- else {
- c = Ld(k, d, 1);
- for (d = k[c]; 0 < c && k[c - 1] == d;) c--
- }
- for (d = this.zm; c < n && f >= k[c]; c++) g.push(d[c])
- }
- }
- }
- };
- function Ud(c) {
- this.frames = [];
- this.frames.length = c;
- this.R_ = [];
- this.R_.length = c
- }
- Ud.prototype = {
- Bm: function() {
- return this.frames.length
- },
- Om: function(c, d, f) {
- this.frames[c] = d;
- this.R_[c] = f
- },
- apply: function(c, d, f) {
- var g = this.frames;
- if (! (f < g[0])) {
- d = c.vu;
- var h = c.zf;
- if (f = this.R_[f >= g[g.length - 1] ? g.length - 1 : Ld(g, f, 1) - 1]) {
- g = 0;
- for (k = f.length; g < k; g++) d[g] = c.zf[f[g]]
- } else for (var g = 0,
- k = h.length; g < k; g++) d[g] = h[g]
- }
- }
- };
- function Vd() {
- this.vd = [];
- this.zf = [];
- this.Iia = [];
- this.zm = [];
- this.xB = []
- }
- Vd.prototype = {
- K_: s,
- HH: function(c) {
- for (var d = this.vd,
- f = 0,
- g = d.length; f < g; f++) if (d[f].name == c) return d[f];
- return s
- },
- xda: function(c) {
- for (var d = this.vd,
- f = 0,
- g = d.length; f < g; f++) if (d[f].name == c) return f;
- return - 1
- },
- h0: function(c) {
- for (var d = this.zf,
- f = 0,
- g = d.length; f < g; f++) if (d[f].name == c) return d[f];
- return s
- },
- IH: function(c) {
- for (var d = this.zf,
- f = 0,
- g = d.length; f < g; f++) if (d[f].name == c) return f;
- return - 1
- }
- };
- function Wd(c, d) {
- for (var f = c.xB,
- g = 0,
- h = f.length; g < h; g++) if (f[g].name == d) return f[g];
- return s
- }
- function Xd(c) {
- this.data = c;
- this.vd = [];
- for (var d = 0,
- f = c.vd.length; d < f; d++) {
- var g = c.vd[d];
- this.vd.push(new Gd(g, !g.parent ? s: this.vd[c.vd.indexOf(g.parent)]))
- }
- this.zf = [];
- this.vu = [];
- d = 0;
- for (f = c.zf.length; d < f; d++) g = c.zf[d],
- g = new Hd(g, this, this.vd[c.vd.indexOf(g.boneData)]),
- this.zf.push(g),
- this.vu.push(g)
- }
- Xd.prototype = {
- x: 0,
- y: 0,
- wJ: s,
- time: 0,
- Ada: t,
- Bda: t,
- lD: function() {
- for (var c = this.Ada,
- d = this.Bda,
- f = this.vd,
- g = 0,
- h = f.length; g < h; g++) f[g].lD(c, d)
- },
- Zu: function() {
- this.F2();
- this.m3()
- },
- F2: function() {
- for (var c = this.vd,
- d = 0,
- f = c.length; d < f; d++) c[d].Zu()
- },
- m3: function() {
- for (var c = this.zf,
- d = 0,
- f = c.length; d < f; d++) c[d].Zu(d)
- },
- HH: function(c) {
- for (var d = this.vd,
- f = 0,
- g = d.length; f < g; f++) if (d[f].data.name == c) return d[f];
- return s
- },
- xda: function(c) {
- for (var d = this.vd,
- f = 0,
- g = d.length; f < g; f++) if (d[f].data.name == c) return f;
- return - 1
- },
- h0: function(c) {
- for (var d = this.zf,
- f = 0,
- g = d.length; f < g; f++) if (d[f].data.name == c) return d[f];
- return s
- },
- IH: function(c) {
- for (var d = this.zf,
- f = 0,
- g = d.length; f < g; f++) if (d[f].data.name == c) return f;
- return - 1
- },
- ria: function(c) {
- if (this.wJ && c) {
- var d = this.wJ;
- console.log(d.XO);
- for (var f in d.XO) {
- var g = f.indexOf(":"),
- d = parseInt(f.substring(0, g)),
- h = f.substring(g + 1),
- g = this.zf[d];
- g.Th && g.Th.name == h && (d = c.JH(d, h)) && g.hy(d)
- }
- }
- this.wJ = c
- },
- hy: function(c, d) {
- for (var f = this.zf,
- g = 0,
- h = f.length; g < h; g++) {
- var k = f[g];
- if (k.data.name == c) {
- f = s;
- d && ((f = this.JH(g, d)) || e("Attachment not found: " + d + ", for slot: " + c));
- k.hy(f);
- return
- }
- }
- e("Slot not found: " + c)
- },
- update: function(c) {
- this.time += c
- }
- };
- function Id(c, d, f) {
- if (c.wJ) {
- var g = c.wJ.JH(d, f);
- if (g) return g
- }
- return c.data.K_ ? c.data.K_.JH(d, f) : s
- }
- function Yd(c) {
- this.name = c
- }
- Yd.prototype = {
- jQ: 0,
- uP: 0,
- stringValue: s
- };
- function Zd(c) {
- this.data = c
- }
- Zd.prototype = {
- jQ: 0,
- uP: 0,
- stringValue: s
- };
- var $d = {
- region: 0,
- vxa: 1
- };
- function ae(c) {
- this.name = c;
- this.offset = [];
- this.offset.length = 8;
- this.fq = [];
- this.fq.length = 8
- }
- ae.prototype = {
- x: 0,
- y: 0,
- cy: s,
- Gga: 0,
- Hga: 0,
- Kga: 0,
- Fga: 0,
- Jga: 0,
- Iga: 0
- };
- function be(c, d, f, g, h) {
- d += g.Rm;
- f += g.Sm;
- var k = g.Im,
- n = g.Rp,
- p = g.Jm;
- g = g.m11;
- c = c.offset;
- h[0] = c[0] * k + c[1] * n + d;
- h[1] = c[0] * p + c[1] * g + f;
- h[2] = c[2] * k + c[3] * n + d;
- h[3] = c[2] * p + c[3] * g + f;
- h[4] = c[4] * k + c[5] * n + d;
- h[5] = c[4] * p + c[5] * g + f;
- h[6] = c[6] * k + c[7] * n + d;
- h[7] = c[6] * p + c[7] * g + f
- }
- function de(c) {
- this.name = c;
- this.m = []
- }
- de.prototype = {};
- function ee(c) {
- this.Hia = c;
- this.Bca = {}
- }
- ee.prototype = {
- xya: 0,
- Pha: function(c, d, f) {
- this.Bca[c.name + ":" + d.name] = f
- }
- };
- function fe(c, d, f) {
- return (d = c.Bca[d.name + ":" + f.name]) ? d: c.xya
- }
- function ge() {}
- ge.prototype = {
- next: s,
- Hu: s,
- td: s,
- wm: 0,
- time: 0,
- oC: -1,
- Cx: 0,
- N3: 1,
- zI: 0,
- HQ: 0,
- Vp: s,
- Up: s,
- DC: s,
- EC: s
- };
- function he(c) {
- this.data = c;
- this.Yh = [];
- this.zm = []
- }
- he.prototype = {
- Vp: s,
- Up: s,
- DC: s,
- EC: s,
- N3: 1,
- update: function(c) {
- c *= this.N3;
- for (var d = 0; d < this.Yh.length; d++) {
- var f = this.Yh[d];
- if (f) {
- var g = c * f.N3;
- f.time += g;
- f.Hu && (f.Hu.time += g, f.zI += g); (g = f.next) ? f.oC >= g.wm && ie(this, d, g) : !f.loop && f.oC >= f.Cx && this.fP(d)
- }
- }
- },
- apply: function(c) {
- for (var d = 0; d < this.Yh.length; d++) {
- var f = this.Yh[d];
- if (f) {
- this.zm.length = 0;
- var g = f.time,
- h = f.oC,
- k = f.Cx,
- n = f.loop; ! n && g > k && (g = k);
- var p = f.Hu;
- if (p) {
- var r = p.time; ! p.loop && r > p.Cx && (r = p.Cx);
- p.td.apply(c, r, r, p.loop, s);
- var v = f.zI / f.HQ;
- 1 <= v && (v = 1, f.Hu = s);
- var y = f.td,
- p = c,
- r = f.oC,
- z = g,
- D = this.zm;
- n && 0 != y.duration && (z %= y.duration, r %= y.duration);
- for (var y = y.Yia,
- E = 0,
- F = y.length; E < F; E++) y[E].apply(p, r, z, D, v)
- } else f.td.apply(c, f.oC, g, n, this.zm);
- p = 0;
- for (r = this.zm.length; p < r; p++) z = this.zm[p],
- f.EC != s && f.EC(d, z),
- this.EC != s && this.EC(d, z);
- if (n ? h % k > g % k: h < k && g >= k) g = Math.floor(g / k),
- f.DC && f.DC(d, g),
- this.DC && this.DC(d, g);
- f.oC = f.time
- }
- }
- },
- Qca: function() {
- for (var c = 0,
- d = this.Yh.length; c < d; c++) this.fP(c);
- this.Yh.length = 0
- },
- fP: function(c) {
- if (! (c >= this.Yh.length)) {
- var d = this.Yh[c];
- d && (d.Up != s && d.Up(c), this.Up != s && this.Up(c), this.Yh[c] = s)
- }
- },
- gy: function(c, d, f) {
- var g = new ge;
- g.td = d;
- g.loop = f;
- g.Cx = d.duration;
- ie(this, c, g);
- return g
- },
- lH: function(c, d, f, g) {
- var h = new ge;
- h.td = d;
- h.loop = f;
- h.Cx = d.duration;
- if (f = je(this, c)) {
- for (; f.next;) f = f.next;
- f.next = h
- } else this.Yh[c] = h;
- 0 >= g && (g = f ? g + (f.Cx - fe(this.data, f.td, d)) : 0);
- h.wm = g;
- return h
- },
- Sda: function(c) {
- return c >= this.Yh.length ? s: this.Yh[c]
- }
- };
- function ie(c, d, f) {
- var g = je(c, d);
- if (g) {
- var h = g.Hu;
- g.Hu = s;
- g.Up != s && g.Up(d);
- c.Up != s && c.Up(d);
- f.HQ = fe(c.data, g.td, f.td);
- 0 < f.HQ && (f.zI = 0, f.Hu = h && 0.5 > g.zI / g.HQ ? h: g)
- }
- c.Yh[d] = f;
- f.Vp != s && f.Vp(d);
- c.Vp != s && c.Vp(d)
- }
- function je(c, d) {
- if (d < c.Yh.length) return c.Yh[d];
- for (; d >= c.Yh.length;) c.Yh.push(s);
- return s
- }
- function ke(c) {
- this.cxa = c
- }
- ke.prototype = {};
- function le(c, d, f) {
- var g = f.curve;
- if (g) if ("stepped" == g) c.hj.hj[6 * d] = -1;
- else if (g instanceof Array) {
- f = g[0];
- var h = g[1],
- k = g[2],
- n = g[3],
- p = 0.1 * 0.1,
- g = 0.1 * p,
- r = 3 * 0.1,
- v = 3 * p,
- p = 6 * p,
- y = 6 * g,
- z = 2 * -f + k,
- D = 2 * -h + n,
- k = 3 * (f - k) + 1,
- n = 3 * (h - n) + 1;
- d *= 6;
- c = c.hj.hj;
- c[d] = f * r + z * v + k * g;
- c[d + 1] = h * r + D * v + n * g;
- c[d + 2] = z * p + k * y;
- c[d + 3] = D * p + n * y;
- c[d + 4] = k * y;
- c[d + 5] = n * y
- }
- }
- function me(c, d) {
- 8 != c.length && e("Color hexidecimal length must be 8, recieved: " + c);
- return parseInt(c.substring(2 * d, 2 * d + 2), 16) / 255
- }
- function ne(c, d) {
- this.n6a = d;
- this.WEa = [];
- this.Lga = [];
- var f = new oe(c),
- g = [];
- g.length = 4;
- for (var h = s;;) {
- var k = pe(f);
- if (k == s) break;
- k = f.trim(k);
- if (0 == k.length) h = s;
- else if (h) {
- var n = new qe;
- n.name = k;
- n.page = h;
- n.rotate = "true" == re(f);
- se(f, g);
- var k = parseInt(g[0]),
- p = parseInt(g[1]);
- se(f, g);
- var r = parseInt(g[0]),
- v = parseInt(g[1]);
- n.xa = k / h.width;
- n.ea = p / h.height;
- n.rotate ? (n.T3 = (k + v) / h.width, n.a4 = (p + r) / h.height) : (n.T3 = (k + r) / h.width, n.a4 = (p + v) / h.height);
- n.x = k;
- n.y = p;
- n.width = Math.abs(r);
- n.height = Math.abs(v);
- 4 == se(f, g) && (n.KIa = [parseInt(g[0]), parseInt(g[1]), parseInt(g[2]), parseInt(g[3])], 4 == se(f, g) && (n.VEa = [parseInt(g[0]), parseInt(g[1]), parseInt(g[2]), parseInt(g[3])], se(f, g)));
- n.hga = parseInt(g[0]);
- n.gga = parseInt(g[1]);
- se(f, g);
- n.offsetX = parseInt(g[0]);
- n.offsetY = parseInt(g[1]);
- n.index = parseInt(re(f));
- this.Lga.push(n)
- } else h = new te,
- h.name = k,
- h.Nza = ue[re(f)],
- se(f, g),
- h.Qfa = ve[g[0]],
- h.Nfa = ve[g[1]],
- n = re(f),
- h.U3 = we,
- h.b4 = we,
- "x" == n ? h.U3 = xe: "y" == n ? h.b4 = xe: "xy" == n && (h.U3 = h.b4 = xe),
- d.load(h, k, this),
- this.WEa.push(h)
- }
- }
- ne.prototype = {};
- var ue = {
- wKa: 0,
- $La: 1,
- sMa: 2,
- RGB565: 3,
- YMa: 4,
- XMa: 5,
- ZMa: 6
- },
- ve = {
- BMa: 0,
- sv: 1,
- vMa: 2,
- zMa: 3,
- xMa: 4,
- yMa: 5,
- wMa: 6
- },
- we = 1,
- xe = 2;
- function te() {}
- te.prototype = {
- Nza: s,
- Qfa: s,
- Nfa: s,
- U3: s,
- b4: s,
- cy: s
- };
- function qe() {}
- qe.prototype = {
- page: s,
- x: 0,
- y: 0,
- xa: 0,
- ea: 0,
- T3: 0,
- a4: 0,
- hga: 0,
- gga: 0,
- index: 0,
- rotate: t,
- KIa: s,
- VEa: s
- };
- function oe(c) {
- this.Hfa = c.split(/\r\n|\r|\n/)
- }
- oe.prototype = {
- index: 0,
- trim: function(c) {
- return c.replace(/^\s+|\s+$/g, "")
- }
- };
- function se(c, d) {
- var f = pe(c),
- g = f.indexOf(":"); - 1 == g && e("Invalid line: " + f);
- for (var h = 0,
- g = g + 1; 3 > h; h++) {
- var k = f.indexOf(",", g);
- if ( - 1 == k) {
- 0 == h && e("Invalid line: " + f);
- break
- }
- d[h] = c.trim(f.substr(g, k - g));
- g = k + 1
- }
- d[h] = c.trim(f.substring(g));
- return h + 1
- }
- function re(c) {
- var d = pe(c),
- f = d.indexOf(":"); - 1 == f && e("Invalid line: " + d);
- return c.trim(d.substring(f + 1))
- }
- function pe(c) {
- return c.index >= c.Hfa.length ? s: c.Hfa[c.index++]
- }
- function ye(c) {
- this.$wa = c
- }
- ye.prototype = {};
- var Be = C.ha.extend({
- he: s,
- Iua: s,
- fu: 1,
- UL: t,
- TL: t,
- EN: t,
- cua: s,
- $Na: s,
- C: s,
- ctor: function() {
- C.ha.prototype.ctor.call(this);
- this.C = {
- src: C.Ic,
- ga: C.Hc
- }
- },
- j: function() {
- C.A.prototype.j.call(this);
- this.$d(q);
- this.C.src = C.ONE;
- this.C.ga = C.ONE_MINUS_SRC_ALPHA;
- C.L === C.la && this.mJ(C.ug.Xd(C.Co));
- this.Lu()
- },
- P3a: x("UL"),
- O3a: x("TL"),
- sIa: x("fu"),
- cQ: function(c, d, f) {
- var g, h, k, n;
- if ("string" == typeof c) {
- if ("string" == typeof d) {
- var p = C.M.xd(d);
- ze.aHa(d);
- h = new ne(p, ze)
- } else h = d;
- k = f || 1 / C.Q.Ul;
- var r = new ke(new ye(h));
- r.scale = k;
- for (var v = C.M.xd(c), y = new Vd, z = v.bones, D = 0, E = z.length; D < E; D++) {
- var F = z[D],
- G = s;
- F.parent && ((G = y.HH(F.parent)) || e("Parent bone not found: " + F.parent));
- var K = new Ed(F.name, G);
- K.length = (F.length || 0) * r.scale;
- K.x = (F.x || 0) * r.scale;
- K.y = (F.y || 0) * r.scale;
- K.rotation = F.rotation || 0;
- K.scaleX = F.scaleX || 1;
- K.scaleY = F.scaleY || 1;
- K.Rea = !F.inheritScale || "true" == F.inheritScale;
- K.Qea = !F.inheritRotation || "true" == F.inheritRotation;
- y.vd.push(K)
- }
- for (var O = v.slots,
- D = 0,
- E = O.length; D < E; D++) {
- var U = O[D]; (K = y.HH(U.bone)) || e("Slot bone not found: " + U.bone);
- var X = new Fd(U.name, K),
- N = U.color;
- N && (X.r = me(N, 0), X.g = me(N, 1), X.b = me(N, 2), X.a = me(N, 3));
- X.TZ = U.attachment;
- X.PZ = U.additive && "true" == U.additive;
- y.zf.push(X)
- }
- var Q = v.skins,
- S;
- for (S in Q) if (Q.hasOwnProperty(S)) {
- var M = Q[S],
- R = new Jd(S),
- $;
- for ($ in M) if (M.hasOwnProperty($)) {
- var sa = y.IH($),
- aa = M[$],
- ta;
- for (ta in aa) if (aa.hasOwnProperty(ta)) {
- var ma, ba = r,
- xa = ta,
- ca = aa[ta],
- xa = ca.name || xa,
- Ma = $d[ca.type || "region"],
- W = m;
- a: {
- switch (Ma) {
- case $d.vxa:
- W = new de(xa);
- break a;
- case $d.region:
- var pa;
- b:
- {
- for (var hb = ba.cxa.$wa.Lga,
- Na = 0,
- Gb = hb.length; Na < Gb; Na++) if (hb[Na].name == xa) {
- pa = hb[Na];
- break b
- }
- pa = s
- }
- pa || e("Region not found in atlas: " + xa + " (" + Ma + ")");
- var Aa = new ae(xa);
- Aa.cy = pa;
- var fb = pa.xa,
- gb = pa.ea,
- Ka = pa.T3,
- Ab = pa.a4,
- va = Aa.fq;
- pa.rotate ? (va[2] = fb, va[3] = Ab, va[4] = fb, va[5] = gb, va[6] = Ka, va[7] = gb, va[0] = Ka, va[1] = Ab) : (va[0] = fb, va[1] = Ab, va[2] = fb, va[3] = gb, va[4] = Ka, va[5] = gb, va[6] = Ka, va[7] = Ab);
- Aa.Gga = pa.offsetX;
- Aa.Hga = pa.offsetY;
- Aa.Kga = pa.width;
- Aa.Fga = pa.height;
- Aa.Jga = pa.hga;
- Aa.Iga = pa.gga;
- W = Aa;
- break a
- }
- e("Unknown attachment type: " + Ma)
- }
- if (Ma == $d.region) {
- W.x = (ca.x || 0) * ba.scale;
- W.y = (ca.y || 0) * ba.scale;
- W.scaleX = ca.scaleX || 1;
- W.scaleY = ca.scaleY || 1;
- W.rotation = ca.rotation || 0;
- W.width = (ca.width || 32) * ba.scale;
- W.height = (ca.height || 32) * ba.scale;
- var Oc = W.width / W.Jga * W.scaleX,
- Pc = W.height / W.Iga * W.scaleY,
- cc = -W.width / 2 * W.scaleX + W.Gga * Oc,
- dc = -W.height / 2 * W.scaleY + W.Hga * Pc,
- Qc = cc + W.Kga * Oc,
- Rc = dc + W.Fga * Pc,
- Sc = W.rotation * Math.PI / 180,
- Bb = Math.cos(Sc),
- Cb = Math.sin(Sc),
- Tc = cc * Bb + W.x,
- Uc = cc * Cb,
- Vc = dc * Bb + W.y,
- Wc = dc * Cb,
- Xc = Qc * Bb + W.x,
- Yc = Qc * Cb,
- Zc = Rc * Bb + W.y,
- $c = Rc * Cb,
- Ra = W.offset;
- Ra[0] = Tc - Wc;
- Ra[1] = Vc + Uc;
- Ra[2] = Tc - $c;
- Ra[3] = Zc + Uc;
- Ra[4] = Xc - $c;
- Ra[5] = Zc + Yc;
- Ra[6] = Xc - Wc;
- Ra[7] = Vc + Yc
- } else if (Ma == $d.i_) for (var ad = ca.vertices,
- hc = 0,
- ce = ad.length; hc < ce; hc++) W.m.push(ad[hc] * ba.scale);
- ma = W;
- ma != s && (R.XO[sa + ":" + ta] = ma)
- }
- }
- y.Iia.push(R);
- "default" == R.name && (y.K_ = R)
- }
- var ec = v.events,
- Db;
- for (Db in ec) if (ec.hasOwnProperty(Db)) {
- var fc = ec[Db],
- Eb = new Yd(Db);
- Eb.jQ = fc["int"] || 0;
- Eb.uP = fc["float"] || 0;
- Eb.stringValue = fc.string || s;
- y.zm.push(Eb)
- }
- var gc = v.animations,
- Fb;
- for (Fb in gc) if (gc.hasOwnProperty(Fb)) {
- var Oe = r,
- Pe = Fb,
- Pb = gc[Fb],
- mb = y,
- bb = [],
- Fa = 0,
- xc = Pb.bones,
- nb = m;
- for (nb in xc) if (xc.hasOwnProperty(nb)) {
- var yc = mb.xda(nb); - 1 == yc && e("Bone not found: " + nb);
- var zc = xc[nb],
- Ba;
- for (Ba in zc) if (zc.hasOwnProperty(Ba)) {
- var Ca = zc[Ba];
- if ("rotate" == Ba) {
- var Z = new Od(Ca.length);
- Z.qx = yc;
- for (var ua = 0,
- ia = 0,
- Ia = Ca.length; ia < Ia; ia++) {
- var ya = Ca[ia];
- Z.Om(ua, ya.time, ya.angle);
- le(Z, ua, ya);
- ua++
- }
- bb.push(Z);
- Fa = Math.max(Fa, Z.frames[2 * Z.Bm() - 2])
- } else if ("translate" == Ba || "scale" == Ba) {
- var Ac = 1;
- "scale" == Ba ? Z = new Qd(Ca.length) : (Z = new Pd(Ca.length), Ac = Oe.scale);
- Z.qx = yc;
- ia = ua = 0;
- for (Ia = Ca.length; ia < Ia; ia++) ya = Ca[ia],
- Z.Om(ua, ya.time, (ya.x || 0) * Ac, (ya.y || 0) * Ac),
- le(Z, ua, ya),
- ua++;
- bb.push(Z);
- Fa = Math.max(Fa, Z.frames[3 * Z.Bm() - 3])
- } else e("Invalid timeline type for a bone: " + Ba + " (" + nb + ")")
- }
- }
- var Bc = Pb.slots,
- ub = m;
- for (ub in Bc) if (Bc.hasOwnProperty(ub)) {
- var Cc = Bc[ub],
- vb = mb.IH(ub);
- for (Ba in Cc) if (Cc.hasOwnProperty(Ba)) if (Ca = Cc[Ba], "color" == Ba) {
- Z = new Rd(Ca.length);
- Z.YC = vb;
- ia = ua = 0;
- for (Ia = Ca.length; ia < Ia; ia++) {
- var ya = Ca[ia],
- Qb = ya.color,
- Qe = me(Qb, 0),
- Re = me(Qb, 1),
- Se = me(Qb, 2),
- Te = me(Qb, 3);
- Z.Om(ua, ya.time, Qe, Re, Se, Te);
- le(Z, ua, ya);
- ua++
- }
- bb.push(Z);
- Fa = Math.max(Fa, Z.frames[5 * Z.Bm() - 5])
- } else if ("attachment" == Ba) {
- Z = new Sd(Ca.length);
- Z.YC = vb;
- ia = ua = 0;
- for (Ia = Ca.length; ia < Ia; ia++) ya = Ca[ia],
- Z.Om(ua++, ya.time, ya.name);
- bb.push(Z);
- Fa = Math.max(Fa, Z.frames[Z.Bm() - 1])
- } else e("Invalid timeline type for a slot: " + Ba + " (" + ub + ")")
- }
- var Rb = Pb.events;
- if (Rb) {
- Z = new Td(Rb.length);
- ia = ua = 0;
- for (Ia = Rb.length; ia < Ia; ia++) {
- var Qa = Rb[ia],
- cb;
- a: {
- for (var Dc = mb.zm,
- Sb = 0,
- Ue = Dc.length; Sb < Ue; Sb++) if (Dc[Sb].name == Qa.name) {
- cb = Dc[Sb];
- break a
- }
- cb = s
- }
- cb || e("Event not found: " + Qa.name);
- var Tb = new Zd(cb);
- Tb.jQ = Qa.hasOwnProperty("int") ? Qa["int"] : cb.jQ;
- Tb.uP = Qa.hasOwnProperty("float") ? Qa["float"] : cb.uP;
- Tb.stringValue = Qa.hasOwnProperty("string") ? Qa.string: cb.stringValue;
- Z.Om(ua++, Qa.time, Tb)
- }
- bb.push(Z);
- Fa = Math.max(Fa, Z.frames[Z.Bm() - 1])
- }
- var Ub = Pb.draworder;
- if (Ub) {
- for (var Z = new Ud(Ub.length), wb = mb.zf.length, ia = ua = 0, Ia = Ub.length; ia < Ia; ia++) {
- var Ec = Ub[ia],
- db = s;
- if (Ec.offsets) {
- db = [];
- db.length = wb;
- for (var Ga = wb - 1; 0 <= Ga; Ga--) db[Ga] = -1;
- var Fc = Ec.offsets,
- Vb = [];
- Vb.length = wb - Fc.length;
- for (var ob = 0,
- Gc = 0,
- Ga = 0,
- Ve = Fc.length; Ga < Ve; Ga++) {
- var Hc = Fc[Ga],
- vb = mb.IH(Hc.slot);
- for ( - 1 == vb && e("Slot not found: " + Hc.slot); ob != vb;) Vb[Gc++] = ob++;
- db[ob + Hc.offset] = ob++
- }
- for (; ob < wb;) Vb[Gc++] = ob++;
- for (Ga = wb - 1; 0 <= Ga; Ga--) - 1 == db[Ga] && (db[Ga] = Vb[--Gc])
- }
- Z.Om(ua++, Ec.time, db)
- }
- bb.push(Z);
- Fa = Math.max(Fa, Z.frames[Z.Bm() - 1])
- }
- mb.xB.push(new Kd(Pe, bb, Fa))
- }
- g = y;
- n = q
- } else g = c,
- n = d;
- this.mIa(g, n);
- this.j()
- },
- i_: function() {
- for (var c = C.pv,
- d = C.pv,
- f = C.O5,
- g = C.O5,
- h = this.ia,
- k = this.pa,
- n = [], p = this.he.zf, r = 0, v = p.length; r < v; ++r) {
- var y = p[r];
- if (y.Th && 0 == y.Th.type) {
- var z = y.wl.x,
- D = y.wl.y,
- E = y.ej,
- F = n,
- y = y.Th.offset,
- z = z + E.Rm,
- D = D + E.Sm;
- F[0] = y[0] * E.Im + y[1] * E.Rp + z;
- F[1] = y[0] * E.Jm + y[1] * E.m11 + D;
- F[2] = y[2] * E.Im + y[3] * E.Rp + z;
- F[3] = y[2] * E.Jm + y[3] * E.m11 + D;
- F[4] = y[4] * E.Im + y[5] * E.Rp + z;
- F[5] = y[4] * E.Jm + y[5] * E.m11 + D;
- F[6] = y[6] * E.Im + y[7] * E.Rp + z;
- F[7] = y[6] * E.Jm + y[7] * E.m11 + D;
- c = Math.min(c, n[0] * h, n[6] * h, n[2] * h, n[4] * h);
- d = Math.min(d, n[1] * k, n[7] * k, n[3] * k, n[5] * k);
- f = Math.max(f, n[0] * h, n[6] * h, n[2] * h, n[4] * h);
- g = Math.max(g, n[1] * k, n[7] * k, n[3] * k, n[5] * k)
- }
- }
- h = this.Ld();
- return C.rect(h.x + c, h.y + d, f - c, g - d)
- },
- lD: function() {
- this.he.lD()
- },
- Zu: function() {
- this.he.Zu()
- },
- F2: function() {
- this.he.F2()
- },
- m3: function() {
- this.he.m3()
- },
- HH: function(c) {
- return this.he.HH(c)
- },
- h0: function(c) {
- return this.he.h0(c)
- },
- ria: function(c) {
- var d = this.he,
- f;
- a: {
- f = d.data.Iia;
- for (var g = 0,
- h = f.length; g < h; g++) if (f[g].name == c) {
- f = f[g];
- break a
- }
- f = s
- }
- f || e("Skin not found: " + c);
- d.ria(f)
- },
- JH: function(c, d) {
- return Id(this.he, this.he.data.IH(c), d)
- },
- hy: function(c, d) {
- return this.he.hy(c, d)
- },
- $d: x("EN"),
- qg: A("EN"),
- mIa: function(c, d) {
- this.he = new Xd(c);
- this.Iua = 0 == this.he.vd.length ? s: this.he.vd[0];
- this.cua = d;
- if (C.L === C.cb) for (var f = this.he,
- g, h, k = 0,
- n = f.vu.length; k < n; k++) {
- var p = f.vu[k];
- g = p.Th;
- g instanceof ae && (g = g.cy, h = C.rect(g.x, g.y, g.width, g.height), g = C.u.create(g.page.da, h, g.rotate), this.q(g, -1), p.dda = g)
- }
- },
- VH: function(c) {
- return c.cy.page.cy
- },
- ek: A("C"),
- Yd: x("C"),
- update: function(c) {
- this.he.update(c);
- if (C.L === C.cb) {
- this.Xa();
- this.he.lD();
- c = this.he.vu;
- for (var d = 0,
- f = c.length; d < f; d++) {
- var g = c[d],
- h = g.Th,
- k = g.dda;
- if (h instanceof ae) {
- if (!k) {
- var n = h.cy,
- p = C.rect(n.x, n.y, n.width, n.height),
- n = C.u.create(n.page.da, p, n.rotate);
- this.q(n, -1);
- g.dda = n
- }
- k.va(q);
- k.Yd(C.Ic, g.data.PZ ? C.ONE: C.Hc);
- n = g.ej;
- k.p(n.Rm + h.x * n.Im + h.y * n.Rp, n.Sm + h.x * n.Jm + h.y * n.m11);
- k.Za(n.Dy, n.Ey);
- k.th( - (g.ej.LJ + h.rotation))
- } else k && k.va(t)
- }
- }
- },
- ka: s,
- gn: function() {
- C.BC(this);
- var c = this.Xa(),
- d = this.he;
- d.r = c.r / 255;
- d.g = c.g / 255;
- d.b = c.b / 255;
- d.a = this.rb() / 255;
- this.EN && (d.r *= d.a, d.g *= d.a, d.b *= d.a);
- var f, g, h, k, n, p = new C.Uc,
- r = this.C,
- c = 0;
- for (n = d.zf.length; c < n; c++) if (k = d.vu[c], k.Th && 0 == k.Th.type) {
- h = k.Th;
- var v = this.VH(h);
- k.data.PZ != f ? (g && (g.KB(), g.NC()), f = !f, C.Gm(r.src, f ? C.ONE: r.ga)) : v != g && g && (g.KB(), g.NC());
- g = v;
- v = g.Sb;
- if (g.Yf == v && (g.KB(), g.NC(), !g.eR(2 * g.Yf))) return;
- Ae(h, k, p, this.EN);
- g.HJ(p, v)
- }
- g && (g.KB(), g.NC());
- f = C.Df;
- if (this.UL) {
- f.tj(0, 0, 255, 255);
- f.Su(1);
- c = 0;
- for (n = d.zf.length; c < n; c++) k = d.vu[c],
- k.Th && 0 == k.Th.type && (h = k.Th, p = new C.Uc, Ae(h, k, p), g = [], g.push(C.d(p.T.m.x, p.T.m.y)), g.push(C.d(p.Y.m.x, p.Y.m.y)), g.push(C.d(p.V.m.x, p.V.m.y)), g.push(C.d(p.X.m.x, p.X.m.y)), f.Of(g, 4, q))
- }
- if (this.TL) {
- f.Su(2);
- f.tj(255, 0, 0, 255);
- c = 0;
- for (n = d.vd.length; c < n; c++) p = d.vd[c],
- g = p.data.length * p.Im + p.Rm,
- h = p.data.length * p.Jm + p.Sm,
- f.Tn(C.d(p.Rm, p.Sm), C.d(g, h));
- f.Y2(4);
- f.tj(0, 0, 255, 255);
- c = 0;
- for (n = d.vd.length; c < n; c++) p = d.vd[c],
- f.S_(C.d(p.Rm, p.Sm)),
- 0 == c && f.tj(0, 255, 0, 255)
- }
- },
- Qq: function() {
- if (this.UL || this.TL) {
- var c = this.he,
- d, f, g, h, k = C.Df;
- if (this.UL) {
- k.tj(0, 0, 255, 255);
- k.Su(1);
- var n = [];
- g = 0;
- for (h = c.zf.length; g < h; g++) if (f = c.vu[g], f.Th && 0 == f.Th.type) {
- d = f.Th;
- var p = n;
- if (p) {
- var r = {};
- be(d, f.wl.x, f.wl.y, f.ej, r);
- p.length = 0;
- p.push(C.d(r[0], r[1]));
- p.push(C.d(r[6], r[7]));
- p.push(C.d(r[4], r[5]));
- p.push(C.d(r[2], r[3]))
- }
- k.Of(n, 4, q)
- }
- }
- if (this.TL) {
- k.Su(2);
- k.tj(255, 0, 0, 255);
- g = 0;
- for (h = c.vd.length; g < h; g++) d = c.vd[g],
- f = d.data.length * d.Im + d.Rm,
- n = d.data.length * d.Jm + d.Sm,
- k.Tn(C.d(d.Rm, d.Sm), C.d(f, n));
- k.Y2(4);
- k.tj(0, 0, 255, 255);
- g = 0;
- for (h = c.vd.length; g < h; g++) d = c.vd[g],
- k.S_(C.d(d.Rm, d.Sm)),
- 0 === g && k.tj(0, 255, 0, 255)
- }
- }
- }
- });
- Be.prototype.ka = C.L === C.la ? Be.prototype.gn: Be.prototype.Qq;
- Be.Zxa = function(c, d) {
- var f = new Be;
- f.cQ.apply(f, arguments);
- return f
- };
- Be.create = function(c, d, f) {
- var g = new Be;
- g.cQ.apply(g, arguments);
- return g
- };
- var ze = {
- Kia: s,
- aHa: x("Kia"),
- load: function(c, d) {
- var f = C.path.join(C.path.dirname(this.Kia), d);
- C.L === C.la ? (f = C.kb.sd(f), c.cy = C.uq.create(f, 128), c.width = f.w0(), c.height = f.v0()) : c.da = C.kb.sd(f)
- },
- A6a: u()
- };
- function Ae(c, d, f, g) {
- var h = {};
- be(c, d.wl.x, d.wl.y, d.ej, h);
- var k = 255 * d.wl.r * d.r,
- n = 255 * d.wl.g * d.g,
- p = 255 * d.wl.b * d.b;
- d = d.wl.a * d.a;
- g && (k *= d, n *= d, p *= d);
- f.T.F.r = f.X.F.r = f.V.F.r = f.Y.F.r = k;
- f.T.F.g = f.X.F.g = f.V.F.g = f.Y.F.g = n;
- f.T.F.b = f.X.F.b = f.V.F.b = f.Y.F.b = p;
- f.T.F.a = f.X.F.a = f.V.F.a = f.Y.F.a = 255 * d;
- f.T.m.x = h[0];
- f.T.m.y = h[1];
- f.X.m.x = h[2];
- f.X.m.y = h[3];
- f.V.m.x = h[4];
- f.V.m.y = h[5];
- f.Y.m.x = h[6];
- f.Y.m.y = h[7];
- f.T.v.xa = c.fq[0];
- f.T.v.ea = c.fq[1];
- f.X.v.xa = c.fq[2];
- f.X.v.ea = c.fq[3];
- f.V.v.xa = c.fq[4];
- f.V.v.ea = c.fq[5];
- f.Y.v.xa = c.fq[6];
- f.Y.v.ea = c.fq[7]
- }
- var Ce = Be.extend({
- zb: s,
- Xc: s,
- Xf: s,
- j: function() {
- this._super();
- this.ZGa(new ee(this.he.data))
- },
- ZGa: function(c) {
- c = new he(c);
- c.Vp = this.Pta.bind(this);
- c.DC = this.Mta.bind(this);
- c.Up = this.Nta.bind(this);
- c.EC = this.Ota.bind(this);
- this.zb = c
- },
- Pha: function(c, d, f) {
- var g = this.zb.data,
- h = Wd(g.Hia, c);
- h || e("Animation not found: " + c); (c = Wd(g.Hia, d)) || e("Animation not found: " + d);
- g.Pha(h, c, f)
- },
- o3a: function(c, d) {
- this.Xc = c;
- this.Xf = d
- },
- gy: function(c, d, f) {
- var g = Wd(this.he.data, d);
- return ! g ? (C.log("Spine: Animation not found: " + d), 0) : this.zb.gy(c, g, f)
- },
- lH: function(c, d, f, g) {
- var h = Wd(this.he.data, d);
- return ! h ? (C.log("Spine: Animation not found:" + d), 0) : this.zb.lH(c, h, f, g)
- },
- Sda: function(c) {
- return this.zb.Sda(c)
- },
- Qca: function() {
- this.zb.Qca()
- },
- fP: function(c) {
- this.zb.fP(c)
- },
- update: function(c) {
- this._super(c);
- c *= this.fu;
- this.zb.update(c);
- this.zb.apply(this.he);
- this.he.lD()
- },
- Pta: function(c) {
- this.kL(c, 0, s, 0)
- },
- Nta: function(c) {
- this.kL(c, 1, s, 0)
- },
- Mta: function(c, d) {
- this.kL(c, 2, s, d)
- },
- Ota: function(c, d) {
- this.kL(c, 3, d, 0)
- },
- kL: function(c, d, f, g) {
- this.Xc && this.Xf && this.Xf.call(this.Xc, this, c, d, f, g)
- }
- });
- Ce.Zxa = function(c) {
- var d = new Ce;
- d.cQ.apply(d, arguments);
- return d
- };
- Ce.create = function(c, d, f) {
- var g = new Ce;
- g.cQ.apply(g, arguments);
- return g
- };
- C.i1a = {
- jp: {},
- w1a: function(c) {
- if (c instanceof C.A) {
- var d = c.constructor.prototype.YU;
- if (!d) {
- var f = {
- writable: q,
- enumerable: t,
- configurable: q
- };
- f.value = ha.eea();
- Object.defineProperty(c.constructor.prototype, "__pid", f)
- }
- this.jp[d] || (this.jp[d] = []);
- c.C6a();
- this.jp[d].push(c)
- }
- },
- BCa: function(c) {
- c = this.jp[c.prototype.YU];
- return ! c || 0 == c.length ? t: q
- },
- j2a: function(c) {
- var d = c.constructor.prototype.YU;
- if (d && (d = this.jp[d])) for (var f = 0; f < d.length; f++) c === d[f] && (c.rh(), d.splice(f, 1))
- },
- LUa: function(c) {
- if (this.BCa(c)) {
- var d = this.jp[c.prototype.YU],
- f = Array.prototype.slice.call(arguments);
- f.shift();
- d = d.pop();
- d.gR.apply(d, f);
- return d
- }
- },
- MRa: function() {
- for (var c in this.jp) for (var d = 0; d < this.jp[c].length; d++) this.jp[c][d].rh();
- this.jp = {}
- }
- };
- var I = {
- Nwa: "res/anglebg.png",
- Mwa: "res/angle.png",
- DQa: "res/box.png",
- t_: "res/char1.png",
- ofa: "res/kiss1.png",
- LDa: "res/kiss2.png",
- xH: "res/closebtn.png",
- Rca: "res/cloud.png",
- Ffa: "res/lastword.png",
- Dda: "res/floor.png",
- IXa: "res/height.png",
- R0: "res/morebtn2.png",
- FCa: "res/help.png",
- LXa: "res/highscorebg.png",
- KXa: "res/highscore.png",
- FDa: "res/jiesuan.png",
- Mfa: "res/logo.png",
- b0a: "res/m.png",
- Z1: "res/startbtn.png",
- vga: "res/powerdi.png",
- uga: "res/power.png",
- Lia: "res/speedline.png",
- e4: "res/again.png",
- f4: "res/morebtn.png",
- Bxa: "res/char.plist",
- Cxa: "res/char.png",
- XR: "res/skycity.png",
- Gfa: "res/light.png",
- Jca: "res/boom.wav",
- dP: "res/choose.wav",
- tda: "res/fall.wav",
- Fda: "res/fly.wav",
- vja: "res/kiss.wav",
- Dca: "res/arrow.png",
- Jea: "res/hand.png",
- z1: "res/lips.png"
- },
- De = [I.Mfa, I.XR, I.t_, I.Z1, I.R0, I.xH],
- Ee = [I.XR, I.t_, I.Rca, I.Bxa, I.Cxa, I.Lia, I.Ffa, I.e4, I.f4, I.vga, I.uga, I.Gfa, I.ofa, I.LDa, I.dP, I.tda, I.vja, I.Jca, I.Fda, I.Dca, I.Jea, I.z1];
- var Fe = 640,
- Ge = 960,
- Y = 1,
- He = 1,
- Ie = "\u4e07\u4e07\u6ca1\u60f3\u5230\uff0c\u6211\u6454\u6b7b\u4e86 \u64e6\u64e6\uff0c\u6211\u5c45\u7136\u6b7b\u4e86 \u6211\u60f3\u518d\u6d3b500\u5e74 \u4e8c\u5341\u5e74\u540e\u53c8\u662f\u6761\u597d\u866b \u751f\u7684\u4f1f\u5927\uff0c\u6b7b\u7684\u60e8\u70c8 \u7b56\u5212\uff0c\u6211\u4eec\u6765\u8c08\u8c08\u4eba\u751f".split(" "),
- Je = [125, 4500, 12E3, 15E3, 18E3, 21E3, 24E3, 27E3, 3E4, 33E3, 39E3, 41E3, 43E3, 45E3, 47E3, 49E3, 50816],
- Ke = "\u4f60\u9017\u6211\u73a9\u5462\uff1f \u5c31\u8fd9\u6210\u7ee9\uff0c\u6d17\u6d17\u7761\u5427 \u8bf4\u51fa\u53bb\u90fd\u662f\u6cea\uff01 \u7ee7\u7eed\u52aa\u529b\u5427\uff01 \u9e1f\u98de\u5f97\u90fd\u6bd4\u4f60\u9ad8\uff01 \u4f60\u6bd4\u9e1f\u98de\u5f97\u9ad8\u4e86 \u98de\u884c\u59ff\u52bf\u4e0d\u5bf9\uff0c\u91cd\u98de \u98de\u884c\u59ff\u52bf\u4e0d\u9519\u54e6 \u6e10\u5165\u4f73\u5883 \u6709\u70b9\u5b9e\u529b \u8d85\u8d76\u5927\u90e8\u5206\u4eba \u7ed9\u4f60\u70b9\u8d5e \u518d\u6765\u4e00\u6b21 \u53ef\u4ee5\u5f00\u8bfe\u6559\u98de\u4e86 \u5f00\u6302\u4e86\u5427\uff01 \u79bb\u795e\u53ea\u6709\u4e00\u6b65 \u819c\u62dc\u5927\u795e\u554a\uff01".split(" "),
- Le = [0, 2, 5, 7, 10, 13, 16, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39],
- Me = "\u4f60\u662f\u7334\u5b50\u6d3e\u6765\u7684\u9017\u6bd4\u5417\uff1f;\u5c0f\u660e\u7ad9\u8d77\u6765\uff01;\u4f1a\u98de\u7684\u4e0d\u4e00\u5b9a\u662f\u8d85\u4eba\uff0c\u8fd8\u6709\u53ef\u80fd\u662f\u9e1f\u4eba;zuo\u6bd4\u5012\u602a\u6b7b\u5f97\u5feb;\u6218\u4e94\u661f\u7684\u6e23\u6e23;\u653e\u5b66\u522b\u8d70\uff0c\u300a\u65b0\u795e\u66f2\u300b\u548c\u4f60\u5355\u6311;\u5206\u6570\u592a\u4f4e\uff0c\u6012\u7838\u624b\u673a\u5427\uff01;\u4e8c\u5e08\u5144\uff0c\u4f60\u98de\u7684\u6bd4\u5927\u5e08\u5144\u90fd\u9ad8;\u8001\u6e7f\uff0c\u4e0dgelivable\u5440;\u4f4e\u5206\u515a\uff0c\u54ed\u6655\u5728\u5395\u6240;\u6218\u4e94\u6e23\uff0c\u5b8c\u8d25\u65b0\u795e\u66f2\u5e7f\u573a\u821edama;\u8981\u8ba9\u6240\u6709\u4eba\u77e5\u9053\uff0c\u65b0\u795e\u66f2\u88ab\u4f60\u627f\u5305\u4e86;\u65b0\u795e\u66f2\u73a9\u5f97\u8fd9\u4e48\u597d\u4e00\u5b9a\u662f\u9e1f\u4e0d\u62c9\u5c4e\u5927\u738b;\u9e1f\u4eba\u7ec8\u4e00\u6b7b\uff0c\u6216\u91cd\u4e8e\u9e3f\u6bdb\u6216\u91cd\u4e8e\u5176\u4ed6\u6bdb;\u98de\u7684\u597d\u9ad8\uff0c\u4f60\u7684\u80a5\u7682\u6389\u4e86;\u5438\u4e00\u53e3\u96fe\u973e\uff0c\u91cd\u5934\u518d\u6765;\u836f\u4e0d\u80fd\u505c;\u81ea\u4ece\u5403\u4e86\u65b0\u795e\u66f2\u7075\u836f\uff0c\u7cbe\u795e\u75c5\u8d8a\u6765\u8d8a\u597d;\u60f3\u8d77\u5728\u5929\u7a7a\u4e0b\u98de\u884c\uff0c\u90a3\u662f\u6211\u901d\u53bb\u7684\u9752\u6625;\u98a4\u6296\u5427\uff0c\u4eba\u7c7b;\u5206\u4f4e\u966a\u4f60\u4e1c\u5c71\u518d\u8d77\uff1b\u5206\u9ad8\u7838\u70c2\u4f60\u624b\u673a;\u65b0\u795e\u66f2\u53cb\u60c5\u63d0\u793a\uff1a\u5929\u53f0\u5df2\u6ee1\uff0c\u8bf7\u5230\u6cb3\u8fb9;No zuo no die;\u5f85\u4f60\u957f\u53d1\u53ca\u8170\uff0c\u51e4\u59d0\u5ac1\u4f60\u53ef\u597d\uff1f;\u6253\u8d25\u4f60\u7684\u4e0d\u662f\u5929\u771f\uff0c\u662f\u6ca1\u7535;\u770b\uff0c\u5929\u4e0a\u6709\u9e1f\u4eba;\u4e14\u98de\u4e14\u73cd\u60dc;\u4e09\u4ef6\u4e8b\u62db\u4eba\u6068\uff0c\u5206\u9ad8\uff0c\u5904\u5973\u5ea7\uff0c\u6ca1\u73a9\u65b0\u795e\u66f2;\u5931\u8282\u4e8b\u5c0f\uff0c\u6454\u6b7b\u4e8b\u5927;\u6012\u4e0b\u65b0\u795e\u66f2\uff0c\u53ef\u5f97\u6ee1\u5206;\u6211\u52d2\u4e2a\u64e6\uff0c\u8fd9\u5206\u6570\u633a\u5e26\u611f\u5440;\u6709\u7fc5\u8180\u7684\u4e0d\u4e00\u5b9a\u662f\u5929\u4f7f\uff0c\u4e5f\u6709\u53ef\u80fd\u662f\u9e1f\u4eba;\u54e5\u98de\u7684\u7684\u4e0d\u662f\u65b0\u795e\u66f2\u5929\u7a7a\u4e4b\u57ce\uff0c\u662f\u9017\u6bd4;\u597d\u9ad8\u7684\u5206\uff0c\u597d\u5389\u5bb3\u601d\u5bc6\u8fbe;\u98de\u518d\u9ad8\uff0c\u4f60\u4e5f\u4e0a\u4e0d\u4e86\u5934\u6761;\u597d\u9ad8\u7684\u5206\u6570 \u67e5\u6c34\u8868\uff0c\u8bf7\u5f00\u95e8;\u5173\u516c\u6218\u79e6\u743c\uff0czuo\u6bd4\u6218dou\u6bd4;\u4f60\u6709\u672c\u4e8b\u73a9\u9ad8\u5206\u4eba \u4f60\u6709\u672c\u4e8b\u5f00\u95e8\u5440;\u597d\u9ad8\u7684\u5206\uff0c\u4f60\u8fc7\u6765 \u6211\u4fdd\u8bc1\u4e0d\u6253\u6b7b\u4f60\uff01".split(";");
- var Ne = C.qe.extend({
- AA: s,
- j: function() {
- if (this._super()) {
- winSize = C.Q.aa;
- var c = C.gd.create(C.color(0, 0, 0, 230), winSize.width, winSize.height);
- this.q(c, 100);
- var d = C.u.create(I.Dca);
- d.x = winSize.width - 5;
- d.y = winSize.height;
- d.anchorX = 1;
- d.anchorY = 1;
- d.scale = 0.8;
- c.q(d, 2);
- d = C.fa.create("请点击右上角菜单\n \n分享给小伙伴哦~", "Arial", 16, C.size(200, 260), C.Fs);
- d.dj({
- x: winSize.width / 2,
- y: 160,
- anchorX: 0.5,
- anchorY: 0.5,
- fillStyle: C.color(255, 255, 255, 255)
- });
- c.q(d, 10);
- this.AA = C.Oa.create({
- event: C.Oa.Gs,
- yy: q,
- nc: B(q),
- cd: function(c, d) {
- d.Cf.getParent().Lm(q)
- }
- });
- C.Ka.addListener(this.AA, c);
- return q
- }
- return t
- },
- Na: function() {
- C.Ka.removeListener(this.AA);
- this._super()
- },
- B0a: function() {
- this.Lm(q)
- }
- });
- Ne.create = function() {
- var c = new Ne;
- return c && c.j() ? c: s
- };
- var Ze = C.qe.extend({
- Ua: s,
- xL: s,
- Hf: 0,
- ce: [],
- zb: 4,
- zq: 6,
- or: 0,
- Ss: s,
- Ts: s,
- gX: q,
- Xj: s,
- pr: s,
- fX: q,
- lf: 0,
- zt: s,
- Hf: 0,
- Kba: 0,
- Gn: 0,
- tp: s,
- Zv: s,
- ur: s,
- Yz: 0,
- Bt: s,
- ZOa: s,
- sp: s,
- Kr: s,
- Ir: s,
- Dba: s,
- Uq: s,
- aPa: s,
- APa: 2,
- Wk: s,
- j: function() {
- var c = t;
- this._super() && (winSize = C.Q.aa, C.Fe.Lr("res/char.plist", "res/char.png"), this.xL = C.gd.create(C.color(255, 255, 255, 255), winSize.width, winSize.height), this.xL.anchorX = 0, this.xL.anchorY = 0, this.q(this.xL, 0, 1), this.tp = C.u.create(I.XR), this.tp.x = winSize.width / 2, this.tp.y = winSize.height - 45 * He, this.tp.anchorY = 1, this.tp.scale = 0.4 * Y, this.q(this.tp, 2), c = C.gd.create(C.color(0, 0, 0, 255), 5, winSize.height), c.anchorX = 0, c.anchorY = 0, this.q(c, 1), c = C.gd.create(C.color(0, 0, 0, 255), 5, winSize.height), c.anchorX = 1, c.anchorY = 0, c.x = winSize.width - 5, this.q(c, 1), this.Ua = C.u.create(C.Fe.nh("char1.png")), this.Ua.anchorY = 0, this.Ua.x = winSize.width / 2, this.Ua.y = -2, this.Ua.scale = 0.8 * Y, this.Ua.rotation = -18, this.q(this.Ua, 2, 8), this.ur = C.u.create(I.Lia), this.ur.anchorY = 1, this.ur.x = this.Ua.x + 4 * Y, this.ur.y = -1, this.ur.scale = 0.8 * Y, this.q(this.ur, 2), this.Zv = C.u.create(I.Dda), this.Zv.anchorX = 0, this.Zv.y = 5, this.Zv.scale = Y, this.q(this.Zv, 0, 2), this.KCa(), this.OCa(), this.LCa(), this.MCa(), "mouse" in C.Sc.uH && C.Ka.addListener({
- event: C.Oa.tv,
- JI: function(c) {
- c.AV == C.$e.eka && c.Cf.xga(c)
- }
- },
- this), C.Sc.uH.hasOwnProperty("touches") && C.Ka.addListener({
- m1a: -1,
- event: C.Oa.TK,
- HC: function(c, f) {
- f.Cf.xga(c[0])
- }
- },
- this), this.rg(this.gja, 0.1), c = q);
- return c
- },
- xga: function() {
- 4 === this.zb ? (this.Zh(this.gja), this.zb = 5, this.Xj.visible = q, this.pr.visible = q, this.Uq.x = winSize.width - 84 * Y, this.Uq.flippedX = q, this.rg(this.kja, 0.01)) : 5 === this.zb && (this.or = this.Xj.wn, this.Uq.visible = t, this.zb = 1, this.Zh(this.kja), this.CEa())
- },
- KCa: function() {
- for (var c = 0; 5 > c; ++c) this.ce[c] = C.u.create(I.Rca),
- this.ce[c].x = -100 * Y,
- this.ce[c].y = -100 * Y,
- this.ce[c].scale = Y,
- this.q(this.ce[c], 0, 100 + c);
- this.ce[0].x = 120 * Y;
- this.ce[0].y = winSize.height - 40 / He;
- this.ce[1].x = winSize.width - 45 * Y;
- this.ce[1].y = winSize.height - 120 * He
- },
- OCa: function() {
- var c = C.u.create("res/height.png");
- c.anchorX = 0;
- c.x = 10 * Y;
- c.y = winSize.height - 30 * He;
- c.scale = 1.5 * Y;
- this.q(c, 2);
- this.zt = C.Gl.create("::::0", "res/num.png", 32, 34, "0");
- this.q(this.zt, 2, 101);
- this.zt.anchorX = 0;
- this.zt.x = 135 * Y;
- this.zt.y = winSize.height - 62 * He;
- this.zt.scale = 1.2 * Y;
- c = C.u.create("res/m.png");
- c.anchorX = 0;
- c.x = 328 * Y;
- c.y = winSize.height - 30 * He;
- c.scale = 1.5 * Y;
- this.q(c, 2)
- },
- LCa: function() {
- this.Ss = C.u.create(I.Nwa);
- this.Ss.x = 80 * Y;
- this.Ss.y = 70 * Y;
- this.Ss.scale = 1 * Y;
- this.q(this.Ss, 2, 1001);
- this.Ts = C.u.create(I.Mwa);
- this.Ts.x = 80 * Y;
- this.Ts.y = 26 * Y;
- this.Ts.anchorY = 0.08;
- this.Ts.scale = 1 * Y;
- this.q(this.Ts, 2, 1002);
- this.pr = C.u.create(I.vga);
- this.pr.x = winSize.width - 40 * Y;
- this.pr.y = 25 * Y;
- this.pr.anchorY = 0;
- this.pr.scale = 1 * Y;
- this.q(this.pr, 2, 1003);
- this.pr.visible = t;
- this.Xj = C.Lb.create(C.u.create(I.uga));
- this.Xj.type = C.Lb.Is;
- this.Xj.midPoint = C.d(1, 0);
- this.Xj.barChangeRate = C.d(0, 1);
- this.Xj.x = winSize.width - 40 * Y;
- this.Xj.y = 25 * Y;
- this.Xj.anchorY = 0;
- this.Xj.scale = 1 * Y;
- this.q(this.Xj, 2, 1004);
- this.Xj.visible = t;
- this.Uq = C.u.create(I.Jea);
- this.Uq.x = this.Ss.x + 85 * Y;
- this.Uq.y = this.Ss.y - 5 * Y;
- this.Uq.scale = Y;
- this.q(this.Uq, 2, 1005);
- var c = C.ae.create(0.4, 1.15 * Y),
- d = C.ae.create(0.4, 0.85 * Y),
- c = C.La.create(c, d);
- this.Uq.Ya(c.cR())
- },
- MCa: function() {
- this.Bt = C.u.create(I.Ffa);
- this.Bt.x = winSize.width / 2 + 75;
- this.Bt.y = 60;
- this.Bt.scale = Y;
- this.q(this.Bt, 2);
- this.Bt.visible = t
- },
- Eia: function() {
- this.sp = C.u.create(I.FDa);
- this.sp.x = winSize.width / 2;
- this.sp.y = winSize.height / 2;
- this.sp.scale = Y;
- this.q(this.sp, 2);
- var c = gd.create();
- c.scale = 1.5;
- c.vh(q);
- c.oy(q);
- c.pj(I.xH, I.xH, "");
- c.x = 480;
- c.y = 310;
- c.uB(this.zEa, this);
- this.sp.q(c, 10, 89);
- this.Ir = gd.create();
- this.Ir.scale = 0.95;
- this.Ir.vh(q);
- this.Ir.oy(q);
- this.Ir.pj(I.e4, I.e4, "");
- this.Ir.x = 135;
- this.Ir.y = 60;
- this.Ir.uB(this.OEa, this);
- this.sp.q(this.Ir, 10, 90);
- this.Kr = gd.create();
- this.Kr.scale = 0.95;
- this.Kr.vh(q);
- this.Kr.oy(q);
- this.Kr.pj(I.f4, I.f4, "");
- this.Kr.x = 365;
- this.Kr.y = 60;
- this.Kr.uB(this.PEa, this);
- this.sp.q(this.Kr, 10, 91);
- var c = "\u98de\u884c" + this.lf + "\u7c73\uff0c" + this.aea(this.lf),
- d = C.fa.create(c, "Arial", 30, C.size(430, 360), C.dz);
- d.dj({
- x: 230,
- y: 100,
- anchorX: 0.5,
- anchorY: 0.5,
- fillStyle: C.color(0, 0, 0, 255)
- });
- 13 < c.length && (d.y = 112);
- this.sp.q(d, 10)
- },
- zEa: function(c, d) {
- (this.removeChild(this.sp, q), We.KC(De,
- function() {
- C.Q.PC(new Xe.x2)
- },
- this))
- },
- OEa: function(c, d) {
- this.zEa(c,d);
- },
- PEa: function(c, d) {
- clickMore();
-
- },
- CEa: function() {
- this.rxa();
- this.Hf = 10 * this.or;
- this.Gn = this.Hf * Math.cos(0.017453293 * this.zq);
- this.Kba = this.Hf * Math.sin(0.017453293 * this.zq);
- 0 > this.Gn && (this.Gn *= -1)
- },
- gja: function() {
- this.gX ? (this.zq += 6, 45 < this.zq && (this.gX = t)) : (this.zq -= 6, -45 > this.zq && (this.gX = q));
- this.Ts.rotation = this.zq
- },
- kja: function() {
- this.fX ? (this.or += 5, 99 < this.or && (this.fX = t)) : (this.or -= 5, 1 > this.or && (this.fX = q));
- this.Xj.X2(this.or)
- },
- SIa: function() {
- this.Ua.pc(C.Fe.nh("charfly" + Math.round(3 * Math.random() + 1) + ".png"));
- this.Ua.rotation = 0;
- Ye(I.Fda, q);
- this.rg(this.nja, 0.025);
- this.rg(this.mja, 0.8)
- },
- nja: function() {
- if (this.Ua.y < winSize.height / 2 - 50 * He) {
- if (this.Ua.y + 0.2 * this.Gn > winSize.height / 2 - 50 * He) {
- this.Ua.y = winSize.height / 2 - 50 * He;
- for (var c = 0; 5 > c; c++) this.ce[c].visible = q;
- this.tp.scale = 0.4 * Y;
- this.Zv.visible = t
- } else this.Ua.y += 0.2 * this.Gn;
- this.ur.y = this.Ua.y
- } else for (c = 0; 5 > c; c++) - 10 > this.ce[c].y && 0.5 < Math.random() ? (this.ce[c].y = winSize.height + 10, this.ce[c].x = Math.round(Math.random() * winSize.width), this.ce[c].scale = 0.6 * Math.random(), this.ce[c].flippedX = 0.5 < Math.random() ? q: t) : this.ce[c].y -= 0.2 * 0.2 * this.Gn;
- this.Ua.x += 0.1 * (0.2 * this.Kba) * Y;
- this.ur.x = this.Ua.x;
- this.tp.scale = 0.2 * (this.lf / 5E4) + 0.4 * Y;
- this.lf += 0.2 * this.Gn - 0.2;
- this.zt.sa(this.Wb(Math.round(this.lf)));
- this.Gn -= 2;
- 0 > this.Gn && (49999 < this.lf && (this.lf = 50815, this.zt.sa(this.Wb(Math.round(this.lf)))), this.aga());
- if (this.Ua.x > winSize.width - 15 || 15 > this.Ua.x) this.Ua.x = 15 > this.Ua.x ? 15 : winSize.width - 15,
- this.aga()
- },
- mja: function() {
- this.Ua.pc(C.Fe.nh("charfly" + Math.round(3 * Math.random() + 1) + ".png"))
- },
- rxa: function() {
- var c = C.Ds.create(0.3, 8),
- d = c.reverse(),
- c = C.La.create(c, d);
- this.Ua.Ya(c.cR());
- this.rg(this.YIa, 1, t)
- },
- YIa: function() {
- this.Ua.yk();
- this.sxa();
- Ye(I.Jca)
- },
- sxa: function() {
- this.Ua.pc(C.Fe.nh("char2.png"));
- var c = C.Av.create(0.3, 1.2),
- d = c.reverse(),
- c = C.La.create(c, d);
- this.Ua.Ya(c);
- this.rg(this.XIa, 0.4, t)
- },
- XIa: function() {
- this.Ua.yk();
- this.Ss.visible = t;
- this.Ts.visible = t;
- this.Xj.visible = t;
- this.pr.visible = t;
- this.SIa()
- },
- Wb: function(c) {
- return 10 > c ? "::::" + c: 100 > c ? ":::" + c: 1E3 > c ? "::" + c: 1E4 > c ? ":" + c: "" + c
- },
- aea: function(c) {
- for (var d = 0; 17 > d; ++d) if (c < Je[d]) return Ke[d];
- return "error"
- },
- B0: function(c) {
- for (var d = 0; 16 > d && !(c < Je[d]); ++d);
- return Me[Math.round(Math.random() * (Le[d + 1] - Le[d] - 1)) + Le[d]]
- },
- aga: function() {
- this.Zh(this.nja);
- this.Zh(this.mja);
- this.ur.visible = t;
- 49E3 < this.lf ? (this.finish(), Ye(I.vja)) : (Ye(I.tda), this.Ua.pc(C.Fe.nh("charfly4.png")), this.Ua.flippedY = q, this.rg(this.uda, 0.1))
- },
- uda: function() {
- if (4 > this.Ua.y) this.Zh(this.uda),
- this.finish();
- else {
- if (this.Ua.y > winSize.height / 2 - 50 * He && 5 > this.Yz) {
- for (var c = 0; 5 > c; c++) - 10 > this.ce[c].y && 0.5 < Math.random() ? (this.ce[c].y = winSize.height + 10, this.ce[c].x = Math.round(Math.random() * winSize.width), this.ce[c].scale = Math.random() * Y, this.ce[c].flippedX = 0.5 < Math.random() ? q: t) : this.ce[c].y += this.Yz;
- this.tp.scale -= this.Yz / 100
- } else this.Ua.y < winSize.height / 2 - 60 && (this.Zv.visible = q),
- this.Ua.y -= this.Yz;
- this.Yz += 1
- }
- },
- finish: function() {
- dp_submitScore(Math.round(this.lf) );
- for (var c = 0; 5 > c; c++) this.ce[c].visible = t;
- console.dir("我在《新神曲》“zuo比飞越天空之城”中,飞行" + Math.round(this.lf) + "\u7c73\uff0c" + this.aea(this.lf) + "\u3010" + this.B0(this.lf) + "\u3011");
- console.dir("\u98de\u884c" + Math.round(this.lf) + "\u7c73\u3010" + this.B0(this.lf) + "\u3011");
- console.dir( "我在zuo比飞越天空之城”,你敢挑战我吗?");
- if (49001 > this.lf) this.Bt.visible = q,
- c = C.fa.create(Ie[Math.round(5 * Math.random())], "Arial", 25, C.size(180, 120), C.dz),
- c.dj({
- x: 118,
- y: 65,
- anchorX: 0.5,
- anchorY: 0.5,
- fillStyle: C.color(0, 0, 0, 255)
- }),
- this.Bt.q(c, 30),
- this.lf = Math.round(this.lf),
- this.Eia();
- else {
- c = C.u.create(I.Gfa);
- c.x = winSize.width / 2;
- c.y = winSize.height - 90 * Y;
- c.scale = 0.42;
- this.q(c, 1);
- c = C.di.create(I.ofa, C.rect(0, 0, 130, 130));
- this.Ua.pc(c);
- this.Ua.x = winSize.width / 2;
- this.Ua.y = winSize.height - 155 * Y;
- this.Ua.flippedY = t;
- this.rg(this.NDa, 0.5);
- this.Wk = C.u.create(I.z1);
- this.Wk.x = winSize.width / 2;
- this.Wk.y = winSize.height - 115 * Y;
- this.Wk.scale = 0.1;
- this.Wk.visible = t;
- this.q(this.Wk, 10);
- this.cm = [];
- for (c = 0; 5 > c; ++c) this.cm[c] = C.u.create(I.z1),
- this.cm[c].x = winSize.width / 2,
- this.cm[c].y = winSize.height - 115 * Y,
- this.cm[c].scale = 0.2,
- this.q(this.cm[c], 5);
- this.rg(this.Eda, 0.2)
- }
- },
- SV: 0,
- A9: 0,
- Eda: function() {
- for (var c = 0; 5 > c; ++c) this.cm[c].x += 20 * Math.sin(15 * (c - 2)),
- this.cm[c].y += 20 * Math.cos(15 * (c - 2));
- this.SV++;
- if (2 <= this.A9) {
- for (c = 0; 5 > c; ++c) this.cm[c].visible = t;
- this.Zh(this.Eda);
- this.Wk.visible = q;
- this.rg(this.pfa, 0.16)
- }
- if (6 <= this.SV) {
- this.SV = 0;
- this.A9++;
- for (c = 0; 5 > c; ++c) this.cm[c].x = winSize.width / 2,
- this.cm[c].y = winSize.height - 115 * Y
- }
- },
- pfa: function() {
- this.Wk.y -= 10;
- this.Wk.scale += 0.15;
- 2 < this.Wk.scale && this.rg(this.MDa, 0.8, t)
- },
- MDa: function() {
- this.Wk.visible = t;
- this.lf = Math.round(this.lf);
- this.Eia();
- this.Zh(this.pfa)
- },
- lX: 1,
- NDa: function() {
- this.lX = 1 === this.lX ? 2 : 1;
- this.Ua.pc(C.Fe.nh("kiss" + this.lX + ".png"))
- }
- });
- Ze.create = function() {
- var c = new Ze;
- return c && c.j() ? c: s
- };
- Ze.x2 = function() {
- var c = C.Ll.create(),
- d = Ze.create();
- c.q(d, 1);
- return c
- };
- MyParticleExplosion = C.B.extend({
- j: function() {
- return this.Hb(15)
- },
- Hb: function(c) {
- return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.Xh(94), this.yj(43), this.wj( - 57), this.xj(17.55), this.no(144.37), this.oo( - 187.61), this.ok(114), this.pk(175), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(1.8), this.uk(0.38), this.tg(C.color(255, 0, 0, 250)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(255, 0, 0, 200)), this.uj(C.color(0, 0, 0, 0.09)), this.wk(50), this.xk(20), this.sk(100), this.R2(20), this.qk(this.wc / this.Rr()), this.Nm(t), q) : t
- }
- });
- MyParticleExplosion.create = function() {
- var c = new MyParticleExplosion;
- return c.j() ? c: s
- };
- function Ye(c, d) {
- try {
- C.ud.cD(),
- d ? C.ud.Zx(c, q) : C.ud.Zx(c)
- } catch(f) {}
- }
- var Xe = C.qe.extend({
- Ua: s,
- zb: 0,
- nr: s,
- Xq: s,
- j: function() {
- var c = t;
- if (this._super()) {
- winSize = C.Q.aa;
- console.dir("init");
- c = C.gd.create(C.color(255, 255, 255, 255), winSize.width, winSize.height);
- c.anchorX = 0;
- c.anchorY = 0;
- this.q(c, 0, 1);
- c = C.u.create(I.XR);
- c.dj({
- x: winSize.width / 2,
- y: winSize.height - 130 * He,
- scaleX: Y,
- scaleY: He
- });
- this.q(c, 2);
- c = C.u.create(I.Mfa);
- c.dj({
- x: winSize.width / 2,
- y: winSize.height - 310 * He,
- scaleX: Y,
- scaleY: He
- });
- this.q(c, 3);
- c = C.gd.create(C.color(0, 0, 0, 255), 5, winSize.height);
- c.anchorX = 0;
- c.anchorY = 0;
- this.q(c, 1);
- c = C.gd.create(C.color(0, 0, 0, 255), 5, winSize.height);
- c.anchorX = 1;
- c.anchorY = 0;
- c.x = winSize.width - 5;
- this.q(c, 1);
- this.nr = gd.create();
- this.nr.scale = 1 * He;
- this.nr.vh(q);
- this.nr.oy(q);
- this.nr.pj(I.Z1, I.Z1, "");
- this.nr.x = winSize.width / 2;
- this.nr.y = winSize.height / 2 - 45 * He;
- this.nr.uB(this.KEa, this);
- this.q(this.nr);
- this.Xq = gd.create();
- this.Xq.scale = 1 * He;
- this.Xq.vh(q);
- this.Xq.oy(q);
- this.Xq.pj(I.R0, I.R0, "");
- this.Xq.x = winSize.width / 2;
- this.Xq.y = winSize.height / 2 - 170 * He;
- this.Xq.uB(this.JEa, this);
- this.q(this.Xq);
- this.Ua = C.u.create(I.t_);
- this.Ua.anchorY = 0;
- this.Ua.x = winSize.width / 2;
- this.Ua.y = -2;
- this.Ua.scale = Y;
- this.Ua.rotation = -18;
- this.q(this.Ua, 2, 8);
- var c = C.Ds.create(4, 30),
- d = c.reverse(),
- c = C.La.create(c, d);
- this.Ua.Ya(c.cR());
- c = C.u.create(I.Dda);
- c.anchorX = 0;
- c.y = 5;
- c.scale = Y;
- this.q(c, 0, 2);
- c = q
- }
- return c
- },
- KEa: function(c, d) {
- console.dir(c);
- console.dir(d);
- d == J.UK && Ye(I.dP);
- d == J.Eo && 0 === this.zb && We.KC(Ee,
- function() {
- var c = C.Ll.create();
- c.q(Ze.create());
- C.Q.PC(c)
- },
- this)
- },
- JEa: function(c, d) {
- clickMore();
- return;
- d == J.UK && Ye(I.dP);
- if (d == J.Eo && 0 === this.zb) {
- this.zb = 3;
- var f = C.u.create(I.FCa);
- f.x = winSize.width / 2;
- f.y = winSize.height / 2 - 40 * He;
- f.scale = Y;
- this.q(f, 10, 88);
- var g = gd.create();
- g.scale = 3 * Y;
- g.vh(q);
- g.oy(q);
- g.pj(I.xH, I.xH, "");
- g.x = f.x + 210 / Y;
- g.y = f.y + 90 / He;
- g.uB(this.yEa, this);
- this.lj(88).q(g, 10, 89)
- }
- },
- yEa: function(c, d) {
- d == J.UK && Ye(I.dP);
- d == J.Eo && (this.zb = 0, this.$Q(88, Boolean))
- }
- });
- Xe.create = function() {
- var c = new Xe;
- return c && c.j() ? c: s
- };
- Xe.x2 = function() {
- var c = C.Ll.create(),
- d = Xe.create();
- c.q(d);
- return c
- };
- var We = C.Ll.extend({
- Zq: s,
- $F: 0,
- Vv: 0,
- ee: s,
- qa: "LoadingScene",
- j: function() {
- var c = this.xV = C.gd.create(C.color(32, 32, 32, 255));
- c.p(C.ts.bP);
- this.q(c, 0);
- var d = this.ee = C.fa.create("Loading... 0%", "Arial", 24);
- d.p(C.ho(C.ts.vH, C.d(0, 0)));
- d.G(C.color(180, 180, 180));
- c.q(this.ee, 10);
- return q
- },
- $$: function(c, d) {
- var f = this.Rva = new C.Ma;
- f.Ng(c);
- f.Md();
- f = this.Cta = C.u.create(f);
- f.Za(C.Ec());
- f.x = d.x;
- f.y = d.y;
- this.xV.q(f, 10)
- },
- Z: function() {
- C.A.prototype.Z.call(this);
- this.rg(this.MG, 0.3)
- },
- Na: function() {
- C.A.prototype.Na.call(this);
- this.ee.sa("Loading... 0%")
- },
- X0: function(c, d) {
- "string" == typeof c && (c = [c]);
- this.s2 = c || [];
- this.mg = d
- },
- MG: function() {
- var c = this;
- c.Zh(c.MG);
- var d = c.s2;
- c.$F = d.length;
- c.Vv = 0;
- C.M.load(d,
- function(d, g) {
- c.Vv = g
- },
- function() {
- c.mg && c.mg()
- });
- c.rg(c.bH)
- },
- bH: function() {
- var c = this.Vv,
- d = this.$F,
- f;
- f = Math.min(100 * (c / d) | 0, 100);
- this.ee.sa("Loading... " + f + "%");
- c >= d && this.Zh(this.bH)
- }
- });
- We.KC = function(c, d) {
- this.Zl || (this.Zl = new We, this.Zl.j());
- this.Zl.X0(c, d);
- C.Q.PC(this.Zl);
- return this.Zl
- };
- C.qf.Vp = function() {
- C.view.Ewa(q);
- 640 > window.innerWidth && (Fe = window.innerWidth);
- Ge = 0.7656 * window.innerHeight;
- Y = Fe / 640;
- He = Ge / 960;
- C.view.M2(Fe, Ge, C.Ej.MK);
- C.view.EGa(q);
- We.KC(De,
- function() {
- C.Q.PC(new Xe.x2)
- },
- this)
- };
- C.qf.HGa();
|