diff --git a/CHANGELOG.md b/CHANGELOG.md index bbbbd574..94f46c20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ - +### v0.6.6 + +- Added current score to leaderboard + ### v0.6.5 - Fix some layout issues diff --git a/web/examples/candy-jam/branding/invisible.png b/web/examples/candy-jam/branding/invisible.png new file mode 100644 index 00000000..560fa913 Binary files /dev/null and b/web/examples/candy-jam/branding/invisible.png differ diff --git a/web/examples/candy-jam/branding/logo.png b/web/examples/candy-jam/branding/logo.png new file mode 100644 index 00000000..6c5d06a1 Binary files /dev/null and b/web/examples/candy-jam/branding/logo.png differ diff --git a/web/examples/candy-jam/branding/splash1.png b/web/examples/candy-jam/branding/splash1.png new file mode 100644 index 00000000..19e7df08 Binary files /dev/null and b/web/examples/candy-jam/branding/splash1.png differ diff --git a/web/examples/candy-jam/game.css b/web/examples/candy-jam/game.css new file mode 100644 index 00000000..59347bc0 --- /dev/null +++ b/web/examples/candy-jam/game.css @@ -0,0 +1,2 @@ + +tml,body{background-color:#000;margin:0;padding:0;position:relative;font-family:"riffic";touch-action:none;} #game{position:absolute;left:0;top:0;z-index:0;} #ajaxbar{background:url('media/graphics/loading/ajax-loader.gif') center no-repeat;} #canvas{position:absolute;left:0;top:0;width:100%;height:100%;-ms-interpolation-mode:nearest-neighbor;image-rendering:-webkit-optimize-contrast;-webkit-transform:scale3d(1,1,1);z-index:1;} #orientate{position:absolute;float:left;width:100%;height:100%;top:0;left:0;z-index:10002;display:none;} #orientate img{position:absolute;float:left;width:100%;height:100%;} .play{position:absolute;float:left;width:100%;height:100%;z-index:1000;background-color:#fff;left:0;top:0;display:none;} .play img{position:absolute;float:left;width:100%;height:100%;z-index:1000;left:0;top:0;} #nohtml5{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;z-index:1002;visibility:hidden;} #nohtml5 img{position:absolute;width:100%;height:100%;} #nohtml5-bubble{position:absolute;bottom:20px;left:50px;width:380px;height:100px;z-index:1002;color:#000;background:rgba(255,255,255,0.75);-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;} #nohtml5-text{padding:10px;} .horizontal-seperator{height:10px;width:100%;}#MobileAdInGamePreroll,#MobileAdInGamePreroll2,#MobileAdInGamePreroll3{position:absolute;float:left;min-width:320px;z-index:10000;left:0;top:0;display:none;background:rgba(0,0,0,0.7);-webkit-transition:all 0.6s ease;-moz-transition:all 0.6s ease;-o-transition:all 0.6s ease;} #MobileAdInGamePreroll-Box,#MobileAdInGamePreroll2-Box,#MobileAdInGamePreroll3-Box{z-index:10000;position:absolute;width:302px;height:250px;} #MobileAdInGamePreroll-Box-Body,#MobileAdInGamePreroll2-Box-Body,#MobileAdInGamePreroll3-Box-Body{z-index:10000;position:relative;background:transparent;} #MobileAdInGamePreroll-Box-Footer,#MobileAdInGamePreroll2-Box-Footer,#MobileAdInGamePreroll3-Box-Footer{z-index:10000;position:relative;font-size:11px;height:20px;color:#fff;background:transparent;} #MobileAdInGamePreroll-Box-Header,#MobileAdInGamePreroll2-Box-Header,#MobileAdInGamePreroll3-Box-Header{z-index:10000;position:relative;margin-top:-2px;font-size:11px;height:20px;text-align:right;color:#fff;background:transparent;} #MobileAdInGamePreroll-Box-Close,#MobileAdInGamePreroll2-Box-Close,#MobileAdInGamePreroll3-Box-Close{position:absolute;z-index:10005;background-image:url('media/graphics/generic-ad/light/close-button.png');background-repeat:no-repeat;width:22px;height:22px;top:-4px;margin-right:-1px;display:none;}#MobileAdInGameHeader,#MobileAdInGameHeader2,#MobileAdInGameHeader3{display:none;position:absolute;background:transparent;}#MobileAdInGameFooter,#MobileAdInGameFooter2,#MobileAdInGameFooter3{display:none;position:absolute;background:transparent;}#MobileAdInGameEnd,#MobileAdInGameEnd2,#MobileAdInGameEnd3{position:absolute;float:left;min-width:320px;z-index:10000;left:0;top:0;display:none;background:rgba(0,0,0,0.7);-webkit-transition:all 0.6s ease;-moz-transition:all 0.6s ease;-o-transition:all 0.6s ease;} #MobileAdInGameEnd-Box,#MobileAdInGameEnd2-Box,#MobileAdInGameEnd3-Box{z-index:10000;position:absolute;width:302px;height:250px;} #MobileAdInGameEnd-Box-Body,#MobileAdInGameEnd2-Box-Body,#MobileAdInGameEnd3-Box-Body{z-index:10000;position:relative;background:transparent;} #MobileAdInGameEnd-Box-Footer,#MobileAdInGameEnd2-Box-Footer,#MobileAdInGameEnd3-Box-Footer{z-index:10000;position:relative;font-size:11px;height:20px;color:#fff;background:transparent;} #MobileAdInGameEnd-Box-Header,#MobileAdInGameEnd2-Box-Header,#MobileAdInGameEnd3-Box-Header{z-index:10000;position:relative;margin-top:-2px;font-size:11px;height:20px;text-align:right;color:#fff;background:transparent;} #MobileAdInGameEnd-Box-Close,#MobileAdInGameEnd2-Box-Close,#MobileAdInGameEnd3-Box-Close{position:absolute;z-index:10005;background-image:url('media/graphics/generic-ad/light/close-button.png');background-repeat:no-repeat;width:22px;height:22px;top:-4px;margin-right:-1px;display:none;}.ig_debug{position:fixed;left:0;bottom:0;width:100%;background-color:#000;border-top:2px solid #f57401;font-size:12px;color:#fff;z-index:1000;-webkit-user-select:none;display:none;} .ig_debug_panel_menu{height:28px;background:#222;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#000000),color-stop(1,#333));background:-moz-linear-gradient(center bottom,#000000 0%,#333 100%);background:-o-linear-gradient(#333,#000000);} .ig_debug_panel_menu div{float:left;height:22px;padding:6px 8px 0 8px;border-right:1px solid #333;} .ig_debug_panel_menu .ig_debug_head{font-weight:bold;color:#888;} .ig_debug_menu_item:hover{cursor:pointer;background-color:#fff;color:#000;} .ig_debug_menu_item.active,.ig_debug_menu_item.active:hover{background-color:#000;color:#fff;} .ig_debug_stats{position:absolute;right:0;top:0;float:right;color:#888;border-left:1px solid #333;text-align:right;} .ig_debug_stats span{width:3em;display:inline-block;color:#fff !important;margin-right:0.2em;margin-left:0.3em;font-family:bitstream vera sans mono,courier new;white-space:nowrap;} .ig_debug_panel{height:152px;overflow:auto;position:relative;} .ig_debug_panel canvas{border-bottom:1px solid #444;} .ig_debug_panel .ig_debug_panel{padding:8px;height:auto;float:left;background-color:#000;border-right:2px solid #222;} .ig_debug_option{padding:2px 0 2px 8px;cursor:pointer;} .ig_debug_option:first-child{margin-top:8px;} .ig_debug_option:hover{background-color:#111;} .ig_debug_graph_mark{position:absolute;color:#888;left:4px;font-size:10px;margin-top:-12px;} .ig_debug_legend{color:#ccc;} .ig_debug_label_mark{display:inline-block;width:10px;height:10px;margin-right:4px;-webkit-transition:0.1s linear;-moz-transition:0.1s linear;} .ig_debug_legend_color{display:inline-block;width:6px;height:10px;margin-right:4px;margin-left:16px;} .ig_debug_legend_number{width:3em;display:inline-block;text-align:right;font-family:bitstream vera sans mono,courier new;color:#fff;margin-right:0.2em;} .ig_debug_map_container{position:relative;overflow:hidden;border:1px solid #888;} .ig_debug_map_container canvas{position:absolute;} .ig_debug_map_screen{position:absolute;border:1px solid #f0f;} \ No newline at end of file diff --git a/web/examples/candy-jam/game.js b/web/examples/candy-jam/game.js new file mode 100644 index 00000000..ee0d8c36 --- /dev/null +++ b/web/examples/candy-jam/game.js @@ -0,0 +1,849 @@ +var _STRINGS={Ad:{Mobile:{Preroll:{ReadyIn:"The game is ready in ",Loading:"Your game is loading...",Close:"Close"},Header:{ReadyIn:"The game is ready in ",Loading:"Your game is loading...",Close:"Close"},End:{ReadyIn:"Advertisement ends in ",Loading:"Please wait ...",Close:"Close"}}},Splash:{Loading:"Loading ...",LogoLine1:"Some text here",LogoLine2:"powered by MarketJS",LogoLine3:"none",TapToStart:"TAP TO START"},Game:{SelectPlayer:"Select Player",Win:"You win!",Lose:"You lose!",Score:"Score",Time:"Time", +GameOverCapt:"GAME OVER",Completed:"You have completed",Level:"Level",LevelCapt:"LEVEL",NoMoves:"No more moves",HighScores:"High Scores",ScoreCapt:"SCORE",CollectCandies:"Collect These Candies",MusicCapt:"MUSIC",SoundCapt:"SOUND",Play:"Play",Options:"Options",Scores:"Scores",MoreGames:"More Games",Home:"Home",Back:"Back",Targets:"Target"},Results:{Title:"High score"}},fonts={font1:"riffic"};var _SETTINGS={API:{Enabled:!0,Log:{Events:{InitializeGame:!0,EndGame:!0,Level:{Begin:!0,End:!0,Win:!0,Lose:!0,Draw:!0}}}},Ad:{Mobile:{Preroll:{Enabled:!1,Duration:5,Width:300,Height:250,Rotation:{Enabled:!1,Weight:{MobileAdInGamePreroll:40,MobileAdInGamePreroll2:40,MobileAdInGamePreroll3:20}}},Header:{Enabled:!1,Duration:5,Width:320,Height:50,Rotation:{Enabled:!1,Weight:{MobileAdInGameHeader:40,MobileAdInGameHeader2:40,MobileAdInGameHeader3:20}}},Footer:{Enabled:!1,Duration:5,Width:320,Height:50, +Rotation:{Enabled:!1,Weight:{MobileAdInGameFooter:40,MobileAdInGameFooter2:40,MobileAdInGameFooter3:20}}},End:{Enabled:!1,Duration:1,Width:300,Height:250,Rotation:{Enabled:!1,Weight:{MobileAdInGameEnd:40,MobileAdInGameEnd2:40,MobileAdInGameEnd3:20}}}}},Language:{Default:"en"},DeveloperBranding:{Splash:{Enabled:!1},Logo:{Enabled:!0,Link:"http://google.com",LinkEnabled:!0,NewWindow:!0,Width:166,Height:61}},Branding:{Splash:{Enabled:!1},Logo:{Enabled:!1,Link:"http://google.com",LinkEnabled:!0,NewWindow:!0, +Width:166,Height:61}},MoreGames:{Enabled:!1,Link:"http://www.marketjs.com/game/links/mobile",NewWindow:!0},TapToStartAudioUnlock:{Enabled:!1},Gamecenter:{Enabled:!0},Versioning:{Version:"1.0.0",Build:"52",DisplayLog:!0,DrawVersion:!0,FontSize:"16px",FontFamily:"Arial",FillStyle:"#000000"}};"undefined"!==typeof _SETTINGS.Versioning&&null!==_SETTINGS.Versioning&&!0===_SETTINGS.Versioning.DisplayLog&&console.log("Release: v"+_SETTINGS.Versioning.Version+"+build."+_SETTINGS.Versioning.Build);var MobileAdInGamePreroll={ad_duration:_SETTINGS.Ad.Mobile.Preroll.Duration,ad_width:_SETTINGS.Ad.Mobile.Preroll.Width,ad_height:_SETTINGS.Ad.Mobile.Preroll.Height,ready_in:_STRINGS.Ad.Mobile.Preroll.ReadyIn,loading:_STRINGS.Ad.Mobile.Preroll.Loading,close:_STRINGS.Ad.Mobile.Preroll.Close+"          ",Initialize:function(){if(_SETTINGS.Ad.Mobile.Preroll.Rotation.Enabled){var b=_SETTINGS.Ad.Mobile.Preroll.Rotation.Weight,c=b.MobileAdInGamePreroll,d= +c+b.MobileAdInGamePreroll2,b=d+b.MobileAdInGamePreroll3,e=Math.floor(100*Math.random());console.log("seed: ",e);e<=c?this.selectedOverlayName="MobileAdInGamePreroll":e<=d?this.selectedOverlayName="MobileAdInGamePreroll2":e<=b&&(this.selectedOverlayName="MobileAdInGamePreroll3");console.log("Ad rotating preroll enabled")}else this.selectedOverlayName="MobileAdInGamePreroll",console.log("Ad rotating preroll disabled");console.log("selected:",this.selectedOverlayName);this.overlay=$("#"+this.selectedOverlayName); +this.box=$("#"+this.selectedOverlayName+"-Box");this.game=$("#game");this.boxContents={footer:$("#"+this.selectedOverlayName+"-Box-Footer"),header:$("#"+this.selectedOverlayName+"-Box-Header"),close:$("#"+this.selectedOverlayName+"-Box-Close"),body:$("#"+this.selectedOverlayName+"-Box-Body")};this.box.width(this.ad_width);this.box.height(this.ad_height);this.box.css("left",(this.overlay.width()-this.box.width())/2);this.box.css("top",(this.overlay.height()-this.box.height()-this.boxContents.header.height()- +this.boxContents.footer.height())/2);this.overlay.show(this.Timer(this.ad_duration))},Timer:function(b){var c=b,d=setInterval(function(){MobileAdInGamePreroll.boxContents.header.text(MobileAdInGamePreroll.ready_in+c+"...");MobileAdInGamePreroll.boxContents.footer.text(MobileAdInGamePreroll.loading);c--;0>c&&(clearInterval(d),MobileAdInGamePreroll.boxContents.close.css("left",MobileAdInGamePreroll.boxContents.body.width()-23),MobileAdInGamePreroll.boxContents.close.show(),MobileAdInGamePreroll.boxContents.header.html(MobileAdInGamePreroll.close), +MobileAdInGamePreroll.boxContents.footer.text(""))},1E3)},Close:function(){this.boxContents.close.hide();this.overlay.hide()}};var MobileAdInGameHeader={ad_duration:_SETTINGS.Ad.Mobile.Header.Duration,ad_width:_SETTINGS.Ad.Mobile.Header.Width,ad_height:_SETTINGS.Ad.Mobile.Header.Height,Initialize:function(){if(_SETTINGS.Ad.Mobile.Header.Rotation.Enabled){var b=_SETTINGS.Ad.Mobile.Header.Rotation.Weight,c=b.MobileAdInGameHeader,d=c+b.MobileAdInGameHeader2,b=d+b.MobileAdInGameHeader3,e=Math.floor(100*Math.random());console.log("seed: ",e);e<=c?this.selectedOverlayName="MobileAdInGameHeader":e<=d?this.selectedOverlayName="MobileAdInGameHeader2": +e<=b&&(this.selectedOverlayName="MobileAdInGameHeader3");console.log("Ad rotating header enabled")}else this.selectedOverlayName="MobileAdInGameHeader",console.log("Ad rotating header disabled");this.div=$("#"+this.selectedOverlayName);this.game=$("#game");this.div.width(this.ad_width);this.div.height(this.ad_height);this.div.css("left",this.game.position().left+(this.game.width()-this.div.width())/2);this.div.css("top",0);this.div.show(this.Timer(this.ad_duration))},Timer:function(b){var c=setInterval(function(){b--; +0>b&&(MobileAdInGameHeader.div.hide(),clearInterval(c))},1E3)}};var MobileAdInGameFooter={ad_duration:_SETTINGS.Ad.Mobile.Footer.Duration,ad_width:_SETTINGS.Ad.Mobile.Footer.Width,ad_height:_SETTINGS.Ad.Mobile.Footer.Height,Initialize:function(){if(_SETTINGS.Ad.Mobile.Footer.Rotation.Enabled){var b=_SETTINGS.Ad.Mobile.Footer.Rotation.Weight,c=b.MobileAdInGameFooter,d=c+b.MobileAdInGameFooter2,b=d+b.MobileAdInGameFooter3,e=Math.floor(100*Math.random());console.log("seed: ",e);e<=c?this.selectedOverlayName="MobileAdInGameFooter":e<=d?this.selectedOverlayName="MobileAdInGameFooter2": +e<=b&&(this.selectedOverlayName="MobileAdInGameFooter3");console.log("Ad rotating footer enabled")}else this.selectedOverlayName="MobileAdInGameFooter",console.log("Ad rotating footer disabled");this.div=$("#"+this.selectedOverlayName);this.game=$("#game");this.div.width(this.ad_width);this.div.height(this.ad_height);this.div.css("left",this.game.position().left+(this.game.width()-this.div.width())/2);this.div.css("top",this.game.height()-this.div.height()-5);this.div.show(this.Timer(this.ad_duration))}, +Timer:function(b){var c=setInterval(function(){b--;0>b&&(MobileAdInGameFooter.div.hide(),clearInterval(c))},1E3)}};var MobileAdInGameEnd={ad_duration:_SETTINGS.Ad.Mobile.End.Duration,ad_width:_SETTINGS.Ad.Mobile.End.Width,ad_height:_SETTINGS.Ad.Mobile.End.Height,ready_in:_STRINGS.Ad.Mobile.End.ReadyIn,loading:_STRINGS.Ad.Mobile.End.Loading,close:_STRINGS.Ad.Mobile.End.Close+"          ",Initialize:function(){if(_SETTINGS.Ad.Mobile.End.Rotation.Enabled){var b=_SETTINGS.Ad.Mobile.End.Rotation.Weight,c=b.MobileAdInGameEnd,d=c+b.MobileAdInGameEnd2,b=d+b.MobileAdInGameEnd3, +e=Math.floor(100*Math.random());console.log("seed: ",e);e<=c?this.selectedOverlayName="MobileAdInGameEnd":e<=d?this.selectedOverlayName="MobileAdInGameEnd2":e<=b&&(this.selectedOverlayName="MobileAdInGameEnd3");console.log("Ad rotating end enabled")}else this.selectedOverlayName="MobileAdInGameEnd",console.log("Ad rotating end disabled");console.log("selected:",this.selectedOverlayName);this.overlay=$("#"+this.selectedOverlayName);this.box=$("#"+this.selectedOverlayName+"-Box");this.game=$("#game"); +this.boxContents={footer:$("#"+this.selectedOverlayName+"-Box-Footer"),header:$("#"+this.selectedOverlayName+"-Box-Header"),close:$("#"+this.selectedOverlayName+"-Box-Close"),body:$("#"+this.selectedOverlayName+"-Box-Body")};this.box.width(this.ad_width);this.box.height(this.ad_height);this.box.css("left",(this.overlay.width()-this.box.width())/2);this.box.css("top",(this.overlay.height()-this.box.height()-this.boxContents.header.height()-this.boxContents.footer.height())/2);this.overlay.show(this.Timer(this.ad_duration))}, +Timer:function(b){var c=b,d=setInterval(function(){MobileAdInGameEnd.boxContents.header.text(MobileAdInGameEnd.ready_in+c+"...");MobileAdInGameEnd.boxContents.footer.text(MobileAdInGameEnd.loading);c--;0>c&&(clearInterval(d),MobileAdInGameEnd.boxContents.close.css("left",MobileAdInGameEnd.boxContents.body.width()-23),MobileAdInGameEnd.boxContents.close.show(),MobileAdInGameEnd.boxContents.header.html(MobileAdInGameEnd.close),MobileAdInGameEnd.boxContents.footer.text(""))},1E3)},Close:function(){this.boxContents.close.hide(); +this.overlay.hide()}};!function(b,c){"object"==typeof module&&"object"==typeof module.exports?module.exports=b.document?c(b,!0):function(b){if(!b.document)throw Error("jQuery requires a window with a document");return c(b)}:c(b)}("undefined"!=typeof window?window:this,function(b,c){function d(b,c){c=c||G;var d=c.createElement("script");d.text=b;c.head.appendChild(d).parentNode.removeChild(d)}function e(b){var c=!!b&&"length"in b&&b.length,d=j.type(b);return"function"!==d&&!j.isWindow(b)&&("array"===d||0===c||"number"== +typeof c&&0tbody",b)[0]||b:b}function Ua(b){return b.type=(null!==b.getAttribute("type"))+"/"+b.type,b}function T(b){var c=Ic.exec(b.type);return c?b.type=c[1]:b.removeAttribute("type"),b}function Lb(b,c){var d,g,e,f,m,p;if(1===c.nodeType){if(F.hasData(b)&&(d=F.access(b),g=F.set(c,d),p=d.events))for(e in delete g.handle,g.events={},p){d=0;for(g=p[e].length;dc;c+=2)"margin"===d&&(f+=j.css(b,d+ua[c],!0,e)),g?("content"===d&&(f-=j.css(b,"padding"+ua[c],!0,e)),"margin"!==d&&(f-=j.css(b,"border"+ua[c]+"Width",!0,e))):(f+=j.css(b,"padding"+ua[c],!0,e),"padding"!==d&&(f+=j.css(b,"border"+ua[c]+"Width",!0,e)));return f}function Rb(b,c,d){var g,e=Wa(b),f=Ma(b,c,e),m="border-box"===j.css(b,"boxSizing", +!1,e);return pb.test(f)?f:(g=m&&(L.boxSizingReliable()||f===b.style[c]),"auto"===f&&(f=b["offset"+c[0].toUpperCase()+c.slice(1)]),f=parseFloat(f)||0,f+X(b,c,d||(m?"border":"content"),g,e)+"px")}function O(b,c,d,g,e){return new O.prototype.init(b,c,d,g,e)}function oa(){Xa&&(!1===G.hidden&&b.requestAnimationFrame?b.requestAnimationFrame(oa):b.setTimeout(oa,j.fx.interval),j.fx.tick())}function R(){return b.setTimeout(function(){Ea=void 0}),Ea=j.now()}function Y(b,c){var d,g=0,e={height:b};for(c=c?1: +0;4>g;g+=2-c)d=ua[g],e["margin"+d]=e["padding"+d]=b;return c&&(e.opacity=e.width=b),e}function Sb(b,c,d){for(var g,e=(da.tweeners[c]||[]).concat(da.tweeners["*"]),f=0,j=e.length;fd&&C?c:(C||p.notifyWith(b,[r,1,0]),p.resolveWith(b,[r]),!1)},r=p.promise({elem:b,props:j.extend({},c),opts:j.extend(!0,{specialEasing:{},easing:j.easing._default},d),originalProperties:c,originalOptions:d,startTime:Ea||R(),duration:d.duration,tweens:[],createTween:function(c,d){var g=j.Tween(b,r.opts,c,d,r.opts.specialEasing[c]||r.opts.easing);return r.tweens.push(g),g},stop:function(c){var d=0,g=c?r.tweens.length:0;if(e)return this;for(e=!0;db?this[b+this.length]:this[b]},pushStack:function(b){b=j.merge(this.constructor(),b);return b.prevObject=this,b},each:function(b){return j.each(this,b)},map:function(b){return this.pushStack(j.map(this,function(c,d){return b.call(c,d,c)}))},slice:function(){return this.pushStack(ya.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(b){var c=this.length; +b=+b+(0>b?c:0);return this.pushStack(0<=b&&bB.cacheLength&&delete b[c.shift()],b[d+" "]=g}var c=[];return b},ea=function(b){return b[I]=!0,b},ga=function(b){var c=E.createElement("fieldset");try{return!!b(c)}catch(d){return!1}finally{c.parentNode&&c.parentNode.removeChild(c)}},yb=function(b,c){for(var d=b.split("|"),g=d.length;g--;)B.attrHandle[d[g]]=c},$b=function(b,c){var d=c&&b,g=d&&1===b.nodeType&&1===c.nodeType&&b.sourceIndex-c.sourceIndex;if(g)return g;if(d)for(;d=d.nextSibling;)if(d=== +c)return-1;return b?1:-1},Uc=function(b){return function(c){return"input"===c.nodeName.toLowerCase()&&c.type===b}},Vc=function(b){return function(c){var d=c.nodeName.toLowerCase();return("input"===d||"button"===d)&&c.type===b}},ac=function(b){return function(c){return"form"in c?c.parentNode&&!1===c.disabled?"label"in c?"label"in c.parentNode?c.parentNode.disabled===b:c.disabled===b:c.isDisabled===b||c.isDisabled!==!b&&Wc(c)===b:c.disabled===b:"label"in c&&c.disabled===b}},za=function(b){return ea(function(c){return c= ++c,ea(function(d,g){for(var e,f=b([],d.length,c),j=f.length;j--;)d[e=f[j]]&&(d[e]=!(g[e]=d[e]))})})},wb=function(b){return b&&"undefined"!=typeof b.getElementsByTagName&&b},bc=function(){},ab=function(b){for(var c=0,d=b.length,g="";c+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,dd=/=[\x20\t\r\n\f]*([^\]'"]*?)[\x20\t\r\n\f]*\]/g,ed=RegExp(":((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)"), +fd=/^(?:\\.|[\w-]|[^\x00-\xa0])+$/,hb={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,TAG:/^((?:\\.|[\w-]|[^\x00-\xa0])+|[*])/,ATTR:RegExp("^\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\]"),PSEUDO:RegExp("^:((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)"), +CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)", +"i")},gd=/^(?:input|select|textarea|button)$/i,hd=/^h\d$/i,Pa=/^[^{]+\{\s*\[native \w/,Tc=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,vb=/[+~]/,ja=/\\([\da-f]{1,6}[\x20\t\r\n\f]?|([\x20\t\r\n\f])|.)/ig,ka=function(b,c,d){b="0x"+c-65536;return b!==b||d?c:0>b?String.fromCharCode(b+65536):String.fromCharCode(b>>10|55296,1023&b|56320)},Xb=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Yb=function(b,c){return c?"\x00"===b?"\ufffd":b.slice(0,-1)+"\\"+b.charCodeAt(b.length-1).toString(16)+" ":"\\"+b},gc=function(){qa()}, +Wc=cb(function(b){return!0===b.disabled&&("form"in b||"label"in b)},{dir:"parentNode",next:"legend"});try{ra.apply(Ca=fc.call(aa.childNodes),aa.childNodes),Ca[aa.childNodes.length].nodeType}catch(Kd){ra={apply:Ca.length?function(b,c){$c.apply(b,fc.call(c))}:function(b,c){for(var d=b.length,g=0;b[d++]=c[g++];);b.length=d-1}}}M=D.support={};cc=D.isXML=function(b){b=b&&(b.ownerDocument||b).documentElement;return!!b&&"HTML"!==b.nodeName};qa=D.setDocument=function(b){var c,d;b=b?b.ownerDocument||b:aa; +return b!==E&&9===b.nodeType&&b.documentElement?(E=b,ca=E.documentElement,ba=!cc(E),aa!==E&&(d=E.defaultView)&&d.top!==d&&(d.addEventListener?d.addEventListener("unload",gc,!1):d.attachEvent&&d.attachEvent("onunload",gc)),M.attributes=ga(function(b){return b.className="i",!b.getAttribute("className")}),M.getElementsByTagName=ga(function(b){return b.appendChild(E.createComment("")),!b.getElementsByTagName("*").length}),M.getElementsByClassName=Pa.test(E.getElementsByClassName),M.getById=ga(function(b){return ca.appendChild(b).id= +I,!E.getElementsByName||!E.getElementsByName(I).length}),M.getById?(B.filter.ID=function(b){var c=b.replace(ja,ka);return function(b){return b.getAttribute("id")===c}},B.find.ID=function(b,c){if("undefined"!=typeof c.getElementById&&ba){var d=c.getElementById(b);return d?[d]:[]}}):(B.filter.ID=function(b){var c=b.replace(ja,ka);return function(b){return(b="undefined"!=typeof b.getAttributeNode&&b.getAttributeNode("id"))&&b.value===c}},B.find.ID=function(b,c){if("undefined"!=typeof c.getElementById&& +ba){var d,x,g,e=c.getElementById(b);if(e){if(d=e.getAttributeNode("id"),d&&d.value===b)return[e];g=c.getElementsByName(b);for(x=0;e=g[x++];)if(d=e.getAttributeNode("id"),d&&d.value===b)return[e]}return[]}}),B.find.TAG=M.getElementsByTagName?function(b,c){return"undefined"!=typeof c.getElementsByTagName?c.getElementsByTagName(b):M.qsa?c.querySelectorAll(b):void 0}:function(b,c){var d,x=[],g=0,e=c.getElementsByTagName(b);if("*"===b){for(;d=e[g++];)1===d.nodeType&&x.push(d);return x}return e},B.find.CLASS= +M.getElementsByClassName&&function(b,c){if("undefined"!=typeof c.getElementsByClassName&&ba)return c.getElementsByClassName(b)},Ba=[],P=[],(M.qsa=Pa.test(E.querySelectorAll))&&(ga(function(b){ca.appendChild(b).innerHTML="";b.querySelectorAll("[msallowcapture^='']").length&&P.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");b.querySelectorAll("[selected]").length||P.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)"); +b.querySelectorAll("[id~="+I+"-]").length||P.push("~=");b.querySelectorAll(":checked").length||P.push(":checked");b.querySelectorAll("a#"+I+"+*").length||P.push(".#.+[+~]")}),ga(function(b){b.innerHTML="";var c=E.createElement("input");c.setAttribute("type","hidden");b.appendChild(c).setAttribute("name","D");b.querySelectorAll("[name=d]").length&&P.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");2!==b.querySelectorAll(":enabled").length&& +P.push(":enabled",":disabled");ca.appendChild(b).disabled=!0;2!==b.querySelectorAll(":disabled").length&&P.push(":enabled",":disabled");b.querySelectorAll("*,:x");P.push(",.*:")})),(M.matchesSelector=Pa.test(gb=ca.matches||ca.webkitMatchesSelector||ca.mozMatchesSelector||ca.oMatchesSelector||ca.msMatchesSelector))&&ga(function(b){M.disconnectedMatch=gb.call(b,"*");gb.call(b,"[s!='']:x");Ba.push("!=",":((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")}), +P=P.length&&RegExp(P.join("|")),Ba=Ba.length&&RegExp(Ba.join("|")),c=Pa.test(ca.compareDocumentPosition),Na=c||Pa.test(ca.contains)?function(b,c){var d=9===b.nodeType?b.documentElement:b,x=c&&c.parentNode;return b===x||!(!x||1!==x.nodeType||!(d.contains?d.contains(x):b.compareDocumentPosition&&16&b.compareDocumentPosition(x)))}:function(b,c){if(c)for(;c=c.parentNode;)if(c===b)return!0;return!1},Db=c?function(b,c){if(b===c)return Ga=!0,0;var d=!b.compareDocumentPosition-!c.compareDocumentPosition; +return d?d:(d=(b.ownerDocument||b)===(c.ownerDocument||c)?b.compareDocumentPosition(c):1,1&d||!M.sortDetached&&c.compareDocumentPosition(b)===d?b===E||b.ownerDocument===aa&&Na(aa,b)?-1:c===E||c.ownerDocument===aa&&Na(aa,c)?1:sa?Aa(sa,b)-Aa(sa,c):0:4&d?-1:1)}:function(b,c){if(b===c)return Ga=!0,0;var d,x=0;d=b.parentNode;var g=c.parentNode,e=[b],C=[c];if(!d||!g)return b===E?-1:c===E?1:d?-1:g?1:sa?Aa(sa,b)-Aa(sa,c):0;if(d===g)return $b(b,c);for(d=b;d=d.parentNode;)e.unshift(d);for(d=c;d=d.parentNode;)C.unshift(d); +for(;e[x]===C[x];)x++;return x?$b(e[x],C[x]):e[x]===aa?-1:C[x]===aa?1:0},E):E};D.matches=function(b,c){return D(b,null,null,c)};D.matchesSelector=function(b,c){if((b.ownerDocument||b)!==E&&qa(b),c=c.replace(dd,"='$1']"),M.matchesSelector&&ba&&!$a[c+" "]&&(!Ba||!Ba.test(c))&&(!P||!P.test(c)))try{var d=gb.call(b,c);if(d||M.disconnectedMatch||b.document&&11!==b.document.nodeType)return d}catch(g){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling", +first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(b){return b[1]=b[1].replace(ja,ka),b[3]=(b[3]||b[4]||b[5]||"").replace(ja,ka),"~="===b[2]&&(b[3]=" "+b[3]+" "),b.slice(0,4)},CHILD:function(b){return b[1]=b[1].toLowerCase(),"nth"===b[1].slice(0,3)?(b[3]||D.error(b[0]),b[4]=+(b[4]?b[5]+(b[6]||1):2*("even"===b[3]||"odd"===b[3])),b[5]=+(b[7]+b[8]||"odd"===b[3])):b[3]&&D.error(b[0]),b},PSEUDO:function(b){var c,d=!b[6]&&b[2];return hb.CHILD.test(b[0])?null:(b[3]?b[2]=b[4]||b[5]||"":d&&ed.test(d)&& +(c=Oa(d,!0))&&(c=d.indexOf(")",d.length-c)-d.length)&&(b[0]=b[0].slice(0,c),b[2]=d.slice(0,c)),b.slice(0,3))}},filter:{TAG:function(b){var c=b.replace(ja,ka).toLowerCase();return"*"===b?function(){return!0}:function(b){return b.nodeName&&b.nodeName.toLowerCase()===c}},CLASS:function(b){var c=dc[b+" "];return c||(c=RegExp("(^|[\\x20\\t\\r\\n\\f])"+b+"([\\x20\\t\\r\\n\\f]|$)"))&&dc(b,function(b){return c.test("string"==typeof b.className&&b.className||"undefined"!=typeof b.getAttribute&&b.getAttribute("class")|| +"")})},ATTR:function(b,c,d){return function(g){g=D.attr(g,b);return null==g?"!="===c:!c||(g+="","="===c?g===d:"!="===c?g!==d:"^="===c?d&&0===g.indexOf(d):"*="===c?d&&-1b.nodeType)return!1;return!0},parent:function(b){return!B.pseudos.empty(b)},header:function(b){return hd.test(b.nodeName)},input:function(b){return gd.test(b.nodeName)}, +button:function(b){var c=b.nodeName.toLowerCase();return"input"===c&&"button"===b.type||"button"===c},text:function(b){var c;return"input"===b.nodeName.toLowerCase()&&"text"===b.type&&(null==(c=b.getAttribute("type"))||"text"===c.toLowerCase())},first:za(function(){return[0]}),last:za(function(b,c){return[c-1]}),eq:za(function(b,c,d){return[0>d?d+c:d]}),even:za(function(b,c){for(var d=0;dd?d+c:d;0<=--c;)b.push(c);return b}),gt:za(function(b,c,d){for(d=0>d?d+c:d;++d:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i, +Ec=/^.[^:#\[\.,]*$/;j.filter=function(b,c,d){var g=c[0];return d&&(b=":not("+b+")"),1===c.length&&1===g.nodeType?j.find.matchesSelector(g,b)?[g]:[]:j.find.matches(b,j.grep(c,function(b){return 1===b.nodeType}))};j.fn.extend({find:function(b){var c,d,g=this.length,e=this;if("string"!=typeof b)return this.pushStack(j(b).filter(function(){for(c=0;c)[^>]*|#([\w-]+))$/;(j.fn.init=function(b,c,d){var g,e;if(!b)return this;if(d=d||kc,"string"==typeof b){if(g="<"===b[0]&&">"===b[b.length-1]&&3<=b.length?[null,b,null]:id.exec(b),!g||!g[1]&&c)return!c||c.jquery?(c||d).find(b):this.constructor(c).find(b);if(g[1]){if(c=c instanceof j?c[0]:c,j.merge(this,j.parseHTML(g[1], +c&&c.nodeType?c.ownerDocument||c:G,!0)),jc.test(g[1])&&j.isPlainObject(c))for(g in c)j.isFunction(this[g])?this[g](c[g]):this.attr(g,c[g]);return this}return e=G.getElementById(g[2]),e&&(this[0]=e,this.length=1),this}return b.nodeType?(this[0]=b,this.length=1,this):j.isFunction(b)?void 0!==d.ready?d.ready(b):b(j):j.makeArray(b,this)}).prototype=j.fn;kc=j(G);var jd=/^(?:parents|prev(?:Until|All))/,kd={children:!0,contents:!0,next:!0,prev:!0};j.fn.extend({has:function(b){var c=j(b,this),d=c.length; +return this.filter(function(){for(var b=0;bd.nodeType&&(m?-1=m&&(e!==g&&(p=void 0,C=[b]),d.rejectWith(p,C))}};c?l():(j.Deferred.getStackHook&&(l.stackTrace=j.Deferred.getStackHook()),b.setTimeout(l))}}var m=0;return j.Deferred(function(b){d[0][3].add(f(0,b,j.isFunction(x)?x:q,b.notifyWith));d[1][3].add(f(0,b,j.isFunction(c)?c:q));d[2][3].add(f(0,b,j.isFunction(e)?e:g))}).promise()},promise:function(b){return null!=b?j.extend(b,f):f}},m={};return j.each(d,function(b,c){var g=c[2],x=c[5];f[c[1]]=g.add;x&&g.add(function(){e=x},d[3-b][2].disable, +d[0][2].lock);g.add(c[3].fire);m[c[0]]=function(){return m[c[0]+"With"](this===m?void 0:this,arguments),this};m[c[0]+"With"]=g.fireWith}),f.promise(m),c&&c.call(m,m),m},when:function(b){var c=arguments.length,d=c,g=Array(d),e=ya.call(arguments),f=j.Deferred(),p=function(b){return function(d){g[b]=this;e[b]=1=c&&(m(b,f.done(p(d)).resolve,f.reject,!c),"pending"===f.state()||j.isFunction(e[d]&&e[d].then)))return f.then();for(;d--;)m(e[d], +p(d),f.reject);return f.promise()}});var ld=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;j.Deferred.exceptionHook=function(c,d){b.console&&b.console.warn&&c&&ld.test(c.name)&&b.console.warn("jQuery.Deferred exception: "+c.message,c.stack,d)};j.readyException=function(c){b.setTimeout(function(){throw c;})};var Eb=j.Deferred();j.fn.ready=function(b){return Eb.then(b)["catch"](function(b){j.readyException(b)}),this};j.extend({isReady:!1,readyWait:1,ready:function(b){(!0===b?--j.readyWait: +j.isReady)||(j.isReady=!0,!0!==b&&0<--j.readyWait||Eb.resolveWith(G,[j]))}});j.ready.then=Eb.then;"complete"===G.readyState||"loading"!==G.readyState&&!G.documentElement.doScroll?b.setTimeout(j.ready):(G.addEventListener("DOMContentLoaded",p),b.addEventListener("load",p));var la=function(b,c,d,g,e,f,m){var p=0,l=b.length,r=null==d;if("object"===j.type(d))for(p in e=!0,d)la(b,c,p,d[p],!0,f,m);else if(void 0!==g&&(e=!0,j.isFunction(g)||(m=!0),r&&(m?(c.call(b,g),c=null):(r=c,c=function(b,c,d){return r.call(j(b), +d)})),c))for(;p\x20\t\r\n\f]+)/i,Kb=/^$|\/(?:java|ecma)script/i,U={option:[1,""],thead:[1,"","
"],col:[2,"","
"], +tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};U.optgroup=U.option;U.tbody=U.tfoot=U.colgroup=U.caption=U.thead;U.th=U.td;var Hc=/<|&#?\w+;/,jb=G.createDocumentFragment().appendChild(G.createElement("div")),kb=G.createElement("input");kb.setAttribute("type","radio");kb.setAttribute("checked","checked");kb.setAttribute("name","t");jb.appendChild(kb);L.checkClone=jb.cloneNode(!0).cloneNode(!0).lastChild.checked;jb.innerHTML=""; +L.noCloneChecked=!!jb.cloneNode(!0).lastChild.defaultValue;!0;var lb=G.documentElement,md=/^key/,nd=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,oc=/^([^.]*)(?:\.(.+)|)/;j.event={global:{},add:function(b,c,d,g,e){var f,m,p,l,r,s,n,u,q,t;if(r=F.get(b)){d.handler&&(f=d,d=f.handler,e=f.selector);e&&j.find.matchesSelector(lb,e);d.guid||(d.guid=j.guid++);(l=r.events)||(l=r.events={});(m=r.handle)||(m=r.handle=function(c){return"undefined"!=typeof j&&j.event.triggered!==c.type?j.event.dispatch.apply(b, +arguments):void 0});c=(c||"").match(Z)||[""];for(r=c.length;r--;)p=oc.exec(c[r])||[],q=t=p[1],p=(p[2]||"").split(".").sort(),q&&(n=j.event.special[q]||{},q=(e?n.delegateType:n.bindType)||q,n=j.event.special[q]||{},s=j.extend({type:q,origType:t,data:g,handler:d,guid:d.guid,selector:e,needsContext:e&&j.expr.match.needsContext.test(e),namespace:p.join(".")},f),(u=l[q])||(u=l[q]=[],u.delegateCount=0,n.setup&&!1!==n.setup.call(b,g,p,m)||b.addEventListener&&b.addEventListener(q,m)),n.add&&(n.add.call(b, +s),s.handler.guid||(s.handler.guid=d.guid)),e?u.splice(u.delegateCount++,0,s):u.push(s),j.event.global[q]=!0)}},remove:function(b,c,d,g,e){var f,m,p,l,r,s,n,u,q,t,y,A=F.hasData(b)&&F.get(b);if(A&&(l=A.events)){c=(c||"").match(Z)||[""];for(r=c.length;r--;)if(p=oc.exec(c[r])||[],q=y=p[1],t=(p[2]||"").split(".").sort(),q){n=j.event.special[q]||{};q=(g?n.delegateType:n.bindType)||q;u=l[q]||[];p=p[2]&&RegExp("(^|\\.)"+t.join("\\.(?:.*\\.|)")+"(\\.|$)");for(m=f=u.length;f--;)s=u[f],!e&&y!==s.origType|| +d&&d.guid!==s.guid||p&&!p.test(s.namespace)||g&&g!==s.selector&&("**"!==g||!s.selector)||(u.splice(f,1),s.selector&&u.delegateCount--,n.remove&&n.remove.call(b,s));m&&!u.length&&(n.teardown&&!1!==n.teardown.call(b,t,A.handle)||j.removeEvent(b,q,A.handle),delete l[q])}else for(q in l)j.event.remove(b,q+c[r],d,g,!0);j.isEmptyObject(l)&&F.remove(b,"handle events")}},dispatch:function(b){var c=j.event.fix(b),d,g,e,f,m,p,l=Array(arguments.length);g=(F.get(this,"events")||{})[c.type]||[];var r=j.event.special[c.type]|| +{};l[0]=c;for(d=1;d\x20\t\r\n\f]*)[^>]*)\/>/gi,pd=/\s*$/g;j.extend({htmlPrefilter:function(b){return b.replace(od,"<$1>")},clone:function(b,c,d){var g,e,f,m,p=b.cloneNode(!0),r=j.contains(b.ownerDocument,b);if(!L.noCloneChecked&&!(1!==b.nodeType&&11!==b.nodeType||j.isXMLDoc(b))){m=y(p);f=y(b);g=0;for(e=f.length;gj.inArray(this,b)&&(j.cleanData(y(this)),d&&d.replaceChild(c,this))},b)}});j.each({appendTo:"append",prependTo:"prepend", +insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,c){j.fn[b]=function(b){for(var d=[],g=j(b),e=g.length-1,f=0;f<=e;f++)b=f===e?this:this.clone(!0),j(g[f])[c](b),tb.apply(d,b.get());return this.pushStack(d)}});var Nb=/^margin/,pb=RegExp("^("+lc+")(?!px)[a-z%]+$","i"),Wa=function(c){var d=c.ownerDocument.defaultView;return d&&d.opener||(d=b),d.getComputedStyle(c)},nb=function(){if(fa){fa.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%"; +fa.innerHTML="";lb.appendChild(mb);var c=b.getComputedStyle(fa);pc="1%"!==c.top;qc="2px"===c.marginLeft;rc="4px"===c.width;fa.style.marginRight="50%";sc="4px"===c.marginRight;lb.removeChild(mb);fa=null}},pc,rc,sc,qc,mb=G.createElement("div"),fa=G.createElement("div");fa.style&&(fa.style.backgroundClip="content-box",fa.cloneNode(!0).style.backgroundClip="",L.clearCloneStyle="content-box"===fa.style.backgroundClip,mb.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute", +mb.appendChild(fa),j.extend(L,{pixelPosition:function(){return nb(),pc},boxSizingReliable:function(){return nb(),rc},pixelMarginRight:function(){return nb(),sc},reliableMarginLeft:function(){return nb(),qc}}));!0;var qd=/^(none|table(?!-c[ea]).+)/,tc=/^--/,rd={position:"absolute",visibility:"hidden",display:"block"},uc={letterSpacing:"0",fontWeight:"400"},Qb=["Webkit","Moz","ms"],Pb=G.createElement("div").style;j.extend({cssHooks:{opacity:{get:function(b,c){if(c){var d=Ma(b,"opacity");return""=== +d?"1":d}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(b,c,d,g){if(b&&3!==b.nodeType&&8!==b.nodeType&&b.style){var e,f,m,p=j.camelCase(c),r=tc.test(c),l=b.style;return r||(c=V(p)),m=j.cssHooks[c]||j.cssHooks[p],void 0===d?m&&"get"in m&&void 0!==(e=m.get(b,!1,g))?e:l[c]:(f=typeof d,"string"===f&&(e=La.exec(d))&&e[1]&& +(d=u(b,c,e),f="number"),null!=d&&d===d&&("number"===f&&(d+=e&&e[3]||(j.cssNumber[p]?"":"px")),L.clearCloneStyle||""!==d||0!==c.indexOf("background")||(l[c]="inherit"),m&&"set"in m&&void 0===(d=m.set(b,d,g))||(r?l.setProperty(c,d):l[c]=d)),void 0)}},css:function(b,c,d,g){var e,f,m,p=j.camelCase(c);return tc.test(c)||(c=V(p)),m=j.cssHooks[c]||j.cssHooks[p],m&&"get"in m&&(e=m.get(b,!0,d)),void 0===e&&(e=Ma(b,c,g)),"normal"===e&&c in uc&&(e=uc[c]),""===d||d?(f=parseFloat(e),!0===d||isFinite(f)?f||0:e): +e}});j.each(["height","width"],function(b,c){j.cssHooks[c]={get:function(b,d,g){if(d)return!qd.test(j.css(b,"display"))||b.getClientRects().length&&b.getBoundingClientRect().width?Rb(b,c,g):mc(b,rd,function(){return Rb(b,c,g)})},set:function(b,d,g){var e,f=g&&Wa(b);g=g&&X(b,c,g,"border-box"===j.css(b,"boxSizing",!1,f),f);return g&&(e=La.exec(d))&&"px"!==(e[3]||"px")&&(b.style[c]=d,d=j.css(b,c)),W(b,d,g)}}});j.cssHooks.marginLeft=Ob(L.reliableMarginLeft,function(b,c){if(c)return(parseFloat(Ma(b,"marginLeft"))|| +b.getBoundingClientRect().left-mc(b,{marginLeft:0},function(){return b.getBoundingClientRect().left}))+"px"});j.each({margin:"",padding:"",border:"Width"},function(b,c){j.cssHooks[b+c]={expand:function(d){var g=0,e={};for(d="string"==typeof d?d.split(" "):[d];4>g;g++)e[b+ua[g]+c]=d[g]||d[g-2]||d[0];return e}};Nb.test(b)||(j.cssHooks[b+c].set=W)});j.fn.extend({css:function(b,c){return la(this,function(b,c,d){var g,e={},f=0;if(Array.isArray(c)){d=Wa(b);for(g=c.length;fg.indexOf(" "+f+" ")&&(g+=f+" ");g=va(g);e!==g&&d.setAttribute("class",g)}return this},removeClass:function(b){var c,d,g,e,f,m,p=0;if(j.isFunction(b))return this.each(function(c){j(this).removeClass(b.call(this, +c,wa(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof b&&b)for(c=b.match(Z)||[];d=this[p++];)if(e=wa(d),g=1===d.nodeType&&" "+va(e)+" "){for(m=0;f=c[m++];)for(;-1e?r:m?e:0;dq.indexOf(":")&&"on"+q,c=c[j.expando]?c:new j.Event(q,"object"==typeof c&&c),c.isTrigger=e?2:3,c.namespace=f.join("."),c.rnamespace=c.namespace?RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,c.result=void 0,c.target||(c.target=g),d=null==d?[c]:j.makeArray(d,[c]),n=j.event.special[q]||{},e||!n.trigger|| +!1!==n.trigger.apply(g,d))){if(!e&&!n.noBubble&&!j.isWindow(g)){r=n.delegateType||q;for(wc.test(r+q)||(m=m.parentNode);m;m=m.parentNode)u.push(m),p=m;p===(g.ownerDocument||G)&&u.push(p.defaultView||p.parentWindow||b)}for(f=0;(m=u[f++])&&!c.isPropagationStopped();)c.type=1c||304===c;if(p){x=t;for(var Da=K,B,E,G,D,L=x.contents,N=x.dataTypes;"*"===N[0];)N.shift(),void 0===B&&(B=x.mimeType||Da.getResponseHeader("Content-Type"));if(B)for(E in L)if(L[E]&& +L[E].test(B)){N.unshift(E);break}if(N[0]in p)G=N[0];else{for(E in p){if(!N[0]||x.converters[E+" "+N[0]]){G=E;break}D||(D=E)}G=G||D}x=p=G?(G!==N[0]&&N.unshift(G),p[G]):void 0}var Y;a:{p=t;B=x;E=K;G=r;var I,M,ma;x={};Da=p.dataTypes.slice();if(Da[1])for(I in p.converters)x[I.toLowerCase()]=p.converters[I];for(D=Da.shift();D;)if(p.responseFields[D]&&(E[p.responseFields[D]]=B),!ma&&G&&p.dataFilter&&(B=p.dataFilter(B,p.dataType)),ma=D,D=Da.shift())if("*"===D)D=ma;else if("*"!==ma&&ma!==D){if(I=x[ma+" "+ +D]||x["* "+D],!I)for(Y in x)if(M=Y.split(" "),M[1]===D&&(I=x[ma+" "+M[0]]||x["* "+M[0]])){!0===I?I=x[Y]:!0!==x[Y]&&(D=M[0],Da.unshift(M[1]));break}if(!0!==I)if(I&&p["throws"])B=I(B);else try{B=I(B)}catch(O){Y={state:"parsererror",error:I?O:"No conversion from "+ma+" to "+D};break a}}Y={state:"success",data:B}}x=Y;r?(t.ifModified&&(C=K.getResponseHeader("Last-Modified"),C&&(j.lastModified[f]=C),C=K.getResponseHeader("etag"),C&&(j.etag[f]=C)),204===c||"HEAD"===t.type?J="nocontent":304===c?J="notmodified": +(J=x.state,u=x.data,q=x.error,r=!q)):(q=J,!c&&J||(J="error",0>c&&(c=0)));K.status=c;K.statusText=(d||J)+"";r?z.resolveWith(y,[u,J,K]):z.rejectWith(y,[K,J,q]);K.statusCode(H);H=void 0;n&&A.trigger(r?"ajaxSuccess":"ajaxError",[K,t,r?u:q]);F.fireWith(y,[K,J]);n&&(A.trigger("ajaxComplete",[K,t]),--j.active||j.event.trigger("ajaxStop"))}}"object"==typeof c&&(d=c,c=void 0);d=d||{};var e,f,m,p,l,r,s,n,u,q,t=j.ajaxSetup({},d),y=t.context||t,A=t.context&&(y.nodeType||y.jquery)?j(y):j.event,z=j.Deferred(), +F=j.Callbacks("once memory"),H=t.statusCode||{},B={},E={},D="canceled",K={readyState:0,getResponseHeader:function(b){var c;if(s){if(!p)for(p={};c=Dd.exec(m);)p[c[1].toLowerCase()]=c[2];c=p[b.toLowerCase()]}return null==c?null:c},getAllResponseHeaders:function(){return s?m:null},setRequestHeader:function(b,c){return null==s&&(b=E[b.toLowerCase()]=E[b.toLowerCase()]||b,B[b]=c),this},overrideMimeType:function(b){return null==s&&(t.mimeType=b),this},statusCode:function(b){var c;if(b)if(s)K.always(b[K.status]); +else for(c in b)H[c]=[H[c],b[c]];return this},abort:function(b){b=b||D;return e&&e.abort(b),g(0,b),this}};if(z.promise(K),t.url=((c||t.url||Ra.href)+"").replace(Fd,Ra.protocol+"//"),t.type=d.method||d.type||t.method||t.type,t.dataTypes=(t.dataType||"*").toLowerCase().match(Z)||[""],null==t.crossDomain){r=G.createElement("a");try{r.href=t.url,r.href=r.href,t.crossDomain=Gb.protocol+"//"+Gb.host!=r.protocol+"//"+r.host}catch(N){t.crossDomain=!0}}if(t.data&&t.processData&&"string"!=typeof t.data&&(t.data= +j.param(t.data,t.traditional)),Ub(zc,t,d,K),s)return K;(n=j.event&&t.global)&&0===j.active++&&j.event.trigger("ajaxStart");t.type=t.type.toUpperCase();t.hasContent=!Ed.test(t.type);f=t.url.replace(Bd,"");t.hasContent?t.data&&t.processData&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&(t.data=t.data.replace(Ad,"+")):(q=t.url.slice(f.length),t.data&&(f+=(Fb.test(f)?"&":"?")+t.data,delete t.data),!1===t.cache&&(f=f.replace(Cd,"$1"),q=(Fb.test(f)?"&":"?")+"_="+xc++ +q),t.url= +f+q);t.ifModified&&(j.lastModified[f]&&K.setRequestHeader("If-Modified-Since",j.lastModified[f]),j.etag[f]&&K.setRequestHeader("If-None-Match",j.etag[f]));(t.data&&t.hasContent&&!1!==t.contentType||d.contentType)&&K.setRequestHeader("Content-Type",t.contentType);K.setRequestHeader("Accept",t.dataTypes[0]&&t.accepts[t.dataTypes[0]]?t.accepts[t.dataTypes[0]]+("*"!==t.dataTypes[0]?", "+Ac+"; q=0.01":""):t.accepts["*"]);for(u in t.headers)K.setRequestHeader(u,t.headers[u]);if(t.beforeSend&&(!1===t.beforeSend.call(y, +K,t)||s))return K.abort();if(D="abort",F.add(t.complete),K.done(t.success),K.fail(t.error),e=Ub(rb,t,d,K)){if(K.readyState=1,n&&A.trigger("ajaxSend",[K,t]),s)return K;t.async&&0").prop({charset:b.scriptCharset,src:b.url}).on("load error",d=function(b){c.remove();d=null;b&&e("error"===b.type?404:200,b.type)});G.head.appendChild(c[0])},abort:function(){d&&d()}}}});var Bc=[],Hb=/(=)\?(?=&|$)|\?\?/;j.ajaxSetup({jsonp:"callback", +jsonpCallback:function(){var b=Bc.pop()||j.expando+"_"+xc++;return this[b]=!0,b}});j.ajaxPrefilter("json jsonp",function(c,d,g){var e,f,m,p=!1!==c.jsonp&&(Hb.test(c.url)?"url":"string"==typeof c.data&&0===(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&Hb.test(c.data)&&"data");if(p||"jsonp"===c.dataTypes[0])return e=c.jsonpCallback=j.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,p?c[p]=c[p].replace(Hb,"$1"+e):!1!==c.jsonp&&(c.url+=(Fb.test(c.url)?"&":"?")+c.jsonp+ +"="+e),c.converters["script json"]=function(){return m||j.error(e+" was not called"),m[0]},c.dataTypes[0]="json",f=b[e],b[e]=function(){m=arguments},g.always(function(){void 0===f?j(b).removeProp(e):b[e]=f;c[e]&&(c.jsonpCallback=d.jsonpCallback,Bc.push(e));m&&j.isFunction(f)&&f(m[0]);m=f=void 0}),"script"});var Hd=L,Cc,Dc=G.implementation.createHTMLDocument("").body;Cc=(Dc.innerHTML="
",2===Dc.childNodes.length);Hd.createHTMLDocument=Cc;j.parseHTML=function(b,c,d){if("string"!= +typeof b)return[];"boolean"==typeof c&&(d=c,c=!1);var g,e,f;return c||(L.createHTMLDocument?(c=G.implementation.createHTMLDocument(""),g=c.createElement("base"),g.href=G.location.href,c.head.appendChild(g)):c=G),e=jc.exec(b),f=!d&&[],e?[c.createElement(e[1])]:(e=z([b],c,f),f&&f.length&&j(f).remove(),j.merge([],e.childNodes))};j.fn.load=function(b,c,d){var g,e,f,m=this,p=b.indexOf(" ");return-1").append(j.parseHTML(b)).find(g):b)}).always(d&&function(b,c){m.each(function(){d.apply(this,f||[b.responseText,c,b])})}),this};j.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(b,c){j.fn[c]=function(b){return this.on(c,b)}});j.expr.pseudos.animated=function(b){return j.grep(j.timers,function(c){return b===c.elem}).length};j.offset={setOffset:function(b, +c,d){var g,e,f,m,p,r,l=j.css(b,"position"),s=j(b),n={};"static"===l&&(b.style.position="relative");p=s.offset();f=j.css(b,"top");r=j.css(b,"left");("absolute"===l||"fixed"===l)&&-1<(f+r).indexOf("auto")?(g=s.position(),m=g.top,e=g.left):(m=parseFloat(f)||0,e=parseFloat(r)||0);j.isFunction(c)&&(c=c.call(b,d,j.extend({},p)));null!=c.top&&(n.top=c.top-p.top+m);null!=c.left&&(n.left=c.left-p.left+e);"using"in c?c.using.call(b,n):s.css(n)}};j.fn.extend({offset:function(b){if(arguments.length)return void 0=== +b?this:this.each(function(c){j.offset.setOffset(this,b,c)});var c,d,g,e,f=this[0];if(f)return f.getClientRects().length?(g=f.getBoundingClientRect(),c=f.ownerDocument,d=c.documentElement,e=c.defaultView,{top:g.top+e.pageYOffset-d.clientTop,left:g.left+e.pageXOffset-d.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var b,c,d=this[0],g={top:0,left:0};return"fixed"===j.css(d,"position")?c=d.getBoundingClientRect():(b=this.offsetParent(),c=this.offset(),f(b[0],"html")||(g=b.offset()),g={top:g.top+ +j.css(b[0],"borderTopWidth",!0),left:g.left+j.css(b[0],"borderLeftWidth",!0)}),{top:c.top-g.top-j.css(d,"marginTop",!0),left:c.left-g.left-j.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var b=this.offsetParent;b&&"static"===j.css(b,"position");)b=b.offsetParent;return b||lb})}});j.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){var d="pageYOffset"===c;j.fn[b]=function(g){return la(this,function(b,g,e){var f;return j.isWindow(b)?f=b:9===b.nodeType&& +(f=b.defaultView),void 0===e?f?f[c]:b[g]:void(f?f.scrollTo(d?f.pageXOffset:e,d?e:f.pageYOffset):b[g]=e)},b,g,arguments.length)}});j.each(["top","left"],function(b,c){j.cssHooks[c]=Ob(L.pixelPosition,function(b,d){if(d)return d=Ma(b,c),pb.test(d)?j(b).position()[c]+"px":d})});j.each({Height:"height",Width:"width"},function(b,c){j.each({padding:"inner"+b,content:c,"":"outer"+b},function(d,g){j.fn[g]=function(e,f){var m=arguments.length&&(d||"boolean"!=typeof e),p=d||(!0===e||!0===f?"margin":"border"); +return la(this,function(c,d,e){var f;return j.isWindow(c)?0===g.indexOf("outer")?c["inner"+b]:c.document.documentElement["client"+b]:9===c.nodeType?(f=c.documentElement,Math.max(c.body["scroll"+b],f["scroll"+b],c.body["offset"+b],f["offset"+b],f["client"+b])):void 0===e?j.css(c,d,p):j.style(c,d,e,p)},c,m?e:void 0,m)}})});j.fn.extend({bind:function(b,c,d){return this.on(b,null,c,d)},unbind:function(b,c){return this.off(b,null,c)},delegate:function(b,c,d,g){return this.on(c,b,d,g)},undelegate:function(b, +c,d){return 1===arguments.length?this.off(b,"**"):this.off(c,b||"**",d)}});j.holdReady=function(b){b?j.readyWait++:j.ready(!0)};j.isArray=Array.isArray;j.parseJSON=JSON.parse;j.nodeName=f;"function"==typeof define&&define.amd&&define("jquery",[],function(){return j});var Id=b.jQuery,Jd=b.$;return j.noConflict=function(c){return b.$===j&&(b.$=Jd),c&&b.jQuery===j&&(b.jQuery=Id),j},c||(b.jQuery=b.$=j),j}); +function getInternetExplorerVersion(){var b=-1;"Microsoft Internet Explorer"==navigator.appName&&null!=/MSIE ([0-9]{1,}[.0-9]{0,})/.exec(navigator.userAgent)&&(b=parseFloat(RegExp.$1));return b}var ie=getInternetExplorerVersion();function getQueryVariable(b){for(var c=window.location.search.substring(1).split("&"),d=0;d=d[f].start&&e<= +d[f].end){b=f;break}}void 0!==e&&"[object Object]"===Object.prototype.toString.call(d[b])&&(this.isPlaying=this.settings.spritemap[b],this.context.play&&this.context.play(),this.wasReady=this.setCurrentTime(e))}},stop:function(){this.__lastPosition=0;this.isPlaying=null;this.backgroundMusic?this.backgroundHackForiOS():this.context.pause();return!0},pause:function(){this.isPlaying=null;this.__lastPosition=this.getCurrentTime();this.context.pause();return this.__lastPosition},resume:function(b){b="number"=== +typeof b?b:this.__lastPosition;if(null!==b)return this.play(b),this.__lastPosition=null,!0;this.context.play();return!1},HTML5API:{getVolume:function(){return this.context.volume||1},setVolume:function(b){this.context.volume=b;return 1E-4>Math.abs(this.context.volume-b)?!0:!1},getCurrentTime:function(){return this.context.currentTime||0},setCurrentTime:function(b){try{return this.context.currentTime=b,!0}catch(c){return!1}}},FLASHAPI:{getVolume:function(){return this.context&&"function"===typeof this.context.getVolume? +this.context.getVolume():1},setVolume:function(b){return this.context&&"function"===typeof this.context.setVolume?(this.context.setVolume(b),!0):!1},getCurrentTime:function(){return this.context&&"function"===typeof this.context.getCurrentTime?this.context.getCurrentTime():0},setCurrentTime:function(b){return this.context&&"function"===typeof this.context.setCurrentTime?this.context.setCurrentTime(b):!1}}}; +if(void 0===this.jukebox)throw"jukebox.Manager requires jukebox.Player (Player.js) to run properly."; +jukebox.Manager=function(b){this.features={};this.codecs={};this.__players={};this.__playersLength=0;this.__clones={};this.__queue=[];this.settings={};for(var c in this.defaults)this.settings[c]=this.defaults[c];if("[object Object]"===Object.prototype.toString.call(b))for(var d in b)this.settings[d]=b[d];this.__detectFeatures();jukebox.Manager.__initialized=!1===this.settings.useGameLoop?window.setInterval(function(){jukebox.Manager.loop()},20):!0}; +jukebox.Manager.prototype={defaults:{useFlash:!1,useGameLoop:!1},__detectFeatures:function(){var b=window.Audio&&new Audio;if(b&&b.canPlayType&&!1===this.settings.useFlash){for(var c=[{e:"3gp",m:["audio/3gpp","audio/amr"]},{e:"aac",m:["audio/aac","audio/aacp"]},{e:"amr",m:["audio/amr","audio/3gpp"]},{e:"caf",m:["audio/IMA-ADPCM","audio/x-adpcm",'audio/x-aiff; codecs="IMA-ADPCM, ADPCM"']},{e:"m4a",m:'audio/mp4{audio/mp4; codecs="mp4a.40.2,avc1.42E01E"{audio/mpeg4{audio/mpeg4-generic{audio/mp4a-latm{audio/MP4A-LATM{audio/x-m4a'.split("{")}, +{e:"mp3",m:["audio/mp3","audio/mpeg",'audio/mpeg; codecs="mp3"',"audio/MPA","audio/mpa-robust"]},{e:"mpga",m:["audio/MPA","audio/mpa-robust","audio/mpeg","video/mpeg"]},{e:"mp4",m:["audio/mp4","video/mp4"]},{e:"ogg",m:["application/ogg","audio/ogg",'audio/ogg; codecs="theora, vorbis"',"video/ogg",'video/ogg; codecs="theora, vorbis"']},{e:"wav",m:["audio/wave","audio/wav",'audio/wav; codecs="1"',"audio/x-wav","audio/x-pn-wav"]},{e:"webm",m:["audio/webm",'audio/webm; codecs="vorbis"',"video/webm"]}], +d,e,f=0,l=c.length;fMath.abs(b.volume-0.1337));navigator.userAgent.match(/iPhone|iPod|iPad/i)&&(this.features.channels=1)}this.features.flashaudio= +!!navigator.mimeTypes["application/x-shockwave-flash"]||!!navigator.plugins["Shockwave Flash"]||!1;if(window.ActiveXObject)try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash.10"),this.features.flashaudio=!0}catch(g){}!0===this.settings.useFlash&&(this.features.flashaudio=!0);!0===this.features.flashaudio&&!this.features.html5audio&&(this.codecs.mp3="audio/mp3",this.codecs.mpga="audio/mpeg",this.codecs.mp4="audio/mp4",this.codecs.m4a="audio/mp4",this.codecs["3gp"]="audio/3gpp",this.codecs.amr="audio/amr", +this.features.volume=!0,this.features.channels=1)},__getPlayerById:function(b){return this.__players&&void 0!==this.__players[b]?this.__players[b]:null},__getClone:function(b,c){for(var d in this.__clones){var e=this.__clones[d];if(null===e.isPlaying&&e.origin===b)return e}if("[object Object]"===Object.prototype.toString.call(c)){d={};for(var f in c)d[f]=c[f];d.autoplay=!1;f=new jukebox.Player(d,b);f.isClone=!0;f.wasReady=!1;return this.__clones[f.id]=f}return null},loop:function(){if(0!==this.__playersLength)if(this.__queue.length&& +this.__playersLengthb.isPlaying.end&&(!0===b.isPlaying.loop?b.play(b.isPlaying.start,!0):b.stop()):b.isClone&&null===b.isPlaying?this.remove(b):void 0!==b.backgroundMusic&&null===b.isPlaying&&c>b.backgroundMusic.end&&b.backgroundHackForiOS()},getPlayableResource:function(b){"[object Array]"!==Object.prototype.toString.call(b)&&(b=[b]);for(var c=0,d=b.length;cb?"0"+b:b}function c(b){f.lastIndex=0;return f.test(b)?'"'+b.replace(f,function(b){var c=q[b];return"string"===typeof c?c:"\\u"+("0000"+b.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+b+'"'}function d(b,e){var f,s,u,q,y=l,A,z=e[b];z&&"object"===typeof z&&"function"===typeof z.toJSON&&(z=z.toJSON(b));"function"===typeof g&&(z=g.call(e,b,z));switch(typeof z){case "string":return c(z);case "number":return isFinite(z)?String(z):"null";case "boolean":case "null":return String(z); +case "object":if(!z)return"null";l+=n;A=[];if("[object Array]"===Object.prototype.toString.apply(z)){q=z.length;for(f=0;f=b){d._volume=b;if(d._muted)return d;d.usingWebAudio&&d.masterGain.gain.setValueAtTime(b,c.ctx.currentTime);for(var e=0;eparseInt(l[0].split("/")[1],10);b._codecs={mp3:!(l||!f&&!d.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!f,opus:!!d.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!d.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""), +aac:!!d.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!d.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(d.canPlayType("audio/x-m4a;")||d.canPlayType("audio/m4a;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(d.canPlayType("audio/x-m4b;")||d.canPlayType("audio/m4b;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(d.canPlayType("audio/x-mp4;")||d.canPlayType("audio/mp4;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/, +""),webm:!!d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),dolby:!!d.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(d.canPlayType("audio/x-flac;")||d.canPlayType("audio/flac;")).replace(/^no$/,"")};return b},_unlockAudio:function(){var b=this||c;if(!b._audioUnlocked&&b.ctx){b._audioUnlocked=!1;b.autoUnlock=!1;!b._mobileUnloaded&&44100!==b.ctx.sampleRate&&(b._mobileUnloaded=!0,b.unload());b._scratchBuffer=b.ctx.createBuffer(1,1,22050);var d=function(){for(;b._html5AudioPool.length< +b.html5PoolSize;)try{var c=new Audio;c._unlocked=!0;b._releaseHtml5Audio(c)}catch(e){b.noAudio=!0;break}for(c=0;c=ta)e._ended(q);else{var H=q._node;if(e._webAudio)f= +function(){e._playLock=!1;ia();e._refreshBuffer(q);H.gain.setValueAtTime(q._muted||e._muted?0:q._volume,c.ctx.currentTime);q._playStart=c.ctx.currentTime;"undefined"===typeof H.bufferSource.start?q._loop?H.bufferSource.noteGrainOn(0,A,86400):H.bufferSource.noteGrainOn(0,A,z):q._loop?H.bufferSource.start(0,A,86400):H.bufferSource.start(0,A,z);Infinity!==N&&(e._endTimers[q._id]=setTimeout(e._ended.bind(e,q),N));d||setTimeout(function(){e._emit("play",q._id);e._loadQueue()},0)},"running"===c.state&& +"interrupted"!==c.ctx.state?f():(e._playLock=!0,e.once("resume",f),e._clearTimer(q._id));else{var Ua=function(){H.currentTime=A;H.muted=q._muted||e._muted||c._muted||H.muted;H.volume=q._volume*c.volume();H.playbackRate=q._rate;try{var f=H.play();f&&"undefined"!==typeof Promise&&(f instanceof Promise||"function"===typeof f.then)?(e._playLock=!0,ia(),f.then(function(){e._playLock=!1;H._unlocked=!0;d||(e._emit("play",q._id),e._loadQueue())}).catch(function(){e._playLock=!1;e._emit("playerror",q._id, +"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");q._ended=!0;q._paused=!0})):d||(e._playLock=!1,ia(),e._emit("play",q._id),e._loadQueue());H.playbackRate=q._rate;H.paused?e._emit("playerror",q._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."):"__default"!==b||q._loop?e._endTimers[q._id]=setTimeout(e._ended.bind(e, +q),N):(e._endTimers[q._id]=function(){e._ended(q);H.removeEventListener("ended",e._endTimers[q._id],!1)},H.addEventListener("ended",e._endTimers[q._id],!1))}catch(l){e._emit("playerror",q._id,l)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===H.src&&(H.src=e._src,H.load());f=window&&window.ejecta||!H.readyState&&c._navigator.isCocoonJS;if(3<=H.readyState||f)Ua();else{e._playLock=!0;var T=function(){Ua();H.removeEventListener(c._canPlayEvent,T,!1)};H.addEventListener(c._canPlayEvent, +T,!1);e._clearTimer(q._id)}}return q._id}},pause:function(b,c){var d=this;if("loaded"!==d._state||d._playLock)return d._queue.push({event:"pause",action:function(){d.pause(b)}}),d;for(var e=d._getSoundIds(b),f=0;f=e){if("loaded"!==b._state||b._playLock)return b._queue.push({event:"volume",action:function(){b.volume.apply(b,d)}}),b;"undefined"===typeof f&&(b._volume=e);f=b._getSoundIds(f);for(var n=0;nA?Math.max(d,q):Math.min(d,q);q=Math.round(100*q)/100;n._webAudio?b._volume=q:n.volume(q,b._id,!0);l&&(n._volume=q);if(dc&&q>=d)clearInterval(b._interval),b._interval=null,b._fadeTo=null,n.volume(d,b._id),n._emit("fade",b._id)},f)},_stopFade:function(b){var d=this._soundById(b);d&&d._interval&&(this._webAudio&&d._node.gain.cancelScheduledValues(c.ctx.currentTime),clearInterval(d._interval),d._interval=null,this.volume(d._fadeTo,b),d._fadeTo=null,this._emit("fade",b));return this},loop:function(){var b=arguments,c,d;if(0===b.length)return this._loop;if(1===b.length)if("boolean"===typeof b[0])this._loop=c=b[0]; +else return(b=this._soundById(parseInt(b[0],10)))?b._loop:!1;else 2===b.length&&(c=b[0],d=parseInt(b[1],10));d=this._getSoundIds(d);for(var e=0;ee&&(d=/safari/.test(c._navigator&&c._navigator.userAgent.toLowerCase()),c._navigator&&!d&&(c.usingWebAudio=!1));c.usingWebAudio&&(c.masterGain="undefined"===typeof c.ctx.createGain?c.ctx.createGainNode():c.ctx.createGain(),c.masterGain.gain.setValueAtTime(c._muted?0:c._volume,c.ctx.currentTime),c.masterGain.connect(c.ctx.destination));c._setup()}};"function"===typeof define&&define.amd&&define([],function(){return{Howler:c,Howl:d}});"undefined"!==typeof exports&& +(exports.Howler=c,exports.Howl=d);"undefined"!==typeof global?(global.HowlerGlobal=b,global.Howler=c,global.Howl=d,global.Sound=e):"undefined"!==typeof window&&(window.HowlerGlobal=b,window.Howler=c,window.Howl=d,window.Sound=e)})(); +(function(){HowlerGlobal.prototype._pos=[0,0,0];HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0];HowlerGlobal.prototype.stereo=function(b){if(!this.ctx||!this.ctx.listener)return this;for(var c=this._howls.length-1;0<=c;c--)this._howls[c].stereo(b);return this};HowlerGlobal.prototype.pos=function(b,c,d){if(!this.ctx||!this.ctx.listener)return this;c="number"!==typeof c?this._pos[1]:c;d="number"!==typeof d?this._pos[2]:d;if("number"===typeof b)this._pos=[b,c,d],"undefined"!==typeof this.ctx.listener.positionX? +(this.ctx.listener.positionX.setTargetAtTime(this._pos[0],Howler.ctx.currentTime,0.1),this.ctx.listener.positionY.setTargetAtTime(this._pos[1],Howler.ctx.currentTime,0.1),this.ctx.listener.positionZ.setTargetAtTime(this._pos[2],Howler.ctx.currentTime,0.1)):this.ctx.listener.setPosition(this._pos[0],this._pos[1],this._pos[2]);else return this._pos;return this};HowlerGlobal.prototype.orientation=function(b,c,d,e,g,m){if(!this.ctx||!this.ctx.listener)return this;var p=this._orientation;c="number"!== +typeof c?p[1]:c;d="number"!==typeof d?p[2]:d;e="number"!==typeof e?p[3]:e;g="number"!==typeof g?p[4]:g;m="number"!==typeof m?p[5]:m;if("number"===typeof b)this._orientation=[b,c,d,e,g,m],"undefined"!==typeof this.ctx.listener.forwardX?(this.ctx.listener.forwardX.setTargetAtTime(b,Howler.ctx.currentTime,0.1),this.ctx.listener.forwardY.setTargetAtTime(c,Howler.ctx.currentTime,0.1),this.ctx.listener.forwardZ.setTargetAtTime(d,Howler.ctx.currentTime,0.1),this.ctx.listener.upX.setTargetAtTime(e,Howler.ctx.currentTime, +0.1),this.ctx.listener.upY.setTargetAtTime(g,Howler.ctx.currentTime,0.1),this.ctx.listener.upZ.setTargetAtTime(m,Howler.ctx.currentTime,0.1)):this.ctx.listener.setOrientation(b,c,d,e,g,m);else return p;return this};var b=Howl.prototype.init;Howl.prototype.init=function(c){this._orientation=c.orientation||[1,0,0];this._stereo=c.stereo||null;this._pos=c.pos||null;this._pannerAttr={coneInnerAngle:"undefined"!==typeof c.coneInnerAngle?c.coneInnerAngle:360,coneOuterAngle:"undefined"!==typeof c.coneOuterAngle? +c.coneOuterAngle:360,coneOuterGain:"undefined"!==typeof c.coneOuterGain?c.coneOuterGain:0,distanceModel:"undefined"!==typeof c.distanceModel?c.distanceModel:"inverse",maxDistance:"undefined"!==typeof c.maxDistance?c.maxDistance:1E4,panningModel:"undefined"!==typeof c.panningModel?c.panningModel:"HRTF",refDistance:"undefined"!==typeof c.refDistance?c.refDistance:1,rolloffFactor:"undefined"!==typeof c.rolloffFactor?c.rolloffFactor:1};this._onstereo=c.onstereo?[{fn:c.onstereo}]:[];this._onpos=c.onpos? +[{fn:c.onpos}]:[];this._onorientation=c.onorientation?[{fn:c.onorientation}]:[];return b.call(this,c)};Howl.prototype.stereo=function(b,c){var d=this;if(!d._webAudio)return d;if("loaded"!==d._state)return d._queue.push({event:"stereo",action:function(){d.stereo(b,c)}}),d;var q="undefined"===typeof Howler.ctx.createStereoPanner?"spatial":"stereo";if("undefined"===typeof c)if("number"===typeof b)d._stereo=b,d._pos=[b,0,0];else return d._stereo;for(var g=d._getSoundIds(c),m=0;mc;c++)e(b,b._deferreds[c]);b._deferreds=null}function q(b,c){var d=!1;try{b(function(b){d|| +(d=!0,f(c,b))},function(b){d||(d=!0,l(c,b))})}catch(e){d||(d=!0,l(c,e))}}var g=setTimeout;d.prototype["catch"]=function(b){return this.then(null,b)};d.prototype.then=function(b,d){var f=new this.constructor(c);return e(this,new function(b,c,d){this.onFulfilled="function"==typeof b?b:null;this.onRejected="function"==typeof c?c:null;this.promise=d}(b,d,f)),f};d.prototype["finally"]=b;d.all=function(b){return new d(function(c,d){function e(b,l){try{if(l&&("object"==typeof l||"function"==typeof l)){var m= +l.then;if("function"==typeof m)return void m.call(l,function(c){e(b,c)},d)}f[b]=l;0==--g&&c(f)}catch(p){d(p)}}if(!b||"undefined"==typeof b.length)throw new TypeError("Promise.all accepts an array");var f=Array.prototype.slice.call(b);if(0===f.length)return c([]);for(var g=f.length,l=0;f.length>l;l++)e(l,f[l])})};d.resolve=function(b){return b&&"object"==typeof b&&b.constructor===d?b:new d(function(c){c(b)})};d.reject=function(b){return new d(function(c,d){d(b)})};d.race=function(b){return new d(function(c, +d){for(var e=0,f=b.length;f>e;e++)b[e].then(c,d)})};d._immediateFn="function"==typeof setImmediate&&function(b){setImmediate(b)}||function(b){g(b,0)};d._unhandledRejectionFn=function(b){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",b)};var m=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object");}();"Promise"in m?m.Promise.prototype["finally"]|| +(m.Promise.prototype["finally"]=b):m.Promise=d}); +(function(){function b(b,c){document.addEventListener?b.addEventListener("scroll",c,!1):b.attachEvent("scroll",c)}function c(b){this.a=document.createElement("div");this.a.setAttribute("aria-hidden","true");this.a.appendChild(document.createTextNode(b));this.b=document.createElement("span");this.c=document.createElement("span");this.h=document.createElement("span");this.f=document.createElement("span");this.g=-1;this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;";this.c.style.cssText= +"max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;";this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;";this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;";this.b.appendChild(this.h);this.c.appendChild(this.f);this.a.appendChild(this.b);this.a.appendChild(this.c)}function d(b,c){b.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+ +c+";"}function e(b){var c=b.a.offsetWidth,d=c+100;b.f.style.width=d+"px";b.c.scrollLeft=d;b.b.scrollLeft=b.b.scrollWidth+100;return b.g!==c?(b.g=c,!0):!1}function f(c,d){function f(){var b=g;e(b)&&b.a.parentNode&&d(b.g)}var g=c;b(c.b,f);b(c.c,f);e(c)}function l(b,c){var d=c||{};this.family=b;this.style=d.style||"normal";this.weight=d.weight||"normal";this.stretch=d.stretch||"normal"}function n(){null===s&&(s=!!document.fonts);return s}function q(){if(null===r){var b=document.createElement("div"); +try{b.style.font="condensed 100px sans-serif"}catch(c){}r=""!==b.style.font}return r}function g(b,c){return[b.style,b.weight,q()?b.stretch:"","100px",c].join(" ")}var m=null,p=null,r=null,s=null;l.prototype.load=function(b,e){var l=this,r=b||"BESbswy",q=0,s=e||3E3,S=(new Date).getTime();return new Promise(function(b,e){var t;if(t=n())null===p&&(n()&&/Apple/.test(window.navigator.vendor)?(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent),p=!!t&&603>parseInt(t[1], +10)):p=!1),t=!p;if(t){t=new Promise(function(b,c){function d(){(new Date).getTime()-S>=s?c(Error(""+s+"ms timeout exceeded")):document.fonts.load(g(l,'"'+l.family+'"'),r).then(function(c){1<=c.length?b():setTimeout(d,25)},c)}d()});var u=new Promise(function(b,c){q=setTimeout(function(){c(Error(""+s+"ms timeout exceeded"))},s)});Promise.race([u,t]).then(function(){clearTimeout(q);b(l)},e)}else{var T=function(){function p(){var c;if(c=-1!=V&&-1!=W||-1!=V&&-1!=X||-1!=W&&-1!=X)(c=V!=W&&V!=X&&W!=X)||(null=== +m&&(c=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),m=!!c&&(536>parseInt(c[1],10)||536===parseInt(c[1],10)&&11>=parseInt(c[2],10))),c=m&&(V==T&&W==T&&X==T||V==O&&W==O&&X==O||V==oa&&W==oa&&X==oa)),c=!c;c&&(R.parentNode&&R.parentNode.removeChild(R),clearTimeout(q),b(l))}function n(){if((new Date).getTime()-S>=s)R.parentNode&&R.parentNode.removeChild(R),e(Error(""+s+"ms timeout exceeded"));else{var b=document.hidden;if(!0===b||void 0===b)V=t.a.offsetWidth,W=u.a.offsetWidth,X= +H.a.offsetWidth,p();q=setTimeout(n,50)}}var t=new c(r),u=new c(r),H=new c(r),V=-1,W=-1,X=-1,T=-1,O=-1,oa=-1,R=document.createElement("div");R.dir="ltr";d(t,g(l,"sans-serif"));d(u,g(l,"serif"));d(H,g(l,"monospace"));R.appendChild(t.a);R.appendChild(u.a);R.appendChild(H.a);document.body.appendChild(R);T=t.a.offsetWidth;O=u.a.offsetWidth;oa=H.a.offsetWidth;n();f(t,function(b){V=b;p()});d(t,g(l,'"'+l.family+'",sans-serif'));f(u,function(b){W=b;p()});d(u,g(l,'"'+l.family+'",serif'));f(H,function(b){X= +b;p()});d(H,g(l,'"'+l.family+'",monospace'))};document.body?T():document.addEventListener?document.addEventListener("DOMContentLoaded",function na(){document.removeEventListener("DOMContentLoaded",na);T()}):document.attachEvent("onreadystatechange",function Va(){if("interactive"==document.readyState||"complete"==document.readyState)document.detachEvent("onreadystatechange",Va),T()})}})};"object"===typeof module?module.exports=l:(window.FontFaceObserver=l,window.FontFaceObserver.prototype.load=l.prototype.load)})(); +(function(b){Number.prototype.map=function(b,c,d,e){return d+(e-d)*((this-b)/(c-b))};Number.prototype.limit=function(b,c){return Math.min(c,Math.max(b,this))};Number.prototype.round=function(b){b=Math.pow(10,b||0);return Math.round(this*b)/b};Number.prototype.floor=function(){return Math.floor(this)};Number.prototype.ceil=function(){return Math.ceil(this)};Number.prototype.toInt=function(){return this|0};Number.prototype.toRad=function(){return this/180*Math.PI};Number.prototype.toDeg=function(){return 180* +this/Math.PI};Array.prototype.erase=function(b){for(var c=this.length;c--;)this[c]===b&&this.splice(c,1);return this};Array.prototype.random=function(){return this[Math.floor(Math.random()*this.length)]};Function.prototype.bind=Function.prototype.bind||function(b){var c=this;return function(){var d=Array.prototype.slice.call(arguments);return c.apply(b||null,d)}};b.ig={game:null,debug:null,version:"1.20",global:b,modules:{},resources:[],ready:!1,baked:!1,nocache:"",ua:{},prefix:b.ImpactPrefix||"", +lib:"lib/",_current:null,_loadQueue:[],_waitForOnload:0,$:function(b){return"#"==b.charAt(0)?document.getElementById(b.substr(1)):document.getElementsByTagName(b)},$new:function(b){return document.createElement(b)},copy:function(b){if(!b||"object"!=typeof b||b instanceof HTMLElement||b instanceof ig.Class)return b;if(b instanceof Array)for(var c=[],d=0,e=b.length;dthis.width||f>this.height)){var q=ig.system.scale,g=Math.floor(e*q),m=Math.floor(f*q),p=l?-1:1,r=n?-1:1;if(l||n)ig.system.context.save(),ig.system.context.scale(p,r);ig.system.context.drawImage(this.data, +Math.floor(d*e)%this.width*q,Math.floor(d*e/this.width)*f*q,g,m,ig.system.getDrawPos(b)*p-(l?g:0),ig.system.getDrawPos(c)*r-(n?m:0),g,m);(l||n)&&ig.system.context.restore();ig.Image.drawCount++}}});ig.Image.drawCount=0;ig.Image.cache={};ig.Image.reloadCache=function(){for(var b in ig.Image.cache)ig.Image.cache[b].reload()}});ig.baked=!0; +ig.module("impact.font").requires("impact.image").defines(function(){ig.Font=ig.Image.extend({widthMap:[],indices:[],firstChar:32,alpha:1,letterSpacing:1,lineSpacing:0,onload:function(b){this._loadMetrics(this.data);this.parent(b)},widthForString:function(b){if(-1!==b.indexOf("\n")){b=b.split("\n");for(var c=0,d=0;db||b>=this.indices.length)return 0;var e=ig.system.scale,f=this.widthMap[b]*e,l=(this.height-2)*e;ig.system.context.drawImage(this.data,this.indices[b]*e,0,f,l,ig.system.getDrawPos(c),ig.system.getDrawPos(d),f,l);return this.widthMap[b]+this.letterSpacing},_loadMetrics:function(b){this.height=b.height-1;this.widthMap=[];this.indices= +[];for(var c=ig.getImagePixels(b,0,b.height-1,b.width,1),d=0,e=0,f=0;f=c.data[l]&&e&&(this.widthMap.push(e),this.indices.push(f-e),d++,e=0)}this.widthMap.push(e);this.indices.push(f-e)}});ig.Font.ALIGN={LEFT:0,RIGHT:1,CENTER:2}});ig.baked=!0; +ig.module("impact.sound").defines(function(){ig.SoundManager=ig.Class.extend({clips:{},volume:1,format:null,init:function(){for(var b=new Audio,c=0;c=b?(this.stop(),this.currentTrack.volume=this._volume,clearInterval(this._fadeInterval)):this.currentTrack.volume=b},_endedCallback:function(){this._loop?this.play():this.next()}});ig.Sound=ig.Class.extend({path:"",volume:1,currentClip:null,multiChannel:!0,init:function(b,c){this.path=b;this.multiChannel=!1!==c;this.load()},load:function(b){ig.Sound.enabled?ig.ready?ig.soundManager.load(this.path, +this.multiChannel,b):ig.addResource(this):b&&b(this.path,!0)},play:function(){ig.Sound.enabled&&(this.currentClip=ig.soundManager.get(this.path),this.currentClip.volume=ig.soundManager.volume*this.volume,this.currentClip.play())},stop:function(){this.currentClip&&(this.currentClip.pause(),this.currentClip.currentTime=0)}});ig.Sound.FORMAT={MP3:{ext:"mp3",mime:"audio/mpeg"},M4A:{ext:"m4a",mime:"audio/mp4; codecs=mp4a"},OGG:{ext:"ogg",mime:"audio/ogg; codecs=vorbis"},WEBM:{ext:"webm",mime:"audio/webm; codecs=vorbis"}, +CAF:{ext:"caf",mime:"audio/x-caf"}};ig.Sound.use=[ig.Sound.FORMAT.MP3,ig.Sound.FORMAT.OGG];ig.Sound.channels=4;ig.Sound.enabled=!0});ig.baked=!0; +ig.module("impact.loader").requires("impact.image","impact.font","impact.sound").defines(function(){ig.Loader=ig.Class.extend({resources:[],gameClass:null,status:0,done:!1,_unloaded:[],_drawStatus:0,_intervalId:0,_loadCallbackBound:null,init:function(b,c){this.gameClass=b;this.resources=c;this._loadCallbackBound=this._loadCallback.bind(this);for(var d=0;db.deltaY?ig.KEY.MWHEEL_UP:ig.KEY.MWHEEL_DOWN];c&&(this.actions[c]=!0,this.presses[c]=!0,this.delayedKeyup[c]=!0,b.stopPropagation(),b.preventDefault())}, +mousemove:function(b){var c=ig.system.scale*((ig.system.canvas.offsetWidth||ig.system.realWidth)/ig.system.realWidth),d={left:0,top:0};ig.system.canvas.getBoundingClientRect&&(d=ig.system.canvas.getBoundingClientRect());b=b.touches?b.touches[0]:b;this.mouse.x=(b.clientX-d.left)/c;this.mouse.y=(b.clientY-d.top)/c},contextmenu:function(b){this.bindings[ig.KEY.MOUSE2]&&(b.stopPropagation(),b.preventDefault())},keydown:function(b){var c=b.target.tagName;if(!("INPUT"==c||"TEXTAREA"==c))if(c="keydown"== +b.type?b.keyCode:2==b.button?ig.KEY.MOUSE2:ig.KEY.MOUSE1,0>c&&!ig.ua.mobile&&window.focus(),("touchstart"==b.type||"mousedown"==b.type)&&this.mousemove(b),c=this.bindings[c])this.actions[c]=!0,this.locks[c]||(this.presses[c]=!0,this.locks[c]=!0),b.preventDefault()},keyup:function(b){var c=b.target.tagName;if(!("INPUT"==c||"TEXTAREA"==c))if(c=this.bindings["keyup"==b.type?b.keyCode:2==b.button?ig.KEY.MOUSE2:ig.KEY.MOUSE1])this.delayedKeyup[c]=!0,b.preventDefault()},devicemotion:function(b){this.accel= +b.accelerationIncludingGravity},bind:function(b,c){0>b?this.initMouse():0ig.system.width||c>ig.system.height||(0>b+d||0>c+d)||(1!=this.alpha&&(ig.system.context.globalAlpha=this.alpha),0==this.angle?this.sheet.image.drawTile(b,c,this.tile,this.sheet.width,this.sheet.height,this.flip.x,this.flip.y):(ig.system.context.save(),ig.system.context.translate(ig.system.getDrawPos(b+this.pivot.x),ig.system.getDrawPos(c+this.pivot.y)),ig.system.context.rotate(this.angle), +this.sheet.image.drawTile(-this.pivot.x,-this.pivot.y,this.tile,this.sheet.width,this.sheet.height,this.flip.x,this.flip.y),ig.system.context.restore()),1!=this.alpha&&(ig.system.context.globalAlpha=1))}})});ig.baked=!0; +ig.module("impact.entity").requires("impact.animation","impact.impact").defines(function(){ig.Entity=ig.Class.extend({id:0,settings:{},size:{x:16,y:16},offset:{x:0,y:0},posMP:{x:0,y:0},posML:{x:0,y:0},enableReposition:!1,pos:{x:0,y:0},last:{x:0,y:0},vel:{x:0,y:0},accel:{x:0,y:0},friction:{x:0,y:0},maxVel:{x:100,y:100},zIndex:0,gravityFactor:1,standing:!1,bounciness:0,minBounceVelocity:40,anims:{},animSheet:null,currentAnim:null,health:10,type:0,checkAgainst:0,collides:0,_killed:!1,slopeStanding:{min:(44).toRad(), +max:(136).toRad()},init:function(b,c,d){this.id=++ig.Entity._lastId;this.pos.x=b;this.pos.y=c;ig.merge(this,d)},addAnim:function(b,c,d,e){if(!this.animSheet)throw"No animSheet to add the animation "+b+" to.";c=new ig.Animation(this.animSheet,c,d,e);this.anims[b]=c;this.currentAnim||(this.currentAnim=c);return c},update:function(){this.last.x=this.pos.x;this.last.y=this.pos.y;this.vel.y+=ig.game.gravity*ig.system.tick*this.gravityFactor;this.vel.x=this.getNewVelocity(this.vel.x,this.accel.x,this.friction.x, +this.maxVel.x);this.vel.y=this.getNewVelocity(this.vel.y,this.accel.y,this.friction.y,this.maxVel.y);var b=ig.game.collisionMap.trace(this.pos.x,this.pos.y,this.vel.x*ig.system.tick,this.vel.y*ig.system.tick,this.size.x,this.size.y);this.handleMovementTrace(b);this.currentAnim&&this.currentAnim.update()},getNewVelocity:function(b,c,d,e){return c?(b+c*ig.system.tick).limit(-e,e):d?(c=d*ig.system.tick,0b+c?b+c:0):b.limit(-e,e)},handleMovementTrace:function(b){this.standing=!1;b.collision.y&& +(0this.minBounceVelocity?this.vel.y*=-this.bounciness:(0this.minBounceVelocity?this.vel.x*-this.bounciness:0);if(b.collision.slope){var c=b.collision.slope;if(0this.slopeStanding.min&&c=this.health&&this.kill()},touches:function(b){return!(this.pos.x>=b.pos.x+b.size.x||this.pos.x+this.size.x<=b.pos.x||this.pos.y>=b.pos.y+b.size.y||this.pos.y+this.size.y<=b.pos.y)},distanceTo:function(b){var c=this.pos.x+this.size.x/2-(b.pos.x+b.size.x/2);b=this.pos.y+this.size.y/2-(b.pos.y+b.size.y/2);return Math.sqrt(c*c+b*b)},angleTo:function(b){return Math.atan2(b.pos.y+b.size.y/2-(this.pos.y+this.size.y/2),b.pos.x+b.size.x/2-(this.pos.x+this.size.x/ +2))},check:function(){},collideWith:function(){},ready:function(){}});ig.Entity._lastId=0;ig.Entity.COLLIDES={NEVER:0,LITE:1,PASSIVE:2,ACTIVE:4,FIXED:8};ig.Entity.TYPE={NONE:0,A:1,B:2,BOTH:3};ig.Entity.checkPair=function(b,c){b.checkAgainst&c.type&&b.check(c);c.checkAgainst&b.type&&c.check(b);b.collides&&c.collides&&b.collides+c.collides>ig.Entity.COLLIDES.ACTIVE&&ig.Entity.solveCollision(b,c)};ig.Entity.solveCollision=function(b,c){var d=null;if(b.collides==ig.Entity.COLLIDES.LITE||c.collides==ig.Entity.COLLIDES.FIXED)d= +b;else if(c.collides==ig.Entity.COLLIDES.LITE||b.collides==ig.Entity.COLLIDES.FIXED)d=c;b.last.x+b.size.x>c.last.x&&b.last.xc.last.y&&b.last.yb.minBounceVelocity?b.vel.y*=-b.bounciness:(b.standing=!0,b.vel.y=0)):(d= +(b.vel.y-c.vel.y)/2,b.vel.y=-d,c.vel.y=d,f=c.vel.x*ig.system.tick,d=ig.game.collisionMap.trace(b.pos.x,b.pos.y,f,-e/2,b.size.x,b.size.y),b.pos.y=d.pos.y,b=ig.game.collisionMap.trace(c.pos.x,c.pos.y,0,e/2,c.size.x,c.size.y),c.pos.y=b.pos.y)}});ig.baked=!0; +ig.module("impact.map").defines(function(){ig.Map=ig.Class.extend({tilesize:8,width:1,height:1,data:[[]],name:null,init:function(b,c){this.tilesize=b;this.data=c;this.height=c.length;this.width=c[0].length},getTile:function(b,c){var d=Math.floor(b/this.tilesize),e=Math.floor(c/this.tilesize);return 0<=d&&dthis.lastSlope&&(this.lastSlope=l|0)},trace:function(b,c,f,l,n,q){var g={collision:{x:!1,y:!1,slope:!1},pos:{x:b,y:c},tile:{x:0,y:0}},m=Math.ceil(Math.max(Math.abs(f),Math.abs(l))/this.tilesize);if(1l?this.tilesize:0,s=Math.max(Math.floor(f/this.tilesize),0),y=Math.min(Math.ceil((f+g)/this.tilesize),this.height);l=Math.floor((b.pos.x+u)/this.tilesize);var A=Math.floor((c+u)/this.tilesize);if(0A||A>=this.width)A=-1;if(0<=l&&lthis.lastSlope||1n?this.tilesize:0;s=Math.max(Math.floor(b.pos.x/this.tilesize),0);t=Math.min(Math.ceil((b.pos.x+q)/this.tilesize),this.width);z=Math.floor((b.pos.y+u)/this.tilesize); +y=Math.floor((f+u)/this.tilesize);if(0y||y>=this.height)y=-1;if(0<=z&&zthis.lastSlope||1u?g:0)-(p+s[0])*this.tilesize;m=l+q+(0n*-u+q*c)return t;p=Math.sqrt(c*c+u*u);r=u/p;p=-c/p;var y=g*r+m*p,s=r*y,y=p*y;if(s*s+y*y>=n*n+q*q)return t||0.5>c*(m-q)-u*(g-n);b.pos.x=f+n-s;b.pos.y=l+q-y;b.collision.slope={x:c,y:u,nx:r,ny:p};return!0}return!1}});var b=1/3,c=2/3;ig.CollisionMap.defaultTileDef={5:[0,1,1,c,!0],6:[0,c,1,b,!0],7:[0,b,1,0,!0],3:[0,1,1,0.5,!0],4:[0,0.5,1,0,!0],2:[0, +1,1,0,!0],10:[0.5,1,1,0,!0],21:[0,1,0.5,0,!0],32:[c,1,1,0,!0],43:[b,1,c,0,!0],54:[0,1,b,0,!0],27:[0,0,1,b,!0],28:[0,b,1,c,!0],29:[0,c,1,1,!0],25:[0,0,1,0.5,!0],26:[0,0.5,1,1,!0],24:[0,0,1,1,!0],11:[0,0,0.5,1,!0],22:[0.5,0,1,1,!0],33:[0,0,b,1,!0],44:[b,0,c,1,!0],55:[c,0,1,1,!0],16:[1,b,0,0,!0],17:[1,c,0,b,!0],18:[1,1,0,c,!0],14:[1,0.5,0,0,!0],15:[1,1,0,0.5,!0],13:[1,1,0,0,!0],8:[0.5,1,0,0,!0],19:[1,1,0.5,0,!0],30:[b,1,0,0,!0],41:[c,1,b,0,!0],52:[1,1,c,0,!0],38:[1,c,0,1,!0],39:[1,b,0,c,!0],40:[1,0, +0,b,!0],36:[1,0.5,0,1,!0],37:[1,0,0,0.5,!0],35:[1,0,0,1,!0],9:[1,0,0.5,1,!0],20:[0.5,0,0,1,!0],31:[1,0,c,1,!0],42:[c,0,b,1,!0],53:[b,0,0,1,!0],12:[0,0,1,0,!1],23:[1,1,0,1,!1],34:[1,0,1,1,!1],45:[0,1,0,0,!1]};ig.CollisionMap.staticNoCollision={trace:function(b,c,f,l){return{collision:{x:!1,y:!1,slope:!1},pos:{x:b+f,y:c+l},tile:{x:0,y:0}}}}});ig.baked=!0; +ig.module("impact.background-map").requires("impact.map","impact.image").defines(function(){ig.BackgroundMap=ig.Map.extend({tiles:null,scroll:{x:0,y:0},distance:1,repeat:!1,tilesetName:"",foreground:!1,enabled:!0,preRender:!1,preRenderedChunks:null,chunkSize:512,debugChunks:!1,anims:{},init:function(b,c,d){this.parent(b,c);this.setTileset(d)},setTileset:function(b){this.tilesetName=b instanceof ig.Image?b.path:b;this.tiles=new ig.Image(this.tilesetName);this.preRenderedChunks=null},setScreenPos:function(b, +c){this.scroll.x=b/this.distance;this.scroll.y=c/this.distance},preRenderMapToChunks:function(){var b=this.width*this.tilesize*ig.system.scale,c=this.height*this.tilesize*ig.system.scale,d=Math.ceil(b/this.chunkSize),e=Math.ceil(c/this.chunkSize);this.preRenderedChunks=[];for(var f=0;f=this.height||0>m){if(!this.repeat)continue;m=0=this.width||0>b){if(!this.repeat)continue;b=0c&&(c=0);ig.Timer.time+=Math.min(c,ig.Timer.maxStep)*ig.Timer.timeScale;ig.Timer._last=b}});ig.baked=!0; +ig.module("plugins.patches.user-agent-patch").requires("impact.impact").defines(function(){ig.ua.is_uiwebview=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent);ig.ua.is_safari_or_uiwebview=/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent);ig.ua.iOS6_tag=/OS 6_/i.test(navigator.userAgent);ig.ua.iOS6=(ig.ua.iPhone||ig.ua.iPad)&&ig.ua.iOS6_tag;ig.ua.iOSgt5=ig.ua.iOS&&5e&&window.focus(),("touchstart"==c.type||"mousedown"==c.type)&&this.mousemove(c),e=this.bindings[e])this.actions[e]=!0,this.locks[e]||(this.presses[e]= +!0,this.locks[e]=!0),c.stopPropagation(),c.preventDefault()}})});ig.baked=!0; +ig.module("plugins.patches.input-patch").requires("impact.input").defines(function(){ig.Input.inject({initMouse:function(){this.parent();ig.system.canvas.addEventListener("mouseleave",this.mouseleave.bind(this),!1)},mousemove:function(b){this.parent(b);try{ig.soundHandler.unlockWebAudio()}catch(c){}},mouseleave:function(){this.clearState("click")},keyup:function(b){this.parent(b);if(ig.visibilityHandler)ig.visibilityHandler.onChange("focus");try{ig.soundHandler.unlockWebAudio()}catch(c){}},clearState:function(b){this.actions[b]= +!1},clearAllState:function(){for(var b in this.actions)this.clearState(b)}})});ig.baked=!0; +ig.module("plugins.font.font-info").requires("impact.impact").defines(function(){ig.FontInfo=ig.Class.extend({fonts:[],init:function(){this.registerCssFont()},registerCssFont:function(){var b=[{ext:"woff",format:"woff"},{ext:"ttf",format:"truetype"}];this.fonts=[];for(var c in fonts){var d={};d.name=fonts[c];d.source="media/fonts/"+fonts[c];this.fonts.push(d)}if(0"):ig.$new(b)},getElementByClass:function(b){return this.JQUERYAVAILABLE?$("."+b):document.getElementsByClassName(b)}, +getElementById:function(b){return this.JQUERYAVAILABLE?0<$(b).length?$(b):null:ig.$(b)},appendChild:function(b,c){this.JQUERYAVAILABLE?b.append(c):b.appendChild(c)},appendToBody:function(b){this.JQUERYAVAILABLE?$("body").append(b):document.body.appendChild(b)},removeChild:function(b,c){this.JQUERYAVAILABLE?b.remove(c):b.removeChild(c)},removeFromBody:function(b){this.JQUERYAVAILABLE?$(b).remove():document.body.removeChild(b)},text:function(b,c){this.JQUERYAVAILABLE?b.text(c):b.innerText=c},val:function(b, +c){this.JQUERYAVAILABLE?b.val(c):b.value=c},getVal:function(b){return this.JQUERYAVAILABLE?b.val():b.value},getAttr:function(b,c){return this.JQUERYAVAILABLE?b.attr(c):b.getAttribute(c)},getText:function(b){return this.JQUERYAVAILABLE?b.text():b.innerText},html:function(b,c){this.JQUERYAVAILABLE?b.html(c):b.innerHTML=c},resize:function(b,c,d){if(this.JQUERYAVAILABLE)b.width(c.toFixed(2)),b.height(d.toFixed(2));else{var e=b.style.visibility;c="width:"+c.toFixed(2)+"px; height:"+d.toFixed(2)+"px;"; +this.attr(b,"style",c);b.style.visibility=e}},resizeOffsetLeft:function(b,c,d,e){if(this.JQUERYAVAILABLE)b.width(c.toFixed(2)),b.height(d.toFixed(2)),b.css("left",e);else{var f=b.style.visibility;c="width:"+c.toFixed(2)+"px; height:"+d.toFixed(2)+"px; left: "+e.toFixed(2)+"px;";this.attr(b,"style",c);b.style.visibility=f}},resizeOffset:function(b,c,d,e,f){if(this.JQUERYAVAILABLE)b.width(c.toFixed(2)),b.height(d.toFixed(2)),b.css("left",e),b.css("top",f);else{var l=b.style.visibility;c="width:"+c.toFixed(2)+ +"px; height:"+d.toFixed(2)+"px; left: "+e.toFixed(2)+"px; top: "+f.toFixed(2)+"px;";this.attr(b,"style",c);b.style.visibility=l}},css:function(b,c){if(this.JQUERYAVAILABLE)b.css(c);else{var d="",e;for(e in c)d+=e+":"+c[e]+";";this.attr(b,"style",d)}},getOffsets:function(b){return this.JQUERYAVAILABLE?(b=b.offset(),{left:b.left,top:b.top}):{left:b.offsetLeft,top:b.offsetTop}},attr:function(b,c,d){if("undefined"===typeof d)return this.JQUERYAVAILABLE?b.attr(c):b.getAttribute(c);this.JQUERYAVAILABLE? +b.attr(c,d):b.setAttribute(c,d)},show:function(b){b&&"undefined"!==typeof b&&(this.JQUERYAVAILABLE?(b.show(),b.css("visibility","visible")):b&&(b.style?b.style.visibility="visible":b[0]&&(b[0].style.visibility="visible")))},hide:function(b){b&&"undefined"!==typeof b&&(this.JQUERYAVAILABLE?(b.hide(),b.css("visibility","hidden")):b&&(b.style?b.style.visibility="hidden":b[0]&&(b[0].style.visibility="hidden")))},getQueryVariable:function(b){for(var c=window.location.search.substring(1).split("&"),d=0;d< +c.length;d++){var e=c[d].match(/([^=]+?)=(.+)/);if(e&&decodeURIComponent(e[1])==b)return decodeURIComponent(e[2])}},forcedDeviceDetection:function(){var b=this.getQueryVariable("device");if(b)switch(b){case "mobile":console.log("serving mobile version ...");ig.ua.mobile=!0;break;case "desktop":console.log("serving desktop version ...");ig.ua.mobile=!1;break;default:console.log("serving universal version ...")}else console.log("serving universal version ...")},forcedDeviceRotation:function(){var b= +this.getQueryVariable("force-rotate");if(b)switch(b){case "portrait":console.log("force rotate to portrait");window.orientation=0;break;case "landscape":console.log("force rotate to horizontal");window.orientation=90;break;default:alert("wrong command/type in param force-rotate. Defaulting value to portrait"),window.orientation=0}},setZIndex:function(b,c){this.JQUERYAVAILABLE?b.css("zIndex",c):b&&(b.style?b.style.zIndex=c:b[0]&&(b[0].style.zIndex=c))}})});ig.baked=!0; +ig.module("plugins.data.vector").defines(function(){Vector2=function(b,c){this.x=b||0;this.y=c||0};Vector2.prototype={valType:"number",neg:function(){this.x=-this.x;this.y=-this.y;return this},row:function(b){typeof b===this.valType&&(this.y=b);return this.y},col:function(b){typeof b===this.valType&&(this.x=b);return this.x},add:function(b){b instanceof Vector2?(this.x+=b.x,this.y+=b.y):(this.x+=b,this.y+=b);return this},sub:function(b){b instanceof Vector2?(this.x-=b.x,this.y-=b.y):(this.x-=b,this.y-= +b);return this},mul:function(b){b instanceof Vector2?(this.x*=b.x,this.y*=b.y):(this.x*=b,this.y*=b);return this},div:function(b){b instanceof Vector2?(0!=b.x&&(this.x/=b.x),0!=b.y&&(this.y/=b.y)):0!=b&&(this.x/=b,this.y/=b);return this},equals:function(b){return this.x==b.x&&this.y==b.y},dot:function(b){return this.x*b.x+this.y*b.y},cross:function(b){return this.x*b.y-this.y*b.x},length:function(){return Math.sqrt(this.dot(this))},norm:function(){return this.divide(this.length())},min:function(){return Math.min(this.x, +this.y)},max:function(){return Math.max(this.x,this.y)},toAngles:function(){return-Math.atan2(-this.y,this.x)},angleTo:function(b){return Math.acos(this.dot(b)/(this.length()*b.length()))},toArray:function(b){return[this.x,this.y].slice(0,b||2)},clone:function(){return new Vector2(this.x,this.y)},set:function(b,c){this.x=b;this.y=c;return this},unit:function(){var b=this.length();if(0d&&(d=0);0>e&&(e=0);ig.domHandler.resizeOffset(c,Math.floor(ig.sizeHandler.mobile.actualSize.x),Math.floor(ig.sizeHandler.mobile.actualSize.y),d,e);var f=!1;if(this.portraitMode?window.innerHeightwindow.innerWidth)if(this.enableStretchToFitOnAntiPortraitModeFlag)ig.domHandler.resizeOffset(c,Math.floor(window.innerWidth),Math.floor(window.innerHeight),0,0);else{var f=new Vector2(window.innerWidth/this.mobile.actualResolution.y, +window.innerHeight/this.mobile.actualResolution.x),d=Math.min(f.x,f.y),f=this.mobile.actualResolution.y*d,l=this.mobile.actualResolution.x*d,d=Math.floor(ig.sizeHandler.windowSize.x/2-f/2),e=Math.floor(ig.sizeHandler.windowSize.y/2-l/2);0>d&&(d=0);0>e&&(e=0);ig.domHandler.resizeOffset(c,Math.floor(f),Math.floor(l),d,e)}}else ig.domHandler.resize(c,Math.floor(ig.sizeHandler.mobile.actualSize.x),Math.floor(ig.sizeHandler.mobile.actualSize.y));else this.enableStretchToFitOnDesktopFlag?ig.domHandler.resize(c, +Math.floor(ig.sizeHandler.desktop.actualSize.x),Math.floor(ig.sizeHandler.desktop.actualSize.y)):(d=Math.floor(ig.sizeHandler.windowSize.x/2-ig.sizeHandler.desktop.actualSize.x/2),e=Math.floor(ig.sizeHandler.windowSize.y/2-ig.sizeHandler.desktop.actualSize.y/2),0>d&&(d=0),0>e&&(e=0),ig.domHandler.resizeOffset(c,Math.floor(ig.sizeHandler.desktop.actualSize.x),Math.floor(ig.sizeHandler.desktop.actualSize.y),d,e))}for(var n in this.adsToResize)b=ig.domHandler.getElementById("#"+n),c=ig.domHandler.getElementById("#"+ +n+"-Box"),f=(window.innerWidth-this.adsToResize[n]["box-width"])/2+"px",d=(window.innerHeight-this.adsToResize[n]["box-height"])/2+"px",b&&ig.domHandler.css(b,{width:window.innerWidth,height:window.innerHeight}),c&&ig.domHandler.css(c,{left:f,top:d});b=ig.domHandler.getElementById("#canvas");c=ig.domHandler.getOffsets(b);b=c.left;c=c.top;f=Math.min(ig.sizeHandler.scaleRatioMultiplier.x,ig.sizeHandler.scaleRatioMultiplier.y);for(n in this.dynamicClickableEntityDivs){d=ig.domHandler.getElementById("#"+ +n);if(ig.ua.mobile){var l=this.dynamicClickableEntityDivs[n].entity_pos_x,q=this.dynamicClickableEntityDivs[n].entity_pos_y,g=this.dynamicClickableEntityDivs[n].width,e=this.dynamicClickableEntityDivs[n].height;this.disableStretchToFitOnMobileFlag?(l=Math.floor(b+l*this.scaleRatioMultiplier.x)+"px",q=Math.floor(c+q*this.scaleRatioMultiplier.y)+"px",g=Math.floor(g*this.scaleRatioMultiplier.x)+"px",e=Math.floor(e*this.scaleRatioMultiplier.y)+"px"):(l=Math.floor(l*this.sizeRatio.x)+"px",q=Math.floor(q* +this.sizeRatio.y)+"px",g=Math.floor(g*this.sizeRatio.x)+"px",e=Math.floor(e*this.sizeRatio.y)+"px")}else l=this.dynamicClickableEntityDivs[n].entity_pos_x,q=this.dynamicClickableEntityDivs[n].entity_pos_y,g=this.dynamicClickableEntityDivs[n].width,e=this.dynamicClickableEntityDivs[n].height,this.enableStretchToFitOnDesktopFlag?(l=Math.floor(l*this.sizeRatio.x)+"px",q=Math.floor(q*this.sizeRatio.y)+"px",g=Math.floor(g*this.sizeRatio.x)+"px",e=Math.floor(e*this.sizeRatio.y)+"px"):(l=Math.floor(b+l* +this.scaleRatioMultiplier.x)+"px",q=Math.floor(c+q*this.scaleRatioMultiplier.y)+"px",g=Math.floor(g*this.scaleRatioMultiplier.x)+"px",e=Math.floor(e*this.scaleRatioMultiplier.y)+"px");ig.domHandler.css(d,{"float":"left",position:"absolute",left:l,top:q,width:g,height:e,"z-index":3});this.dynamicClickableEntityDivs[n]["font-size"]&&ig.domHandler.css(d,{"font-size":this.dynamicClickableEntityDivs[n]["font-size"]*f+"px"})}$("#ajaxbar").width(this.windowSize.x);$("#ajaxbar").height(this.windowSize.y)}, +resize:function(){this.sizeCalcs();this.resizeLayers()},reorient:function(){console.log("changing orientation ...");if(ig.ua.mobile){var b=!1,b=this.portraitMode?window.innerHeightwindow.innerWidth,c=this.domHandler.getElementById("#orientate"),d=this.domHandler.getElementById("#game");b?(this.domHandler.show(c),this.domHandler.hide(d)):(this.domHandler.show(d),this.domHandler.hide(c))}ig.ua.mobile?(this.resize(),this.resizeAds()):this.resize()},resizeAds:function(){for(var b in this.adsToResize){var c= +ig.domHandler.getElementById("#"+b),d=ig.domHandler.getElementById("#"+b+"-Box"),e=(window.innerWidth-this.adsToResize[b]["box-width"])/2+"px",f=(window.innerHeight-this.adsToResize[b]["box-height"])/2+"px";c&&ig.domHandler.css(c,{width:window.innerWidth,height:window.innerHeight});d&&ig.domHandler.css(d,{left:e,top:f})}},samsungFix:function(){ig.ua.android&&!(4.2>parseFloat(navigator.userAgent.slice(navigator.userAgent.indexOf("Android")+8,navigator.userAgent.indexOf("Android")+11)))&&(!(0>navigator.userAgent.indexOf("GT"))&& +!(0b?0:isNaN(b)?1:1b?0:isNaN(b)?1:1b){this.soundList[c].volume(0);break}isNaN(b)?this.soundList[c].volume(1):1b){this.soundList[c].volume(0);break}isNaN(b)?this.soundList[c].volume(1):1=b?this.jukeboxPlayer.setVolume(this.minVolume):isNaN(b)?this.jukeboxPlayer.setVolume(1): +1=d.indexOf("chrome")&&(l=c),d.indexOf("win64")&&(l=c));var n=new XMLHttpRequest;n.open("GET", +l,!0);n.responseType="arraybuffer";n.onload=function(){this.webaudio.context.decodeAudioData(n.response,function(b){this.webaudio.buffer=b;this.webaudio.source_loop={};this.bgmPlaying?this.play(null,!0):this.stop()}.bind(this),function(){console.log('Error decoding audio "'+l+'".')})}.bind(this);n.send();if(4==n.readyState&&"undefined"!==typeof Audio){this.useHTML5Audio=!0;try{new Audio}catch(q){this.useHTML5Audio=!1}this.useHTML5Audio&&(console.log("Using HTML5 Audio"),this.webaudio=null,this.audio= +new Audio,this.isSupported=!0,this.initHTML5Audio(b))}break}},initIOSWebAudioUnlock:function(){if(this.webaudio){webaudio=this.webaudio;var b=function(){var c=webaudio.context,d=c.createBuffer(1,1,22050),e=c.createBufferSource();e.buffer=d;e.connect(c.destination);"undefined"===typeof e.start?e.noteOn(0):e.start(0);setTimeout(function(){(e.playbackState===e.PLAYING_STATE||e.playbackState===e.FINISHED_STATE)&&window.removeEventListener("touchend",b,!1)}.bind(this),0)};window.addEventListener("touchend", +b,!1)}},initHTML5Audio:function(b){if(this.useHTML5Audio&&this.audio){var c=this.audio;this.codecs={};this.codecs={mp3:!!c.canPlayType("audio/mpeg;").replace(/^no$/,""),opus:!!c.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!c.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!c.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),aac:!!c.canPlayType("audio/aac;").replace(/^no$/,""),m4a:!!(c.canPlayType("audio/x-m4a;")||c.canPlayType("audio/m4a;")||c.canPlayType("audio/aac;")).replace(/^no$/, +""),mp4:!!(c.canPlayType("audio/x-mp4;")||c.canPlayType("audio/mp4;")||c.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!c.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")};this.is={ff:Boolean(null!=window.mozInnerScreenX&&/firefox/.test(navigator.userAgent.toLowerCase())),ie:Boolean(document.all&&!window.opera),opera:Boolean(window.opera),chrome:Boolean(window.chrome),safari:Boolean(!window.chrome&&/safari/.test(navigator.userAgent.toLowerCase())&&window.getComputedStyle&&!window.globalStorage&& +!window.opera)};this.playDelay=-60;this.stopDelay=30;this.is.chrome&&(this.playDelay=-25);this.is.chrome&&(this.stopDelay=25);this.is.ff&&(this.playDelay=-25);this.is.ff&&(this.stopDelay=85);this.is.opera&&(this.playDelay=5);this.is.opera&&(this.stopDelay=0);for(var d in b){this.soundList[d]=d;var e=b[d].path,c=e+"."+ig.Sound.FORMAT.OGG.ext,e=e+"."+ig.Sound.FORMAT.MP3.ext,f=null;this.codecs[ig.Sound.FORMAT.OGG.ext.toLowerCase()]?f=c:this.codecs[ig.Sound.FORMAT.MP3.ext.toLowerCase()]&&(f=e);if(f){ig.ua.mobile? +ig.ua.iOS&&(f=e):(b=navigator.userAgent.toLowerCase(),-1!=b.indexOf("safari")&&-1>=b.indexOf("chrome")&&(f=e));this.audio.addEventListener("error",function(){this.audio.error&&4===this.audio.error.code&&(this.isSupported=!1)},!1);this.audio.src=f;this.audio._pos=0;this.audio.preload="auto";this.audio.volume=this._volume;this.inactiveAudio=new Audio;this.inactiveAudio.src=f;this.inactiveAudio._pos=0;this.inactiveAudio.preload="auto";this.inactiveAudio.volume=this._volume;this.inactiveAudio.load(); +var l=function(){this._duration=this.audio.duration;this._loaded||(this._loaded=!0);this.bgmPlaying?this.play(null,!0):this.stop();this.audio.removeEventListener("canplaythrough",l,!1)}.bind(this);this.audio.addEventListener("canplaythrough",l,!1);this.audio.load();break}}}},play:function(b,c){if(this.isSupported)if(this.bgmPlaying=!0,this.webaudio){if(!c&&this.reinitOnPlay&&this.webaudio.source_loop.buffer==this.webaudio.buffer){if(this.webaudio.source_loop._playing&&(this.webaudio.source_loop[this.webaudio.compatibility.stop](0), +this.webaudio.source_loop._playing=!1,this.pausedTime+=this.webaudio.context.currentTime-this.webaudio.source_loop._startTime,this.pausedTime%=this.webaudio.source_loop.buffer.duration,this.webaudio.source_loop._startTime=0,"noteOn"===this.webaudio.compatibility.start))this.webaudio.source_once[this.webaudio.compatibility.stop](0);try{this.webaudio.context.close();this.webaudio.context=new this.AudioContext;this.webaudio.gainNode=this.webaudio.context.createGain();this.webaudio.gainNode.connect(this.webaudio.context.destination); +this.webaudio.gainNode.gain.value=this._volume;var d="start",e="stop",f=this.webaudio.context.createBufferSource();"function"!==typeof f.start&&(d="noteOn");this.webaudio.compatibility.start=d;"function"!==typeof f.stop&&(e="noteOff");this.webaudio.compatibility.stop=e;this.webaudio.source_loop={};this.play(null,!0)}catch(l){}}if(this.webaudio.buffer){if(!this.muteFlag&&(this.bgmPlaying=!0,!this.webaudio.source_loop._playing)){this.webaudio.source_loop=this.webaudio.context.createBufferSource();this.webaudio.source_loop.buffer= +this.webaudio.buffer;this.webaudio.source_loop.loop=!0;this.webaudio.source_loop.connect(this.webaudio.gainNode);if(null==b||isNaN(b))b=0,this.pausedTime&&(b=this.pausedTime);this.webaudio.source_loop._startTime=this.webaudio.context.currentTime;if("noteOn"===this.webaudio.compatibility.start)this.webaudio.source_once=this.webaudio.context.createBufferSource(),this.webaudio.source_once.buffer=this.webaudio.buffer,this.webaudio.source_once.connect(this.webaudio.gainNode),this.webaudio.source_once.noteGrainOn(0, +b,this.webaudio.buffer.duration-b),this.webaudio.source_loop[this.webaudio.compatibility.start](this.webaudio.context.currentTime+(this.webaudio.buffer.duration-b));else this.webaudio.source_loop[this.webaudio.compatibility.start](0,b);this.webaudio.source_loop._playing=!0}}else this.bgmPlaying=!0}else if(this.audio){var n=this.audio;if(!this.muteFlag)if(this.bgmPlaying=!0,isNaN(b)&&(b=0,this.pausedTime&&(b=this.pausedTime)),d=this._duration-b,this._onEndTimer&&(clearTimeout(this._onEndTimer),this._onEndTimer= +null),this._onEndTimer=setTimeout(function(){this.audio.currentTime=0;this.audio.pause();this.pausedTime=0;if(this.inactiveAudio){var b=this.audio;this.audio=this.inactiveAudio;this.inactiveAudio=b}this.play()}.bind(this),1E3*d+this.playDelay),4===n.readyState||!n.readyState&&navigator.isCocoonJS)n.readyState=4,n.currentTime=b,n.muted=this.muteFlag||n.muted,n.volume=this._volume,setTimeout(function(){n.play()},0);else{clearTimeout(this._onEndTimer);this._onEndTimer=null;var q=function(){typeof("function"== +this.play)&&(this.play(),n.removeEventListener("canplaythrough",q,!1))}.bind(this);n.addEventListener("canplaythrough",q,!1)}}},stop:function(){this.bgmPlaying=!1;if(this.isSupported)if(this.webaudio){if(this.webaudio.source_loop._playing&&(this.webaudio.source_loop[this.webaudio.compatibility.stop](0),this.webaudio.source_loop._playing=!1,this.pausedTime+=this.webaudio.context.currentTime-this.webaudio.source_loop._startTime,this.pausedTime%=this.webaudio.source_loop.buffer.duration,this.webaudio.source_loop._startTime= +0,"noteOn"===this.webaudio.compatibility.start))this.webaudio.source_once[this.webaudio.compatibility.stop](0)}else if(this.audio){var b=this.audio;4==b.readyState&&(this.pausedTime=b.currentTime,b.currentTime=0,b.pause(),clearTimeout(this._onEndTimer),this._onEndTimer=null)}},volume:function(b){if(isNaN(b)||null==b)return this.getVolume();this.isSupported&&(this._volume=b,0>this._volume?this._volume=0:1=b&&(b=c.settings.spritemap.music.start,ig.ua.android?this.forcelooped||(c.play(b,!0),this.forcelooped=!0,setTimeout(function(){ig.soundHandler.forcelooped=!1},d)):c.setCurrentTime(b)))}else"ImpactMusicPlayer"==this.bgmPlayer.tagName&&(null!=window.mozInnerScreenX&&/firefox/.test(navigator.userAgent.toLowerCase()),b=Boolean(window.chrome),!window.chrome&& +/safari/.test(navigator.userAgent.toLowerCase()),d=0.1,ig.ua.mobile&&(d=0.115,ig.ua.android&&(d=0.45,b&&(d=0.3))),c=0,"mp3"==ig.soundManager.format.ext&&(c=0.05),ig.music.currentTrack&&(b=ig.music.currentTrack.duration-d,ig.music.currentTrack.currentTime>=b&&(ig.ua.android?this.forcelooped||(ig.music.currentTrack.pause(),ig.music.currentTrack.currentTime=c,ig.music.currentTrack.play(),this.forcelooped=!0,setTimeout(function(){ig.soundHandler.forcelooped=!1},d)):ig.music.currentTrack.currentTime=c)))}}})}); +ig.baked=!0; +ig.module("plugins.handlers.visibility-handler").requires("plugins.audio.sound-handler").defines(function(){ig.VisibilityHandler=ig.Class.extend({version:"1.1.1",config:{muteOnBlur:!0,pauseOnBlur:!0,clearInputStateOnBlur:!0,allowResumeWithoutFocus:{desktop:!0,mobile:{kaios:!1,"default":!0}},handlerDelay:{desktop:0,mobile:{kaios:0,"default":0}},autoFocusOnResume:{desktop:!0,mobile:{kaios:!1,"default":!0}},autoFocusAfterResume:{desktop:!0,mobile:{kaios:!1,"default":!0}}},browserPrefixes:["o","ms","moz", +"webkit"],browserPrefix:null,hiddenPropertyName:null,visibilityEventName:null,visibilityStateName:null,isShowingOverlay:!1,isFocused:!1,isPaused:!1,init:function(){this.initVisibilityHandler();this.initFocusHandler();this.initPageTransitionHandler();ig.visibilityHandler=this},pauseHandler:function(){!0===this.config.clearInputStateOnBlur&&"undefined"!==typeof ig.input&&null!==ig.input&&"function"===typeof ig.input.clearAllState&&ig.input.clearAllState();!0===this.config.pauseOnBlur&&"undefined"!== +typeof ig.game&&null!==ig.game&&"undefined"!==typeof ig.game.pauseGame&&ig.game.pauseGame();!0===this.config.muteOnBlur&&"undefined"!==typeof ig.soundHandler&&null!==ig.soundHandler&&"function"===typeof ig.soundHandler.forceMuteAll&&ig.soundHandler.forceMuteAll()},resumeHandler:function(){"undefined"!==typeof ig.input&&null!==ig.input&&"function"===typeof ig.input.clearAllState&&ig.input.clearAllState();"undefined"!==typeof ig.soundHandler&&null!==ig.soundHandler&&"function"===typeof ig.soundHandler.forceUnMuteAll&& +ig.soundHandler.forceUnMuteAll();"undefined"!==typeof ig.game&&null!==ig.game&&"undefined"!==typeof ig.game.resumeGame&&ig.game.resumeGame()},initVisibilityHandler:function(){this.browserPrefix=this.getBrowserPrefix();this.hiddenPropertyName=this.getHiddenPropertyName(this.browserPrefix);this.visibilityEventName=this.getVisibilityEventName(this.browserPrefix);this.visibilityStateName=this.getVisibilityStateName(this.browserPrefix);this.visibilityEventName&&document.addEventListener(this.visibilityEventName, +this.onChange.bind(this),!0)},initFocusHandler:function(){window.addEventListener("blur",this.onChange.bind(this),!0);document.addEventListener("blur",this.onChange.bind(this),!0);document.addEventListener("focusout",this.onChange.bind(this),!0);window.addEventListener("focus",this.onChange.bind(this),!0);document.addEventListener("focus",this.onChange.bind(this),!0);document.addEventListener("focusin",this.onChange.bind(this),!0)},initPageTransitionHandler:function(){window.addEventListener("pagehide", +this.onChange.bind(this),!0);window.addEventListener("pageshow",this.onChange.bind(this),!0)},getBrowserPrefix:function(){var b=null;this.browserPrefixes.forEach(function(c){if(this.getHiddenPropertyName(c)in document)return b=c}.bind(this));return b},getHiddenPropertyName:function(b){return b?b+"Hidden":"hidden"},getVisibilityEventName:function(b){return(b?b:"")+"visibilitychange"},getVisibilityStateName:function(b){return b?b+"VisibilityState":"visibilityState"},hasView:function(){return!(document[this.hiddenPropertyName]|| +"visible"!==document[this.visibilityStateName])},hasFocus:function(){return document.hasFocus()||this.isFocused},onOverlayShow:function(){this.systemPaused();this.isShowingOverlay=!0},onOverlayHide:function(){this.isShowingOverlay=!1;this.systemResumed()},systemPaused:function(){if(this.isPaused)return!1;this.pauseHandler();return this.isPaused=!0},systemResumed:function(){if(!this.isPaused||!this.hasView()||this.isShowingOverlay)return!1;if(!this.hasFocus())if(ig.ua.mobile)if(this.isKaiOS()){if(!this.config.allowResumeWithoutFocus.mobile.kaios)return!1}else{if(!this.config.allowResumeWithoutFocus.mobile.default)return!1}else if(!this.config.allowResumeWithoutFocus.desktop)return!1; +this.focusOnResume();this.resumeHandler();this.focusAfterResume();this.isPaused=!1;return!0},isKaiOS:function(){return/KAIOS/.test(navigator.userAgent)||!1},focusOnResume:function(){return ig.ua.mobile?this.isKaiOS()?this.config.autoFocusOnResume.mobile.kaios:this.config.autoFocusOnResume.mobile.default:this.config.autoFocusOnResume.desktop},focusAfterResume:function(){return ig.ua.mobile?this.isKaiOS()?this.config.autoFocusAfterResume.mobile.kaios:this.config.autoFocusAfterResume.mobile.default: +this.config.autoFocusAfterResume.desktop},focus:function(b){window.focus&&b&&window.focus()},handleDelayedEvent:function(b){if(!this.hasView()||"pause"===b.type||"pageHide"===b.type||"blur"===b.type||"focusout"===b.type){if("blur"===b.type||"focusout"===b.type){if(b.srcElement&&("INPUT"===b.srcElement.tagName||"TEXTAREA"===b.srcElement.tagName))return!1;this.isFocused=!1}return this.systemPaused(b)}if("focus"===b.type||"focusin"===b.type)this.isFocused=!0;return this.systemResumed(b)},startDelayedEventHandler:function(b){ig.ua.mobile? +this.isKaiOS()?0";(document.getElementById("play").parentNode||document.getElementById("ajaxbar")).appendChild(this.desktopCoverDIV);try{"undefined"!==typeof ig.sizeHandler?"undefined"!==typeof ig.sizeHandler.coreDivsToResize&&(ig.sizeHandler.coreDivsToResize.push("#"+this.tapToStartDivId),"function"===typeof ig.sizeHandler.reorient&&ig.sizeHandler.reorient()):"undefined"!==typeof coreDivsToResize&&(coreDivsToResize.push(this.tapToStartDivId),"function"===typeof sizeHandler&& +sizeHandler())}catch(c){console.log(c)}this.desktopCoverDIV.addEventListener("click",function(){ig.soundHandler.unlockWebAudio();this.setAttribute("style","visibility: hidden;");"function"===typeof b&&b()})}},draw:function(){this._drawStatus+=(this.status-this._drawStatus)/5;var b=ig.system.context;b.save();b.font="24px amcapEternal";b.fillText("fontPreload",0,0);b.clearRect(0,0,ig.system.width,ig.system.height);this.bgImg.draw(0,0);var c=this.loadingBar.width,d=this.loadingBar.height/2,e=(ig.system.width- +c)/2,f=0.7*ig.system.height;b.drawImage(this.loadingBar.data,0,d,c,d,e,f,c,d);c*=this._drawStatus;b.drawImage(this.loadingBar.data,0,0,c,d,e,f,c,d);b.restore();b=e+c;d=f+0.5*d;ig.system.context.save();ig.system.context.translate(ig.system.getDrawPos(b),ig.system.getDrawPos(d));ig.system.context.rotate(2*this._drawStatus*Math.PI);ig.system.context.drawImage(this.ball.data,-0.5*this.ball.width,-0.5*this.ball.height);ig.system.context.restore();this.drawVersion()},drawVersion:function(){if("undefined"!== +typeof _SETTINGS.Versioning&&null!==_SETTINGS.Versioning&&_SETTINGS.Versioning.DrawVersion){var b=ig.system.context;fontSize=_SETTINGS.Versioning.FontSize;fontFamily=_SETTINGS.Versioning.FontFamily;fillStyle=_SETTINGS.Versioning.FillStyle;b.save();b.textBaseline="bottom";b.textAlign="left";b.font=fontSize+" "+fontFamily||"10px Arial";b.fillStyle=fillStyle||"#ffffff";b.fillText("v"+_SETTINGS.Versioning.Version+"+build."+_SETTINGS.Versioning.Build,10,ig.system.height-10);b.restore()}}})}); +ig.baked=!0; +ig.module("plugins.tween").requires("impact.entity").defines(function(){Array.prototype.indexOf||(Array.prototype.indexOf=function(b){for(var c=0;c(b*=2)?0.5*b*b:-0.5*(--b*(b-2)-1)};ig.Tween.Easing.Cubic.EaseIn=function(b){return b*b*b};ig.Tween.Easing.Cubic.EaseOut=function(b){return--b*b*b+1};ig.Tween.Easing.Cubic.EaseInOut=function(b){return 1>(b*=2)?0.5*b*b*b:0.5*((b-=2)*b*b+2)};ig.Tween.Easing.Quartic.EaseIn=function(b){return b*b*b*b};ig.Tween.Easing.Quartic.EaseOut=function(b){return-(--b*b*b*b-1)};ig.Tween.Easing.Quartic.EaseInOut=function(b){return 1>(b*=2)?0.5*b*b*b*b:-0.5*((b-=2)*b*b*b-2)};ig.Tween.Easing.Quintic.EaseIn= +function(b){return b*b*b*b*b};ig.Tween.Easing.Quintic.EaseOut=function(b){return(b-=1)*b*b*b*b+1};ig.Tween.Easing.Quintic.EaseInOut=function(b){return 1>(b*=2)?0.5*b*b*b*b*b:0.5*((b-=2)*b*b*b*b+2)};ig.Tween.Easing.Sinusoidal.EaseIn=function(b){return-Math.cos(b*Math.PI/2)+1};ig.Tween.Easing.Sinusoidal.EaseOut=function(b){return Math.sin(b*Math.PI/2)};ig.Tween.Easing.Sinusoidal.EaseInOut=function(b){return-0.5*(Math.cos(Math.PI*b)-1)};ig.Tween.Easing.Exponential.EaseIn=function(b){return 0==b?0:Math.pow(2, +10*(b-1))};ig.Tween.Easing.Exponential.EaseOut=function(b){return 1==b?1:-Math.pow(2,-10*b)+1};ig.Tween.Easing.Exponential.EaseInOut=function(b){return 0==b?0:1==b?1:1>(b*=2)?0.5*Math.pow(2,10*(b-1)):0.5*(-Math.pow(2,-10*(b-1))+2)};ig.Tween.Easing.Circular.EaseIn=function(b){return-(Math.sqrt(1-b*b)-1)};ig.Tween.Easing.Circular.EaseOut=function(b){return Math.sqrt(1- --b*b)};ig.Tween.Easing.Circular.EaseInOut=function(b){return 1>(b/=0.5)?-0.5*(Math.sqrt(1-b*b)-1):0.5*(Math.sqrt(1-(b-=2)*b)+1)};ig.Tween.Easing.Elastic.EaseIn= +function(b){var c,d=0.1,e=0.4;if(0==b)return 0;if(1==b)return 1;e||(e=0.3);!d||1>d?(d=1,c=e/4):c=e/(2*Math.PI)*Math.asin(1/d);return-(d*Math.pow(2,10*(b-=1))*Math.sin(2*(b-c)*Math.PI/e))};ig.Tween.Easing.Elastic.EaseOut=function(b){var c,d=0.1,e=0.4;if(0==b)return 0;if(1==b)return 1;e||(e=0.3);!d||1>d?(d=1,c=e/4):c=e/(2*Math.PI)*Math.asin(1/d);return d*Math.pow(2,-10*b)*Math.sin(2*(b-c)*Math.PI/e)+1};ig.Tween.Easing.Elastic.EaseInOut=function(b){var c,d=0.1,e=0.4;if(0==b)return 0;if(1==b)return 1; +e||(e=0.3);!d||1>d?(d=1,c=e/4):c=e/(2*Math.PI)*Math.asin(1/d);return 1>(b*=2)?-0.5*d*Math.pow(2,10*(b-=1))*Math.sin(2*(b-c)*Math.PI/e):0.5*d*Math.pow(2,-10*(b-=1))*Math.sin(2*(b-c)*Math.PI/e)+1};ig.Tween.Easing.Back.EaseIn=function(b){return b*b*(2.70158*b-1.70158)};ig.Tween.Easing.Back.EaseOut=function(b){return(b-=1)*b*(2.70158*b+1.70158)+1};ig.Tween.Easing.Back.EaseInOut=function(b){return 1>(b*=2)?0.5*b*b*(3.5949095*b-2.5949095):0.5*((b-=2)*b*(3.5949095*b+2.5949095)+2)};ig.Tween.Easing.Bounce.EaseIn= +function(b){return 1-ig.Tween.Easing.Bounce.EaseOut(1-b)};ig.Tween.Easing.Bounce.EaseOut=function(b){return(b/=1)<1/2.75?7.5625*b*b:b<2/2.75?7.5625*(b-=1.5/2.75)*b+0.75:b<2.5/2.75?7.5625*(b-=2.25/2.75)*b+0.9375:7.5625*(b-=2.625/2.75)*b+0.984375};ig.Tween.Easing.Bounce.EaseInOut=function(b){return 0.5>b?0.5*ig.Tween.Easing.Bounce.EaseIn(2*b):0.5*ig.Tween.Easing.Bounce.EaseOut(2*b-1)+0.5}});ig.baked=!0; +ig.module("plugins.url-parameters").defines(function(){ig.UrlParameters=ig.Class.extend({init:function(){switch(getQueryVariable("iphone")){case "true":ig.ua.iPhone=!0,console.log("iPhone mode")}var b=getQueryVariable("webview");if(b)switch(b){case "true":ig.ua.is_uiwebview=!0,console.log("webview mode")}if(b=getQueryVariable("debug"))switch(b){case "true":ig.game.showDebugMenu(),console.log("debug mode")}switch(getQueryVariable("view")){case "stats":ig.game.resetPlayerStats(),ig.game.endGame()}getQueryVariable("ad")}})}); +ig.baked=!0;ig.module("plugins.jukebox").defines(function(){ig.Jukebox=ig.Class.extend({init:function(){this.player=new jukebox.Player({resources:["media/audio/game/bgm.mp3","media/audio/game/bgm.ogg"],autoplay:"music",spritemap:{music:{start:0,end:8.342,loop:!0}}})}})});ig.baked=!0; +ig.module("plugins.director").requires("impact.impact").defines(function(){ig.Director=ig.Class.extend({init:function(b,c){this.game=b;this.levels=[];this.currentLevel=0;this.append(c)},loadLevel:function(b){for(var c in ig.sizeHandler.dynamicClickableEntityDivs){var d=ig.domHandler.getElementById("#"+c);ig.domHandler.hide(d)}this.currentLevel=b;this.game.loadLevel(this.levels[b]);return!0},loadLevelWithoutEntities:function(b){this.currentLevel=b;this.game.loadLevelWithoutEntities(this.levels[b]); +return!0},append:function(b){newLevels=[];return"object"===typeof b?(b.constructor===[].constructor?newLevels=b:newLevels[0]=b,this.levels=this.levels.concat(newLevels),!0):!1},nextLevel:function(){return this.currentLevel+1this.getFloat(b)&&this.set(b,c)},remove:function(b){if(!this.isCapable())return null;window.localStorage.removeItem(b)},clear:function(){if(!this.isCapable())return null; +window.localStorage.clear()}})});ig.baked=!0; +ig.module("plugins.webaudio-music-player").defines(function(){WebaudioMusicPlayer=ig.Class.extend({bgmPlaying:!1,isSupported:!1,muteFlag:!1,pausedTime:0,webaudio:null,useHTML5Audio:!1,audio:null,inactiveAudio:null,codecs:null,_volume:1,soundList:{},init:function(b){this.webaudio={compatibility:{},gainNode:null,buffer:null,source_loop:{},source_once:{}};try{this.AudioContext=window.AudioContext||window.webkitAudioContext,this.webaudio.context=new this.AudioContext,this.isSupported=!0}catch(c){console.log("Web Audio API not supported in this browser."), +this.webaudio=null,this.useHTML5Audio=!0}if(this.useHTML5Audio)if("undefined"!==typeof Audio)try{new Audio}catch(d){this.useHTML5Audio=!1}else this.useHTML5Audio=!1;this.useHTML5Audio&&(this.audio=new Audio,this.isSupported=!0,this.initHTML5Audio(b));if(!this.isSupported)return null;this.webaudio&&this.initWebAudio(b)},initWebAudio:function(b){ig.ua.iOS&&this.initIOSWebAudioUnlock();this.webaudio.gainNode=this.webaudio.context.createGain();this.webaudio.gainNode.connect(this.webaudio.context.destination); +this.webaudio.gainNode.gain.value=this._volume;var c="start",d="stop",e=this.webaudio.context.createBufferSource();"function"!==typeof e.start&&(c="noteOn");this.webaudio.compatibility.start=c;"function"!==typeof e.stop&&(d="noteOff");this.webaudio.compatibility.stop=d;for(var f in b){this.soundList[f]=f;c=b[f].path;b=c+"."+ig.Sound.FORMAT.MP3.ext;var l=c+"."+ig.Sound.FORMAT.OGG.ext;ig.ua.mobile?ig.ua.iOS&&(l=b):(c=navigator.userAgent.toLowerCase(),-1!=c.indexOf("safari")&&-1>=c.indexOf("chrome")&& +(l=b));var n=new XMLHttpRequest;n.open("GET",l,!0);n.responseType="arraybuffer";n.onload=function(){this.webaudio.context.decodeAudioData(n.response,function(b){this.webaudio.buffer=b;this.webaudio.source_loop={};this.bgmPlaying?this.play():this.stop()}.bind(this),function(){console.log('Error decoding audio "'+l+'".')})}.bind(this);n.send();break}},initIOSWebAudioUnlock:function(){if(this.webaudio){webaudio=this.webaudio;var b=function(){var c=webaudio.context,d=c.createBuffer(1,1,22050),e=c.createBufferSource(); +e.buffer=d;e.connect(c.destination);"undefined"===typeof e.start?e.noteOn(0):e.start(0);setTimeout(function(){(e.playbackState===e.PLAYING_STATE||e.playbackState===e.FINISHED_STATE)&&window.removeEventListener("touchend",b,!1)},0)};window.addEventListener("touchend",b,!1)}},initHTML5Audio:function(b){if(this.useHTML5Audio&&this.audio){var c=this.audio;this.codecs={};this.codecs={mp3:!!c.canPlayType("audio/mpeg;").replace(/^no$/,""),opus:!!c.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""), +ogg:!!c.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!c.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),aac:!!c.canPlayType("audio/aac;").replace(/^no$/,""),m4a:!!(c.canPlayType("audio/x-m4a;")||c.canPlayType("audio/m4a;")||c.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(c.canPlayType("audio/x-mp4;")||c.canPlayType("audio/mp4;")||c.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!c.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")};this.is={ff:Boolean(null!= +window.mozInnerScreenX&&/firefox/.test(navigator.userAgent.toLowerCase())),ie:Boolean(document.all&&!window.opera),opera:Boolean(window.opera),chrome:Boolean(window.chrome),safari:Boolean(!window.chrome&&/safari/.test(navigator.userAgent.toLowerCase())&&window.getComputedStyle&&!window.globalStorage&&!window.opera)};this.playDelay=-60;this.stopDelay=30;this.is.chrome&&(this.playDelay=-25);this.is.chrome&&(this.stopDelay=25);this.is.ff&&(this.playDelay=-25);this.is.ff&&(this.stopDelay=85);this.is.opera&& +(this.playDelay=5);this.is.opera&&(this.stopDelay=0);for(var d in b){this.soundList[d]=d;var e=b[d].path,c=e+"."+ig.Sound.FORMAT.OGG.ext,e=e+"."+ig.Sound.FORMAT.MP3.ext,f=null;this.codecs[ig.Sound.FORMAT.OGG.ext.toLowerCase()]?f=c:this.codecs[ig.Sound.FORMAT.MP3.ext.toLowerCase()]&&(f=e);if(f){ig.ua.mobile?ig.ua.iOS&&(f=e):(b=navigator.userAgent.toLowerCase(),-1!=b.indexOf("safari")&&-1>=b.indexOf("chrome")&&(f=e));this.audio.addEventListener("error",function(){this.audio.error&&4===this.audio.error.code&& +(this.isSupported=!1)},!1);this.audio.src=f;this.audio._pos=0;this.audio.preload="auto";this.audio.volume=this._volume;this.inactiveAudio=new Audio;this.inactiveAudio.src=f;this.inactiveAudio._pos=0;this.inactiveAudio.preload="auto";this.inactiveAudio.volume=this._volume;this.inactiveAudio.load();var l=function(){this._duration=this.audio.duration;this._loaded||(this._loaded=!0);this.bgmPlaying?this.play():this.stop();this.audio.removeEventListener("canplaythrough",l,!1)}.bind(this);this.audio.addEventListener("canplaythrough", +l,!1);this.audio.load();break}}}},play:function(b){if(this.isSupported)if(this.bgmPlaying=!0,this.webaudio)if(this.webaudio.buffer){if(!this.muteFlag&&(this.bgmPlaying=!0,!this.webaudio.source_loop._playing)){this.webaudio.source_loop=this.webaudio.context.createBufferSource();this.webaudio.source_loop.buffer=this.webaudio.buffer;this.webaudio.source_loop.loop=!0;this.webaudio.source_loop.connect(this.webaudio.gainNode);isNaN(b)&&(b=0,this.pausedTime&&(b=this.pausedTime));this.webaudio.source_loop._startTime= +this.webaudio.context.currentTime;if("noteOn"===this.webaudio.compatibility.start)this.webaudio.source_once=this.webaudio.context.createBufferSource(),this.webaudio.source_once.buffer=this.webaudio.buffer,this.webaudio.source_once.connect(this.webaudio.gainNode),this.webaudio.source_once.noteGrainOn(0,b,this.webaudio.buffer.duration-b),this.webaudio.source_loop[this.webaudio.compatibility.start](this.webaudio.context.currentTime+(this.webaudio.buffer.duration-b));else this.webaudio.source_loop[this.webaudio.compatibility.start](0, +b);this.webaudio.source_loop._playing=!0}}else this.bgmPlaying=!0;else if(this.audio){var c=this.audio;if(!this.muteFlag){this.bgmPlaying=!0;isNaN(b)&&(b=0,this.pausedTime&&(b=this.pausedTime));var d=this._duration-b;this._onEndTimer&&(clearTimeout(this._onEndTimer),this._onEndTimer=null);this._onEndTimer=setTimeout(function(){this.audio.currentTime=0;this.audio.pause();this.pausedTime=0;if(this.inactiveAudio){var b=this.audio;this.audio=this.inactiveAudio;this.inactiveAudio=b}this.play()}.bind(this), +1E3*d+this.playDelay);4===c.readyState||!c.readyState&&navigator.isCocoonJS?(c.readyState=4,c.currentTime=b,c.muted=this.muteFlag||c.muted,c.volume=this._volume,setTimeout(function(){c.play()},0)):(clearTimeout(this._onEndTimer),this._onEndTimer=null,function(){var b=function(){this.play();c.removeEventListener("canplaythrough",b,!1)}.bind(this);c.addEventListener("canplaythrough",b,!1)}())}}},stop:function(){this.bgmPlaying=!1;if(this.isSupported)if(this.webaudio){if(this.webaudio.source_loop._playing&& +(this.webaudio.source_loop[this.webaudio.compatibility.stop](0),this.webaudio.source_loop._playing=!1,this.pausedTime+=this.webaudio.context.currentTime-this.webaudio.source_loop._startTime,this.pausedTime%=this.webaudio.source_loop.buffer.duration,this.webaudio.source_loop._startTime=0,"noteOn"===this.webaudio.compatibility.start))this.webaudio.source_once[this.webaudio.compatibility.stop](0)}else if(this.audio){var b=this.audio;b.currentTime&&(this.pausedTime=b.currentTime,b.currentTime=0,b.pause(), +clearTimeout(this._onEndTimer),this._onEndTimer=null)}},volume:function(b){this.isSupported&&(this._volume=b,0>this._volume?this._volume=0:1this.getFloat(b)&&this.set(b,c)},remove:function(b){if(!this.isCapable())return null;window.localStorage.removeItem(b)},clear:function(){if(!this.isCapable())return null;window.localStorage.clear()}})}); +ig.baked=!0; +ig.module("plugins.io.mouse").requires("plugins.data.vector").defines(function(){Mouse=ig.Class.extend({pos:new Vector2(0,0),bindings:{click:[ig.KEY.MOUSE1]},init:function(){ig.input.initMouse();for(var b in this.bindings){this[b]=b;for(var c=0;cd?d:b},pollGamepads:function(){if(this.isSupported){this.leftStick.x=0;this.leftStick.y=0;this.rightStick.x=0;this.rightStick.y=0;this.list=navigator.getGamepads();for(var b in this.bindings){for(var c= +!1,d=0;d=b-40&&this.touches[c].x<=b+40&&this.touches.splice(c,1)}}if(ig.visibilityHandler)ig.visibilityHandler.onChange("focus");try{ig.soundHandler.unlockWebAudio()}catch(e){}},windowKeyDown:function(b){var c=parseInt(ig.system.canvas.offsetWidth)||ig.system.realWidth,d=parseInt(ig.system.canvas.offsetHeight)||ig.system.realHeight,c=ig.system.scale*(c/ig.system.realWidth),d=ig.system.scale* +(d/ig.system.realHeight);if(window.navigator.msPointerEnabled){var e={left:0,top:0};ig.system.canvas.getBoundingClientRect&&(e=ig.system.canvas.getBoundingClientRect());b=b.changedTouches?b.changedTouches:[b];for(var f=0;fthis.getFloat(b)&&this.set(b,c)},get:function(b){return"undefined"==typeof this.tempData[b]?null:JSON.parse(this.tempData[b])},getInt:function(b){return~~this.get(b)},getFloat:function(b){return parseFloat(this.get(b))}, +getBool:function(b){return!!this.get(b)},isSet:function(b){return null!==this.get(b)},remove:function(b){delete this.tempData[b]},clear:function(){this.tempData={}}})});ig.baked=!0; +ig.module("plugins.io.io-manager").requires("plugins.io.storage","plugins.io.mouse","plugins.io.keyboard","plugins.io.gamepad","plugins.io.multitouch","plugins.io.multitouch-input","plugins.io.gamepad-input","plugins.io.fake-storage").defines(function(){IoManager=ig.Class.extend({version:"1.0.0",storage:null,localStorageSupport:!1,mouse:null,keyboard:null,multitouch:null,gamepad:null,init:function(){ig.multitouchInput=new ig.MultitouchInput;ig.gamepadInput=new ig.GamepadInput;this.unbindAll();this.initStorage(); +this.initMouse();this.initKeyboard()},unbindAll:function(){ig.input.unbindAll();ig.gamepadInput.unbindAll()},initStorage:function(){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),this.storage=new ig.Storage}catch(b){console.log("using fake storage"),this.storage=new ig.FakeStorage}},initMouse:function(){this.mouse=new Mouse},initKeyboard:function(){this.keyboard=new Keyboard},initMultitouch:function(){this.multitouch=new Multitouch},initGamepad:function(){this.gamepad= +new Gamepad},press:function(b){return ig.input.pressed(b)||this.gamepad&&this.gamepad.press(b)?!0:!1},held:function(b){return ig.input.state(b)||this.gamepad&&this.gamepad.state(b)?!0:!1},release:function(b){return ig.input.released(b)||this.gamepad&&this.gamepad.released(b)?!0:!1},getClickPos:function(){return this.mouse.getPos()},getLastClickPos:function(){return this.mouse.getLast()},getTouchesPos:function(){return this.multitouch.getTouchesPos()},checkOverlap:function(b,c,d,e,f){return b.x>c+ +e||b.xd+f||b.y"):$("#"+f.id).html("");dynamicClickableEntityDivs[b]={};dynamicClickableEntityDivs[b].width=this.size.x*multiplier;dynamicClickableEntityDivs[b].height=this.size.y*multiplier;dynamicClickableEntityDivs[b].entity_pos_x=this.pos.x;dynamicClickableEntityDivs[b].entity_pos_y=this.pos.y},draw:function(){var b="#ffffff"; +_SETTINGS.Branding.Splash.BgColour&&(b=_SETTINGS.Branding.Splash.BgColour);ig.system.context.fillStyle=b;ig.system.context.fillRect(0,0,ig.system.width,ig.system.height);this.parent()}})});this.END_BRANDING_SPLASH;ig.baked=!0; +ig.module("plugins.cocoon-handler").defines(function(){ig.CocoonHandler=ig.Class.extend({isCocoonAvailable:!1,notification:null,gamepad:null,audio:null,init:function(){"undefined"===typeof window.Cocoon||null===typeof window.Cocoon||(this.isCocoonAvailable=!0,this.notification=new ig.CocoonNotification,this.gamepad=new ig.CocoonGamepad)}});ig.CocoonGamepad=ig.Class.extend({isGamepadAvailable:!1,gamepadText:"none",gamepadMenuButton:"none",gamepadButtonText:"none",gamepadBumperText:"none",gamepadTriggerText:"none", +gamepadJoystick:"none",gamepadDpad:"none",gamepadMenuButton:"none",init:function(){Cocoon.Gamepad={};Cocoon.Gamepad.nativeExtensionObjectAvailable=Cocoon.nativeAvailable&&"undefined"!==typeof window.ext.Gamepad;Cocoon.Gamepad.Indices={BUTTON_0:0,BUTTON_1:1,BUTTON_2:2,BUTTON_3:3,BUTTON_LEFT_BUMPER:4,BUTTON_RIGHT_BUMPER:5,BUTTON_LEFT_TRIGGER:6,BUTTON_RIGHT_TRIGGER:7,BUTTON_LEFT_JOYSTICK:10,BUTTON_RIGHT_JOYSTICK:11,BUTTON_DPAD_UP:12,BUTTON_DPAD_DOWN:13,BUTTON_DPAD_LEFT:14,BUTTON_DPAD_RIGHT:15,BUTTON_MENU:16, +AXIS_LEFT_JOYSTICK_X:0,AXIS_LEFT_JOYSTICK_Y:1,AXIS_RIGHT_JOYSTICK_X:2,AXIS_RIGHT_JOYSTICK_Y:3};if((navigator.getGamepads||navigator.webkitGetGamepads)&&!navigator.getGamepads)console.log("navigator.getGamepads does not exist."),navigator.webkitGetGamepads?(console.log("navigator.webkitGamepads exists, adding navigator.getGamepads to point to it."),navigator.getGamepads=navigator.webkitGetGamepads):console.log("navigator.webkitGetGamepads does not exist either.");window.addEventListener("gamepadconnected", +this.gamepadconnected);window.addEventListener("gamepaddisconnected",this.gamepaddisconnected);window.addEventListener("webkitgamepadconnected",this.gamepadconnected);window.addEventListener("webkitgamepaddisconnected",this.gamepaddisconnected)},gamepadconnected:function(b){alert("gamepadconnected: gamepad.index = "+b.gamepad.index)},gamepaddisconnected:function(b){alert("gamepaddisconnected: gamepad.index = "+b.gamepad.index)},query:function(){if(navigator.webkitGetGamepads){var b=navigator.webkitGetGamepads(); +if(b&&0"):$("#"+f.id).html("");dynamicClickableEntityDivs[b]={};dynamicClickableEntityDivs[b].width=this.size.x*multiplier;dynamicClickableEntityDivs[b].height=this.size.y*multiplier;dynamicClickableEntityDivs[b].entity_pos_x=this.pos.x;dynamicClickableEntityDivs[b].entity_pos_y=this.pos.y}})});this.END_BRANDING_LOGO;ig.baked=!0; +ig.module("game.entities.button-more-games").requires("impact.entity").defines(function(){EntityButtonMoreGames=ig.Entity.extend({gravityFactor:0,logo:new ig.AnimationSheet("media/graphics/sprites/btn_more_games.png",64,66),size:{x:64,y:66},zIndex:750,init:function(b,c,d){this.parent(b,c,d);"undefined"==typeof wm&&(_SETTINGS.MoreGames.Enabled?(d?(console.log("settings found ... using that div layer name"),b=d.div_layer_name):b="more-games",console.log("div_layer_name:",b),this.checkClickableLayer(b, +_SETTINGS.MoreGames.Link,!0)):this.kill());this.anims.idle=new ig.Animation(this.logo,0,[0],!0);this.currentAnim=this.anims.idle},doesClickableLayerExist:function(b){for(k in dynamicClickableEntityDivs)if(k==b)return console.log("clickable layer already exists ..."),!0;console.log("doesnt exist yet ...");return!1},checkClickableLayer:function(b,c,d){"undefined"==typeof wm&&(this.doesClickableLayerExist(b)?(ig.game.showOverlay([b]),$("#"+b).find("[href]").attr("href",c)):this.createClickableOutboundLayer(b, +c,"media/graphics/misc/invisible.png",d))},createClickableOutboundLayer:function(b,c,d){c=ig.$new("div");c.id=b;document.body.appendChild(c);$("#"+c.id).css("float","left");$("#"+c.id).css("position","absolute");if(ig.ua.mobile){var e=window.innerHeight/mobileHeight,f=window.innerWidth/mobileWidth;$("#"+c.id).css("left",this.pos.x*f);$("#"+c.id).css("top",this.pos.y*e);$("#"+c.id).css("width",this.size.x*f);$("#"+c.id).css("height",this.size.y*e)}else e=document.getElementById("game").offsetLeft, +f=document.getElementById("game").offsetTop,$("#"+c.id).css("left",e+this.pos.x*multiplier),$("#"+c.id).css("top",f+this.pos.y*multiplier),$("#"+c.id).css("width",this.size.x*multiplier),$("#"+c.id).css("height",this.size.y*multiplier);$("#"+c.id).html("");dynamicClickableEntityDivs[b]={};dynamicClickableEntityDivs[b].width=this.size.x*multiplier;dynamicClickableEntityDivs[b].height=this.size.y*multiplier;dynamicClickableEntityDivs[b].entity_pos_x= +this.pos.x;dynamicClickableEntityDivs[b].entity_pos_y=this.pos.y}})});ig.baked=!0; +ig.module("game.entities.opening-shield").requires("impact.entity").defines(function(){EntityOpeningShield=ig.Entity.extend({size:{x:48,y:48},move:0,mIconAnim:0,shieldAnim:0,titleAnim:0,shieldImage:new ig.Image("media/graphics/opening/shield.png"),mIconImage:new ig.Image("media/graphics/opening/m_icon.png"),titleImage:new ig.Image("media/graphics/opening/title.png"),init:function(b,c,d){this.parent(b,c,d)},ready:function(){if(!ig.wm)if(_SETTINGS.DeveloperBranding.Splash.Enabled){this.initTimer=new ig.Timer(0.1); +try{ig.soundHandler.playSound(ig.soundHandler.SOUNDID.openingSound)}catch(b){console.log(b)}}else ig.game.director.nextLevel(),ig.system.context.globalAlpha=1,this.kill()},update:function(){this.parent();this.updateOriginalShieldOpening()},draw:function(){this.parent();ig.global.wm||(this.nextLevelTimer&&0>this.nextLevelTimer.delta()&&(ig.system.context.globalAlpha=-this.nextLevelTimer.delta()),this.drawOriginalShieldOpening())},updateOriginalShieldOpening:function(){this.initTimer&&0this.shieldAnim?(this.shieldAnim++,this.sheildTimer.reset()):(this.sheildTimer=null,this.moveTimer=new ig.Timer(0.001),this.mIconTimer=new ig.Timer(0.05),this.titleTimer=new ig.Timer(0.15)));this.moveTimer&&0this.mIconAnim?(this.mIconAnim++,this.moveTimer.reset()):this.mIconTimer= +null);this.titleTimer&&0this.titleAnim?(this.titleAnim++,this.titleTimer.reset()):(this.titleTimer=null,this.nextLevelTimer=new ig.Timer(1)));this.nextLevelTimer&&0=f;f+=1)b.lineTo(0+800*Math.cos(2*f*Math.PI/48),0+800*Math.sin(2*f*Math.PI/48)),e++,2==e&&(e=0,b.lineTo(0,0));b.translate(-c,-d);c=b.createRadialGradient(c,d,100,c,d,250);c.addColorStop(0,"rgba(255,255,255,0.1)");c.addColorStop(1,"rgba(0,0,0,0)");b.fillStyle=c;b.fill();b.restore()}this.shieldImage.drawTile(ig.system.width/2-91,0-(768-ig.system.height)/2,this.shieldAnim,182,768);this.moveTimer&&(this.mIconImage.drawTile(ig.system.width/2-96,ig.system.height/2-70,this.mIconAnim, +166,160),this.titleImage.drawTile(ig.system.width/2-204,ig.system.height/2+100,this.titleAnim,409,76));ig.system.context.globalAlpha=1}})});ig.baked=!0; +ig.module("game.entities.opening-kitty").requires("impact.entity").defines(function(){EntityOpeningKitty=ig.Entity.extend({size:{x:48,y:48},kittyAnim:-1,kittyImage:new ig.Image("media/graphics/opening/kitty.png"),kittyTitleImage:new ig.Image("media/graphics/opening/kittytitle.png"),soundKey:"kittyopeningSound",init:function(b,c,d){this.parent(b,c,d)},ready:function(){!ig.wm&&_SETTINGS.DeveloperBranding.Splash.Enabled&&(this.initTimer=new ig.Timer(0.1))},update:function(){this.parent();this.updateKittyOpening(); +this.unlockWebAudio()},unlockWebAudio:function(){if(ig.input.released("click"))try{ig.soundHandler.unlockWebAudio()}catch(b){}},draw:function(){this.parent();ig.global.wm||(this.nextLevelTimer&&0>this.nextLevelTimer.delta()&&(ig.system.context.globalAlpha=-this.nextLevelTimer.delta()),this.drawKittyOpening())},updateKittyOpening:function(){if(!ig.wm)if(_SETTINGS.DeveloperBranding.Splash.Enabled){if(this.initTimer&&0this.kittyAnim?(this.kittyAnim++,this.kittyTimer.reset()):(this.kittyTimer=null,this.nextLevelTimer=new ig.Timer(2)));this.nextLevelTimer&&0c&&(c=this.objectArray[a].zIndex,b=this.objectArray[a]);if(null!=b)null!=this.hoveringItem?this.hoveringItem!=b&&("function"==typeof this.hoveringItem.leave&&this.hoveringItem.leave(), +"function"==typeof b.over&&b.over()):"function"==typeof b.over&&b.over(),this.hoveringItem=b,this.clickObject(b),this.objectArray=[];else if(null!=this.hoveringItem&&"function"==typeof this.hoveringItem.leave&&(this.hoveringItem.leave(),this.hoveringItem=null),this.isReleased){for(b=0;b"):$("#"+f.id).html("");dynamicClickableEntityDivs[b]={};dynamicClickableEntityDivs[b].width=$("#"+f.id).width();dynamicClickableEntityDivs[b].height= +$("#"+f.id).height();dynamicClickableEntityDivs[b].entity_pos_x=this.pos.x;dynamicClickableEntityDivs[b].entity_pos_y=this.pos.y},hovered:function(){this.isHovering=!0;this.dehoverOthers()},dehoverOthers:function(){var b=ig.game.getEntitiesByType(EntitySelect);for(i=0;ithis.pos.x+this.size.x||c +this.pos.y+this.size.y||bthis.pos.x+this.size.x||cthis.pos.y+this.size.y||bthis.pos.x+this.size.x||cthis.pos.y+this.size.y||bthis.pos.x+this.size.x||cthis.pos.y+this.size.y||b=this.gameControl.curTime&&1<=this.gameControl.curTime&&this.initShock()},initShock:function(){ig.game.paused|| +(this.shockTimer=new ig.Timer,this.shockTimer.set(this.duration))},resetShock:function(){this.stopShake=!0},shock:function(){if(this.shockTimer&&-0.2>this.shockTimer.delta()){var b=this.shockTimer.delta(),c=this.strength*Math.pow(-b/this.duration,2);0.5c&&(d="0"+c);c=b+"";10>b&&(c="0"+b);return d+":"+c},countSec:function(b){var c=Math.floor(b),d=c;0c?d+1:0;return d},draw:function(){0>=this.gameControl.curTime&&!this.timeOut&&(ig.soundHandler.sfxPlayer.play("timeout"),this.timeOut=!0);var b=ig.system.context;if(0<=this.gameControl.curTime){var c=this.pos.x+0.5*(this.size.x-this.bar.width)+48,d=this.pos.y+0.5*(this.size.y- +this.bar.height)-5,e=30+(this.bar.width-30)*(this.gameControl.curTime/this.gameControl.timeLimit);1<=e&&this.bar.draw(c,d,0,0,e,this.bar.height);0>=this.gameControl.curTime&&(this.gameControl.curTime=0)}this.parent();b.save();c=this.countMin(this.gameControl.curTime);b.font="50px "+fonts.font1;b.fillStyle=10= +this.gridCoords.x&&(this.gridCoords.x=0);0>=this.gridCoords.y&&(this.gridCoords.y=0);this.parent(b,c,d);this.size.x-=2*this.offset.x;this.size.y-=2*this.offset.y;this.pos.x+=this.posOffset;this.pos.y+=this.posOffset;this.animSheet=this.itemObject[this.item].animSheet;this.animSheet.width=this.animSheet.image.width;this.animSheet.height=this.animSheet.image.height;this.addAnim("idle",1,[0],!0);this.currentAnim=this.anims.idle;this.waitTimer.set();this.mother.amount[this.originalID]++;10<=this.item&& +this.mother.powerUpsSpawned++;10>this.item&&this.setScale(1E-4,1E-4)},update:function(){this.parent();ig.input.state("click")||this.released();if(this.mother)if(this.mother.gameEnded)if(this.ignoreEnd)this.parent();else return;else this.parent();else this.parent();if(this.pointer.hoveringItem===this&&this.mother.inMassacreMode){if(9>this.item||9===this.item)return this.mother.hovering=this.item;this.mother.hovering=null}else{if(this.isDragging){var b=this.offsetToMouse.x+this.pointer.pos.x,c=this.offsetToMouse.y+ +this.pointer.pos.y;this.pos.x=this.pointer.pos.x+0.5*this.pointer.size.x-0.5*this.size.x;this.pos.y=this.pointer.pos.y+0.5*this.pointer.size.y-0.5*this.size.y;if(bthis.mother.gridPos.x+this.mother.tileSize.x*(this.mother.gridSize.x-1)+2*this.posOffset)this.pos.x=this.mother.gridPos.x+this.mother.tileSize.x*(this.mother.gridSize.x-1)+2*this.posOffset;else if(bthis.mother.gridPos.x+this.mother.tileSize.x*(this.gridCoords.x+1)+2*this.posOffset)this.pos.x=this.mother.gridPos.x+this.mother.tileSize.x*(this.gridCoords.x+1)+2*this.posOffset;else if(bthis.mother.gridPos.y+this.mother.tileSize.y* +(this.gridCoords.y+0.25)+2*this.posOffset)this.pos.x=this.mother.gridPos.x+this.mother.tileSize.x*this.gridCoords.x+2*this.posOffset}else if(b>this.mother.gridPos.x+this.mother.tileSize.x*(this.gridCoords.x+0.25)+2*this.posOffset){if(cthis.mother.gridPos.y+this.mother.tileSize.y*(this.gridCoords.y+0.25)+2*this.posOffset)this.pos.x=this.mother.gridPos.x+this.mother.tileSize.x*this.gridCoords.x+2*this.posOffset}else this.pos.x= +b;if(cthis.mother.gridPos.y+this.mother.tileSize.y*(this.mother.gridSize.y-1)+2*this.posOffset)this.pos.y=this.mother.gridPos.y+this.mother.tileSize.y*(this.mother.gridSize.y-1)+2*this.posOffset;else if(cthis.mother.gridPos.y+this.mother.tileSize.y* +(this.gridCoords.y+1)+2*this.posOffset)this.pos.y=this.mother.gridPos.y+this.mother.tileSize.y*(this.gridCoords.y+1)+2*this.posOffset;else if(cthis.mother.gridPos.x+this.mother.tileSize.x*(this.gridCoords.x+0.5)+2*this.posOffset)this.pos.y=this.mother.gridPos.y+this.mother.tileSize.y*this.gridCoords.y+2*this.posOffset}else if(c> +this.mother.gridPos.y+this.mother.tileSize.y*(this.gridCoords.y+0.5)+2*this.posOffset){if(bthis.mother.gridPos.x+this.mother.tileSize.x*(this.gridCoords.x+0.5)+2*this.posOffset)this.pos.y=this.mother.gridPos.y+this.mother.tileSize.y*this.gridCoords.y+2*this.posOffset}else this.pos.y=c;if(bthis.mother.gridPos.y+this.mother.tileSize.y*(this.gridCoords.y+0.5)+2*this.posOffset||b>this.mother.gridPos.x+this.mother.tileSize.x*(this.gridCoords.x+0.5)+2*this.posOffset&&cthis.mother.gridPos.x+this.mother.tileSize.x*(this.gridCoords.x+0.5)+2*this.posOffset&&c>this.mother.gridPos.y+ +this.mother.tileSize.y*(this.gridCoords.y+0.5)+2*this.posOffset)this.pos.x=this.mother.gridPos.x+this.mother.tileSize.x*this.gridCoords.x+2*this.posOffset,this.pos.y=this.mother.gridPos.y+this.mother.tileSize.y*this.gridCoords.y+2*this.posOffset,this.released();this.mother.lastDrag=this;this.mother.lastDragGridPos=this.gridCoords;this.mother.checkTilePos(this)}else this.doDrop&&this.mother.matchTimer&&(b=this.mother.matchTimer.delta(),this.mother.isFinishedChecking=!1,0.1this.offset.x||2=this.scale.x&&!this.changeSize&&(this.setScale(),this.scale.x+=0.01,this.scale.y+=0.01),0.9>=this.scale.x&&(this.changeSize=!1),1.11<=this.scale.x&&(this.changeSize=!0),0.9>=this.scale.y&&(this.scale.y+=0.01));10>this.item&& +1>this.scale.x&&(this.setScale(),this.scale.x+=0.07,this.scale.y+=0.07);!0==this.changeLevel&&0.9999<=this.scale.x&&!ig.game.paused&&(0==ig.game.getEntitiesByType(EntityPropTargetBoard).length&&ig.game.spawnEntity(EntityPropTargetBoard,50,600),this.changeLevel=!1)}},clicked:function(){if(!this.changeLevel&&!0==this.gameControl.gameStart&&!0==this.gameControl.isFinishedChecking&&!1==this.gameControl.isDragging&&!this.doDrop&&null==this.mother.matchTimer){if(!ig.game.paused)if(10>this.item)this.mother.confirmHovering!== +this.item||this.mother.confirmHovering!==this.mother.hovering?(this.mother.confirmHovering=this.item,this.mother.canSelect=!1):this.mother.canSelect=this.mother.confirmHovering==this.item&&this.mother.confirmHovering==this.mother.hovering?!0:!1;else if(10==this.item){if(this.mother.confirmHovering!==this.item||this.mother.confirmHovering!==this.mother.hovering)0==ig.game.getEntitiesByType(EntityBomb).length&&ig.game.spawnEntity(EntityBomb,this.pos.x,this.pos.y,{zIndex:this.zIndex+1}),ig.soundHandler.sfxPlayer.play("bomb"), +this.triggerPowerUp(),this.startTime=null,this.isDragging=!1,this.mother.isDragging=!1,this.mother.startMakeMove();return}!this.mother.isDragging&&!this.mother.ending&&(this.offsetToMouse={x:this.pos.x-this.pointer.pos.x,y:this.pos.y-this.pointer.pos.y},this.isDragging=!0,this.mother.isDragging=this,this.zIndex+=50,ig.game.sortEntitiesDeferred())}},released:function(){if(this.isDragging){this.mother.checkTilePos(this);try{this.mother.isFinishedChecking=!0}catch(b){console.log(b)}this.isDragging=!1; +this.mother.isDragging=!1;this.pos.x=this.gridCoords.x*this.mother.tileSize.x+this.mother.gridPos.x+this.posOffset;this.pos.y=this.gridCoords.y*this.mother.tileSize.y+this.mother.gridPos.y+this.posOffset;this.zIndex-=50;this.isUpdated&&(this.mother.startMakeMove(),this.isUpdated=!1)}},kill:function(){this.parent();this.gameControl.hintTimer.reset();this.mother.amount[this.originalID]--;this.spark=ig.game.spawnEntity(EntitySpark,this.pos.x,this.pos.y);10==this.item&&(this.mother.isFinishedChecking= +!0,this.mother.gameStart=!0,this.mother.canSelect=!0);if(!1==this.gameControl.isReseting){this.gameControl.score+=this.candyBonus;for(var b=0;b=this.mother.grid[b][c].originalID&&(this.mother.grid[b][c].item=this.item,this.mother.grid[b][c].isMatched= +!0)},triggerPowerUp:function(){this.mother.matchChain=0;if(!(9>this.item)&&!this.isTriggered&&(this.isTriggered=!0,10<=this.item)){for(var b=this.gridCoords.y-1;bthis.initialScale.x)if(this.currentScale.xthis.targetScale.x)this.currentScale.x-=this.scaleIncrements;else this.onCompleteScaleX();this._checkScale(); +if(this.targetScale.y>this.initialScale.y)if(this.currentScale.ythis.targetScale.y)this.currentScale.y-=this.scaleIncrements;else this.onCompleteScaleY();this._checkScale()}})});ig.baked=!0; +ig.module("game.entities.buttons.btn-option-small").requires("impact.entity","game.entities.prop.prop-option-board").defines(function(){EntityBtnOptionSmall=ig.Entity.extend({size:{x:60,y:60},type:ig.Entity.TYPE.B,zIndex:100,optionBoard:null,animSheet:new ig.AnimationSheet("media/graphics/sprites/buttons/btn-option-small.png",60,60),init:function(b,c,d){this.animSheet.width=this.animSheet.image.width;this.animSheet.height=this.animSheet.image.height;this.size.x=this.animSheet.width;this.size.y=this.animSheet.height; +this.parent(b,c,d);this.addAnim("idle",1,[0]);this.gameControl=ig.game.getEntitiesByType(EntityIngameGameControl)[0]},update:function(){this.parent();this.candy=ig.game.getEntitiesByType(EntityItem)[0];this.gameControl.state==this.gameControl.states.MENU&&this.kill();ig.game.paused||(this.optionBoard=null)},clicked:function(){!ig.game.paused&&!0==this.gameControl.isFinishedChecking&&(ig.soundHandler.sfxPlayer.play("click"),null==this.optionBoard&&(this.optionBoard=ig.game.spawnEntity(EntityPropOptionBoard, +50,180)))}})});ig.baked=!0; +ig.module("game.entities.prop.targets").requires("impact.entity").defines(function(){EntityTargets=ig.Entity.extend({size:{x:48,y:48},zIndex:300,itemType:0,types:{item0:0,item1:1,item2:2,item3:3,item4:4,item5:5,item6:6,item7:7,item8:8,item9:9},item0:new ig.Image("media/graphics/sprites/items/ch-ball-springkles.png"),item1:new ig.Image("media/graphics/sprites/items/purple.png"),item2:new ig.Image("media/graphics/sprites/items/ch-oval.png"),item3:new ig.Image("media/graphics/sprites/items/yellow.png"),item4:new ig.Image("media/graphics/sprites/items/ch-square-stripes.png"), +item5:new ig.Image("media/graphics/sprites/items/green.png"),item6:new ig.Image("media/graphics/sprites/items/orange.png"),item7:new ig.Image("media/graphics/sprites/items/purple-stripes.png"),item8:new ig.Image("media/graphics/sprites/items/ch-ball-stripes.png"),item9:new ig.Image("media/graphics/sprites/items/ch-square-2x.png"),checkOK:new ig.Image("media/graphics/sprites/items/check-ok.png"),init:function(b,c,d){this.parent(b,c,d);this.gameControl=ig.game.getEntitiesByType(EntityIngameGameControl)[0]; +this.image=this["item"+this.itemType]},update:function(){this.parent();this.gameControl.state==this.gameControl.states.MENU&&(this.gameControl.targetCandy=!1,this.kill());this.changeLevel&&(this.changeLevel=!1,this.kill())},draw:function(){this.parent();var b=ig.system.context;b.save();var c=this.pos.y+0.5*(this.size.y-this.image.height);this.image.draw(this.pos.x+0.5*(this.size.x-this.image.width),c);if(this.gameControl.targetCandy){var d=this.targetCount;if(0=n;n++){var q=d-10+48+80*n;b.fillText(n+".",this.pos.x+0.1*this.size.x,q);var g=n-1;0==g&&(g="");var m=ig.game.sessionData[this["TOTALSCORECANDY"+g]],g=ig.game.sessionData[this["LEVEL"+ +g]];m||(m=". . . . . . .",g=". . .");b.fillText(m,c-e/2+40,q);b.fillText(g,f-l/2+40,q)}b.restore()}})});ig.baked=!0; +ig.module("game.entities.buttons.btn-score").requires("impact.entity","game.entities.commons.common-buttons","game.entities.prop.prop-option-board","game.entities.prop.prop-board-score").defines(function(){EntityBtnScore=EntityCommonButtons.extend({size:{x:150,y:54},zIndex:100,optionBoard:null,animSheet:new ig.AnimationSheet("media/graphics/sprites/buttons/btn-empty2.png",150,54),text:_STRINGS.Game.Scores,init:function(b,c,d){this.animSheet.width=this.animSheet.image.width;this.animSheet.height=this.animSheet.image.height/ +2;this.size.x=this.animSheet.width;this.size.y=this.animSheet.height;this.parent(b,c,d);this.gameControl=ig.game.getEntitiesByType(EntityIngameGameControl)[0]},update:function(){this.parent();this.gameControl&&(this.gameControl.state==this.gameControl.states.MENU&&!this.IN&&(this.tweenIn(),this.OUT=!1,this.IN=!0),this.gameControl.state==this.gameControl.states.GAMESTART&&!this.OUT&&(this.tweenOut(),this.IN=!1,this.OUT=!0));ig.game.paused||(this.optionBoard=null)},clicked:function(){this.parent(); +this.gameControl.state==this.gameControl.states.MENU&&(null==this.optionBoard&&(this.optionBoard=ig.game.spawnEntity(EntityPropBoardScore,50,180)),_SETTINGS.MoreGames.Enabled&&ig.game.getEntitiesByType(EntityBtnMoreGames)[0].hide())},tweenIn:function(){ig.global.wm||this.tween({pos:{x:(ig.system.width-this.size.x)/2}},0.8,{onComplete:function(){}.bind(this),easing:ig.Tween.Easing.Elastic.EaseOut,delay:0}).start()},tweenOut:function(){ig.global.wm||this.tween({pos:{x:-this.size.x-10}},0.1,{onComplete:function(){this.completedTween= +!0;this.gameControl.btnScore=!1;this.kill()}.bind(this),easing:ig.Tween.Easing.Linear.EaseNone,delay:0}).start()}})});ig.baked=!0; +ig.module("game.entities.items.item-complete").requires("impact.entity").defines(function(){EntityItemComplete=ig.Entity.extend({size:{x:480,y:140},type:ig.Entity.TYPE.B,ignorePause:!0,zIndex:600,animSheet:new ig.AnimationSheet("media/graphics/sprites/items/item-board-midle.png",480,140),init:function(b,c,d){this.animSheet.width=this.animSheet.image.width;this.animSheet.height=this.animSheet.image.height;this.size.x=this.animSheet.width;this.size.y=this.animSheet.height;this.parent(b,c,d);this.addAnim("idle", +1,[0]);ig.game.paused||(ig.game.paused=!ig.game.paused);if(this.gameControl=ig.game.getEntitiesByType(EntityIngameGameControl)[0])this.gameControl.gameStart=!1,this.candy=ig.game.getEntitiesByType(EntityItem)[0];this.tweenIn()},update:function(){this.parent()},tweenIn:function(){ig.soundHandler.sfxPlayer.play("levelCompleted");var b=(ig.system.height-this.size.y)/2;this.pos.y=-this.size.y;this.tween({pos:{y:b}},1,{onComplete:function(){this.tweenOut()}.bind(this),easing:ig.Tween.Easing.Quadratic.EaseOut, +delay:0}).start()},tweenOut:function(){this.tween({pos:{y:-this.size.y}},0.8,{onComplete:function(){this.gameControl.level+=1;this.gameControl.targetCandy=!1;this.gameControl.resetGrid();for(var b=0;bthis.hintCount&&this.gameStart&&(this.checkPossibleMatch(),this.gameStart=this.isFinishedChecking=!0,this.isDragging=!1);0>=this.curTime&&(this.state=this.states.GAMEOVER);break;case this.states.GAMEOVER:this.scoreSaved|| +this.saveScore(),this.endBoard||(this.endBoard=ig.game.spawnEntity(EntityPropEndBoard,50,600)),_endGame(this.level,this.score)}this.matchTimer&&0.3=c){if(this.grid[b][c+2].item==d&&this.grid[b][c+3].item==d)return this.hintTimer&&this.hintTimer.delta()>this.hintCount&&(0==ig.game.getEntitiesByType(EntityHint).length&&(this.hint=ig.game.spawnEntity(EntityHint,this.grid[b][c].pos.x+2*this.tileSize.x,this.grid[b][c].pos.y+0.5*this.tileSize.y)),this.hint.changeAngle()),!0;if(this.grid[b][c+1].item==d&&this.grid[b][c+3].item==d)return this.hintTimer&&this.hintTimer.delta()> +this.hintCount&&(0==ig.game.getEntitiesByType(EntityHint).length&&(this.hint=ig.game.spawnEntity(EntityHint,this.grid[b][c].pos.x+4*this.tileSize.x,this.grid[b][c].pos.y+this.tileSize.y/2)),this.hint.changeAngle()),!0}if(0<=b&&4>=b&&0<=c&&3>=c){if(this.grid[b][c+1].item==d&&this.grid[b+1][c+2].item==d)return this.hintTimer&&this.hintTimer.delta()>this.hintCount&&0==ig.game.getEntitiesByType(EntityHint).length&&(this.hint=ig.game.spawnEntity(EntityHint,this.grid[b][c].pos.x+2.5*this.tileSize.x,this.grid[b][c].pos.y)), +!0;if(this.grid[b+1][c+1].item==d&&this.grid[b][c+2].item==d)return this.hintTimer&&this.hintTimer.delta()>this.hintCount&&0==ig.game.getEntitiesByType(EntityHint).length&&(this.hint=ig.game.spawnEntity(EntityHint,this.grid[b][c].pos.x+1.5*this.tileSize.x,this.grid[b][c].pos.y)),!0;if(this.grid[b+1][c+1].item==d&&this.grid[b+1][c+2].item==d)return this.hintTimer&&this.hintTimer.delta()>this.hintCount&&0==ig.game.getEntitiesByType(EntityHint).length&&(this.hint=ig.game.spawnEntity(EntityHint,this.grid[b][c].pos.x+ +0.5*this.tileSize.x,this.grid[b][c].pos.y)),!0}if(1<=b&&5>=b&&0<=c&&3>=c){if(this.grid[b][c+1].item==d&&this.grid[b-1][c+2].item==d)return this.hintTimer&&this.hintTimer.delta()>this.hintCount&&0==ig.game.getEntitiesByType(EntityHint).length&&(this.hint=ig.game.spawnEntity(EntityHint,this.grid[b][c].pos.x+2.5*this.tileSize.x,this.grid[b][c].pos.y-this.tileSize.x)),!0;if(this.grid[b-1][c+1].item==d&&this.grid[b-1][c+2].item==d)return this.hintTimer&&this.hintTimer.delta()>this.hintCount&&0==ig.game.getEntitiesByType(EntityHint).length&& +(this.hint=ig.game.spawnEntity(EntityHint,this.grid[b][c].pos.x+0.5*this.tileSize.x,this.grid[b][c].pos.y-this.tileSize.x)),!0;if(this.grid[b-1][c+1].item==d&&this.grid[b][c+2].item==d)return this.hintTimer&&this.hintTimer.delta()>this.hintCount&&0==ig.game.getEntitiesByType(EntityHint).length&&(this.hint=ig.game.spawnEntity(EntityHint,this.grid[b][c].pos.x+1.5*this.tileSize.x,this.grid[b][c].pos.y-this.tileSize.x)),!0}if(0<=b&&2>=b&&0<=c&&5>=c){if(this.grid[b+1][c].item==d&&this.grid[b+3][c].item== +d)return this.hintTimer&&this.hintTimer.delta()>this.hintCount&&0==ig.game.getEntitiesByType(EntityHint).length&&(this.hint=ig.game.spawnEntity(EntityHint,this.grid[b][c].pos.x+0.5*this.tileSize.x,this.grid[b][c].pos.y+2*this.tileSize.x)),!0;if(this.grid[b+2][c].item==d&&this.grid[b+3][c].item==d)return this.hintTimer&&this.hintTimer.delta()>this.hintCount&&0==ig.game.getEntitiesByType(EntityHint).length&&(this.hint=ig.game.spawnEntity(EntityHint,this.grid[b][c].pos.x+0.5*this.tileSize.x,this.grid[b][c].pos.y)), +!0}if(0<=b&&3>=b&&1<=c&&5>=c){if(this.grid[b+1][c].item==d&&this.grid[b+2][c-1].item==d)return this.hintTimer&&this.hintTimer.delta()>this.hintCount&&(0==ig.game.getEntitiesByType(EntityHint).length&&(this.hint=ig.game.spawnEntity(EntityHint,this.grid[b][c].pos.x+this.tileSize.x,this.grid[b][c].pos.y+2.5*this.tileSize.x)),this.hint.changeAngle()),!0;if(this.grid[b+1][c-1].item==d&&this.grid[b+2][c-1].item==d)return this.hintTimer&&this.hintTimer.delta()>this.hintCount&&(0==ig.game.getEntitiesByType(EntityHint).length&& +(this.hint=ig.game.spawnEntity(EntityHint,this.grid[b][c].pos.x+this.tileSize.x,this.grid[b][c].pos.y+this.tileSize.y/2)),this.hint.changeAngle()),!0;if(this.grid[b+1][c-1].item==d&&this.grid[b+2][c].item==d)return this.hintTimer&&this.hintTimer.delta()>this.hintCount&&(0==ig.game.getEntitiesByType(EntityHint).length&&(this.hint=ig.game.spawnEntity(EntityHint,this.grid[b][c].pos.x-this.tileSize.x,this.grid[b][c].pos.y+0.5*this.tileSize.y)),this.hint.changeAngle()),!0}if(0<=b&&3>=b&&0<=c&&4>=c){if(this.grid[b+ +1][c+1].item==d&&this.grid[b+2][c+1].item==d)return this.hintTimer&&this.hintTimer.delta()>this.hintCount&&(0==ig.game.getEntitiesByType(EntityHint).length&&(this.hint=ig.game.spawnEntity(EntityHint,this.grid[b][c].pos.x+2*this.tileSize.x,this.grid[b][c].pos.y+this.tileSize.x/2)),this.hint.changeAngle()),!0;if(this.grid[b+1][c+1].item==d&&this.grid[b+2][c].item==d)return this.hintTimer&&this.hintTimer.delta()>this.hintCount&&(0==ig.game.getEntitiesByType(EntityHint).length&&(this.hint=ig.game.spawnEntity(EntityHint, +this.grid[b][c].pos.x+2*this.tileSize.x,this.grid[b][c].pos.y+1.5*this.tileSize.y)),this.hint.changeAngle()),!0;if(this.grid[b+1][c].item==d&&this.grid[b+2][c+1].item==d)return this.hintTimer&&this.hintTimer.delta()>this.hintCount&&(0==ig.game.getEntitiesByType(EntityHint).length&&(this.hint=ig.game.spawnEntity(EntityHint,this.grid[b][c].pos.x+2*this.tileSize.x,this.grid[b][c].pos.y+2.5*this.tileSize.y)),this.hint.changeAngle()),!0}if(10==this.grid[b][c].item)return!0}this.isReseting=!0;!ig.game.paused&& +!0==this.gameStart&&this.createNoMoveBoard()},createNoMoveBoard:function(){0==ig.game.getEntitiesByType(EntityItemBoardNoMove).length&&ig.game.spawnEntity(EntityItemBoardNoMove,0,640)},makeMove:function(){for(var b=this.gridSize.y;b--;)for(var c=this.gridSize.x;c--;){var d=this.grid[b][c].item;try{if(1c?c=e[n].x:e[n].xd?d=e[n].y:e[n].yd&&(this.candies[c]=0)}if(!b)if(this.candies=[],4>=this.level)this.gameStart|| +this.createCompleteBox();else if(!this.gameStart){this.level+=1;for(c=0;c=this.grid[d][c].item&&ig.soundHandler.sfxPlayer.play("spark")}catch(n){console.log(n)}}if(0=this.grid[d][c].item&&ig.soundHandler.sfxPlayer.play("spark")}catch(q){console.log(q)}}if(c+1=this.grid[d][c].item&&ig.soundHandler.sfxPlayer.play("spark")}catch(g){console.log(g)}}if(0=this.grid[d][c].item&&ig.soundHandler.sfxPlayer.play("spark")}catch(m){console.log(m)}}return f},draw:function(){this.bgImg.draw(0,0);this.drawBackgroundCloud();this.parent()},drawBackgroundCloud:function(){ig.game.paused||(this.bgOffset+=this.bgScrollSpeed*ig.system.tick,this.bgOffset>this.backgroundCloud.width&&(this.bgOffset%=this.backgroundCloud.width));this.backgroundCloud.draw(-this.bgOffset+this.backgroundCloud.width+this.pos.x-this.offset.x-ig.game._rscreen.x,this.pos.y-this.offset.y- +ig.game._rscreen.y);this.backgroundCloud.draw(-this.bgOffset+this.pos.x-this.offset.x-ig.game._rscreen.x,this.pos.y-this.offset.y-ig.game._rscreen.y)},spawnTarget:function(){this.parent();if(this.level){if(!this.targetCandy){this.candies=[];this.items=[];var b=[],c=3;5<=this.level&&(c=4);for(var d=0;db.indexOf(f)&&(e=f)}b.push(e)}c=0;2>=this.level&&(c=3);3<=this.level&&9>=this.level&&(c=6);10<=this.level&&14>=this.level&&(c=8);15<= +this.level&&19>=this.level&&(c=10);20<=this.level&&(c=12);this.itemIds=b;for(d=0;dc&&(this.candies[d]=0);!b&&this.gameStart&&(this.gameStart=!1)}},saveScore:function(){if(ig.game.sessionData){var b=ig.game.sessionData[this.TOTALSCORECANDY],c=ig.game.sessionData[this.TOTALSCORECANDY1],d=ig.game.sessionData[this.TOTALSCORECANDY2],e=ig.game.sessionData[this.TOTALSCORECANDY3],f=ig.game.sessionData[this.LEVEL],l=ig.game.sessionData[this.LEVEL1],n=ig.game.sessionData[this.LEVEL2],q=this.score,g=this.level;if(b)if(q>=b){if(d>=e||null==e)ig.game.save(this.TOTALSCORECANDY3,d),ig.game.save(this.LEVEL3, +n),ig.game.sessionData[this.TOTALSCORECANDY3]=d,ig.game.sessionData[this.LEVEL3]=n;if(c>=d||null==d)ig.game.save(this.TOTALSCORECANDY2,c),ig.game.save(this.LEVEL2,l),ig.game.sessionData[this.TOTALSCORECANDY2]=c,ig.game.sessionData[this.LEVEL2]=l;if(b>=c||null==c)ig.game.save(this.TOTALSCORECANDY1,b),ig.game.save(this.LEVEL1,f),ig.game.sessionData[this.TOTALSCORECANDY1]=b,ig.game.sessionData[this.LEVEL1]=f;ig.game.save(this.TOTALSCORECANDY,q);ig.game.save(this.LEVEL,g);ig.game.sessionData[this.TOTALSCORECANDY]= +q;ig.game.sessionData[this.LEVEL]=g}else if(q>=c){if(d>=e||null==e)ig.game.save(this.TOTALSCORECANDY3,d),ig.game.save(this.LEVEL3,n),ig.game.sessionData[this.TOTALSCORECANDY3]=d,ig.game.sessionData[this.LEVEL3]=n;if(c>=d||null==d)ig.game.save(this.TOTALSCORECANDY2,c),ig.game.save(this.LEVEL2,l),ig.game.sessionData[this.TOTALSCORECANDY2]=c,ig.game.sessionData[this.LEVEL2]=l;ig.game.save(this.TOTALSCORECANDY1,q);ig.game.save(this.LEVEL1,g);ig.game.sessionData[this.TOTALSCORECANDY1]=q;ig.game.sessionData[this.LEVEL1]= +g}else if(q>=d){if(d>=e||null==e)ig.game.save(this.TOTALSCORECANDY3,d),ig.game.save(this.LEVEL3,n),ig.game.sessionData[this.TOTALSCORECANDY3]=d,ig.game.sessionData[this.LEVEL3]=n;ig.game.save(this.TOTALSCORECANDY2,q);ig.game.save(this.LEVEL2,g);ig.game.sessionData[this.TOTALSCORECANDY2]=q;ig.game.sessionData[this.LEVEL2]=q}else q>=e&&(ig.game.save(this.TOTALSCORECANDY3,q),ig.game.save(this.LEVEL3,g),ig.game.sessionData[this.TOTALSCORECANDY3]=q,ig.game.sessionData[this.LEVEL3]=g);else ig.game.save(this.TOTALSCORECANDY, +q),ig.game.save(this.LEVEL,g),ig.game.sessionData[this.TOTALSCORECANDY]=q,ig.game.sessionData[this.LEVEL]=g}this.scoreSaved=!0}})});ig.baked=!0;ig.module("game.levels.game").requires("impact.image","game.entities.ingame.ingame-game-control").defines(function(){LevelGame={entities:[{type:"EntityIngameGameControl",x:4,y:4}],layer:[]};LevelGameResources=[]});ig.baked=!0; +ig.module("game.main").requires("impact.game","plugins.patches.fps-limit-patch","plugins.patches.timer-patch","plugins.patches.user-agent-patch","plugins.patches.webkit-image-smoothing-patch","plugins.patches.windowfocus-onMouseDown-patch","plugins.patches.input-patch","plugins.font.font-loader","plugins.handlers.dom-handler","plugins.handlers.size-handler","plugins.handlers.api-handler","plugins.handlers.visibility-handler","plugins.data.vector","plugins.splash-loader","plugins.tween","plugins.url-parameters", +"plugins.jukebox","plugins.director","plugins.impact-storage","plugins.audio.sound-handler","plugins.webaudio-music-player","plugins.scale","plugins.patches.input-patch","plugins.io.io-manager","plugins.io.storage-manager","plugins.fullscreen","plugins.branding.splash","plugins.cocoon-handler","game.entities.branding-logo-placeholder","game.entities.branding-logo","game.entities.button-more-games","game.entities.opening-shield","game.entities.opening-kitty","game.entities.pointer","game.entities.pointer-selector", +"game.entities.select","game.levels.opening","game.levels.game").defines(function(){this.START_OBFUSCATION;this.FRAMEBREAKER;MyGame=ig.Game.extend({firstClick:!1,cocoonJSHandler:null,player:{candyType:0},name:"MJS-Candy-Jam-HD",version:"1.0.0",frameworkVersion:"1.1.1",sessionData:{},io:null,init:function(){this.io=new IoManager;this.setupControls();this.setupLocalStorage();this.removeLoadingWheel();this.setupStorageManager();this.injectMobileLink();this.setupURLParameters();this.finalize()},initData:function(){return this.sessionData= +{sound:!0,music:!0}},onclickDocument:function(){!1==ig.game.firstClick&&(ig.game.webaudioPlugin&&ig.game.webaudioPlugin.webaudio&&ig.game.webaudioPlugin.webaudio.context&&ig.game.webaudioPlugin.webaudio.context.state&&"running"!==ig.game.webaudioPlugin.webaudio.context.state&&ig.game.webaudioPlugin.webaudio.context.resume(),ig.game.firstClick=!0,ig.ua.mobile?document.removeEventListener("touchstart",this.onclickDocument):document.removeEventListener("click",this.onclickDocument),window.setTimeout(function(){ig.game.webaudioPlugin&& +ig.game.webaudioPlugin.webaudio&&ig.game.webaudioPlugin.webaudio.context&&ig.game.webaudioPlugin.webaudio.context.state&&"running"!==ig.game.webaudioPlugin.webaudio.context.state&&ig.game.webaudioPlugin.webaudio.context.resume()},200))},initSfx:function(){},finalize:function(){ig.game.startGame();ig.sizeHandler.reorient()},injectMobileLink:function(){$("#play").attr("onclick","ig.game.pressPlay();ig.soundHandler.staticSound.play();")},removeLoadingWheel:function(){try{$("#ajaxbar").css("background", +"none")}catch(b){console.log(b)}},showDebugMenu:function(){console.log("showing debug menu ...");ig.Entity._debugShowBoxes=!0;$(".ig_debug").show()},setupLocalStorage:function(){this.storage=new ig.Storage},startGame:function(){this.resetPlayerStats();this.director=new ig.Director(this,[LevelOpening,LevelGame]);if(_SETTINGS.Branding.Splash.Enabled)try{this.branding=new ig.BrandingSplash}catch(b){console.log(b),console.log("Loading original levels ..."),this.director.loadLevel(this.director.currentLevel)}else this.director.loadLevel(this.director.currentLevel); +(_SETTINGS.Branding.Splash.Enabled||_SETTINGS.DeveloperBranding.Splash.Enabled)&&this.spawnEntity(EntityPointerSelector,50,50);this.sessionData.sound||ig.soundHandler.sfxPlayer.mute();this.sessionData.music||ig.soundHandler.bgmPlayer.mute();ig.soundHandler.bgmPlayer.play("background")},fpsCount:function(){this.fpsTimer||(this.fpsTimer=new ig.Timer(1));this.fpsTimer&&0>this.fpsTimer.delta()?null!=this.fpsCounter?this.fpsCounter++:this.fpsCounter=0:(ig.game.fps=this.fpsCounter,this.fpsCounter=0,this.fpsTimer.reset())}, +endGame:function(){console.log("End game");ig.soundHandler.stopBackgroundMusic();ig.ua.mobile&&_SETTINGS.Ad.Mobile.End.Enabled&&MobileAdInGameEnd.Initialize()},resetPlayerStats:function(){ig.log("resetting player stats ...");this.playerStats={id:this.playerStats?this.playerStats.id:null}},setupControls:function(){ig.input.unbindAll();ig.input.initMouse();ig.input.bind(ig.KEY.MOUSE1,"click")},setupURLParameters:function(){this.setupURLParameters=new ig.UrlParameters},pressPlay:function(){this.hideOverlay(["play"]); +this.startGame();ig.ua.mobile&&_SETTINGS.Ad.Mobile.Footer.Enabled&&MobileAdInGameFooter.Initialize();ig.ua.mobile&&_SETTINGS.Ad.Mobile.Header.Enabled&&MobileAdInGameHeader.Initialize()},pauseGame:function(){ig.system.stopRunLoop.call(ig.system);console.log("Game Paused")},resumeGame:function(){this.sessionData.sound||ig.soundHandler.sfxPlayer.mute();this.sessionData.music||ig.soundHandler.bgmPlayer.mute();ig.system.startRunLoop.call(ig.system);console.log("Game Resumed")},showOverlay:function(b){for(i= +0;ithis.debug.length||this.debug.splice(0,1),this.debug.push(b),this.debugLine++):(this.debug=[],this.debugLine=1,this.debug.push(b));console.log(b)},debugEnable:function(){ig.input.pressed("click")&&(this.debugEnableTimer=new ig.Timer(2));this.debugEnableTimer&&0>this.debugEnableTimer.delta()?ig.input.released("click")&&(this.debugEnableTimer=null):this.debugEnableTimer&&0 + + + Candy Jam + + + + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+ + diff --git a/web/examples/candy-jam/media/audio/branding/splash/opening.mp3 b/web/examples/candy-jam/media/audio/branding/splash/opening.mp3 new file mode 100644 index 00000000..f5b33718 Binary files /dev/null and b/web/examples/candy-jam/media/audio/branding/splash/opening.mp3 differ diff --git a/web/examples/candy-jam/media/audio/branding/splash/opening.ogg b/web/examples/candy-jam/media/audio/branding/splash/opening.ogg new file mode 100644 index 00000000..ed68945a Binary files /dev/null and b/web/examples/candy-jam/media/audio/branding/splash/opening.ogg differ diff --git a/web/examples/candy-jam/media/audio/game/bgm.mp3 b/web/examples/candy-jam/media/audio/game/bgm.mp3 new file mode 100644 index 00000000..109f7040 Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/bgm.mp3 differ diff --git a/web/examples/candy-jam/media/audio/game/bgm.ogg b/web/examples/candy-jam/media/audio/game/bgm.ogg new file mode 100644 index 00000000..45970473 Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/bgm.ogg differ diff --git a/web/examples/candy-jam/media/audio/game/board.mp3 b/web/examples/candy-jam/media/audio/game/board.mp3 new file mode 100644 index 00000000..32cf7760 Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/board.mp3 differ diff --git a/web/examples/candy-jam/media/audio/game/board.ogg b/web/examples/candy-jam/media/audio/game/board.ogg new file mode 100644 index 00000000..8bda55ef Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/board.ogg differ diff --git a/web/examples/candy-jam/media/audio/game/bomb.mp3 b/web/examples/candy-jam/media/audio/game/bomb.mp3 new file mode 100644 index 00000000..eef88498 Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/bomb.mp3 differ diff --git a/web/examples/candy-jam/media/audio/game/bomb.ogg b/web/examples/candy-jam/media/audio/game/bomb.ogg new file mode 100644 index 00000000..f3f4dd2d Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/bomb.ogg differ diff --git a/web/examples/candy-jam/media/audio/game/click.mp3 b/web/examples/candy-jam/media/audio/game/click.mp3 new file mode 100644 index 00000000..9b029bf1 Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/click.mp3 differ diff --git a/web/examples/candy-jam/media/audio/game/click.ogg b/web/examples/candy-jam/media/audio/game/click.ogg new file mode 100644 index 00000000..6322b05e Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/click.ogg differ diff --git a/web/examples/candy-jam/media/audio/game/clocktick.mp3 b/web/examples/candy-jam/media/audio/game/clocktick.mp3 new file mode 100644 index 00000000..78ce3b29 Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/clocktick.mp3 differ diff --git a/web/examples/candy-jam/media/audio/game/clocktick.ogg b/web/examples/candy-jam/media/audio/game/clocktick.ogg new file mode 100644 index 00000000..311d5b3a Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/clocktick.ogg differ diff --git a/web/examples/candy-jam/media/audio/game/level-completed.mp3 b/web/examples/candy-jam/media/audio/game/level-completed.mp3 new file mode 100644 index 00000000..fce10768 Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/level-completed.mp3 differ diff --git a/web/examples/candy-jam/media/audio/game/level-completed.ogg b/web/examples/candy-jam/media/audio/game/level-completed.ogg new file mode 100644 index 00000000..fb9495d8 Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/level-completed.ogg differ diff --git a/web/examples/candy-jam/media/audio/game/spark.mp3 b/web/examples/candy-jam/media/audio/game/spark.mp3 new file mode 100644 index 00000000..1d3a67fa Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/spark.mp3 differ diff --git a/web/examples/candy-jam/media/audio/game/spark.ogg b/web/examples/candy-jam/media/audio/game/spark.ogg new file mode 100644 index 00000000..98204272 Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/spark.ogg differ diff --git a/web/examples/candy-jam/media/audio/game/swing.mp3 b/web/examples/candy-jam/media/audio/game/swing.mp3 new file mode 100644 index 00000000..3d9546d7 Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/swing.mp3 differ diff --git a/web/examples/candy-jam/media/audio/game/swing.ogg b/web/examples/candy-jam/media/audio/game/swing.ogg new file mode 100644 index 00000000..47bbfaae Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/swing.ogg differ diff --git a/web/examples/candy-jam/media/audio/game/timeout.mp3 b/web/examples/candy-jam/media/audio/game/timeout.mp3 new file mode 100644 index 00000000..df388f6f Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/timeout.mp3 differ diff --git a/web/examples/candy-jam/media/audio/game/timeout.ogg b/web/examples/candy-jam/media/audio/game/timeout.ogg new file mode 100644 index 00000000..cfcde1cc Binary files /dev/null and b/web/examples/candy-jam/media/audio/game/timeout.ogg differ diff --git a/web/examples/candy-jam/media/audio/opening/ching.mp3 b/web/examples/candy-jam/media/audio/opening/ching.mp3 new file mode 100644 index 00000000..6e52e82d Binary files /dev/null and b/web/examples/candy-jam/media/audio/opening/ching.mp3 differ diff --git a/web/examples/candy-jam/media/audio/opening/ching.ogg b/web/examples/candy-jam/media/audio/opening/ching.ogg new file mode 100644 index 00000000..ed240613 Binary files /dev/null and b/web/examples/candy-jam/media/audio/opening/ching.ogg differ diff --git a/web/examples/candy-jam/media/audio/opening/kittyopening.mp3 b/web/examples/candy-jam/media/audio/opening/kittyopening.mp3 new file mode 100644 index 00000000..2feaa37e Binary files /dev/null and b/web/examples/candy-jam/media/audio/opening/kittyopening.mp3 differ diff --git a/web/examples/candy-jam/media/audio/opening/kittyopening.ogg b/web/examples/candy-jam/media/audio/opening/kittyopening.ogg new file mode 100644 index 00000000..e822deb3 Binary files /dev/null and b/web/examples/candy-jam/media/audio/opening/kittyopening.ogg differ diff --git a/web/examples/candy-jam/media/audio/opening/opening.mp3 b/web/examples/candy-jam/media/audio/opening/opening.mp3 new file mode 100644 index 00000000..f5b33718 Binary files /dev/null and b/web/examples/candy-jam/media/audio/opening/opening.mp3 differ diff --git a/web/examples/candy-jam/media/audio/opening/opening.ogg b/web/examples/candy-jam/media/audio/opening/opening.ogg new file mode 100644 index 00000000..ed68945a Binary files /dev/null and b/web/examples/candy-jam/media/audio/opening/opening.ogg differ diff --git a/web/examples/candy-jam/media/audio/play/static.mp3 b/web/examples/candy-jam/media/audio/play/static.mp3 new file mode 100644 index 00000000..6a221fb8 Binary files /dev/null and b/web/examples/candy-jam/media/audio/play/static.mp3 differ diff --git a/web/examples/candy-jam/media/audio/play/static.ogg b/web/examples/candy-jam/media/audio/play/static.ogg new file mode 100644 index 00000000..ca63e9c2 Binary files /dev/null and b/web/examples/candy-jam/media/audio/play/static.ogg differ diff --git a/web/examples/candy-jam/media/audio/start.mp3 b/web/examples/candy-jam/media/audio/start.mp3 new file mode 100644 index 00000000..6341e801 Binary files /dev/null and b/web/examples/candy-jam/media/audio/start.mp3 differ diff --git a/web/examples/candy-jam/media/audio/start.ogg b/web/examples/candy-jam/media/audio/start.ogg new file mode 100644 index 00000000..cb0c3020 Binary files /dev/null and b/web/examples/candy-jam/media/audio/start.ogg differ diff --git a/web/examples/candy-jam/media/fonts/riffic.ttf b/web/examples/candy-jam/media/fonts/riffic.ttf new file mode 100644 index 00000000..1e2dbab4 Binary files /dev/null and b/web/examples/candy-jam/media/fonts/riffic.ttf differ diff --git a/web/examples/candy-jam/media/fonts/riffic.woff b/web/examples/candy-jam/media/fonts/riffic.woff new file mode 100644 index 00000000..9f7132e3 Binary files /dev/null and b/web/examples/candy-jam/media/fonts/riffic.woff differ diff --git a/web/examples/candy-jam/media/graphics/generic-ad/dark/close-button.png b/web/examples/candy-jam/media/graphics/generic-ad/dark/close-button.png new file mode 100644 index 00000000..37b8ec21 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/generic-ad/dark/close-button.png differ diff --git a/web/examples/candy-jam/media/graphics/generic-ad/light/close-button.png b/web/examples/candy-jam/media/graphics/generic-ad/light/close-button.png new file mode 100644 index 00000000..cbaae013 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/generic-ad/light/close-button.png differ diff --git a/web/examples/candy-jam/media/graphics/loading/ajax-loader.gif b/web/examples/candy-jam/media/graphics/loading/ajax-loader.gif new file mode 100644 index 00000000..c95d05a0 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/loading/ajax-loader.gif differ diff --git a/web/examples/candy-jam/media/graphics/misc/enter-fullscreen-transparent.png b/web/examples/candy-jam/media/graphics/misc/enter-fullscreen-transparent.png new file mode 100644 index 00000000..a69af7dc Binary files /dev/null and b/web/examples/candy-jam/media/graphics/misc/enter-fullscreen-transparent.png differ diff --git a/web/examples/candy-jam/media/graphics/misc/exit-fullscreen-transparent.png b/web/examples/candy-jam/media/graphics/misc/exit-fullscreen-transparent.png new file mode 100644 index 00000000..53b8047a Binary files /dev/null and b/web/examples/candy-jam/media/graphics/misc/exit-fullscreen-transparent.png differ diff --git a/web/examples/candy-jam/media/graphics/misc/favicon.ico b/web/examples/candy-jam/media/graphics/misc/favicon.ico new file mode 100644 index 00000000..b867c6bd Binary files /dev/null and b/web/examples/candy-jam/media/graphics/misc/favicon.ico differ diff --git a/web/examples/candy-jam/media/graphics/misc/invisible.png b/web/examples/candy-jam/media/graphics/misc/invisible.png new file mode 100644 index 00000000..36de275e Binary files /dev/null and b/web/examples/candy-jam/media/graphics/misc/invisible.png differ diff --git a/web/examples/candy-jam/media/graphics/opening/kitty.png b/web/examples/candy-jam/media/graphics/opening/kitty.png new file mode 100644 index 00000000..a52f87e1 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/opening/kitty.png differ diff --git a/web/examples/candy-jam/media/graphics/opening/kittytitle.png b/web/examples/candy-jam/media/graphics/opening/kittytitle.png new file mode 100644 index 00000000..ea12b86c Binary files /dev/null and b/web/examples/candy-jam/media/graphics/opening/kittytitle.png differ diff --git a/web/examples/candy-jam/media/graphics/opening/m_icon.png b/web/examples/candy-jam/media/graphics/opening/m_icon.png new file mode 100644 index 00000000..35906ff0 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/opening/m_icon.png differ diff --git a/web/examples/candy-jam/media/graphics/opening/shield.png b/web/examples/candy-jam/media/graphics/opening/shield.png new file mode 100644 index 00000000..22bd8276 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/opening/shield.png differ diff --git a/web/examples/candy-jam/media/graphics/opening/title.png b/web/examples/candy-jam/media/graphics/opening/title.png new file mode 100644 index 00000000..d9a77dcb Binary files /dev/null and b/web/examples/candy-jam/media/graphics/opening/title.png differ diff --git a/web/examples/candy-jam/media/graphics/orientate/landscape.png b/web/examples/candy-jam/media/graphics/orientate/landscape.png new file mode 100644 index 00000000..24d09451 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/orientate/landscape.png differ diff --git a/web/examples/candy-jam/media/graphics/orientate/portrait.png b/web/examples/candy-jam/media/graphics/orientate/portrait.png new file mode 100644 index 00000000..24d09451 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/orientate/portrait.png differ diff --git a/web/examples/candy-jam/media/graphics/orientate/scroll_down.png b/web/examples/candy-jam/media/graphics/orientate/scroll_down.png new file mode 100644 index 00000000..e255ee91 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/orientate/scroll_down.png differ diff --git a/web/examples/candy-jam/media/graphics/overlays/close-button.png b/web/examples/candy-jam/media/graphics/overlays/close-button.png new file mode 100644 index 00000000..8e22001a Binary files /dev/null and b/web/examples/candy-jam/media/graphics/overlays/close-button.png differ diff --git a/web/examples/candy-jam/media/graphics/overlays/close-button2.png b/web/examples/candy-jam/media/graphics/overlays/close-button2.png new file mode 100644 index 00000000..784e7afd Binary files /dev/null and b/web/examples/candy-jam/media/graphics/overlays/close-button2.png differ diff --git a/web/examples/candy-jam/media/graphics/promo/banners/1300x500.png b/web/examples/candy-jam/media/graphics/promo/banners/1300x500.png new file mode 100644 index 00000000..9f1a3f63 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/promo/banners/1300x500.png differ diff --git a/web/examples/candy-jam/media/graphics/promo/banners/180x120.png b/web/examples/candy-jam/media/graphics/promo/banners/180x120.png new file mode 100644 index 00000000..9f3da65b Binary files /dev/null and b/web/examples/candy-jam/media/graphics/promo/banners/180x120.png differ diff --git a/web/examples/candy-jam/media/graphics/promo/banners/440x280.png b/web/examples/candy-jam/media/graphics/promo/banners/440x280.png new file mode 100644 index 00000000..a81fbdfe Binary files /dev/null and b/web/examples/candy-jam/media/graphics/promo/banners/440x280.png differ diff --git a/web/examples/candy-jam/media/graphics/promo/icons/1024x1024.png b/web/examples/candy-jam/media/graphics/promo/icons/1024x1024.png new file mode 100644 index 00000000..0449d2ac Binary files /dev/null and b/web/examples/candy-jam/media/graphics/promo/icons/1024x1024.png differ diff --git a/web/examples/candy-jam/media/graphics/promo/icons/128x128.png b/web/examples/candy-jam/media/graphics/promo/icons/128x128.png new file mode 100644 index 00000000..39ceb064 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/promo/icons/128x128.png differ diff --git a/web/examples/candy-jam/media/graphics/promo/icons/64x64.png b/web/examples/candy-jam/media/graphics/promo/icons/64x64.png new file mode 100644 index 00000000..4f171a5a Binary files /dev/null and b/web/examples/candy-jam/media/graphics/promo/icons/64x64.png differ diff --git a/web/examples/candy-jam/media/graphics/promo/icons/72x72.png b/web/examples/candy-jam/media/graphics/promo/icons/72x72.png new file mode 100644 index 00000000..ddcd930b Binary files /dev/null and b/web/examples/candy-jam/media/graphics/promo/icons/72x72.png differ diff --git a/web/examples/candy-jam/media/graphics/promo/icons/96x96.png b/web/examples/candy-jam/media/graphics/promo/icons/96x96.png new file mode 100644 index 00000000..6ea550e6 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/promo/icons/96x96.png differ diff --git a/web/examples/candy-jam/media/graphics/promo/screenshots/1.png b/web/examples/candy-jam/media/graphics/promo/screenshots/1.png new file mode 100644 index 00000000..b50b7f72 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/promo/screenshots/1.png differ diff --git a/web/examples/candy-jam/media/graphics/promo/screenshots/2.png b/web/examples/candy-jam/media/graphics/promo/screenshots/2.png new file mode 100644 index 00000000..4fe110ed Binary files /dev/null and b/web/examples/candy-jam/media/graphics/promo/screenshots/2.png differ diff --git a/web/examples/candy-jam/media/graphics/promo/screenshots/3.png b/web/examples/candy-jam/media/graphics/promo/screenshots/3.png new file mode 100644 index 00000000..96d6a63a Binary files /dev/null and b/web/examples/candy-jam/media/graphics/promo/screenshots/3.png differ diff --git a/web/examples/candy-jam/media/graphics/promo/screenshots/4.png b/web/examples/candy-jam/media/graphics/promo/screenshots/4.png new file mode 100644 index 00000000..076ea9f6 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/promo/screenshots/4.png differ diff --git a/web/examples/candy-jam/media/graphics/promo/screenshots/5.png b/web/examples/candy-jam/media/graphics/promo/screenshots/5.png new file mode 100644 index 00000000..04d9f42b Binary files /dev/null and b/web/examples/candy-jam/media/graphics/promo/screenshots/5.png differ diff --git a/web/examples/candy-jam/media/graphics/splash/bar.png b/web/examples/candy-jam/media/graphics/splash/bar.png new file mode 100644 index 00000000..f6015e0d Binary files /dev/null and b/web/examples/candy-jam/media/graphics/splash/bar.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/background/background-cloud.png b/web/examples/candy-jam/media/graphics/sprites/background/background-cloud.png new file mode 100644 index 00000000..94c6457b Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/background/background-cloud.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/background/background-cover.png b/web/examples/candy-jam/media/graphics/sprites/background/background-cover.png new file mode 100644 index 00000000..d12d7ba2 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/background/background-cover.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/background/background.png b/web/examples/candy-jam/media/graphics/sprites/background/background.png new file mode 100644 index 00000000..611a8314 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/background/background.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/btn_more_games.png b/web/examples/candy-jam/media/graphics/sprites/btn_more_games.png new file mode 100644 index 00000000..31b64aa2 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/btn_more_games.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/buttons/btn-empty.png b/web/examples/candy-jam/media/graphics/sprites/buttons/btn-empty.png new file mode 100644 index 00000000..d1f95b7a Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/buttons/btn-empty.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/buttons/btn-empty2.png b/web/examples/candy-jam/media/graphics/sprites/buttons/btn-empty2.png new file mode 100644 index 00000000..be06f832 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/buttons/btn-empty2.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/buttons/btn-empty3.png b/web/examples/candy-jam/media/graphics/sprites/buttons/btn-empty3.png new file mode 100644 index 00000000..4324e873 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/buttons/btn-empty3.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/buttons/btn-option-small.png b/web/examples/candy-jam/media/graphics/sprites/buttons/btn-option-small.png new file mode 100644 index 00000000..ad4845a4 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/buttons/btn-option-small.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/buttons/btn-toggle.png b/web/examples/candy-jam/media/graphics/sprites/buttons/btn-toggle.png new file mode 100644 index 00000000..8e190e03 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/buttons/btn-toggle.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/effect/bomb-effect.png b/web/examples/candy-jam/media/graphics/sprites/effect/bomb-effect.png new file mode 100644 index 00000000..c6648757 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/effect/bomb-effect.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/effect/hint.png b/web/examples/candy-jam/media/graphics/sprites/effect/hint.png new file mode 100644 index 00000000..26cd1115 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/effect/hint.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/effect/spark.png b/web/examples/candy-jam/media/graphics/sprites/effect/spark.png new file mode 100644 index 00000000..abb9a8b9 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/effect/spark.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/bar.png b/web/examples/candy-jam/media/graphics/sprites/items/bar.png new file mode 100644 index 00000000..7c1a150a Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/bar.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/bomb.png b/web/examples/candy-jam/media/graphics/sprites/items/bomb.png new file mode 100644 index 00000000..2bc4b381 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/bomb.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/ch-ball-springkles.png b/web/examples/candy-jam/media/graphics/sprites/items/ch-ball-springkles.png new file mode 100644 index 00000000..2a63cf5b Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/ch-ball-springkles.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/ch-ball-stripes.png b/web/examples/candy-jam/media/graphics/sprites/items/ch-ball-stripes.png new file mode 100644 index 00000000..8045ecb3 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/ch-ball-stripes.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/ch-oval.png b/web/examples/candy-jam/media/graphics/sprites/items/ch-oval.png new file mode 100644 index 00000000..cad7e2ec Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/ch-oval.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/ch-square-2x.png b/web/examples/candy-jam/media/graphics/sprites/items/ch-square-2x.png new file mode 100644 index 00000000..9d1760c8 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/ch-square-2x.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/ch-square-stripes.png b/web/examples/candy-jam/media/graphics/sprites/items/ch-square-stripes.png new file mode 100644 index 00000000..ae6dd428 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/ch-square-stripes.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/check-ok.png b/web/examples/candy-jam/media/graphics/sprites/items/check-ok.png new file mode 100644 index 00000000..bc57bafe Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/check-ok.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/clock.png b/web/examples/candy-jam/media/graphics/sprites/items/clock.png new file mode 100644 index 00000000..8a53cb8a Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/clock.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/empty-board.png b/web/examples/candy-jam/media/graphics/sprites/items/empty-board.png new file mode 100644 index 00000000..9fe55779 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/empty-board.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/green.png b/web/examples/candy-jam/media/graphics/sprites/items/green.png new file mode 100644 index 00000000..2f0c5f2f Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/green.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/item-board-midle.png b/web/examples/candy-jam/media/graphics/sprites/items/item-board-midle.png new file mode 100644 index 00000000..409ca44a Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/item-board-midle.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/item-board.png b/web/examples/candy-jam/media/graphics/sprites/items/item-board.png new file mode 100644 index 00000000..91f00c65 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/item-board.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/item-border-bottom.png b/web/examples/candy-jam/media/graphics/sprites/items/item-border-bottom.png new file mode 100644 index 00000000..34d5a9ce Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/item-border-bottom.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/item-border-top.png b/web/examples/candy-jam/media/graphics/sprites/items/item-border-top.png new file mode 100644 index 00000000..f148c1e2 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/item-border-top.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/item-score.png b/web/examples/candy-jam/media/graphics/sprites/items/item-score.png new file mode 100644 index 00000000..19429d6f Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/item-score.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/item-title.png b/web/examples/candy-jam/media/graphics/sprites/items/item-title.png new file mode 100644 index 00000000..45fa88ae Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/item-title.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/orange.png b/web/examples/candy-jam/media/graphics/sprites/items/orange.png new file mode 100644 index 00000000..dadf3382 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/orange.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/purple-stripes.png b/web/examples/candy-jam/media/graphics/sprites/items/purple-stripes.png new file mode 100644 index 00000000..c2c909d6 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/purple-stripes.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/purple.png b/web/examples/candy-jam/media/graphics/sprites/items/purple.png new file mode 100644 index 00000000..c32cfd75 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/purple.png differ diff --git a/web/examples/candy-jam/media/graphics/sprites/items/yellow.png b/web/examples/candy-jam/media/graphics/sprites/items/yellow.png new file mode 100644 index 00000000..850c8364 Binary files /dev/null and b/web/examples/candy-jam/media/graphics/sprites/items/yellow.png differ diff --git a/web/examples/candy-jam/media/text/dimbo-small-brown-font.png b/web/examples/candy-jam/media/text/dimbo-small-brown-font.png new file mode 100644 index 00000000..ba96255f Binary files /dev/null and b/web/examples/candy-jam/media/text/dimbo-small-brown-font.png differ diff --git a/web/examples/candy-jam/media/text/dimbo-small-white-font.png b/web/examples/candy-jam/media/text/dimbo-small-white-font.png new file mode 100644 index 00000000..d082b460 Binary files /dev/null and b/web/examples/candy-jam/media/text/dimbo-small-white-font.png differ diff --git a/web/examples/candy-jam/media/text/strings.js b/web/examples/candy-jam/media/text/strings.js new file mode 100644 index 00000000..7fc40565 --- /dev/null +++ b/web/examples/candy-jam/media/text/strings.js @@ -0,0 +1,63 @@ +var _STRINGS = { + "Ad":{ + "Mobile":{ + "Preroll":{ + "ReadyIn":"The game is ready in ", + "Loading":"Your game is loading...", + "Close":"Close", + }, + "Header":{ + "ReadyIn":"The game is ready in ", + "Loading":"Your game is loading...", + "Close":"Close", + }, + "End":{ + "ReadyIn":"Advertisement ends in ", + "Loading":"Please wait ...", + "Close":"Close", + }, + }, + }, + + "Splash":{ + "Loading":"Loading ...", + "LogoLine1":"Some text here", + "LogoLine2":"powered by MarketJS", + "LogoLine3":"none", + "TapToStart":"TAP TO START", + }, + + "Game":{ + "SelectPlayer":"Select Player", + "Win":"You win!", + "Lose":"You lose!", + "Score":"Score", + "Time":"Time", + "GameOverCapt":"GAME OVER", + "Completed":"You have completed", + "Level":"Level", + "LevelCapt":"LEVEL", + "NoMoves":"No more moves", + "HighScores":"High Scores", + "ScoreCapt":"SCORE", + "CollectCandies":"Collect These Candies", + "MusicCapt":"MUSIC", + "SoundCapt":"SOUND", + + "Play" : "Play", + "Options" : "Options", + "Scores" : "Scores", + "MoreGames" : "More Games", + "Home" : "Home", + "Back" : "Back", + "Targets" : "Target", + }, + + "Results":{ + "Title":"High score", + }, +}; + +var fonts = { + font1:'riffic' +} \ No newline at end of file