c2runtime.js 262 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307
  1. // Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
  2. 'use strict';
  3. var aa, ba, ca, J, da, ea, ia, R, ja, ka, la, oa, pa, ra, S, sa, ta, T, ua, xa, ya, Aa, Ba, Ca, Da, Ea, V, Fa, Ha, Ia, Ja, Ka, La, Ma, Na, Oa, Pa, Ua, Va, Wa, Xa, Ya, Za, $a, ab, bb, cb, db, eb, fb, gb, hb, ib, jb, kb, lb, mb, nb, ob, pb, qb, rb, sb, tb, vb, wb, xb, yb, zb, Ab, Bb, Cb, Db, Eb, Fb, Gb, Hb, Ib, Jb, Kb, Lb, Mb, Nb, Ob, Pb, Qb, Rb, Sb, Tb, Ub, Vb, Wb, Xb, Yb, Zb, W, $b, ac = {},
  4. bc = {};
  5. "function" !== typeof Object.getPrototypeOf && (Object.getPrototypeOf = "object" === typeof "test".__proto__ ? function(k) {
  6. return k.__proto__
  7. } : function(k) {
  8. return k.constructor.prototype
  9. });
  10. (function() {
  11. function k(c, e, m, f) {
  12. this.set(c, e, m, f)
  13. }
  14. function r() {
  15. this.Xa = this.Wa = this.Za = this.Ya = this.jb = this.ib = this.ua = this.ta = 0
  16. }
  17. function a(c, e, m, f) {
  18. c < e ? m < f ? (w = c < m ? c : m, y = e > f ? e : f) : (w = c < f ? c : f, y = e > m ? e : m) : m < f ? (w = e < m ? e : m, y = c > f ? c : f) : (w = e < f ? e : f, y = c > m ? c : m)
  19. }
  20. function b() {
  21. this.items = this.Yc = null;
  22. this.Uf = 0;
  23. e && (this.Yc = new Set);
  24. this.sg = [];
  25. this.je = !0
  26. }
  27. function s(c) {
  28. m[v++] = c
  29. }
  30. function g() {
  31. this.X = this.Pj = this.y = this.sk = 0
  32. }
  33. function d(c) {
  34. this.fb = [];
  35. this.ai = this.ci = this.di = this.bi = 0;
  36. this.Kh(c)
  37. }
  38. function u(c, e) {
  39. this.vk =
  40. c;
  41. this.uk = e;
  42. this.cells = {}
  43. }
  44. function t(c, e) {
  45. this.vk = c;
  46. this.uk = e;
  47. this.cells = {}
  48. }
  49. function n(c, e, m) {
  50. var f;
  51. return K.length ? (f = K.pop(), f.cl = c, f.x = e, f.y = m, f) : new aa(c, e, m)
  52. }
  53. function f(c, e, m) {
  54. this.cl = c;
  55. this.x = e;
  56. this.y = m;
  57. this.mb = new ba
  58. }
  59. function p(c, e, m) {
  60. var f;
  61. return E.length ? (f = E.pop(), f.cl = c, f.x = e, f.y = m, f) : new ca(c, e, m)
  62. }
  63. function x(c, e, m) {
  64. this.cl = c;
  65. this.x = e;
  66. this.y = m;
  67. this.mb = [];
  68. this.Tf = !0;
  69. this.qd = new ba;
  70. this.wg = !1
  71. }
  72. function h(c, e) {
  73. return c.bd - e.bd
  74. }
  75. J = function(c) {
  76. window.console && window.console.log && window.console.log(c)
  77. };
  78. da = function(c) {
  79. window.console && window.console.error && window.console.error(c)
  80. };
  81. ea = function(c) {
  82. return "undefined" === typeof c
  83. };
  84. ia = function(c) {
  85. return "number" === typeof c
  86. };
  87. R = function(c) {
  88. return "string" === typeof c
  89. };
  90. ja = function(c) {
  91. return 0 < c && 0 === (c - 1 & c)
  92. };
  93. ka = function(c) {
  94. --c;
  95. for (var e = 1; 32 > e; e <<= 1) c |= c >> e;
  96. return c + 1
  97. };
  98. la = function(c) {
  99. return 0 > c ? -c : c
  100. };
  101. oa = function(c, e) {
  102. return c > e ? c : e
  103. };
  104. pa = function(c, e) {
  105. return c < e ? c : e
  106. };
  107. ra = Math.PI;
  108. S = function(c) {
  109. return 0 <= c ? c | 0 : (c | 0) - 1
  110. };
  111. sa = function(c) {
  112. var e = c | 0;
  113. return e === c ? e : e + 1
  114. };
  115. ta = function(c, e, m, f, v, h, l, q) {
  116. var g, d, p, a;
  117. c < m ? (d = c, g = m) : (d = m, g = c);
  118. v < l ? (a = v, p = l) : (a = l, p = v);
  119. if (g < a || d > p) return !1;
  120. e < f ? (d = e, g = f) : (d = f, g = e);
  121. h < q ? (a = h, p = q) : (a = q, p = h);
  122. if (g < a || d > p) return !1;
  123. g = v - c + l - m;
  124. d = h - e + q - f;
  125. c = m - c;
  126. e = f - e;
  127. v = l - v;
  128. h = q - h;
  129. q = la(e * v - h * c);
  130. return la(v * d - h * g) > q ? !1 : la(c * d - e * g) <= q
  131. };
  132. k.prototype.set = function(c, e, m, f) {
  133. this.left = c;
  134. this.top = e;
  135. this.right = m;
  136. this.bottom = f
  137. };
  138. k.prototype.ni = function(c) {
  139. this.left = c.left;
  140. this.top = c.top;
  141. this.right = c.right;
  142. this.bottom = c.bottom
  143. };
  144. k.prototype.width = function() {
  145. return this.right -
  146. this.left
  147. };
  148. k.prototype.height = function() {
  149. return this.bottom - this.top
  150. };
  151. k.prototype.offset = function(c, e) {
  152. this.left += c;
  153. this.top += e;
  154. this.right += c;
  155. this.bottom += e;
  156. return this
  157. };
  158. k.prototype.normalize = function() {
  159. var c = 0;
  160. this.left > this.right && (c = this.left, this.left = this.right, this.right = c);
  161. this.top > this.bottom && (c = this.top, this.top = this.bottom, this.bottom = c)
  162. };
  163. k.prototype.Bt = function(c) {
  164. return !(c.right < this.left || c.bottom < this.top || c.left > this.right || c.top > this.bottom)
  165. };
  166. k.prototype.Ct = function(c, e, m) {
  167. return !(c.right +
  168. e < this.left || c.bottom + m < this.top || c.left + e > this.right || c.top + m > this.bottom)
  169. };
  170. k.prototype.yb = function(c, e) {
  171. return c >= this.left && c <= this.right && e >= this.top && e <= this.bottom
  172. };
  173. k.prototype.yi = function(c) {
  174. return this.left === c.left && this.top === c.top && this.right === c.right && this.bottom === c.bottom
  175. };
  176. T = k;
  177. r.prototype.Jh = function(c) {
  178. this.ta = c.left;
  179. this.ua = c.top;
  180. this.ib = c.right;
  181. this.jb = c.top;
  182. this.Ya = c.right;
  183. this.Za = c.bottom;
  184. this.Wa = c.left;
  185. this.Xa = c.bottom
  186. };
  187. r.prototype.yp = function(c, e) {
  188. if (0 === e) this.Jh(c);
  189. else {
  190. var m =
  191. Math.sin(e),
  192. f = Math.cos(e),
  193. v = c.left * m,
  194. h = c.top * m,
  195. l = c.right * m,
  196. m = c.bottom * m,
  197. q = c.left * f,
  198. g = c.top * f,
  199. d = c.right * f,
  200. f = c.bottom * f;
  201. this.ta = q - h;
  202. this.ua = g + v;
  203. this.ib = d - h;
  204. this.jb = g + l;
  205. this.Ya = d - m;
  206. this.Za = f + l;
  207. this.Wa = q - m;
  208. this.Xa = f + v
  209. }
  210. };
  211. r.prototype.offset = function(c, e) {
  212. this.ta += c;
  213. this.ua += e;
  214. this.ib += c;
  215. this.jb += e;
  216. this.Ya += c;
  217. this.Za += e;
  218. this.Wa += c;
  219. this.Xa += e;
  220. return this
  221. };
  222. var w = 0,
  223. y = 0;
  224. r.prototype.mn = function(c) {
  225. a(this.ta, this.ib, this.Ya, this.Wa);
  226. c.left = w;
  227. c.right = y;
  228. a(this.ua, this.jb, this.Za, this.Xa);
  229. c.top = w;
  230. c.bottom = y
  231. };
  232. r.prototype.yb =
  233. function(c, e) {
  234. var m = this.ib - this.ta,
  235. f = this.jb - this.ua,
  236. v = this.Ya - this.ta,
  237. h = this.Za - this.ua,
  238. l = c - this.ta,
  239. q = e - this.ua,
  240. g = m * m + f * f,
  241. d = m * v + f * h,
  242. f = m * l + f * q,
  243. p = v * v + h * h,
  244. a = v * l + h * q,
  245. K = 1 / (g * p - d * d),
  246. m = (p * f - d * a) * K,
  247. g = (g * a - d * f) * K;
  248. if (0 <= m && 0 < g && 1 > m + g) return !0;
  249. m = this.Wa - this.ta;
  250. f = this.Xa - this.ua;
  251. g = m * m + f * f;
  252. d = m * v + f * h;
  253. f = m * l + f * q;
  254. K = 1 / (g * p - d * d);
  255. m = (p * f - d * a) * K;
  256. g = (g * a - d * f) * K;
  257. return 0 <= m && 0 < g && 1 > m + g
  258. };
  259. r.prototype.ge = function(c, e) {
  260. if (e) switch (c) {
  261. case 0:
  262. return this.ta;
  263. case 1:
  264. return this.ib;
  265. case 2:
  266. return this.Ya;
  267. case 3:
  268. return this.Wa;
  269. case 4:
  270. return this.ta;
  271. default:
  272. return this.ta
  273. } else switch (c) {
  274. case 0:
  275. return this.ua;
  276. case 1:
  277. return this.jb;
  278. case 2:
  279. return this.Za;
  280. case 3:
  281. return this.Xa;
  282. case 4:
  283. return this.ua;
  284. default:
  285. return this.ua
  286. }
  287. };
  288. r.prototype.Ko = function() {
  289. return (this.ta + this.ib + this.Ya + this.Wa) / 4
  290. };
  291. r.prototype.Lo = function() {
  292. return (this.ua + this.jb + this.Za + this.Xa) / 4
  293. };
  294. r.prototype.ao = function(c) {
  295. var e = c.Ko(),
  296. m = c.Lo();
  297. if (this.yb(e, m)) return !0;
  298. e = this.Ko();
  299. m = this.Lo();
  300. if (c.yb(e, m)) return !0;
  301. var f, v, h, l, q, g, d, p;
  302. for (d = 0; 4 > d; d++)
  303. for (p = 0; 4 > p; p++)
  304. if (e = this.ge(d, !0),
  305. m = this.ge(d, !1), f = this.ge(d + 1, !0), v = this.ge(d + 1, !1), h = c.ge(p, !0), l = c.ge(p, !1), q = c.ge(p + 1, !0), g = c.ge(p + 1, !1), ta(e, m, f, v, h, l, q, g)) return !0;
  306. return !1
  307. };
  308. ua = r;
  309. xa = function(c, e) {
  310. for (var m in e) e.hasOwnProperty(m) && (c[m] = e[m]);
  311. return c
  312. };
  313. ya = function(c, e) {
  314. var m, f;
  315. e = S(e);
  316. if (!(0 > e || e >= c.length)) {
  317. m = e;
  318. for (f = c.length - 1; m < f; m++) c[m] = c[m + 1];
  319. c.length = f
  320. }
  321. };
  322. Aa = function(c, e) {
  323. c.length = e.length;
  324. var m, f;
  325. m = 0;
  326. for (f = e.length; m < f; m++) c[m] = e[m]
  327. };
  328. Ba = function(c, e) {
  329. c.push.apply(c, e)
  330. };
  331. Ca = function(c, e) {
  332. var m, f;
  333. m = 0;
  334. for (f = c.length; m < f; ++m)
  335. if (c[m] ===
  336. e) return m;
  337. return -1
  338. };
  339. Da = function(c, e) {
  340. var m = Ca(c, e); - 1 !== m && ya(c, m)
  341. };
  342. Ea = function(c, e, m) {
  343. return c < e ? e : c > m ? m : c
  344. };
  345. V = function(c) {
  346. return c / (180 / ra)
  347. };
  348. Fa = function(c) {
  349. return 180 / ra * c
  350. };
  351. Ha = function(c) {
  352. c %= 360;
  353. 0 > c && (c += 360);
  354. return c
  355. };
  356. Ia = function(c) {
  357. c %= 2 * ra;
  358. 0 > c && (c += 2 * ra);
  359. return c
  360. };
  361. Ja = function(c) {
  362. return Ha(Fa(c))
  363. };
  364. Ka = function(c) {
  365. return Ia(V(c))
  366. };
  367. La = function(c, e, m, f) {
  368. return Math.atan2(f - e, m - c)
  369. };
  370. Ma = function(c, e) {
  371. if (c === e) return 0;
  372. var m = Math.sin(c),
  373. f = Math.cos(c),
  374. v = Math.sin(e),
  375. h = Math.cos(e),
  376. m = m * v + f * h;
  377. return 1 <= m ? 0 :
  378. -1 >= m ? ra : Math.acos(m)
  379. };
  380. Na = function(c, e, m) {
  381. var f = Math.sin(c),
  382. v = Math.cos(c),
  383. h = Math.sin(e),
  384. l = Math.cos(e);
  385. return Math.acos(f * h + v * l) > m ? 0 < v * h - f * l ? Ia(c + m) : Ia(c - m) : Ia(e)
  386. };
  387. Oa = function(c, e) {
  388. var m = Math.sin(c),
  389. f = Math.cos(c),
  390. v = Math.sin(e),
  391. h = Math.cos(e);
  392. return 0 >= f * v - m * h
  393. };
  394. Pa = function(c, e, m, f, v, h) {
  395. if (0 === m) return h ? c : e;
  396. var l = Math.sin(m);
  397. m = Math.cos(m);
  398. c -= f;
  399. e -= v;
  400. var q = c * l;
  401. c = c * m - e * l;
  402. e = e * m + q;
  403. return h ? c + f : e + v
  404. };
  405. Ua = function(c, e, m, f) {
  406. c = m - c;
  407. e = f - e;
  408. return Math.sqrt(c * c + e * e)
  409. };
  410. Va = function(c, e) {
  411. return !c !== !e
  412. };
  413. Wa = function(c) {
  414. for (var e in c)
  415. if (c.hasOwnProperty(e)) return !0;
  416. return !1
  417. };
  418. Xa = function(c) {
  419. for (var e in c) c.hasOwnProperty(e) && delete c[e]
  420. };
  421. var l = +new Date;
  422. Ya = function() {
  423. if ("undefined" !== typeof window.performance) {
  424. var c = window.performance;
  425. if ("undefined" !== typeof c.now) return c.now();
  426. if ("undefined" !== typeof c.webkitNow) return c.webkitNow();
  427. if ("undefined" !== typeof c.mozNow) return c.mozNow();
  428. if ("undefined" !== typeof c.msNow) return c.msNow()
  429. }
  430. return Date.now() - l
  431. };
  432. var q = !1,
  433. A = q = !1,
  434. c = !1;
  435. "undefined" !== typeof window && (q = /chrome/i.test(navigator.userAgent) || /chromium/i.test(navigator.userAgent),
  436. q = !q && /safari/i.test(navigator.userAgent), A = /(iphone|ipod|ipad)/i.test(navigator.userAgent), c = window.c2ejecta);
  437. var e = !q && !c && !A && "undefined" !== typeof Set && "undefined" !== typeof Set.prototype.forEach;
  438. b.prototype.contains = function(c) {
  439. return this.Rd() ? !1 : e ? this.Yc.has(c) : this.items && this.items.hasOwnProperty(c)
  440. };
  441. b.prototype.add = function(c) {
  442. if (e) this.Yc.has(c) || (this.Yc.add(c), this.je = !1);
  443. else {
  444. var m = c.toString(),
  445. f = this.items;
  446. f ? f.hasOwnProperty(m) || (f[m] = c, this.Uf++, this.je = !1) : (this.items = {}, this.items[m] =
  447. c, this.Uf = 1, this.je = !1)
  448. }
  449. };
  450. b.prototype.remove = function(c) {
  451. if (!this.Rd())
  452. if (e) this.Yc.has(c) && (this.Yc["delete"](c), this.je = !1);
  453. else if (this.items) {
  454. c = c.toString();
  455. var m = this.items;
  456. m.hasOwnProperty(c) && (delete m[c], this.Uf--, this.je = !1)
  457. }
  458. };
  459. b.prototype.clear = function() {
  460. this.Rd() || (e ? this.Yc.clear() : (this.items = null, this.Uf = 0), this.sg.length = 0, this.je = !0)
  461. };
  462. b.prototype.Rd = function() {
  463. return 0 === this.count()
  464. };
  465. b.prototype.count = function() {
  466. return e ? this.Yc.size : this.Uf
  467. };
  468. var m = null,
  469. v = 0;
  470. b.prototype.Wu = function() {
  471. if (!this.je) {
  472. if (e) this.sg.length =
  473. this.Yc.size, m = this.sg, v = 0, this.Yc.forEach(s), m = null, v = 0;
  474. else {
  475. var c = this.sg;
  476. c.length = this.Uf;
  477. var f, h = 0,
  478. l = this.items;
  479. if (l)
  480. for (f in l) l.hasOwnProperty(f) && (c[h++] = l[f])
  481. }
  482. this.je = !0
  483. }
  484. };
  485. b.prototype.be = function() {
  486. this.Wu();
  487. return this.sg
  488. };
  489. ba = b;
  490. new ba;
  491. Za = function(c, m) {
  492. e ? $a(c, m.Yc) : ab(c, m.be())
  493. };
  494. $a = function(c, e) {
  495. var m, f, v, h;
  496. f = m = 0;
  497. for (v = c.length; m < v; ++m) h = c[m], e.has(h) || (c[f++] = h);
  498. c.length = f
  499. };
  500. ab = function(c, e) {
  501. var m, f, v, h;
  502. f = m = 0;
  503. for (v = c.length; m < v; ++m) h = c[m], -1 === Ca(e, h) && (c[f++] = h);
  504. c.length = f
  505. };
  506. g.prototype.add =
  507. function(c) {
  508. this.y = c - this.sk;
  509. this.Pj = this.X + this.y;
  510. this.sk = this.Pj - this.X - this.y;
  511. this.X = this.Pj
  512. };
  513. g.prototype.reset = function() {
  514. this.X = this.Pj = this.y = this.sk = 0
  515. };
  516. bb = g;
  517. cb = function(c) {
  518. return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&")
  519. };
  520. d.prototype.Kh = function(c) {
  521. this.np = c;
  522. this.Wc = c.length / 2;
  523. this.fb.length = c.length;
  524. this.fi = this.gi = -1;
  525. this.pn = 0
  526. };
  527. d.prototype.Qf = function() {
  528. return !this.np.length
  529. };
  530. d.prototype.na = function() {
  531. for (var c = this.fb, e = c[0], m = e, f = c[1], v = f, h, l, q = 1, g = this.Wc; q < g; ++q) l = 2 * q, h = c[l], l = c[l +
  532. 1], h < e && (e = h), h > m && (m = h), l < f && (f = l), l > v && (v = l);
  533. this.bi = e;
  534. this.ci = m;
  535. this.di = f;
  536. this.ai = v
  537. };
  538. d.prototype.Jh = function(c, e, m) {
  539. this.fb.length = 8;
  540. this.Wc = 4;
  541. var f = this.fb;
  542. f[0] = c.left - e;
  543. f[1] = c.top - m;
  544. f[2] = c.right - e;
  545. f[3] = c.top - m;
  546. f[4] = c.right - e;
  547. f[5] = c.bottom - m;
  548. f[6] = c.left - e;
  549. f[7] = c.bottom - m;
  550. this.gi = c.right - c.left;
  551. this.fi = c.bottom - c.top;
  552. this.na()
  553. };
  554. d.prototype.lg = function(c, e, m, f, v) {
  555. this.fb.length = 8;
  556. this.Wc = 4;
  557. var h = this.fb;
  558. h[0] = c.ta - e;
  559. h[1] = c.ua - m;
  560. h[2] = c.ib - e;
  561. h[3] = c.jb - m;
  562. h[4] = c.Ya - e;
  563. h[5] = c.Za - m;
  564. h[6] = c.Wa - e;
  565. h[7] = c.Xa -
  566. m;
  567. this.gi = f;
  568. this.fi = v;
  569. this.na()
  570. };
  571. d.prototype.xp = function(c) {
  572. this.Wc = c.Wc;
  573. Aa(this.fb, c.fb);
  574. this.bi = c.bi;
  575. this.di - c.di;
  576. this.ci = c.ci;
  577. this.ai = c.ai
  578. };
  579. d.prototype.Ef = function(c, e, m) {
  580. if (this.gi !== c || this.fi !== e || this.pn !== m) {
  581. this.gi = c;
  582. this.fi = e;
  583. this.pn = m;
  584. var f, v, h, l, q, g = 0,
  585. d = 1,
  586. p = this.np,
  587. a = this.fb;
  588. 0 !== m && (g = Math.sin(m), d = Math.cos(m));
  589. m = 0;
  590. for (h = this.Wc; m < h; m++) f = 2 * m, v = f + 1, l = p[f] * c, q = p[v] * e, a[f] = l * d - q * g, a[v] = q * d + l * g;
  591. this.na()
  592. }
  593. };
  594. d.prototype.yb = function(c, e) {
  595. var m = this.fb;
  596. if (c === m[0] && e === m[1]) return !0;
  597. var f, v,
  598. h, l = this.Wc,
  599. q = this.bi - 110,
  600. g = this.di - 101,
  601. d = this.ci + 131,
  602. p = this.ai + 120,
  603. a, K, u = 0,
  604. Q = 0;
  605. for (f = 0; f < l; f++) v = 2 * f, h = (f + 1) % l * 2, a = m[v], v = m[v + 1], K = m[h], h = m[h + 1], ta(q, g, c, e, a, v, K, h) && u++, ta(d, p, c, e, a, v, K, h) && Q++;
  606. return 1 === u % 2 || 1 === Q % 2
  607. };
  608. d.prototype.Yg = function(c, e, m) {
  609. var f = c.fb,
  610. v = this.fb;
  611. if (this.yb(f[0] + e, f[1] + m) || c.yb(v[0] - e, v[1] - m)) return !0;
  612. var h, l, q, g, d, p, a, K, u, Q, b, E;
  613. h = 0;
  614. for (g = this.Wc; h < g; h++)
  615. for (l = 2 * h, q = (h + 1) % g * 2, K = v[l], l = v[l + 1], u = v[q], Q = v[q + 1], q = 0, a = c.Wc; q < a; q++)
  616. if (d = 2 * q, p = (q + 1) % a * 2, b = f[d] + e, d = f[d + 1] + m, E = f[p] +
  617. e, p = f[p + 1] + m, ta(K, l, u, Q, b, d, E, p)) return !0;
  618. return !1
  619. };
  620. db = d;
  621. u.prototype.qe = function(c, e, m) {
  622. var f;
  623. f = this.cells[c];
  624. return f ? (f = f[e]) ? f : m ? (f = n(this, c, e), this.cells[c][e] = f) : null : m ? (f = n(this, c, e), this.cells[c] = {}, this.cells[c][e] = f) : null
  625. };
  626. u.prototype.jc = function(c) {
  627. return S(c / this.vk)
  628. };
  629. u.prototype.kc = function(c) {
  630. return S(c / this.uk)
  631. };
  632. u.prototype.update = function(c, e, m) {
  633. var f, v, h, l, q;
  634. if (e)
  635. for (f = e.left, v = e.right; f <= v; ++f)
  636. for (h = e.top, l = e.bottom; h <= l; ++h)
  637. if (!m || !m.yb(f, h))
  638. if (q = this.qe(f, h, !1)) q.remove(c), q.Rd() &&
  639. (q.mb.clear(), 1E3 > K.length && K.push(q), this.cells[f][h] = null);
  640. if (m)
  641. for (f = m.left, v = m.right; f <= v; ++f)
  642. for (h = m.top, l = m.bottom; h <= l; ++h) e && e.yb(f, h) || this.qe(f, h, !0).kl(c)
  643. };
  644. u.prototype.zj = function(c, e) {
  645. var m, f, h, v, l, q;
  646. m = this.jc(c.left);
  647. h = this.kc(c.top);
  648. f = this.jc(c.right);
  649. for (l = this.kc(c.bottom); m <= f; ++m)
  650. for (v = h; v <= l; ++v)(q = this.qe(m, v, !1)) && q.dump(e)
  651. };
  652. eb = u;
  653. t.prototype.qe = function(c, e, m) {
  654. var f;
  655. f = this.cells[c];
  656. return f ? (f = f[e]) ? f : m ? (f = p(this, c, e), this.cells[c][e] = f) : null : m ? (f = p(this, c, e), this.cells[c] = {},
  657. this.cells[c][e] = f) : null
  658. };
  659. t.prototype.jc = function(c) {
  660. return S(c / this.vk)
  661. };
  662. t.prototype.kc = function(c) {
  663. return S(c / this.uk)
  664. };
  665. t.prototype.update = function(c, e, m) {
  666. var f, h, v, l, q;
  667. if (e)
  668. for (f = e.left, h = e.right; f <= h; ++f)
  669. for (v = e.top, l = e.bottom; v <= l; ++v)
  670. if (!m || !m.yb(f, v))
  671. if (q = this.qe(f, v, !1)) q.remove(c), q.Rd() && (q.reset(), 1E3 > E.length && E.push(q), this.cells[f][v] = null);
  672. if (m)
  673. for (f = m.left, h = m.right; f <= h; ++f)
  674. for (v = m.top, l = m.bottom; v <= l; ++v) e && e.yb(f, v) || this.qe(f, v, !0).kl(c)
  675. };
  676. t.prototype.zj = function(c, e, m, f, v) {
  677. var h,
  678. l;
  679. c = this.jc(c);
  680. e = this.kc(e);
  681. m = this.jc(m);
  682. for (h = this.kc(f); c <= m; ++c)
  683. for (f = e; f <= h; ++f)(l = this.qe(c, f, !1)) && l.dump(v)
  684. };
  685. t.prototype.Rt = function(c) {
  686. var e, m, f, v, h;
  687. e = c.left;
  688. f = c.top;
  689. m = c.right;
  690. for (v = c.bottom; e <= m; ++e)
  691. for (c = f; c <= v; ++c)
  692. if (h = this.qe(e, c, !1)) h.Tf = !1
  693. };
  694. fb = t;
  695. var K = [];
  696. f.prototype.Rd = function() {
  697. return this.mb.Rd()
  698. };
  699. f.prototype.kl = function(c) {
  700. this.mb.add(c)
  701. };
  702. f.prototype.remove = function(c) {
  703. this.mb.remove(c)
  704. };
  705. f.prototype.dump = function(c) {
  706. Ba(c, this.mb.be())
  707. };
  708. aa = f;
  709. var E = [];
  710. x.prototype.Rd = function() {
  711. if (!this.mb.length) return !0;
  712. if (this.mb.length > this.qd.count()) return !1;
  713. this.Lk();
  714. return !0
  715. };
  716. x.prototype.kl = function(c) {
  717. this.qd.contains(c) ? (this.qd.remove(c), this.qd.Rd() && (this.wg = !1)) : this.mb.length ? (this.mb[this.mb.length - 1].jd() > c.jd() && (this.Tf = !1), this.mb.push(c)) : (this.mb.push(c), this.Tf = !0)
  718. };
  719. x.prototype.remove = function(c) {
  720. this.qd.add(c);
  721. this.wg = !0;
  722. 30 <= this.qd.count() && this.Lk()
  723. };
  724. x.prototype.Lk = function() {
  725. this.wg && (this.qd.count() === this.mb.length ? this.reset() : (Za(this.mb, this.qd), this.qd.clear(), this.wg = !1))
  726. };
  727. x.prototype.ks =
  728. function() {
  729. this.Tf || (this.mb.sort(h), this.Tf = !0)
  730. };
  731. x.prototype.reset = function() {
  732. this.mb.length = 0;
  733. this.Tf = !0;
  734. this.qd.clear();
  735. this.wg = !1
  736. };
  737. x.prototype.dump = function(c) {
  738. this.Lk();
  739. this.ks();
  740. this.mb.length && c.push(this.mb)
  741. };
  742. ca = x;
  743. var Q = "lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
  744. gb = function(c) {
  745. return 0 >= c || 11 <= c ? "source-over" : Q[c - 1]
  746. };
  747. hb = function(c, e, m) {
  748. if (m) switch (c.Cb = m.ONE, c.zb = m.ONE_MINUS_SRC_ALPHA, e) {
  749. case 1:
  750. c.Cb = m.ONE;
  751. c.zb = m.ONE;
  752. break;
  753. case 3:
  754. c.Cb = m.ONE;
  755. c.zb = m.ZERO;
  756. break;
  757. case 4:
  758. c.Cb = m.ONE_MINUS_DST_ALPHA;
  759. c.zb = m.ONE;
  760. break;
  761. case 5:
  762. c.Cb = m.DST_ALPHA;
  763. c.zb = m.ZERO;
  764. break;
  765. case 6:
  766. c.Cb = m.ZERO;
  767. c.zb = m.SRC_ALPHA;
  768. break;
  769. case 7:
  770. c.Cb = m.ONE_MINUS_DST_ALPHA;
  771. c.zb = m.ZERO;
  772. break;
  773. case 8:
  774. c.Cb = m.ZERO;
  775. c.zb = m.ONE_MINUS_SRC_ALPHA;
  776. break;
  777. case 9:
  778. c.Cb = m.DST_ALPHA;
  779. c.zb = m.ONE_MINUS_SRC_ALPHA;
  780. break;
  781. case 10:
  782. c.Cb = m.ONE_MINUS_DST_ALPHA, c.zb = m.SRC_ALPHA
  783. }
  784. };
  785. ib = function(c) {
  786. return Math.round(1E6 * c) / 1E6
  787. };
  788. jb = function(c, e) {
  789. return "string" !== typeof c || "string" !==
  790. typeof e || c.length !== e.length ? !1 : c === e ? !0 : c.toLowerCase() === e.toLowerCase()
  791. };
  792. kb = function(c) {
  793. c = c.target;
  794. return !c || c === document || c === window || document && document.body && c === document.body || jb(c.tagName, "canvas") ? !0 : !1
  795. }
  796. })();
  797. var cc = "undefined" !== typeof Float32Array ? Float32Array : Array;
  798. function dc(k) {
  799. var r = new cc(3);
  800. k && (r[0] = k[0], r[1] = k[1], r[2] = k[2]);
  801. return r
  802. }
  803. function ec(k) {
  804. var r = new cc(16);
  805. k && (r[0] = k[0], r[1] = k[1], r[2] = k[2], r[3] = k[3], r[4] = k[4], r[5] = k[5], r[6] = k[6], r[7] = k[7], r[8] = k[8], r[9] = k[9], r[10] = k[10], r[11] = k[11], r[12] = k[12], r[13] = k[13], r[14] = k[14], r[15] = k[15]);
  806. return r
  807. }
  808. function fc(k, r) {
  809. r[0] = k[0];
  810. r[1] = k[1];
  811. r[2] = k[2];
  812. r[3] = k[3];
  813. r[4] = k[4];
  814. r[5] = k[5];
  815. r[6] = k[6];
  816. r[7] = k[7];
  817. r[8] = k[8];
  818. r[9] = k[9];
  819. r[10] = k[10];
  820. r[11] = k[11];
  821. r[12] = k[12];
  822. r[13] = k[13];
  823. r[14] = k[14];
  824. r[15] = k[15]
  825. }
  826. function gc(k, r) {
  827. var a = r[0],
  828. b = r[1];
  829. r = r[2];
  830. k[0] *= a;
  831. k[1] *= a;
  832. k[2] *= a;
  833. k[3] *= a;
  834. k[4] *= b;
  835. k[5] *= b;
  836. k[6] *= b;
  837. k[7] *= b;
  838. k[8] *= r;
  839. k[9] *= r;
  840. k[10] *= r;
  841. k[11] *= r
  842. }
  843. function hc(k, r, a, b) {
  844. b || (b = ec());
  845. var s, g, d, u, t, n, f, p, x = k[0],
  846. h = k[1];
  847. k = k[2];
  848. g = a[0];
  849. d = a[1];
  850. s = a[2];
  851. a = r[1];
  852. n = r[2];
  853. x === r[0] && h === a && k === n ? (k = b, k[0] = 1, k[1] = 0, k[2] = 0, k[3] = 0, k[4] = 0, k[5] = 1, k[6] = 0, k[7] = 0, k[8] = 0, k[9] = 0, k[10] = 1, k[11] = 0, k[12] = 0, k[13] = 0, k[14] = 0, k[15] = 1) : (a = x - r[0], n = h - r[1], f = k - r[2], p = 1 / Math.sqrt(a * a + n * n + f * f), a *= p, n *= p, f *= p, r = d * f - s * n, s = s * a - g * f, g = g * n - d * a, (p = Math.sqrt(r * r + s * s + g * g)) ? (p = 1 / p, r *= p, s *= p, g *= p) : g = s = r = 0, d = n * g - f * s, u = f * r - a * g, t = a * s - n * r, (p = Math.sqrt(d * d + u * u + t * t)) ? (p = 1 / p, d *= p, u *= p, t *= p) : t = u = d = 0,
  854. b[0] = r, b[1] = d, b[2] = a, b[3] = 0, b[4] = s, b[5] = u, b[6] = n, b[7] = 0, b[8] = g, b[9] = t, b[10] = f, b[11] = 0, b[12] = -(r * x + s * h + g * k), b[13] = -(d * x + u * h + t * k), b[14] = -(a * x + n * h + f * k), b[15] = 1)
  855. }
  856. (function() {
  857. function k(g) {
  858. this.te = /msie/i.test(navigator.userAgent) || /trident/i.test(navigator.userAgent);
  859. this.height = this.width = 0;
  860. this.qn = dc([0, 0, 100]);
  861. this.to = dc([0, 0, 0]);
  862. this.Sp = dc([0, 1, 0]);
  863. this.Lm = dc([1, 1, 1]);
  864. this.Bn = !0;
  865. this.El = ec();
  866. this.Hc = ec();
  867. this.lo = ec();
  868. this.Ak = ec();
  869. this.p = g;
  870. this.Xn()
  871. }
  872. function r(g, d, a) {
  873. this.p = g;
  874. this.Lh = d;
  875. this.name = a;
  876. this.Gc = g.getAttribLocation(d, "aPos");
  877. this.xe = g.getAttribLocation(d, "aTex");
  878. this.ro = g.getUniformLocation(d, "matP");
  879. this.gj = g.getUniformLocation(d, "matMV");
  880. this.Yf =
  881. g.getUniformLocation(d, "opacity");
  882. this.so = g.getUniformLocation(d, "samplerFront");
  883. this.oh = g.getUniformLocation(d, "samplerBack");
  884. this.kf = g.getUniformLocation(d, "destStart");
  885. this.jf = g.getUniformLocation(d, "destEnd");
  886. this.Bl = g.getUniformLocation(d, "seconds");
  887. this.Al = g.getUniformLocation(d, "pixelWidth");
  888. this.zl = g.getUniformLocation(d, "pixelHeight");
  889. this.nh = g.getUniformLocation(d, "layerScale");
  890. this.mh = g.getUniformLocation(d, "layerAngle");
  891. this.qh = g.getUniformLocation(d, "viewOrigin");
  892. this.ph = g.getUniformLocation(d,
  893. "scrollPos");
  894. this.wt = !!(this.Al || this.zl || this.Bl || this.oh || this.kf || this.jf || this.nh || this.mh || this.qh || this.ph);
  895. this.Bo = this.Co = -999;
  896. this.ij = 1;
  897. this.xo = this.wo = 0;
  898. this.zo = this.vo = this.uo = 1;
  899. this.Eo = this.Do = this.Go = this.Fo = this.yo = 0;
  900. this.tl = [];
  901. this.Ao = ec();
  902. this.Yf && g.uniform1f(this.Yf, 1);
  903. this.so && g.uniform1i(this.so, 0);
  904. this.oh && g.uniform1i(this.oh, 1);
  905. this.kf && g.uniform2f(this.kf, 0, 0);
  906. this.jf && g.uniform2f(this.jf, 1, 1);
  907. this.nh && g.uniform1f(this.nh, 1);
  908. this.mh && g.uniform1f(this.mh, 0);
  909. this.qh && g.uniform2f(this.qh,
  910. 0, 0);
  911. this.ph && g.uniform2f(this.ph, 0, 0);
  912. this.Ue = !1
  913. }
  914. function a(g, d) {
  915. this.type = g;
  916. this.u = d;
  917. this.p = d.p;
  918. this.kd = this.Kc = this.$o = 0;
  919. this.ja = this.$c = null;
  920. this.zp = []
  921. }
  922. k.prototype.Xn = function() {
  923. var g = this.p,
  924. d;
  925. this.mo = 1;
  926. this.bf = this.we = null;
  927. this.ri = 1;
  928. g.clearColor(0, 0, 0, 0);
  929. g.clear(g.COLOR_BUFFER_BIT);
  930. g.enable(g.BLEND);
  931. g.blendFunc(g.ONE, g.ONE_MINUS_SRC_ALPHA);
  932. g.disable(g.CULL_FACE);
  933. g.disable(g.DEPTH_TEST);
  934. this.no = g.ONE;
  935. this.ko = g.ONE_MINUS_SRC_ALPHA;
  936. this.Vl = g.createBuffer();
  937. g.bindBuffer(g.ARRAY_BUFFER, this.Vl);
  938. this.Wh =
  939. Array(4);
  940. this.Qh = Array(4);
  941. for (d = 0; 4 > d; d++) this.Wh[d] = g.createBuffer(), g.bindBuffer(g.ARRAY_BUFFER, this.Wh[d]), this.Qh[d] = g.createBuffer(), g.bindBuffer(g.ARRAY_BUFFER, this.Qh[d]);
  942. this.Id = 0;
  943. this.zt = g.createBuffer();
  944. g.bindBuffer(g.ELEMENT_ARRAY_BUFFER, this.zt);
  945. this.Im = new Float32Array(16E3);
  946. this.vm = new Float32Array(16E3);
  947. this.hu = new Float32Array(32E3);
  948. for (var a = new Uint16Array(12E3), b = d = 0; 12E3 > d;) a[d++] = b, a[d++] = b + 1, a[d++] = b + 2, a[d++] = b, a[d++] = b + 2, a[d++] = b + 3, b += 4;
  949. g.bufferData(g.ELEMENT_ARRAY_BUFFER, a,
  950. g.STATIC_DRAW);
  951. this.Wl = this.Ad = 0;
  952. this.hb = [];
  953. d = this.zk({
  954. src: "varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"
  955. }, "attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}", "<default>");
  956. this.hb.push(d);
  957. d = this.zk({
  958. src: "uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"
  959. }, "attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}", "<point>");
  960. this.hb.push(d);
  961. for (var n in ic) ic.hasOwnProperty(n) && this.hb.push(this.zk(ic[n],
  962. "attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}", n));
  963. g.activeTexture(g.TEXTURE0);
  964. g.bindTexture(g.TEXTURE_2D, null);
  965. this.ie = [];
  966. this.Fd = 0;
  967. this.Yb = !1;
  968. this.yn = this.gh = -1;
  969. this.Fg = null;
  970. this.Ks = g.createFramebuffer();
  971. this.rp = null;
  972. this.Ge = dc([0, 0, 0]);
  973. this.Ho = g.getParameter(g.ALIASED_POINT_SIZE_RANGE)[1];
  974. 2048 < this.Ho &&
  975. (this.Ho = 2048);
  976. this.ud(0)
  977. };
  978. r.prototype.Dm = function(g) {
  979. var d = this.Ao;
  980. if (d[0] !== g[0] || d[1] !== g[1] || d[2] !== g[2] || d[3] !== g[3] || d[4] !== g[4] || d[5] !== g[5] || d[6] !== g[6] || d[7] !== g[7] || d[8] !== g[8] || d[9] !== g[9] || d[10] !== g[10] || d[11] !== g[11] || d[12] !== g[12] || d[13] !== g[13] || d[14] !== g[14] || d[15] !== g[15]) fc(g, this.Ao), this.p.uniformMatrix4fv(this.gj, !1, g)
  981. };
  982. k.prototype.zk = function(g, d, a) {
  983. var b = this.p,
  984. n = b.createShader(b.FRAGMENT_SHADER);
  985. b.shaderSource(n, g.src);
  986. b.compileShader(n);
  987. if (!b.getShaderParameter(n, b.COMPILE_STATUS)) return b.deleteShader(n),
  988. null;
  989. var f = b.createShader(b.VERTEX_SHADER);
  990. b.shaderSource(f, d);
  991. b.compileShader(f);
  992. if (!b.getShaderParameter(f, b.COMPILE_STATUS)) return b.deleteShader(n), b.deleteShader(f), null;
  993. d = b.createProgram();
  994. b.attachShader(d, n);
  995. b.attachShader(d, f);
  996. b.linkProgram(d);
  997. if (!b.getProgramParameter(d, b.LINK_STATUS)) return b.deleteShader(n), b.deleteShader(f), b.deleteProgram(d), null;
  998. b.useProgram(d);
  999. b.deleteShader(n);
  1000. b.deleteShader(f);
  1001. a = new r(b, d, a);
  1002. a.Ik = g.Ik || 0;
  1003. a.Jk = g.Jk || 0;
  1004. a.xn = !!g.xn;
  1005. a.jn = !!g.jn;
  1006. a.M = g.M || [];
  1007. g = 0;
  1008. for (n =
  1009. a.M.length; g < n; g++) a.M[g][1] = b.getUniformLocation(d, a.M[g][0]), a.tl.push(0), b.uniform1f(a.M[g][1], 0);
  1010. return a
  1011. };
  1012. k.prototype.$k = function(g) {
  1013. var d, a;
  1014. d = 0;
  1015. for (a = this.hb.length; d < a; d++)
  1016. if (this.hb[d].name === g) return d;
  1017. return -1
  1018. };
  1019. k.prototype.mp = function(g, d, a) {
  1020. var b = this.Hc,
  1021. n = this.El,
  1022. f = [0, 0, 0, 0, 0, 0, 0, 0];
  1023. f[0] = b[0] * g + b[4] * d + b[12];
  1024. f[1] = b[1] * g + b[5] * d + b[13];
  1025. f[2] = b[2] * g + b[6] * d + b[14];
  1026. f[3] = b[3] * g + b[7] * d + b[15];
  1027. f[4] = n[0] * f[0] + n[4] * f[1] + n[8] * f[2] + n[12] * f[3];
  1028. f[5] = n[1] * f[0] + n[5] * f[1] + n[9] * f[2] + n[13] * f[3];
  1029. f[6] = n[2] * f[0] +
  1030. n[6] * f[1] + n[10] * f[2] + n[14] * f[3];
  1031. f[7] = -f[2];
  1032. 0 !== f[7] && (f[7] = 1 / f[7], f[4] *= f[7], f[5] *= f[7], f[6] *= f[7], a[0] = (.5 * f[4] + .5) * this.width, a[1] = (.5 * f[5] + .5) * this.height)
  1033. };
  1034. k.prototype.kg = function(g, d, a) {
  1035. if (this.width !== g || this.height !== d || a) {
  1036. this.oe();
  1037. this.width = g;
  1038. this.height = d;
  1039. this.p.viewport(0, 0, g, d);
  1040. d = g / d;
  1041. var b = this.El,
  1042. n;
  1043. n = 1 * Math.tan(45 * Math.PI / 360);
  1044. d *= n;
  1045. g = -d;
  1046. a = -n;
  1047. b || (b = ec());
  1048. var f = d - g,
  1049. p = n - a;
  1050. b[0] = 2 / f;
  1051. b[1] = 0;
  1052. b[2] = 0;
  1053. b[3] = 0;
  1054. b[4] = 0;
  1055. b[5] = 2 / p;
  1056. b[6] = 0;
  1057. b[7] = 0;
  1058. b[8] = (d + g) / f;
  1059. b[9] = (n + a) / p;
  1060. b[10] = -1001 / 999;
  1061. b[11] = -1;
  1062. b[12] =
  1063. 0;
  1064. b[13] = 0;
  1065. b[14] = -2E3 / 999;
  1066. b[15] = 0;
  1067. hc(this.qn, this.to, this.Sp, this.Hc);
  1068. g = [0, 0];
  1069. d = [0, 0];
  1070. this.mp(0, 0, g);
  1071. this.mp(1, 1, d);
  1072. this.Lm[0] = 1 / (d[0] - g[0]);
  1073. this.Lm[1] = -1 / (d[1] - g[1]);
  1074. g = 0;
  1075. for (d = this.hb.length; g < d; g++) a = this.hb[g], a.Ue = !1, a.ro && (this.p.useProgram(a.Lh), this.p.uniformMatrix4fv(a.ro, !1, this.El));
  1076. this.p.useProgram(this.hb[this.gh].Lh);
  1077. this.p.bindTexture(this.p.TEXTURE_2D, null);
  1078. this.p.activeTexture(this.p.TEXTURE1);
  1079. this.p.bindTexture(this.p.TEXTURE_2D, null);
  1080. this.p.activeTexture(this.p.TEXTURE0);
  1081. this.bf =
  1082. this.we = null
  1083. }
  1084. };
  1085. k.prototype.sd = function() {
  1086. hc(this.qn, this.to, this.Sp, this.Hc);
  1087. gc(this.Hc, this.Lm)
  1088. };
  1089. k.prototype.translate = function(g, d) {
  1090. if (0 !== g || 0 !== d) {
  1091. this.Ge[0] = g;
  1092. this.Ge[1] = d;
  1093. this.Ge[2] = 0;
  1094. var a = this.Hc,
  1095. b = this.Ge,
  1096. n = b[0],
  1097. f = b[1],
  1098. b = b[2];
  1099. a[12] = a[0] * n + a[4] * f + a[8] * b + a[12];
  1100. a[13] = a[1] * n + a[5] * f + a[9] * b + a[13];
  1101. a[14] = a[2] * n + a[6] * f + a[10] * b + a[14];
  1102. a[15] = a[3] * n + a[7] * f + a[11] * b + a[15]
  1103. }
  1104. };
  1105. k.prototype.scale = function(g, d) {
  1106. if (1 !== g || 1 !== d) this.Ge[0] = g, this.Ge[1] = d, this.Ge[2] = 1, gc(this.Hc, this.Ge)
  1107. };
  1108. k.prototype.gm = function(g) {
  1109. if (0 !==
  1110. g) {
  1111. var d = this.Hc,
  1112. a, b = Math.sin(g);
  1113. g = Math.cos(g);
  1114. var n = d[0],
  1115. f = d[1],
  1116. p = d[2],
  1117. x = d[3],
  1118. h = d[4],
  1119. w = d[5],
  1120. y = d[6],
  1121. l = d[7];
  1122. a ? d !== a && (a[8] = d[8], a[9] = d[9], a[10] = d[10], a[11] = d[11], a[12] = d[12], a[13] = d[13], a[14] = d[14], a[15] = d[15]) : a = d;
  1123. a[0] = n * g + h * b;
  1124. a[1] = f * g + w * b;
  1125. a[2] = p * g + y * b;
  1126. a[3] = x * g + l * b;
  1127. a[4] = n * -b + h * g;
  1128. a[5] = f * -b + w * g;
  1129. a[6] = p * -b + y * g;
  1130. a[7] = x * -b + l * g
  1131. }
  1132. };
  1133. k.prototype.zd = function() {
  1134. for (var a = !1, d = 0; 16 > d; d++)
  1135. if (this.lo[d] !== this.Hc[d]) {
  1136. a = !0;
  1137. break
  1138. }
  1139. a && (a = this.Xc(), a.type = 5, a.ja ? fc(this.Hc, a.ja) : a.ja = ec(this.Hc), fc(this.Hc, this.lo), this.Yb = !1)
  1140. };
  1141. a.prototype.Zr = function() {
  1142. this.p.bindTexture(this.p.TEXTURE_2D, this.$c)
  1143. };
  1144. a.prototype.$r = function() {
  1145. var a = this.p;
  1146. a.activeTexture(a.TEXTURE1);
  1147. a.bindTexture(a.TEXTURE_2D, this.$c);
  1148. a.activeTexture(a.TEXTURE0)
  1149. };
  1150. a.prototype.Wr = function() {
  1151. var a = this.$o,
  1152. d = this.u;
  1153. d.ri = a;
  1154. d = d.Fg;
  1155. d.Yf && d.ij !== a && (d.ij = a, this.p.uniform1f(d.Yf, a))
  1156. };
  1157. a.prototype.Tr = function() {
  1158. this.p.drawElements(this.p.TRIANGLES, this.kd, this.p.UNSIGNED_SHORT, 2 * this.Kc)
  1159. };
  1160. a.prototype.Vr = function() {
  1161. this.p.blendFunc(this.Kc, this.kd)
  1162. };
  1163. a.prototype.as =
  1164. function() {
  1165. var a, d, b, t = this.u.hb,
  1166. n = this.u.yn;
  1167. a = 0;
  1168. for (d = t.length; a < d; a++) b = t[a], a === n && b.gj ? (b.Dm(this.ja), b.Ue = !0) : b.Ue = !1;
  1169. fc(this.ja, this.u.Ak)
  1170. };
  1171. a.prototype.Ur = function() {
  1172. var a = this.p,
  1173. d = this.u;
  1174. this.$c ? (d.bf === this.$c && (a.activeTexture(a.TEXTURE1), a.bindTexture(a.TEXTURE_2D, null), d.bf = null, a.activeTexture(a.TEXTURE0)), a.bindFramebuffer(a.FRAMEBUFFER, d.Ks), a.framebufferTexture2D(a.FRAMEBUFFER, a.COLOR_ATTACHMENT0, a.TEXTURE_2D, this.$c, 0)) : (a.framebufferTexture2D(a.FRAMEBUFFER, a.COLOR_ATTACHMENT0, a.TEXTURE_2D,
  1175. null, 0), a.bindFramebuffer(a.FRAMEBUFFER, null))
  1176. };
  1177. a.prototype.Rr = function() {
  1178. var a = this.p;
  1179. 0 === this.Kc ? (a.clearColor(this.ja[0], this.ja[1], this.ja[2], this.ja[3]), a.clear(a.COLOR_BUFFER_BIT)) : (a.enable(a.SCISSOR_TEST), a.scissor(this.ja[0], this.ja[1], this.ja[2], this.ja[3]), a.clearColor(0, 0, 0, 0), a.clear(this.p.COLOR_BUFFER_BIT), a.disable(a.SCISSOR_TEST))
  1180. };
  1181. a.prototype.Sr = function() {
  1182. var a = this.p,
  1183. d = this.u,
  1184. b = d.hb[1];
  1185. a.useProgram(b.Lh);
  1186. !b.Ue && b.gj && (b.Dm(d.Ak), b.Ue = !0);
  1187. a.enableVertexAttribArray(b.Gc);
  1188. a.bindBuffer(a.ARRAY_BUFFER,
  1189. d.Vl);
  1190. a.vertexAttribPointer(b.Gc, 4, a.FLOAT, !1, 0, 0);
  1191. a.drawArrays(a.POINTS, this.Kc / 4, this.kd);
  1192. b = d.Fg;
  1193. a.useProgram(b.Lh);
  1194. 0 <= b.Gc && (a.enableVertexAttribArray(b.Gc), a.bindBuffer(a.ARRAY_BUFFER, d.Wh[d.Id]), a.vertexAttribPointer(b.Gc, 2, a.FLOAT, !1, 0, 0));
  1195. 0 <= b.xe && (a.enableVertexAttribArray(b.xe), a.bindBuffer(a.ARRAY_BUFFER, d.Qh[d.Id]), a.vertexAttribPointer(b.xe, 2, a.FLOAT, !1, 0, 0))
  1196. };
  1197. a.prototype.Xr = function() {
  1198. var a = this.p,
  1199. d = this.u,
  1200. b = d.hb[this.Kc];
  1201. d.yn = this.Kc;
  1202. d.Fg = b;
  1203. a.useProgram(b.Lh);
  1204. !b.Ue && b.gj && (b.Dm(d.Ak),
  1205. b.Ue = !0);
  1206. b.Yf && b.ij !== d.ri && (b.ij = d.ri, a.uniform1f(b.Yf, d.ri));
  1207. 0 <= b.Gc && (a.enableVertexAttribArray(b.Gc), a.bindBuffer(a.ARRAY_BUFFER, d.Wh[d.Id]), a.vertexAttribPointer(b.Gc, 2, a.FLOAT, !1, 0, 0));
  1208. 0 <= b.xe && (a.enableVertexAttribArray(b.xe), a.bindBuffer(a.ARRAY_BUFFER, d.Qh[d.Id]), a.vertexAttribPointer(b.xe, 2, a.FLOAT, !1, 0, 0))
  1209. };
  1210. a.prototype.Yr = function() {
  1211. var a, d, b = this.u.Fg,
  1212. t = this.p;
  1213. a = this.ja;
  1214. b.oh && this.u.bf !== this.$c && (t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, this.$c), this.u.bf = this.$c, t.activeTexture(t.TEXTURE0));
  1215. var n = a[0];
  1216. b.Al && n !== b.Co && (b.Co = n, t.uniform1f(b.Al, n));
  1217. n = a[1];
  1218. b.zl && n !== b.Bo && (b.Bo = n, t.uniform1f(b.zl, n));
  1219. n = a[2];
  1220. d = a[3];
  1221. !b.kf || n === b.wo && d === b.xo || (b.wo = n, b.xo = d, t.uniform2f(b.kf, n, d));
  1222. n = a[4];
  1223. d = a[5];
  1224. !b.jf || n === b.uo && d === b.vo || (b.uo = n, b.vo = n, t.uniform2f(b.jf, n, d));
  1225. n = a[6];
  1226. b.nh && n !== b.zo && (b.zo = n, t.uniform1f(b.nh, n));
  1227. n = a[7];
  1228. b.mh && n !== b.yo && (b.yo = n, t.uniform1f(b.mh, n));
  1229. n = a[8];
  1230. d = a[9];
  1231. !b.qh || n === b.Fo && d === b.Go || (b.Fo = n, b.Go = d, t.uniform2f(b.qh, n, d));
  1232. n = a[10];
  1233. d = a[11];
  1234. !b.ph || n === b.Do && d === b.Eo || (b.Do = n, b.Eo =
  1235. d, t.uniform2f(b.ph, n, d));
  1236. b.Bl && t.uniform1f(b.Bl, Ya() / 1E3);
  1237. if (b.M.length)
  1238. for (a = 0, d = b.M.length; a < d; a++) n = this.zp[a], n !== b.tl[a] && (b.tl[a] = n, t.uniform1f(b.M[a][1], n))
  1239. };
  1240. k.prototype.Xc = function() {
  1241. this.Fd === this.ie.length && this.ie.push(new a(0, this));
  1242. return this.ie[this.Fd++]
  1243. };
  1244. k.prototype.oe = function() {
  1245. if (0 !== this.Fd && !this.p.isContextLost()) {
  1246. var a = this.p;
  1247. 0 < this.Wl && (a.bindBuffer(a.ARRAY_BUFFER, this.Vl), a.bufferData(a.ARRAY_BUFFER, this.hu.subarray(0, this.Wl), a.STREAM_DRAW), b && 0 <= b.Gc && "<point>" === b.name &&
  1248. a.vertexAttribPointer(b.Gc, 4, a.FLOAT, !1, 0, 0));
  1249. if (0 < this.Ad) {
  1250. var b = this.Fg;
  1251. a.bindBuffer(a.ARRAY_BUFFER, this.Wh[this.Id]);
  1252. a.bufferData(a.ARRAY_BUFFER, this.Im.subarray(0, this.Ad), a.STREAM_DRAW);
  1253. b && 0 <= b.Gc && "<point>" !== b.name && a.vertexAttribPointer(b.Gc, 2, a.FLOAT, !1, 0, 0);
  1254. a.bindBuffer(a.ARRAY_BUFFER, this.Qh[this.Id]);
  1255. a.bufferData(a.ARRAY_BUFFER, this.vm.subarray(0, this.Ad), a.STREAM_DRAW);
  1256. b && 0 <= b.xe && "<point>" !== b.name && a.vertexAttribPointer(b.xe, 2, a.FLOAT, !1, 0, 0)
  1257. }
  1258. for (var k, a = 0, b = this.Fd; a < b; a++) switch (k =
  1259. this.ie[a], k.type) {
  1260. case 1:
  1261. k.Tr();
  1262. break;
  1263. case 2:
  1264. k.Zr();
  1265. break;
  1266. case 3:
  1267. k.Wr();
  1268. break;
  1269. case 4:
  1270. k.Vr();
  1271. break;
  1272. case 5:
  1273. k.as();
  1274. break;
  1275. case 6:
  1276. k.Ur();
  1277. break;
  1278. case 7:
  1279. k.Rr();
  1280. break;
  1281. case 8:
  1282. k.Sr();
  1283. break;
  1284. case 9:
  1285. k.Xr();
  1286. break;
  1287. case 10:
  1288. k.Yr();
  1289. break;
  1290. case 11:
  1291. k.$r()
  1292. }
  1293. this.Wl = this.Ad = this.Fd = 0;
  1294. this.Yb = !1;
  1295. this.Id++;
  1296. 4 <= this.Id && (this.Id = 0)
  1297. }
  1298. };
  1299. k.prototype.pf = function(a) {
  1300. if (a !== this.mo) {
  1301. var b = this.Xc();
  1302. b.type = 3;
  1303. this.mo = b.$o = a;
  1304. this.Yb = !1
  1305. }
  1306. };
  1307. k.prototype.gc = function(a) {
  1308. if (a !== this.we) {
  1309. var b = this.Xc();
  1310. b.type = 2;
  1311. this.we = b.$c = a;
  1312. this.Yb = !1
  1313. }
  1314. };
  1315. k.prototype.Be =
  1316. function(a, b) {
  1317. if (a !== this.no || b !== this.ko) {
  1318. var k = this.Xc();
  1319. k.type = 4;
  1320. k.Kc = a;
  1321. k.kd = b;
  1322. this.no = a;
  1323. this.ko = b;
  1324. this.Yb = !1
  1325. }
  1326. };
  1327. k.prototype.up = function() {
  1328. this.Be(this.p.ONE, this.p.ONE_MINUS_SRC_ALPHA)
  1329. };
  1330. k.prototype.yj = function(a, b, k, t, n, f, p, x) {
  1331. 15992 <= this.Ad && this.oe();
  1332. var h = this.Ad,
  1333. w = this.Im,
  1334. y = this.vm;
  1335. if (this.Yb) this.ie[this.Fd - 1].kd += 6;
  1336. else {
  1337. var l = this.Xc();
  1338. l.type = 1;
  1339. l.Kc = h / 4 * 3;
  1340. l.kd = 6;
  1341. this.Yb = !0
  1342. }
  1343. w[h] = a;
  1344. y[h++] = 0;
  1345. w[h] = b;
  1346. y[h++] = 0;
  1347. w[h] = k;
  1348. y[h++] = 1;
  1349. w[h] = t;
  1350. y[h++] = 0;
  1351. w[h] = n;
  1352. y[h++] = 1;
  1353. w[h] = f;
  1354. y[h++] = 1;
  1355. w[h] = p;
  1356. y[h++] = 0;
  1357. w[h] =
  1358. x;
  1359. y[h++] = 1;
  1360. this.Ad = h
  1361. };
  1362. k.prototype.Ud = function(a, b, k, t, n, f, p, x, h) {
  1363. 15992 <= this.Ad && this.oe();
  1364. var w = this.Ad,
  1365. y = this.Im,
  1366. l = this.vm;
  1367. if (this.Yb) this.ie[this.Fd - 1].kd += 6;
  1368. else {
  1369. var q = this.Xc();
  1370. q.type = 1;
  1371. q.Kc = w / 4 * 3;
  1372. q.kd = 6;
  1373. this.Yb = !0
  1374. }
  1375. var q = h.left,
  1376. A = h.top,
  1377. c = h.right;
  1378. h = h.bottom;
  1379. y[w] = a;
  1380. l[w++] = q;
  1381. y[w] = b;
  1382. l[w++] = A;
  1383. y[w] = k;
  1384. l[w++] = c;
  1385. y[w] = t;
  1386. l[w++] = A;
  1387. y[w] = n;
  1388. l[w++] = c;
  1389. y[w] = f;
  1390. l[w++] = h;
  1391. y[w] = p;
  1392. l[w++] = q;
  1393. y[w] = x;
  1394. l[w++] = h;
  1395. this.Ad = w
  1396. };
  1397. k.prototype.ud = function(a) {
  1398. if (this.gh !== a) {
  1399. if (!this.hb[a]) {
  1400. if (0 === this.gh) return;
  1401. a = 0
  1402. }
  1403. var b = this.Xc();
  1404. b.type = 9;
  1405. this.gh = b.Kc = a;
  1406. this.Yb = !1
  1407. }
  1408. };
  1409. k.prototype.Ch = function(a) {
  1410. a = this.hb[a];
  1411. return !(!a.kf && !a.jf)
  1412. };
  1413. k.prototype.Zl = function(a) {
  1414. a = this.hb[a];
  1415. return !!(a.kf || a.jf || a.xn)
  1416. };
  1417. k.prototype.ou = function(a) {
  1418. a = this.hb[a];
  1419. return 0 !== a.Ik || 0 !== a.Jk
  1420. };
  1421. k.prototype.Ys = function(a) {
  1422. return this.hb[a].Ik
  1423. };
  1424. k.prototype.Zs = function(a) {
  1425. return this.hb[a].Jk
  1426. };
  1427. k.prototype.$s = function(a, b) {
  1428. return this.hb[a].M[b][2]
  1429. };
  1430. k.prototype.vj = function(a) {
  1431. return this.hb[a].jn
  1432. };
  1433. k.prototype.jg = function(a, b, k, t, n, f, p, x, h, w, y, l, q, A) {
  1434. var c = this.hb[this.gh],
  1435. e, m;
  1436. if (c.wt || A.length) {
  1437. e = this.Xc();
  1438. e.type = 10;
  1439. e.ja ? fc(this.Hc, e.ja) : e.ja = ec();
  1440. m = e.ja;
  1441. m[0] = b;
  1442. m[1] = k;
  1443. m[2] = t;
  1444. m[3] = n;
  1445. m[4] = f;
  1446. m[5] = p;
  1447. m[6] = x;
  1448. m[7] = h;
  1449. m[8] = w;
  1450. m[9] = y;
  1451. m[10] = l;
  1452. m[11] = q;
  1453. e.$c = c.oh ? a : null;
  1454. if (A.length)
  1455. for (k = e.zp, k.length = A.length, a = 0, b = A.length; a < b; a++) k[a] = A[a];
  1456. this.Yb = !1
  1457. }
  1458. };
  1459. k.prototype.clear = function(a, b, k, t) {
  1460. var n = this.Xc();
  1461. n.type = 7;
  1462. n.Kc = 0;
  1463. n.ja || (n.ja = ec());
  1464. n.ja[0] = a;
  1465. n.ja[1] = b;
  1466. n.ja[2] = k;
  1467. n.ja[3] = t;
  1468. this.Yb = !1
  1469. };
  1470. k.prototype.clearRect = function(a, b, k, t) {
  1471. if (!(0 > k || 0 > t)) {
  1472. var n = this.Xc();
  1473. n.type = 7;
  1474. n.Kc = 1;
  1475. n.ja ||
  1476. (n.ja = ec());
  1477. n.ja[0] = a;
  1478. n.ja[1] = b;
  1479. n.ja[2] = k;
  1480. n.ja[3] = t;
  1481. this.Yb = !1
  1482. }
  1483. };
  1484. k.prototype.nu = function() {
  1485. this.oe();
  1486. this.p.flush()
  1487. };
  1488. var b = [],
  1489. s = {};
  1490. k.prototype.Kr = function() {
  1491. b.length = 0;
  1492. s = {}
  1493. };
  1494. k.prototype.ej = function(a, d, k) {
  1495. var t;
  1496. t = !1;
  1497. d = !!d;
  1498. var n = a.src + "," + t + "," + d + (t ? ",undefined" : ""),
  1499. f = null;
  1500. if ("undefined" !== typeof a.src && s.hasOwnProperty(n)) return f = s[n], f.ei++, f;
  1501. this.oe();
  1502. var p = this.p,
  1503. x = ja(a.width) && ja(a.height),
  1504. f = p.createTexture();
  1505. p.bindTexture(p.TEXTURE_2D, f);
  1506. p.pixelStorei(p.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0);
  1507. var h =
  1508. p.RGBA,
  1509. w = p.RGBA,
  1510. y = p.UNSIGNED_BYTE;
  1511. if (k && !this.te) switch (k) {
  1512. case 1:
  1513. w = h = p.RGB;
  1514. break;
  1515. case 2:
  1516. y = p.UNSIGNED_SHORT_4_4_4_4;
  1517. break;
  1518. case 3:
  1519. y = p.UNSIGNED_SHORT_5_5_5_1;
  1520. break;
  1521. case 4:
  1522. w = h = p.RGB, y = p.UNSIGNED_SHORT_5_6_5
  1523. }
  1524. if (!x && t) {
  1525. k = document.createElement("canvas");
  1526. k.width = ka(a.width);
  1527. k.height = ka(a.height);
  1528. var l = k.getContext("2d");
  1529. l.webkitImageSmoothingEnabled = d;
  1530. l.mozImageSmoothingEnabled = d;
  1531. l.msImageSmoothingEnabled = d;
  1532. l.imageSmoothingEnabled = d;
  1533. l.drawImage(a, 0, 0, a.width, a.height, 0, 0, k.width, k.height);
  1534. p.texImage2D(p.TEXTURE_2D,
  1535. 0, h, w, y, k)
  1536. } else p.texImage2D(p.TEXTURE_2D, 0, h, w, y, a);
  1537. t ? (p.texParameteri(p.TEXTURE_2D, p.TEXTURE_WRAP_S, p.REPEAT), p.texParameteri(p.TEXTURE_2D, p.TEXTURE_WRAP_T, p.REPEAT)) : (p.texParameteri(p.TEXTURE_2D, p.TEXTURE_WRAP_S, p.CLAMP_TO_EDGE), p.texParameteri(p.TEXTURE_2D, p.TEXTURE_WRAP_T, p.CLAMP_TO_EDGE));
  1538. d ? (p.texParameteri(p.TEXTURE_2D, p.TEXTURE_MAG_FILTER, p.LINEAR), x && this.Bn ? (p.texParameteri(p.TEXTURE_2D, p.TEXTURE_MIN_FILTER, p.LINEAR_MIPMAP_LINEAR), p.generateMipmap(p.TEXTURE_2D)) : p.texParameteri(p.TEXTURE_2D,
  1539. p.TEXTURE_MIN_FILTER, p.LINEAR)) : (p.texParameteri(p.TEXTURE_2D, p.TEXTURE_MAG_FILTER, p.NEAREST), p.texParameteri(p.TEXTURE_2D, p.TEXTURE_MIN_FILTER, p.NEAREST));
  1540. p.bindTexture(p.TEXTURE_2D, null);
  1541. this.we = null;
  1542. f.Ag = a.width;
  1543. f.zg = a.height;
  1544. f.ei = 1;
  1545. f.on = n;
  1546. b.push(f);
  1547. return s[n] = f
  1548. };
  1549. k.prototype.Hd = function(a, d, k, t) {
  1550. this.oe();
  1551. var n = this.p;
  1552. this.te && (t = !1);
  1553. var f = n.createTexture();
  1554. n.bindTexture(n.TEXTURE_2D, f);
  1555. n.texImage2D(n.TEXTURE_2D, 0, n.RGBA, a, d, 0, n.RGBA, t ? n.UNSIGNED_SHORT_4_4_4_4 : n.UNSIGNED_BYTE, null);
  1556. n.texParameteri(n.TEXTURE_2D,
  1557. n.TEXTURE_WRAP_S, n.CLAMP_TO_EDGE);
  1558. n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_T, n.CLAMP_TO_EDGE);
  1559. n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MAG_FILTER, k ? n.LINEAR : n.NEAREST);
  1560. n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MIN_FILTER, k ? n.LINEAR : n.NEAREST);
  1561. n.bindTexture(n.TEXTURE_2D, null);
  1562. this.we = null;
  1563. f.Ag = a;
  1564. f.zg = d;
  1565. b.push(f);
  1566. return f
  1567. };
  1568. k.prototype.av = function(a, b, k) {
  1569. this.oe();
  1570. var t = this.p;
  1571. this.te && (k = !1);
  1572. t.bindTexture(t.TEXTURE_2D, b);
  1573. t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0);
  1574. try {
  1575. t.texImage2D(t.TEXTURE_2D,
  1576. 0, t.RGBA, t.RGBA, k ? t.UNSIGNED_SHORT_4_4_4_4 : t.UNSIGNED_BYTE, a)
  1577. } catch (n) {
  1578. console && console.error && console.error("Error updating WebGL texture: ", n)
  1579. }
  1580. t.bindTexture(t.TEXTURE_2D, null);
  1581. this.we = null
  1582. };
  1583. k.prototype.deleteTexture = function(a) {
  1584. a && ("undefined" !== typeof a.ei && 1 < a.ei ? a.ei-- : (this.oe(), a === this.we && (this.p.bindTexture(this.p.TEXTURE_2D, null), this.we = null), a === this.bf && (this.p.activeTexture(this.p.TEXTURE1), this.p.bindTexture(this.p.TEXTURE_2D, null), this.p.activeTexture(this.p.TEXTURE0), this.bf = null),
  1585. Da(b, a), "undefined" !== typeof a.on && delete s[a.on], this.p.deleteTexture(a)))
  1586. };
  1587. k.prototype.td = function(a) {
  1588. if (a !== this.rp) {
  1589. var b = this.Xc();
  1590. b.type = 6;
  1591. this.rp = b.$c = a;
  1592. this.Yb = !1
  1593. }
  1594. };
  1595. lb = k
  1596. })();
  1597. (function() {
  1598. function k() {
  1599. return "undefined" !== typeof jQuery ? jQuery(window).width() : window.innerWidth
  1600. }
  1601. function r() {
  1602. return "undefined" !== typeof jQuery ? jQuery(window).height() : window.innerHeight
  1603. }
  1604. function a(c) {
  1605. if (c && (c.getContext || c.dc) && !c.c2runtime) {
  1606. c.c2runtime = this;
  1607. var e = this;
  1608. this.sc = (this.$g = /crosswalk/i.test(navigator.userAgent) || /xwalk/i.test(navigator.userAgent) || !("undefined" === typeof window.c2isCrosswalk || !window.c2isCrosswalk)) || "undefined" !== typeof window.device && ("undefined" !== typeof window.device.cordova ||
  1609. "undefined" !== typeof window.device.phonegap) || "undefined" !== typeof window.c2iscordova && window.c2iscordova;
  1610. this.tb = !!c.dc;
  1611. this.Nf = "undefined" !== typeof window.AppMobi || this.tb;
  1612. this.rc = !!window.c2cocoonjs;
  1613. this.Ec = !!window.c2ejecta;
  1614. this.rc && (CocoonJS.App.onSuspended.addEventListener(function() {
  1615. e.setSuspended(!0)
  1616. }), CocoonJS.App.onActivated.addEventListener(function() {
  1617. e.setSuspended(!1)
  1618. }));
  1619. this.Ec && (document.addEventListener("pagehide", function() {
  1620. e.setSuspended(!0)
  1621. }), document.addEventListener("pageshow",
  1622. function() {
  1623. e.setSuspended(!1)
  1624. }), document.addEventListener("resize", function() {
  1625. e.setSize(window.innerWidth, window.innerHeight)
  1626. }));
  1627. this.ya = this.tb || this.rc || this.Ec;
  1628. this.te = /msie/i.test(navigator.userAgent) || /trident/i.test(navigator.userAgent) || /iemobile/i.test(navigator.userAgent) || /edge\//i.test(navigator.userAgent);
  1629. this.fo = /tizen/i.test(navigator.userAgent);
  1630. this.Mi = /android/i.test(navigator.userAgent) && !this.fo && !this.te;
  1631. this.sl = (/iphone/i.test(navigator.userAgent) || /ipod/i.test(navigator.userAgent)) &&
  1632. !this.te;
  1633. this.jo = /ipad/i.test(navigator.userAgent);
  1634. this.Si = this.sl || this.jo || this.Ec;
  1635. this.Mt = this.sl && /os\s6/i.test(navigator.userAgent);
  1636. this.Zg = (/chrome/i.test(navigator.userAgent) || /chromium/i.test(navigator.userAgent)) && !this.te;
  1637. this.bo = /amazonwebappplatform/i.test(navigator.userAgent);
  1638. this.Ft = /firefox/i.test(navigator.userAgent);
  1639. this.eo = /safari/i.test(navigator.userAgent) && !this.Zg && !this.te;
  1640. this.It = /windows/i.test(navigator.userAgent);
  1641. this.ue = "undefined" !== typeof window.c2nodewebkit || /nodewebkit/i.test(navigator.userAgent);
  1642. this.ho = !("undefined" === typeof window.c2isWindows8 || !window.c2isWindows8);
  1643. this.Kt = !("undefined" === typeof window.c2isWindows8Capable || !window.c2isWindows8Capable);
  1644. this.Pf = !("undefined" === typeof window.c2isWindowsPhone8 || !window.c2isWindowsPhone8);
  1645. this.Oi = !("undefined" === typeof window.c2isWindowsPhone81 || !window.c2isWindowsPhone81);
  1646. this.ql = this.ho || this.Kt || this.Oi;
  1647. this.Dt = !("undefined" === typeof window.c2isBlackberry10 || !window.c2isBlackberry10);
  1648. this.Ni = this.Mi && !this.Zg && !this.$g && !this.Ft && !this.bo &&
  1649. !this.ya;
  1650. this.devicePixelRatio = 1;
  1651. this.ld = this.sc || this.$g || this.Nf || this.rc || this.Mi || this.Si || this.Pf || this.Oi || this.Dt || this.fo || this.Ec;
  1652. this.ld || (this.ld = /(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));
  1653. "undefined" === typeof cr_is_preview || this.ue || "?nw" !== window.location.search && !/nodewebkit/i.test(navigator.userAgent) || (this.ue = !0);
  1654. this.Et = "undefined" !== typeof cr_is_preview && -1 < window.location.search.indexOf("debug");
  1655. this.canvas =
  1656. c;
  1657. this.rn = document.getElementById("c2canvasdiv");
  1658. this.ka = this.u = this.p = null;
  1659. this.Ok = "";
  1660. this.Ei = !1;
  1661. this.Uo = this.Vo = 0;
  1662. this.canvas.oncontextmenu = function(c) {
  1663. c.preventDefault && c.preventDefault();
  1664. return !1
  1665. };
  1666. this.canvas.onselectstart = function(c) {
  1667. c.preventDefault && c.preventDefault();
  1668. return !1
  1669. };
  1670. this.tb && (window.c2runtime = this);
  1671. this.ue && (window.ondragover = function(c) {
  1672. c.preventDefault();
  1673. return !1
  1674. }, window.ondrop = function(c) {
  1675. c.preventDefault();
  1676. return !1
  1677. }, require("nw.gui").App.clearCache());
  1678. this.Ni && "undefined" !==
  1679. typeof jQuery && jQuery("canvas").parents("*").css("overflow", "visible");
  1680. this.width = c.width;
  1681. this.height = c.height;
  1682. this.O = this.width;
  1683. this.N = this.height;
  1684. this.pi = this.width;
  1685. this.oi = this.height;
  1686. this.ih = window.innerWidth;
  1687. this.hh = window.innerHeight;
  1688. this.Ms = !1;
  1689. this.aa = !0;
  1690. this.bh = !1;
  1691. Date.now || (Date.now = function() {
  1692. return +new Date
  1693. });
  1694. this.plugins = [];
  1695. this.types = {};
  1696. this.r = [];
  1697. this.Qa = [];
  1698. this.xl = {};
  1699. this.Tc = [];
  1700. this.Hk = {};
  1701. this.Nd = [];
  1702. this.ug = [];
  1703. this.Yj = [];
  1704. this.yr = [];
  1705. this.Ar = [];
  1706. this.Fp = null;
  1707. this.Ne = {};
  1708. this.nl = this.re = !1;
  1709. this.Rc = 0;
  1710. this.pl = !1;
  1711. this.Qc = [];
  1712. this.Sd = this.Jb = this.bj = this.km = "";
  1713. this.Oh = this.Cp = !1;
  1714. this.yk = this.rh = this.Md = this.Pe = 0;
  1715. this.vf = 1;
  1716. this.Gb = new bb;
  1717. this.Bd = new bb;
  1718. this.Xi = 0;
  1719. this.Jo = !0;
  1720. this.lj = this.Gi = this.Ig = this.xd = this.df = this.Nk = 0;
  1721. this.Cg = null;
  1722. this.wi = [];
  1723. this.Gk = [];
  1724. this.Ai = -1;
  1725. this.Cl = [
  1726. []
  1727. ];
  1728. this.Am = this.hj = 0;
  1729. this.xj(null);
  1730. this.Jg = this.Po = this.vh = 0;
  1731. this.Ph = [];
  1732. this.Uj = this.Aj = -1;
  1733. this.fh = !0;
  1734. this.Xf = 0;
  1735. this.ah = !1;
  1736. this.Mu = 0;
  1737. this.Df = null;
  1738. this.tt = !1;
  1739. this.ul = 0;
  1740. this.Zb = this.dl = this.am = !1;
  1741. this.To = new ba;
  1742. this.Ll =
  1743. new ba;
  1744. this.Ml = new ba;
  1745. this.Bj = [];
  1746. this.Zc = new db([]);
  1747. this.um = new db([]);
  1748. this.Cf = [];
  1749. this.Tg = {};
  1750. this.Gf = {};
  1751. this.Bf = {};
  1752. this.tg = {};
  1753. this.ln = {};
  1754. this.qo = this.aj = this.$b = this.vc = this.po = this.$i = this.za = null;
  1755. this.rg = this.rl = !1;
  1756. this.Pk = [null, null];
  1757. this.Re = 0;
  1758. this.Di = "";
  1759. this.ye = {};
  1760. this.Lj = this.Wf = null;
  1761. this.kj = [];
  1762. this.wu()
  1763. }
  1764. }
  1765. function b(c) {
  1766. c.target.result.createObjectStore("saves", {
  1767. keyPath: "slot"
  1768. })
  1769. }
  1770. function s(c, e, m, f) {
  1771. var a = indexedDB.open("_C2SaveStates");
  1772. a.onupgradeneeded = b;
  1773. a.onerror = f;
  1774. a.onsuccess = function(a) {
  1775. a =
  1776. a.target.result;
  1777. a.onerror = f;
  1778. a.transaction(["saves"], "readwrite").objectStore("saves").put({
  1779. slot: c,
  1780. data: e
  1781. }).onsuccess = m
  1782. }
  1783. }
  1784. function g(c, e, m) {
  1785. var f = indexedDB.open("_C2SaveStates");
  1786. f.onupgradeneeded = b;
  1787. f.onerror = m;
  1788. f.onsuccess = function(f) {
  1789. f = f.target.result;
  1790. f.onerror = m;
  1791. var a = f.transaction(["saves"]).objectStore("saves").get(c);
  1792. a.onsuccess = function() {
  1793. a.result ? e(a.result.data) : e(null)
  1794. }
  1795. }
  1796. }
  1797. function d() {
  1798. J("Reloading for continuous preview");
  1799. window.c2cocoonjs ? CocoonJS.App.reload() : -1 < window.location.search.indexOf("continuous") ?
  1800. window.location.reload(!0) : window.location += "?continuous"
  1801. }
  1802. function u(c) {
  1803. var e, m = {};
  1804. for (e in c) !c.hasOwnProperty(e) || c[e] instanceof ba || c[e] && "undefined" !== typeof c[e].gw || (m[e] = c[e]);
  1805. return m
  1806. }
  1807. a.prototype.wu = function() {
  1808. var c = this,
  1809. e;
  1810. e = this.Pf ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest;
  1811. var m = "data.js";
  1812. if (this.ho || this.Pf || this.Oi) m = "data.json";
  1813. e.open("GET", m, !0);
  1814. var f = !1;
  1815. if (!this.ya && "response" in e && "responseType" in e) try {
  1816. e.responseType = "json", f = "json" === e.responseType
  1817. } catch (a) {
  1818. f = !1
  1819. }
  1820. if (!f &&
  1821. "responseType" in e) try {
  1822. e.responseType = "text"
  1823. } catch (h) {}
  1824. if ("overrideMimeType" in e) try {
  1825. e.overrideMimeType("application/json; charset=utf-8")
  1826. } catch (b) {}
  1827. this.Pf ? e.onreadystatechange = function() {
  1828. 4 === e.readyState && c.dj(JSON.parse(e.responseText))
  1829. } : (e.onload = function() {
  1830. if (f) c.dj(e.response);
  1831. else if (c.Ec) {
  1832. var m = e.responseText,
  1833. m = m.substr(m.indexOf("{"));
  1834. c.dj(JSON.parse(m))
  1835. } else c.dj(JSON.parse(e.responseText))
  1836. }, e.onerror = function(c) {
  1837. da("Error requesting " + m + ":");
  1838. da(c)
  1839. });
  1840. e.send()
  1841. };
  1842. a.prototype.At = function() {
  1843. var c =
  1844. this,
  1845. e, m, f, a, h, b, l, q, p;
  1846. this.devicePixelRatio = (this.Ye = (!this.ya || this.Ec) && this.Yu && !this.Ni) ? window.devicePixelRatio || window.webkitDevicePixelRatio || window.mozDevicePixelRatio || window.msDevicePixelRatio || 1 : 1;
  1847. this.xb();
  1848. m = !(!this.Ms && (!this.nk || this.ue || this.ql || this.Pf || this.$g || this.sc || this.bo));
  1849. 0 < this.Xb && this.setSize(k(), r(), !0);
  1850. try {
  1851. this.hs && (this.rc || this.Ec || !this.ya) && (e = {
  1852. alpha: m,
  1853. depth: !1,
  1854. antialias: !1,
  1855. failIfMajorPerformanceCaveat: !0
  1856. }, this.p = this.canvas.getContext("webgl", e) || this.canvas.getContext("experimental-webgl",
  1857. e))
  1858. } catch (d) {}
  1859. if (this.p) {
  1860. this.ya || (this.ub = document.createElement("canvas"), jQuery(this.ub).appendTo(this.canvas.parentNode), this.ub.oncontextmenu = function() {
  1861. return !1
  1862. }, this.ub.onselectstart = function() {
  1863. return !1
  1864. }, this.ub.width = this.pi, this.ub.height = this.oi, jQuery(this.ub).css({
  1865. width: this.pi + "px",
  1866. height: this.oi + "px"
  1867. }), this.lp(), this.Ul = this.ub.getContext("2d"));
  1868. this.u = new lb(this.p, this.ld);
  1869. this.u.kg(this.canvas.width, this.canvas.height);
  1870. this.u.Bn = 0 !== this.bs;
  1871. this.ka = null;
  1872. this.canvas.addEventListener("webglcontextlost",
  1873. function(e) {
  1874. e.preventDefault();
  1875. c.Wt();
  1876. J("[Construct 2] WebGL context lost");
  1877. window.cr_setSuspended(!0)
  1878. }, !1);
  1879. this.canvas.addEventListener("webglcontextrestored", function() {
  1880. c.u.Xn();
  1881. c.u.kg(c.u.width, c.u.height, !0);
  1882. c.vc = null;
  1883. c.$b = null;
  1884. c.Pk[0] = null;
  1885. c.Pk[1] = null;
  1886. c.Xt();
  1887. c.aa = !0;
  1888. J("[Construct 2] WebGL context restored");
  1889. window.cr_setSuspended(!1)
  1890. }, !1);
  1891. e = 0;
  1892. for (m = this.r.length; e < m; e++)
  1893. for (h = this.r[e], f = 0, a = h.J.length; f < a; f++) l = h.J[f], l.wb = this.u.$k(l.id), this.rg = this.rg || this.u.Ch(l.wb);
  1894. e = 0;
  1895. for (m = this.Tc.length; e <
  1896. m; e++) {
  1897. q = this.Tc[e];
  1898. f = 0;
  1899. for (a = q.J.length; f < a; f++) l = q.J[f], l.wb = this.u.$k(l.id);
  1900. f = 0;
  1901. for (a = q.P.length; f < a; f++)
  1902. for (p = q.P[f], h = 0, b = p.J.length; h < b; h++) l = p.J[h], l.wb = this.u.$k(l.id), this.rg = this.rg || this.u.Ch(l.wb)
  1903. }
  1904. } else {
  1905. if (0 < this.Xb && this.tb) {
  1906. this.canvas = null;
  1907. document.oncontextmenu = function() {
  1908. return !1
  1909. };
  1910. document.onselectstart = function() {
  1911. return !1
  1912. };
  1913. this.ka = AppMobi.canvas.getContext("2d");
  1914. try {
  1915. this.ka.samplingMode = this.ca ? "smooth" : "sharp", this.ka.globalScale = 1, this.ka.HTML5CompatibilityMode = !0, this.ka.imageSmoothingEnabled =
  1916. this.ca
  1917. } catch (A) {}
  1918. 0 !== this.width && 0 !== this.height && (this.ka.width = this.width, this.ka.height = this.height)
  1919. }
  1920. this.ka || (e = this.rc ? {
  1921. antialias: !!this.ca,
  1922. alpha: m
  1923. } : {
  1924. alpha: m
  1925. }, this.ka = this.canvas.getContext("2d", e), this.ka.webkitImageSmoothingEnabled = this.ca, this.ka.mozImageSmoothingEnabled = this.ca, this.ka.msImageSmoothingEnabled = this.ca, this.ka.imageSmoothingEnabled = this.ca);
  1926. this.Ul = this.ub = null
  1927. }
  1928. this.Tj = function() {
  1929. c.qb(!1)
  1930. };
  1931. window == window.top || this.ya || this.ql || this.Pf || (document.addEventListener("mousedown",
  1932. function() {
  1933. window.focus()
  1934. }, !0), document.addEventListener("touchstart", function() {
  1935. window.focus()
  1936. }, !0));
  1937. "undefined" !== typeof cr_is_preview && (this.rc && console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"), -1 < window.location.search.indexOf("continuous") && (J("Reloading for continuous preview"), this.bj = "__c2_continuouspreview", this.Oh = !0), this.fu && !this.ld && (jQuery(window).focus(function() {
  1938. c.setSuspended(!1)
  1939. }), jQuery(window).blur(function() {
  1940. c.setSuspended(!0)
  1941. })));
  1942. this.ya || (e = function(c) {
  1943. if (kb(c) &&
  1944. document.activeElement && document.activeElement !== document.getElementsByTagName("body")[0] && document.activeElement.blur) try {
  1945. document.activeElement.blur()
  1946. } catch (e) {}
  1947. }, window.navigator.pointerEnabled ? document.addEventListener("pointerdown", e) : window.navigator.msPointerEnabled ? document.addEventListener("MSPointerDown", e) : document.addEventListener("touchstart", e), document.addEventListener("mousedown", e));
  1948. 0 === this.Xb && this.Ye && 1 < this.devicePixelRatio && this.setSize(this.eb, this.cb, !0);
  1949. this.Op();
  1950. this.pt();
  1951. this.go();
  1952. this.R = {}
  1953. };
  1954. a.prototype.setSize = function(c, e, m) {
  1955. var f = 0,
  1956. a = 0,
  1957. h = 0,
  1958. b = 0,
  1959. b = 0,
  1960. l = this.Mt && this.eo && !navigator.standalone && !this.ya && !this.sc;
  1961. l && (e += 60);
  1962. if (this.ih !== c || this.hh !== e || m) {
  1963. this.ih = c;
  1964. this.hh = e;
  1965. var q = this.Xb,
  1966. p = (document.mozFullScreen || document.webkitIsFullScreen || !!document.msFullscreenElement || document.fullScreen || this.ah) && !this.sc;
  1967. if (p || 0 !== this.Xb || m) p && 0 < this.Re && (q = this.Re), m = this.devicePixelRatio, 4 <= q ? (h = this.eb / this.cb, c / e > h ? (h *= e, 5 === q ? (b = h * m / this.eb, 1 < b ? b = Math.floor(b) : 1 > b &&
  1968. (b = 1 / Math.ceil(1 / b)), h = this.eb * b / m, b = this.cb * b / m, f = (c - h) / 2, a = (e - b) / 2, c = h, e = b) : (f = (c - h) / 2, c = h)) : (b = c / h, 5 === q ? (b = b * m / this.cb, 1 < b ? b = Math.floor(b) : 1 > b && (b = 1 / Math.ceil(1 / b)), h = this.eb * b / m, b = this.cb * b / m, f = (c - h) / 2, a = (e - b) / 2, c = h) : a = (e - b) / 2, e = b), p && !this.ue && (a = f = 0)) : this.ue && this.ah && 0 === this.In && (f = Math.floor((c - this.eb) / 2), a = Math.floor((e - this.cb) / 2), c = this.eb, e = this.cb), 2 > q && (this.yg = m), this.Ye && this.jo && 1 < m && (1024 <= c && (c = 1023), 1024 <= e && (e = 1023)), this.pi = Math.round(c), this.oi = Math.round(e), this.width =
  1969. Math.round(c * m), this.height = Math.round(e * m), this.aa = !0, this.aq ? (this.O = this.width, this.N = this.height, this.Dc = !0) : this.width < this.eb && this.height < this.cb || 1 === q ? (this.O = this.width, this.N = this.height, this.Dc = !0) : (this.O = this.eb, this.N = this.cb, this.Dc = !1, 2 === q ? (h = this.eb / this.cb, q = this.ih / this.hh, q < h ? this.O = this.N * q : q > h && (this.N = this.O / q)) : 3 === q && (h = this.eb / this.cb, q = this.ih / this.hh, q > h ? this.O = this.N * q : q < h && (this.N = this.O / q))), this.rn && !this.ya && (jQuery(this.rn).css({
  1970. width: Math.round(c) + "px",
  1971. height: Math.round(e) +
  1972. "px",
  1973. "margin-left": Math.floor(f) + "px",
  1974. "margin-top": Math.floor(a) + "px"
  1975. }), "undefined" !== typeof cr_is_preview && jQuery("#borderwrap").css({
  1976. width: Math.round(c) + "px",
  1977. height: Math.round(e) + "px"
  1978. })), this.canvas && (this.canvas.width = Math.round(c * m), this.canvas.height = Math.round(e * m), this.Ec ? (this.canvas.style.left = Math.floor(f) + "px", this.canvas.style.top = Math.floor(a) + "px", this.canvas.style.width = Math.round(c) + "px", this.canvas.style.height = Math.round(e) + "px") : this.Ye && !this.ya && jQuery(this.canvas).css({
  1979. width: Math.round(c) +
  1980. "px",
  1981. height: Math.round(e) + "px"
  1982. })), this.ub && (this.ub.width = Math.round(c), this.ub.height = Math.round(e), jQuery(this.ub).css({
  1983. width: Math.round(c) + "px",
  1984. height: Math.round(e) + "px"
  1985. })), this.u && this.u.kg(Math.round(c * m), Math.round(e * m)), this.tb && this.ka && (this.ka.width = Math.round(c), this.ka.height = Math.round(e)), this.ka && (this.ka.webkitImageSmoothingEnabled = this.ca, this.ka.mozImageSmoothingEnabled = this.ca, this.ka.msImageSmoothingEnabled = this.ca, this.ka.imageSmoothingEnabled = this.ca), this.Op(), this.ya || !l &&
  1986. !this.sl || window.setTimeout(function() {
  1987. window.scrollTo(0, 1)
  1988. }, 100)
  1989. }
  1990. };
  1991. a.prototype.Op = function() {
  1992. /*if (this.Cr && 0 !== this.Sl) {
  1993. var c = "portrait";
  1994. 2 === this.Sl && (c = "landscape");
  1995. screen.orientation && screen.orientation.lock ? screen.orientation.lock(c) : screen.lockOrientation ? screen.lockOrientation(c) : screen.webkitLockOrientation ? screen.webkitLockOrientation(c) : screen.mozLockOrientation ? screen.mozLockOrientation(c) : screen.msLockOrientation && screen.msLockOrientation(c)
  1996. }*/
  1997. };
  1998. a.prototype.Wt = function() {
  1999. this.u.Kr();
  2000. this.rl = !0;
  2001. var c, e, m;
  2002. c = 0;
  2003. for (e = this.r.length; c < e; c++) m = this.r[c], m.mj && m.mj()
  2004. };
  2005. a.prototype.Xt = function() {
  2006. this.rl = !1;
  2007. var c, e, m;
  2008. c = 0;
  2009. for (e = this.r.length; c < e; c++) m = this.r[c], m.Ql && m.Ql()
  2010. };
  2011. a.prototype.lp = function() {
  2012. if (!this.ya) {
  2013. var c = (document.mozFullScreen || document.webkitIsFullScreen || document.fullScreen || document.msFullscreenElement || this.ah) && !this.sc ? jQuery(this.canvas).offset() : jQuery(this.canvas).position();
  2014. c.position = "absolute";
  2015. jQuery(this.ub).css(c)
  2016. }
  2017. };
  2018. var t = window.cancelAnimationFrame || window.mozCancelAnimationFrame ||
  2019. window.webkitCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;
  2020. a.prototype.setSuspended = function(c) {
  2021. var e;
  2022. if (c && !this.bh)
  2023. for (J("[Construct 2] Suspending"), this.bh = !0, -1 !== this.Aj && t && t(this.Aj), -1 !== this.Uj && clearTimeout(this.Uj), c = 0, e = this.Ph.length; c < e; c++) this.Ph[c](!0);
  2024. else if (!c && this.bh) {
  2025. J("[Construct 2] Resuming");
  2026. this.bh = !1;
  2027. this.Xi = Ya();
  2028. this.df = Ya();
  2029. c = this.rh = this.Gi = 0;
  2030. for (e = this.Ph.length; c < e; c++) this.Ph[c](!1);
  2031. this.qb(!1)
  2032. }
  2033. };
  2034. a.prototype.en = function(c) {
  2035. this.Ph.push(c)
  2036. };
  2037. a.prototype.ee = function(c) {
  2038. return this.kj[c]
  2039. };
  2040. a.prototype.dj = function(c) {
  2041. c && c.project || da("Project model unavailable");
  2042. c = c.project;
  2043. this.name = c[0];
  2044. this.Hn = c[1];
  2045. this.Xb = c[12];
  2046. this.In = c[12];
  2047. this.eb = c[10];
  2048. this.cb = c[11];
  2049. this.hp = this.eb / 2;
  2050. this.ip = this.cb / 2;
  2051. this.ya && !this.Ec && (4 <= c[12] || 0 === c[12]) && (J("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"), this.In = this.Xb = 3);
  2052. this.Gm = c[18];
  2053. this.kh = c[19];
  2054. 0 === this.kh && (this.Wf = new Image, this.Wf.src =
  2055. "loading-logo.png");
  2056. this.vh = c[21];
  2057. this.kj = jc();
  2058. this.vd = new X(this);
  2059. var e, m, f, a, h, b, l, q, p;
  2060. e = 0;
  2061. for (m = c[2].length; e < m; e++) l = c[2][e], f = this.ee(l[0]), mb(l, f.prototype), p = new f(this), p.Kj = l[1], p.ve = l[2], p.Mo = l[9], p.W && p.W(), this.plugins.push(p);
  2062. this.kj = jc();
  2063. e = 0;
  2064. for (m = c[3].length; e < m; e++) {
  2065. l = c[3][e];
  2066. h = this.ee(l[1]);
  2067. p = null;
  2068. f = 0;
  2069. for (a = this.plugins.length; f < a; f++)
  2070. if (this.plugins[f] instanceof h) {
  2071. p = this.plugins[f];
  2072. break
  2073. }
  2074. var d = new p.Fa(p);
  2075. d.name = l[0];
  2076. d.K = l[2];
  2077. d.ll = l[3].slice(0);
  2078. d.$u = l[3].length;
  2079. d.Dr = l[4];
  2080. d.Os = l[5];
  2081. d.U = l[11];
  2082. d.K ? (d.$f = [], d.Od = this.Jg++, d.Da = null) : (d.$f = null, d.Od = -1, d.Da = []);
  2083. d.Bi = null;
  2084. d.Jf = null;
  2085. d.Dn = null;
  2086. d.tc = !1;
  2087. d.Vb = null;
  2088. l[6] ? (d.wm = l[6][0], d.Jp = l[6][1], d.xm = l[6][2]) : (d.wm = null, d.Jp = 0, d.xm = 0);
  2089. d.Ub = l[7] ? l[7] : null;
  2090. d.index = e;
  2091. d.d = [];
  2092. d.ti = [];
  2093. d.Ee = [new nb(d)];
  2094. d.Ld = 0;
  2095. d.Ac = null;
  2096. d.Qr = 0;
  2097. d.ng = !0;
  2098. d.Zj = ob;
  2099. d.Nn = pb;
  2100. d.Ws = qb;
  2101. d.Y = rb;
  2102. d.Eh = sb;
  2103. d.wj = tb;
  2104. d.nf = vb;
  2105. d.Ii = wb;
  2106. d.Rk = xb;
  2107. d.Wk = yb;
  2108. d.wc = zb;
  2109. d.On = Ab;
  2110. d.li = new eb(this.eb, this.cb);
  2111. d.Zh = !0;
  2112. d.$h = !1;
  2113. d.R = {};
  2114. d.toString = Bb;
  2115. d.Qa = [];
  2116. f = 0;
  2117. for (a = l[8].length; f < a; f++) {
  2118. q = l[8][f];
  2119. var A = this.ee(q[1]),
  2120. w = null;
  2121. h = 0;
  2122. for (b = this.Qa.length; h < b; h++)
  2123. if (this.Qa[h] instanceof A) {
  2124. w = this.Qa[h];
  2125. break
  2126. }
  2127. w || (w = new A(this), w.Jl = [], w.jj = new ba, w.W && w.W(), this.Qa.push(w), bc.Lu && w instanceof bc.Lu && (this.Fp = w)); - 1 === w.Jl.indexOf(d) && w.Jl.push(d);
  2128. h = new w.Fa(w, d);
  2129. h.name = q[0];
  2130. h.U = q[2];
  2131. h.W();
  2132. d.Qa.push(h)
  2133. }
  2134. d.global = l[9];
  2135. d.ol = l[10];
  2136. d.J = [];
  2137. f = 0;
  2138. for (a = l[12].length; f < a; f++) d.J.push({
  2139. id: l[12][f][0],
  2140. name: l[12][f][1],
  2141. wb: -1,
  2142. lc: !0,
  2143. index: f
  2144. });
  2145. d.vw = l[13];
  2146. this.Gm && !d.K && !d.ol && p.ve || d.W();
  2147. d.name && (this.types[d.name] =
  2148. d);
  2149. this.r.push(d);
  2150. p.Kj && (f = new p.wa(d), f.uid = this.vh++, f.op = this.Po++, f.We = 0, f.Qg = Cb, f.toString = Db, f.C = l[14], f.W(), d.d.push(f), this.ye[f.uid.toString()] = f)
  2151. }
  2152. e = 0;
  2153. for (m = c[4].length; e < m; e++)
  2154. for (h = c[4][e], b = this.r[h[0]], f = 1, a = h.length; f < a; f++) l = this.r[h[f]], l.Da.push(b), b.$f.push(l);
  2155. e = 0;
  2156. for (m = c[27].length; e < m; e++) {
  2157. h = c[27][e];
  2158. b = [];
  2159. f = 0;
  2160. for (a = h.length; f < a; f++) b.push(this.r[h[f]]);
  2161. f = 0;
  2162. for (a = b.length; f < a; f++) b[f].tc = !0, b[f].Vb = b
  2163. }
  2164. if (0 < this.Jg)
  2165. for (e = 0, m = this.r.length; e < m; e++)
  2166. if (l = this.r[e], !l.K && l.Da.length) {
  2167. l.Bi =
  2168. Array(this.Jg);
  2169. l.Jf = Array(this.Jg);
  2170. l.Dn = Array(this.Jg);
  2171. d = [];
  2172. f = w = A = q = 0;
  2173. for (a = l.Da.length; f < a; f++)
  2174. for (p = l.Da[f], l.Bi[p.Od] = q, q += p.$u, l.Jf[p.Od] = A, A += p.Dr, l.Dn[p.Od] = w, w += p.Os, h = 0, b = p.J.length; h < b; h++) d.push(xa({}, p.J[h]));
  2175. l.J = d.concat(l.J);
  2176. f = 0;
  2177. for (a = l.J.length; f < a; f++) l.J[f].index = f
  2178. }
  2179. e = 0;
  2180. for (m = c[5].length; e < m; e++) l = c[5][e], f = new Eb(this, l), this.xl[f.name] = f, this.Tc.push(f);
  2181. e = 0;
  2182. for (m = c[6].length; e < m; e++) l = c[6][e], f = new Fb(this, l), this.Hk[f.name] = f, this.Nd.push(f);
  2183. e = 0;
  2184. for (m = this.Nd.length; e < m; e++) this.Nd[e].Oa();
  2185. e = 0;
  2186. for (m = this.Nd.length; e < m; e++) this.Nd[e].Vp();
  2187. e = 0;
  2188. for (m = this.Yj.length; e < m; e++) this.Yj[e].Oa();
  2189. this.Yj.length = 0;
  2190. this.Br = c[7];
  2191. this.Di = c[8];
  2192. this.rd = c[9];
  2193. this.yg = 1;
  2194. this.hs = c[13];
  2195. this.ca = c[14];
  2196. this.nk = c[15];
  2197. this.Yu = c[17];
  2198. this.Sl = c[20];
  2199. this.Cr = 0 < this.Sl;
  2200. this.fu = c[22];
  2201. this.Dc = this.aq = c[23];
  2202. this.bs = c[24];
  2203. this.lu = c[25];
  2204. this.Mj = Date.now();
  2205. this.kj.length = 0;
  2206. this.At()
  2207. };
  2208. var n = !1;
  2209. a.prototype.$p = function(c, e) {
  2210. c.cocoonLazyLoad = !0;
  2211. c.onerror = function(e) {
  2212. n = c.nn = !0;
  2213. console && console.error && console.error("Error loading image '" +
  2214. c.src + "': ", e)
  2215. };
  2216. this.Ec ? c.src = e : c.src || ("undefined" !== typeof XAPKReader ? XAPKReader.get(e, function(e) {
  2217. c.src = e
  2218. }, function(m) {
  2219. n = c.nn = !0;
  2220. console && console.error && console.error("Error extracting image '" + e + "' from expansion file: ", m)
  2221. }) : c.src = e);
  2222. this.ug.push(c)
  2223. };
  2224. a.prototype.Ls = function(c) {
  2225. var e, m;
  2226. e = 0;
  2227. for (m = this.ug.length; e < m; e++)
  2228. if (this.ug[e].Mr === c) return this.ug[e];
  2229. return null
  2230. };
  2231. var f = 0,
  2232. p = !1;
  2233. a.prototype.pt = function() {
  2234. this.Df && (f = this.Df.Iu(this.Br))
  2235. };
  2236. a.prototype.kn = function() {
  2237. var c = f,
  2238. e = 0,
  2239. m = 0,
  2240. a = !0,
  2241. h, b, m =
  2242. 0;
  2243. for (h = this.ug.length; m < h; m++) {
  2244. b = this.ug[m];
  2245. var l = b.Lr;
  2246. if (!l || 0 >= l) l = 5E4;
  2247. c += l;
  2248. b.src && (b.complete || b.loaded) && !b.nn ? e += l : a = !1
  2249. }
  2250. a && this.lu && this.Df && (p || (this.Df.Nu(), p = !0), m = this.Df.Xs(), e += m, m < f && (a = !1));
  2251. this.of = 0 == c ? 0 : e / c;
  2252. return a
  2253. };
  2254. a.prototype.go = function() {
  2255. if (this.ka || this.u) {
  2256. var c = this.ka || this.Ul;
  2257. this.ub && this.lp();
  2258. this.of = 0;
  2259. this.oo = -1;
  2260. if (this.kn()) this.qt();
  2261. else {
  2262. var e = Date.now() - this.Mj;
  2263. if (c) {
  2264. var m = this.width,
  2265. f = this.height,
  2266. a = this.devicePixelRatio;
  2267. this.ub && (m = this.pi, f = this.oi, a = 1);
  2268. if (3 !== this.kh &&
  2269. (this.rc || 500 <= e && this.oo != this.of)) {
  2270. c.clearRect(0, 0, m, f);
  2271. var e = m / 2,
  2272. f = f / 2,
  2273. m = 0 === this.kh && this.Wf.complete,
  2274. h = 40 * a,
  2275. b = 0,
  2276. l = 80 * a,
  2277. q;
  2278. m && (l = this.Wf.width * a, q = this.Wf.height * a, h = l / 2, b = q / 2, c.drawImage(this.Wf, S(e - h), S(f - b), l, q));
  2279. 1 >= this.kh ? (e = S(e - h) + .5, f = S(f + (b + (m ? 12 * a : 0))) + .5, c.fillStyle = n ? "red" : "DodgerBlue", c.fillRect(e, f, Math.floor(l * this.of), 6 * a), c.strokeStyle = "black", c.strokeRect(e, f, l, 6 * a), c.strokeStyle = "white", c.strokeRect(e - 1 * a, f - 1 * a, l + 2 * a, 8 * a)) : 2 === this.kh && (c.font = this.Ec ? "12pt ArialMT" : "12pt Arial",
  2280. c.fillStyle = n ? "#f00" : "#999", c.uw = "middle", a = Math.round(100 * this.of) + "%", m = c.measureText ? c.measureText(a) : null, c.fillText(a, e - (m ? m.width : 0) / 2, f))
  2281. }
  2282. this.oo = this.of
  2283. }
  2284. setTimeout(function(c) {
  2285. return function() {
  2286. c.go()
  2287. }
  2288. }(this), this.rc ? 10 : 100)
  2289. }
  2290. }
  2291. };
  2292. a.prototype.qt = function() {
  2293. this.ub && (this.canvas.parentNode.removeChild(this.ub), this.ub = this.Ul = null);
  2294. this.Mj = Date.now();
  2295. this.df = Ya();
  2296. var c, e, m;
  2297. if (this.Gm)
  2298. for (c = 0, e = this.r.length; c < e; c++) m = this.r[c], m.K || m.ol || !m.qa.ve || m.W();
  2299. else this.fh = !1;
  2300. c = 0;
  2301. for (e = this.Tc.length; c <
  2302. e; c++) this.Tc[c].Nr();
  2303. 2 <= this.Xb && (c = this.eb / this.cb, e = this.width / this.height, this.yg = 2 !== this.Xb && e > c || 2 === this.Xb && e < c ? this.height / this.cb : this.width / this.eb);
  2304. this.Hn ? this.xl[this.Hn].rm() : this.Tc[0].rm();
  2305. this.Gm || (this.Xf = 1, this.trigger(X.prototype.k.Rm, null));
  2306. navigator.splashscreen && navigator.splashscreen.hide && navigator.splashscreen.hide();
  2307. c = 0;
  2308. for (e = this.r.length; c < e; c++) m = this.r[c], m.Vt && m.Vt();
  2309. document.hidden || document.webkitHidden || document.mozHidden || document.msHidden ? window.cr_setSuspended(!0) :
  2310. this.qb(!1);
  2311. this.tb && AppMobi.webview.execute("onGameReady();")
  2312. };
  2313. var x = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame;
  2314. a.prototype.qb = function(c) {
  2315. if (this.za) {
  2316. var e = Ya();
  2317. if (this.tt && this.am && 29 > e - this.ul) this.am = !1, this.ul = e, x ? this.Aj = x(this.Tj, this.canvas) : this.Uj = setTimeout(this.Tj, this.ld ? 1 : 16);
  2318. else {
  2319. this.am = !0;
  2320. this.ul = e;
  2321. var m = this.Xb,
  2322. f = (document.mozFullScreen || document.webkitIsFullScreen ||
  2323. document.fullScreen || !!document.msFullscreenElement) && !this.sc;
  2324. (f || this.ah) && 0 < this.Re && (m = this.Re);
  2325. 0 < m && (!this.Si || window.self !== window.top) && (m = window.innerHeight, this.ih === window.innerWidth && this.hh === m || this.setSize(k(), r()));
  2326. this.ya || (f ? (this.Ei || (this.Ok = jQuery(this.canvas).css("margin") || "0", this.Ei = !0), this.Zg || this.ue || jQuery(this.canvas).css({
  2327. "margin-left": "" + Math.floor((screen.width - this.width / this.devicePixelRatio) / 2) + "px",
  2328. "margin-top": "" + Math.floor((screen.height - this.height / this.devicePixelRatio) /
  2329. 2) + "px"
  2330. })) : this.Ei ? (this.Zg || this.ue || jQuery(this.canvas).css("margin", this.Ok), this.Ok = "", this.Ei = !1, 0 === this.Xb && this.setSize(Math.round(this.Vo / this.devicePixelRatio), Math.round(this.Uo / this.devicePixelRatio), !0)) : (this.Vo = this.width, this.Uo = this.height));
  2331. this.fh && (f = this.kn(), this.Xf = this.of, f && (this.fh = !1, this.of = 1, this.trigger(X.prototype.k.Rm, null)));
  2332. this.Qt();
  2333. !this.aa && !this.rc || this.rl || this.Oh || c || (this.aa = !1, this.u ? this.Cc() : this.ed(), this.Lj && (this.canvas && this.canvas.toDataURL && (this.canvas.toDataURL(this.Lj[0],
  2334. this.Lj[1]), this.trigger(X.prototype.k.Bq, null)), this.Lj = null));
  2335. this.nw || (this.xd++, this.Ig++, this.Gi++);
  2336. this.rh += Ya() - e;
  2337. this.bh || c || (x ? this.Aj = x(this.Tj, this.canvas) : this.Uj = setTimeout(this.Tj, this.ld ? 1 : 16))
  2338. }
  2339. }
  2340. };
  2341. a.prototype.Qt = function() {
  2342. var c, e, m, f, a, h, l, b, q;
  2343. c = Ya();
  2344. 1E3 <= c - this.df && (this.df += 1E3, 1E3 <= c - this.df && (this.df = c), this.Nk = this.Gi, this.Gi = 0, this.yk = this.rh, this.rh = 0);
  2345. this.Jo && (0 !== this.Xi && (e = c - this.Xi, 0 !== e || this.Et ? (this.Md = e / 1E3, .5 < this.Md ? this.Md = 0 : .1 < this.Md && (this.Md = .1)) : (10 <= this.xw &&
  2346. (this.Jo = !1), this.Md = 1 / 60)), this.Xi = c);
  2347. this.Pe = this.Md * this.vf;
  2348. this.Gb.add(this.Pe);
  2349. this.Bd.add(this.Md);
  2350. c = (document.mozFullScreen || document.webkitIsFullScreen || document.fullScreen || !!document.msFullscreenElement || this.ah) && !this.sc;
  2351. 2 <= this.Xb || c && 0 < this.Re ? (e = this.eb / this.cb, m = this.width / this.height, f = this.Xb, c && 0 < this.Re && (f = this.Re), this.yg = 2 !== f && m > e || 2 === f && m < e ? this.height / this.cb : this.width / this.eb, this.za && (this.za.lm(this.za.scrollX), this.za.mm(this.za.scrollY))) : this.yg = this.Ye ? this.devicePixelRatio :
  2352. 1;
  2353. this.xb();
  2354. this.Rc++;
  2355. this.vd.zu();
  2356. this.Rc--;
  2357. this.xb();
  2358. this.Rc++;
  2359. m = this.To.be();
  2360. c = 0;
  2361. for (e = m.length; c < e; c++) m[c].pw();
  2362. c = 0;
  2363. for (e = this.r.length; c < e; c++)
  2364. if (l = this.r[c], !l.K && (l.Qa.length || l.Da.length))
  2365. for (m = 0, f = l.d.length; m < f; m++)
  2366. for (b = l.d[m], a = 0, h = b.L.length; a < h; a++) b.L[a].qb();
  2367. c = 0;
  2368. for (e = this.r.length; c < e; c++)
  2369. if (l = this.r[c], !l.K && (l.Qa.length || l.Da.length))
  2370. for (m = 0, f = l.d.length; m < f; m++)
  2371. for (b = l.d[m], a = 0, h = b.L.length; a < h; a++) q = b.L[a], q.ku && q.ku();
  2372. m = this.Ll.be();
  2373. c = 0;
  2374. for (e = m.length; c < e; c++) m[c].qb();
  2375. this.Rc--;
  2376. this.ut();
  2377. for (c = 0; this.Cg && 10 > c++;) this.An(this.Cg);
  2378. c = 0;
  2379. for (e = this.Nd.length; c < e; c++) this.Nd[c].fl = !1;
  2380. this.za.Gg && this.za.Gg.Va();
  2381. this.Bj.length = 0;
  2382. this.Rc++;
  2383. c = 0;
  2384. for (e = this.r.length; c < e; c++)
  2385. if (l = this.r[c], !l.K && (l.Qa.length || l.Da.length))
  2386. for (m = 0, f = l.d.length; m < f; m++)
  2387. for (b = l.d[m], a = 0, h = b.L.length; a < h; a++) q = b.L[a], q.Rh && q.Rh();
  2388. m = this.Ml.be();
  2389. c = 0;
  2390. for (e = m.length; c < e; c++) m[c].Rh();
  2391. this.Rc--
  2392. };
  2393. a.prototype.An = function(c) {
  2394. var e = this.za;
  2395. this.za.Ou();
  2396. var f, a, h, l, b, q, d;
  2397. if (this.u)
  2398. for (f = 0, a = this.r.length; f < a; f++) b =
  2399. this.r[f], b.K || !b.Cm || b.global && 0 !== b.d.length || -1 !== c.Xg.indexOf(b) || b.Cm();
  2400. e == c && (this.vd.Sb.length = 0);
  2401. c.rm();
  2402. f = 0;
  2403. for (a = this.r.length; f < a; f++)
  2404. if (b = this.r[f], b.global || b.qa.Kj)
  2405. for (c = 0, e = b.d.length; c < e; c++)
  2406. if (q = b.d[c], q.Pl && q.Pl(), q.L)
  2407. for (h = 0, l = q.L.length; h < l; h++) d = q.L[h], d.Pl && d.Pl();
  2408. this.aa = !0;
  2409. this.xb()
  2410. };
  2411. a.prototype.pg = function(c) {
  2412. this.Ll.add(c)
  2413. };
  2414. a.prototype.Qu = function(c) {
  2415. this.Ml.add(c)
  2416. };
  2417. a.prototype.Uk = function(c) {
  2418. return c && -1 !== c.uh ? this.Md * c.uh : this.Pe
  2419. };
  2420. a.prototype.ed = function() {
  2421. this.za.ed(this.ka);
  2422. this.tb && this.ka.present()
  2423. };
  2424. a.prototype.Cc = function() {
  2425. this.za.Cc(this.u);
  2426. this.u.nu()
  2427. };
  2428. a.prototype.mk = function(c) {
  2429. c && this.wi.push(c)
  2430. };
  2431. a.prototype.vu = function(c) {
  2432. Da(this.wi, c)
  2433. };
  2434. a.prototype.Ng = function(c) {
  2435. c = c.toString();
  2436. return this.ye.hasOwnProperty(c) ? this.ye[c] : null
  2437. };
  2438. var h = [];
  2439. a.prototype.Ie = function(c) {
  2440. var e, f;
  2441. e = c.type.name;
  2442. var a = null;
  2443. if (this.Ne.hasOwnProperty(e)) {
  2444. if (a = this.Ne[e], a.contains(c)) return
  2445. } else a = h.length ? h.pop() : new ba, this.Ne[e] = a;
  2446. a.add(c);
  2447. this.re = !0;
  2448. if (c.tc)
  2449. for (e = 0, f = c.siblings.length; e <
  2450. f; e++) this.Ie(c.siblings[e]);
  2451. this.nl && a.sg.push(c);
  2452. this.Rc++;
  2453. this.trigger(Object.getPrototypeOf(c.type.qa).k.Dq, c);
  2454. this.Rc--
  2455. };
  2456. a.prototype.xb = function() {
  2457. if (this.re) {
  2458. var c, e, f, a, h, l;
  2459. this.nl = !0;
  2460. f = 0;
  2461. for (h = this.Qc.length; f < h; ++f)
  2462. for (c = this.Qc[f], e = c.type, e.d.push(c), a = 0, l = e.Da.length; a < l; ++a) e.Da[a].d.push(c), e.Da[a].ng = !0;
  2463. this.Qc.length = 0;
  2464. this.tq();
  2465. Xa(this.Ne);
  2466. this.re = this.nl = !1
  2467. }
  2468. };
  2469. a.prototype.tq = function() {
  2470. for (var c in this.Ne) this.Ne.hasOwnProperty(c) && this.fq(this.Ne[c])
  2471. };
  2472. a.prototype.fq = function(c) {
  2473. var e =
  2474. c.be(),
  2475. f = e[0].type,
  2476. a, l, b, q, d, p;
  2477. Za(f.d, c);
  2478. f.ng = !0;
  2479. 0 === f.d.length && (f.$h = !1);
  2480. a = 0;
  2481. for (l = f.Da.length; a < l; ++a) p = f.Da[a], Za(p.d, c), p.ng = !0;
  2482. a = 0;
  2483. for (l = this.vd.Sb.length; a < l; ++a)
  2484. if (d = this.vd.Sb[a], d.Kb.hasOwnProperty(f.index) && Za(d.Kb[f.index].Qd, c), !f.K)
  2485. for (b = 0, q = f.Da.length; b < q; ++b) p = f.Da[b], d.Kb.hasOwnProperty(p.index) && Za(d.Kb[p.index].Qd, c);
  2486. if (d = e[0].i) {
  2487. if (d.ad)
  2488. for (b = d.d, a = 0, l = b.length; a < l; ++a) q = b[a], c.contains(q) && (q.na(), d.fc.update(q, q.Qb, null), q.Qb.set(0, 0, -1, -1));
  2489. Za(d.d, c);
  2490. d.Ih(0)
  2491. }
  2492. for (a = 0; a < e.length; ++a) this.dq(e[a],
  2493. f);
  2494. c.clear();
  2495. h.push(c);
  2496. this.aa = !0
  2497. };
  2498. a.prototype.dq = function(c, e) {
  2499. var f, a, h;
  2500. f = 0;
  2501. for (a = this.wi.length; f < a; ++f) this.wi[f](c);
  2502. c.me && e.li.update(c, c.me, null);
  2503. (f = c.i) && f.ig(c, !0);
  2504. if (c.L)
  2505. for (f = 0, a = c.L.length; f < a; ++f) h = c.L[f], h.fg && h.fg(), h.behavior.jj.remove(c);
  2506. this.To.remove(c);
  2507. this.Ll.remove(c);
  2508. this.Ml.remove(c);
  2509. c.fg && c.fg();
  2510. this.ye.hasOwnProperty(c.uid.toString()) && delete this.ye[c.uid.toString()];
  2511. this.lj--;
  2512. 100 > e.ti.length && e.ti.push(c)
  2513. };
  2514. a.prototype.wn = function(c, e, f, a) {
  2515. if (c.K) {
  2516. var h = S(Math.random() * c.$f.length);
  2517. return this.wn(c.$f[h], e, f, a)
  2518. }
  2519. return c.Ac ? this.ne(c.Ac, e, !1, f, a, !1) : null
  2520. };
  2521. var w = [];
  2522. a.prototype.ne = function(c, e, f, a, h, l) {
  2523. var b, q, d, p;
  2524. if (!c) return null;
  2525. var A = this.r[c[1]],
  2526. n = A.qa.ve;
  2527. if (this.fh && n && !A.ol || n && !this.u && 11 === c[0][11]) return null;
  2528. var k = e;
  2529. n || (e = null);
  2530. var g;
  2531. A.ti.length ? (g = A.ti.pop(), g.ec = !0, A.qa.wa.call(g, A)) : (g = new A.qa.wa(A), g.ec = !1);
  2532. g.uid = f && !l ? c[2] : this.vh++;
  2533. this.ye[g.uid.toString()] = g;
  2534. g.op = this.Po++;
  2535. g.We = A.d.length;
  2536. b = 0;
  2537. for (q = this.Qc.length; b < q; ++b) this.Qc[b].type === A && g.We++;
  2538. g.Qg = Cb;
  2539. g.toString =
  2540. Db;
  2541. d = c[3];
  2542. if (g.ec) Xa(g.R);
  2543. else {
  2544. g.R = {};
  2545. if ("undefined" !== typeof cr_is_preview)
  2546. for (g.$n = [], g.$n.length = d.length, b = 0, q = d.length; b < q; b++) g.$n[b] = d[b][1];
  2547. g.ab = [];
  2548. g.ab.length = d.length
  2549. }
  2550. b = 0;
  2551. for (q = d.length; b < q; b++) g.ab[b] = d[b][0];
  2552. if (n) {
  2553. var y = c[0];
  2554. g.x = ea(a) ? y[0] : a;
  2555. g.y = ea(h) ? y[1] : h;
  2556. g.z = y[2];
  2557. g.width = y[3];
  2558. g.height = y[4];
  2559. g.depth = y[5];
  2560. g.j = y[6];
  2561. g.opacity = y[7];
  2562. g.Mb = y[8];
  2563. g.Nb = y[9];
  2564. g.Lb = y[10];
  2565. b = y[11];
  2566. !this.u && A.J.length && (g.Lb = b);
  2567. g.Dg = gb(g.Lb);
  2568. this.p && hb(g, g.Lb, this.p);
  2569. if (g.ec) {
  2570. b = 0;
  2571. for (q = y[12].length; b < q; b++)
  2572. for (d = 0,
  2573. p = y[12][b].length; d < p; d++) g.Ha[b][d] = y[12][b][d];
  2574. g.La.set(0, 0, 0, 0);
  2575. g.me.set(0, 0, -1, -1);
  2576. g.Qb.set(0, 0, -1, -1);
  2577. g.Db.Jh(g.La);
  2578. g.rk.length = 0
  2579. } else {
  2580. g.Ha = y[12].slice(0);
  2581. b = 0;
  2582. for (q = g.Ha.length; b < q; b++) g.Ha[b] = y[12][b].slice(0);
  2583. g.ba = [];
  2584. g.fe = [];
  2585. g.fe.length = A.J.length;
  2586. g.La = new T(0, 0, 0, 0);
  2587. g.me = new T(0, 0, -1, -1);
  2588. g.Qb = new T(0, 0, -1, -1);
  2589. g.Db = new ua;
  2590. g.rk = [];
  2591. g.T = Gb;
  2592. g.fw = Hb;
  2593. g.yb = Ib;
  2594. g.na = Jb;
  2595. g.Xu = Kb;
  2596. g.Xp = Lb;
  2597. g.jd = Mb
  2598. }
  2599. g.Sh = !1;
  2600. g.Tu = 0;
  2601. g.Su = 0;
  2602. g.Ru = null;
  2603. 14 === y.length && (g.Sh = !0, g.Tu = y[13][0], g.Su = y[13][1], g.Ru = y[13][2]);
  2604. b = 0;
  2605. for (q =
  2606. A.J.length; b < q; b++) g.fe[b] = !0;
  2607. g.ae = Nb;
  2608. g.ae();
  2609. g.Yp = !!g.ba.length;
  2610. g.qk = !0;
  2611. g.tk = !0;
  2612. A.Zh = !0;
  2613. g.visible = !0;
  2614. g.uh = -1;
  2615. g.i = e;
  2616. g.bd = e.d.length;
  2617. "undefined" === typeof g.da && (g.da = null);
  2618. this.aa = g.Gd = !0
  2619. }
  2620. var x;
  2621. b = w.length = 0;
  2622. for (q = A.Da.length; b < q; b++) w.push.apply(w, A.Da[b].Qa);
  2623. w.push.apply(w, A.Qa);
  2624. if (g.ec)
  2625. for (b = 0, q = w.length; b < q; b++) {
  2626. var t = w[b];
  2627. x = g.L[b];
  2628. x.ec = !0;
  2629. t.behavior.wa.call(x, t, g);
  2630. y = c[4][b];
  2631. d = 0;
  2632. for (p = y.length; d < p; d++) x.C[d] = y[d];
  2633. x.W();
  2634. t.behavior.jj.add(g)
  2635. } else
  2636. for (g.L = [], b = 0, q = w.length; b < q; b++) t = w[b], x = new t.behavior.wa(t,
  2637. g), x.ec = !1, x.C = c[4][b].slice(0), x.W(), g.L.push(x), t.behavior.jj.add(g);
  2638. y = c[5];
  2639. if (g.ec)
  2640. for (b = 0, q = y.length; b < q; b++) g.C[b] = y[b];
  2641. else g.C = y.slice(0);
  2642. this.Qc.push(g);
  2643. this.re = !0;
  2644. e && (e.xg(g, !0), 1 !== e.Ic || 1 !== e.Jc) && (A.$h = !0);
  2645. this.lj++;
  2646. if (A.tc) {
  2647. if (g.tc = !0, g.ec ? g.siblings.length = 0 : g.siblings = [], !f && !l) {
  2648. b = 0;
  2649. for (q = A.Vb.length; b < q; b++)
  2650. if (A.Vb[b] !== A) {
  2651. if (!A.Vb[b].Ac) return null;
  2652. g.siblings.push(this.ne(A.Vb[b].Ac, k, !1, n ? g.x : a, n ? g.y : h, !0))
  2653. }
  2654. b = 0;
  2655. for (q = g.siblings.length; b < q; b++)
  2656. for (g.siblings[b].siblings.push(g), d =
  2657. 0; d < q; d++) b !== d && g.siblings[b].siblings.push(g.siblings[d])
  2658. }
  2659. } else g.tc = !1, g.siblings = null;
  2660. g.W();
  2661. b = 0;
  2662. for (q = g.L.length; b < q; b++) g.L[b].ju && g.L[b].ju();
  2663. return g
  2664. };
  2665. a.prototype.Yk = function(c) {
  2666. var e, f;
  2667. e = 0;
  2668. for (f = this.za.P.length; e < f; e++) {
  2669. var a = this.za.P[e];
  2670. if (jb(a.name, c)) return a
  2671. }
  2672. return null
  2673. };
  2674. a.prototype.Mg = function(c) {
  2675. c = S(c);
  2676. 0 > c && (c = 0);
  2677. c >= this.za.P.length && (c = this.za.P.length - 1);
  2678. return this.za.P[c]
  2679. };
  2680. a.prototype.wk = function(c) {
  2681. var e, f;
  2682. e = 0;
  2683. for (f = c.length; e < f; e++) c[e].Y().fa = !0
  2684. };
  2685. a.prototype.Eh = function(c) {
  2686. var e,
  2687. f;
  2688. e = 0;
  2689. for (f = c.length; e < f; e++) c[e].Eh()
  2690. };
  2691. a.prototype.wj = function(c) {
  2692. var e, f;
  2693. e = 0;
  2694. for (f = c.length; e < f; e++) c[e].wj()
  2695. };
  2696. a.prototype.nf = function(c) {
  2697. var e, f;
  2698. e = 0;
  2699. for (f = c.length; e < f; e++) c[e].nf()
  2700. };
  2701. a.prototype.Tp = function(c) {
  2702. if (c.Zh) {
  2703. var e, f, a = c.d;
  2704. e = 0;
  2705. for (f = a.length; e < f; ++e) a[e].Xp();
  2706. a = this.Qc;
  2707. e = 0;
  2708. for (f = a.length; e < f; ++e) a[e].type === c && a[e].Xp();
  2709. c.Zh = !1
  2710. }
  2711. };
  2712. a.prototype.Kn = function(c, e, f, a) {
  2713. var b, h, l = c ? 1 !== c.Ic || 1 !== c.Jc : !1;
  2714. if (e.K)
  2715. for (c = 0, b = e.$f.length; c < b; ++c) h = e.$f[c], l || h.$h ? Ba(a, h.d) : (this.Tp(h), h.li.zj(f, a));
  2716. else l || e.$h ? Ba(a, e.d) : (this.Tp(e), e.li.zj(f, a))
  2717. };
  2718. a.prototype.ct = function(c, e, f, a) {
  2719. var b, h;
  2720. b = 0;
  2721. for (h = e.length; b < h; ++b) this.Kn(c, e[b], f, a)
  2722. };
  2723. a.prototype.bt = function(c, e, f) {
  2724. var a = this.Fp;
  2725. a && this.ct(c, a.Jl, e, f)
  2726. };
  2727. a.prototype.Qj = function(c, e, f) {
  2728. var a = c.Y(),
  2729. b, h, l, q, d, p;
  2730. if (a.fa)
  2731. for (a.fa = !1, b = a.d.length = 0, q = c.d.length; b < q; b++) l = c.d[b], l.na(), d = l.i.Eb(e, f, !0), p = l.i.Eb(e, f, !1), l.yb(d, p) && a.d.push(l);
  2732. else {
  2733. b = h = 0;
  2734. for (q = a.d.length; b < q; b++) l = a.d[b], l.na(), d = l.i.Eb(e, f, !0), p = l.i.Eb(e, f, !1), l.yb(d, p) && (a.d[h] = a.d[b],
  2735. h++);
  2736. a.d.length = h
  2737. }
  2738. c.wc();
  2739. return a.el()
  2740. };
  2741. a.prototype.tf = function(c, e) {
  2742. if (!(c && e && c !== e && c.Gd && e.Gd)) return !1;
  2743. c.na();
  2744. e.na();
  2745. var f = c.i,
  2746. a = e.i,
  2747. b, h, l, q, d, p, g, A;
  2748. if (f === a || f.Ic === a.Ic && a.Jc === a.Jc && f.scale === a.scale && f.j === a.j && f.cd === a.cd) {
  2749. if (!c.La.Bt(e.La) || !c.Db.ao(e.Db) || c.Sh && e.Sh) return !1;
  2750. if (c.Sh) return this.Ip(c, e);
  2751. if (e.Sh) return this.Ip(e, c);
  2752. g = c.da && !c.da.Qf();
  2753. b = e.da && !e.da.Qf();
  2754. if (!g && !b) return !0;
  2755. g ? (c.da.Ef(c.width, c.height, c.j), g = c.da) : (this.Zc.lg(c.Db, c.x, c.y, c.width, c.height), g = this.Zc);
  2756. b ? (e.da.Ef(e.width,
  2757. e.height, e.j), A = e.da) : (this.Zc.lg(e.Db, e.x, e.y, e.width, e.height), A = this.Zc);
  2758. return g.Yg(A, e.x - c.x, e.y - c.y)
  2759. }
  2760. g = c.da && !c.da.Qf();
  2761. b = e.da && !e.da.Qf();
  2762. g ? (c.da.Ef(c.width, c.height, c.j), this.Zc.xp(c.da)) : this.Zc.lg(c.Db, c.x, c.y, c.width, c.height);
  2763. g = this.Zc;
  2764. b ? (e.da.Ef(e.width, e.height, e.j), this.um.xp(e.da)) : this.um.lg(e.Db, e.x, e.y, e.width, e.height);
  2765. A = this.um;
  2766. b = 0;
  2767. for (h = g.Wc; b < h; b++) l = 2 * b, q = l + 1, d = g.fb[l], p = g.fb[q], g.fb[l] = f.Ea(d + c.x, p + c.y, !0), g.fb[q] = f.Ea(d + c.x, p + c.y, !1);
  2768. g.na();
  2769. b = 0;
  2770. for (h = A.Wc; b < h; b++) l = 2 * b, q =
  2771. l + 1, d = A.fb[l], p = A.fb[q], A.fb[l] = a.Ea(d + e.x, p + e.y, !0), A.fb[q] = a.Ea(d + e.x, p + e.y, !1);
  2772. A.na();
  2773. return g.Yg(A, 0, 0)
  2774. };
  2775. var y = new ua;
  2776. new T(0, 0, 0, 0);
  2777. var l = [];
  2778. a.prototype.Ip = function(c, e) {
  2779. var f, a, b, h, q = e.La,
  2780. d = c.x,
  2781. p = c.y;
  2782. c.jw(q, l);
  2783. var g = e.da && !e.da.Qf();
  2784. f = 0;
  2785. for (a = l.length; f < a; ++f)
  2786. if (b = l[f], h = b.qw, q.Ct(h, d, p) && (y.Jh(h), y.offset(d, p), y.ao(e.Db)))
  2787. if (g)
  2788. if (e.da.Ef(e.width, e.height, e.j), b.Xl) {
  2789. if (b.Xl.Yg(e.da, e.x - (d + h.left), e.y - (p + h.top))) return l.length = 0, !0
  2790. } else {
  2791. if (this.Zc.lg(y, 0, 0, h.right - h.left, h.bottom - h.top), this.Zc.Yg(e.da,
  2792. e.x, e.y)) return l.length = 0, !0
  2793. } else if (b.Xl) {
  2794. if (this.Zc.lg(e.Db, 0, 0, e.width, e.height), b.Xl.Yg(this.Zc, -(d + h.left), -(p + h.top))) return l.length = 0, !0
  2795. } else return l.length = 0, !0;
  2796. l.length = 0;
  2797. return !1
  2798. };
  2799. a.prototype.Pp = function(c, e) {
  2800. if (!e) return !1;
  2801. var f, a, b, h, l;
  2802. f = 0;
  2803. for (a = c.Qa.length; f < a; f++)
  2804. if (c.Qa[f].behavior instanceof e) return !0;
  2805. if (!c.K)
  2806. for (f = 0, a = c.Da.length; f < a; f++)
  2807. for (l = c.Da[f], b = 0, h = l.Qa.length; b < h; b++)
  2808. if (l.Qa[b].behavior instanceof e) return !0;
  2809. return !1
  2810. };
  2811. a.prototype.Qp = function(c) {
  2812. return this.Pp(c, bc.Ev)
  2813. };
  2814. a.prototype.Bm = function(c) {
  2815. return this.Pp(c, bc.Fv)
  2816. };
  2817. var q = [];
  2818. a.prototype.uf = function(c) {
  2819. var e, f, a;
  2820. c.na();
  2821. this.bt(c.i, c.La, q);
  2822. e = 0;
  2823. for (f = q.length; e < f; ++e)
  2824. if (a = q[e], a.R.solidEnabled && this.tf(c, a)) return q.length = 0, a;
  2825. q.length = 0;
  2826. return null
  2827. };
  2828. a.prototype.ru = function(c, e, f, a) {
  2829. a = a || 50;
  2830. var b = c.x,
  2831. h = c.y,
  2832. l, q = null,
  2833. d = null;
  2834. for (l = 0; l < a; l++)
  2835. if (c.x = b + e * l, c.y = h + f * l, c.T(), !this.tf(c, q) && ((q = this.uf(c)) && (d = q), !q && !q)) return d && this.pu(c, e, f, d), !0;
  2836. c.x = b;
  2837. c.y = h;
  2838. c.T();
  2839. return !1
  2840. };
  2841. a.prototype.pu = function(c, e, f, a) {
  2842. var b = 2,
  2843. h,
  2844. l = !1;
  2845. h = !1;
  2846. for (var q = c.x, d = c.y; 16 >= b;) h = 1 / b, b *= 2, c.x += e * h * (l ? 1 : -1), c.y += f * h * (l ? 1 : -1), c.T(), this.tf(c, a) ? h = l = !0 : (h = l = !1, q = c.x, d = c.y);
  2847. h && (c.x = q, c.y = d, c.T())
  2848. };
  2849. a.prototype.su = function(c) {
  2850. var e = 0,
  2851. f = c.x,
  2852. a = c.y,
  2853. b = 0,
  2854. h = 0,
  2855. l = 0,
  2856. q = this.uf(c);
  2857. if (q) {
  2858. for (; 100 >= e;) {
  2859. switch (b) {
  2860. case 0:
  2861. h = 0;
  2862. l = -1;
  2863. e++;
  2864. break;
  2865. case 1:
  2866. h = 1;
  2867. l = -1;
  2868. break;
  2869. case 2:
  2870. h = 1;
  2871. l = 0;
  2872. break;
  2873. case 3:
  2874. l = h = 1;
  2875. break;
  2876. case 4:
  2877. h = 0;
  2878. l = 1;
  2879. break;
  2880. case 5:
  2881. h = -1;
  2882. l = 1;
  2883. break;
  2884. case 6:
  2885. h = -1;
  2886. l = 0;
  2887. break;
  2888. case 7:
  2889. l = h = -1
  2890. }
  2891. b = (b + 1) % 8;
  2892. c.x = S(f + h * e);
  2893. c.y = S(a + l * e);
  2894. c.T();
  2895. if (!this.tf(c, q) && (q = this.uf(c), !q)) return
  2896. }
  2897. c.x =
  2898. f;
  2899. c.y = a;
  2900. c.T()
  2901. }
  2902. };
  2903. a.prototype.uu = function(c, e) {
  2904. c.Gd && e.Gd && this.Bj.push([c, e])
  2905. };
  2906. a.prototype.Jr = function(c, e) {
  2907. var f, a, b;
  2908. f = 0;
  2909. for (a = this.Bj.length; f < a; f++)
  2910. if (b = this.Bj[f], b[0] == c && b[1] == e || b[0] == e && b[1] == c) return !0;
  2911. return !1
  2912. };
  2913. a.prototype.Hr = function(c, e, f) {
  2914. var a = c.x,
  2915. b = c.y,
  2916. h = oa(10, Ua(e, f, a, b)),
  2917. l = La(e, f, a, b),
  2918. q = this.uf(c);
  2919. if (!q) return Ia(l + ra);
  2920. var d = q,
  2921. p, g, A, w, n = V(5);
  2922. for (p = 1; 36 > p; p++)
  2923. if (g = l - p * n, c.x = e + Math.cos(g) * h, c.y = f + Math.sin(g) * h, c.T(), !this.tf(c, d) && (d = this.uf(c), !d)) {
  2924. A = g;
  2925. break
  2926. }
  2927. 36 === p && (A = Ia(l + ra));
  2928. d =
  2929. q;
  2930. for (p = 1; 36 > p; p++)
  2931. if (g = l + p * n, c.x = e + Math.cos(g) * h, c.y = f + Math.sin(g) * h, c.T(), !this.tf(c, d) && (d = this.uf(c), !d)) {
  2932. w = g;
  2933. break
  2934. }
  2935. 36 === p && (w = Ia(l + ra));
  2936. c.x = a;
  2937. c.y = b;
  2938. c.T();
  2939. if (w === A) return w;
  2940. c = Ma(w, A) / 2;
  2941. c = Oa(w, A) ? Ia(A + c + ra) : Ia(w + c);
  2942. A = Math.cos(l);
  2943. l = Math.sin(l);
  2944. w = Math.cos(c);
  2945. c = Math.sin(c);
  2946. e = A * w + l * c;
  2947. return La(0, 0, A - 2 * e * w, l - 2 * e * c)
  2948. };
  2949. var A = -1;
  2950. a.prototype.trigger = function(c, e, f) {
  2951. if (!this.za) return !1;
  2952. var a = this.za.Gg;
  2953. if (!a) return !1;
  2954. var b = !1,
  2955. h, l, q;
  2956. A++;
  2957. var d = a.Ck;
  2958. l = 0;
  2959. for (q = d.length; l < q; ++l) h = this.Mp(c, e, d[l], f), b = b || h;
  2960. h =
  2961. this.Mp(c, e, a, f);
  2962. A--;
  2963. return b || h
  2964. };
  2965. a.prototype.Mp = function(c, e, f, a) {
  2966. var b = !1,
  2967. h, l, q, d;
  2968. if (e)
  2969. for (q = this.zm(c, e, e.type.name, f, a), b = b || q, d = e.type.Da, h = 0, l = d.length; h < l; ++h) q = this.zm(c, e, d[h].name, f, a), b = b || q;
  2970. else q = this.zm(c, e, "system", f, a), b = b || q;
  2971. return b
  2972. };
  2973. a.prototype.zm = function(c, e, f, a, b) {
  2974. var h, l = !1,
  2975. q = !1,
  2976. q = "undefined" !== typeof b,
  2977. d = (q ? a.Fn : a.Np)[f];
  2978. if (!d) return l;
  2979. var p = null;
  2980. a = 0;
  2981. for (h = d.length; a < h; ++a)
  2982. if (d[a].method == c) {
  2983. p = d[a].Hg;
  2984. break
  2985. }
  2986. if (!p) return l;
  2987. c = q ? p[b] : p;
  2988. if (!c) return null;
  2989. a = 0;
  2990. for (h = c.length; a < h; a++) b =
  2991. c[a][0], q = c[a][1], q = this.Js(e, f, b, q), l = l || q;
  2992. return l
  2993. };
  2994. a.prototype.Js = function(c, e, f, a) {
  2995. var b, h, l = !1;
  2996. this.Am++;
  2997. var q = this.Ab().Wb;
  2998. q && this.Eh(q.Ce);
  2999. var d = 1 < this.Am;
  3000. this.Eh(f.Ce);
  3001. d && this.qu();
  3002. var p = this.xj(f);
  3003. p.Wb = f;
  3004. c && (b = this.types[e].Y(), b.fa = !1, b.d.length = 1, b.d[0] = c, this.types[e].wc());
  3005. c = !0;
  3006. if (f.parent) {
  3007. e = p.Hp;
  3008. for (b = f.parent; b;) e.push(b), b = b.parent;
  3009. e.reverse();
  3010. b = 0;
  3011. for (h = e.length; b < h; b++)
  3012. if (!e[b].Bu()) {
  3013. c = !1;
  3014. break
  3015. }
  3016. }
  3017. c && (this.Ig++, f.Uc ? f.Au(a) : f.Va(), l = l || p.cf);
  3018. this.sj();
  3019. d && this.iu();
  3020. this.nf(f.Ce);
  3021. q &&
  3022. this.nf(q.Ce);
  3023. this.re && 0 === this.Rc && 0 === A && !this.pl && this.xb();
  3024. this.Am--;
  3025. return l
  3026. };
  3027. a.prototype.Tk = function() {
  3028. var c = this.Ab();
  3029. return c.Wb.kb[c.$a]
  3030. };
  3031. a.prototype.qu = function() {
  3032. this.hj++;
  3033. this.hj >= this.Cl.length && this.Cl.push([])
  3034. };
  3035. a.prototype.iu = function() {
  3036. this.hj--
  3037. };
  3038. a.prototype.Ln = function() {
  3039. return this.Cl[this.hj]
  3040. };
  3041. a.prototype.xj = function(c) {
  3042. this.Ai++;
  3043. this.Ai >= this.Gk.length && this.Gk.push(new Ob);
  3044. var e = this.Ab();
  3045. e.reset(c);
  3046. return e
  3047. };
  3048. a.prototype.sj = function() {
  3049. this.Ai--
  3050. };
  3051. a.prototype.Ab = function() {
  3052. return this.Gk[this.Ai]
  3053. };
  3054. a.prototype.Mn = function(c, e) {
  3055. for (var f, a, b, h, l, q; e;) {
  3056. f = 0;
  3057. for (a = e.Lc.length; f < a; f++)
  3058. if (q = e.Lc[f], q instanceof Pb && jb(c, q.name)) return q;
  3059. e = e.parent
  3060. }
  3061. f = 0;
  3062. for (a = this.Nd.length; f < a; f++)
  3063. for (l = this.Nd[f], b = 0, h = l.pe.length; b < h; b++)
  3064. if (q = l.pe[b], q instanceof Pb && jb(c, q.name)) return q;
  3065. return null
  3066. };
  3067. a.prototype.Pn = function(c) {
  3068. var e, f;
  3069. e = 0;
  3070. for (f = this.Tc.length; e < f; e++)
  3071. if (this.Tc[e].U === c) return this.Tc[e];
  3072. return null
  3073. };
  3074. a.prototype.Ki = function(c) {
  3075. var e, f;
  3076. e = 0;
  3077. for (f = this.r.length; e < f; e++)
  3078. if (this.r[e].U === c) return this.r[e];
  3079. return null
  3080. };
  3081. a.prototype.Ss = function(c) {
  3082. var e, f;
  3083. e = 0;
  3084. for (f = this.Cf.length; e < f; e++)
  3085. if (this.Cf[e].U === c) return this.Cf[e];
  3086. return null
  3087. };
  3088. a.prototype.ut = function() {
  3089. var c = this,
  3090. e = this.km,
  3091. f = this.Sd,
  3092. a = this.bj,
  3093. b = !1;
  3094. this.Cp && (b = !0, e = "__c2_continuouspreview", this.Cp = !1);
  3095. if (e.length) {
  3096. this.xb();
  3097. f = this.Fu();
  3098. if (window.indexedDB && !this.rc) s(e, f, function() {
  3099. J("Saved state to IndexedDB storage (" + f.length + " bytes)");
  3100. c.Sd = f;
  3101. c.trigger(X.prototype.k.gk, null);
  3102. c.Sd = "";
  3103. b && d()
  3104. }, function(a) {
  3105. try {
  3106. localStorage.setItem("__c2save_" +
  3107. e, f), J("Saved state to WebStorage (" + f.length + " bytes)"), c.Sd = f, c.trigger(X.prototype.k.gk, null), c.Sd = "", b && d()
  3108. } catch (h) {
  3109. J("Failed to save game state: " + a + "; " + h)
  3110. }
  3111. });
  3112. else try {
  3113. localStorage.setItem("__c2save_" + e, f), J("Saved state to WebStorage (" + f.length + " bytes)"), c.Sd = f, this.trigger(X.prototype.k.gk, null), c.Sd = "", b && d()
  3114. } catch (h) {
  3115. J("Error saving to WebStorage: " + h)
  3116. }
  3117. this.Jb = this.bj = this.km = ""
  3118. }
  3119. a.length && (window.indexedDB && !this.rc ? g(a, function(f) {
  3120. f ? (c.Jb = f, J("Loaded state from IndexedDB storage (" +
  3121. c.Jb.length + " bytes)")) : (c.Jb = localStorage.getItem("__c2save_" + a) || "", J("Loaded state from WebStorage (" + c.Jb.length + " bytes)"));
  3122. c.Oh = !1;
  3123. c.Jb.length || c.trigger(X.prototype.k.fk, null)
  3124. }, function() {
  3125. c.Jb = localStorage.getItem("__c2save_" + a) || "";
  3126. J("Loaded state from WebStorage (" + c.Jb.length + " bytes)");
  3127. c.Oh = !1;
  3128. c.Jb.length || c.trigger(X.prototype.k.fk, null)
  3129. }) : (this.Jb = localStorage.getItem("__c2save_" + a) || "", J("Loaded state from WebStorage (" + this.Jb.length + " bytes)"), this.Oh = !1, c.Jb.length || c.trigger(X.prototype.k.fk,
  3130. null)), this.km = this.bj = "");
  3131. this.Jb.length && (this.xb(), this.Ot(this.Jb), this.Sd = this.Jb, this.trigger(X.prototype.k.Lq, null), this.Jb = this.Sd = "")
  3132. };
  3133. a.prototype.Fu = function() {
  3134. var c, f, a, b, h, l, q, d = {
  3135. c2save: !0,
  3136. version: 1,
  3137. rt: {
  3138. time: this.Gb.X,
  3139. walltime: this.Bd.X,
  3140. timescale: this.vf,
  3141. tickcount: this.xd,
  3142. execcount: this.Ig,
  3143. next_uid: this.vh,
  3144. running_layout: this.za.U,
  3145. start_time_offset: Date.now() - this.Mj
  3146. },
  3147. types: {},
  3148. layouts: {},
  3149. events: {
  3150. groups: {},
  3151. cnds: {},
  3152. acts: {},
  3153. vars: {}
  3154. }
  3155. };
  3156. c = 0;
  3157. for (f = this.r.length; c < f; c++)
  3158. if (h = this.r[c], !h.K && !this.Qp(h)) {
  3159. l = {
  3160. instances: []
  3161. };
  3162. Wa(h.R) && (l.ex = u(h.R));
  3163. a = 0;
  3164. for (b = h.d.length; a < b; a++) l.instances.push(this.jm(h.d[a]));
  3165. d.types[h.U.toString()] = l
  3166. }
  3167. c = 0;
  3168. for (f = this.Tc.length; c < f; c++) a = this.Tc[c], d.layouts[a.U.toString()] = a.Bb();
  3169. b = d.events.groups;
  3170. c = 0;
  3171. for (f = this.Cf.length; c < f; c++) a = this.Cf[c], b[a.U.toString()] = this.Tg[a.Sg].Rg;
  3172. f = d.events.cnds;
  3173. for (q in this.Gf) this.Gf.hasOwnProperty(q) && (c = this.Gf[q], Wa(c.R) && (f[q] = {
  3174. ex: u(c.R)
  3175. }));
  3176. f = d.events.acts;
  3177. for (q in this.Bf) this.Bf.hasOwnProperty(q) && (c = this.Bf[q], Wa(c.R) && (f[q] = {
  3178. ex: c.R
  3179. }));
  3180. f = d.events.vars;
  3181. for (q in this.tg) this.tg.hasOwnProperty(q) && (c = this.tg[q], c.Pi || c.parent && !c.eh || (f[q] = c.data));
  3182. d.system = this.vd.Bb();
  3183. return JSON.stringify(d)
  3184. };
  3185. a.prototype.qp = function() {
  3186. var c, f, a, b, h, l;
  3187. this.ye = {};
  3188. c = 0;
  3189. for (f = this.r.length; c < f; c++)
  3190. if (a = this.r[c], !a.K)
  3191. for (b = 0, h = a.d.length; b < h; b++) l = a.d[b], this.ye[l.uid.toString()] = l
  3192. };
  3193. a.prototype.Ot = function(c) {
  3194. c = JSON.parse(c);
  3195. if (c.c2save && !(1 < c.version)) {
  3196. var f = c.rt;
  3197. this.Gb.reset();
  3198. this.Gb.X = f.time;
  3199. this.Bd.reset();
  3200. this.Bd.X = f.walltime || 0;
  3201. this.vf = f.timescale;
  3202. this.xd = f.tickcount;
  3203. this.Ig = f.execcount;
  3204. this.Mj = Date.now() - f.start_time_offset;
  3205. var a = f.running_layout;
  3206. if (a !== this.za.U)
  3207. if (a = this.Pn(a)) this.An(a);
  3208. else return;
  3209. var b, h, l, q, d, p, g;
  3210. p = c.types;
  3211. for (h in p)
  3212. if (p.hasOwnProperty(h) && (q = this.Ki(parseInt(h, 10))) && !q.K && !this.Qp(q)) {
  3213. p[h].ex ? q.R = p[h].ex : Xa(q.R);
  3214. d = q.d;
  3215. l = p[h].instances;
  3216. a = 0;
  3217. for (b = pa(d.length, l.length); a < b; a++) this.cj(d[a], l[a]);
  3218. a = l.length;
  3219. for (b = d.length; a < b; a++) this.Ie(d[a]);
  3220. a = d.length;
  3221. for (b = l.length; a < b; a++) {
  3222. d = null;
  3223. if (q.qa.ve && (d = this.za.Ji(l[a].w.l), !d)) continue;
  3224. d = this.ne(q.Ac, d, !1, 0, 0, !0);
  3225. this.cj(d, l[a])
  3226. }
  3227. q.ng = !0
  3228. }
  3229. this.xb();
  3230. this.qp();
  3231. b = c.layouts;
  3232. for (h in b) b.hasOwnProperty(h) && (a = this.Pn(parseInt(h, 10))) && a.Ob(b[h]);
  3233. b = c.events.groups;
  3234. for (h in b) b.hasOwnProperty(h) && (a = this.Ss(parseInt(h, 10))) && this.Tg[a.Sg] && (this.Tg[a.Sg].Rg = b[h]);
  3235. a = c.events.cnds;
  3236. for (h in a) a.hasOwnProperty(h) && this.Gf.hasOwnProperty(h) && (this.Gf[h].R = a[h].ex);
  3237. a = c.events.acts;
  3238. for (h in a) a.hasOwnProperty(h) && this.Bf.hasOwnProperty(h) && (this.Bf[h].R = a[h].ex);
  3239. a = c.events.vars;
  3240. for (h in a) a.hasOwnProperty(h) &&
  3241. this.tg.hasOwnProperty(h) && (this.tg[h].data = a[h]);
  3242. this.vh = f.next_uid;
  3243. this.vd.Ob(c.system);
  3244. a = 0;
  3245. for (b = this.r.length; a < b; a++)
  3246. if (q = this.r[a], !q.K)
  3247. for (h = 0, c = q.d.length; h < c; h++) {
  3248. d = q.d[h];
  3249. if (q.tc)
  3250. for (p = d.Qg(), f = d.siblings.length = 0, l = q.Vb.length; f < l; f++) g = q.Vb[f], q !== g && d.siblings.push(g.d[p]);
  3251. d.Cd && d.Cd();
  3252. if (d.L)
  3253. for (f = 0, l = d.L.length; f < l; f++) p = d.L[f], p.Cd && p.Cd()
  3254. }
  3255. this.aa = !0
  3256. }
  3257. };
  3258. a.prototype.jm = function(c, f) {
  3259. var a, b, h, l, q;
  3260. l = c.type;
  3261. h = l.qa;
  3262. var d = {};
  3263. f ? d.c2 = !0 : d.uid = c.uid;
  3264. Wa(c.R) && (d.ex = u(c.R));
  3265. if (c.ab && c.ab.length)
  3266. for (d.ivs = {}, a = 0, b = c.ab.length; a < b; a++) d.ivs[c.type.ll[a].toString()] = c.ab[a];
  3267. if (h.ve) {
  3268. h = {
  3269. x: c.x,
  3270. y: c.y,
  3271. w: c.width,
  3272. h: c.height,
  3273. l: c.i.U,
  3274. zi: c.jd()
  3275. };
  3276. 0 !== c.j && (h.a = c.j);
  3277. 1 !== c.opacity && (h.o = c.opacity);.5 !== c.Mb && (h.hX = c.Mb);.5 !== c.Nb && (h.hY = c.Nb);
  3278. 0 !== c.Lb && (h.bm = c.Lb);
  3279. c.visible || (h.v = c.visible);
  3280. c.Gd || (h.ce = c.Gd); - 1 !== c.uh && (h.mts = c.uh);
  3281. if (l.J.length)
  3282. for (h.fx = [], a = 0, b = l.J.length; a < b; a++) q = l.J[a], h.fx.push({
  3283. name: q.name,
  3284. active: c.fe[q.index],
  3285. params: c.Ha[q.index]
  3286. });
  3287. d.w = h
  3288. }
  3289. if (c.L && c.L.length)
  3290. for (d.behs = {}, a = 0, b = c.L.length; a <
  3291. b; a++) l = c.L[a], l.Bb && (d.behs[l.type.U.toString()] = l.Bb());
  3292. c.Bb && (d.data = c.Bb());
  3293. return d
  3294. };
  3295. a.prototype.Us = function(c, f) {
  3296. var a, b;
  3297. a = 0;
  3298. for (b = c.ll.length; a < b; a++)
  3299. if (c.ll[a] === f) return a;
  3300. return -1
  3301. };
  3302. a.prototype.Rs = function(c, f) {
  3303. var a, b;
  3304. a = 0;
  3305. for (b = c.L.length; a < b; a++)
  3306. if (c.L[a].type.U === f) return a;
  3307. return -1
  3308. };
  3309. a.prototype.cj = function(c, f, a) {
  3310. var b, h, l, q, d;
  3311. d = c.type;
  3312. l = d.qa;
  3313. if (a) {
  3314. if (!f.c2) return
  3315. } else c.uid = f.uid;
  3316. f.ex ? c.R = f.ex : Xa(c.R);
  3317. if (h = f.ivs)
  3318. for (b in h) h.hasOwnProperty(b) && (a = this.Us(d, parseInt(b, 10)), 0 > a || a >= c.ab.length ||
  3319. (c.ab[a] = h[b]));
  3320. if (l.ve) {
  3321. l = f.w;
  3322. c.i.U !== l.l && (a = c.i, c.i = this.za.Ji(l.l), c.i ? (a.ig(c, !0), c.i.xg(c, !0), c.T(), c.i.Ih(0)) : (c.i = a, this.Ie(c)));
  3323. c.x = l.x;
  3324. c.y = l.y;
  3325. c.width = l.w;
  3326. c.height = l.h;
  3327. c.bd = l.zi;
  3328. c.j = l.hasOwnProperty("a") ? l.a : 0;
  3329. c.opacity = l.hasOwnProperty("o") ? l.o : 1;
  3330. c.Mb = l.hasOwnProperty("hX") ? l.hX : .5;
  3331. c.Nb = l.hasOwnProperty("hY") ? l.hY : .5;
  3332. c.visible = l.hasOwnProperty("v") ? l.v : !0;
  3333. c.Gd = l.hasOwnProperty("ce") ? l.ce : !0;
  3334. c.uh = l.hasOwnProperty("mts") ? l.mts : -1;
  3335. c.Lb = l.hasOwnProperty("bm") ? l.bm : 0;
  3336. c.Dg = gb(c.Lb);
  3337. this.p && hb(c,
  3338. c.Lb, this.p);
  3339. c.T();
  3340. if (l.hasOwnProperty("fx"))
  3341. for (a = 0, h = l.fx.length; a < h; a++) q = d.Wk(l.fx[a].name), 0 > q || (c.fe[q] = l.fx[a].active, c.Ha[q] = l.fx[a].params);
  3342. c.ae()
  3343. }
  3344. if (d = f.behs)
  3345. for (b in d) d.hasOwnProperty(b) && (l = this.Rs(c, parseInt(b, 10)), 0 > l || c.L[l].Ob(d[b]));
  3346. f.data && c.Ob(f.data)
  3347. };
  3348. Qb = function(c) {
  3349. return new a(document.getElementById(c))
  3350. };
  3351. Rb = function(c, f) {
  3352. return new a({
  3353. dc: !0,
  3354. width: c,
  3355. height: f
  3356. })
  3357. };
  3358. window.cr_createRuntime = Qb;
  3359. window.cr_createDCRuntime = Rb;
  3360. window.createCocoonJSRuntime = function() {
  3361. window.c2cocoonjs = !0;
  3362. var c = document.createElement("screencanvas") || document.createElement("canvas");
  3363. c.sw = !0;
  3364. document.body.appendChild(c);
  3365. c = new a(c);
  3366. window.c2runtime = c;
  3367. window.addEventListener("orientationchange", function() {
  3368. window.c2runtime.setSize(window.innerWidth, window.innerHeight)
  3369. });
  3370. window.c2runtime.setSize(window.innerWidth, window.innerHeight);
  3371. return c
  3372. };
  3373. window.createEjectaRuntime = function() {
  3374. var c = new a(document.getElementById("canvas"));
  3375. window.c2runtime = c;
  3376. window.c2runtime.setSize(window.innerWidth, window.innerHeight);
  3377. return c
  3378. }
  3379. })();
  3380. window.cr_getC2Runtime = function() {
  3381. var k = document.getElementById("c2canvas");
  3382. return k ? k.c2runtime : window.c2runtime ? window.c2runtime : null
  3383. };
  3384. window.cr_sizeCanvas = function(k, r) {
  3385. if (0 !== k && 0 !== r) {
  3386. var a = window.cr_getC2Runtime();
  3387. a && a.setSize(k, r)
  3388. }
  3389. };
  3390. window.cr_setSuspended = function(k) {
  3391. var r = window.cr_getC2Runtime();
  3392. r && r.setSuspended(k)
  3393. };
  3394. (function() {
  3395. function k(f, a) {
  3396. this.b = f;
  3397. this.Gg = null;
  3398. this.scrollX = this.b.eb / 2;
  3399. this.scrollY = this.b.cb / 2;
  3400. this.scale = 1;
  3401. this.j = 0;
  3402. this.Kf = !0;
  3403. this.name = a[0];
  3404. this.width = a[1];
  3405. this.height = a[2];
  3406. this.Rp = a[3];
  3407. this.Ap = a[4];
  3408. this.U = a[5];
  3409. var b = a[6],
  3410. h, d;
  3411. this.P = [];
  3412. this.Xg = [];
  3413. h = 0;
  3414. for (d = b.length; h < d; h++) {
  3415. var g = new Sb(this, b[h]);
  3416. g.Ro = h;
  3417. this.P.push(g)
  3418. }
  3419. b = a[7];
  3420. this.Xe = [];
  3421. h = 0;
  3422. for (d = b.length; h < d; h++) {
  3423. var g = b[h],
  3424. l = this.b.r[g[1]];
  3425. l.Ac || (l.Ac = g);
  3426. this.Xe.push(g); - 1 === this.Xg.indexOf(l) && this.Xg.push(l)
  3427. }
  3428. this.J = [];
  3429. this.ba = [];
  3430. this.Ha =
  3431. [];
  3432. h = 0;
  3433. for (d = a[8].length; h < d; h++) this.J.push({
  3434. id: a[8][h][0],
  3435. name: a[8][h][1],
  3436. wb: -1,
  3437. lc: !0,
  3438. index: h
  3439. }), this.Ha.push(a[8][h][2].slice(0));
  3440. this.ae();
  3441. this.hg = new T(0, 0, 1, 1);
  3442. this.cm = new T(0, 0, 1, 1);
  3443. this.ze = {}
  3444. }
  3445. function r(f, a) {
  3446. return f.bd - a.bd
  3447. }
  3448. function a(f, a) {
  3449. this.bb = f;
  3450. this.b = f.b;
  3451. this.d = [];
  3452. this.scale = 1;
  3453. this.j = 0;
  3454. this.Oe = !1;
  3455. this.Zd = new T(0, 0, 0, 0);
  3456. this.Lp = new ua;
  3457. this.Ia = this.Ca = this.Ja = this.Ba = 0;
  3458. this.xf = !1;
  3459. this.de = -1;
  3460. this.name = a[0];
  3461. this.index = a[1];
  3462. this.U = a[2];
  3463. this.visible = a[3];
  3464. this.he = a[4];
  3465. this.$d = a[5];
  3466. this.Ic =
  3467. a[6];
  3468. this.Jc = a[7];
  3469. this.opacity = a[8];
  3470. this.Mk = a[9];
  3471. this.ad = a[10];
  3472. this.cd = a[11];
  3473. this.Lb = a[12];
  3474. this.gs = a[13];
  3475. this.Dg = "source-over";
  3476. this.zb = this.Cb = 0;
  3477. this.fc = null;
  3478. this.Vf = b();
  3479. this.Vd = !0;
  3480. this.Wi = new T(0, 0, -1, -1);
  3481. this.zc = new T(0, 0, -1, -1);
  3482. this.ad && (this.fc = new fb(this.b.eb, this.b.cb));
  3483. this.Ae = !1;
  3484. var d = a[14],
  3485. h, g;
  3486. this.Mf = [];
  3487. h = 0;
  3488. for (g = d.length; h < g; h++) {
  3489. var n = d[h],
  3490. l = this.b.r[n[1]];
  3491. l.Ac || (l.Ac = n, l.Qr = this.index);
  3492. this.Mf.push(n); - 1 === this.bb.Xg.indexOf(l) && this.bb.Xg.push(l)
  3493. }
  3494. this.J = [];
  3495. this.ba = [];
  3496. this.Ha = [];
  3497. h = 0;
  3498. for (g = a[15].length; h < g; h++) this.J.push({
  3499. id: a[15][h][0],
  3500. name: a[15][h][1],
  3501. wb: -1,
  3502. lc: !0,
  3503. index: h
  3504. }), this.Ha.push(a[15][h][2].slice(0));
  3505. this.ae();
  3506. this.hg = new T(0, 0, 1, 1);
  3507. this.cm = new T(0, 0, 1, 1)
  3508. }
  3509. function b() {
  3510. return u.length ? u.pop() : []
  3511. }
  3512. function s(a) {
  3513. a.length = 0;
  3514. u.push(a)
  3515. }
  3516. k.prototype.Eu = function(a) {
  3517. var b = a.type.U.toString();
  3518. this.ze.hasOwnProperty(b) || (this.ze[b] = []);
  3519. this.ze[b].push(this.b.jm(a))
  3520. };
  3521. k.prototype.Un = function() {
  3522. var a = this.P[0];
  3523. return !a.$d && 1 === a.opacity && !a.Mk && a.visible
  3524. };
  3525. k.prototype.ae = function() {
  3526. this.ba.length =
  3527. 0;
  3528. var a, b, d;
  3529. a = 0;
  3530. for (b = this.J.length; a < b; a++) d = this.J[a], d.lc && this.ba.push(d)
  3531. };
  3532. k.prototype.Vk = function(a) {
  3533. var b, d, h;
  3534. b = 0;
  3535. for (d = this.J.length; b < d; b++)
  3536. if (h = this.J[b], h.name === a) return h;
  3537. return null
  3538. };
  3539. var g = [],
  3540. d = !0;
  3541. k.prototype.rm = function() {
  3542. this.Ap && (this.Gg = this.b.Hk[this.Ap], this.Gg.Vp());
  3543. this.b.za = this;
  3544. this.scrollX = this.b.eb / 2;
  3545. this.scrollY = this.b.cb / 2;
  3546. var a, b, n, h, w, k, l;
  3547. a = 0;
  3548. for (n = this.b.r.length; a < n; a++)
  3549. if (b = this.b.r[a], !b.K)
  3550. for (w = b.d, b = 0, h = w.length; b < h; b++)
  3551. if (k = w[b], k.i) {
  3552. var q = k.i.Ro;
  3553. q >= this.P.length &&
  3554. (q = this.P.length - 1);
  3555. k.i = this.P[q]; - 1 === k.i.d.indexOf(k) && k.i.d.push(k);
  3556. k.i.xf = !0
  3557. }
  3558. if (!d)
  3559. for (a = 0, n = this.P.length; a < n; ++a) this.P[a].d.sort(r);
  3560. g.length = 0;
  3561. this.Fr();
  3562. a = 0;
  3563. for (n = this.P.length; a < n; a++) k = this.P[a], k.Or(), k.Em();
  3564. w = !1;
  3565. if (!this.Kf) {
  3566. for (l in this.ze)
  3567. if (this.ze.hasOwnProperty(l) && (b = this.b.Ki(parseInt(l, 10))) && !b.K && this.b.Bm(b)) {
  3568. h = this.ze[l];
  3569. a = 0;
  3570. for (n = h.length; a < n; a++) {
  3571. k = null;
  3572. if (b.qa.ve && (k = this.Ji(h[a].w.l), !k)) continue;
  3573. k = this.b.ne(b.Ac, k, !1, 0, 0, !0);
  3574. this.b.cj(k, h[a]);
  3575. w = !0;
  3576. g.push(k)
  3577. }
  3578. h.length = 0
  3579. }
  3580. a =
  3581. 0;
  3582. for (n = this.P.length; a < n; a++) this.P[a].d.sort(r), this.P[a].xf = !0
  3583. }
  3584. w && (this.b.xb(), this.b.qp());
  3585. for (a = 0; a < g.length; a++)
  3586. if (k = g[a], k.type.tc)
  3587. for (n = k.Qg(), b = 0, h = k.type.Vb.length; b < h; b++) l = k.type.Vb[b], k.type !== l && (l.d.length > n ? k.siblings.push(l.d[n]) : l.Ac && (w = this.b.ne(l.Ac, k.i, !0, k.x, k.y, !0), this.b.xb(), l.Zj(), k.siblings.push(w), g.push(w)));
  3588. a = 0;
  3589. for (n = this.Xe.length; a < n; a++) this.b.ne(this.Xe[a], null, !0);
  3590. this.b.Cg = null;
  3591. this.b.xb();
  3592. if (this.b.ka && !this.b.ya)
  3593. for (a = 0, n = this.b.r.length; a < n; a++) l = this.b.r[a], !l.K && l.d.length && l.Yl && l.Yl(this.b.ka);
  3594. a = 0;
  3595. for (n = g.length; a < n; a++) k = g[a], this.b.trigger(Object.getPrototypeOf(k.type.qa).k.dk, k);
  3596. g.length = 0;
  3597. this.b.trigger(X.prototype.k.Qm, null);
  3598. this.Kf = !1
  3599. };
  3600. k.prototype.Nr = function() {
  3601. var a, b, d, h, g;
  3602. b = a = 0;
  3603. for (d = this.Xe.length; a < d; a++) h = this.Xe[a], g = this.b.r[h[1]], g.global ? this.b.ne(h, null, !0) : (this.Xe[b] = h, b++);
  3604. this.Xe.length = b
  3605. };
  3606. k.prototype.Ou = function() {
  3607. this.b.trigger(X.prototype.k.Kq, null);
  3608. this.b.vd.Sb.length = 0;
  3609. var a, b, g, h, w, n;
  3610. if (!this.Kf)
  3611. for (a = 0, b = this.P.length; a <
  3612. b; a++)
  3613. for (this.P[a].Fm(), w = this.P[a].d, g = 0, h = w.length; g < h; g++) n = w[g], n.type.global || this.b.Bm(n.type) && this.Eu(n);
  3614. a = 0;
  3615. for (b = this.P.length; a < b; a++) {
  3616. w = this.P[a].d;
  3617. g = 0;
  3618. for (h = w.length; g < h; g++) n = w[g], n.type.global || this.b.Ie(n);
  3619. this.b.xb();
  3620. w.length = 0;
  3621. this.P[a].xf = !0
  3622. }
  3623. a = 0;
  3624. for (b = this.b.r.length; a < b; a++)
  3625. if (w = this.b.r[a], !(w.global || w.qa.ve || w.qa.Kj || w.K)) {
  3626. g = 0;
  3627. for (h = w.d.length; g < h; g++) this.b.Ie(w.d[g]);
  3628. this.b.xb()
  3629. }
  3630. d = !1
  3631. };
  3632. new T(0, 0, 0, 0);
  3633. k.prototype.ed = function(a) {
  3634. var b, d = a,
  3635. h = !1,
  3636. g = !this.b.Dc;
  3637. g && (this.b.aj || (this.b.aj =
  3638. document.createElement("canvas"), b = this.b.aj, b.width = this.b.O, b.height = this.b.N, this.b.qo = b.getContext("2d"), h = !0), b = this.b.aj, d = this.b.qo, b.width !== this.b.O && (b.width = this.b.O, h = !0), b.height !== this.b.N && (b.height = this.b.N, h = !0), h && (d.webkitImageSmoothingEnabled = this.b.ca, d.mozImageSmoothingEnabled = this.b.ca, d.msImageSmoothingEnabled = this.b.ca, d.imageSmoothingEnabled = this.b.ca));
  3639. d.globalAlpha = 1;
  3640. d.globalCompositeOperation = "source-over";
  3641. this.b.nk && !this.Un() && d.clearRect(0, 0, this.b.O, this.b.N);
  3642. var n,
  3643. l, h = 0;
  3644. for (n = this.P.length; h < n; h++) l = this.P[h], l.visible && 0 < l.opacity && 11 !== l.Lb && (l.d.length || !l.$d) ? l.ed(d) : l.Em();
  3645. g && a.drawImage(b, 0, 0, this.b.width, this.b.height)
  3646. };
  3647. k.prototype.Cc = function(a) {
  3648. var b = 0 < this.ba.length || this.b.rg || !this.b.Dc;
  3649. if (b) {
  3650. this.b.$b || (this.b.$b = a.Hd(this.b.O, this.b.N, this.b.ca));
  3651. if (this.b.$b.Ag !== this.b.O || this.b.$b.zg !== this.b.N) a.deleteTexture(this.b.$b), this.b.$b = a.Hd(this.b.O, this.b.N, this.b.ca);
  3652. a.td(this.b.$b);
  3653. this.b.Dc || a.kg(this.b.O, this.b.N)
  3654. } else this.b.$b && (a.td(null),
  3655. a.deleteTexture(this.b.$b), this.b.$b = null);
  3656. this.b.nk && !this.Un() && a.clear(0, 0, 0, 0);
  3657. var d, h, g;
  3658. d = 0;
  3659. for (h = this.P.length; d < h; d++) g = this.P[d], g.visible && 0 < g.opacity && (g.d.length || !g.$d) ? g.Cc(a) : g.Em();
  3660. b && (0 === this.ba.length || 1 === this.ba.length && this.b.Dc ? (1 === this.ba.length ? (b = this.ba[0].index, a.ud(this.ba[0].wb), a.jg(null, 1 / this.b.O, 1 / this.b.N, 0, 0, 1, 1, this.scale, this.j, 0, 0, this.b.O / 2, this.b.N / 2, this.Ha[b]), a.vj(this.ba[0].wb) && (this.b.aa = !0)) : a.ud(0), this.b.Dc || a.kg(this.b.width, this.b.height), a.td(null),
  3661. a.pf(1), a.gc(this.b.$b), a.up(), a.sd(), a.zd(), b = this.b.width / 2, d = this.b.height / 2, a.yj(-b, d, b, d, b, -d, -b, -d), a.gc(null)) : this.dm(a, null, null, null))
  3662. };
  3663. k.prototype.Og = function() {
  3664. return 0 < this.ba.length || this.b.rg || !this.b.Dc ? this.b.$b : null
  3665. };
  3666. k.prototype.Qn = function() {
  3667. var a = this.P[0].qc(),
  3668. b, d, h;
  3669. b = 1;
  3670. for (d = this.P.length; b < d; b++) h = this.P[b], (0 !== h.Ic || 0 !== h.Jc) && h.qc() < a && (a = h.qc());
  3671. return a
  3672. };
  3673. k.prototype.lm = function(a) {
  3674. if (!this.Rp) {
  3675. var b = 1 / this.Qn() * this.b.O / 2;
  3676. a > this.width - b && (a = this.width - b);
  3677. a < b && (a = b)
  3678. }
  3679. this.scrollX !==
  3680. a && (this.scrollX = a, this.b.aa = !0)
  3681. };
  3682. k.prototype.mm = function(a) {
  3683. if (!this.Rp) {
  3684. var b = 1 / this.Qn() * this.b.N / 2;
  3685. a > this.height - b && (a = this.height - b);
  3686. a < b && (a = b)
  3687. }
  3688. this.scrollY !== a && (this.scrollY = a, this.b.aa = !0)
  3689. };
  3690. k.prototype.Fr = function() {
  3691. this.lm(this.scrollX);
  3692. this.mm(this.scrollY)
  3693. };
  3694. k.prototype.dm = function(a, b, d, h) {
  3695. var g = d ? d.ba : b ? b.ba : this.ba,
  3696. n = 1,
  3697. l = 0,
  3698. q = 0,
  3699. A = 0,
  3700. c = this.b.O,
  3701. e = this.b.N;
  3702. d ? (n = d.i.qc(), l = d.i.Ta(), q = d.i.Ba, A = d.i.Ca, c = d.i.Ja, e = d.i.Ia) : b && (n = b.qc(), l = b.Ta(), q = b.Ba, A = b.Ca, c = b.Ja, e = b.Ia);
  3703. var m = this.b.Pk,
  3704. k, t,
  3705. r, s, u = 0,
  3706. z = 1,
  3707. fa, P = this.b.O,
  3708. H = this.b.N,
  3709. M = P / 2,
  3710. C = H / 2,
  3711. L = b ? b.hg : this.hg,
  3712. B = b ? b.cm : this.cm,
  3713. D = 0,
  3714. N = 0,
  3715. F = 0,
  3716. I = 0,
  3717. G = P,
  3718. ga = P,
  3719. O = H,
  3720. ma = H,
  3721. ha = r = 0,
  3722. va = d ? d.i.Ta() : 0;
  3723. if (d) {
  3724. k = 0;
  3725. for (t = g.length; k < t; k++) r += a.Ys(g[k].wb), ha += a.Zs(g[k].wb);
  3726. s = d.La;
  3727. D = b.Ea(s.left, s.top, !0, !0);
  3728. F = b.Ea(s.left, s.top, !1, !0);
  3729. G = b.Ea(s.right, s.bottom, !0, !0);
  3730. O = b.Ea(s.right, s.bottom, !1, !0);
  3731. 0 !== va && (k = b.Ea(s.right, s.top, !0, !0), t = b.Ea(s.right, s.top, !1, !0), N = b.Ea(s.left, s.bottom, !0, !0), I = b.Ea(s.left, s.bottom, !1, !0), s = Math.min(D, G, k, N), G = Math.max(D, G, k, N), D = s, s =
  3732. Math.min(F, O, t, I), O = Math.max(F, O, t, I), F = s);
  3733. D -= r;
  3734. F -= ha;
  3735. G += r;
  3736. O += ha;
  3737. B.left = D / P;
  3738. B.top = 1 - F / H;
  3739. B.right = G / P;
  3740. B.bottom = 1 - O / H;
  3741. N = D = S(D);
  3742. I = F = S(F);
  3743. ga = G = sa(G);
  3744. ma = O = sa(O);
  3745. N -= r;
  3746. I -= ha;
  3747. ga += r;
  3748. ma += ha;
  3749. 0 > D && (D = 0);
  3750. 0 > F && (F = 0);
  3751. G > P && (G = P);
  3752. O > H && (O = H);
  3753. 0 > N && (N = 0);
  3754. 0 > I && (I = 0);
  3755. ga > P && (ga = P);
  3756. ma > H && (ma = H);
  3757. L.left = D / P;
  3758. L.top = 1 - F / H;
  3759. L.right = G / P;
  3760. L.bottom = 1 - O / H
  3761. } else L.left = B.left = 0, L.top = B.top = 0, L.right = B.right = 1, L.bottom = B.bottom = 1;
  3762. ha = d && ((d.j || va) && a.Ch(g[0].wb) || 0 !== r || 0 !== ha || 1 !== d.opacity || d.type.qa.Mo) || b && !d && 1 !== b.opacity;
  3763. a.up();
  3764. if (ha) {
  3765. m[u] ||
  3766. (m[u] = a.Hd(P, H, this.b.ca));
  3767. if (m[u].Ag !== P || m[u].zg !== H) a.deleteTexture(m[u]), m[u] = a.Hd(P, H, this.b.ca);
  3768. a.ud(0);
  3769. a.td(m[u]);
  3770. fa = ma - I;
  3771. a.clearRect(N, H - I - fa, ga - N, fa);
  3772. d ? d.Cc(a) : (a.gc(this.b.vc), a.pf(b.opacity), a.sd(), a.translate(-M, -C), a.zd(), a.Ud(D, O, G, O, G, F, D, F, L));
  3773. B.left = B.top = 0;
  3774. B.right = B.bottom = 1;
  3775. d && (s = L.top, L.top = L.bottom, L.bottom = s);
  3776. u = 1;
  3777. z = 0
  3778. }
  3779. a.pf(1);
  3780. r = g.length - 1;
  3781. var va = a.Zl(g[r].wb) || !b && !d && !this.b.Dc,
  3782. wa = 0;
  3783. k = 0;
  3784. for (t = g.length; k < t; k++) {
  3785. m[u] || (m[u] = a.Hd(P, H, this.b.ca));
  3786. if (m[u].Ag !== P || m[u].zg !== H) a.deleteTexture(m[u]),
  3787. m[u] = a.Hd(P, H, this.b.ca);
  3788. a.ud(g[k].wb);
  3789. wa = g[k].index;
  3790. a.vj(g[k].wb) && (this.b.aa = !0);
  3791. 0 != k || ha ? (a.jg(h, 1 / P, 1 / H, B.left, B.top, B.right, B.bottom, n, l, q, A, (q + c) / 2, (A + e) / 2, d ? d.Ha[wa] : b ? b.Ha[wa] : this.Ha[wa]), a.gc(null), k !== r || va ? (a.td(m[u]), fa = ma - I, s = H - I - fa, a.clearRect(N, s, ga - N, fa)) : (d ? a.Be(d.Cb, d.zb) : b && a.Be(b.Cb, b.zb), a.td(h)), a.gc(m[z]), a.sd(), a.translate(-M, -C), a.zd(), a.Ud(D, O, G, O, G, F, D, F, L), k !== r || va || a.gc(null)) : (a.td(m[u]), fa = ma - I, s = H - I - fa, a.clearRect(N, s, ga - N, fa), d ? (a.jg(h, 1 / d.width, 1 / d.height, B.left,
  3792. B.top, B.right, B.bottom, n, l, q, A, (q + c) / 2, (A + e) / 2, d.Ha[wa]), d.Cc(a)) : (a.jg(h, 1 / P, 1 / H, 0, 0, 1, 1, n, l, q, A, (q + c) / 2, (A + e) / 2, b ? b.Ha[wa] : this.Ha[wa]), a.gc(b ? this.b.vc : this.b.$b), a.sd(), a.translate(-M, -C), a.zd(), a.Ud(D, O, G, O, G, F, D, F, L)), B.left = B.top = 0, B.right = B.bottom = 1, d && !va && (s = O, O = F, F = s));
  3793. u = 0 === u ? 1 : 0;
  3794. z = 0 === u ? 1 : 0
  3795. }
  3796. va && (a.ud(0), d ? a.Be(d.Cb, d.zb) : b ? a.Be(b.Cb, b.zb) : this.b.Dc || (a.kg(this.b.width, this.b.height), M = this.b.width / 2, C = this.b.height / 2, F = D = 0, G = this.b.width, O = this.b.height), a.td(h), a.gc(m[z]), a.sd(), a.translate(-M, -C), a.zd(), d && 1 === g.length && !ha ? a.Ud(D, F, G, F, G, O, D, O, L) : a.Ud(D, O, G, O, G, F, D, F, L), a.gc(null))
  3797. };
  3798. k.prototype.Ji = function(a) {
  3799. var b, d;
  3800. b = 0;
  3801. for (d = this.P.length; b < d; b++)
  3802. if (this.P[b].U === a) return this.P[b];
  3803. return null
  3804. };
  3805. k.prototype.Bb = function() {
  3806. var a, b, d, h = {
  3807. sx: this.scrollX,
  3808. sy: this.scrollY,
  3809. s: this.scale,
  3810. a: this.j,
  3811. w: this.width,
  3812. h: this.height,
  3813. fv: this.Kf,
  3814. persist: this.ze,
  3815. fx: [],
  3816. layers: {}
  3817. };
  3818. a = 0;
  3819. for (b = this.J.length; a < b; a++) d = this.J[a], h.fx.push({
  3820. name: d.name,
  3821. active: d.lc,
  3822. params: this.Ha[d.index]
  3823. });
  3824. a = 0;
  3825. for (b = this.P.length; a <
  3826. b; a++) d = this.P[a], h.layers[d.U.toString()] = d.Bb();
  3827. return h
  3828. };
  3829. k.prototype.Ob = function(a) {
  3830. var b, d, h, g;
  3831. this.scrollX = a.sx;
  3832. this.scrollY = a.sy;
  3833. this.scale = a.s;
  3834. this.j = a.a;
  3835. this.width = a.w;
  3836. this.height = a.h;
  3837. this.ze = a.persist;
  3838. "undefined" !== typeof a.fv && (this.Kf = a.fv);
  3839. var n = a.fx;
  3840. b = 0;
  3841. for (d = n.length; b < d; b++)
  3842. if (h = this.Vk(n[b].name)) h.lc = n[b].active, this.Ha[h.index] = n[b].params;
  3843. this.ae();
  3844. b = a.layers;
  3845. for (g in b) b.hasOwnProperty(g) && (a = this.Ji(parseInt(g, 10))) && a.Ob(b[g])
  3846. };
  3847. Eb = k;
  3848. a.prototype.ae = function() {
  3849. this.ba.length = 0;
  3850. var a, b, d;
  3851. a = 0;
  3852. for (b = this.J.length; a < b; a++) d = this.J[a], d.lc && this.ba.push(d)
  3853. };
  3854. a.prototype.Vk = function(a) {
  3855. var b, d, h;
  3856. b = 0;
  3857. for (d = this.J.length; b < d; b++)
  3858. if (h = this.J[b], h.name === a) return h;
  3859. return null
  3860. };
  3861. a.prototype.Or = function() {
  3862. var a, b, d, h, n, k;
  3863. b = a = 0;
  3864. for (d = this.Mf.length; a < d; a++) {
  3865. h = this.Mf[a];
  3866. n = this.b.r[h[1]];
  3867. k = this.b.Bm(n);
  3868. n = !0;
  3869. if (!k || this.bb.Kf) h = this.b.ne(h, this, !0), g.push(h), h.type.global && (n = !1);
  3870. n && (this.Mf[b] = this.Mf[a], b++)
  3871. }
  3872. this.Mf.length = b;
  3873. this.b.xb();
  3874. !this.b.u && this.J.length && (this.Lb = this.gs);
  3875. this.Dg =
  3876. gb(this.Lb);
  3877. this.b.p && hb(this, this.Lb, this.b.p);
  3878. this.Vd = !0
  3879. };
  3880. a.prototype.ig = function(a, b) {
  3881. var d = Ca(this.d, a);
  3882. 0 > d || (b && this.ad && a.Qb && a.Qb.right >= a.Qb.left && (a.na(), this.fc.update(a, a.Qb, null), a.Qb.set(0, 0, -1, -1)), d === this.d.length - 1 ? this.d.pop() : (ya(this.d, d), this.Ih(d)), this.Vd = !0)
  3883. };
  3884. a.prototype.xg = function(a, b) {
  3885. a.bd = this.d.length;
  3886. this.d.push(a);
  3887. b && this.ad && a.Qb && a.T();
  3888. this.Vd = !0
  3889. };
  3890. a.prototype.mu = function(a) {
  3891. this.d.unshift(a);
  3892. this.Ih(0)
  3893. };
  3894. a.prototype.Ut = function(a, b, d) {
  3895. var h = a.jd();
  3896. b = b.jd();
  3897. ya(this.d,
  3898. h);
  3899. h < b && b--;
  3900. d && b++;
  3901. b === this.d.length ? this.d.push(a) : this.d.splice(b, 0, a);
  3902. this.Ih(h < b ? h : b)
  3903. };
  3904. a.prototype.Ih = function(a) {
  3905. -1 === this.de ? this.de = a : a < this.de && (this.de = a);
  3906. this.Vd = this.xf = !0
  3907. };
  3908. a.prototype.Fm = function() {
  3909. if (this.xf) {
  3910. -1 === this.de && (this.de = 0);
  3911. var a, b, d;
  3912. if (this.ad)
  3913. for (a = this.de, b = this.d.length; a < b; ++a) d = this.d[a], d.bd = a, this.fc.Rt(d.Qb);
  3914. else
  3915. for (a = this.de, b = this.d.length; a < b; ++a) this.d[a].bd = a;
  3916. this.xf = !1;
  3917. this.de = -1
  3918. }
  3919. };
  3920. a.prototype.qc = function(a) {
  3921. return this.Vs() * (this.b.Dc || a ? this.b.yg : 1)
  3922. };
  3923. a.prototype.Vs =
  3924. function() {
  3925. return (this.scale * this.bb.scale - 1) * this.cd + 1
  3926. };
  3927. a.prototype.Ta = function() {
  3928. return this.Oe ? 0 : Ia(this.bb.j + this.j)
  3929. };
  3930. var u = [],
  3931. t = [],
  3932. n = [];
  3933. a.prototype.Rn = function() {
  3934. this.Fm();
  3935. this.fc.zj(this.Ba, this.Ca, this.Ja, this.Ia, n);
  3936. if (!n.length) return b();
  3937. if (1 === n.length) {
  3938. var a = b();
  3939. Aa(a, n[0]);
  3940. n.length = 0;
  3941. return a
  3942. }
  3943. for (var d = !0; 1 < n.length;) {
  3944. for (var a = n, g = void 0, h = void 0, k = void 0, r = void 0, l = void 0, g = 0, h = a.length; g < h - 1; g += 2) {
  3945. var k = a[g],
  3946. r = a[g + 1],
  3947. l = b(),
  3948. q = k,
  3949. A = r,
  3950. c = l,
  3951. e = 0,
  3952. m = 0,
  3953. v = 0,
  3954. u = q.length,
  3955. E = A.length,
  3956. Q = void 0,
  3957. qa = void 0;
  3958. for (c.length = u + E; e < u && m < E; ++v) Q = q[e], qa = A[m], Q.bd < qa.bd ? (c[v] = Q, ++e) : (c[v] = qa, ++m);
  3959. for (; e < u; ++e, ++v) c[v] = q[e];
  3960. for (; m < E; ++m, ++v) c[v] = A[m];
  3961. d || (s(k), s(r));
  3962. t.push(l)
  3963. }
  3964. 1 === h % 2 && (d ? (k = b(), Aa(k, a[h - 1]), t.push(k)) : t.push(a[h - 1]));
  3965. Aa(a, t);
  3966. t.length = 0;
  3967. d = !1
  3968. }
  3969. a = n[0];
  3970. n.length = 0;
  3971. return a
  3972. };
  3973. a.prototype.ed = function(a) {
  3974. this.Ae = this.Mk || 1 !== this.opacity || 0 !== this.Lb;
  3975. var b = this.b.canvas,
  3976. d = a,
  3977. h = !1;
  3978. this.Ae && (this.b.$i || (this.b.$i = document.createElement("canvas"), b = this.b.$i, b.width = this.b.O, b.height = this.b.N, this.b.po = b.getContext("2d"),
  3979. h = !0), b = this.b.$i, d = this.b.po, b.width !== this.b.O && (b.width = this.b.O, h = !0), b.height !== this.b.N && (b.height = this.b.N, h = !0), h && (d.webkitImageSmoothingEnabled = this.b.ca, d.mozImageSmoothingEnabled = this.b.ca, d.msImageSmoothingEnabled = this.b.ca, d.imageSmoothingEnabled = this.b.ca), this.$d && d.clearRect(0, 0, this.b.O, this.b.N));
  3980. d.globalAlpha = 1;
  3981. d.globalCompositeOperation = "source-over";
  3982. this.$d || (d.fillStyle = "rgb(" + this.he[0] + "," + this.he[1] + "," + this.he[2] + ")", d.fillRect(0, 0, this.b.O, this.b.N));
  3983. d.save();
  3984. this.Oe = !0;
  3985. var h = this.Eb(0, 0, !0, !0),
  3986. g = this.Eb(0, 0, !1, !0);
  3987. this.Oe = !1;
  3988. this.b.rd && (h = Math.round(h), g = Math.round(g));
  3989. this.fm(h, g, d);
  3990. var n = this.qc();
  3991. d.scale(n, n);
  3992. d.translate(-h, -g);
  3993. this.ad ? (this.zc.left = this.fc.jc(this.Ba), this.zc.top = this.fc.kc(this.Ca), this.zc.right = this.fc.jc(this.Ja), this.zc.bottom = this.fc.kc(this.Ia), this.Vd || !this.zc.yi(this.Wi) ? (s(this.Vf), h = this.Rn(), this.Vd = !1, this.Wi.ni(this.zc)) : h = this.Vf) : h = this.d;
  3994. for (var l, q = null, g = 0, n = h.length; g < n; ++g) l = h[g], l !== q && (this.cs(l, d), q = l);
  3995. this.ad && (this.Vf =
  3996. h);
  3997. d.restore();
  3998. this.Ae && (a.globalCompositeOperation = this.Dg, a.globalAlpha = this.opacity, a.drawImage(b, 0, 0))
  3999. };
  4000. a.prototype.cs = function(a, b) {
  4001. if (a.visible && 0 !== a.width && 0 !== a.height) {
  4002. a.na();
  4003. var d = a.La;
  4004. d.right < this.Ba || d.bottom < this.Ca || d.left > this.Ja || d.top > this.Ia || (b.globalCompositeOperation = a.Dg, a.ed(b))
  4005. }
  4006. };
  4007. a.prototype.Em = function() {
  4008. this.Oe = !0;
  4009. var a = this.Eb(0, 0, !0, !0),
  4010. b = this.Eb(0, 0, !1, !0);
  4011. this.Oe = !1;
  4012. this.b.rd && (a = Math.round(a), b = Math.round(b));
  4013. this.fm(a, b, null)
  4014. };
  4015. a.prototype.fm = function(a, b, d) {
  4016. var h =
  4017. this.qc();
  4018. this.Ba = a;
  4019. this.Ca = b;
  4020. this.Ja = a + 1 / h * this.b.O;
  4021. this.Ia = b + 1 / h * this.b.N;
  4022. a = this.Ta();
  4023. 0 !== a && (d && (d.translate(this.b.O / 2, this.b.N / 2), d.rotate(-a), d.translate(this.b.O / -2, this.b.N / -2)), this.Zd.set(this.Ba, this.Ca, this.Ja, this.Ia), this.Zd.offset((this.Ba + this.Ja) / -2, (this.Ca + this.Ia) / -2), this.Lp.yp(this.Zd, a), this.Lp.mn(this.Zd), this.Zd.offset((this.Ba + this.Ja) / 2, (this.Ca + this.Ia) / 2), this.Ba = this.Zd.left, this.Ca = this.Zd.top, this.Ja = this.Zd.right, this.Ia = this.Zd.bottom)
  4024. };
  4025. a.prototype.Cc = function(a) {
  4026. var b =
  4027. 0,
  4028. d = 0;
  4029. if (this.Ae = this.Mk || 1 !== this.opacity || 0 < this.ba.length || 0 !== this.Lb) {
  4030. this.b.vc || (this.b.vc = a.Hd(this.b.O, this.b.N, this.b.ca));
  4031. if (this.b.vc.Ag !== this.b.O || this.b.vc.zg !== this.b.N) a.deleteTexture(this.b.vc), this.b.vc = a.Hd(this.b.O, this.b.N, this.b.ca);
  4032. a.td(this.b.vc);
  4033. this.$d && a.clear(0, 0, 0, 0)
  4034. }
  4035. this.$d || a.clear(this.he[0] / 255, this.he[1] / 255, this.he[2] / 255, 1);
  4036. this.Oe = !0;
  4037. var h = this.Eb(0, 0, !0, !0),
  4038. b = this.Eb(0, 0, !1, !0);
  4039. this.Oe = !1;
  4040. this.b.rd && (h = Math.round(h), b = Math.round(b));
  4041. this.fm(h, b, null);
  4042. h = this.qc();
  4043. a.sd();
  4044. a.scale(h, h);
  4045. a.gm(-this.Ta());
  4046. a.translate((this.Ba + this.Ja) / -2, (this.Ca + this.Ia) / -2);
  4047. a.zd();
  4048. this.ad ? (this.zc.left = this.fc.jc(this.Ba), this.zc.top = this.fc.kc(this.Ca), this.zc.right = this.fc.jc(this.Ja), this.zc.bottom = this.fc.kc(this.Ia), this.Vd || !this.zc.yi(this.Wi) ? (s(this.Vf), b = this.Rn(), this.Vd = !1, this.Wi.ni(this.zc)) : b = this.Vf) : b = this.d;
  4049. var g, n, l = null,
  4050. d = 0;
  4051. for (g = b.length; d < g; ++d) n = b[d], n !== l && (this.ds(b[d], a), l = n);
  4052. this.ad && (this.Vf = b);
  4053. this.Ae && (b = this.ba.length ? this.ba[0].wb : 0, d = this.ba.length ?
  4054. this.ba[0].index : 0, 0 === this.ba.length || 1 === this.ba.length && !a.Zl(b) && 1 === this.opacity ? (1 === this.ba.length ? (a.ud(b), a.jg(this.bb.Og(), 1 / this.b.O, 1 / this.b.N, 0, 0, 1, 1, h, this.Ta(), this.Ba, this.Ca, (this.Ba + this.Ja) / 2, (this.Ca + this.Ia) / 2, this.Ha[d]), a.vj(b) && (this.b.aa = !0)) : a.ud(0), a.td(this.bb.Og()), a.pf(this.opacity), a.gc(this.b.vc), a.Be(this.Cb, this.zb), a.sd(), a.zd(), h = this.b.O / 2, b = this.b.N / 2, a.yj(-h, b, h, b, h, -b, -h, -b), a.gc(null)) : this.bb.dm(a, this, null, this.bb.Og()))
  4055. };
  4056. a.prototype.ds = function(a, b) {
  4057. if (a.visible &&
  4058. 0 !== a.width && 0 !== a.height) {
  4059. a.na();
  4060. var d = a.La;
  4061. d.right < this.Ba || d.bottom < this.Ca || d.left > this.Ja || d.top > this.Ia || (a.Yp ? this.es(a, b) : (b.ud(0), b.Be(a.Cb, a.zb), a.Cc(b)))
  4062. }
  4063. };
  4064. a.prototype.es = function(a, b) {
  4065. var d = a.ba[0].wb,
  4066. h = a.ba[0].index,
  4067. g = this.qc();
  4068. if (1 !== a.ba.length || b.Zl(d) || b.ou(d) || (a.j || a.i.Ta()) && b.Ch(d) || 1 !== a.opacity || a.type.qa.Mo) this.bb.dm(b, this, a, this.Ae ? this.b.vc : this.bb.Og()), b.sd(), b.scale(g, g), b.gm(-this.Ta()), b.translate((this.Ba + this.Ja) / -2, (this.Ca + this.Ia) / -2), b.zd();
  4069. else {
  4070. b.ud(d);
  4071. b.Be(a.Cb,
  4072. a.zb);
  4073. b.vj(d) && (this.b.aa = !0);
  4074. var n = 0,
  4075. l = 0,
  4076. q = 0,
  4077. A = 0;
  4078. b.Ch(d) && (d = a.La, n = this.Ea(d.left, d.top, !0, !0), l = this.Ea(d.left, d.top, !1, !0), q = this.Ea(d.right, d.bottom, !0, !0), d = this.Ea(d.right, d.bottom, !1, !0), n /= windowWidth, l = 1 - l / windowHeight, q /= windowWidth, A = 1 - d / windowHeight);
  4079. b.jg(this.Ae ? this.b.vc : this.bb.Og(), 1 / a.width, 1 / a.height, n, l, q, A, g, this.Ta(), this.Ba, this.Ca, (this.Ba + this.Ja) / 2, (this.Ca + this.Ia) / 2, a.Ha[h]);
  4080. a.Cc(b)
  4081. }
  4082. };
  4083. a.prototype.Eb = function(a, b, d, h) {
  4084. var g = this.b.devicePixelRatio;
  4085. this.b.Ye && (a *= g, b *= g);
  4086. var g = this.b.hp,
  4087. n = this.b.ip,
  4088. g = (this.bb.scrollX - g) * this.Ic + g,
  4089. n = (this.bb.scrollY - n) * this.Jc + n,
  4090. l = g,
  4091. q = n,
  4092. A = 1 / this.qc(!h);
  4093. h ? (l -= this.b.O * A / 2, q -= this.b.N * A / 2) : (l -= this.b.width * A / 2, q -= this.b.height * A / 2);
  4094. l += a * A;
  4095. q += b * A;
  4096. b = this.Ta();
  4097. 0 !== b && (l -= g, q -= n, a = Math.cos(b), b = Math.sin(b), h = l * a - q * b, q = q * a + l * b, l = h + g, q += n);
  4098. return d ? l : q
  4099. };
  4100. a.prototype.Ea = function(a, b, d, h) {
  4101. var g = this.b.hp,
  4102. n = this.b.ip,
  4103. l = (this.bb.scrollX - g) * this.Ic + g,
  4104. q = (this.bb.scrollY - n) * this.Jc + n,
  4105. n = l,
  4106. g = q,
  4107. A = this.Ta();
  4108. if (0 !== A) {
  4109. a -= l;
  4110. b -= q;
  4111. var c = Math.cos(-A),
  4112. A = Math.sin(-A),
  4113. e = a * c - b * A;
  4114. b = b * c + a * A;
  4115. a = e + l;
  4116. b += q
  4117. }
  4118. l = 1 / this.qc(!h);
  4119. h ? (n -= this.b.O * l / 2, g -= this.b.N * l / 2) : (n -= this.b.width * l / 2, g -= this.b.height * l / 2);
  4120. n = (a - n) / l;
  4121. g = (b - g) / l;
  4122. a = this.b.devicePixelRatio;
  4123. this.b.Ye && !h && (n /= a, g /= a);
  4124. return d ? n : g
  4125. };
  4126. a.prototype.Bb = function() {
  4127. var a, b, d, h = {
  4128. s: this.scale,
  4129. a: this.j,
  4130. vl: this.Ba,
  4131. vt: this.Ca,
  4132. vr: this.Ja,
  4133. vb: this.Ia,
  4134. v: this.visible,
  4135. bc: this.he,
  4136. t: this.$d,
  4137. px: this.Ic,
  4138. py: this.Jc,
  4139. o: this.opacity,
  4140. zr: this.cd,
  4141. fx: [],
  4142. instances: []
  4143. };
  4144. a = 0;
  4145. for (b = this.J.length; a < b; a++) d = this.J[a], h.fx.push({
  4146. name: d.name,
  4147. active: d.lc,
  4148. params: this.Ha[d.index]
  4149. });
  4150. return h
  4151. };
  4152. a.prototype.Ob = function(a) {
  4153. var b, d;
  4154. this.scale = a.s;
  4155. this.j = a.a;
  4156. this.Ba = a.vl;
  4157. this.Ca = a.vt;
  4158. this.Ja = a.vr;
  4159. this.Ia = a.vb;
  4160. this.visible = a.v;
  4161. this.he = a.bc;
  4162. this.$d = a.t;
  4163. this.Ic = a.px;
  4164. this.Jc = a.py;
  4165. this.opacity = a.o;
  4166. this.cd = a.zr;
  4167. var h = a.fx;
  4168. a = 0;
  4169. for (b = h.length; a < b; a++)
  4170. if (d = this.Vk(h[a].name)) d.lc = h[a].active, this.Ha[d.index] = h[a].params;
  4171. this.ae();
  4172. this.d.sort(r);
  4173. this.xf = !0
  4174. };
  4175. Sb = a
  4176. })();
  4177. (function() {
  4178. function k(a, b) {
  4179. var d, c = a.length;
  4180. switch (c) {
  4181. case 0:
  4182. return !0;
  4183. case 1:
  4184. return a[0] === b[0];
  4185. case 2:
  4186. return a[0] === b[0] && a[1] === b[1];
  4187. default:
  4188. for (d = 0; d < c; d++)
  4189. if (a[d] !== b[d]) return !1;
  4190. return !0
  4191. }
  4192. }
  4193. function r(a, b) {
  4194. return a.index - b.index
  4195. }
  4196. function a(a) {
  4197. var b, d, c, e;
  4198. 2 === a.length ? a[0].index > a[1].index && (b = a[0], a[0] = a[1], a[1] = b) : 2 < a.length && a.sort(r);
  4199. a.length >= h.length && (h.length = a.length + 1);
  4200. h[a.length] || (h[a.length] = []);
  4201. e = h[a.length];
  4202. b = 0;
  4203. for (d = e.length; b < d; b++)
  4204. if (c = e[b], k(a, c)) return c;
  4205. e.push(a);
  4206. return a
  4207. }
  4208. function b(a, b) {
  4209. this.b = a;
  4210. this.Np = {};
  4211. this.Fn = {};
  4212. this.fl = !1;
  4213. this.Wn = new ba;
  4214. this.Ck = [];
  4215. this.ok = [];
  4216. this.name = b[0];
  4217. var d = b[1];
  4218. this.pe = [];
  4219. var c, e;
  4220. c = 0;
  4221. for (e = d.length; c < e; c++) this.Yn(d[c], null, this.pe)
  4222. }
  4223. function s(a) {
  4224. this.type = a;
  4225. this.d = [];
  4226. this.ea = [];
  4227. this.fa = !0
  4228. }
  4229. function g(a, b, d) {
  4230. this.sheet = a;
  4231. this.parent = b;
  4232. this.b = a.b;
  4233. this.ra = [];
  4234. this.Ce = [];
  4235. this.Vn = this.Vj = this.ym = this.jl = this.group = this.Ep = !1;
  4236. this.kb = [];
  4237. this.Nc = [];
  4238. this.Lc = [];
  4239. this.Sg = "";
  4240. this.Rg = this.jl = this.group = !1;
  4241. this.vn = null;
  4242. d[1] && (this.Sg = d[1][1].toLowerCase(),
  4243. this.group = !0, this.jl = !!d[1][0], this.vn = [], this.Rg = this.jl, this.b.Cf.push(this), this.b.Tg[this.Sg] = this);
  4244. this.Uc = d[2];
  4245. this.U = d[4];
  4246. this.group || (this.b.ln[this.U.toString()] = this);
  4247. var c = d[5];
  4248. a = 0;
  4249. for (b = c.length; a < b; a++) {
  4250. var e = new Tb(this, c[a]);
  4251. e.index = a;
  4252. this.kb.push(e);
  4253. this.dn(e.type)
  4254. }
  4255. c = d[6];
  4256. a = 0;
  4257. for (b = c.length; a < b; a++) e = new Ub(this, c[a]), e.index = a, this.Nc.push(e);
  4258. if (8 === d.length)
  4259. for (d = d[7], a = 0, b = d.length; a < b; a++) this.sheet.Yn(d[a], this, this.Lc);
  4260. this.Qi = !1;
  4261. this.kb.length && (this.Qi = null == this.kb[0].type &&
  4262. this.kb[0].sb == X.prototype.k.kq)
  4263. }
  4264. function d(a, b) {
  4265. var d, c, e;
  4266. if (a && (-1 === b.indexOf(a) && b.push(a), a.tc))
  4267. for (d = 0, c = a.Vb.length; d < c; d++) e = a.Vb[d], a !== e && -1 === b.indexOf(e) && b.push(e)
  4268. }
  4269. function u(a, b) {
  4270. this.mc = a;
  4271. this.sheet = a.sheet;
  4272. this.b = a.b;
  4273. this.M = [];
  4274. this.la = [];
  4275. this.R = {};
  4276. this.index = -1;
  4277. this.vg = !1;
  4278. this.sb = this.b.ee(b[1]);
  4279. this.trigger = 0 < b[3];
  4280. this.En = 2 === b[3];
  4281. this.md = b[4];
  4282. this.ml = b[5];
  4283. this.Nt = b[6];
  4284. this.U = b[7];
  4285. this.b.Gf[this.U.toString()] = this; - 1 === b[0] ? (this.type = null, this.Va = this.im, this.Le = null, this.xc = -1) :
  4286. (this.type = this.b.r[b[0]], this.Va = this.Nt ? this.Cu : this.hm, b[2] ? (this.Le = this.type.Ii(b[2]), this.xc = this.type.Rk(b[2])) : (this.Le = null, this.xc = -1), this.mc.parent && this.mc.parent.Hj());
  4287. this.En && (this.Va = this.Du);
  4288. if (10 === b.length) {
  4289. var d, c, e = b[9];
  4290. d = 0;
  4291. for (c = e.length; d < c; d++) {
  4292. var h = new Vb(this, e[d]);
  4293. this.M.push(h)
  4294. }
  4295. this.la.length = e.length
  4296. }
  4297. }
  4298. function t(a, b) {
  4299. this.mc = a;
  4300. this.sheet = a.sheet;
  4301. this.b = a.b;
  4302. this.M = [];
  4303. this.la = [];
  4304. this.R = {};
  4305. this.index = -1;
  4306. this.vg = !1;
  4307. this.sb = this.b.ee(b[1]); - 1 === b[0] ? (this.type = null, this.Va =
  4308. this.im, this.Le = null, this.xc = -1) : (this.type = this.b.r[b[0]], this.Va = this.hm, b[2] ? (this.Le = this.type.Ii(b[2]), this.xc = this.type.Rk(b[2])) : (this.Le = null, this.xc = -1));
  4309. this.U = b[3];
  4310. this.b.Bf[this.U.toString()] = this;
  4311. if (6 === b.length) {
  4312. var d, c, e = b[5];
  4313. d = 0;
  4314. for (c = e.length; d < c; d++) {
  4315. var h = new Vb(this, e[d]);
  4316. this.M.push(h)
  4317. }
  4318. this.la.length = e.length
  4319. }
  4320. }
  4321. function n(a, b) {
  4322. this.B = a;
  4323. this.mc = a.mc;
  4324. this.sheet = a.sheet;
  4325. this.b = a.b;
  4326. this.type = b[0];
  4327. this.fd = null;
  4328. this.De = 0;
  4329. this.get = null;
  4330. this.un = 0;
  4331. this.bb = null;
  4332. this.key = 0;
  4333. this.object = null;
  4334. this.index = 0;
  4335. this.Uh = this.sf = this.Uh = this.sf = this.Gn = this.Qe = this.Vh = null;
  4336. this.Mc = !1;
  4337. var d, c, e;
  4338. switch (b[0]) {
  4339. case 0:
  4340. case 7:
  4341. this.fd = new Wb(this, b[1]);
  4342. this.De = 0;
  4343. this.get = this.gt;
  4344. break;
  4345. case 1:
  4346. this.fd = new Wb(this, b[1]);
  4347. this.De = 0;
  4348. this.get = this.ht;
  4349. break;
  4350. case 5:
  4351. this.fd = new Wb(this, b[1]);
  4352. this.De = 0;
  4353. this.get = this.lt;
  4354. break;
  4355. case 3:
  4356. case 8:
  4357. this.un = b[1];
  4358. this.get = this.et;
  4359. break;
  4360. case 6:
  4361. this.bb = this.b.xl[b[1]];
  4362. this.get = this.mt;
  4363. break;
  4364. case 9:
  4365. this.key = b[1];
  4366. this.get = this.kt;
  4367. break;
  4368. case 4:
  4369. this.object = this.b.r[b[1]];
  4370. this.get =
  4371. this.nt;
  4372. this.mc.dn(this.object);
  4373. this.B instanceof Ub ? this.mc.Hj() : this.mc.parent && this.mc.parent.Hj();
  4374. break;
  4375. case 10:
  4376. this.index = b[1];
  4377. a.type.K ? (this.get = this.it, this.Mc = !0) : this.get = this.jt;
  4378. break;
  4379. case 11:
  4380. this.Vh = b[1];
  4381. this.Qe = null;
  4382. this.get = this.ft;
  4383. break;
  4384. case 2:
  4385. case 12:
  4386. this.Gn = b[1];
  4387. this.get = this.dt;
  4388. break;
  4389. case 13:
  4390. for (this.get = this.ot, this.sf = [], this.Uh = [], d = 1, c = b.length; d < c; d++) e = new Vb(this.B, b[d]), this.sf.push(e), this.Uh.push(0)
  4391. }
  4392. }
  4393. function f(a, b, d) {
  4394. this.sheet = a;
  4395. this.parent = b;
  4396. this.b = a.b;
  4397. this.ra = [];
  4398. this.name =
  4399. d[1];
  4400. this.ak = d[2];
  4401. this.il = d[3];
  4402. this.eh = !!d[4];
  4403. this.Pi = !!d[5];
  4404. this.U = d[6];
  4405. this.b.tg[this.U.toString()] = this;
  4406. this.data = this.il;
  4407. this.parent ? (this.lf = this.eh || this.Pi ? -1 : this.b.Mu++, this.b.Ar.push(this)) : (this.lf = -1, this.b.yr.push(this))
  4408. }
  4409. function p(a, b, d) {
  4410. this.sheet = a;
  4411. this.parent = b;
  4412. this.b = a.b;
  4413. this.ra = [];
  4414. this.Wg = null;
  4415. this.yt = d[1];
  4416. this.lc = !0
  4417. }
  4418. function x() {
  4419. this.Hp = [];
  4420. this.reset(null)
  4421. }
  4422. var h = [];
  4423. b.prototype.toString = function() {
  4424. return this.name
  4425. };
  4426. b.prototype.Yn = function(a, b, d) {
  4427. switch (a[0]) {
  4428. case 0:
  4429. a = new Xb(this,
  4430. b, a);
  4431. if (a.Uc)
  4432. for (d.push(a), d = 0, b = a.kb.length; d < b; d++) a.kb[d].trigger && this.Zn(a, d);
  4433. else a.io() ? this.Zn(a, 0) : d.push(a);
  4434. break;
  4435. case 1:
  4436. a = new Pb(this, b, a);
  4437. d.push(a);
  4438. break;
  4439. case 2:
  4440. a = new Yb(this, b, a), d.push(a)
  4441. }
  4442. };
  4443. b.prototype.Oa = function() {
  4444. var a, b;
  4445. a = 0;
  4446. for (b = this.pe.length; a < b; a++) this.pe[a].Oa(a < b - 1 && this.pe[a + 1].Qi)
  4447. };
  4448. b.prototype.Vp = function() {
  4449. this.Ck.length = 0;
  4450. this.ok.length = 0;
  4451. this.cn(this);
  4452. this.ok.length = 0
  4453. };
  4454. b.prototype.cn = function(a) {
  4455. var b, d, c, e, h = a.Ck,
  4456. f = a.ok,
  4457. g = this.Wn.be();
  4458. b = 0;
  4459. for (d = g.length; b < d; ++b) c = g[b],
  4460. e = c.Wg, !c.lc || a === e || -1 < f.indexOf(e) || (f.push(e), e.cn(a), h.push(e))
  4461. };
  4462. b.prototype.Va = function(a) {
  4463. this.b.rw || (this.fl = !0, a || (this.b.pl = !0));
  4464. var b, d;
  4465. b = 0;
  4466. for (d = this.pe.length; b < d; b++) {
  4467. var c = this.pe[b];
  4468. c.Va();
  4469. this.b.wk(c.ra);
  4470. this.b.re && this.b.xb()
  4471. }
  4472. a || (this.b.pl = !1)
  4473. };
  4474. b.prototype.Zn = function(a, b) {
  4475. a.Uc || this.b.Yj.push(a);
  4476. var d, c, e = a.kb[b],
  4477. h;
  4478. h = e.type ? e.type.name : "system";
  4479. var f = (d = e.En) ? this.Fn : this.Np;
  4480. f[h] || (f[h] = []);
  4481. h = f[h];
  4482. f = e.sb;
  4483. if (d) {
  4484. if (e.M.length && (e = e.M[0], 1 === e.type && 2 === e.fd.type)) {
  4485. e = e.fd.value.toLowerCase();
  4486. d = 0;
  4487. for (c = h.length; d < c; d++)
  4488. if (h[d].method == f) {
  4489. d = h[d].Hg;
  4490. d[e] ? d[e].push([a, b]) : d[e] = [
  4491. [a, b]
  4492. ];
  4493. return
  4494. }
  4495. d = {};
  4496. d[e] = [
  4497. [a, b]
  4498. ];
  4499. h.push({
  4500. method: f,
  4501. Hg: d
  4502. })
  4503. }
  4504. } else {
  4505. d = 0;
  4506. for (c = h.length; d < c; d++)
  4507. if (h[d].method == f) {
  4508. h[d].Hg.push([a, b]);
  4509. return
  4510. }
  4511. Y && f === Y.prototype.k.Af ? h.unshift({
  4512. method: f,
  4513. Hg: [
  4514. [a, b]
  4515. ]
  4516. }) : h.push({
  4517. method: f,
  4518. Hg: [
  4519. [a, b]
  4520. ]
  4521. })
  4522. }
  4523. };
  4524. Fb = b;
  4525. s.prototype.el = function() {
  4526. return this.fa ? this.type.d.length : this.d.length
  4527. };
  4528. s.prototype.pc = function() {
  4529. return this.fa ? this.type.d : this.d
  4530. };
  4531. s.prototype.Ah = function(a) {
  4532. a && (a.b.Ab().Wb.Uc ? (this.fa &&
  4533. (this.d.length = 0, Aa(this.ea, a.type.d), this.fa = !1), a = this.ea.indexOf(a), -1 !== a && (this.d.push(this.ea[a]), this.ea.splice(a, 1))) : (this.fa = !1, this.d.length = 1, this.d[0] = a))
  4534. };
  4535. nb = s;
  4536. window._c2hh_ = "417E4E0E570EED14CF766147927F77190F28B24E";
  4537. g.prototype.Oa = function(b) {
  4538. var d, h = this.parent;
  4539. if (this.group)
  4540. for (this.Vj = !0; h;) {
  4541. if (!h.group) {
  4542. this.Vj = !1;
  4543. break
  4544. }
  4545. h = h.parent
  4546. }
  4547. this.ym = !this.io() && (!this.parent || this.parent.group && this.parent.Vj);
  4548. this.Vn = !!b;
  4549. this.Ce = this.ra.slice(0);
  4550. for (h = this.parent; h;) {
  4551. b = 0;
  4552. for (d = h.ra.length; b <
  4553. d; b++) this.xr(h.ra[b]);
  4554. h = h.parent
  4555. }
  4556. this.ra = a(this.ra);
  4557. this.Ce = a(this.Ce);
  4558. b = 0;
  4559. for (d = this.kb.length; b < d; b++) this.kb[b].Oa();
  4560. b = 0;
  4561. for (d = this.Nc.length; b < d; b++) this.Nc[b].Oa();
  4562. b = 0;
  4563. for (d = this.Lc.length; b < d; b++) this.Lc[b].Oa(b < d - 1 && this.Lc[b + 1].Qi)
  4564. };
  4565. g.prototype.dn = function(a) {
  4566. d(a, this.ra)
  4567. };
  4568. g.prototype.xr = function(a) {
  4569. d(a, this.Ce)
  4570. };
  4571. g.prototype.Hj = function() {
  4572. this.Ep = !0;
  4573. this.parent && this.parent.Hj()
  4574. };
  4575. g.prototype.io = function() {
  4576. return this.kb.length ? this.kb[0].trigger : !1
  4577. };
  4578. g.prototype.Va = function() {
  4579. var a, b = !1,
  4580. d,
  4581. c = this.b,
  4582. e = this.b.Ab();
  4583. e.Wb = this;
  4584. var h = this.kb;
  4585. this.Qi || (e.Fk = !1);
  4586. if (this.Uc) {
  4587. 0 === h.length && (b = !0);
  4588. e.$a = 0;
  4589. for (a = h.length; e.$a < a; e.$a++) h[e.$a].trigger || (d = h[e.$a].Va()) && (b = !0);
  4590. (e.cf = b) && this.Dj()
  4591. } else {
  4592. e.$a = 0;
  4593. for (a = h.length; e.$a < a; e.$a++)
  4594. if (d = h[e.$a].Va(), !d) {
  4595. e.cf = !1;
  4596. this.ym && c.re && c.xb();
  4597. return
  4598. }
  4599. e.cf = !0;
  4600. this.Dj()
  4601. }
  4602. this.js(e)
  4603. };
  4604. g.prototype.js = function(a) {
  4605. a.cf && this.Vn && (a.Fk = !0);
  4606. this.ym && this.b.re && this.b.xb()
  4607. };
  4608. g.prototype.Au = function(a) {
  4609. this.b.Ab().Wb = this;
  4610. this.kb[a].Va() && (this.Dj(), this.b.Ab().cf = !0)
  4611. };
  4612. g.prototype.Dj = function() {
  4613. var a = this.b.Ab(),
  4614. b;
  4615. a.Tb = 0;
  4616. for (b = this.Nc.length; a.Tb < b; a.Tb++)
  4617. if (this.Nc[a.Tb].Va()) return;
  4618. this.tp()
  4619. };
  4620. g.prototype.xu = function() {
  4621. var a = this.b.Ab(),
  4622. b;
  4623. for (b = this.Nc.length; a.Tb < b; a.Tb++)
  4624. if (this.Nc[a.Tb].Va()) return;
  4625. this.tp()
  4626. };
  4627. g.prototype.tp = function() {
  4628. if (this.Lc.length) {
  4629. var a, b, d, c, e = this.Lc.length - 1;
  4630. this.b.xj(this);
  4631. if (this.Ep)
  4632. for (a = 0, b = this.Lc.length; a < b; a++) d = this.Lc[a], (c = !this.Vj || !this.group && a < e) && this.b.wj(d.ra), d.Va(), c ? this.b.nf(d.ra) : this.b.wk(d.ra);
  4633. else
  4634. for (a =
  4635. 0, b = this.Lc.length; a < b; a++) this.Lc[a].Va();
  4636. this.b.sj()
  4637. }
  4638. };
  4639. g.prototype.Bu = function() {
  4640. var a = this.b.Ab();
  4641. a.Wb = this;
  4642. var b = !1,
  4643. d;
  4644. a.$a = 0;
  4645. for (d = this.kb.length; a.$a < d; a.$a++)
  4646. if (this.kb[a.$a].Va()) b = !0;
  4647. else if (!this.Uc) return !1;
  4648. return this.Uc ? b : !0
  4649. };
  4650. g.prototype.yu = function() {
  4651. this.b.Ig++;
  4652. var a = this.b.Ab().$a,
  4653. b = this.b.xj(this);
  4654. if (!this.Uc)
  4655. for (b.$a = a + 1, a = this.kb.length; b.$a < a; b.$a++)
  4656. if (!this.kb[b.$a].Va()) {
  4657. this.b.sj();
  4658. return
  4659. }
  4660. this.Dj();
  4661. this.b.sj()
  4662. };
  4663. g.prototype.Gt = function(a) {
  4664. var b = a.index;
  4665. if (0 === b) return !0;
  4666. for (--b; 0 <=
  4667. b; --b)
  4668. if (this.kb[b].type === a.type) return !1;
  4669. return !0
  4670. };
  4671. Xb = g;
  4672. u.prototype.Oa = function() {
  4673. var a, b, d;
  4674. a = 0;
  4675. for (b = this.M.length; a < b; a++) d = this.M[a], d.Oa(), d.Mc && (this.vg = !0)
  4676. };
  4677. u.prototype.Du = function() {
  4678. return !0
  4679. };
  4680. u.prototype.im = function() {
  4681. var a, b;
  4682. a = 0;
  4683. for (b = this.M.length; a < b; a++) this.la[a] = this.M[a].get();
  4684. return Va(this.sb.apply(this.b.vd, this.la), this.ml)
  4685. };
  4686. u.prototype.Cu = function() {
  4687. var a, b;
  4688. a = 0;
  4689. for (b = this.M.length; a < b; a++) this.la[a] = this.M[a].get();
  4690. a = this.sb.apply(this.Le ? this.Le : this.type, this.la);
  4691. this.type.wc();
  4692. return a
  4693. };
  4694. u.prototype.hm = function() {
  4695. var a, b, d, c, e, h, f, g, n = this.type,
  4696. k = n.Y(),
  4697. p = this.mc.Uc && !this.trigger;
  4698. b = 0;
  4699. var t = n.tc,
  4700. w = n.K,
  4701. s = n.Od,
  4702. r = this.xc,
  4703. u = -1 < r,
  4704. y = this.vg,
  4705. x = this.M,
  4706. B = this.la,
  4707. D = this.ml,
  4708. N = this.sb,
  4709. F;
  4710. if (y)
  4711. for (b = 0, e = x.length; b < e; ++b) h = x[b], h.Mc || (B[b] = h.get(0));
  4712. else
  4713. for (b = 0, e = x.length; b < e; ++b) B[b] = x[b].get(0);
  4714. if (k.fa) {
  4715. k.d.length = 0;
  4716. k.ea.length = 0;
  4717. F = n.d;
  4718. a = 0;
  4719. for (c = F.length; a < c; ++a) {
  4720. g = F[a];
  4721. if (y)
  4722. for (b = 0, e = x.length; b < e; ++b) h = x[b], h.Mc && (B[b] = h.get(a));
  4723. u ? (b = 0, w && (b = g.type.Jf[s]), b = N.apply(g.L[r + b], B)) : b = N.apply(g,
  4724. B);
  4725. (f = Va(b, D)) ? k.d.push(g): p && k.ea.push(g)
  4726. }
  4727. n.finish && n.finish(!0);
  4728. k.fa = !1;
  4729. n.wc();
  4730. return k.el()
  4731. }
  4732. d = 0;
  4733. F = (f = p && !this.mc.Gt(this)) ? k.ea : k.d;
  4734. var I = !1;
  4735. a = 0;
  4736. for (c = F.length; a < c; ++a) {
  4737. g = F[a];
  4738. if (y)
  4739. for (b = 0, e = x.length; b < e; ++b) h = x[b], h.Mc && (B[b] = h.get(a));
  4740. u ? (b = 0, w && (b = g.type.Jf[s]), b = N.apply(g.L[r + b], B)) : b = N.apply(g, B);
  4741. if (Va(b, D))
  4742. if (I = !0, f) {
  4743. if (k.d.push(g), t)
  4744. for (b = 0, e = g.siblings.length; b < e; b++) h = g.siblings[b], h.type.Y().d.push(h)
  4745. } else {
  4746. F[d] = g;
  4747. if (t)
  4748. for (b = 0, e = g.siblings.length; b < e; b++) h = g.siblings[b], h.type.Y().d[d] =
  4749. h;
  4750. d++
  4751. } else if (f) {
  4752. F[d] = g;
  4753. if (t)
  4754. for (b = 0, e = g.siblings.length; b < e; b++) h = g.siblings[b], h.type.Y().ea[d] = h;
  4755. d++
  4756. } else if (p && (k.ea.push(g), t))
  4757. for (b = 0, e = g.siblings.length; b < e; b++) h = g.siblings[b], h.type.Y().ea.push(h)
  4758. }
  4759. F.length = d;
  4760. if (t)
  4761. for (w = n.Vb, a = 0, c = w.length; a < c; a++) g = w[a].Y(), f ? g.ea.length = d : g.d.length = d;
  4762. d = I;
  4763. if (f && !I)
  4764. for (a = 0, c = k.d.length; a < c; a++) {
  4765. g = k.d[a];
  4766. if (y)
  4767. for (b = 0, e = x.length; b < e; b++) h = x[b], h.Mc && (B[b] = h.get(a));
  4768. b = u ? N.apply(g.L[r], B) : N.apply(g, B);
  4769. if (Va(b, D)) {
  4770. I = !0;
  4771. break
  4772. }
  4773. }
  4774. n.finish && n.finish(d || p);
  4775. return p ?
  4776. I : k.el()
  4777. };
  4778. Tb = u;
  4779. t.prototype.Oa = function() {
  4780. var a, b, d;
  4781. a = 0;
  4782. for (b = this.M.length; a < b; a++) d = this.M[a], d.Oa(), d.Mc && (this.vg = !0)
  4783. };
  4784. t.prototype.im = function() {
  4785. var a, b;
  4786. a = 0;
  4787. for (b = this.M.length; a < b; a++) this.la[a] = this.M[a].get();
  4788. return this.sb.apply(this.b.vd, this.la)
  4789. };
  4790. t.prototype.hm = function() {
  4791. var a = this.type.Y().pc(),
  4792. b = this.type.K,
  4793. d = this.type.Od,
  4794. c = this.xc,
  4795. e = -1 < c,
  4796. h = this.vg,
  4797. f = this.M,
  4798. g = this.la,
  4799. n = this.sb,
  4800. k, p, t, w, s, r;
  4801. if (h)
  4802. for (p = 0, w = f.length; p < w; ++p) s = f[p], s.Mc || (g[p] = s.get(0));
  4803. else
  4804. for (p = 0, w = f.length; p < w; ++p) g[p] =
  4805. f[p].get(0);
  4806. k = 0;
  4807. for (t = a.length; k < t; ++k) {
  4808. r = a[k];
  4809. if (h)
  4810. for (p = 0, w = f.length; p < w; ++p) s = f[p], s.Mc && (g[p] = s.get(k));
  4811. e ? (p = 0, b && (p = r.type.Jf[d]), n.apply(r.L[c + p], g)) : n.apply(r, g)
  4812. }
  4813. return !1
  4814. };
  4815. Ub = t;
  4816. var w = [],
  4817. y = -1;
  4818. n.prototype.Oa = function() {
  4819. var a, b;
  4820. if (11 === this.type) this.Qe = this.b.Mn(this.Vh, this.mc.parent);
  4821. else if (13 === this.type)
  4822. for (a = 0, b = this.sf.length; a < b; a++) this.sf[a].Oa();
  4823. this.fd && this.fd.Oa()
  4824. };
  4825. n.prototype.Tt = function(a) {
  4826. this.Mc || !a || a.qa.Kj || (this.Mc = !0)
  4827. };
  4828. n.prototype.wp = function() {
  4829. this.Mc = !0
  4830. };
  4831. n.prototype.gb =
  4832. function() {
  4833. y++;
  4834. w.length === y && w.push(new Zb);
  4835. return w[y]
  4836. };
  4837. n.prototype.Ua = function() {
  4838. y--
  4839. };
  4840. n.prototype.gt = function(a) {
  4841. this.De = a || 0;
  4842. a = this.gb();
  4843. this.fd.get(a);
  4844. this.Ua();
  4845. return a.data
  4846. };
  4847. n.prototype.ht = function(a) {
  4848. this.De = a || 0;
  4849. a = this.gb();
  4850. this.fd.get(a);
  4851. this.Ua();
  4852. return R(a.data) ? a.data : ""
  4853. };
  4854. n.prototype.nt = function() {
  4855. return this.object
  4856. };
  4857. n.prototype.et = function() {
  4858. return this.un
  4859. };
  4860. n.prototype.lt = function(a) {
  4861. this.De = a || 0;
  4862. a = this.gb();
  4863. this.fd.get(a);
  4864. this.Ua();
  4865. return a.lb() ? this.b.Mg(a.data) : this.b.Yk(a.data)
  4866. };
  4867. n.prototype.mt = function() {
  4868. return this.bb
  4869. };
  4870. n.prototype.kt = function() {
  4871. return this.key
  4872. };
  4873. n.prototype.jt = function() {
  4874. return this.index
  4875. };
  4876. n.prototype.it = function(a) {
  4877. a = a || 0;
  4878. var b = this.B.type,
  4879. d = null,
  4880. d = b.Y(),
  4881. c = d.pc();
  4882. if (c.length) d = c[a % c.length].type;
  4883. else if (d.ea.length) d = d.ea[a % d.ea.length].type;
  4884. else if (b.d.length) d = b.d[a % b.d.length].type;
  4885. else return 0;
  4886. return this.index + d.Bi[b.Od]
  4887. };
  4888. n.prototype.ft = function() {
  4889. return this.Qe
  4890. };
  4891. n.prototype.dt = function() {
  4892. return this.Gn
  4893. };
  4894. n.prototype.ot = function() {
  4895. var a, b;
  4896. a = 0;
  4897. for (b =
  4898. this.sf.length; a < b; a++) this.Uh[a] = this.sf[a].get();
  4899. return this.Uh
  4900. };
  4901. Vb = n;
  4902. f.prototype.Oa = function() {
  4903. this.ra = a(this.ra)
  4904. };
  4905. f.prototype.qf = function(a) {
  4906. var b = this.b.Ln();
  4907. this.parent && !this.eh && b ? (this.lf >= b.length && (b.length = this.lf + 1), b[this.lf] = a) : this.data = a
  4908. };
  4909. f.prototype.Pg = function() {
  4910. var a = this.b.Ln();
  4911. return !this.parent || this.eh || !a || this.Pi ? this.data : this.lf >= a.length || "undefined" === typeof a[this.lf] ? this.il : a[this.lf]
  4912. };
  4913. f.prototype.Va = function() {
  4914. !this.parent || this.eh || this.Pi || this.qf(this.il)
  4915. };
  4916. Pb =
  4917. f;
  4918. p.prototype.toString = function() {
  4919. return "include:" + this.Wg.toString()
  4920. };
  4921. p.prototype.Oa = function() {
  4922. this.Wg = this.b.Hk[this.yt];
  4923. this.sheet.Wn.add(this);
  4924. this.ra = a(this.ra);
  4925. for (var b = this.parent; b;) b.group && b.vn.push(this), b = b.parent;
  4926. this.Uu()
  4927. };
  4928. p.prototype.Va = function() {
  4929. this.parent && this.b.Eh(this.b.r);
  4930. this.Wg.fl || this.Wg.Va(!0);
  4931. this.parent && this.b.nf(this.b.r)
  4932. };
  4933. p.prototype.Uu = function() {
  4934. for (var a = this.parent; a;) {
  4935. if (a.group && !a.Rg) {
  4936. this.lc = !1;
  4937. return
  4938. }
  4939. a = a.parent
  4940. }
  4941. this.lc = !0
  4942. };
  4943. Yb = p;
  4944. x.prototype.reset = function(a) {
  4945. this.Wb =
  4946. a;
  4947. this.Tb = this.$a = 0;
  4948. this.Hp.length = 0;
  4949. this.Fk = this.cf = !1
  4950. };
  4951. Ob = x
  4952. })();
  4953. (function() {
  4954. function k(a, b) {
  4955. this.B = a;
  4956. this.b = a.b;
  4957. this.type = b[0];
  4958. this.get = [this.xs, this.ts, this.Fs, this.Is, this.ls, this.Gs, this.Bs, this.os, this.As, this.Es, this.ms, this.Ds, this.qs, this.Cs, this.ys, this.zs, this.us, this.vs, this.ns, this.Hs, this.Cn, this.ws, this.Cn, this.rs][this.type];
  4959. var k = null;
  4960. this.Pb = this.M = this.la = this.sb = this.Sj = this.pb = this.first = this.value = null;
  4961. this.xc = -1;
  4962. this.Pd = null;
  4963. this.Hm = -1;
  4964. this.Qe = this.Vh = null;
  4965. this.Fh = !1;
  4966. switch (this.type) {
  4967. case 0:
  4968. case 1:
  4969. case 2:
  4970. this.value = b[1];
  4971. break;
  4972. case 3:
  4973. this.first =
  4974. new Wb(a, b[1]);
  4975. break;
  4976. case 18:
  4977. this.first = new Wb(a, b[1]);
  4978. this.pb = new Wb(a, b[2]);
  4979. this.Sj = new Wb(a, b[3]);
  4980. break;
  4981. case 19:
  4982. this.sb = this.b.ee(b[1]);
  4983. this.sb !== X.prototype.xa.random && this.sb !== X.prototype.xa.tn || this.B.wp();
  4984. this.la = [];
  4985. this.M = [];
  4986. 3 === b.length ? (k = b[2], this.la.length = k.length + 1) : this.la.length = 1;
  4987. break;
  4988. case 20:
  4989. this.Pb = this.b.r[b[1]];
  4990. this.xc = -1;
  4991. this.sb = this.b.ee(b[2]);
  4992. this.Fh = b[3];
  4993. ac.Function && this.sb === ac.Function.prototype.xa.jv && this.B.wp();
  4994. this.Pd = b[4] ? new Wb(a, b[4]) : null;
  4995. this.la = [];
  4996. this.M = [];
  4997. 6 === b.length ? (k = b[5], this.la.length = k.length + 1) : this.la.length = 1;
  4998. break;
  4999. case 21:
  5000. this.Pb = this.b.r[b[1]];
  5001. this.Fh = b[2];
  5002. this.Pd = b[3] ? new Wb(a, b[3]) : null;
  5003. this.Hm = b[4];
  5004. break;
  5005. case 22:
  5006. this.Pb = this.b.r[b[1]];
  5007. this.Pb.Ii(b[2]);
  5008. this.xc = this.Pb.Rk(b[2]);
  5009. this.sb = this.b.ee(b[3]);
  5010. this.Fh = b[4];
  5011. this.Pd = b[5] ? new Wb(a, b[5]) : null;
  5012. this.la = [];
  5013. this.M = [];
  5014. 7 === b.length ? (k = b[6], this.la.length = k.length + 1) : this.la.length = 1;
  5015. break;
  5016. case 23:
  5017. this.Vh = b[1], this.Qe = null
  5018. }
  5019. this.B.Tt(this.Pb);
  5020. 4 <= this.type && 17 >= this.type && (this.first = new Wb(a,
  5021. b[1]), this.pb = new Wb(a, b[2]));
  5022. if (k) {
  5023. var g, d;
  5024. g = 0;
  5025. for (d = k.length; g < d; g++) this.M.push(new Wb(a, k[g]))
  5026. }
  5027. }
  5028. function r(a, b) {
  5029. this.type = a || W.zf;
  5030. this.data = b || 0;
  5031. this.cg = null;
  5032. this.type == W.zf && (this.data = Math.floor(this.data))
  5033. }
  5034. k.prototype.Oa = function() {
  5035. 23 === this.type && (this.Qe = this.B.b.Mn(this.Vh, this.B.mc.parent));
  5036. this.first && this.first.Oa();
  5037. this.pb && this.pb.Oa();
  5038. this.Sj && this.Sj.Oa();
  5039. this.Pd && this.Pd.Oa();
  5040. if (this.M) {
  5041. var a, b;
  5042. a = 0;
  5043. for (b = this.M.length; a < b; a++) this.M[a].Oa()
  5044. }
  5045. };
  5046. k.prototype.Hs = function(a) {
  5047. this.la[0] =
  5048. a;
  5049. a = this.B.gb();
  5050. var b, k;
  5051. b = 0;
  5052. for (k = this.M.length; b < k; b++) this.M[b].get(a), this.la[b + 1] = a.data;
  5053. this.B.Ua();
  5054. this.sb.apply(this.b.vd, this.la)
  5055. };
  5056. k.prototype.Cn = function(a) {
  5057. var b = this.Pb.Y(),
  5058. k = b.pc();
  5059. if (!k.length)
  5060. if (b.ea.length) k = b.ea;
  5061. else {
  5062. this.Fh ? a.Pa("") : a.ma(0);
  5063. return
  5064. }
  5065. this.la[0] = a;
  5066. a.cg = this.Pb;
  5067. a = this.B.gb();
  5068. var g, b = 0;
  5069. for (g = this.M.length; b < g; b++) this.M[b].get(a), this.la[b + 1] = a.data;
  5070. b = this.B.De;
  5071. this.Pd && (this.Pd.get(a), a.lb() && (b = a.data, k = this.Pb.d));
  5072. this.B.Ua();
  5073. b %= k.length;
  5074. 0 > b && (b += k.length);
  5075. k = k[b]; - 1 <
  5076. this.xc ? (a = 0, this.Pb.K && (a = k.type.Jf[this.Pb.Od]), this.sb.apply(k.L[this.xc + a], this.la)) : this.sb.apply(k, this.la)
  5077. };
  5078. k.prototype.ws = function(a) {
  5079. var b = this.Pb.Y(),
  5080. k = b.pc();
  5081. if (!k.length)
  5082. if (b.ea.length) k = b.ea;
  5083. else {
  5084. this.Fh ? a.Pa("") : a.ma(0);
  5085. return
  5086. }
  5087. b = this.B.De;
  5088. if (this.Pd) {
  5089. var g = this.B.gb();
  5090. this.Pd.get(g);
  5091. if (g.lb()) {
  5092. b = g.data;
  5093. k = this.Pb.d;
  5094. b %= k.length;
  5095. 0 > b && (b += k.length);
  5096. k = k[b].ab[this.Hm];
  5097. R(k) ? a.Pa(k) : a.D(k);
  5098. this.B.Ua();
  5099. return
  5100. }
  5101. this.B.Ua()
  5102. }
  5103. b %= k.length;
  5104. 0 > b && (b += k.length);
  5105. k = k[b];
  5106. b = 0;
  5107. this.Pb.K && (b = k.type.Bi[this.Pb.Od]);
  5108. k = k.ab[this.Hm + b];
  5109. R(k) ? a.Pa(k) : a.D(k)
  5110. };
  5111. k.prototype.xs = function(a) {
  5112. a.type = W.zf;
  5113. a.data = this.value
  5114. };
  5115. k.prototype.ts = function(a) {
  5116. a.type = W.yf;
  5117. a.data = this.value
  5118. };
  5119. k.prototype.Fs = function(a) {
  5120. a.type = W.String;
  5121. a.data = this.value
  5122. };
  5123. k.prototype.Is = function(a) {
  5124. this.first.get(a);
  5125. a.lb() && (a.data = -a.data)
  5126. };
  5127. k.prototype.ls = function(a) {
  5128. this.first.get(a);
  5129. var b = this.B.gb();
  5130. this.pb.get(b);
  5131. a.lb() && b.lb() && (a.data += b.data, b.Rf() && a.Zf());
  5132. this.B.Ua()
  5133. };
  5134. k.prototype.Gs = function(a) {
  5135. this.first.get(a);
  5136. var b = this.B.gb();
  5137. this.pb.get(b);
  5138. a.lb() && b.lb() && (a.data -= b.data, b.Rf() && a.Zf());
  5139. this.B.Ua()
  5140. };
  5141. k.prototype.Bs = function(a) {
  5142. this.first.get(a);
  5143. var b = this.B.gb();
  5144. this.pb.get(b);
  5145. a.lb() && b.lb() && (a.data *= b.data, b.Rf() && a.Zf());
  5146. this.B.Ua()
  5147. };
  5148. k.prototype.os = function(a) {
  5149. this.first.get(a);
  5150. var b = this.B.gb();
  5151. this.pb.get(b);
  5152. a.lb() && b.lb() && (a.data /= b.data, a.Zf());
  5153. this.B.Ua()
  5154. };
  5155. k.prototype.As = function(a) {
  5156. this.first.get(a);
  5157. var b = this.B.gb();
  5158. this.pb.get(b);
  5159. a.lb() && b.lb() && (a.data %= b.data, b.Rf() && a.Zf());
  5160. this.B.Ua()
  5161. };
  5162. k.prototype.Es = function(a) {
  5163. this.first.get(a);
  5164. var b = this.B.gb();
  5165. this.pb.get(b);
  5166. a.lb() && b.lb() && (a.data = Math.pow(a.data, b.data), b.Rf() && a.Zf());
  5167. this.B.Ua()
  5168. };
  5169. k.prototype.ms = function(a) {
  5170. this.first.get(a);
  5171. var b = this.B.gb();
  5172. this.pb.get(b);
  5173. a.lb() ? b.Ri() ? a.Pa(a.data.toString() + b.data) : a.data && b.data ? a.ma(1) : a.ma(0) : a.Ri() && (a.data = b.Ri() ? a.data + b.data : a.data + (Math.round(1E10 * b.data) / 1E10).toString());
  5174. this.B.Ua()
  5175. };
  5176. k.prototype.Ds = function(a) {
  5177. this.first.get(a);
  5178. var b = this.B.gb();
  5179. this.pb.get(b);
  5180. a.lb() && b.lb() && (a.data || b.data ? a.ma(1) : a.ma(0));
  5181. this.B.Ua()
  5182. };
  5183. k.prototype.ns = function(a) {
  5184. this.first.get(a);
  5185. a.data ? this.pb.get(a) : this.Sj.get(a)
  5186. };
  5187. k.prototype.qs = function(a) {
  5188. this.first.get(a);
  5189. var b = this.B.gb();
  5190. this.pb.get(b);
  5191. a.ma(a.data === b.data ? 1 : 0);
  5192. this.B.Ua()
  5193. };
  5194. k.prototype.Cs = function(a) {
  5195. this.first.get(a);
  5196. var b = this.B.gb();
  5197. this.pb.get(b);
  5198. a.ma(a.data !== b.data ? 1 : 0);
  5199. this.B.Ua()
  5200. };
  5201. k.prototype.ys = function(a) {
  5202. this.first.get(a);
  5203. var b = this.B.gb();
  5204. this.pb.get(b);
  5205. a.ma(a.data < b.data ? 1 : 0);
  5206. this.B.Ua()
  5207. };
  5208. k.prototype.zs = function(a) {
  5209. this.first.get(a);
  5210. var b = this.B.gb();
  5211. this.pb.get(b);
  5212. a.ma(a.data <= b.data ? 1 : 0);
  5213. this.B.Ua()
  5214. };
  5215. k.prototype.us = function(a) {
  5216. this.first.get(a);
  5217. var b = this.B.gb();
  5218. this.pb.get(b);
  5219. a.ma(a.data > b.data ? 1 : 0);
  5220. this.B.Ua()
  5221. };
  5222. k.prototype.vs = function(a) {
  5223. this.first.get(a);
  5224. var b = this.B.gb();
  5225. this.pb.get(b);
  5226. a.ma(a.data >= b.data ? 1 : 0);
  5227. this.B.Ua()
  5228. };
  5229. k.prototype.rs = function(a) {
  5230. var b = this.Qe.Pg();
  5231. ia(b) ? a.D(b) : a.Pa(b)
  5232. };
  5233. Wb = k;
  5234. r.prototype.Rf = function() {
  5235. return this.type === W.yf
  5236. };
  5237. r.prototype.lb = function() {
  5238. return this.type === W.zf || this.type === W.yf
  5239. };
  5240. r.prototype.Ri = function() {
  5241. return this.type ===
  5242. W.String
  5243. };
  5244. r.prototype.Zf = function() {
  5245. this.Rf() || (this.Ri() && (this.data = parseFloat(this.data)), this.type = W.yf)
  5246. };
  5247. r.prototype.ma = function(a) {
  5248. this.type = W.zf;
  5249. this.data = Math.floor(a)
  5250. };
  5251. r.prototype.D = function(a) {
  5252. this.type = W.yf;
  5253. this.data = a
  5254. };
  5255. r.prototype.Pa = function(a) {
  5256. this.type = W.String;
  5257. this.data = a
  5258. };
  5259. r.prototype.Ku = function(a) {
  5260. ia(a) ? (this.type = W.yf, this.data = a) : R(a) ? (this.type = W.String, this.data = a.toString()) : (this.type = W.zf, this.data = 0)
  5261. };
  5262. Zb = r;
  5263. W = {
  5264. zf: 0,
  5265. yf: 1,
  5266. String: 2
  5267. }
  5268. })();
  5269. function X(k) {
  5270. this.b = k;
  5271. this.Sb = []
  5272. }
  5273. X.prototype.Bb = function() {
  5274. var k = {},
  5275. r, a, b, s, g, d, u, t;
  5276. k.waits = [];
  5277. var n = k.waits,
  5278. f;
  5279. r = 0;
  5280. for (a = this.Sb.length; r < a; r++) {
  5281. d = this.Sb[r];
  5282. f = {
  5283. t: d.time,
  5284. st: d.Dp,
  5285. s: d.qm,
  5286. ev: d.Hf.U,
  5287. sm: [],
  5288. sols: {}
  5289. };
  5290. d.Hf.Nc[d.Tb] && (f.act = d.Hf.Nc[d.Tb].U);
  5291. b = 0;
  5292. for (s = d.ra.length; b < s; b++) f.sm.push(d.ra[b].U);
  5293. for (g in d.Kb)
  5294. if (d.Kb.hasOwnProperty(g)) {
  5295. u = this.b.r[parseInt(g, 10)];
  5296. t = {
  5297. sa: d.Kb[g].Ej,
  5298. insts: []
  5299. };
  5300. b = 0;
  5301. for (s = d.Kb[g].Qd.length; b < s; b++) t.insts.push(d.Kb[g].Qd[b].uid);
  5302. f.sols[u.U.toString()] = t
  5303. }
  5304. n.push(f)
  5305. }
  5306. return k
  5307. };
  5308. X.prototype.Ob = function(k) {
  5309. k = k.waits;
  5310. var r, a, b, s, g, d, u, t, n, f, p;
  5311. r = this.Sb.length = 0;
  5312. for (a = k.length; r < a; r++)
  5313. if (d = k[r], t = this.b.ln[d.ev.toString()]) {
  5314. n = -1;
  5315. b = 0;
  5316. for (s = t.Nc.length; b < s; b++)
  5317. if (t.Nc[b].U === d.act) {
  5318. n = b;
  5319. break
  5320. }
  5321. if (-1 !== n) {
  5322. u = {
  5323. Kb: {},
  5324. ra: [],
  5325. Dk: !1
  5326. };
  5327. u.time = d.t;
  5328. u.Dp = d.st || "";
  5329. u.qm = !!d.s;
  5330. u.Hf = t;
  5331. u.Tb = n;
  5332. b = 0;
  5333. for (s = d.sm.length; b < s; b++)(t = this.b.Ki(d.sm[b])) && u.ra.push(t);
  5334. for (g in d.sols)
  5335. if (d.sols.hasOwnProperty(g) && (t = this.b.Ki(parseInt(g, 10)))) {
  5336. n = d.sols[g];
  5337. f = {
  5338. Ej: n.sa,
  5339. Qd: []
  5340. };
  5341. b = 0;
  5342. for (s = n.insts.length; b < s; b++)(p =
  5343. this.b.Ng(n.insts[b])) && f.Qd.push(p);
  5344. u.Kb[t.index.toString()] = f
  5345. }
  5346. this.Sb.push(u)
  5347. }
  5348. }
  5349. };
  5350. (function() {
  5351. function k() {}
  5352. function r() {}
  5353. function a() {}
  5354. var b = X.prototype;
  5355. k.prototype.mq = function() {
  5356. return !0
  5357. };
  5358. k.prototype.Qm = function() {
  5359. return !0
  5360. };
  5361. k.prototype.Kq = function() {
  5362. return !0
  5363. };
  5364. k.prototype.lq = function(a) {
  5365. var b = this.b.Tk(),
  5366. g = b.R.Every_lastTime || 0,
  5367. k = this.b.Gb.X;
  5368. "undefined" === typeof b.R.Every_seconds && (b.R.Every_seconds = a);
  5369. var f = b.R.Every_seconds;
  5370. if (k >= g + f) return b.R.Every_lastTime = g + f, k >= b.R.Every_lastTime + .04 && (b.R.Every_lastTime = k), b.R.Every_seconds = a, !0;
  5371. k < g - .1 && (b.R.Every_lastTime = k);
  5372. return !1
  5373. };
  5374. k.prototype.gq = function(a, b, g) {
  5375. return $b(a.Pg(), b, g)
  5376. };
  5377. k.prototype.qq = function(a) {
  5378. return (a = this.b.Tg[a.toLowerCase()]) && a.Rg
  5379. };
  5380. k.prototype.kq = function() {
  5381. var a = this.b.Ab();
  5382. return a.Fk ? !1 : !a.cf
  5383. };
  5384. k.prototype.Rm = function() {
  5385. return !0
  5386. };
  5387. k.prototype.Bq = function() {
  5388. return !0
  5389. };
  5390. k.prototype.gk = function() {
  5391. return !0
  5392. };
  5393. k.prototype.Lq = function() {
  5394. return !0
  5395. };
  5396. k.prototype.fk = function() {
  5397. return !0
  5398. };
  5399. k.prototype.cq = function(a, b, g) {
  5400. return Ma(V(a), V(g)) <= V(b)
  5401. };
  5402. k.prototype.Nm = function(a, b) {
  5403. return Oa(V(a), V(b))
  5404. };
  5405. k.prototype.pq = function(a,
  5406. b, g) {
  5407. a = Ka(a);
  5408. b = Ka(b);
  5409. g = Ka(g);
  5410. return Oa(g, b) ? Oa(a, b) && !Oa(a, g) : !(!Oa(a, b) && Oa(a, g))
  5411. };
  5412. b.k = new k;
  5413. r.prototype.nq = function(a) {
  5414. this.b.fh || this.b.Cg || (this.b.Cg = a)
  5415. };
  5416. r.prototype.iq = function(a, b, g, k) {
  5417. if (b && a && (b = this.b.wn(a, b, g, k))) {
  5418. this.b.Rc++;
  5419. var f;
  5420. this.b.trigger(Object.getPrototypeOf(a.qa).k.dk, b);
  5421. if (b.tc)
  5422. for (g = 0, k = b.siblings.length; g < k; g++) f = b.siblings[g], this.b.trigger(Object.getPrototypeOf(f.type.qa).k.dk, f);
  5423. this.b.Rc--;
  5424. a = a.Y();
  5425. a.fa = !1;
  5426. a.d.length = 1;
  5427. a.d[0] = b;
  5428. if (b.tc)
  5429. for (g = 0, k = b.siblings.length; g < k; g++) f =
  5430. b.siblings[g], a = f.type.Y(), a.fa = !1, a.d.length = 1, a.d[0] = f
  5431. }
  5432. };
  5433. r.prototype.dr = function(a, b) {
  5434. a && a.visible !== b && (a.visible = b, this.b.aa = !0)
  5435. };
  5436. r.prototype.cr = function(a, b) {
  5437. a && (b = Ea(b / 100, 0, 1), a.opacity !== b && (a.opacity = b, this.b.aa = !0))
  5438. };
  5439. r.prototype.hr = function(a, b) {
  5440. 0 === a.ak ? ia(b) ? a.qf(b) : a.qf(parseFloat(b)) : 1 === a.ak && a.qf(b.toString())
  5441. };
  5442. r.prototype.bq = function(a, b) {
  5443. 0 === a.ak ? ia(b) ? a.qf(a.Pg() + b) : a.qf(a.Pg() + parseFloat(b)) : 1 === a.ak && a.qf(a.Pg() + b.toString())
  5444. };
  5445. var s = [],
  5446. g = [];
  5447. r.prototype.or = function(a) {
  5448. if (!(0 > a)) {
  5449. var b,
  5450. k, n, f = this.b.Ab(),
  5451. p;
  5452. p = s.length ? s.pop() : {
  5453. Kb: {},
  5454. ra: []
  5455. };
  5456. p.Dk = !1;
  5457. p.time = this.b.Gb.X + a;
  5458. p.Dp = "";
  5459. p.qm = !1;
  5460. p.Hf = f.Wb;
  5461. p.Tb = f.Tb + 1;
  5462. a = 0;
  5463. for (b = this.b.r.length; a < b; a++) n = this.b.r[a], k = n.Y(), k.fa && -1 === f.Wb.ra.indexOf(n) || (p.ra.push(n), n = void 0, n = g.length ? g.pop() : {
  5464. Qd: []
  5465. }, n.Ej = !1, n.Ej = k.fa, Aa(n.Qd, k.d), p.Kb[a.toString()] = n);
  5466. this.Sb.push(p);
  5467. return !0
  5468. }
  5469. };
  5470. b.F = new r;
  5471. a.prototype["int"] = function(a, b) {
  5472. R(b) ? (a.ma(parseInt(b, 10)), isNaN(a.data) && (a.data = 0)) : a.ma(b)
  5473. };
  5474. a.prototype["float"] = function(a, b) {
  5475. R(b) ? (a.D(parseFloat(b)),
  5476. isNaN(a.data) && (a.data = 0)) : a.D(b)
  5477. };
  5478. a.prototype.Pu = function(a, b) {
  5479. R(b) ? a.Pa(b) : a.Pa(b.toString())
  5480. };
  5481. a.prototype.random = function(a, b, g) {
  5482. void 0 === g ? a.D(Math.random() * b) : a.D(Math.random() * (g - b) + b)
  5483. };
  5484. a.prototype.sqrt = function(a, b) {
  5485. a.D(Math.sqrt(b))
  5486. };
  5487. a.prototype.abs = function(a, b) {
  5488. a.D(Math.abs(b))
  5489. };
  5490. a.prototype.round = function(a, b) {
  5491. a.ma(Math.round(b))
  5492. };
  5493. a.prototype.floor = function(a, b) {
  5494. a.ma(Math.floor(b))
  5495. };
  5496. a.prototype.ceil = function(a, b) {
  5497. a.ma(Math.ceil(b))
  5498. };
  5499. a.prototype.sin = function(a, b) {
  5500. a.D(Math.sin(V(b)))
  5501. };
  5502. a.prototype.cos =
  5503. function(a, b) {
  5504. a.D(Math.cos(V(b)))
  5505. };
  5506. a.prototype.tan = function(a, b) {
  5507. a.D(Math.tan(V(b)))
  5508. };
  5509. a.prototype.asin = function(a, b) {
  5510. a.D(Fa(Math.asin(b)))
  5511. };
  5512. a.prototype.acos = function(a, b) {
  5513. a.D(Fa(Math.acos(b)))
  5514. };
  5515. a.prototype.atan = function(a, b) {
  5516. a.D(Fa(Math.atan(b)))
  5517. };
  5518. a.prototype.exp = function(a, b) {
  5519. a.D(Math.exp(b))
  5520. };
  5521. a.prototype.log10 = function(a, b) {
  5522. a.D(Math.log(b) / Math.LN10)
  5523. };
  5524. a.prototype.max = function(a) {
  5525. var b = arguments[1];
  5526. "number" !== typeof b && (b = 0);
  5527. var g, k, f;
  5528. g = 2;
  5529. for (k = arguments.length; g < k; g++) f = arguments[g], "number" ===
  5530. typeof f && b < f && (b = f);
  5531. a.D(b)
  5532. };
  5533. a.prototype.min = function(a) {
  5534. var b = arguments[1];
  5535. "number" !== typeof b && (b = 0);
  5536. var g, k, f;
  5537. g = 2;
  5538. for (k = arguments.length; g < k; g++) f = arguments[g], "number" === typeof f && b > f && (b = f);
  5539. a.D(b)
  5540. };
  5541. a.prototype.Pe = function(a) {
  5542. a.D(this.b.Pe)
  5543. };
  5544. a.prototype.vf = function(a) {
  5545. a.D(this.b.vf)
  5546. };
  5547. a.prototype.time = function(a) {
  5548. a.D(this.b.Gb.X)
  5549. };
  5550. a.prototype.xd = function(a) {
  5551. a.ma(this.b.xd)
  5552. };
  5553. a.prototype.lj = function(a) {
  5554. a.ma(this.b.lj)
  5555. };
  5556. a.prototype.Nk = function(a) {
  5557. a.ma(this.b.Nk)
  5558. };
  5559. a.prototype.j = function(a, b, g, k, f) {
  5560. a.D(Fa(La(b,
  5561. g, k, f)))
  5562. };
  5563. a.prototype.find = function(a, b, g) {
  5564. R(b) && R(g) ? a.ma(b.search(new RegExp(cb(g), "i"))) : a.ma(-1)
  5565. };
  5566. a.prototype.left = function(a, b, g) {
  5567. a.Pa(R(b) ? b.substr(0, g) : "")
  5568. };
  5569. a.prototype.right = function(a, b, g) {
  5570. a.Pa(R(b) ? b.substr(b.length - g) : "")
  5571. };
  5572. a.prototype.replace = function(a, b, g, k) {
  5573. R(b) && R(g) && R(k) ? a.Pa(b.replace(new RegExp(cb(g), "gi"), k)) : a.Pa(R(b) ? b : "")
  5574. };
  5575. a.prototype.trim = function(a, b) {
  5576. a.Pa(R(b) ? b.trim() : "")
  5577. };
  5578. a.prototype.tn = function(a) {
  5579. var b = S(Math.random() * (arguments.length - 1));
  5580. a.Ku(arguments[b + 1])
  5581. };
  5582. a.prototype.yk =
  5583. function(a) {
  5584. a.D(this.b.yk / 1E3)
  5585. };
  5586. a.prototype.Xf = function(a) {
  5587. a.D(this.b.Xf)
  5588. };
  5589. b.xa = new a;
  5590. b.zu = function() {
  5591. var a, b, k, n, f, p, r = this.b.Ab();
  5592. a = 0;
  5593. for (k = this.Sb.length; a < k; a++) {
  5594. n = this.Sb[a];
  5595. if (-1 === n.time) {
  5596. if (!n.qm) continue
  5597. } else if (n.time > this.b.Gb.X) continue;
  5598. r.Wb = n.Hf;
  5599. r.Tb = n.Tb;
  5600. r.$a = 0;
  5601. for (b in n.Kb) n.Kb.hasOwnProperty(b) && (f = this.b.r[parseInt(b, 10)].Y(), p = n.Kb[b], f.fa = p.Ej, Aa(f.d, p.Qd), f = p, f.Qd.length = 0, g.push(f));
  5602. n.Hf.xu();
  5603. this.b.wk(n.ra);
  5604. n.Dk = !0
  5605. }
  5606. b = a = 0;
  5607. for (k = this.Sb.length; a < k; a++) n = this.Sb[a], this.Sb[b] =
  5608. n, n.Dk ? (Xa(n.Kb), n.ra.length = 0, s.push(n)) : b++;
  5609. this.Sb.length = b
  5610. }
  5611. })();
  5612. (function() {
  5613. mb = function(k, a) {
  5614. var b = k[1],
  5615. s = k[3],
  5616. g = k[4],
  5617. d = k[5],
  5618. u = k[6],
  5619. t = k[7],
  5620. n = k[8];
  5621. a.k || (a.k = {});
  5622. a.F || (a.F = {});
  5623. a.xa || (a.xa = {});
  5624. var f = a.k,
  5625. p = a.F,
  5626. x = a.xa;
  5627. s && (f.ov = function(a, b) {
  5628. return $b(this.x, a, b)
  5629. }, f.hq = function(a, b) {
  5630. return $b(this.y, a, b)
  5631. }, f.uv = function() {
  5632. var a = this.i;
  5633. this.na();
  5634. var b = this.La;
  5635. return !(b.right < a.Ba || b.bottom < a.Ca || b.left > a.Ja || b.top > a.Ia)
  5636. }, f.vv = function() {
  5637. this.na();
  5638. var a = this.La,
  5639. b = this.b.za;
  5640. return 0 > a.right || 0 > a.bottom || a.left > b.width || a.top > b.height
  5641. }, f.Hv = function(a, b, d) {
  5642. var f = this.Y(),
  5643. g = f.pc();
  5644. if (!g.length) return !1;
  5645. var k = g[0],
  5646. c = k,
  5647. e = Ua(k.x, k.y, b, d),
  5648. m, n, p;
  5649. m = 1;
  5650. for (n = g.length; m < n; m++)
  5651. if (k = g[m], p = Ua(k.x, k.y, b, d), 0 === a && p < e || 1 === a && p > e) e = p, c = k;
  5652. f.Ah(c);
  5653. return !0
  5654. }, p.Xv = function(a) {
  5655. this.x !== a && (this.x = a, this.T())
  5656. }, p.Yv = function(a) {
  5657. this.y !== a && (this.y = a, this.T())
  5658. }, p.gr = function(a, b) {
  5659. if (this.x !== a || this.y !== b) this.x = a, this.y = b, this.T()
  5660. }, p.Uv = function(a, b) {
  5661. var d = a.Ws(this);
  5662. if (d) {
  5663. var f;
  5664. d.Xk ? (f = d.Xk(b, !0), d = d.Xk(b, !1)) : (f = d.x, d = d.y);
  5665. if (this.x !== f || this.y !== d) this.x = f, this.y = d, this.T()
  5666. }
  5667. }, p.Av =
  5668. function(a) {
  5669. 0 !== a && (this.x += Math.cos(this.j) * a, this.y += Math.sin(this.j) * a, this.T())
  5670. }, p.zv = function(a, b) {
  5671. 0 !== b && (this.x += Math.cos(V(a)) * b, this.y += Math.sin(V(a)) * b, this.T())
  5672. }, x.pr = function(a) {
  5673. a.D(this.x)
  5674. }, x.qr = function(a) {
  5675. a.D(this.y)
  5676. }, x.Pe = function(a) {
  5677. a.D(this.b.Uk(this))
  5678. });
  5679. g && (f.nv = function(a, b) {
  5680. return $b(this.width, a, b)
  5681. }, f.kv = function(a, b) {
  5682. return $b(this.height, a, b)
  5683. }, p.ir = function(a) {
  5684. this.width !== a && (this.width = a, this.T())
  5685. }, p.Sv = function(a) {
  5686. this.height !== a && (this.height = a, this.T())
  5687. }, p.Vv = function(a,
  5688. b) {
  5689. if (this.width !== a || this.height !== b) this.width = a, this.height = b, this.T()
  5690. }, x.bw = function(a) {
  5691. a.D(this.width)
  5692. }, x.qv = function(a) {
  5693. a.D(this.height)
  5694. }, x.gv = function(a) {
  5695. this.na();
  5696. a.D(this.La.left)
  5697. }, x.iv = function(a) {
  5698. this.na();
  5699. a.D(this.La.top)
  5700. }, x.hv = function(a) {
  5701. this.na();
  5702. a.D(this.La.right)
  5703. }, x.dv = function(a) {
  5704. this.na();
  5705. a.D(this.La.bottom)
  5706. });
  5707. d && (f.cq = function(a, b) {
  5708. return Ma(this.j, V(b)) <= V(a)
  5709. }, f.Nm = function(a) {
  5710. return Oa(this.j, V(a))
  5711. }, f.pq = function(a, b) {
  5712. var d = Ka(a),
  5713. f = Ka(b),
  5714. g = Ia(this.j);
  5715. return Oa(f, d) ? Oa(g, d) &&
  5716. !Oa(g, f) : !(!Oa(g, d) && Oa(g, f))
  5717. }, p.Yq = function(a) {
  5718. a = V(Ha(a));
  5719. isNaN(a) || this.j === a || (this.j = a, this.T())
  5720. }, p.Xq = function(a) {
  5721. 0 === a || isNaN(a) || (this.j += V(a), this.j = Ia(this.j), this.T())
  5722. }, p.Lv = function(a) {
  5723. 0 === a || isNaN(a) || (this.j -= V(a), this.j = Ia(this.j), this.T())
  5724. }, p.Mv = function(a, b) {
  5725. var d = Na(this.j, V(b), V(a));
  5726. isNaN(d) || this.j === d || (this.j = d, this.T())
  5727. }, p.Nv = function(a, b, d) {
  5728. a = Na(this.j, Math.atan2(d - this.y, b - this.x), V(a));
  5729. isNaN(a) || this.j === a || (this.j = a, this.T())
  5730. }, p.Wv = function(a, b) {
  5731. var d = Math.atan2(b - this.y,
  5732. a - this.x);
  5733. isNaN(d) || this.j === d || (this.j = d, this.T())
  5734. }, x.cv = function(a) {
  5735. a.D(Ja(this.j))
  5736. });
  5737. b || (f.lv = function(a, b, d) {
  5738. return $b(this.ab[a], b, d)
  5739. }, f.sv = function(a) {
  5740. return this.ab[a]
  5741. }, f.Iv = function(a, b) {
  5742. var d = this.Y(),
  5743. f = d.pc();
  5744. if (!f.length) return !1;
  5745. var g = f[0],
  5746. k = g,
  5747. c = g.ab[b],
  5748. e, m, n;
  5749. e = 1;
  5750. for (m = f.length; e < m; e++)
  5751. if (g = f[e], n = g.ab[b], 0 === a && n < c || 1 === a && n > c) c = n, k = g;
  5752. d.Ah(k);
  5753. return !0
  5754. }, f.Gv = function(a) {
  5755. var b, d, f, g, k;
  5756. if (this.b.Tk().ml) {
  5757. k = this.Y();
  5758. if (k.fa)
  5759. for (k.fa = !1, k.d.length = 0, k.ea.length = 0, f = this.d, b = 0, d = f.length; b <
  5760. d; b++) g = f[b], g.uid === a ? k.ea.push(g) : k.d.push(g);
  5761. else {
  5762. f = b = 0;
  5763. for (d = k.d.length; b < d; b++) g = k.d[b], k.d[f] = g, g.uid === a ? k.ea.push(g) : f++;
  5764. k.d.length = f
  5765. }
  5766. this.wc();
  5767. return !!k.d.length
  5768. }
  5769. g = this.b.Ng(a);
  5770. if (!g) return !1;
  5771. k = this.Y();
  5772. if (!k.fa && -1 === k.d.indexOf(g)) return !1;
  5773. if (this.K)
  5774. for (a = g.type.Da, b = 0, d = a.length; b < d; b++) {
  5775. if (a[b] === this) return k.Ah(g), this.wc(), !0
  5776. } else if (g.type === this) return k.Ah(g), this.wc(), !0;
  5777. return !1
  5778. }, f.dk = function() {
  5779. return !0
  5780. }, f.Dq = function() {
  5781. return !0
  5782. }, p.Tv = function(a, b) {
  5783. var d = this.ab;
  5784. ia(d[a]) ? d[a] =
  5785. ia(b) ? b : parseFloat(b) : R(d[a]) && (d[a] = R(b) ? b : b.toString())
  5786. }, p.bv = function(a, b) {
  5787. var d = this.ab;
  5788. ia(d[a]) ? d[a] = ia(b) ? d[a] + b : d[a] + parseFloat(b) : R(d[a]) && (d[a] = R(b) ? d[a] + b : d[a] + b.toString())
  5789. }, p.Zv = function(a, b) {
  5790. var d = this.ab;
  5791. ia(d[a]) && (d[a] = ia(b) ? d[a] - b : d[a] - parseFloat(b))
  5792. }, p.Ov = function(a, b) {
  5793. this.ab[a] = b ? 1 : 0
  5794. }, p.$v = function(a) {
  5795. this.ab[a] = 1 - this.ab[a]
  5796. }, p.jq = function() {
  5797. this.b.Ie(this)
  5798. }, p.uq || (p.uq = function(a) {
  5799. var b, d;
  5800. try {
  5801. b = JSON.parse(a)
  5802. } catch (f) {
  5803. return
  5804. }
  5805. this.b.cj(this, b, !0);
  5806. this.Cd && this.Cd();
  5807. if (this.L)
  5808. for (a =
  5809. 0, b = this.L.length; a < b; ++a) d = this.L[a], d.Cd && d.Cd()
  5810. }), x.pv = function(a) {
  5811. var b = a.cg.d.length,
  5812. d, f, g;
  5813. d = 0;
  5814. for (f = this.b.Qc.length; d < f; d++) g = this.b.Qc[d], a.cg.K ? 0 <= g.type.Da.indexOf(a.cg) && b++ : g.type === a.cg && b++;
  5815. a.ma(b)
  5816. }, x.Kv = function(a) {
  5817. a.ma(a.cg.Y().pc().length)
  5818. }, x.aw = function(a) {
  5819. a.ma(this.uid)
  5820. }, x.rv = function(a) {
  5821. a.ma(this.Qg())
  5822. }, x.Mm || (x.Mm = function(a) {
  5823. a.Pa(JSON.stringify(this.b.jm(this, !0)))
  5824. }));
  5825. u && (f.wv = function() {
  5826. return this.visible
  5827. }, p.Zm = function(a) {
  5828. !a !== !this.visible && (this.visible = a, this.b.aa = !0)
  5829. },
  5830. f.mv = function(a, b) {
  5831. return $b(ib(100 * this.opacity), a, b)
  5832. }, p.er = function(a) {
  5833. a /= 100;
  5834. 0 > a ? a = 0 : 1 < a && (a = 1);
  5835. a !== this.opacity && (this.opacity = a, this.b.aa = !0)
  5836. }, x.Opacity = function(a) {
  5837. a.D(ib(100 * this.opacity))
  5838. });
  5839. t && (f.tv = function(a) {
  5840. return a ? this.i === a : !1
  5841. }, f.Jv = function(a) {
  5842. var b = this.Y(),
  5843. d = b.pc();
  5844. if (!d.length) return !1;
  5845. var f = d[0],
  5846. g = f,
  5847. k, c;
  5848. k = 1;
  5849. for (c = d.length; k < c; k++)
  5850. if (f = d[k], 0 === a) {
  5851. if (f.i.index > g.i.index || f.i.index === g.i.index && f.jd() > g.jd()) g = f
  5852. } else if (f.i.index < g.i.index || f.i.index === g.i.index && f.jd() < g.jd()) g =
  5853. f;
  5854. b.Ah(g);
  5855. return !0
  5856. }, p.Dv = function() {
  5857. var a = this.i,
  5858. b = a.d;
  5859. b.length && b[b.length - 1] === this || (a.ig(this, !1), a.xg(this, !1), this.b.aa = !0)
  5860. }, p.Bv = function() {
  5861. var a = this.i,
  5862. b = a.d;
  5863. b.length && b[0] === this || (a.ig(this, !1), a.mu(this), this.b.aa = !0)
  5864. }, p.Cv = function(a) {
  5865. a && a != this.i && (this.i.ig(this, !0), this.i = a, a.xg(this, !0), this.b.aa = !0)
  5866. }, p.ew = function(a, b) {
  5867. var d = 0 === a;
  5868. if (b) {
  5869. var f = b.Nn(this);
  5870. f && f.uid !== this.uid && (this.i.index !== f.i.index && (this.i.ig(this, !0), this.i = f.i, f.i.xg(this, !0)), this.i.Ut(this, f, d), this.b.aa = !0)
  5871. }
  5872. },
  5873. x.yv = function(a) {
  5874. a.ma(this.i.Ro)
  5875. }, x.xv = function(a) {
  5876. a.Pa(this.i.name)
  5877. }, x.dw = function(a) {
  5878. a.ma(this.jd())
  5879. });
  5880. n && (p.Qv = function(a, b) {
  5881. if (this.b.u) {
  5882. var d = this.type.Wk(b);
  5883. if (!(0 > d)) {
  5884. var f = 1 === a;
  5885. this.fe[d] !== f && (this.fe[d] = f, this.ae(), this.b.aa = !0)
  5886. }
  5887. }
  5888. }, p.Rv = function(a, b, d) {
  5889. if (this.b.u) {
  5890. var f = this.type.Wk(a);
  5891. 0 > f || (a = this.type.J[f], f = this.Ha[f], b = Math.floor(b), 0 > b || b >= f.length || (1 === this.b.u.$s(a.wb, b) && (d /= 100), f[b] !== d && (f[b] = d, a.lc && (this.b.aa = !0))))
  5892. }
  5893. })
  5894. };
  5895. Gb = function() {
  5896. this.tk = this.qk = !0;
  5897. this.type.Zh = !0;
  5898. this.b.aa = !0;
  5899. var k, a, b = this.rk;
  5900. k = 0;
  5901. for (a = b.length; k < a; ++k) b[k](this);
  5902. this.i.ad && this.na()
  5903. };
  5904. Hb = function(k) {
  5905. k && this.rk.push(k)
  5906. };
  5907. Jb = function() {
  5908. if (this.qk) {
  5909. var k = this.La,
  5910. a = this.Db;
  5911. k.set(this.x, this.y, this.x + this.width, this.y + this.height);
  5912. k.offset(-this.Mb * this.width, -this.Nb * this.height);
  5913. this.j ? (k.offset(-this.x, -this.y), a.yp(k, this.j), a.offset(this.x, this.y), a.mn(k)) : a.Jh(k);
  5914. k.normalize();
  5915. this.qk = !1;
  5916. this.Xu()
  5917. }
  5918. };
  5919. var k = new T(0, 0, 0, 0);
  5920. Kb = function() {
  5921. if (this.i.ad) {
  5922. var r = this.i.fc,
  5923. a = this.La;
  5924. k.set(r.jc(a.left), r.kc(a.top),
  5925. r.jc(a.right), r.kc(a.bottom));
  5926. this.Qb.yi(k) || (this.Qb.right < this.Qb.left ? r.update(this, null, k) : r.update(this, this.Qb, k), this.Qb.ni(k), this.i.Vd = !0)
  5927. }
  5928. };
  5929. Lb = function() {
  5930. if (this.tk && this.Gd) {
  5931. this.na();
  5932. var r = this.type.li,
  5933. a = this.La;
  5934. k.set(r.jc(a.left), r.kc(a.top), r.jc(a.right), r.kc(a.bottom));
  5935. this.me.yi(k) || (this.me.right < this.me.left ? r.update(this, null, k) : r.update(this, this.me, k), this.me.ni(k), this.tk = !1)
  5936. }
  5937. };
  5938. Ib = function(k, a) {
  5939. return this.La.yb(k, a) && this.Db.yb(k, a) ? this.da && !this.da.Qf() ? (this.da.Ef(this.width,
  5940. this.height, this.j), this.da.yb(k - this.x, a - this.y)) : !0 : !1
  5941. };
  5942. Cb = function() {
  5943. this.type.Zj();
  5944. return this.We
  5945. };
  5946. Mb = function() {
  5947. this.i.Fm();
  5948. return this.bd
  5949. };
  5950. Nb = function() {
  5951. this.ba.length = 0;
  5952. var k, a;
  5953. k = 0;
  5954. for (a = this.fe.length; k < a; k++) this.fe[k] && this.ba.push(this.type.J[k]);
  5955. this.Yp = !!this.ba.length
  5956. };
  5957. Db = function() {
  5958. return "Inst" + this.op
  5959. };
  5960. pb = function(k) {
  5961. if (k && k.tc && k.type != this) {
  5962. var a, b, s;
  5963. a = 0;
  5964. for (b = k.siblings.length; a < b; a++)
  5965. if (s = k.siblings[a], s.type == this) return s
  5966. }
  5967. k = this.Y().pc();
  5968. return k.length ? k[0] : null
  5969. };
  5970. qb = function(k) {
  5971. var a =
  5972. this.Y().pc();
  5973. return a.length ? a[k.Qg() % a.length] : null
  5974. };
  5975. ob = function() {
  5976. if (this.ng && !this.K) {
  5977. var k, a;
  5978. k = 0;
  5979. for (a = this.d.length; k < a; k++) this.d[k].We = k;
  5980. var b = k,
  5981. s = this.b.Qc;
  5982. k = 0;
  5983. for (a = s.length; k < a; ++k) s[k].type === this && (s[k].We = b++);
  5984. this.ng = !1
  5985. }
  5986. };
  5987. Ab = function(k) {
  5988. if (k < this.d.length) return this.d[k];
  5989. k -= this.d.length;
  5990. var a = this.b.Qc,
  5991. b, s;
  5992. b = 0;
  5993. for (s = a.length; b < s; ++b)
  5994. if (a[b].type === this) {
  5995. if (0 === k) return a[b];
  5996. --k
  5997. }
  5998. return null
  5999. };
  6000. rb = function() {
  6001. return this.Ee[this.Ld]
  6002. };
  6003. sb = function() {
  6004. this.Ld++;
  6005. this.Ld === this.Ee.length ? this.Ee.push(new nb(this)) :
  6006. this.Ee[this.Ld].fa = !0
  6007. };
  6008. tb = function() {
  6009. this.Ld++;
  6010. this.Ld === this.Ee.length && this.Ee.push(new nb(this));
  6011. var k = this.Ee[this.Ld],
  6012. a = this.Ee[this.Ld - 1];
  6013. a.fa ? k.fa = !0 : (k.fa = !1, Aa(k.d, a.d), Aa(k.ea, a.ea))
  6014. };
  6015. vb = function() {
  6016. this.Ld--
  6017. };
  6018. wb = function(k) {
  6019. var a, b, s, g, d, u = 0;
  6020. if (!this.K)
  6021. for (a = 0, b = this.Da.length; a < b; a++)
  6022. for (d = this.Da[a], s = 0, g = d.Qa.length; s < g; s++) {
  6023. if (k === d.Qa[s].name) return this.R.lastBehIndex = u, d.Qa[s];
  6024. u++
  6025. }
  6026. a = 0;
  6027. for (b = this.Qa.length; a < b; a++) {
  6028. if (k === this.Qa[a].name) return this.R.lastBehIndex = u, this.Qa[a];
  6029. u++
  6030. }
  6031. return null
  6032. };
  6033. xb = function(k) {
  6034. return this.Ii(k) ? this.R.lastBehIndex : -1
  6035. };
  6036. yb = function(k) {
  6037. var a, b;
  6038. a = 0;
  6039. for (b = this.J.length; a < b; a++)
  6040. if (this.J[a].name === k) return a;
  6041. return -1
  6042. };
  6043. zb = function() {
  6044. if (this.tc && !this.K) {
  6045. var k, a, b, s, g, d, u;
  6046. this.Zj();
  6047. d = this.Y();
  6048. var t = d.fa,
  6049. n = (k = this.b.Ab()) && k.Wb && k.Wb.Uc;
  6050. k = 0;
  6051. for (a = this.Vb.length; k < a; k++)
  6052. if (g = this.Vb[k], g !== this && (g.Zj(), u = g.Y(), u.fa = t, !t)) {
  6053. u.d.length = d.d.length;
  6054. b = 0;
  6055. for (s = d.d.length; b < s; b++) u.d[b] = g.On(d.d[b].We);
  6056. if (n)
  6057. for (u.ea.length = d.ea.length, b = 0, s = d.ea.length; b < s; b++) u.ea[b] = g.On(d.ea[b].We)
  6058. }
  6059. }
  6060. };
  6061. Bb = function() {
  6062. return "Type" + this.U
  6063. };
  6064. $b = function(k, a, b) {
  6065. if ("undefined" === typeof k || "undefined" === typeof b) return !1;
  6066. switch (a) {
  6067. case 0:
  6068. return k === b;
  6069. case 1:
  6070. return k !== b;
  6071. case 2:
  6072. return k < b;
  6073. case 3:
  6074. return k <= b;
  6075. case 4:
  6076. return k > b;
  6077. case 5:
  6078. return k >= b;
  6079. default:
  6080. return !1
  6081. }
  6082. }
  6083. })();
  6084. var ic = {};
  6085. function kc(k) {
  6086. this.b = k
  6087. }
  6088. (function() {
  6089. function k(a) {
  6090. a = Math.pow(10, a / 20);
  6091. 0 > a && (a = 0);
  6092. 1 < a && (a = 1);
  6093. return a
  6094. }
  6095. function r(a) {
  6096. 0 > a && (a = 0);
  6097. 1 < a && (a = 1);
  6098. return Math.log(a) / Math.log(10) * 20
  6099. }
  6100. function a(a) {
  6101. a = a.toLowerCase();
  6102. return U.hasOwnProperty(a) && U[a].length ? U[a][0].oc() : C.destination
  6103. }
  6104. function b() {
  6105. return C.createGain ? C.createGain() : C.createGainNode()
  6106. }
  6107. function s(a) {
  6108. return C.createDelay ? C.createDelay(a) : C.createDelayNode(a)
  6109. }
  6110. function g(a) {
  6111. a.start ? a.start(0) : a.noteOn(0)
  6112. }
  6113. function d(a, b, c) {
  6114. a.start ? a.start(0, b) : a.noteGrainOn(0, b, c - b)
  6115. }
  6116. function u(a) {
  6117. try {
  6118. a.stop ?
  6119. a.stop(0) : a.noteOff(0)
  6120. } catch (b) {}
  6121. }
  6122. function t(a, c, e, d, f, h) {
  6123. this.type = "filter";
  6124. this.Vc = [a, c, e, d, f, h];
  6125. this.V = b();
  6126. this.I = b();
  6127. this.I.gain.value = h;
  6128. this.G = b();
  6129. this.G.gain.value = 1 - h;
  6130. this.Ra = C.createBiquadFilter();
  6131. this.Ra.type = "number" === typeof this.Ra.type ? a : vc[a];
  6132. this.Ra.frequency.value = c;
  6133. this.Ra.detune && (this.Ra.detune.value = e);
  6134. this.Ra.Q.value = d;
  6135. this.Ra.gain.value = f;
  6136. this.V.connect(this.Ra);
  6137. this.V.connect(this.G);
  6138. this.Ra.connect(this.I)
  6139. }
  6140. function n(a, c, e) {
  6141. this.type = "delay";
  6142. this.Vc = [a, c, e];
  6143. this.V = b();
  6144. this.I =
  6145. b();
  6146. this.I.gain.value = e;
  6147. this.G = b();
  6148. this.G.gain.value = 1 - e;
  6149. this.sh = b();
  6150. this.Bc = s(a);
  6151. this.Bc.delayTime.value = a;
  6152. this.vi = b();
  6153. this.vi.gain.value = c;
  6154. this.V.connect(this.sh);
  6155. this.V.connect(this.G);
  6156. this.sh.connect(this.I);
  6157. this.sh.connect(this.Bc);
  6158. this.Bc.connect(this.vi);
  6159. this.vi.connect(this.sh)
  6160. }
  6161. function f(a, c, e, d) {
  6162. this.type = "convolve";
  6163. this.Vc = [c, e, d];
  6164. this.V = b();
  6165. this.I = b();
  6166. this.I.gain.value = e;
  6167. this.G = b();
  6168. this.G.gain.value = 1 - e;
  6169. this.Me = C.createConvolver();
  6170. a && (this.Me.normalize = c, this.Me.buffer = a);
  6171. this.V.connect(this.Me);
  6172. this.V.connect(this.G);
  6173. this.Me.connect(this.I)
  6174. }
  6175. function p(a, c, e, d, f) {
  6176. this.type = "flanger";
  6177. this.Vc = [a, c, e, d, f];
  6178. this.V = b();
  6179. this.G = b();
  6180. this.G.gain.value = 1 - f / 2;
  6181. this.I = b();
  6182. this.I.gain.value = f / 2;
  6183. this.Ci = b();
  6184. this.Ci.gain.value = d;
  6185. this.Bc = s(a + c);
  6186. this.Bc.delayTime.value = a;
  6187. this.nb = C.createOscillator();
  6188. this.nb.frequency.value = e;
  6189. this.cc = b();
  6190. this.cc.gain.value = c;
  6191. this.V.connect(this.Bc);
  6192. this.V.connect(this.G);
  6193. this.Bc.connect(this.I);
  6194. this.Bc.connect(this.Ci);
  6195. this.Ci.connect(this.Bc);
  6196. this.nb.connect(this.cc);
  6197. this.cc.connect(this.Bc.delayTime);
  6198. g(this.nb)
  6199. }
  6200. function x(a, c, e, d, f, h) {
  6201. this.type = "phaser";
  6202. this.Vc = [a, c, e, d, f, h];
  6203. this.V = b();
  6204. this.G = b();
  6205. this.G.gain.value = 1 - h / 2;
  6206. this.I = b();
  6207. this.I.gain.value = h / 2;
  6208. this.Ra = C.createBiquadFilter();
  6209. this.Ra.type = "number" === typeof this.Ra.type ? 7 : "allpass";
  6210. this.Ra.frequency.value = a;
  6211. this.Ra.detune && (this.Ra.detune.value = c);
  6212. this.Ra.Q.value = e;
  6213. this.nb = C.createOscillator();
  6214. this.nb.frequency.value = f;
  6215. this.cc = b();
  6216. this.cc.gain.value = d;
  6217. this.V.connect(this.Ra);
  6218. this.V.connect(this.G);
  6219. this.Ra.connect(this.I);
  6220. this.nb.connect(this.cc);
  6221. this.cc.connect(this.Ra.frequency);
  6222. g(this.nb)
  6223. }
  6224. function h(a) {
  6225. this.type = "gain";
  6226. this.Vc = [a];
  6227. this.Z = b();
  6228. this.Z.gain.value = a
  6229. }
  6230. function w(a, c) {
  6231. this.type = "tremolo";
  6232. this.Vc = [a, c];
  6233. this.Z = b();
  6234. this.Z.gain.value = 1 - c / 2;
  6235. this.nb = C.createOscillator();
  6236. this.nb.frequency.value = a;
  6237. this.cc = b();
  6238. this.cc.gain.value = c / 2;
  6239. this.nb.connect(this.cc);
  6240. this.cc.connect(this.Z.gain);
  6241. g(this.nb)
  6242. }
  6243. function y(a, c) {
  6244. this.type = "ringmod";
  6245. this.Vc = [a, c];
  6246. this.V = b();
  6247. this.I = b();
  6248. this.I.gain.value = c;
  6249. this.G = b();
  6250. this.G.gain.value = 1 - c;
  6251. this.Gh = b();
  6252. this.Gh.gain.value =
  6253. 0;
  6254. this.nb = C.createOscillator();
  6255. this.nb.frequency.value = a;
  6256. this.nb.connect(this.Gh.gain);
  6257. g(this.nb);
  6258. this.V.connect(this.Gh);
  6259. this.V.connect(this.G);
  6260. this.Gh.connect(this.I)
  6261. }
  6262. function l(a, c, e, d, f) {
  6263. this.type = "distortion";
  6264. this.Vc = [a, c, e, d, f];
  6265. this.V = b();
  6266. this.uj = b();
  6267. this.tj = b();
  6268. this.Gu(e, Math.pow(10, d / 20));
  6269. this.I = b();
  6270. this.I.gain.value = f;
  6271. this.G = b();
  6272. this.G.gain.value = 1 - f;
  6273. this.bk = C.createWaveShaper();
  6274. this.si = new Float32Array(65536);
  6275. this.Ps(a, c);
  6276. this.bk.si = this.si;
  6277. this.V.connect(this.uj);
  6278. this.V.connect(this.G);
  6279. this.uj.connect(this.bk);
  6280. this.bk.connect(this.tj);
  6281. this.tj.connect(this.I)
  6282. }
  6283. function q(a, b, c, e, d) {
  6284. this.type = "compressor";
  6285. this.Vc = [a, b, c, e, d];
  6286. this.Z = C.createDynamicsCompressor();
  6287. try {
  6288. this.Z.threshold.value = a, this.Z.knee.value = b, this.Z.ratio.value = c, this.Z.attack.value = e, this.Z.release.value = d
  6289. } catch (f) {}
  6290. }
  6291. function A(a, b) {
  6292. this.type = "analyser";
  6293. this.Vc = [a, b];
  6294. this.Z = C.createAnalyser();
  6295. this.Z.fftSize = a;
  6296. this.Z.smoothingTimeConstant = b;
  6297. this.Ns = new Float32Array(this.Z.frequencyBinCount);
  6298. this.Bp = new Uint8Array(a);
  6299. this.zh = 0
  6300. }
  6301. function c() {
  6302. this.H = null;
  6303. this.fj = 0;
  6304. this.Fe = [];
  6305. this.Il = this.Vi = this.Ui = 0
  6306. }
  6307. function e(a, c) {
  6308. this.src = a;
  6309. this.S = M;
  6310. this.Sc = c;
  6311. this.gn = !1;
  6312. var e = this;
  6313. this.Gl = this.Tl = null;
  6314. this.gg = [];
  6315. this.Fj = 0;
  6316. this.Km = this.Kk = this.Gp = this.oj = !1;
  6317. 1 === M && c && (this.S = 0, this.Tl = b());
  6318. this.Ke = this.ga = null;
  6319. var d;
  6320. switch (this.S) {
  6321. case 0:
  6322. this.ga = new Audio;
  6323. this.ga.addEventListener("canplaythrough", function() {
  6324. e.Km = !0
  6325. });
  6326. 1 === M && C.createMediaElementSource && !/wiiu/i.test(navigator.userAgent) && (this.Gp = !0, this.ga.addEventListener("canplay",
  6327. function() {
  6328. e.Gl || (e.Gl = C.createMediaElementSource(e.ga), e.Gl.connect(e.Tl))
  6329. }));
  6330. this.ga.autoplay = !1;
  6331. this.ga.ow = "auto";
  6332. this.ga.src = a;
  6333. break;
  6334. case 1:
  6335. d = new XMLHttpRequest;
  6336. d.open("GET", a, !0);
  6337. d.responseType = "arraybuffer";
  6338. d.onload = function() {
  6339. e.Ke = d.response;
  6340. e.Pr()
  6341. };
  6342. d.onerror = function() {
  6343. e.Kk = !0
  6344. };
  6345. d.send();
  6346. break;
  6347. case 2:
  6348. this.ga = !0;
  6349. break;
  6350. case 3:
  6351. this.ga = !0
  6352. }
  6353. }
  6354. function m(c, e) {
  6355. var d = this;
  6356. this.tag = e;
  6357. this.hc = this.hd = !0;
  6358. this.src = c.src;
  6359. this.buffer = c;
  6360. this.S = M;
  6361. this.Sc = c.Sc;
  6362. this.playbackRate = 1;
  6363. this.xk = !0;
  6364. this.Fc = this.Wd = !1;
  6365. this.Rb = 0;
  6366. this.dh = this.Sf = this.md = !1;
  6367. this.volume = 1;
  6368. this.$e = 1 === F && !this.Sc || 2 === F;
  6369. this.ag = 1;
  6370. this.startTime = this.$e ? z.Gb.X : z.Bd.X;
  6371. this.Na = this.Sa = null;
  6372. this.od = !1;
  6373. this.Ma = null;
  6374. this.ep = this.dp = this.cp = this.bp = this.gp = this.fp = 0;
  6375. this.n = null;
  6376. var f = !1;
  6377. 1 !== this.S || 0 !== this.buffer.S || this.buffer.Gp || (this.S = 0);
  6378. switch (this.S) {
  6379. case 0:
  6380. this.Sc ? (this.n = c.ga, f = !c.gn, c.gn = !0) : (this.n = new Audio, this.n.autoplay = !1, this.n.src = c.ga.src, f = !0);
  6381. f && this.n.addEventListener("ended", function() {
  6382. P = d.tag;
  6383. d.hc = !0;
  6384. z.trigger(kc.prototype.k.ek,
  6385. fa)
  6386. });
  6387. break;
  6388. case 1:
  6389. this.Sa = b();
  6390. this.Sa.connect(a(e));
  6391. 1 === this.buffer.S ? c.ga && (this.n = C.createBufferSource(), this.n.buffer = c.ga, this.n.connect(this.Sa)) : (this.n = this.buffer.ga, this.buffer.Tl.connect(this.Sa));
  6392. break;
  6393. case 2:
  6394. this.n = new window.Media(H + this.src, null, null, function(a) {
  6395. a === window.Media.MEDIA_STOPPED && (d.xk = !0, d.hc = !0, P = d.tag, z.trigger(kc.prototype.k.ek, fa))
  6396. });
  6397. break;
  6398. case 3:
  6399. this.n = !0
  6400. }
  6401. }
  6402. function v(a) {
  6403. za.length = 0;
  6404. if (a.length) {
  6405. var b, c, e;
  6406. b = 0;
  6407. for (c = B.length; b < c; b++) e = B[b], jb(a, e.tag) && za.push(e)
  6408. } else D &&
  6409. !D.Ve() && (za.length = 1, za[0] = D)
  6410. }
  6411. function K(a, b) {
  6412. U.hasOwnProperty(a) ? U[a].push(b) : U[a] = [b];
  6413. var c, e, d, f, h = C.destination;
  6414. if (U.hasOwnProperty(a) && (d = U[a], d.length))
  6415. for (h = d[0].oc(), c = 0, e = d.length; c < e; c++) f = d[c], c + 1 === e ? f.yc(C.destination) : f.yc(d[c + 1].oc());
  6416. v(a);
  6417. c = 0;
  6418. for (e = za.length; c < e; c++) za[c].tu(h);
  6419. Ga && ub === a && (Ga.disconnect(), Ga.connect(h))
  6420. }
  6421. function E() {}
  6422. function Q() {}
  6423. var qa = kc.prototype;
  6424. qa.Fa = function(a) {
  6425. this.qa = a;
  6426. this.b = a.b
  6427. };
  6428. qa.Fa.prototype.W = function() {};
  6429. var z = null,
  6430. fa = null,
  6431. P = "",
  6432. H = "",
  6433. M = 0,
  6434. C = null,
  6435. L =
  6436. [],
  6437. B = [],
  6438. D = null,
  6439. N = !1,
  6440. F = 0,
  6441. I = !1,
  6442. G = 1,
  6443. ga = 0,
  6444. O = 0,
  6445. ma = 1,
  6446. ha = 1,
  6447. va = 10,
  6448. wa = 1E4,
  6449. tc = 1,
  6450. Ga = null,
  6451. ub = "",
  6452. Qa = !1,
  6453. Ra = [],
  6454. U = {},
  6455. vc = "lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");
  6456. t.prototype.yc = function(a) {
  6457. this.I.disconnect();
  6458. this.I.connect(a);
  6459. this.G.disconnect();
  6460. this.G.connect(a)
  6461. };
  6462. t.prototype.remove = function() {
  6463. this.V.disconnect();
  6464. this.Ra.disconnect();
  6465. this.I.disconnect();
  6466. this.G.disconnect()
  6467. };
  6468. t.prototype.oc = function() {
  6469. return this.V
  6470. };
  6471. n.prototype.yc = function(a) {
  6472. this.I.disconnect();
  6473. this.I.connect(a);
  6474. this.G.disconnect();
  6475. this.G.connect(a)
  6476. };
  6477. n.prototype.remove = function() {
  6478. this.V.disconnect();
  6479. this.sh.disconnect();
  6480. this.Bc.disconnect();
  6481. this.vi.disconnect();
  6482. this.I.disconnect();
  6483. this.G.disconnect()
  6484. };
  6485. n.prototype.oc = function() {
  6486. return this.V
  6487. };
  6488. f.prototype.yc = function(a) {
  6489. this.I.disconnect();
  6490. this.I.connect(a);
  6491. this.G.disconnect();
  6492. this.G.connect(a)
  6493. };
  6494. f.prototype.remove = function() {
  6495. this.V.disconnect();
  6496. this.Me.disconnect();
  6497. this.I.disconnect();
  6498. this.G.disconnect()
  6499. };
  6500. f.prototype.oc = function() {
  6501. return this.V
  6502. };
  6503. p.prototype.yc =
  6504. function(a) {
  6505. this.G.disconnect();
  6506. this.G.connect(a);
  6507. this.I.disconnect();
  6508. this.I.connect(a)
  6509. };
  6510. p.prototype.remove = function() {
  6511. this.V.disconnect();
  6512. this.Bc.disconnect();
  6513. this.nb.disconnect();
  6514. this.cc.disconnect();
  6515. this.G.disconnect();
  6516. this.I.disconnect();
  6517. this.Ci.disconnect()
  6518. };
  6519. p.prototype.oc = function() {
  6520. return this.V
  6521. };
  6522. x.prototype.yc = function(a) {
  6523. this.G.disconnect();
  6524. this.G.connect(a);
  6525. this.I.disconnect();
  6526. this.I.connect(a)
  6527. };
  6528. x.prototype.remove = function() {
  6529. this.V.disconnect();
  6530. this.Ra.disconnect();
  6531. this.nb.disconnect();
  6532. this.cc.disconnect();
  6533. this.G.disconnect();
  6534. this.I.disconnect()
  6535. };
  6536. x.prototype.oc = function() {
  6537. return this.V
  6538. };
  6539. h.prototype.yc = function(a) {
  6540. this.Z.disconnect();
  6541. this.Z.connect(a)
  6542. };
  6543. h.prototype.remove = function() {
  6544. this.Z.disconnect()
  6545. };
  6546. h.prototype.oc = function() {
  6547. return this.Z
  6548. };
  6549. w.prototype.yc = function(a) {
  6550. this.Z.disconnect();
  6551. this.Z.connect(a)
  6552. };
  6553. w.prototype.remove = function() {
  6554. this.nb.disconnect();
  6555. this.cc.disconnect();
  6556. this.Z.disconnect()
  6557. };
  6558. w.prototype.oc = function() {
  6559. return this.Z
  6560. };
  6561. y.prototype.yc = function(a) {
  6562. this.I.disconnect();
  6563. this.I.connect(a);
  6564. this.G.disconnect();
  6565. this.G.connect(a)
  6566. };
  6567. y.prototype.remove = function() {
  6568. this.nb.disconnect();
  6569. this.Gh.disconnect();
  6570. this.V.disconnect();
  6571. this.I.disconnect();
  6572. this.G.disconnect()
  6573. };
  6574. y.prototype.oc = function() {
  6575. return this.V
  6576. };
  6577. l.prototype.Gu = function(a, b) {.01 > a && (a = .01);
  6578. this.uj.gain.value = a;
  6579. this.tj.gain.value = Math.pow(1 / a, .6) * b
  6580. };
  6581. l.prototype.shape = function(a, b, c) {
  6582. var e = 1.05 * c * b - b;
  6583. c = 0 > a ? -1 : 1;
  6584. a = 0 > a ? -a : a;
  6585. b = a < b ? a : b + e * (1 - Math.exp(-(1 / e) * (a - b)));
  6586. return b * c
  6587. };
  6588. l.prototype.Ps = function(a, b) {
  6589. for (var c = Math.pow(10,
  6590. a / 20), e = Math.pow(10, b / 20), d = 0, f = 0; 32768 > f; ++f) d = f / 32768, d = this.shape(d, c, e), this.si[32768 + f] = d, this.si[32768 - f - 1] = -d
  6591. };
  6592. l.prototype.yc = function(a) {
  6593. this.I.disconnect();
  6594. this.I.connect(a);
  6595. this.G.disconnect();
  6596. this.G.connect(a)
  6597. };
  6598. l.prototype.remove = function() {
  6599. this.V.disconnect();
  6600. this.uj.disconnect();
  6601. this.bk.disconnect();
  6602. this.tj.disconnect();
  6603. this.I.disconnect();
  6604. this.G.disconnect()
  6605. };
  6606. l.prototype.oc = function() {
  6607. return this.V
  6608. };
  6609. q.prototype.yc = function(a) {
  6610. this.Z.disconnect();
  6611. this.Z.connect(a)
  6612. };
  6613. q.prototype.remove =
  6614. function() {
  6615. this.Z.disconnect()
  6616. };
  6617. q.prototype.oc = function() {
  6618. return this.Z
  6619. };
  6620. A.prototype.qb = function() {
  6621. this.Z.getFloatFrequencyData(this.Ns);
  6622. this.Z.getByteTimeDomainData(this.Bp);
  6623. for (var a = this.Z.fftSize, b = 0, c = this.zh = 0, e = 0; b < a; b++) e = (this.Bp[b] - 128) / 128, 0 > e && (e = -e), this.zh < e && (this.zh = e), c += e * e;
  6624. this.zh = r(this.zh);
  6625. r(Math.sqrt(c / a))
  6626. };
  6627. A.prototype.yc = function(a) {
  6628. this.Z.disconnect();
  6629. this.Z.connect(a)
  6630. };
  6631. A.prototype.remove = function() {
  6632. this.Z.disconnect()
  6633. };
  6634. A.prototype.oc = function() {
  6635. return this.Z
  6636. };
  6637. c.prototype.Hh =
  6638. function(a) {
  6639. if (this.H = a) this.Ui = this.H.x, this.Vi = this.H.y;
  6640. this.Fe.length = 0
  6641. };
  6642. c.prototype.Li = function() {
  6643. return !!this.H
  6644. };
  6645. c.prototype.qb = function(a) {
  6646. this.H && 0 !== a && (this.Il = La(this.Ui, this.Vi, this.H.x, this.H.y), a = Ua(this.Ui, this.Vi, this.H.x, this.H.y) / a, 4 > this.Fe.length || this.Fe.shift(), this.Fe.push(a), this.Ui = this.H.x, this.Vi = this.H.y)
  6647. };
  6648. c.prototype.Sn = function() {
  6649. if (!this.Fe.length) return 0;
  6650. var a, b, c = 0;
  6651. a = 0;
  6652. for (b = this.Fe.length; a < b; a++) c += this.Fe[a];
  6653. return c / this.Fe.length
  6654. };
  6655. c.prototype.al = function() {
  6656. return Math.cos(this.Il) *
  6657. this.Sn()
  6658. };
  6659. c.prototype.bl = function() {
  6660. return Math.sin(this.Il) * this.Sn()
  6661. };
  6662. var uc = !1;
  6663. e.prototype.Pr = function() {
  6664. if (!this.ga && this.Ke) {
  6665. var a = this;
  6666. if (C.decodeAudioData) C.decodeAudioData(this.Ke, function(b) {
  6667. a.ga = b;
  6668. a.Ke = null;
  6669. var c, e, d;
  6670. if (ea(a.qj) || I) ea(a.mi) || (c = a.mi.Me, c.normalize = a.Qo, c.buffer = b);
  6671. else if (a.gg.length) {
  6672. c = 0;
  6673. for (e = a.gg.length; c < e; c++) {
  6674. b = a.gg[c];
  6675. d = new m(a, b.Kp);
  6676. d.Gj(!0);
  6677. if ("undefined" !== typeof b.So && (b.H = z.Ng(b.So), !b.H)) continue;
  6678. if (b.H) {
  6679. var f = Pa(b.H.x, b.H.y, -b.H.i.Ta(), ga, O, !0),
  6680. h = Pa(b.H.x,
  6681. b.H.y, -b.H.i.Ta(), ga, O, !1);
  6682. d.om(f, h, Fa(b.H.j - b.H.i.Ta()), b.gl, b.Kl, b.Nl);
  6683. d.Hh(b.H)
  6684. } else d.om(b.x, b.y, b.rr, b.gl, b.Kl, b.Nl);
  6685. d.play(a.Dl, a.Jm, a.Fj);
  6686. a.oj && d.pause();
  6687. B.push(d)
  6688. }
  6689. a.gg.length = 0
  6690. } else d = new m(a, a.qj), d.play(a.Dl, a.Jm, a.Fj), a.oj && d.pause(), B.push(d)
  6691. }, function() {
  6692. a.Kk = !0
  6693. });
  6694. else if (this.ga = C.createBuffer(this.Ke, !1), this.Ke = null, ea(this.qj) || I) ea(this.mi) || (b = this.mi.Me, b.normalize = this.Qo, b.buffer = this.ga);
  6695. else {
  6696. var b = new m(this, this.qj);
  6697. b.play(this.Dl, this.Jm, this.Fj);
  6698. this.oj && b.pause();
  6699. B.push(b)
  6700. }
  6701. }
  6702. };
  6703. e.prototype.co = function() {
  6704. switch (this.S) {
  6705. case 0:
  6706. var a = 4 <= this.ga.readyState;
  6707. a && (this.Km = !0);
  6708. return a || this.Km;
  6709. case 1:
  6710. return !!this.Ke || !!this.ga;
  6711. case 2:
  6712. return !0;
  6713. case 3:
  6714. return !0
  6715. }
  6716. return !1
  6717. };
  6718. e.prototype.Ht = function() {
  6719. switch (this.S) {
  6720. case 0:
  6721. return this.co();
  6722. case 1:
  6723. return !!this.ga;
  6724. case 2:
  6725. return !0;
  6726. case 3:
  6727. return !0
  6728. }
  6729. return !1
  6730. };
  6731. e.prototype.xt = function() {
  6732. switch (this.S) {
  6733. case 0:
  6734. return !!this.ga.error;
  6735. case 1:
  6736. return this.Kk
  6737. }
  6738. return !1
  6739. };
  6740. m.prototype.Ve = function() {
  6741. var a;
  6742. switch (this.S) {
  6743. case 0:
  6744. return this.n.ended;
  6745. case 1:
  6746. if (1 ===
  6747. this.buffer.S) {
  6748. if (!this.hd && !this.hc && this.n.loop || this.Fc) return !1;
  6749. a = this.$e ? z.Gb.X : z.Bd.X;
  6750. return a - this.startTime > this.buffer.ga.duration
  6751. }
  6752. return this.n.ended;
  6753. case 2:
  6754. return this.xk;
  6755. case 3:
  6756. !0
  6757. }
  6758. return !0
  6759. };
  6760. m.prototype.Ir = function() {
  6761. return this.hd || this.hc ? !0 : this.Ve()
  6762. };
  6763. m.prototype.Gj = function(b) {
  6764. 1 === M && (!this.od && b ? this.Sa && (this.Na || (this.Na = C.createPanner(), this.Na.panningModel = "number" === typeof this.Na.panningModel ? ma : ["equalpower", "HRTF", "soundfield"][ma], this.Na.distanceModel = "number" === typeof this.Na.distanceModel ?
  6765. ha : ["linear", "inverse", "exponential"][ha], this.Na.refDistance = va, this.Na.maxDistance = wa, this.Na.rolloffFactor = tc), this.Sa.disconnect(), this.Sa.connect(this.Na), this.Na.connect(a(this.tag)), this.od = !0) : this.od && !b && this.Sa && (this.Na.disconnect(), this.Sa.disconnect(), this.Sa.connect(a(this.tag)), this.od = !1))
  6766. };
  6767. m.prototype.om = function(a, b, c, e, d, f) {
  6768. this.od && 1 === M && (this.Na.setPosition(a, b, 0), this.Na.setOrientation(Math.cos(V(c)), Math.sin(V(c)), 0), this.Na.coneInnerAngle = e, this.Na.coneOuterAngle = d, this.Na.coneOuterGain =
  6769. f, this.fp = a, this.gp = b, this.bp = c, this.cp = e, this.dp = d, this.ep = f)
  6770. };
  6771. m.prototype.Hh = function(a) {
  6772. this.od && 1 === M && (this.Ma || (this.Ma = new c), this.Ma.Hh(a))
  6773. };
  6774. m.prototype.qb = function(a) {
  6775. if (this.od && 1 === M && this.Ma && this.Ma.Li() && this.Of()) {
  6776. this.Ma.qb(a);
  6777. a = this.Ma.H;
  6778. var b = Pa(a.x, a.y, -a.i.Ta(), ga, O, !0),
  6779. c = Pa(a.x, a.y, -a.i.Ta(), ga, O, !1);
  6780. this.Na.setPosition(b, c, 0);
  6781. b = 0;
  6782. "undefined" !== typeof this.Ma.H.j && (b = a.j - a.i.Ta(), this.Na.setOrientation(Math.cos(b), Math.sin(b), 0));
  6783. b = Pa(this.Ma.al(), this.Ma.bl(), -a.i.Ta(), 0, 0, !0);
  6784. c = Pa(this.Ma.al(), this.Ma.bl(), -a.i.Ta(), 0, 0, !1);
  6785. this.Na.setVelocity(b, c, 0)
  6786. }
  6787. };
  6788. m.prototype.play = function(a, b, c) {
  6789. var e = this.n;
  6790. this.md = a;
  6791. this.volume = b;
  6792. c = c || 0;
  6793. switch (this.S) {
  6794. case 0:
  6795. 1 !== e.playbackRate && (e.playbackRate = 1);
  6796. e.volume !== b * G && (e.volume = b * G);
  6797. e.loop !== a && (e.loop = a);
  6798. e.muted && (e.muted = !1);
  6799. if (e.currentTime !== c) try {
  6800. e.currentTime = c
  6801. } catch (f) {}
  6802. if (this.Sc && Qa && !z.Zb) Ra.push(this);
  6803. else try {
  6804. this.n.play()
  6805. } catch (h) {
  6806. console && console.log && console.log("[C2] WARNING: exception trying to play audio '" + this.buffer.src +
  6807. "': ", h)
  6808. }
  6809. break;
  6810. case 1:
  6811. this.muted = !1;
  6812. this.ag = 1;
  6813. if (1 === this.buffer.S) this.hd || (this.n = C.createBufferSource(), this.n.buffer = this.buffer.ga, this.n.connect(this.Sa)), this.n.loop = a, this.Sa.gain.value = b * G, 0 === c ? g(this.n) : d(this.n, c, this.Se());
  6814. else {
  6815. 1 !== e.playbackRate && (e.playbackRate = 1);
  6816. e.loop !== a && (e.loop = a);
  6817. this.Sa.gain.value = b * G;
  6818. if (e.currentTime !== c) try {
  6819. e.currentTime = c
  6820. } catch (k) {}
  6821. this.Sc && Qa && !z.Zb ? Ra.push(this) : e.play()
  6822. }
  6823. break;
  6824. case 2:
  6825. (!this.hd && this.hc || 0 !== c) && e.seekTo(c);
  6826. e.play();
  6827. this.xk = !1;
  6828. break;
  6829. case 3:
  6830. z.tb ?
  6831. AppMobi.context.playSound(this.src, a) : AppMobi.player.playSound(this.src, a)
  6832. }
  6833. this.playbackRate = 1;
  6834. this.startTime = (this.$e ? z.Gb.X : z.Bd.X) - c;
  6835. this.Fc = this.hc = this.hd = !1
  6836. };
  6837. m.prototype.stop = function() {
  6838. switch (this.S) {
  6839. case 0:
  6840. this.n.paused || this.n.pause();
  6841. break;
  6842. case 1:
  6843. 1 === this.buffer.S ? u(this.n) : this.n.paused || this.n.pause();
  6844. break;
  6845. case 2:
  6846. this.n.stop();
  6847. break;
  6848. case 3:
  6849. z.tb && AppMobi.context.stopSound(this.src)
  6850. }
  6851. this.hc = !0;
  6852. this.Fc = !1
  6853. };
  6854. m.prototype.pause = function() {
  6855. if (!(this.hd || this.hc || this.Ve() || this.Fc)) {
  6856. switch (this.S) {
  6857. case 0:
  6858. this.n.paused ||
  6859. this.n.pause();
  6860. break;
  6861. case 1:
  6862. 1 === this.buffer.S ? (this.Rb = this.Zk(), this.md && (this.Rb %= this.Se()), u(this.n)) : this.n.paused || this.n.pause();
  6863. break;
  6864. case 2:
  6865. this.n.pause();
  6866. break;
  6867. case 3:
  6868. z.tb && AppMobi.context.stopSound(this.src)
  6869. }
  6870. this.Fc = !0
  6871. }
  6872. };
  6873. m.prototype.sp = function() {
  6874. if (!(this.hd || this.hc || this.Ve()) && this.Fc) {
  6875. switch (this.S) {
  6876. case 0:
  6877. this.n.play();
  6878. break;
  6879. case 1:
  6880. 1 === this.buffer.S ? (this.n = C.createBufferSource(), this.n.buffer = this.buffer.ga, this.n.connect(this.Sa), this.n.loop = this.md, this.Sa.gain.value = G * this.volume *
  6881. this.ag, this.startTime = (this.$e ? z.Gb.X : z.Bd.X) - this.Rb, d(this.n, this.Rb, this.Se())) : this.n.play();
  6882. break;
  6883. case 2:
  6884. this.n.play();
  6885. break;
  6886. case 3:
  6887. z.tb && AppMobi.context.resumeSound(this.src)
  6888. }
  6889. this.Fc = !1
  6890. }
  6891. };
  6892. m.prototype.seek = function(a) {
  6893. if (!(this.hd || this.hc || this.Ve())) switch (this.S) {
  6894. case 0:
  6895. try {
  6896. this.n.currentTime = a
  6897. } catch (b) {}
  6898. break;
  6899. case 1:
  6900. if (1 === this.buffer.S) this.Fc ? this.Rb = a : (this.pause(), this.Rb = a, this.sp());
  6901. else try {
  6902. this.n.currentTime = a
  6903. } catch (c) {}
  6904. break;
  6905. case 3:
  6906. z.tb && AppMobi.context.seekSound(this.src, a)
  6907. }
  6908. };
  6909. m.prototype.tu = function(a) {
  6910. 1 === this.S && (this.od ? (this.Na.disconnect(), this.Na.connect(a)) : (this.Sa.disconnect(), this.Sa.connect(a)))
  6911. };
  6912. m.prototype.Se = function() {
  6913. switch (this.S) {
  6914. case 0:
  6915. if ("undefined" !== typeof this.n.duration) return this.n.duration;
  6916. break;
  6917. case 1:
  6918. return this.buffer.ga.duration;
  6919. case 2:
  6920. return this.n.getDuration();
  6921. case 3:
  6922. if (z.tb) return AppMobi.context.getDurationSound(this.src)
  6923. }
  6924. return 0
  6925. };
  6926. m.prototype.Zk = function() {
  6927. var a = this.Se(),
  6928. b = 0;
  6929. switch (this.S) {
  6930. case 0:
  6931. "undefined" !== typeof this.n.currentTime &&
  6932. (b = this.n.currentTime);
  6933. break;
  6934. case 1:
  6935. if (1 === this.buffer.S) {
  6936. if (this.Fc) return this.Rb;
  6937. b = (this.$e ? z.Gb.X : z.Bd.X) - this.startTime
  6938. } else "undefined" !== typeof this.n.currentTime && (b = this.n.currentTime);
  6939. break;
  6940. case 3:
  6941. z.tb && (b = AppMobi.context.getPlaybackTimeSound(this.src))
  6942. }!this.md && b > a && (b = a);
  6943. return b
  6944. };
  6945. m.prototype.Of = function() {
  6946. return !this.Fc && !this.hd && !this.hc && !this.Ve()
  6947. };
  6948. m.prototype.Vu = function() {
  6949. var a = this.volume * G;
  6950. switch (this.S) {
  6951. case 0:
  6952. this.n.volume && this.n.volume !== a && (this.n.volume = a);
  6953. break;
  6954. case 1:
  6955. this.Sa.gain.value =
  6956. a * this.ag
  6957. }
  6958. };
  6959. m.prototype.xi = function(a) {
  6960. switch (this.S) {
  6961. case 0:
  6962. this.n.muted !== !!a && (this.n.muted = !!a);
  6963. break;
  6964. case 1:
  6965. this.ag = a ? 0 : 1, this.Sa.gain.value = G * this.volume * this.ag
  6966. }
  6967. };
  6968. m.prototype.Hu = function() {
  6969. this.Sf = !0;
  6970. this.xi(this.Sf || this.dh)
  6971. };
  6972. m.prototype.vp = function(a) {
  6973. this.dh = !!a;
  6974. this.xi(this.Sf || this.dh)
  6975. };
  6976. m.prototype.Wp = function() {
  6977. var a = this.playbackRate;
  6978. this.$e && (a *= z.vf);
  6979. switch (this.S) {
  6980. case 0:
  6981. this.n.playbackRate !== a && (this.n.playbackRate = a);
  6982. break;
  6983. case 1:
  6984. 1 === this.buffer.S ? this.n.playbackRate.value !== a &&
  6985. (this.n.playbackRate.value = a) : this.n.playbackRate !== a && (this.n.playbackRate = a)
  6986. }
  6987. };
  6988. m.prototype.Ju = function(a) {
  6989. switch (this.S) {
  6990. case 0:
  6991. a ? this.Of() ? (this.n.pause(), this.Wd = !0) : this.Wd = !1 : this.Wd && this.n.play();
  6992. break;
  6993. case 1:
  6994. a ? this.Of() ? (1 === this.buffer.S ? (this.Rb = this.Zk(), this.md && (this.Rb %= this.Se()), u(this.n)) : this.n.pause(), this.Wd = !0) : this.Wd = !1 : this.Wd && (1 === this.buffer.S ? (this.n = C.createBufferSource(), this.n.buffer = this.buffer.ga, this.n.connect(this.Sa), this.n.loop = this.md, this.Sa.gain.value = G * this.volume *
  6995. this.ag, this.startTime = (this.$e ? z.Gb.X : z.Bd.X) - this.Rb, d(this.n, this.Rb, this.Se())) : this.n.play());
  6996. break;
  6997. case 2:
  6998. a ? this.Of() ? (this.n.pause(), this.Wd = !0) : this.Wd = !1 : this.Wd && this.n.play()
  6999. }
  7000. };
  7001. qa.wa = function(a) {
  7002. this.type = a;
  7003. z = this.b = a.b;
  7004. fa = this;
  7005. this.Ib = null;
  7006. this.jh = -600;
  7007. !(this.b.Si || this.b.Mi && (this.b.Zg || this.b.Ni)) || this.b.$g || this.b.ya || (Qa = !0);
  7008. C = null;
  7009. "undefined" !== typeof AudioContext ? (M = 1, C = new AudioContext) : "undefined" !== typeof webkitAudioContext && (M = 1, C = new webkitAudioContext);
  7010. (this.b.Si && 1 === M ||
  7011. Qa) && document.addEventListener("touchstart", function() {
  7012. var a, b, c;
  7013. !uc && C && (a = C.createBuffer(1, 1, 22050), b = C.createBufferSource(), b.buffer = a, b.connect(C.destination), g(b), uc = !0);
  7014. if (Qa) {
  7015. if (!I)
  7016. for (a = 0, b = Ra.length; a < b; ++a) c = Ra[a], c.hc || c.Fc || c.n.play();
  7017. Ra.length = 0
  7018. }
  7019. }, !0);
  7020. 1 !== M && (this.b.sc && "undefined" !== typeof window.Media ? M = 2 : this.b.Nf && (M = 3));
  7021. 2 === M && (H = location.href, a = H.lastIndexOf("/"), -1 < a && (H = H.substr(0, a + 1)), H = H.replace("file://", ""));
  7022. if (this.b.eo && this.b.It && "undefined" === typeof Audio) alert("It looks like you're using Safari for Windows without Quicktime. Audio cannot be played until Quicktime is installed."),
  7023. this.b.Ie(this);
  7024. else {
  7025. if (this.b.tb) N = this.b.Mi;
  7026. else try {
  7027. N = !!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')
  7028. } catch (b) {
  7029. N = !1
  7030. }
  7031. this.b.pg(this)
  7032. }
  7033. };
  7034. var na = qa.wa.prototype;
  7035. na.W = function() {
  7036. this.b.Df = this;
  7037. F = this.C[0];
  7038. this.Xd = this.C[1];
  7039. this.gu = 0 !== this.C[2];
  7040. ma = this.C[3];
  7041. ha = this.C[4];
  7042. this.jh = -this.C[5];
  7043. va = this.C[6];
  7044. wa = this.C[7];
  7045. tc = this.C[8];
  7046. this.Ib = new c;
  7047. var b = this.b.O || this.b.width,
  7048. e = this.b.N || this.b.height;
  7049. 1 === M && (C.listener.speedOfSound = this.C[9], C.listener.dopplerFactor = this.C[10], C.listener.setPosition(b /
  7050. 2, e / 2, this.jh), C.listener.setOrientation(0, 0, 1, 0, -1, 0), window.c2OnAudioMicStream = function(b, c) {
  7051. Ga && Ga.disconnect();
  7052. ub = c.toLowerCase();
  7053. Ga = C.createMediaStreamSource(b);
  7054. Ga.connect(a(ub))
  7055. });
  7056. this.b.en(function(a) {
  7057. fa.du(a)
  7058. });
  7059. var d = this;
  7060. this.b.mk(function(a) {
  7061. d.Ol(a)
  7062. })
  7063. };
  7064. na.Ol = function(a) {
  7065. var b, c, e;
  7066. b = 0;
  7067. for (c = B.length; b < c; b++) e = B[b], e.Ma && e.Ma.H === a && (e.Ma.H = null, e.od && e.Of() && e.md && e.stop());
  7068. this.Ib.H === a && (this.Ib.H = null)
  7069. };
  7070. na.Bb = function() {
  7071. var a = {
  7072. silent: I,
  7073. masterVolume: G,
  7074. listenerZ: this.jh,
  7075. listenerUid: this.Ib.Li() ?
  7076. this.Ib.H.uid : -1,
  7077. playing: [],
  7078. effects: {}
  7079. },
  7080. b = a.playing,
  7081. c, e, d, f, h, g;
  7082. c = 0;
  7083. for (e = B.length; c < e; c++) d = B[c], !d.Of() || 3 === this.Xd || d.Sc && 1 === this.Xd || !d.Sc && 2 === this.Xd || (f = d.Zk(), d.md && (f %= d.Se()), f = {
  7084. tag: d.tag,
  7085. buffersrc: d.buffer.src,
  7086. is_music: d.Sc,
  7087. playbackTime: f,
  7088. volume: d.volume,
  7089. looping: d.md,
  7090. muted: d.Sf,
  7091. playbackRate: d.playbackRate,
  7092. paused: d.Fc,
  7093. resume_position: d.Rb
  7094. }, d.od && (f.pan = {}, g = f.pan, d.Ma && d.Ma.Li() ? g.objUid = d.Ma.H.uid : (g.x = d.fp, g.y = d.gp, g.a = d.bp), g.ia = d.cp, g.oa = d.dp, g.og = d.ep), b.push(f));
  7095. b = a.effects;
  7096. for (h in U)
  7097. if (U.hasOwnProperty(h)) {
  7098. d =
  7099. [];
  7100. c = 0;
  7101. for (e = U[h].length; c < e; c++) d.push({
  7102. type: U[h][c].type,
  7103. params: U[h][c].Vc
  7104. });
  7105. b[h] = d
  7106. }
  7107. return a
  7108. };
  7109. var Sa = [];
  7110. na.Ob = function(a) {
  7111. var b = a.silent;
  7112. G = a.masterVolume;
  7113. this.jh = a.listenerZ;
  7114. this.Ib.Hh(null);
  7115. var e = a.listenerUid; - 1 !== e && (this.Ib.fj = e, Sa.push(this.Ib));
  7116. var e = a.playing,
  7117. d, g, k, m, v, s, r, u, E, z, Q;
  7118. if (3 !== this.Xd)
  7119. for (d = 0, g = B.length; d < g; d++) E = B[d], E.Sc && 1 === this.Xd || (E.Sc || 2 !== this.Xd) && E.stop();
  7120. for (v in U)
  7121. if (U.hasOwnProperty(v))
  7122. for (d = 0, g = U[v].length; d < g; d++) U[v][d].remove();
  7123. Xa(U);
  7124. for (v in a.effects)
  7125. if (a.effects.hasOwnProperty(v))
  7126. for (s =
  7127. a.effects[v], d = 0, g = s.length; d < g; d++) switch (k = s[d].type, z = s[d].params, k) {
  7128. case "filter":
  7129. K(v, new t(z[0], z[1], z[2], z[3], z[4], z[5]));
  7130. break;
  7131. case "delay":
  7132. K(v, new n(z[0], z[1], z[2]));
  7133. break;
  7134. case "convolve":
  7135. k = z[2];
  7136. E = this.Hi(k, !1);
  7137. E.ga ? k = new f(E.ga, z[0], z[1], k) : (k = new f(null, z[0], z[1], k), E.Qo = z[0], E.mi = k);
  7138. K(v, k);
  7139. break;
  7140. case "flanger":
  7141. K(v, new p(z[0], z[1], z[2], z[3], z[4]));
  7142. break;
  7143. case "phaser":
  7144. K(v, new x(z[0], z[1], z[2], z[3], z[4], z[5]));
  7145. break;
  7146. case "gain":
  7147. K(v, new h(z[0]));
  7148. break;
  7149. case "tremolo":
  7150. K(v, new w(z[0], z[1]));
  7151. break;
  7152. case "ringmod":
  7153. K(v, new y(z[0], z[1]));
  7154. break;
  7155. case "distortion":
  7156. K(v, new l(z[0], z[1], z[2], z[3], z[4]));
  7157. break;
  7158. case "compressor":
  7159. K(v, new q(z[0], z[1], z[2], z[3], z[4]));
  7160. break;
  7161. case "analyser":
  7162. K(v, new A(z[0], z[1]))
  7163. }
  7164. d = 0;
  7165. for (g = e.length; d < g; d++) 3 === this.Xd || (a = e[d], k = a.buffersrc, m = a.is_music, v = a.tag, s = a.playbackTime, r = a.looping, u = a.volume, Q = (z = a.pan) && z.hasOwnProperty("objUid") ? z.objUid : -1, m && 1 === this.Xd) || !m && 2 === this.Xd || ((E = this.Qk(k, v, m, r, u)) ? (E.Rb = a.resume_position, E.Gj(!!z), E.play(r, u, s), E.Wp(), E.Vu(), E.xi(E.Sf ||
  7166. E.dh), a.paused && E.pause(), a.muted && E.Hu(), E.xi(E.Sf || E.dh), z && (-1 !== Q ? (E.Ma = E.Ma || new c, E.Ma.fj = Q, Sa.push(E.Ma)) : E.om(z.x, z.y, z.a, z.ia, z.oa, z.og))) : (E = this.Hi(k, m), E.Fj = s, E.oj = a.paused, z && (-1 !== Q ? E.gg.push({
  7167. So: Q,
  7168. gl: z.ia,
  7169. Kl: z.oa,
  7170. Nl: z.og,
  7171. Kp: v
  7172. }) : E.gg.push({
  7173. x: z.x,
  7174. y: z.y,
  7175. rr: z.a,
  7176. gl: z.ia,
  7177. Kl: z.oa,
  7178. Nl: z.og,
  7179. Kp: v
  7180. }))));
  7181. if (b && !I) {
  7182. d = 0;
  7183. for (g = B.length; d < g; d++) B[d].vp(!0);
  7184. I = !0
  7185. } else if (!b && I) {
  7186. d = 0;
  7187. for (g = B.length; d < g; d++) B[d].vp(!1);
  7188. I = !1
  7189. }
  7190. };
  7191. na.Cd = function() {
  7192. var a, b, c, e;
  7193. a = 0;
  7194. for (b = Sa.length; a < b; a++) c = Sa[a], e = this.b.Ng(c.fj),
  7195. c.Hh(e), c.fj = -1, e && (ga = e.x, O = e.y);
  7196. Sa.length = 0
  7197. };
  7198. na.du = function(a) {
  7199. if (!this.gu) {
  7200. !a && C && C.resume && C.resume();
  7201. var b, c;
  7202. b = 0;
  7203. for (c = B.length; b < c; b++) B[b].Ju(a);
  7204. a && C && C.suspend && C.suspend()
  7205. }
  7206. };
  7207. na.qb = function() {
  7208. var a = this.b.Pe,
  7209. b, c, e;
  7210. b = 0;
  7211. for (c = B.length; b < c; b++) e = B[b], e.qb(a), 0 === e.S || 3 === e.S || e.hd || e.hc || !e.Ve() || (e.hc = !0, P = e.tag, z.trigger(kc.prototype.k.ek, fa)), 0 !== F && e.Wp();
  7212. var d, f;
  7213. for (d in U)
  7214. if (U.hasOwnProperty(d))
  7215. for (e = U[d], b = 0, c = e.length; b < c; b++) f = e[b], f.qb && f.qb();
  7216. 1 === M && this.Ib.Li() && (this.Ib.qb(a), ga =
  7217. this.Ib.H.x, O = this.Ib.H.y, C.listener.setPosition(this.Ib.H.x, this.Ib.H.y, this.jh), C.listener.setVelocity(this.Ib.al(), this.Ib.bl(), 0))
  7218. };
  7219. var Ta = [];
  7220. na.Iu = function(a) {
  7221. var b, c, e, d, f, h = 0;
  7222. b = 0;
  7223. for (c = a.length; b < c; ++b)
  7224. if (e = a[b], d = e[0], e = 2 * e[1], (f = 4 < d.length && ".ogg" === d.substr(d.length - 4)) && N || !f && !N) Ta.push({
  7225. filename: d,
  7226. size: e,
  7227. H: null
  7228. }), h += e;
  7229. return h
  7230. };
  7231. na.Nu = function() {
  7232. var a, b, c, e;
  7233. a = 0;
  7234. for (b = Ta.length; a < b; ++a) c = Ta[a], e = this.b.Di + c.filename, c.H = this.Hi(e, !1)
  7235. };
  7236. na.Xs = function() {
  7237. var a = 0,
  7238. b, c, e;
  7239. b = 0;
  7240. for (c = Ta.length; b <
  7241. c; ++b) e = Ta[b], e.H.Ht() || e.H.xt() || this.b.ya || this.b.Ni ? a += e.size : e.H.co() && (a += Math.floor(e.size / 2));
  7242. return a
  7243. };
  7244. na.Hi = function(a, b) {
  7245. var c, d, f, h = null;
  7246. c = 0;
  7247. for (d = L.length; c < d; c++)
  7248. if (f = L[c], f.src === a) {
  7249. h = f;
  7250. break
  7251. }
  7252. h || (h = new e(a, b), L.push(h));
  7253. return h
  7254. };
  7255. na.Qk = function(a, b, c, e, d) {
  7256. var f, h, g;
  7257. f = 0;
  7258. for (h = B.length; f < h; f++)
  7259. if (g = B[f], g.src === a && (g.Ir() || c)) return g.tag = b, g;
  7260. a = this.Hi(a, c);
  7261. if (!a.ga) return "<preload>" !== b && (a.qj = b, a.Dl = e, a.Jm = d), null;
  7262. g = new m(a, b);
  7263. B.push(g);
  7264. return g
  7265. };
  7266. var za = [];
  7267. E.prototype.ek = function(a) {
  7268. return jb(P,
  7269. a)
  7270. };
  7271. qa.k = new E;
  7272. Q.prototype.Play = function(a, b, c, e) {
  7273. !I && (c = k(c), D = this.Qk(this.b.Di + a[0] + (N ? ".ogg" : ".m4a"), e, a[1], 0 !== b, c)) && (D.Gj(!1), D.play(0 !== b, c))
  7274. };
  7275. Q.prototype.Wq = function(a, b, c, e, d) {
  7276. !I && (e = k(e), D = this.Qk(this.b.Di + b.toLowerCase() + (N ? ".ogg" : ".m4a"), d, 1 === a, 0 !== c, e)) && (D.Gj(!1), D.play(0 !== c, e))
  7277. };
  7278. Q.prototype.fr = function(a, b) {
  7279. v(a);
  7280. var c, e;
  7281. c = 0;
  7282. for (e = za.length; c < e; c++) 0 === b ? za[c].pause() : za[c].sp()
  7283. };
  7284. qa.F = new Q;
  7285. qa.xa = new function() {}
  7286. })();
  7287. function lc(k) {
  7288. this.b = k
  7289. }
  7290. (function() {
  7291. function k() {}
  7292. function r() {}
  7293. function a() {}
  7294. var b = lc.prototype;
  7295. b.Fa = function(a) {
  7296. this.qa = a;
  7297. this.b = a.b
  7298. };
  7299. b.Fa.prototype.W = function() {};
  7300. b.wa = function(a) {
  7301. this.type = a;
  7302. this.b = a.b
  7303. };
  7304. b.wa.prototype.W = function() {
  7305. var a = this;
  7306. window.addEventListener("resize", function() {
  7307. a.b.trigger(lc.prototype.k.Rq, a)
  7308. });
  7309. "undefined" !== typeof navigator.onLine && (window.addEventListener("online", function() {
  7310. a.b.trigger(lc.prototype.k.Nq, a)
  7311. }), window.addEventListener("offline", function() {
  7312. a.b.trigger(lc.prototype.k.Mq, a)
  7313. }));
  7314. "undefined" !== typeof window.applicationCache && (window.applicationCache.addEventListener("updateready", function() {
  7315. a.b.Xf = 1;
  7316. a.b.trigger(lc.prototype.k.Xm, a)
  7317. }), window.applicationCache.addEventListener("progress", function(b) {
  7318. a.b.Xf = b.loaded / b.total
  7319. }));
  7320. this.b.tb || (document.addEventListener("appMobi.device.update.available", function() {
  7321. a.b.trigger(lc.prototype.k.Xm, a)
  7322. }), document.addEventListener("backbutton", function() {
  7323. a.b.trigger(lc.prototype.k.ck, a)
  7324. }), document.addEventListener("menubutton", function() {
  7325. a.b.trigger(lc.prototype.k.Sm,
  7326. a)
  7327. }), document.addEventListener("searchbutton", function() {
  7328. a.b.trigger(lc.prototype.k.Sq, a)
  7329. }), document.addEventListener("tizenhwkey", function(b) {
  7330. var d;
  7331. switch (b.keyName) {
  7332. case "back":
  7333. d = a.b.trigger(lc.prototype.k.ck, a);
  7334. !d && window.tizen && window.tizen.application.getCurrentApplication().exit();
  7335. break;
  7336. case "menu":
  7337. (d = a.b.trigger(lc.prototype.k.Sm, a)) || b.preventDefault()
  7338. }
  7339. }));
  7340. this.b.Oi && (WinJS.Application.onbackclick = function() {
  7341. return !!a.b.trigger(lc.prototype.k.ck, a)
  7342. });
  7343. this.b.en(function(b) {
  7344. b ? a.b.trigger(lc.prototype.k.Oq,
  7345. a) : a.b.trigger(lc.prototype.k.Pq, a)
  7346. });
  7347. this.Lt = "undefined" !== typeof window.is_scirra_arcade
  7348. };
  7349. k.prototype.Nq = function() {
  7350. return !0
  7351. };
  7352. k.prototype.Mq = function() {
  7353. return !0
  7354. };
  7355. k.prototype.Xm = function() {
  7356. return !0
  7357. };
  7358. k.prototype.Pq = function() {
  7359. return !0
  7360. };
  7361. k.prototype.Oq = function() {
  7362. return !0
  7363. };
  7364. k.prototype.Rq = function() {
  7365. return !0
  7366. };
  7367. k.prototype.ck = function() {
  7368. return !0
  7369. };
  7370. k.prototype.Sm = function() {
  7371. return !0
  7372. };
  7373. k.prototype.Sq = function() {
  7374. return !0
  7375. };
  7376. b.k = new k;
  7377. r.prototype.oq = function(a, b) {
  7378. Play68.goHome();
  7379. /*this.b.rc ? CocoonJS.App.openURL(a) : this.b.Ec ? ejecta.openURL(a) :
  7380. this.b.ql ? Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(a)) : navigator.app && navigator.app.loadUrl ? navigator.app.loadUrl(a, {
  7381. openExternal: !0
  7382. }) : this.b.sc ? window.open(a, "_system") : this.Lt || this.b.ya || window.open(a, b)*/
  7383. };
  7384. b.F = new r;
  7385. a.prototype.URL = function(a) {
  7386. // a.Pa(this.b.ya ? "" : window.location.toString())
  7387. };
  7388. b.xa = new a
  7389. })();
  7390. function mc(k) {
  7391. this.b = k
  7392. }
  7393. (function() {
  7394. function k() {}
  7395. var r = mc.prototype;
  7396. r.Fa = function(a) {
  7397. this.qa = a;
  7398. this.b = a.b
  7399. };
  7400. r.Fa.prototype.W = function() {};
  7401. r.wa = function(a) {
  7402. this.type = a;
  7403. this.b = a.b;
  7404. this.Ti = Array(256);
  7405. this.$j = Array(256);
  7406. this.He = 0
  7407. };
  7408. var a = r.wa.prototype;
  7409. a.W = function() {
  7410. var a = this;
  7411. this.b.ya || (jQuery(document).keydown(function(b) {
  7412. a.Yt(b)
  7413. }), jQuery(document).keyup(function(b) {
  7414. a.Zt(b)
  7415. }))
  7416. };
  7417. var b = [32, 33, 34, 35, 36, 37, 38, 39, 40, 44];
  7418. a.Yt = function(a) {
  7419. var g = !1;
  7420. window != window.top && -1 < b.indexOf(a.which) && (a.preventDefault(), g = !0, a.stopPropagation());
  7421. if (this.Ti[a.which]) this.$j[a.which] && !g && a.preventDefault();
  7422. else {
  7423. this.Ti[a.which] = !0;
  7424. this.He = a.which;
  7425. this.b.Zb = !0;
  7426. this.b.trigger(mc.prototype.k.zq, this);
  7427. var d = this.b.trigger(mc.prototype.k.Om, this),
  7428. k = this.b.trigger(mc.prototype.k.Iq, this);
  7429. this.b.Zb = !1;
  7430. if (d || k) this.$j[a.which] = !0, g || a.preventDefault()
  7431. }
  7432. };
  7433. a.Zt = function(a) {
  7434. this.Ti[a.which] = !1;
  7435. this.He = a.which;
  7436. this.b.Zb = !0;
  7437. this.b.trigger(mc.prototype.k.Aq, this);
  7438. var b = this.b.trigger(mc.prototype.k.Pm, this),
  7439. d = this.b.trigger(mc.prototype.k.Jq, this);
  7440. this.b.Zb = !1;
  7441. if (b || d || this.$j[a.which]) this.$j[a.which] = !0, a.preventDefault()
  7442. };
  7443. a.Bb = function() {
  7444. return {
  7445. triggerKey: this.He
  7446. }
  7447. };
  7448. a.Ob = function(a) {
  7449. this.He = a.triggerKey
  7450. };
  7451. k.prototype.rq = function(a) {
  7452. return this.Ti[a]
  7453. };
  7454. k.prototype.Om = function(a) {
  7455. return a === this.He
  7456. };
  7457. k.prototype.zq = function() {
  7458. return !0
  7459. };
  7460. k.prototype.Aq = function() {
  7461. return !0
  7462. };
  7463. k.prototype.Pm = function(a) {
  7464. return a === this.He
  7465. };
  7466. k.prototype.Iq = function(a) {
  7467. return a === this.He
  7468. };
  7469. k.prototype.Jq = function(a) {
  7470. return a === this.He
  7471. };
  7472. r.k = new k;
  7473. r.F = new function() {};
  7474. r.xa = new function() {}
  7475. })();
  7476. function Y(k) {
  7477. this.b = k
  7478. }
  7479. (function() {
  7480. function k() {
  7481. if (0 === this.Bk.length) {
  7482. var a = document.createElement("canvas");
  7483. a.width = this.width;
  7484. a.height = this.height;
  7485. var b = a.getContext("2d");
  7486. this.mg ? b.drawImage(this.Aa, this.dg, this.eg, this.width, this.height, 0, 0, this.width, this.height) : b.drawImage(this.Aa, 0, 0, this.width, this.height);
  7487. this.Bk = a.toDataURL("image/png")
  7488. }
  7489. return this.Bk
  7490. }
  7491. function r() {}
  7492. function a(a) {
  7493. a[0] = 0;
  7494. a[1] = 0;
  7495. a[2] = 0;
  7496. x.push(a)
  7497. }
  7498. function b(a, b) {
  7499. return a < b ? "" + a + "," + b : "" + b + "," + a
  7500. }
  7501. function s(a, d, c, e) {
  7502. d = d.uid;
  7503. c = c.uid;
  7504. var f = b(d, c);
  7505. if (a.hasOwnProperty(f)) a[f][2] =
  7506. e;
  7507. else {
  7508. var h = x.length ? x.pop() : [0, 0, 0];
  7509. h[0] = d;
  7510. h[1] = c;
  7511. h[2] = e;
  7512. a[f] = h
  7513. }
  7514. }
  7515. function g(d, f, c) {
  7516. f = b(f.uid, c.uid);
  7517. d.hasOwnProperty(f) && (a(d[f]), delete d[f])
  7518. }
  7519. function d(a, d, c) {
  7520. d = b(d.uid, c.uid);
  7521. if (a.hasOwnProperty(d)) return h = a[d][2], !0;
  7522. h = -2;
  7523. return !1
  7524. }
  7525. function u() {}
  7526. var t = Y.prototype;
  7527. t.Fa = function(a) {
  7528. this.qa = a;
  7529. this.b = a.b
  7530. };
  7531. var n = t.Fa.prototype;
  7532. n.W = function() {
  7533. if (!this.K) {
  7534. var a, b, c, e, d, f, h, g, l;
  7535. this.Oc = [];
  7536. this.Ug = !1;
  7537. a = 0;
  7538. for (b = this.Ub.length; a < b; a++) {
  7539. d = this.Ub[a];
  7540. h = {};
  7541. h.name = d[0];
  7542. h.speed = d[1];
  7543. h.loop = d[2];
  7544. h.em = d[3];
  7545. h.Cj =
  7546. d[4];
  7547. h.jp = d[5];
  7548. h.U = d[6];
  7549. h.frames = [];
  7550. c = 0;
  7551. for (e = d[7].length; c < e; c++) f = d[7][c], g = {}, g.wm = f[0], g.Jp = f[1], g.dg = f[2], g.eg = f[3], g.width = f[4], g.height = f[5], g.duration = f[6], g.Mb = f[7], g.Nb = f[8], g.hl = f[9], g.rj = f[10], g.kp = f[11], g.mg = 0 !== g.width, g.Bk = "", g.kw = k, l = {
  7552. left: 0,
  7553. top: 0,
  7554. right: 1,
  7555. bottom: 1
  7556. }, g.pm = l, g.Ka = null, (l = this.b.Ls(f[0])) ? g.Aa = l : (g.Aa = new Image, g.Aa.Mr = f[0], g.Aa.Lr = f[1], g.Aa.Gr = null, this.b.$p(g.Aa, f[0])), h.frames.push(g), this.Oc.push(g);
  7557. this.Ub[a] = h
  7558. }
  7559. }
  7560. };
  7561. n.Up = function() {
  7562. var a, b, c;
  7563. a = 0;
  7564. for (b = this.d.length; a <
  7565. b; a++) c = this.d[a], c.qi = c.nc.Ka
  7566. };
  7567. n.mj = function() {
  7568. if (!this.K) {
  7569. var a, b, c;
  7570. a = 0;
  7571. for (b = this.Oc.length; a < b; ++a) c = this.Oc[a], c.Aa.Gr = null, c.Ka = null;
  7572. this.Ug = !1;
  7573. this.Up()
  7574. }
  7575. };
  7576. n.Ql = function() {
  7577. if (!this.K && this.d.length) {
  7578. var a, b, c;
  7579. a = 0;
  7580. for (b = this.Oc.length; a < b; ++a) c = this.Oc[a], c.Ka = this.b.u.ej(c.Aa, this.b.ca, c.kp);
  7581. this.Up()
  7582. }
  7583. };
  7584. n.Pt = function() {
  7585. if (!this.K && !this.Ug && this.b.u) {
  7586. var a, b, c;
  7587. a = 0;
  7588. for (b = this.Oc.length; a < b; ++a) c = this.Oc[a], c.Ka = this.b.u.ej(c.Aa, this.b.ca, c.kp);
  7589. this.Ug = !0
  7590. }
  7591. };
  7592. n.Cm = function() {
  7593. if (!this.K && !this.d.length &&
  7594. this.Ug) {
  7595. var a, b, c;
  7596. a = 0;
  7597. for (b = this.Oc.length; a < b; ++a) c = this.Oc[a], this.b.u.deleteTexture(c.Ka), c.Ka = null;
  7598. this.Ug = !1
  7599. }
  7600. };
  7601. var f = [];
  7602. n.Yl = function(a) {
  7603. var b, c, e;
  7604. b = f.length = 0;
  7605. for (c = this.Oc.length; b < c; ++b) e = this.Oc[b].Aa, -1 === f.indexOf(e) && (a.drawImage(e, 0, 0), f.push(e))
  7606. };
  7607. t.wa = function(a) {
  7608. this.type = a;
  7609. this.b = a.b;
  7610. a = this.type.Ub[0].frames[0].rj;
  7611. this.ec ? this.da.Kh(a) : this.da = new db(a)
  7612. };
  7613. var p = t.wa.prototype;
  7614. p.W = function() {
  7615. this.visible = 0 === this.C[0];
  7616. this.Vg = this.Ze = !1;
  7617. this.Gd = 0 !== this.C[3];
  7618. 1 === this.type.Ub.length &&
  7619. 1 === this.type.Ub[0].frames.length || 0 === this.type.Ub[0].speed || (this.b.pg(this), this.Ze = !0);
  7620. this.Ga = this.Jn(this.C[1]) || this.type.Ub[0];
  7621. this.A = this.C[2];
  7622. 0 > this.A && (this.A = 0);
  7623. this.A >= this.Ga.frames.length && (this.A = this.Ga.frames.length - 1);
  7624. var a = this.Ga.frames[this.A];
  7625. this.da.Kh(a.rj);
  7626. this.Mb = a.Mb;
  7627. this.Nb = a.Nb;
  7628. this.Eg = this.Ga.speed;
  7629. this.ec ? this.Pc.reset() : this.Pc = new bb;
  7630. this.gd = this.Pc.X;
  7631. this.Dd = !0;
  7632. this.Ed = 0;
  7633. this.Je = !0;
  7634. this.hi = this.hn = "";
  7635. this.sn = 0;
  7636. this.Bg = -1;
  7637. this.type.Pt();
  7638. var b, c, e, d, f, h, g, a = 0;
  7639. for (b =
  7640. this.type.Ub.length; a < b; a++)
  7641. for (d = this.type.Ub[a], c = 0, e = d.frames.length; c < e; c++) f = d.frames[c], 0 === f.width && (f.width = f.Aa.width, f.height = f.Aa.height), f.mg && (g = f.Aa, h = f.pm, h.left = f.dg / g.width, h.top = f.eg / g.height, h.right = (f.dg + f.width) / g.width, h.bottom = (f.eg + f.height) / g.height, 0 === f.dg && 0 === f.eg && f.width === g.width && f.height === g.height && (f.mg = !1));
  7642. this.nc = this.Ga.frames[this.A];
  7643. this.qi = this.nc.Ka
  7644. };
  7645. p.Bb = function() {
  7646. var a = {
  7647. a: this.Ga.U,
  7648. f: this.A,
  7649. cas: this.Eg,
  7650. fs: this.gd,
  7651. ar: this.Ed,
  7652. at: this.Pc.X
  7653. };
  7654. this.Dd || (a.ap =
  7655. this.Dd);
  7656. this.Je || (a.af = this.Je);
  7657. return a
  7658. };
  7659. p.Ob = function(a) {
  7660. var b = this.Qs(a.a);
  7661. b && (this.Ga = b);
  7662. this.A = a.f;
  7663. 0 > this.A && (this.A = 0);
  7664. this.A >= this.Ga.frames.length && (this.A = this.Ga.frames.length - 1);
  7665. this.Eg = a.cas;
  7666. this.gd = a.fs;
  7667. this.Ed = a.ar;
  7668. this.Pc.reset();
  7669. this.Pc.X = a.at;
  7670. this.Dd = a.hasOwnProperty("ap") ? a.ap : !0;
  7671. this.Je = a.hasOwnProperty("af") ? a.af : !0;
  7672. this.nc = this.Ga.frames[this.A];
  7673. this.qi = this.nc.Ka;
  7674. this.da.Kh(this.nc.rj);
  7675. this.Mb = this.nc.Mb;
  7676. this.Nb = this.nc.Nb
  7677. };
  7678. p.pk = function(a) {
  7679. this.A = a ? 0 : this.Ga.frames.length -
  7680. 1;
  7681. this.Dd = !1;
  7682. this.hn = this.Ga.name;
  7683. this.Vg = !0;
  7684. this.b.trigger(Y.prototype.k.yq, this);
  7685. this.b.trigger(Y.prototype.k.xq, this);
  7686. this.Vg = !1;
  7687. this.Ed = 0
  7688. };
  7689. p.mw = function() {
  7690. return this.Pc.X
  7691. };
  7692. p.qb = function() {
  7693. this.Pc.add(this.b.Uk(this));
  7694. this.hi.length && this.zn();
  7695. 0 <= this.Bg && this.Ek();
  7696. var a = this.Pc.X,
  7697. b = this.Ga,
  7698. c = b.frames[this.A],
  7699. e = c.duration / this.Eg;
  7700. this.Dd && a >= this.gd + e && (this.Je ? this.A++ : this.A--, this.gd += e, this.A >= b.frames.length && (b.jp ? (this.Je = !1, this.A = b.frames.length - 2) : b.loop ? this.A = b.Cj : (this.Ed++, this.Ed >=
  7701. b.em ? this.pk(!1) : this.A = b.Cj)), 0 > this.A && (b.jp ? (this.A = 1, this.Je = !0, b.loop || (this.Ed++, this.Ed >= b.em && this.pk(!0))) : b.loop ? this.A = b.Cj : (this.Ed++, this.Ed >= b.em ? this.pk(!0) : this.A = b.Cj)), 0 > this.A ? this.A = 0 : this.A >= b.frames.length && (this.A = b.frames.length - 1), a > this.gd + b.frames[this.A].duration / this.Eg && (this.gd = a), a = b.frames[this.A], this.Af(c, a), this.b.aa = !0)
  7702. };
  7703. p.Jn = function(a) {
  7704. var b, c, e;
  7705. b = 0;
  7706. for (c = this.type.Ub.length; b < c; b++)
  7707. if (e = this.type.Ub[b], jb(e.name, a)) return e;
  7708. return null
  7709. };
  7710. p.Qs = function(a) {
  7711. var b,
  7712. c, e;
  7713. b = 0;
  7714. for (c = this.type.Ub.length; b < c; b++)
  7715. if (e = this.type.Ub[b], e.U === a) return e;
  7716. return null
  7717. };
  7718. p.zn = function() {
  7719. var a = this.Ga.frames[this.A],
  7720. b = this.Jn(this.hi);
  7721. this.hi = "";
  7722. !b || jb(b.name, this.Ga.name) && this.Dd || (this.Ga = b, this.Eg = b.speed, 0 > this.A && (this.A = 0), this.A >= this.Ga.frames.length && (this.A = this.Ga.frames.length - 1), 1 === this.sn && (this.A = 0), this.Dd = !0, this.gd = this.Pc.X, this.Je = !0, this.Af(a, this.Ga.frames[this.A]), this.b.aa = !0)
  7723. };
  7724. p.Ek = function() {
  7725. var a = this.Ga.frames[this.A],
  7726. b = this.A;
  7727. this.A = S(this.Bg);
  7728. 0 > this.A && (this.A = 0);
  7729. this.A >= this.Ga.frames.length && (this.A = this.Ga.frames.length - 1);
  7730. b !== this.A && (this.Af(a, this.Ga.frames[this.A]), this.gd = this.Pc.X, this.b.aa = !0);
  7731. this.Bg = -1
  7732. };
  7733. p.Af = function(a, b) {
  7734. var c = a.width,
  7735. e = a.height,
  7736. d = b.width,
  7737. f = b.height;
  7738. c != d && (this.width *= d / c);
  7739. e != f && (this.height *= f / e);
  7740. this.Mb = b.Mb;
  7741. this.Nb = b.Nb;
  7742. this.da.Kh(b.rj);
  7743. this.T();
  7744. this.nc = b;
  7745. this.qi = b.Ka;
  7746. c = 0;
  7747. for (e = this.L.length; c < e; c++) d = this.L[c], d.cu && d.cu(a, b);
  7748. this.b.trigger(Y.prototype.k.Af, this)
  7749. };
  7750. p.ed = function(a) {
  7751. a.globalAlpha = this.opacity;
  7752. var b = this.nc,
  7753. c = b.mg,
  7754. e = b.Aa,
  7755. d = this.x,
  7756. f = this.y,
  7757. h = this.width,
  7758. g = this.height;
  7759. if (0 === this.j && 0 <= h && 0 <= g) d -= this.Mb * h, f -= this.Nb * g, this.b.rd && (d = Math.round(d), f = Math.round(f)), c ? a.drawImage(e, b.dg, b.eg, b.width, b.height, d, f, h, g) : a.drawImage(e, d, f, h, g);
  7760. else {
  7761. this.b.rd && (d = Math.round(d), f = Math.round(f));
  7762. a.save();
  7763. var k = 0 < h ? 1 : -1,
  7764. l = 0 < g ? 1 : -1;
  7765. a.translate(d, f);
  7766. 1 === k && 1 === l || a.scale(k, l);
  7767. a.rotate(this.j * k * l);
  7768. d = 0 - this.Mb * la(h);
  7769. f = 0 - this.Nb * la(g);
  7770. c ? a.drawImage(e, b.dg, b.eg, b.width, b.height, d, f, la(h), la(g)) : a.drawImage(e,
  7771. d, f, la(h), la(g));
  7772. a.restore()
  7773. }
  7774. };
  7775. p.Cc = function(a) {
  7776. a.gc(this.qi);
  7777. a.pf(this.opacity);
  7778. var b = this.nc,
  7779. c = this.Db;
  7780. if (this.b.rd) {
  7781. var e = Math.round(this.x) - this.x,
  7782. d = Math.round(this.y) - this.y;
  7783. b.mg ? a.Ud(c.ta + e, c.ua + d, c.ib + e, c.jb + d, c.Ya + e, c.Za + d, c.Wa + e, c.Xa + d, b.pm) : a.yj(c.ta + e, c.ua + d, c.ib + e, c.jb + d, c.Ya + e, c.Za + d, c.Wa + e, c.Xa + d)
  7784. } else b.mg ? a.Ud(c.ta, c.ua, c.ib, c.jb, c.Ya, c.Za, c.Wa, c.Xa, b.pm) : a.yj(c.ta, c.ua, c.ib, c.jb, c.Ya, c.Za, c.Wa, c.Xa)
  7785. };
  7786. p.Ts = function(a) {
  7787. var b = this.nc,
  7788. c, e;
  7789. c = 0;
  7790. for (e = b.hl.length; c < e; c++)
  7791. if (jb(a, b.hl[c][0])) return c;
  7792. return -1
  7793. };
  7794. p.Xk = function(a, b) {
  7795. var c = this.nc,
  7796. e = c.hl,
  7797. d;
  7798. d = R(a) ? this.Ts(a) : a - 1;
  7799. d = S(d);
  7800. if (0 > d || d >= e.length) return b ? this.x : this.y;
  7801. var f = (e[d][1] - c.Mb) * this.width,
  7802. e = e[d][2],
  7803. e = (e - c.Nb) * this.height,
  7804. c = Math.cos(this.j);
  7805. d = Math.sin(this.j);
  7806. var h = f * c - e * d,
  7807. e = e * c + f * d,
  7808. f = h + this.x,
  7809. e = e + this.y;
  7810. return b ? f : e
  7811. };
  7812. var x = [],
  7813. h = -2,
  7814. w = [];
  7815. r.prototype.Cq = function(b) {
  7816. if (!b) return !1;
  7817. var f = this.b,
  7818. c = f.Tk(),
  7819. e = c.type;
  7820. c.R.collmemory || (c.R.collmemory = {}, f.mk(function(b) {
  7821. return function(c) {
  7822. c = c.uid;
  7823. var e, d;
  7824. for (e in b) b.hasOwnProperty(e) && (d =
  7825. b[e], d[0] === c || d[1] === c) && (a(b[e]), delete b[e])
  7826. }
  7827. }(c.R.collmemory)));
  7828. var c = c.R.collmemory,
  7829. k = e.Y(),
  7830. l = b.Y(),
  7831. k = k.pc(),
  7832. n, p, t, r, z, y, u, x = this.b.xd,
  7833. M = x - 1,
  7834. C = f.Ab().Wb;
  7835. for (p = 0; p < k.length; p++) {
  7836. t = k[p];
  7837. l.fa ? (t.na(), this.b.Kn(t.i, b, t.La, w), n = w) : n = l.pc();
  7838. for (r = 0; r < n.length; r++) z = n[r], f.tf(t, z) || f.Jr(t, z) ? (y = d(c, t, z), y = !y || h < M, s(c, t, z, x), y && (f.wj(C.ra), y = e.Y(), u = b.Y(), y.fa = !1, u.fa = !1, e === b ? (y.d.length = 2, y.d[0] = t, y.d[1] = z, e.wc()) : (y.d.length = 1, u.d.length = 1, y.d[0] = t, u.d[0] = z, e.wc(), b.wc()), C.yu(), f.nf(C.ra))) : g(c,
  7839. t, z);
  7840. w.length = 0
  7841. }
  7842. return !1
  7843. };
  7844. var y = new ba,
  7845. l = !1;
  7846. new T(0, 0, 0, 0);
  7847. n.finish = function(a) {
  7848. if (l) {
  7849. if (a) {
  7850. var b = this.b.Ab().Wb.Uc;
  7851. a = null.Y();
  7852. var c = y.be(),
  7853. e, d;
  7854. if (a.fa) {
  7855. a.fa = !1;
  7856. a.d.length = c.length;
  7857. e = 0;
  7858. for (d = c.length; e < d; e++) a.d[e] = c[e];
  7859. if (b)
  7860. for (e = a.ea.length = 0, d = null.d.length; e < d; e++) c = null.d[e], y.contains(c) || a.ea.push(c)
  7861. } else if (b)
  7862. for (b = a.d.length, a.d.length = b + c.length, e = 0, d = c.length; e < d; e++) a.d[b + e] = c[e], Da(a.ea, c[e]);
  7863. else Aa(a.d, c);
  7864. null.wc()
  7865. }
  7866. y.clear();
  7867. l = !1
  7868. }
  7869. };
  7870. r.prototype.xq = function(a) {
  7871. return jb(this.hn, a)
  7872. };
  7873. r.prototype.yq =
  7874. function() {
  7875. return !0
  7876. };
  7877. r.prototype.Af = function() {
  7878. return !0
  7879. };
  7880. t.k = new r;
  7881. u.prototype.mr = function() {
  7882. this.Dd = !1
  7883. };
  7884. u.prototype.lr = function(a) {
  7885. this.Dd = !0;
  7886. this.gd = this.Pc.X;
  7887. 1 === a && 0 !== this.A && (this.Bg = 0, this.Vg || this.Ek());
  7888. this.Ze || (this.b.pg(this), this.Ze = !0)
  7889. };
  7890. u.prototype.Zq = function(a, b) {
  7891. this.hi = a;
  7892. this.sn = b;
  7893. this.Ze || (this.b.pg(this), this.Ze = !0);
  7894. this.Vg || this.zn()
  7895. };
  7896. u.prototype.$q = function(a) {
  7897. this.Bg = a;
  7898. this.Ze || (this.b.pg(this), this.Ze = !0);
  7899. this.Vg || this.Ek()
  7900. };
  7901. u.prototype.Ym = function(a) {
  7902. var b = this.nc,
  7903. c = b.width *
  7904. a * (0 > this.width ? -1 : 1);
  7905. a = b.height * a * (0 > this.height ? -1 : 1);
  7906. if (this.width !== c || this.height !== a) this.width = c, this.height = a, this.T()
  7907. };
  7908. t.F = new u;
  7909. t.xa = new function() {}
  7910. })();
  7911. function nc(k) {
  7912. this.b = k
  7913. }
  7914. (function() {
  7915. function k(a, b) {
  7916. return a.length ? a.pop() : new b
  7917. }
  7918. function r(a, b, d) {
  7919. if (d) {
  7920. var f;
  7921. d = 0;
  7922. for (f = b.length; d < f; d++) a.length < u && a.push(b[d]);
  7923. b.length = 0
  7924. } else
  7925. for (f in b) Object.prototype.hasOwnProperty.call(b, f) && (a.length < u && a.push(b[f]), delete b[f])
  7926. }
  7927. function a(a, b, d) {
  7928. var f = a.Hb;
  7929. d = d.replace(/\s\s*$/, "");
  7930. b >= f.length && f.push(k(t, Object));
  7931. b = f[b];
  7932. b.text = d;
  7933. b.width = a.Fl(d);
  7934. a.Yd = oa(a.Yd, b.width)
  7935. }
  7936. function b() {}
  7937. function s() {}
  7938. var g = nc.prototype;
  7939. g.W = function() {};
  7940. g.Fa = function(a) {
  7941. this.qa = a;
  7942. this.b = a.b
  7943. };
  7944. var d = g.Fa.prototype;
  7945. d.W = function() {
  7946. this.K || (this.Aa = new Image, this.b.$p(this.Aa, this.wm), this.Ka = null)
  7947. };
  7948. d.mj = function() {
  7949. this.K || (this.Ka = null)
  7950. };
  7951. d.Ql = function() {
  7952. if (!this.K && this.d.length) {
  7953. this.Ka || (this.Ka = this.b.u.ej(this.Aa, this.b.ca, this.xm));
  7954. var a, b;
  7955. a = 0;
  7956. for (b = this.d.length; a < b; a++) this.d[a].Ka = this.Ka
  7957. }
  7958. };
  7959. d.Cm = function() {
  7960. this.K || this.d.length || !this.Ka || (this.b.u.deleteTexture(this.Ka), this.Ka = null)
  7961. };
  7962. d.Yl = function(a) {
  7963. a.drawImage(this.Aa, 0, 0)
  7964. };
  7965. g.wa = function(a) {
  7966. this.type = a;
  7967. this.b = a.b
  7968. };
  7969. d = g.wa.prototype;
  7970. d.fg = function() {
  7971. r(t,
  7972. this.Hb, !0);
  7973. r(n, this.ji, !1);
  7974. r(f, this.ki, !1);
  7975. Xa(this.le)
  7976. };
  7977. d.W = function() {
  7978. this.Aa = this.type.Aa;
  7979. this.ii = this.C[0];
  7980. this.ke = this.C[1];
  7981. this.characterSet = this.C[2];
  7982. this.text = this.C[3];
  7983. this.dd = this.C[4];
  7984. this.visible = 0 === this.C[5];
  7985. this.Te = this.C[6] / 2;
  7986. this.wf = this.C[7] / 2;
  7987. this.Xh = 0 === this.C[9];
  7988. this.Ff = this.C[10];
  7989. this.lineHeight = this.C[11];
  7990. this.wd = this.Yd = 0;
  7991. this.ec ? (this.Hb.length = 0, Xa(this.ji), Xa(this.ki), Xa(this.le)) : (this.Hb = [], this.ji = {}, this.ki = {}, this.le = {});
  7992. this.ic = !0;
  7993. this.ff = this.width;
  7994. this.b.u && (this.type.Ka ||
  7995. (this.type.Ka = this.b.u.ej(this.type.Aa, this.b.ca, this.type.xm)), this.Ka = this.type.Ka);
  7996. this.kr()
  7997. };
  7998. d.Bb = function() {
  7999. var a = {
  8000. t: this.text,
  8001. csc: this.dd,
  8002. csp: this.Ff,
  8003. lh: this.lineHeight,
  8004. tw: this.Yd,
  8005. th: this.wd,
  8006. lrt: this.ef,
  8007. cw: {}
  8008. },
  8009. b;
  8010. for (b in this.le) a.cw[b] = this.le[b];
  8011. return a
  8012. };
  8013. d.Ob = function(a) {
  8014. this.text = a.t;
  8015. this.dd = a.csc;
  8016. this.Ff = a.csp;
  8017. this.lineHeight = a.lh;
  8018. this.Yd = a.tw;
  8019. this.wd = a.th;
  8020. this.ef = a.lrt;
  8021. for (var b in a.cw) this.le[b] = a.cw[b];
  8022. this.ic = !0;
  8023. this.ff = this.width
  8024. };
  8025. var u = 1E3,
  8026. t = [],
  8027. n = [],
  8028. f = [];
  8029. d.kr = function() {
  8030. for (var a =
  8031. this.Aa, b = a.width, d = a.height, a = this.ii, g = this.ke, p = a / b, t = g / d, c = this.characterSet, b = Math.floor(b / a), d = Math.floor(d / g), e = 0; e < c.length && !(e >= b * d); e++) {
  8032. var m = e % b,
  8033. v = Math.floor(e / b),
  8034. r = c.charAt(e);
  8035. if (this.b.u) {
  8036. var s = this.ki,
  8037. u = m * p,
  8038. x = v * t,
  8039. m = (m + 1) * p,
  8040. v = (v + 1) * t;
  8041. void 0 === s[r] && (s[r] = k(f, T));
  8042. s[r].left = u;
  8043. s[r].top = x;
  8044. s[r].right = m;
  8045. s[r].bottom = v
  8046. } else s = this.ji, m *= a, v *= g, u = a, x = g, void 0 === s[r] && (s[r] = k(n, Object)), s[r].x = m, s[r].y = v, s[r].Zp = u, s[r].Tn = x
  8047. }
  8048. };
  8049. var p = [];
  8050. g.jk = function(a) {
  8051. p.length = 0;
  8052. for (var b = "", d, f = 0; f < a.length;)
  8053. if (d =
  8054. a.charAt(f), "\n" === d) b.length && (p.push(b), b = ""), p.push("\n"), ++f;
  8055. else if (" " === d || "\t" === d || "-" === d) {
  8056. do b += a.charAt(f), f++; while (f < a.length && (" " === a.charAt(f) || "\t" === a.charAt(f)));
  8057. p.push(b);
  8058. b = ""
  8059. } else f < a.length && (b += d, f++);
  8060. b.length && p.push(b)
  8061. };
  8062. g.kk = function(a) {
  8063. var b = a.text,
  8064. d = a.Hb;
  8065. if (b && b.length) {
  8066. var f = a.width;
  8067. if (2 >= f) r(t, d, !0);
  8068. else {
  8069. var g = a.dd,
  8070. n = a.Ff;
  8071. if (b.length * (a.ii * g + n) - n <= f && -1 === b.indexOf("\n") && (n = a.Fl(b), n <= f)) {
  8072. r(t, d, !0);
  8073. d.push(k(t, Object));
  8074. d[0].text = b;
  8075. d[0].width = n;
  8076. a.Yd = n;
  8077. a.wd = a.ke * g + a.lineHeight;
  8078. return
  8079. }
  8080. this.lk(a);
  8081. a.wd = d.length * (a.ke * g + a.lineHeight)
  8082. }
  8083. } else r(t, d, !0)
  8084. };
  8085. g.lk = function(b) {
  8086. var d = b.Xh,
  8087. f = b.text,
  8088. g = b.Hb,
  8089. k = b.width;
  8090. d && (this.jk(f), f = p);
  8091. var n = "",
  8092. c, e, m, v = 0,
  8093. r = !1;
  8094. for (m = 0; m < f.length; m++) "\n" === f[m] ? (!0 === r ? r = !1 : (a(b, v, n), v++), n = "") : (r = !1, c = n, n += f[m], e = b.Fl(n.replace(/\s\s*$/, "")), e > k && ("" === c ? (a(b, v, n), n = "", r = !0) : (a(b, v, c), n = f[m]), v++, d || " " !== n || (n = "")));
  8095. n.replace(/\s\s*$/, "").length && (a(b, v, n), v++);
  8096. for (m = v; m < g.length; m++) t.length < u && t.push(g[m]);
  8097. g.length = v
  8098. };
  8099. d.Fl = function(a) {
  8100. for (var b = this.Ff,
  8101. d = a.length, f = 0, g = 0; g < d; g++) f += this.Sk(a.charAt(g)) * this.dd + b;
  8102. return f - (0 < f ? b : 0)
  8103. };
  8104. d.Sk = function(a) {
  8105. var b = this.le;
  8106. return void 0 !== b[a] ? b[a] : this.ii
  8107. };
  8108. d.pp = function() {
  8109. if (this.ic || this.width !== this.ff) this.wd = this.Yd = 0, this.type.qa.kk(this), this.ic = !1, this.ff = this.width
  8110. };
  8111. d.ed = function(a) {
  8112. var b = this.Aa;
  8113. if ("" !== this.text && null != b && (this.pp(), !(this.height < this.ke * this.dd + this.lineHeight))) {
  8114. a.globalAlpha = this.opacity;
  8115. var b = this.x,
  8116. d = this.y;
  8117. this.b.rd && (b = Math.round(b), d = Math.round(d));
  8118. var f = this.i.Ba,
  8119. g = this.i.Ca,
  8120. k = this.i.Ja,
  8121. c = this.i.Ia;
  8122. a.save();
  8123. a.translate(b, d);
  8124. a.rotate(this.j);
  8125. for (var e = this.Te, m = this.dd, n = this.ke * m, p = this.lineHeight, t = this.Ff, r = this.Hb, s, z = -(this.Mb * this.width), u = -(this.Nb * this.height), u = u + this.wf * oa(0, this.height - this.wd), x, H, M, C = 0; C < r.length; C++) {
  8126. var L = r[C].text;
  8127. s = e * oa(0, this.width - r[C].width);
  8128. x = z + s;
  8129. u += p;
  8130. if (d + u + n < g) u += n;
  8131. else {
  8132. for (var B = 0; B < L.length; B++) {
  8133. H = L.charAt(B);
  8134. s = this.Sk(H);
  8135. var D = this.ji[H];
  8136. if (b + x + s * m + t < f) x += s * m + t;
  8137. else {
  8138. if (x + s * m > this.width + 1E-5) break;
  8139. void 0 !== D && (H = x, M = u, 0 === this.j &&
  8140. (H = Math.round(H), M = Math.round(M)), a.drawImage(this.Aa, D.x, D.y, D.Zp, D.Tn, H, M, D.Zp * m, D.Tn * m));
  8141. x += s * m + t;
  8142. if (b + x > k) break
  8143. }
  8144. }
  8145. u += n;
  8146. if (u + n + p > this.height || d + u > c) break
  8147. }
  8148. }
  8149. a.restore()
  8150. }
  8151. };
  8152. var x = new ua;
  8153. d.Cc = function(a) {
  8154. a.gc(this.Ka);
  8155. a.pf(this.opacity);
  8156. if (this.text && (this.pp(), !(this.height < this.ke * this.dd + this.lineHeight))) {
  8157. this.na();
  8158. var b = this.Db,
  8159. d = 0,
  8160. f = 0;
  8161. this.b.rd && (d = Math.round(this.x) - this.x, f = Math.round(this.y) - this.y);
  8162. var g = this.i.Ba,
  8163. k = this.i.Ca,
  8164. c = this.i.Ja,
  8165. e = this.i.Ia,
  8166. m = this.j,
  8167. n = this.Te,
  8168. p = this.wf,
  8169. t = this.dd,
  8170. r =
  8171. this.ke * t,
  8172. s = this.lineHeight,
  8173. z = this.Ff,
  8174. u = this.Hb,
  8175. P = this.wd,
  8176. H, M, C;
  8177. 0 !== m && (M = Math.cos(m), C = Math.sin(m));
  8178. for (var d = b.ta + d, b = b.ua + f, L, p = p * oa(0, this.height - P), B, D, P = 0; P < u.length; P++)
  8179. if (f = u[P].text, L = H = n * oa(0, this.width - u[P].width), p += s, 0 === m && b + p + r < k) p += r;
  8180. else {
  8181. for (var N = 0; N < f.length; N++) {
  8182. var F = f.charAt(N);
  8183. H = this.Sk(F);
  8184. F = this.ki[F];
  8185. if (d + L + H * t + z < g) L += H * t + z;
  8186. else {
  8187. if (L + H * t > this.width + 1E-5) break;
  8188. if (void 0 !== F) {
  8189. var I = this.ii * t,
  8190. G = this.ke * t;
  8191. B = L;
  8192. D = p;
  8193. 0 === m && (B = Math.round(B), D = Math.round(D));
  8194. x.ta = B;
  8195. x.ua = D;
  8196. x.ib = B + I;
  8197. x.jb = D;
  8198. x.Wa = B;
  8199. x.Xa = D + G;
  8200. x.Ya = B + I;
  8201. x.Za = D + G;
  8202. 0 !== m && (B = x, D = M, I = C, G = void 0, G = B.ta * D - B.ua * I, B.ua = B.ua * D + B.ta * I, B.ta = G, G = B.ib * D - B.jb * I, B.jb = B.jb * D + B.ib * I, B.ib = G, G = B.Wa * D - B.Xa * I, B.Xa = B.Xa * D + B.Wa * I, B.Wa = G, G = B.Ya * D - B.Za * I, B.Za = B.Za * D + B.Ya * I, B.Ya = G);
  8203. x.offset(d, b);
  8204. a.Ud(x.ta, x.ua, x.ib, x.jb, x.Ya, x.Za, x.Wa, x.Xa, F)
  8205. }
  8206. L += H * t + z;
  8207. if (0 === m && d + L > c) break
  8208. }
  8209. }
  8210. p += r;
  8211. if (p + r + s > this.height || b + p > e) break
  8212. }
  8213. }
  8214. };
  8215. g.k = new function() {};
  8216. b.prototype.ik = function(a) {
  8217. ia(a) && 1E9 > a && (a = Math.round(1E10 * a) / 1E10);
  8218. a = a.toString();
  8219. this.text !== a && (this.text =
  8220. a, this.ic = !0, this.b.aa = !0)
  8221. };
  8222. b.prototype.Ym = function(a) {
  8223. a !== this.dd && (this.dd = a, this.ic = !0, this.b.aa = !0)
  8224. };
  8225. d.Pv = function(a, b) {
  8226. var d = parseInt(b, 10);
  8227. this.le[a] !== d && (this.le[a] = d, this.ic = !0, this.b.aa = !0)
  8228. };
  8229. g.F = new b;
  8230. s.prototype.Text = function(a) {
  8231. a.Pa(this.text)
  8232. };
  8233. g.xa = new s
  8234. })();
  8235. function oc(k) {
  8236. this.b = k
  8237. }
  8238. (function() {
  8239. function k() {
  8240. return u.length ? u.pop() : {}
  8241. }
  8242. function r(a) {
  8243. var b, d;
  8244. b = 0;
  8245. for (d = a.length; b < d; b++) u.push(a[b]);
  8246. a.length = 0
  8247. }
  8248. function a() {}
  8249. function b() {}
  8250. var s = oc.prototype;
  8251. s.W = function() {
  8252. s.F.ir = function(a) {
  8253. this.width !== a && (this.width = a, this.ic = !0, this.T())
  8254. }
  8255. };
  8256. s.Fa = function(a) {
  8257. this.qa = a;
  8258. this.b = a.b
  8259. };
  8260. var g = s.Fa.prototype;
  8261. g.W = function() {};
  8262. g.mj = function() {
  8263. if (!this.K) {
  8264. var a, b, d;
  8265. a = 0;
  8266. for (b = this.d.length; a < b; a++) d = this.d[a], d.nd = null, d.mf = null, d.ac = null
  8267. }
  8268. };
  8269. s.wa = function(a) {
  8270. this.type = a;
  8271. this.b = a.b;
  8272. this.ec ? this.Hb.length =
  8273. 0 : this.Hb = [];
  8274. this.ic = !0
  8275. };
  8276. g = s.wa.prototype;
  8277. g.W = function() {
  8278. this.text = this.C[0];
  8279. this.visible = 0 === this.C[1];
  8280. this.font = this.C[2];
  8281. this.color = this.C[3];
  8282. this.Te = this.C[4];
  8283. this.wf = this.C[5];
  8284. this.Xh = 0 === this.C[7];
  8285. this.ff = this.Zi = this.width;
  8286. this.Yi = this.height;
  8287. this.yl = this.C[8];
  8288. this.Fi = this.If = "";
  8289. this.wd = this.Yd = this.Dh = 0;
  8290. this.eu();
  8291. this.ac = this.mf = this.nd = null;
  8292. this.Oo = !1;
  8293. this.ef = this.b.xd;
  8294. this.ec ? this.hg.set(0, 0, 1, 1) : this.hg = new T(0, 0, 1, 1);
  8295. this.b.u && this.b.pg(this)
  8296. };
  8297. g.eu = function() {
  8298. var a = this.font.split(" "),
  8299. b;
  8300. for (b = 0; b < a.length; b++)
  8301. if ("pt" === a[b].substr(a[b].length - 2, 2)) {
  8302. this.Dh = parseInt(a[b].substr(0, a[b].length - 2));
  8303. this.$l = Math.ceil(this.Dh / 72 * 96) + 4;
  8304. 0 < b && (this.Fi = a[b - 1]);
  8305. this.If = a[b + 1];
  8306. for (b += 2; b < a.length; b++) this.If += " " + a[b];
  8307. break
  8308. }
  8309. };
  8310. g.Bb = function() {
  8311. return {
  8312. t: this.text,
  8313. f: this.font,
  8314. c: this.color,
  8315. ha: this.Te,
  8316. va: this.wf,
  8317. wr: this.Xh,
  8318. lho: this.yl,
  8319. fn: this.If,
  8320. fs: this.Fi,
  8321. ps: this.Dh,
  8322. pxh: this.$l,
  8323. tw: this.Yd,
  8324. th: this.wd,
  8325. lrt: this.ef
  8326. }
  8327. };
  8328. g.Ob = function(a) {
  8329. this.text = a.t;
  8330. this.font = a.f;
  8331. this.color = a.c;
  8332. this.Te = a.ha;
  8333. this.wf =
  8334. a.va;
  8335. this.Xh = a.wr;
  8336. this.yl = a.lho;
  8337. this.If = a.fn;
  8338. this.Fi = a.fs;
  8339. this.Dh = a.ps;
  8340. this.$l = a.pxh;
  8341. this.Yd = a.tw;
  8342. this.wd = a.th;
  8343. this.ef = a.lrt;
  8344. this.ic = !0;
  8345. this.ff = this.Zi = this.width;
  8346. this.Yi = this.height
  8347. };
  8348. g.qb = function() {
  8349. if (this.b.u && this.ac && 300 <= this.b.xd - this.ef) {
  8350. var a = this.i;
  8351. this.na();
  8352. var b = this.La;
  8353. if (b.right < a.Ba || b.bottom < a.Ca || b.left > a.Ja || b.top > a.Ia) this.b.u.deleteTexture(this.ac), this.nd = this.mf = this.ac = null
  8354. }
  8355. };
  8356. g.fg = function() {
  8357. this.nd = this.mf = null;
  8358. this.b.u && this.ac && this.b.u.deleteTexture(this.ac);
  8359. this.ac = null
  8360. };
  8361. g.ww = function() {
  8362. this.font = this.Fi + " " + this.Dh.toString() + "pt " + this.If;
  8363. this.ic = !0;
  8364. this.b.aa = !0
  8365. };
  8366. g.ed = function(a, b) {
  8367. a.font = this.font;
  8368. a.textBaseline = "top";
  8369. a.fillStyle = this.color;
  8370. a.globalAlpha = b ? 1 : this.opacity;
  8371. var d = 1;
  8372. b && (d = this.i.qc(), a.save(), a.scale(d, d));
  8373. if (this.ic || this.width !== this.ff) this.type.qa.kk(this.text, this.Hb, a, this.width, this.Xh), this.ic = !1, this.ff = this.width;
  8374. this.na();
  8375. var d = b ? 0 : this.Db.ta,
  8376. g = b ? 0 : this.Db.ua;
  8377. this.b.rd && (d = d + .5 | 0, g = g + .5 | 0);
  8378. 0 === this.j || b || (a.save(), a.translate(d, g), a.rotate(this.j),
  8379. g = d = 0);
  8380. var k = g + this.height,
  8381. h = this.$l,
  8382. h = h + this.yl,
  8383. r, s;
  8384. 1 === this.wf ? g += Math.max(this.height / 2 - this.Hb.length * h / 2, 0) : 2 === this.wf && (g += Math.max(this.height - this.Hb.length * h - 2, 0));
  8385. for (s = 0; s < this.Hb.length && !(r = d, 1 === this.Te ? r = d + (this.width - this.Hb[s].width) / 2 : 2 === this.Te && (r = d + (this.width - this.Hb[s].width)), a.fillText(this.Hb[s].text, r, g), g += h, g >= k - h); s++);
  8386. (0 !== this.j || b) && a.restore();
  8387. this.ef = this.b.xd
  8388. };
  8389. g.Cc = function(a) {
  8390. if (!(1 > this.width || 1 > this.height)) {
  8391. var b = this.ic || this.Oo;
  8392. this.Oo = !1;
  8393. var d = this.i.qc(),
  8394. g = this.i.Ta(),
  8395. k = this.hg,
  8396. h = d * this.width,
  8397. r = d * this.height,
  8398. s = Math.ceil(h),
  8399. l = Math.ceil(r),
  8400. q = this.b.O / 2,
  8401. u = this.b.N / 2;
  8402. this.mf || (this.nd = document.createElement("canvas"), this.nd.width = s, this.nd.height = l, this.Zi = s, this.Yi = l, b = !0, this.mf = this.nd.getContext("2d"));
  8403. if (s !== this.Zi || l !== this.Yi) this.nd.width = s, this.nd.height = l, this.ac && (a.deleteTexture(this.ac), this.ac = null), b = !0;
  8404. b && (this.mf.clearRect(0, 0, s, l), this.ed(this.mf, !0), this.ac || (this.ac = a.Hd(s, l, this.b.ca, this.b.ld)), a.av(this.nd, this.ac, this.b.ld));
  8405. this.Zi = s;
  8406. this.Yi = l;
  8407. a.gc(this.ac);
  8408. a.pf(this.opacity);
  8409. a.sd();
  8410. a.translate(-q, -u);
  8411. a.zd();
  8412. var c = this.Db,
  8413. b = this.i.Ea(c.ta, c.ua, !0, !0),
  8414. q = this.i.Ea(c.ta, c.ua, !1, !0),
  8415. u = this.i.Ea(c.ib, c.jb, !0, !0),
  8416. e = this.i.Ea(c.ib, c.jb, !1, !0),
  8417. m = this.i.Ea(c.Ya, c.Za, !0, !0),
  8418. v = this.i.Ea(c.Ya, c.Za, !1, !0),
  8419. K = this.i.Ea(c.Wa, c.Xa, !0, !0),
  8420. c = this.i.Ea(c.Wa, c.Xa, !1, !0);
  8421. if (this.b.rd || 0 === this.j && 0 === g) var E = (b + .5 | 0) - b,
  8422. Q = (q + .5 | 0) - q,
  8423. b = b + E,
  8424. q = q + Q,
  8425. u = u + E,
  8426. e = e + Q,
  8427. m = m + E,
  8428. v = v + Q,
  8429. K = K + E,
  8430. c = c + Q;
  8431. 0 === this.j && 0 === g ? (u = b + s, e = q, m = u, v = q + l, K = b, c = v, k.right = 1, k.bottom =
  8432. 1) : (k.right = h / s, k.bottom = r / l);
  8433. a.Ud(b, q, u, e, m, v, K, c, k);
  8434. a.sd();
  8435. a.scale(d, d);
  8436. a.gm(-this.i.Ta());
  8437. a.translate((this.i.Ba + this.i.Ja) / -2, (this.i.Ca + this.i.Ia) / -2);
  8438. a.zd();
  8439. this.ef = this.b.xd
  8440. }
  8441. };
  8442. var d = [];
  8443. s.jk = function(a) {
  8444. d.length = 0;
  8445. for (var b = "", f, g = 0; g < a.length;)
  8446. if (f = a.charAt(g), "\n" === f) b.length && (d.push(b), b = ""), d.push("\n"), ++g;
  8447. else if (" " === f || "\t" === f || "-" === f) {
  8448. do b += a.charAt(g), g++; while (g < a.length && (" " === a.charAt(g) || "\t" === a.charAt(g)));
  8449. d.push(b);
  8450. b = ""
  8451. } else g < a.length && (b += f, g++);
  8452. b.length && d.push(b)
  8453. };
  8454. var u = [];
  8455. s.kk = function(a, b, d, g, s) {
  8456. if (a && a.length)
  8457. if (2 >= g) r(b);
  8458. else {
  8459. if (100 >= a.length && -1 === a.indexOf("\n")) {
  8460. var h = d.measureText(a).width;
  8461. if (h <= g) {
  8462. r(b);
  8463. b.push(k());
  8464. b[0].text = a;
  8465. b[0].width = h;
  8466. return
  8467. }
  8468. }
  8469. this.lk(a, b, d, g, s)
  8470. } else r(b)
  8471. };
  8472. s.lk = function(a, b, f, g, r) {
  8473. r && (this.jk(a), a = d);
  8474. var h = "",
  8475. s, y, l, q = 0;
  8476. console.log(a,b,f,g,r);
  8477. //updateShare(play68Score);
  8478. //Play68.setRankingScoreDesc(play68Score);
  8479. for (l = 0; l < a.length; l++) "\n" === a[l] ? (q >= b.length && b.push(k()), y = b[q], y.text = h, y.width = f.measureText(h).width, q++, h = "") : (s = h, h += a[l], y = f.measureText(h).width, y >= g && (q >= b.length && b.push(k()), y = b[q], y.text = s, y.width =
  8480. f.measureText(s).width, q++, h = a[l], r || " " !== h || (h = "")));
  8481. h.length && (q >= b.length && b.push(k()), y = b[q], y.text = h, y.width = f.measureText(h).width, q++);
  8482. for (l = q; l < b.length; l++) u.push(b[l]);
  8483. b.length = q
  8484. };
  8485. s.k = new function() {};
  8486. a.prototype.ik = function(a) {
  8487. ia(a) && 1E9 > a && (a = Math.round(1E10 * a) / 1E10);
  8488. a = a.toString();
  8489. this.text !== a && (this.text = a, this.ic = !0, this.b.aa = !0)
  8490. };
  8491. s.F = new a;
  8492. b.prototype.Text = function(a) {
  8493. a.Pa(this.text)
  8494. };
  8495. s.xa = new b
  8496. })();
  8497. function Z(k) {
  8498. this.b = k
  8499. }
  8500. (function() {
  8501. function k(a) {
  8502. n = a.x;
  8503. f = a.y;
  8504. p = a.z
  8505. }
  8506. function r(a) {
  8507. x = a.x;
  8508. h = a.y;
  8509. w = a.z
  8510. }
  8511. function a(a, c, d, f) {
  8512. var g;
  8513. g = y.length ? y.pop() : new b;
  8514. g.init(a, c, d, f);
  8515. return g
  8516. }
  8517. function b() {
  8518. this.Nh = this.id = this.hf = this.gf = this.y = this.x = this.Oj = this.Nj = this.wl = this.time = this.tm = 0;
  8519. this.Th = this.Xj = !1
  8520. }
  8521. function s() {}
  8522. function g() {}
  8523. var d = Z.prototype;
  8524. d.Fa = function(a) {
  8525. this.qa = a;
  8526. this.b = a.b
  8527. };
  8528. d.Fa.prototype.W = function() {};
  8529. d.wa = function(a) {
  8530. this.type = a;
  8531. this.b = a.b;
  8532. this.touches = [];
  8533. this.Hl = !1
  8534. };
  8535. var u = d.wa.prototype,
  8536. t = {
  8537. left: 0,
  8538. top: 0
  8539. };
  8540. u.Kg = function(a) {
  8541. var b,
  8542. c;
  8543. b = 0;
  8544. for (c = this.touches.length; b < c; b++)
  8545. if (this.touches[b].id === a) return b;
  8546. return -1
  8547. };
  8548. var n = 0,
  8549. f = 0,
  8550. p = 0,
  8551. x = 0,
  8552. h = 0,
  8553. w = 0,
  8554. y = [];
  8555. b.prototype.init = function(a, b, c, d) {
  8556. var f = Ya();
  8557. this.tm = this.wl = this.time = f;
  8558. this.Nj = a;
  8559. this.Oj = b;
  8560. this.x = a;
  8561. this.y = b;
  8562. this.gf = a;
  8563. this.hf = b;
  8564. this.id = c;
  8565. this.Nh = d;
  8566. this.Th = this.Xj = !1
  8567. };
  8568. b.prototype.update = function(a, b, c) {
  8569. this.wl = this.time;
  8570. this.time = a;
  8571. this.gf = this.x;
  8572. this.hf = this.y;
  8573. this.x = b;
  8574. this.y = c;
  8575. !this.Th && 15 <= Ua(this.Nj, this.Oj, this.x, this.y) && (this.Th = !0)
  8576. };
  8577. b.prototype.St = function(a, b) {
  8578. !this.Xj &&
  8579. 500 <= Ya() - this.tm && !this.Th && 15 > Ua(this.Nj, this.Oj, this.x, this.y) && (this.Xj = !0, a.yd = this.Nh, a.qg = this.id, a.Lf = b, a.b.trigger(Z.prototype.k.Gq, a), a.Jd = this.x, a.Kd = this.y, a.b.trigger(Z.prototype.k.Hq, a), a.Lf = 0)
  8580. };
  8581. var l = -1E3,
  8582. q = -1E3,
  8583. A = -1E4;
  8584. b.prototype.Io = function(a, b) {
  8585. if (!this.Xj) {
  8586. var c = Ya();
  8587. 333 >= c - this.tm && !this.Th && 15 > Ua(this.Nj, this.Oj, this.x, this.y) && (a.yd = this.Nh, a.qg = this.id, a.Lf = b, 666 >= c - A && 25 > Ua(l, q, this.x, this.y) ? (a.b.trigger(Z.prototype.k.Eq, a), a.Jd = this.x, a.Kd = this.y, a.b.trigger(Z.prototype.k.Fq,
  8588. a), q = l = -1E3, A = -1E4) : (a.b.trigger(Z.prototype.k.Tq, a), a.Jd = this.x, a.Kd = this.y, a.b.trigger(Z.prototype.k.Uq, a), l = this.x, q = this.y, A = c), a.Lf = 0)
  8589. }
  8590. };
  8591. u.W = function() {
  8592. this.Jt = !("undefined" === typeof window.c2isWindows8 || !window.c2isWindows8);
  8593. this.Lf = this.qg = this.yd = this.Kd = this.Jd = this.bn = this.an = this.$m = this.ur = this.tr = this.sr = this.yh = this.xh = this.wh = 0;
  8594. this.Zu = 0 !== this.C[0];
  8595. var a = 0 < this.b.Xb ? document : this.b.canvas,
  8596. b = document;
  8597. this.b.tb ? b = a = window.Canvas : this.b.rc && (b = a = window);
  8598. var c = this;
  8599. window.navigator.pointerEnabled ?
  8600. (a.addEventListener("pointerdown", function(a) {
  8601. c.Xo(a)
  8602. }, !1), a.addEventListener("pointermove", function(a) {
  8603. c.Wo(a)
  8604. }, !1), b.addEventListener("pointerup", function(a) {
  8605. c.nj(a, !1)
  8606. }, !1), b.addEventListener("pointercancel", function(a) {
  8607. c.nj(a, !0)
  8608. }, !1), this.b.canvas && (this.b.canvas.addEventListener("MSGestureHold", function(a) {
  8609. a.preventDefault()
  8610. }, !1), document.addEventListener("MSGestureHold", function(a) {
  8611. a.preventDefault()
  8612. }, !1), this.b.canvas.addEventListener("gesturehold", function(a) {
  8613. a.preventDefault()
  8614. }, !1), document.addEventListener("gesturehold",
  8615. function(a) {
  8616. a.preventDefault()
  8617. }, !1))) : window.navigator.msPointerEnabled ? (a.addEventListener("MSPointerDown", function(a) {
  8618. c.Xo(a)
  8619. }, !1), a.addEventListener("MSPointerMove", function(a) {
  8620. c.Wo(a)
  8621. }, !1), b.addEventListener("MSPointerUp", function(a) {
  8622. c.nj(a, !1)
  8623. }, !1), b.addEventListener("MSPointerCancel", function(a) {
  8624. c.nj(a, !0)
  8625. }, !1), this.b.canvas && (this.b.canvas.addEventListener("MSGestureHold", function(a) {
  8626. a.preventDefault()
  8627. }, !1), document.addEventListener("MSGestureHold", function(a) {
  8628. a.preventDefault()
  8629. }, !1))) : (a.addEventListener("touchstart",
  8630. function(a) {
  8631. c.Zo(a)
  8632. }, !1), a.addEventListener("touchmove", function(a) {
  8633. c.Yo(a)
  8634. }, !1), b.addEventListener("touchend", function(a) {
  8635. c.Rl(a, !1)
  8636. }, !1), b.addEventListener("touchcancel", function(a) {
  8637. c.Rl(a, !0)
  8638. }, !1));
  8639. if (this.Jt) {
  8640. var d = function(a) {
  8641. a = a.reading;
  8642. c.$m = a.accelerationX;
  8643. c.an = a.accelerationY;
  8644. c.bn = a.accelerationZ
  8645. },
  8646. f = function(a) {
  8647. a = a.reading;
  8648. c.wh = a.yawDegrees;
  8649. c.xh = a.pitchDegrees;
  8650. c.yh = a.rollDegrees
  8651. },
  8652. g = Windows.Devices.Sensors.Accelerometer.getDefault();
  8653. g && (g.reportInterval = Math.max(g.minimumReportInterval, 16),
  8654. g.addEventListener("readingchanged", d));
  8655. var h = Windows.Devices.Sensors.Inclinometer.getDefault();
  8656. h && (h.reportInterval = Math.max(h.minimumReportInterval, 16), h.addEventListener("readingchanged", f));
  8657. document.addEventListener("visibilitychange", function() {
  8658. document.hidden || document.msHidden ? (g && g.removeEventListener("readingchanged", d), h && h.removeEventListener("readingchanged", f)) : (g && g.addEventListener("readingchanged", d), h && h.addEventListener("readingchanged", f))
  8659. }, !1)
  8660. } else window.addEventListener("deviceorientation",
  8661. function(a) {
  8662. c.wh = a.alpha || 0;
  8663. c.xh = a.beta || 0;
  8664. c.yh = a.gamma || 0
  8665. }, !1), window.addEventListener("devicemotion", function(a) {
  8666. a.accelerationIncludingGravity && (c.sr = a.accelerationIncludingGravity.x || 0, c.tr = a.accelerationIncludingGravity.y || 0, c.ur = a.accelerationIncludingGravity.z || 0);
  8667. a.acceleration && (c.$m = a.acceleration.x || 0, c.an = a.acceleration.y || 0, c.bn = a.acceleration.z || 0)
  8668. }, !1);
  8669. this.Zu && !this.b.ya && (jQuery(document).mousemove(function(a) {
  8670. c.au(a)
  8671. }), jQuery(document).mousedown(function(a) {
  8672. c.$t(a)
  8673. }), jQuery(document).mouseup(function(a) {
  8674. c.bu(a)
  8675. }));
  8676. this.b.Nf && !this.b.tb && AppMobi.accelerometer.watchAcceleration(k, {
  8677. frequency: 40,
  8678. adjustForRotation: !0
  8679. });
  8680. this.b.sc && navigator.accelerometer && navigator.accelerometer.watchAcceleration && navigator.accelerometer.watchAcceleration(r, null, {
  8681. frequency: 40
  8682. });
  8683. this.b.Qu(this)
  8684. };
  8685. u.Wo = function(a) {
  8686. if (a.pointerType !== a.MSPOINTER_TYPE_MOUSE && "mouse" !== a.pointerType) {
  8687. a.preventDefault && a.preventDefault();
  8688. var b = this.Kg(a.pointerId),
  8689. c = Ya();
  8690. if (0 <= b) {
  8691. var d = this.b.ya ? t : jQuery(this.b.canvas).offset(),
  8692. b = this.touches[b];
  8693. 2 > c - b.time ||
  8694. b.update(c, a.pageX - d.left, a.pageY - d.top)
  8695. }
  8696. }
  8697. };
  8698. u.Xo = function(b) {
  8699. if (b.pointerType !== b.MSPOINTER_TYPE_MOUSE && "mouse" !== b.pointerType) {
  8700. b.preventDefault && kb(b) && b.preventDefault();
  8701. var c = this.b.ya ? t : jQuery(this.b.canvas).offset(),
  8702. d = b.pageX - c.left,
  8703. c = b.pageY - c.top;
  8704. Ya();
  8705. this.yd = this.touches.length;
  8706. this.qg = b.pointerId;
  8707. this.touches.push(a(d, c, b.pointerId, this.yd));
  8708. this.b.Zb = !0;
  8709. this.b.trigger(Z.prototype.k.Um, this);
  8710. this.b.trigger(Z.prototype.k.Wm, this);
  8711. this.Jd = d;
  8712. this.Kd = c;
  8713. this.b.trigger(Z.prototype.k.hk, this);
  8714. this.b.Zb = !1
  8715. }
  8716. };
  8717. u.nj = function(a, b) {
  8718. if (a.pointerType !== a.MSPOINTER_TYPE_MOUSE && "mouse" !== a.pointerType) {
  8719. a.preventDefault && kb(a) && a.preventDefault();
  8720. var c = this.Kg(a.pointerId);
  8721. this.yd = 0 <= c ? this.touches[c].Nh : -1;
  8722. this.qg = 0 <= c ? this.touches[c].id : -1;
  8723. this.b.Zb = !0;
  8724. this.b.trigger(Z.prototype.k.Tm, this);
  8725. this.b.trigger(Z.prototype.k.Vm, this);
  8726. 0 <= c && (b || this.touches[c].Io(this, c), 100 > y.length && y.push(this.touches[c]), this.touches.splice(c, 1));
  8727. this.b.Zb = !1
  8728. }
  8729. };
  8730. u.Yo = function(a) {
  8731. a.preventDefault && a.preventDefault();
  8732. var b = Ya(),
  8733. c, d, f, g;
  8734. c = 0;
  8735. for (d = a.changedTouches.length; c < d; c++)
  8736. if (f = a.changedTouches[c], g = this.Kg(f.identifier), 0 <= g) {
  8737. var h = this.b.ya ? t : jQuery(this.b.canvas).offset();
  8738. g = this.touches[g];
  8739. 2 > b - g.time || g.update(b, f.pageX - h.left, f.pageY - h.top)
  8740. }
  8741. };
  8742. u.Zo = function(b) {
  8743. b.preventDefault && kb(b) && b.preventDefault();
  8744. var c = this.b.ya ? t : jQuery(this.b.canvas).offset();
  8745. Ya();
  8746. this.b.Zb = !0;
  8747. var d, f, g, h;
  8748. d = 0;
  8749. for (f = b.changedTouches.length; d < f; d++)
  8750. if (g = b.changedTouches[d], h = this.Kg(g.identifier), -1 === h) {
  8751. h = g.pageX - c.left;
  8752. var k = g.pageY -
  8753. c.top;
  8754. this.yd = this.touches.length;
  8755. this.qg = g.identifier;
  8756. this.touches.push(a(h, k, g.identifier, this.yd));
  8757. this.b.trigger(Z.prototype.k.Um, this);
  8758. this.b.trigger(Z.prototype.k.Wm, this);
  8759. this.Jd = h;
  8760. this.Kd = k;
  8761. this.b.trigger(Z.prototype.k.hk, this)
  8762. }
  8763. this.b.Zb = !1
  8764. };
  8765. u.Rl = function(a, b) {
  8766. a.preventDefault && kb(a) && a.preventDefault();
  8767. this.b.Zb = !0;
  8768. var c, d, f;
  8769. c = 0;
  8770. for (d = a.changedTouches.length; c < d; c++) f = a.changedTouches[c], f = this.Kg(f.identifier), 0 <= f && (this.yd = this.touches[f].Nh, this.qg = this.touches[f].id, this.b.trigger(Z.prototype.k.Tm,
  8771. this), this.b.trigger(Z.prototype.k.Vm, this), b || this.touches[f].Io(this, f), 100 > y.length && y.push(this.touches[f]), this.touches.splice(f, 1));
  8772. this.b.Zb = !1
  8773. };
  8774. u.hw = function() {
  8775. return this.b.Nf && 0 === this.wh && 0 !== p ? 90 * p : this.b.sc && 0 === this.wh && 0 !== w ? 90 * w : this.wh
  8776. };
  8777. u.iw = function() {
  8778. return this.b.Nf && 0 === this.xh && 0 !== f ? -90 * f : this.b.sc && 0 === this.xh && 0 !== h ? 90 * h : this.xh
  8779. };
  8780. u.lw = function() {
  8781. return this.b.Nf && 0 === this.yh && 0 !== n ? 90 * n : this.b.sc && 0 === this.yh && 0 !== x ? 90 * x : this.yh
  8782. };
  8783. u.$t = function(a) {
  8784. a.preventDefault && this.b.dl &&
  8785. !this.b.ld && a.preventDefault();
  8786. this.Zo({
  8787. changedTouches: [{
  8788. pageX: a.pageX,
  8789. pageY: a.pageY,
  8790. identifier: 0
  8791. }]
  8792. });
  8793. this.Hl = !0
  8794. };
  8795. u.au = function(a) {
  8796. this.Hl && this.Yo({
  8797. changedTouches: [{
  8798. pageX: a.pageX,
  8799. pageY: a.pageY,
  8800. identifier: 0
  8801. }]
  8802. })
  8803. };
  8804. u.bu = function(a) {
  8805. a.preventDefault && this.b.dl && !this.b.ld && a.preventDefault();
  8806. this.b.dl = !0;
  8807. this.Rl({
  8808. changedTouches: [{
  8809. pageX: a.pageX,
  8810. pageY: a.pageY,
  8811. identifier: 0
  8812. }]
  8813. });
  8814. this.Hl = !1
  8815. };
  8816. u.Rh = function() {
  8817. var a, b, c, d = Ya();
  8818. a = 0;
  8819. for (b = this.touches.length; a < b; ++a) c = this.touches[a], c.time <= d - 50 && (c.wl = d), c.St(this,
  8820. a)
  8821. };
  8822. s.prototype.Wm = function() {
  8823. return !0
  8824. };
  8825. s.prototype.Vm = function() {
  8826. return !0
  8827. };
  8828. s.prototype.hk = function(a) {
  8829. return a ? this.b.Qj(a, this.Jd, this.Kd) : !1
  8830. };
  8831. var c = [];
  8832. s.prototype.sq = function(a) {
  8833. if (!a) return !1;
  8834. var b = a.Y(),
  8835. d = b.pc(),
  8836. f, g, h, k, l, n;
  8837. h = 0;
  8838. for (k = d.length; h < k; h++) {
  8839. var p = d[h];
  8840. p.na();
  8841. l = 0;
  8842. for (n = this.touches.length; l < n; l++)
  8843. if (g = this.touches[l], f = p.i.Eb(g.x, g.y, !0), g = p.i.Eb(g.x, g.y, !1), p.yb(f, g)) {
  8844. c.push(p);
  8845. break
  8846. }
  8847. }
  8848. return c.length ? (b.fa = !1, Aa(b.d, c), a.wc(), c.length = 0, !0) : !1
  8849. };
  8850. s.prototype.Um = function(a) {
  8851. a = Math.floor(a);
  8852. return a === this.yd
  8853. };
  8854. s.prototype.Tm = function(a) {
  8855. a = Math.floor(a);
  8856. return a === this.yd
  8857. };
  8858. s.prototype.Gq = function() {
  8859. return !0
  8860. };
  8861. s.prototype.Tq = function() {
  8862. return !0
  8863. };
  8864. s.prototype.Eq = function() {
  8865. return !0
  8866. };
  8867. s.prototype.Hq = function(a) {
  8868. return a ? this.b.Qj(a, this.Jd, this.Kd) : !1
  8869. };
  8870. s.prototype.Uq = function(a) {
  8871. return a ? this.b.Qj(a, this.Jd, this.Kd) : !1
  8872. };
  8873. s.prototype.Fq = function(a) {
  8874. return a ? this.b.Qj(a, this.Jd, this.Kd) : !1
  8875. };
  8876. d.k = new s;
  8877. g.prototype.pr = function(a, b) {
  8878. var c = this.Lf;
  8879. if (0 > c || c >= this.touches.length) a.D(0);
  8880. else {
  8881. var d, f,
  8882. g, h, k;
  8883. ea(b) ? (d = this.b.Mg(0), f = d.scale, g = d.cd, h = d.Ic, k = d.j, d.scale = 1, d.cd = 1, d.Ic = 1, d.j = 0, a.D(d.Eb(this.touches[c].x, this.touches[c].y, !0)), d.scale = f, d.cd = g, d.Ic = h, d.j = k) : (d = ia(b) ? this.b.Mg(b) : this.b.Yk(b)) ? a.D(d.Eb(this.touches[c].x, this.touches[c].y, !0)) : a.D(0)
  8884. }
  8885. };
  8886. g.prototype.qr = function(a, b) {
  8887. var c = this.Lf;
  8888. if (0 > c || c >= this.touches.length) a.D(0);
  8889. else {
  8890. var d, f, g, h, k;
  8891. ea(b) ? (d = this.b.Mg(0), f = d.scale, g = d.cd, h = d.Jc, k = d.j, d.scale = 1, d.cd = 1, d.Jc = 1, d.j = 0, a.D(d.Eb(this.touches[c].x, this.touches[c].y, !1)), d.scale =
  8892. f, d.cd = g, d.Jc = h, d.j = k) : (d = ia(b) ? this.b.Mg(b) : this.b.Yk(b)) ? a.D(d.Eb(this.touches[c].x, this.touches[c].y, !1)) : a.D(0)
  8893. }
  8894. };
  8895. d.xa = new g
  8896. })();
  8897. function pc(k) {
  8898. this.b = k
  8899. }
  8900. (function() {
  8901. function k() {}
  8902. function r() {}
  8903. function a() {}
  8904. var b = pc.prototype;
  8905. b.Fa = function(a) {
  8906. this.qa = a;
  8907. this.b = a.b
  8908. };
  8909. b.Fa.prototype.W = function() {};
  8910. b.wa = function(a) {
  8911. this.type = a;
  8912. this.b = a.b
  8913. };
  8914. var s = b.wa.prototype,
  8915. g = "",
  8916. d = "undefined" !== typeof window.is_scirra_arcade;
  8917. d && (g = "arcade" + window.scirra_arcade_id);
  8918. s.W = function() {
  8919. "undefined" === typeof localStorage && J("[Construct 2] Webstorage plugin: local storage is not supported on this platform.");
  8920. "undefined" === typeof sessionStorage && J("[Construct 2] Webstorage plugin: session storage is not supported on this platform.")
  8921. };
  8922. k.prototype.vq = function(a) {
  8923. return "undefined" === typeof localStorage ? !1 : null != localStorage.getItem(g + a)
  8924. };
  8925. k.prototype.Qq = function() {
  8926. return !0
  8927. };
  8928. b.k = new k;
  8929. r.prototype.nr = function(a, b) {
  8930. if ("undefined" !== typeof localStorage) try {
  8931. localStorage.setItem(g + a, b);
  8932. if(g + a == 'HighScore'){
  8933. play68Score = b ;
  8934. };
  8935. } catch (d) {
  8936. this.b.trigger(pc.prototype.k.Qq, this)
  8937. }
  8938. };
  8939. b.F = new r;
  8940. a.prototype.wq = function(a, b) {
  8941. "undefined" === typeof localStorage ? a.Pa("") : a.Pa(localStorage.getItem(g + b) || "")
  8942. };
  8943. a.prototype.Mm = function(a) {
  8944. if ("undefined" === typeof localStorage) a.Pa("");
  8945. else {
  8946. var b = {},
  8947. k, f, p;
  8948. k = 0;
  8949. for (f = localStorage.length; k < f; k++) p = localStorage.key(k), d ? p.substr(0, g.length) === g && (b[p.substr(g.length)] = localStorage.getItem(p)) : b[p] = localStorage.getItem(p);
  8950. a.Pa(JSON.stringify({
  8951. c2dictionary: !0,
  8952. data: b
  8953. }))
  8954. }
  8955. };
  8956. b.xa = new a
  8957. })();
  8958. function qc(k) {
  8959. this.b = k
  8960. }
  8961. (function() {
  8962. function k() {}
  8963. var r = qc.prototype;
  8964. r.Fa = function(a) {
  8965. this.behavior = a;
  8966. this.b = a.b
  8967. };
  8968. r.Fa.prototype.W = function() {};
  8969. r.wa = function(a, k) {
  8970. this.type = a;
  8971. this.behavior = a.behavior;
  8972. this.q = k;
  8973. this.b = a.b
  8974. };
  8975. var a = r.wa.prototype;
  8976. a.W = function() {
  8977. var a = this.C[0];
  8978. this.Yh = this.C[1];
  8979. this.Lg = this.C[2];
  8980. this.Er = 0 !== this.C[3];
  8981. this.nm = 0 !== this.C[4];
  8982. this.Fb = Math.cos(this.q.j) * a;
  8983. this.rb = Math.sin(this.q.j) * a;
  8984. this.gf = this.q.x;
  8985. this.hf = this.q.y;
  8986. this.uc = this.q.j;
  8987. this.Wj = 0;
  8988. this.enabled = 0 !== this.C[5]
  8989. };
  8990. a.Bb = function() {
  8991. return {
  8992. acc: this.Yh,
  8993. g: this.Lg,
  8994. dx: this.Fb,
  8995. dy: this.rb,
  8996. lx: this.gf,
  8997. ly: this.hf,
  8998. lka: this.uc,
  8999. t: this.Wj,
  9000. e: this.enabled
  9001. }
  9002. };
  9003. a.Ob = function(a) {
  9004. this.Yh = a.acc;
  9005. this.Lg = a.g;
  9006. this.Fb = a.dx;
  9007. this.rb = a.dy;
  9008. this.gf = a.lx;
  9009. this.hf = a.ly;
  9010. this.uc = a.lka;
  9011. this.Wj = a.t;
  9012. this.enabled = a.e
  9013. };
  9014. a.qb = function() {
  9015. if (this.enabled) {
  9016. var a = this.b.Uk(this.q),
  9017. k, g;
  9018. this.q.j !== this.uc && (this.nm && (k = Ua(0, 0, this.Fb, this.rb), this.Fb = Math.cos(this.q.j) * k, this.rb = Math.sin(this.q.j) * k), this.uc = this.q.j);
  9019. 0 !== this.Yh && (k = Ua(0, 0, this.Fb, this.rb), g = 0 === this.Fb && 0 === this.rb ? this.q.j :
  9020. La(0, 0, this.Fb, this.rb), k += this.Yh * a, 0 > k && (k = 0), this.Fb = Math.cos(g) * k, this.rb = Math.sin(g) * k);
  9021. 0 !== this.Lg && (this.rb += this.Lg * a);
  9022. this.gf = this.q.x;
  9023. this.hf = this.q.y;
  9024. if (0 !== this.Fb || 0 !== this.rb)
  9025. if (this.q.x += this.Fb * a, this.q.y += this.rb * a, this.Wj += Ua(0, 0, this.Fb * a, this.rb * a), this.nm && (this.q.j = La(0, 0, this.Fb, this.rb), this.q.T(), this.uc = this.q.j), this.q.T(), this.Er && (k = this.b.uf(this.q))) this.b.uu(this.q, k), k = Ua(0, 0, this.Fb, this.rb), g = this.b.Hr(this.q, this.gf, this.hf), this.Fb = Math.cos(g) * k, this.rb = Math.sin(g) *
  9026. k, this.q.x += this.Fb * a, this.q.y += this.rb * a, this.q.T(), this.nm && (this.uc = this.q.j = g, this.q.T()), this.b.ru(this.q, this.Fb / k, this.rb / k, Math.max(2.5 * k * a, 30)) || this.b.su(this.q)
  9027. }
  9028. };
  9029. r.k = new function() {};
  9030. k.prototype.br = function(a) {
  9031. this.Lg = a
  9032. };
  9033. r.F = new k;
  9034. r.xa = new function() {}
  9035. })();
  9036. function rc(k) {
  9037. this.b = k
  9038. }
  9039. (function() {
  9040. function k() {}
  9041. var r = rc.prototype;
  9042. r.Fa = function(a) {
  9043. this.behavior = a;
  9044. this.b = a.b
  9045. };
  9046. r.Fa.prototype.W = function() {};
  9047. r.wa = function(a, k) {
  9048. this.type = a;
  9049. this.behavior = a.behavior;
  9050. this.q = k;
  9051. this.b = a.b
  9052. };
  9053. var a = r.wa.prototype;
  9054. a.W = function() {
  9055. this.ob = null;
  9056. this.pj = -1;
  9057. this.mode = this.uc = this.Rj = this.bg = this.Td = this.Bh = 0;
  9058. var a = this;
  9059. this.ec || (this.No = function(k) {
  9060. a.Ol(k)
  9061. });
  9062. this.b.mk(this.No)
  9063. };
  9064. a.Bb = function() {
  9065. return {
  9066. uid: this.ob ? this.ob.uid : -1,
  9067. pa: this.Bh,
  9068. pd: this.Td,
  9069. msa: this.bg,
  9070. tsa: this.Rj,
  9071. lka: this.uc,
  9072. m: this.mode
  9073. }
  9074. };
  9075. a.Ob = function(a) {
  9076. this.pj = a.uid;
  9077. this.Bh = a.pa;
  9078. this.Td = a.pd;
  9079. this.bg = a.msa;
  9080. this.Rj = a.tsa;
  9081. this.uc = a.lka;
  9082. this.mode = a.m
  9083. };
  9084. a.Cd = function() {
  9085. this.ob = -1 === this.pj ? null : this.b.Ng(this.pj);
  9086. this.pj = -1
  9087. };
  9088. a.Ol = function(a) {
  9089. this.ob == a && (this.ob = null)
  9090. };
  9091. a.fg = function() {
  9092. this.ob = null;
  9093. this.b.vu(this.No)
  9094. };
  9095. a.qb = function() {};
  9096. a.Rh = function() {
  9097. if (this.ob) {
  9098. this.uc !== this.q.j && (this.bg = Ia(this.bg + (this.q.j - this.uc)));
  9099. var a = this.q.x,
  9100. k = this.q.y;
  9101. if (3 === this.mode || 4 === this.mode) {
  9102. var g = Ua(this.q.x, this.q.y, this.ob.x, this.ob.y);
  9103. if (g > this.Td ||
  9104. 4 === this.mode && g < this.Td) k = La(this.ob.x, this.ob.y, this.q.x, this.q.y), a = this.ob.x + Math.cos(k) * this.Td, k = this.ob.y + Math.sin(k) * this.Td
  9105. } else a = this.ob.x + Math.cos(this.ob.j + this.Bh) * this.Td, k = this.ob.y + Math.sin(this.ob.j + this.Bh) * this.Td;
  9106. this.uc = g = Ia(this.bg + (this.ob.j - this.Rj));
  9107. 0 !== this.mode && 1 !== this.mode && 3 !== this.mode && 4 !== this.mode || this.q.x === a && this.q.y === k || (this.q.x = a, this.q.y = k, this.q.T());
  9108. 0 !== this.mode && 2 !== this.mode || this.q.j === g || (this.q.j = g, this.q.T())
  9109. }
  9110. };
  9111. r.k = new function() {};
  9112. k.prototype.Vq =
  9113. function(a, k) {
  9114. if (a) {
  9115. var g = a.Nn(this.q);
  9116. g && (this.ob = g, this.Bh = La(g.x, g.y, this.q.x, this.q.y) - g.j, this.Td = Ua(g.x, g.y, this.q.x, this.q.y), this.uc = this.bg = this.q.j, this.Rj = g.j, this.mode = k)
  9117. }
  9118. };
  9119. r.F = new k;
  9120. r.xa = new function() {}
  9121. })();
  9122. function sc(k) {
  9123. this.b = k;
  9124. this.Jj = this.Mh = this.rf = this.Ij = 0
  9125. }
  9126. (function() {
  9127. function k() {}
  9128. var r = sc.prototype;
  9129. r.Fa = function(a) {
  9130. this.behavior = a;
  9131. this.b = a.b
  9132. };
  9133. r.Fa.prototype.W = function() {};
  9134. r.wa = function(a, k) {
  9135. this.type = a;
  9136. this.behavior = a.behavior;
  9137. this.q = k;
  9138. this.b = a.b
  9139. };
  9140. var a = r.wa.prototype;
  9141. a.W = function() {
  9142. this.enabled = 0 !== this.C[0]
  9143. };
  9144. a.Bb = function() {
  9145. return {
  9146. smg: this.behavior.Ij,
  9147. ss: this.behavior.rf,
  9148. se: this.behavior.Mh,
  9149. smd: this.behavior.Jj
  9150. }
  9151. };
  9152. a.Ob = function(a) {
  9153. this.behavior.Ij = a.smg;
  9154. this.behavior.rf = a.ss;
  9155. this.behavior.Mh = a.se;
  9156. this.behavior.Jj = a.smd
  9157. };
  9158. a.qb = function() {};
  9159. a.Rh = function() {
  9160. if (this.enabled) {
  9161. var a =
  9162. this.behavior.jj.be(),
  9163. k = 0,
  9164. g = 0,
  9165. d, r, t, n = 0;
  9166. d = 0;
  9167. for (r = a.length; d < r; d++) {
  9168. a: {
  9169. t = a[d];
  9170. for (var f = void 0, p = void 0, x = void 0, f = 0, p = t.L.length; f < p; ++f)
  9171. if (x = t.L[f], x.behavior instanceof sc) {
  9172. t = x;
  9173. break a
  9174. }
  9175. t = null
  9176. }
  9177. t && t.enabled && (k += a[d].x, g += a[d].y, ++n)
  9178. }
  9179. a = this.q.i.bb;
  9180. r = this.b.Gb.X;
  9181. t = d = 0;
  9182. r >= this.behavior.rf && r < this.behavior.Mh && (d = this.behavior.Ij * Math.min(this.b.vf, 1), 0 === this.behavior.Jj && (d *= 1 - (r - this.behavior.rf) / (this.behavior.Mh - this.behavior.rf)), r = Math.random() * Math.PI * 2, t = Math.random() * d, d = Math.cos(r) * t, t *=
  9183. Math.sin(r));
  9184. a.lm(k / n + d);
  9185. a.mm(g / n + t)
  9186. }
  9187. };
  9188. k.prototype.jr = function(a, k, g) {
  9189. this.behavior.Ij = a;
  9190. this.behavior.rf = this.b.Gb.X;
  9191. this.behavior.Mh = this.behavior.rf + k;
  9192. this.behavior.Jj = g
  9193. };
  9194. r.F = new k
  9195. })();
  9196. function jc() {
  9197. return [kc, lc, mc, Y, nc, oc, Z, pc, sc, rc, qc, X.prototype.k.qq, X.prototype.k.Qm, X.prototype.F.dr, Y.prototype.F.jq, rc.prototype.F.Vq, Y.prototype.F.mr, Y.prototype.F.gr, X.prototype.k.gq, X.prototype.F.or, kc.prototype.F.Wq, pc.prototype.k.vq, X.prototype.F.hr, X.prototype.xa["int"], pc.prototype.xa.wq, nc.prototype.F.ik, X.prototype.k.mq, pc.prototype.F.nr, Y.prototype.F.$q, kc.prototype.F.fr, X.prototype.k.lq, Y.prototype.F.Xq, Y.prototype.F.Zm, Y.prototype.F.lr, Y.prototype.k.Nm, Z.prototype.k.hk, X.prototype.F.cr,
  9198. Y.prototype.F.Ym, Y.prototype.F.Yq, nc.prototype.F.Zm, mc.prototype.k.Om, Z.prototype.k.sq, mc.prototype.k.rq, mc.prototype.k.Pm, qc.prototype.F.br, X.prototype.F.iq, X.prototype.xa.tn, Y.prototype.k.Cq, X.prototype.F.bq, Y.prototype.F.er, Y.prototype.F.Zq, Y.prototype.k.hq, X.prototype.xa.min, X.prototype.xa.round, X.prototype.xa.sqrt, X.prototype.xa.max, oc.prototype.F.ik, sc.prototype.F.jr, lc.prototype.F.oq, X.prototype.F.nq, X.prototype.xa.Pu, X.prototype.xa.random
  9199. ]
  9200. };