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:{play:"PLAY",question:"Question ",moregames:"MORE GAMES"},Results:{win:"YOU WIN", gameover:"GAME OVER",result:"Result",best:"Best"}},_Question={1:{question:'These insects were originally called "Flutterby"',textAnswer:{1:"Butterfly",2:"Moths",3:"Worms",4:"Roaches"}},2:{question:"It is known to be the best-selling nonfiction book.",textAnswer:{1:"The Bible",2:"Hannibal Rising",3:"Harry Potter",4:"Twilight"}},3:{question:"On a keyboard, which vowel is not on the first row of letters?",textAnswer:{1:"A",2:"O",3:"I",4:"U"}},4:{question:"It is the most popular non-alcoholic drink in the world.", textAnswer:{1:"Coffee",2:"Juice",3:"Tea",4:"Water"}},5:{question:"How many stars are on the European Union flag?",textAnswer:{1:"12",2:"9",3:"11",4:"15"}},6:{question:'It is another word for "Dictionary".',textAnswer:{1:"Lexicon",2:"Book",3:"Bibliography",4:"Thesaurus"}},7:{question:"Which chess piece can only move diagonally?",textAnswer:{1:"Bishop",2:"Rook",3:"Queen",4:"Horse"}},8:{question:"Shylock is a character from among which of Shakespeare's books?",textAnswer:{1:"The Merchant of Venice", 2:"King Lear",3:"Romeo and Juliet",4:"Macbeth"}},9:{question:"What is sushi usually wrapped in?",textAnswer:{1:"Edible seaweed",2:"Dried kelp",3:"Gelatin",4:"Edible paper"}},10:{question:"Which of the following is not an apple variant?",textAnswer:{1:"Plantain",2:"May Queen",3:"Fuji Apple",4:"Red Delicious"}},11:{question:"In Greek mythology, what is the name of the monster with a head full of snakes?",textAnswer:{1:"Medusa",2:"Minotaur",3:"Cerberus",4:"Hydra"}},12:{question:"A group of crows is called a(n)?", textAnswer:{1:"Murder",2:"Unkindness",3:"Pack",4:"Flock"}},13:{question:"A violin is made up of how many pieces of wood?",textAnswer:{1:"70",2:"20",3:"10",4:"36"}},14:{question:"It is a planet considered to be a \u2018gas giant.\u2019",textAnswer:{1:"Uranus",2:"Pluto",3:"Earth",4:"Mars"}},15:{question:"Botanically, which of the following is not a berry?",textAnswer:{1:"Strawberry",2:"Lingonberry",3:"Blueberry",4:"Banana"}}};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:!1,NewWindow:!0,Width:166,Height:61}},Branding:{Splash:{Enabled:!0},Logo:{Enabled:!1,Link:"http://google.com",LinkEnabled:!1,NewWindow:!0, Width:166,Height:61}},MoreGames:{Enabled:!1,Link:"http://www.marketjs.com/game/links/mobile",NewWindow:!0},TapToStartAudioUnlock:{Enabled:!1},Versioning:{Version:"1.0.0",Build:"27",DisplayLog:!0,DrawVersion:!0,FontSize:"24px",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||C;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=l.type(b);return"function"!==d&&!l.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 R(b){var c=Hc.exec(b.type);return c?b.type=c[1]:b.removeAttribute("type"),b}function Kb(b,c){var d,g,e,f,p,m;if(1===c.nodeType){if(A.hasData(b)&&(d=A.access(b),g=A.set(c,d),m=d.events))for(e in delete g.handle,g.events={},m){d=0;for(g=m[e].length;dc;c+=2)"margin"===d&&(f+=l.css(b,d+ta[c],!0,e)),g?("content"===d&&(f-=l.css(b,"padding"+ta[c],!0,e)),"margin"!==d&&(f-=l.css(b,"border"+ta[c]+"Width",!0,e))):(f+=l.css(b,"padding"+ta[c],!0,e),"padding"!==d&&(f+=l.css(b,"border"+ta[c]+"Width",!0,e)));return f}function Qb(b,c,d){var g,e=Va(b),f=Ma(b,c,e),m="border-box"===l.css(b,"boxSizing",!1,e);return ob.test(f)? f:(g=m&&(M.boxSizingReliable()||f===b.style[c]),"auto"===f&&(f=b["offset"+c[0].toUpperCase()+c.slice(1)]),f=parseFloat(f)||0,f+U(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 Y(){Wa&&(!1===C.hidden&&b.requestAnimationFrame?b.requestAnimationFrame(Y):b.setTimeout(Y,l.fx.interval),l.fx.tick())}function H(){return b.setTimeout(function(){Da=void 0}),Da=l.now()}function ka(b,c){var d,g=0,e={height:b};for(c=c?1:0;4>g;g+=2-c)d=ta[g],e["margin"+ d]=e["padding"+d]=b;return c&&(e.opacity=e.width=b),e}function Rb(b,c,d){for(var g,e=(fa.tweeners[c]||[]).concat(fa.tweeners["*"]),f=0,l=e.length;fd&&g?c:(g||p.notifyWith(b, [q,1,0]),p.resolveWith(b,[q]),!1)},q=p.promise({elem:b,props:l.extend({},c),opts:l.extend(!0,{specialEasing:{},easing:l.easing._default},d),originalProperties:c,originalOptions:d,startTime:Da||H(),duration:d.duration,tweens:[],createTween:function(c,d){var B=l.Tween(b,q.opts,c,d,q.opts.specialEasing[c]||q.opts.easing);return q.tweens.push(B),B},stop:function(c){var d=0,B=c?q.tweens.length:0;if(e)return this;for(e=!0;db?this[b+this.length]:this[b]},pushStack:function(b){b=l.merge(this.constructor(),b);return b.prevObject=this,b},each:function(b){return l.each(this,b)},map:function(b){return this.pushStack(l.map(this,function(c,d){return b.call(c,d,c)}))},slice:function(){return this.pushStack(xa.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&&bD.cacheLength&&delete b[c.shift()],b[d+" "]=g}var c=[];return b},ga=function(b){return b[N]=!0,b},ia=function(b){var c=G.createElement("fieldset");try{return!!b(c)}catch(d){return!1}finally{c.parentNode&&c.parentNode.removeChild(c)}},xb=function(b,c){for(var d=b.split("|"),g=d.length;g--;)D.attrHandle[d[g]]=c},Zb=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},Tc=function(b){return function(c){return"input"===c.nodeName.toLowerCase()&&c.type===b}},Uc=function(b){return function(c){var d=c.nodeName.toLowerCase();return("input"===d||"button"===d)&&c.type===b}},$b=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&&Vc(c)===b:c.disabled===b:"label"in c&&c.disabled===b}},ya=function(b){return ga(function(c){return c= +c,ga(function(d,g){for(var e,f=b([],d.length,c),l=f.length;l--;)d[e=f[l]]&&(d[e]=!(g[e]=d[e]))})})},vb=function(b){return b&&"undefined"!=typeof b.getElementsByTagName&&b},ac=function(){},$a=function(b){for(var c=0,d=b.length,g="";c+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,cd=/=[\x20\t\r\n\f]*([^\]'"]*?)[\x20\t\r\n\f]*\]/g,dd=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]*\\])*)|.*)\\)|)"), ed=/^(?:\\.|[\w-]|[^\x00-\xa0])+$/,gb={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")},fd=/^(?:input|select|textarea|button)$/i,gd=/^h\d$/i,Pa=/^[^{]+\{\s*\[native \w/,Sc=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ub=/[+~]/,la=/\\([\da-f]{1,6}[\x20\t\r\n\f]?|([\x20\t\r\n\f])|.)/ig,ma=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)},Wb=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Xb=function(b,c){return c?"\x00"===b?"\ufffd":b.slice(0,-1)+"\\"+b.charCodeAt(b.length-1).toString(16)+" ":"\\"+b},fc=function(){pa()}, Vc=bb(function(b){return!0===b.disabled&&("form"in b||"label"in b)},{dir:"parentNode",next:"legend"});try{qa.apply(Ba=ec.call(ba.childNodes),ba.childNodes),Ba[ba.childNodes.length].nodeType}catch(Jd){qa={apply:Ba.length?function(b,c){Zc.apply(b,ec.call(c))}:function(b,c){for(var d=b.length,g=0;b[d++]=c[g++];);b.length=d-1}}}P=I.support={};bc=I.isXML=function(b){b=b&&(b.ownerDocument||b).documentElement;return!!b&&"HTML"!==b.nodeName};pa=I.setDocument=function(b){var c,d;b=b?b.ownerDocument||b:ba; return b!==G&&9===b.nodeType&&b.documentElement?(G=b,da=G.documentElement,ca=!bc(G),ba!==G&&(d=G.defaultView)&&d.top!==d&&(d.addEventListener?d.addEventListener("unload",fc,!1):d.attachEvent&&d.attachEvent("onunload",fc)),P.attributes=ia(function(b){return b.className="i",!b.getAttribute("className")}),P.getElementsByTagName=ia(function(b){return b.appendChild(G.createComment("")),!b.getElementsByTagName("*").length}),P.getElementsByClassName=Pa.test(G.getElementsByClassName),P.getById=ia(function(b){return da.appendChild(b).id= N,!G.getElementsByName||!G.getElementsByName(N).length}),P.getById?(D.filter.ID=function(b){var c=b.replace(la,ma);return function(b){return b.getAttribute("id")===c}},D.find.ID=function(b,c){if("undefined"!=typeof c.getElementById&&ca){var d=c.getElementById(b);return d?[d]:[]}}):(D.filter.ID=function(b){var c=b.replace(la,ma);return function(b){return(b="undefined"!=typeof b.getAttributeNode&&b.getAttributeNode("id"))&&b.value===c}},D.find.ID=function(b,c){if("undefined"!=typeof c.getElementById&& ca){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[]}}),D.find.TAG=P.getElementsByTagName?function(b,c){return"undefined"!=typeof c.getElementsByTagName?c.getElementsByTagName(b):P.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},D.find.CLASS= P.getElementsByClassName&&function(b,c){if("undefined"!=typeof c.getElementsByClassName&&ca)return c.getElementsByClassName(b)},Aa=[],V=[],(P.qsa=Pa.test(G.querySelectorAll))&&(ia(function(b){da.appendChild(b).innerHTML="";b.querySelectorAll("[msallowcapture^='']").length&&V.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");b.querySelectorAll("[selected]").length||V.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~="+N+"-]").length||V.push("~=");b.querySelectorAll(":checked").length||V.push(":checked");b.querySelectorAll("a#"+N+"+*").length||V.push(".#.+[+~]")}),ia(function(b){b.innerHTML="";var c=G.createElement("input");c.setAttribute("type","hidden");b.appendChild(c).setAttribute("name","D");b.querySelectorAll("[name=d]").length&&V.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");2!==b.querySelectorAll(":enabled").length&& V.push(":enabled",":disabled");da.appendChild(b).disabled=!0;2!==b.querySelectorAll(":disabled").length&&V.push(":enabled",":disabled");b.querySelectorAll("*,:x");V.push(",.*:")})),(P.matchesSelector=Pa.test(fb=da.matches||da.webkitMatchesSelector||da.mozMatchesSelector||da.oMatchesSelector||da.msMatchesSelector))&&ia(function(b){P.disconnectedMatch=fb.call(b,"*");fb.call(b,"[s!='']:x");Aa.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]*\\])*)|.*)\\)|)")}), V=V.length&&RegExp(V.join("|")),Aa=Aa.length&&RegExp(Aa.join("|")),c=Pa.test(da.compareDocumentPosition),Na=c||Pa.test(da.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},Cb=c?function(b,c){if(b===c)return Fa=!0,0;var d=!b.compareDocumentPosition-!c.compareDocumentPosition; return d?d:(d=(b.ownerDocument||b)===(c.ownerDocument||c)?b.compareDocumentPosition(c):1,1&d||!P.sortDetached&&c.compareDocumentPosition(b)===d?b===G||b.ownerDocument===ba&&Na(ba,b)?-1:c===G||c.ownerDocument===ba&&Na(ba,c)?1:ra?za(ra,b)-za(ra,c):0:4&d?-1:1)}:function(b,c){if(b===c)return Fa=!0,0;var d,x=0;d=b.parentNode;var g=c.parentNode,e=[b],B=[c];if(!d||!g)return b===G?-1:c===G?1:d?-1:g?1:ra?za(ra,b)-za(ra,c):0;if(d===g)return Zb(b,c);for(d=b;d=d.parentNode;)e.unshift(d);for(d=c;d=d.parentNode;)B.unshift(d); for(;e[x]===B[x];)x++;return x?Zb(e[x],B[x]):e[x]===ba?-1:B[x]===ba?1:0},G):G};I.matches=function(b,c){return I(b,null,null,c)};I.matchesSelector=function(b,c){if((b.ownerDocument||b)!==G&&pa(b),c=c.replace(cd,"='$1']"),P.matchesSelector&&ca&&!Za[c+" "]&&(!Aa||!Aa.test(c))&&(!V||!V.test(c)))try{var d=fb.call(b,c);if(d||P.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(la,ma),b[3]=(b[3]||b[4]||b[5]||"").replace(la,ma),"~="===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]||I.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]&&I.error(b[0]),b},PSEUDO:function(b){var c,d=!b[6]&&b[2];return gb.CHILD.test(b[0])?null:(b[3]?b[2]=b[4]||b[5]||"":d&&dd.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(la,ma).toLowerCase();return"*"===b?function(){return!0}:function(b){return b.nodeName&&b.nodeName.toLowerCase()===c}},CLASS:function(b){var c=cc[b+" "];return c||(c=RegExp("(^|[\\x20\\t\\r\\n\\f])"+b+"([\\x20\\t\\r\\n\\f]|$)"))&&cc(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=I.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!D.pseudos.empty(b)},header:function(b){return gd.test(b.nodeName)},input:function(b){return fd.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:ya(function(){return[0]}),last:ya(function(b,c){return[c-1]}),eq:ya(function(b,c,d){return[0>d?d+c:d]}),even:ya(function(b,c){for(var d=0;dd?d+c:d;0<=--c;)b.push(c);return b}),gt:ya(function(b,c,d){for(d=0>d?d+c:d;++d:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i, Dc=/^.[^:#\[\.,]*$/;l.filter=function(b,c,d){var g=c[0];return d&&(b=":not("+b+")"),1===c.length&&1===g.nodeType?l.find.matchesSelector(g,b)?[g]:[]:l.find.matches(b,l.grep(c,function(b){return 1===b.nodeType}))};l.fn.extend({find:function(b){var c,d,g=this.length,e=this;if("string"!=typeof b)return this.pushStack(l(b).filter(function(){for(c=0;c)[^>]*|#([\w-]+))$/;(l.fn.init=function(b,c,d){var g,e;if(!b)return this;if(d=d||jc,"string"==typeof b){if(g="<"===b[0]&&">"===b[b.length-1]&&3<=b.length?[null,b,null]:hd.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 l?c[0]:c,l.merge(this,l.parseHTML(g[1], c&&c.nodeType?c.ownerDocument||c:C,!0)),ic.test(g[1])&&l.isPlainObject(c))for(g in c)l.isFunction(this[g])?this[g](c[g]):this.attr(g,c[g]);return this}return e=C.getElementById(g[2]),e&&(this[0]=e,this.length=1),this}return b.nodeType?(this[0]=b,this.length=1,this):l.isFunction(b)?void 0!==d.ready?d.ready(b):b(l):l.makeArray(b,this)}).prototype=l.fn;jc=l(C);var id=/^(?:parents|prev(?:Until|All))/,jd={children:!0,contents:!0,next:!0,prev:!0};l.fn.extend({has:function(b){var c=l(b,this),d=c.length; return this.filter(function(){for(var b=0;bd.nodeType&&(m?-1=m&&(e!==g&&(p=void 0,B=[b]),d.rejectWith(p,B))}};c?q():(l.Deferred.getStackHook&&(q.stackTrace=l.Deferred.getStackHook()),b.setTimeout(q))}}var m=0;return l.Deferred(function(b){d[0][3].add(f(0,b,l.isFunction(x)?x:r,b.notifyWith));d[1][3].add(f(0,b,l.isFunction(c)?c:r));d[2][3].add(f(0,b,l.isFunction(e)?e:g))}).promise()},promise:function(b){return null!=b?l.extend(b,f):f}},m={};return l.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=xa.call(arguments),f=l.Deferred(),m=function(b){return function(d){g[b]=this;e[b]=1=c&&(p(b,f.done(m(d)).resolve,f.reject,!c),"pending"===f.state()||l.isFunction(e[d]&&e[d].then)))return f.then();for(;d--;)p(e[d], m(d),f.reject);return f.promise()}});var kd=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;l.Deferred.exceptionHook=function(c,d){b.console&&b.console.warn&&c&&kd.test(c.name)&&b.console.warn("jQuery.Deferred exception: "+c.message,c.stack,d)};l.readyException=function(c){b.setTimeout(function(){throw c;})};var Db=l.Deferred();l.fn.ready=function(b){return Db.then(b)["catch"](function(b){l.readyException(b)}),this};l.extend({isReady:!1,readyWait:1,ready:function(b){(!0===b?--l.readyWait: l.isReady)||(l.isReady=!0,!0!==b&&0<--l.readyWait||Db.resolveWith(C,[l]))}});l.ready.then=Db.then;"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?b.setTimeout(l.ready):(C.addEventListener("DOMContentLoaded",m),b.addEventListener("load",m));var na=function(b,c,d,g,e,f,m){var p=0,j=b.length,q=null==d;if("object"===l.type(d))for(p in e=!0,d)na(b,c,p,d[p],!0,f,m);else if(void 0!==g&&(e=!0,l.isFunction(g)||(m=!0),q&&(m?(c.call(b,g),c=null):(q=c,c=function(b,c,d){return q.call(l(b), d)})),c))for(;p\x20\t\r\n\f]+)/i,Jb=/^$|\/(?:java|ecma)script/i,Z={option:[1,""],thead:[1,"","
"],col:[2,"","
"], tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Z.optgroup=Z.option;Z.tbody=Z.tfoot=Z.colgroup=Z.caption=Z.thead;Z.th=Z.td;var Gc=/<|&#?\w+;/,ib=C.createDocumentFragment().appendChild(C.createElement("div")),jb=C.createElement("input");jb.setAttribute("type","radio");jb.setAttribute("checked","checked");jb.setAttribute("name","t");ib.appendChild(jb);M.checkClone=ib.cloneNode(!0).cloneNode(!0).lastChild.checked;ib.innerHTML=""; M.noCloneChecked=!!ib.cloneNode(!0).lastChild.defaultValue;!0;var kb=C.documentElement,ld=/^key/,md=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,nc=/^([^.]*)(?:\.(.+)|)/;l.event={global:{},add:function(b,c,d,g,e){var f,m,p,j,q,t,n,u,r,s;if(q=A.get(b)){d.handler&&(f=d,d=f.handler,e=f.selector);e&&l.find.matchesSelector(kb,e);d.guid||(d.guid=l.guid++);(j=q.events)||(j=q.events={});(m=q.handle)||(m=q.handle=function(c){return"undefined"!=typeof l&&l.event.triggered!==c.type?l.event.dispatch.apply(b, arguments):void 0});c=(c||"").match(aa)||[""];for(q=c.length;q--;)p=nc.exec(c[q])||[],r=s=p[1],p=(p[2]||"").split(".").sort(),r&&(n=l.event.special[r]||{},r=(e?n.delegateType:n.bindType)||r,n=l.event.special[r]||{},t=l.extend({type:r,origType:s,data:g,handler:d,guid:d.guid,selector:e,needsContext:e&&l.expr.match.needsContext.test(e),namespace:p.join(".")},f),(u=j[r])||(u=j[r]=[],u.delegateCount=0,n.setup&&!1!==n.setup.call(b,g,p,m)||b.addEventListener&&b.addEventListener(r,m)),n.add&&(n.add.call(b, t),t.handler.guid||(t.handler.guid=d.guid)),e?u.splice(u.delegateCount++,0,t):u.push(t),l.event.global[r]=!0)}},remove:function(b,c,d,g,e){var f,m,p,j,q,t,n,u,r,s,y,F=A.hasData(b)&&A.get(b);if(F&&(j=F.events)){c=(c||"").match(aa)||[""];for(q=c.length;q--;)if(p=nc.exec(c[q])||[],r=y=p[1],s=(p[2]||"").split(".").sort(),r){n=l.event.special[r]||{};r=(g?n.delegateType:n.bindType)||r;u=j[r]||[];p=p[2]&&RegExp("(^|\\.)"+s.join("\\.(?:.*\\.|)")+"(\\.|$)");for(m=f=u.length;f--;)t=u[f],!e&&y!==t.origType|| d&&d.guid!==t.guid||p&&!p.test(t.namespace)||g&&g!==t.selector&&("**"!==g||!t.selector)||(u.splice(f,1),t.selector&&u.delegateCount--,n.remove&&n.remove.call(b,t));m&&!u.length&&(n.teardown&&!1!==n.teardown.call(b,s,F.handle)||l.removeEvent(b,r,F.handle),delete j[r])}else for(r in j)l.event.remove(b,r+c[q],d,g,!0);l.isEmptyObject(j)&&A.remove(b,"handle events")}},dispatch:function(b){var c=l.event.fix(b),d,g,e,f,m,p,j=Array(arguments.length);g=(A.get(this,"events")||{})[c.type]||[];var q=l.event.special[c.type]|| {};j[0]=c;for(d=1;d\x20\t\r\n\f]*)[^>]*)\/>/gi,od=/\s*$/g;l.extend({htmlPrefilter:function(b){return b.replace(nd,"<$1>")},clone:function(b,c,d){var g,e,f,m,p=b.cloneNode(!0),j=l.contains(b.ownerDocument,b);if(!M.noCloneChecked&&!(1!==b.nodeType&&11!==b.nodeType||l.isXMLDoc(b))){m=y(p);f=y(b);g=0;for(e=f.length;gl.inArray(this,b)&&(l.cleanData(y(this)),d&&d.replaceChild(c,this))},b)}});l.each({appendTo:"append",prependTo:"prepend", insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,c){l.fn[b]=function(b){for(var d=[],g=l(b),e=g.length-1,f=0;f<=e;f++)b=f===e?this:this.clone(!0),l(g[f])[c](b),sb.apply(d,b.get());return this.pushStack(d)}});var Mb=/^margin/,ob=RegExp("^("+kc+")(?!px)[a-z%]+$","i"),Va=function(c){var d=c.ownerDocument.defaultView;return d&&d.opener||(d=b),d.getComputedStyle(c)},mb=function(){if(ha){ha.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%"; ha.innerHTML="";kb.appendChild(lb);var c=b.getComputedStyle(ha);oc="1%"!==c.top;pc="2px"===c.marginLeft;qc="4px"===c.width;ha.style.marginRight="50%";rc="4px"===c.marginRight;kb.removeChild(lb);ha=null}},oc,qc,rc,pc,lb=C.createElement("div"),ha=C.createElement("div");ha.style&&(ha.style.backgroundClip="content-box",ha.cloneNode(!0).style.backgroundClip="",M.clearCloneStyle="content-box"===ha.style.backgroundClip,lb.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute", lb.appendChild(ha),l.extend(M,{pixelPosition:function(){return mb(),oc},boxSizingReliable:function(){return mb(),qc},pixelMarginRight:function(){return mb(),rc},reliableMarginLeft:function(){return mb(),pc}}));!0;var pd=/^(none|table(?!-c[ea]).+)/,sc=/^--/,qd={position:"absolute",visibility:"hidden",display:"block"},tc={letterSpacing:"0",fontWeight:"400"},Pb=["Webkit","Moz","ms"],Ob=C.createElement("div").style;l.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=l.camelCase(c),j=sc.test(c),q=b.style;return j||(c=S(p)),m=l.cssHooks[c]||l.cssHooks[p],void 0===d?m&&"get"in m&&void 0!==(e=m.get(b,!1,g))?e:q[c]:(f=typeof d,"string"===f&&(e=Ka.exec(d))&&e[1]&& (d=t(b,c,e),f="number"),null!=d&&d===d&&("number"===f&&(d+=e&&e[3]||(l.cssNumber[p]?"":"px")),M.clearCloneStyle||""!==d||0!==c.indexOf("background")||(q[c]="inherit"),m&&"set"in m&&void 0===(d=m.set(b,d,g))||(j?q.setProperty(c,d):q[c]=d)),void 0)}},css:function(b,c,d,g){var e,f,m,p=l.camelCase(c);return sc.test(c)||(c=S(p)),m=l.cssHooks[c]||l.cssHooks[p],m&&"get"in m&&(e=m.get(b,!0,d)),void 0===e&&(e=Ma(b,c,g)),"normal"===e&&c in tc&&(e=tc[c]),""===d||d?(f=parseFloat(e),!0===d||isFinite(f)?f||0:e): e}});l.each(["height","width"],function(b,c){l.cssHooks[c]={get:function(b,d,g){if(d)return!pd.test(l.css(b,"display"))||b.getClientRects().length&&b.getBoundingClientRect().width?Qb(b,c,g):lc(b,qd,function(){return Qb(b,c,g)})},set:function(b,d,g){var e,f=g&&Va(b);g=g&&U(b,c,g,"border-box"===l.css(b,"boxSizing",!1,f),f);return g&&(e=Ka.exec(d))&&"px"!==(e[3]||"px")&&(b.style[c]=d,d=l.css(b,c)),T(b,d,g)}}});l.cssHooks.marginLeft=Nb(M.reliableMarginLeft,function(b,c){if(c)return(parseFloat(Ma(b,"marginLeft"))|| b.getBoundingClientRect().left-lc(b,{marginLeft:0},function(){return b.getBoundingClientRect().left}))+"px"});l.each({margin:"",padding:"",border:"Width"},function(b,c){l.cssHooks[b+c]={expand:function(d){var g=0,e={};for(d="string"==typeof d?d.split(" "):[d];4>g;g++)e[b+ta[g]+c]=d[g]||d[g-2]||d[0];return e}};Mb.test(b)||(l.cssHooks[b+c].set=T)});l.fn.extend({css:function(b,c){return na(this,function(b,c,d){var g,e={},f=0;if(Array.isArray(c)){d=Va(b);for(g=c.length;fg.indexOf(" "+f+" ")&&(g+=f+" ");g=ua(g);e!==g&&d.setAttribute("class",g)}return this},removeClass:function(b){var c,d,g,e,f,m,p=0;if(l.isFunction(b))return this.each(function(c){l(this).removeClass(b.call(this, c,va(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof b&&b)for(c=b.match(aa)||[];d=this[p++];)if(e=va(d),g=1===d.nodeType&&" "+ua(e)+" "){for(m=0;f=c[m++];)for(;-1e?j:m?e:0;du.indexOf(":")&&"on"+u,c=c[l.expando]?c:new l.Event(u,"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]:l.makeArray(d,[c]),n=l.event.special[u]||{},e||!n.trigger|| !1!==n.trigger.apply(g,d))){if(!e&&!n.noBubble&&!l.isWindow(g)){j=n.delegateType||u;for(vc.test(j+u)||(m=m.parentNode);m;m=m.parentNode)r.push(m),p=m;p===(g.ownerDocument||C)&&r.push(p.defaultView||p.parentWindow||b)}for(f=0;(m=r[f++])&&!c.isPropagationStopped();)c.type=1c||304===c;if(p){x=s;for(var Ca=J,z,A,D,C,G=x.contents,Q=x.dataTypes;"*"===Q[0];)Q.shift(),void 0===z&&(z=x.mimeType||Ca.getResponseHeader("Content-Type"));if(z)for(A in G)if(G[A]&& G[A].test(z)){Q.unshift(A);break}if(Q[0]in p)D=Q[0];else{for(A in p){if(!Q[0]||x.converters[A+" "+Q[0]]){D=A;break}C||(C=A)}D=D||C}x=p=D?(D!==Q[0]&&Q.unshift(D),p[D]):void 0}var I;a:{p=s;z=x;A=J;D=q;var L,X,H;x={};Ca=p.dataTypes.slice();if(Ca[1])for(L in p.converters)x[L.toLowerCase()]=p.converters[L];for(C=Ca.shift();C;)if(p.responseFields[C]&&(A[p.responseFields[C]]=z),!H&&D&&p.dataFilter&&(z=p.dataFilter(z,p.dataType)),H=C,C=Ca.shift())if("*"===C)C=H;else if("*"!==H&&H!==C){if(L=x[H+" "+C]||x["* "+ C],!L)for(I in x)if(X=I.split(" "),X[1]===C&&(L=x[H+" "+X[0]]||x["* "+X[0]])){!0===L?L=x[I]:!0!==x[I]&&(C=X[0],Ca.unshift(X[1]));break}if(!0!==L)if(L&&p["throws"])z=L(z);else try{z=L(z)}catch(M){I={state:"parsererror",error:L?M:"No conversion from "+H+" to "+C};break a}}I={state:"success",data:z}}x=I;q?(s.ifModified&&(B=J.getResponseHeader("Last-Modified"),B&&(l.lastModified[f]=B),B=J.getResponseHeader("etag"),B&&(l.etag[f]=B)),204===c||"HEAD"===s.type?K="nocontent":304===c?K="notmodified":(K=x.state, u=x.data,r=x.error,q=!r)):(r=K,!c&&K||(K="error",0>c&&(c=0)));J.status=c;J.statusText=(d||K)+"";q?E.resolveWith(y,[u,K,J]):E.rejectWith(y,[J,K,r]);J.statusCode(ka);ka=void 0;n&&F.trigger(q?"ajaxSuccess":"ajaxError",[J,s,q?u:r]);ea.fireWith(y,[J,K]);n&&(F.trigger("ajaxComplete",[J,s]),--l.active||l.event.trigger("ajaxStop"))}}"object"==typeof c&&(d=c,c=void 0);d=d||{};var e,f,m,p,j,q,t,n,u,r,s=l.ajaxSetup({},d),y=s.context||s,F=s.context&&(y.nodeType||y.jquery)?l(y):l.event,E=l.Deferred(),ea=l.Callbacks("once memory"), ka=s.statusCode||{},z={},A={},D="canceled",J={readyState:0,getResponseHeader:function(b){var c;if(t){if(!p)for(p={};c=Cd.exec(m);)p[c[1].toLowerCase()]=c[2];c=p[b.toLowerCase()]}return null==c?null:c},getAllResponseHeaders:function(){return t?m:null},setRequestHeader:function(b,c){return null==t&&(b=A[b.toLowerCase()]=A[b.toLowerCase()]||b,z[b]=c),this},overrideMimeType:function(b){return null==t&&(s.mimeType=b),this},statusCode:function(b){var c;if(b)if(t)J.always(b[J.status]);else for(c in b)ka[c]= [ka[c],b[c]];return this},abort:function(b){b=b||D;return e&&e.abort(b),g(0,b),this}};if(E.promise(J),s.url=((c||s.url||Ra.href)+"").replace(Ed,Ra.protocol+"//"),s.type=d.method||d.type||s.method||s.type,s.dataTypes=(s.dataType||"*").toLowerCase().match(aa)||[""],null==s.crossDomain){q=C.createElement("a");try{q.href=s.url,q.href=q.href,s.crossDomain=Fb.protocol+"//"+Fb.host!=q.protocol+"//"+q.host}catch(G){s.crossDomain=!0}}if(s.data&&s.processData&&"string"!=typeof s.data&&(s.data=l.param(s.data, s.traditional)),Tb(yc,s,d,J),t)return J;(n=l.event&&s.global)&&0===l.active++&&l.event.trigger("ajaxStart");s.type=s.type.toUpperCase();s.hasContent=!Dd.test(s.type);f=s.url.replace(Ad,"");s.hasContent?s.data&&s.processData&&0===(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&(s.data=s.data.replace(zd,"+")):(r=s.url.slice(f.length),s.data&&(f+=(Eb.test(f)?"&":"?")+s.data,delete s.data),!1===s.cache&&(f=f.replace(Bd,"$1"),r=(Eb.test(f)?"&":"?")+"_="+wc++ +r),s.url=f+r);s.ifModified&& (l.lastModified[f]&&J.setRequestHeader("If-Modified-Since",l.lastModified[f]),l.etag[f]&&J.setRequestHeader("If-None-Match",l.etag[f]));(s.data&&s.hasContent&&!1!==s.contentType||d.contentType)&&J.setRequestHeader("Content-Type",s.contentType);J.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+("*"!==s.dataTypes[0]?", "+zc+"; q=0.01":""):s.accepts["*"]);for(u in s.headers)J.setRequestHeader(u,s.headers[u]);if(s.beforeSend&&(!1===s.beforeSend.call(y,J,s)|| t))return J.abort();if(D="abort",ea.add(s.complete),J.done(s.success),J.fail(s.error),e=Tb(qb,s,d,J)){if(J.readyState=1,n&&F.trigger("ajaxSend",[J,s]),t)return J;s.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)});C.head.appendChild(c[0])},abort:function(){d&&d()}}}});var Ac=[],Gb=/(=)\?(?=&|$)|\?\?/;l.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var b=Ac.pop()||l.expando+ "_"+wc++;return this[b]=!0,b}});l.ajaxPrefilter("json jsonp",function(c,d,g){var e,f,m,p=!1!==c.jsonp&&(Gb.test(c.url)?"url":"string"==typeof c.data&&0===(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gb.test(c.data)&&"data");if(p||"jsonp"===c.dataTypes[0])return e=c.jsonpCallback=l.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,p?c[p]=c[p].replace(Gb,"$1"+e):!1!==c.jsonp&&(c.url+=(Eb.test(c.url)?"&":"?")+c.jsonp+"="+e),c.converters["script json"]=function(){return m|| l.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?l(b).removeProp(e):b[e]=f;c[e]&&(c.jsonpCallback=d.jsonpCallback,Ac.push(e));m&&l.isFunction(f)&&f(m[0]);m=f=void 0}),"script"});var Gd=M,Bc,Cc=C.implementation.createHTMLDocument("").body;Bc=(Cc.innerHTML="
",2===Cc.childNodes.length);Gd.createHTMLDocument=Bc;l.parseHTML=function(b,c,d){if("string"!=typeof b)return[];"boolean"==typeof c&&(d=c,c=!1); var g,e,f;return c||(M.createHTMLDocument?(c=C.implementation.createHTMLDocument(""),g=c.createElement("base"),g.href=C.location.href,c.head.appendChild(g)):c=C),e=ic.exec(b),f=!d&&[],e?[c.createElement(e[1])]:(e=E([b],c,f),f&&f.length&&l(f).remove(),l.merge([],e.childNodes))};l.fn.load=function(b,c,d){var g,e,f,m=this,p=b.indexOf(" ");return-1").append(l.parseHTML(b)).find(g):b)}).always(d&&function(b,c){m.each(function(){d.apply(this,f||[b.responseText,c,b])})}),this};l.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(b,c){l.fn[c]=function(b){return this.on(c,b)}});l.expr.pseudos.animated=function(b){return l.grep(l.timers,function(c){return b===c.elem}).length};l.offset={setOffset:function(b,c,d){var g,e,f,m,p,j,q=l.css(b,"position"),t=l(b), s={};"static"===q&&(b.style.position="relative");p=t.offset();f=l.css(b,"top");j=l.css(b,"left");("absolute"===q||"fixed"===q)&&-1<(f+j).indexOf("auto")?(g=t.position(),m=g.top,e=g.left):(m=parseFloat(f)||0,e=parseFloat(j)||0);l.isFunction(c)&&(c=c.call(b,d,l.extend({},p)));null!=c.top&&(s.top=c.top-p.top+m);null!=c.left&&(s.left=c.left-p.left+e);"using"in c?c.using.call(b,s):t.css(s)}};l.fn.extend({offset:function(b){if(arguments.length)return void 0===b?this:this.each(function(c){l.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"===l.css(d,"position")?c=d.getBoundingClientRect():(b=this.offsetParent(),c=this.offset(),f(b[0],"html")||(g=b.offset()),g={top:g.top+l.css(b[0],"borderTopWidth",!0),left:g.left+ l.css(b[0],"borderLeftWidth",!0)}),{top:c.top-g.top-l.css(d,"marginTop",!0),left:c.left-g.left-l.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var b=this.offsetParent;b&&"static"===l.css(b,"position");)b=b.offsetParent;return b||kb})}});l.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){var d="pageYOffset"===c;l.fn[b]=function(g){return na(this,function(b,g,e){var f;return l.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)}});l.each(["top","left"],function(b,c){l.cssHooks[c]=Nb(M.pixelPosition,function(b,d){if(d)return d=Ma(b,c),ob.test(d)?l(b).position()[c]+"px":d})});l.each({Height:"height",Width:"width"},function(b,c){l.each({padding:"inner"+b,content:c,"":"outer"+b},function(d,g){l.fn[g]=function(e,f){var m=arguments.length&&(d||"boolean"!=typeof e),p=d||(!0===e||!0===f?"margin":"border");return na(this,function(c,d,e){var f; return l.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?l.css(c,d,p):l.style(c,d,e,p)},c,m?e:void 0,m)}})});l.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)}});l.holdReady=function(b){b?l.readyWait++:l.ready(!0)};l.isArray=Array.isArray;l.parseJSON=JSON.parse;l.nodeName=f;"function"==typeof define&&define.amd&&define("jquery",[],function(){return l});var Hd=b.jQuery,Id=b.$;return l.noConflict=function(c){return b.$===l&&(b.$=Id),c&&b.jQuery===l&&(b.jQuery=Hd),l},c||(b.jQuery=b.$=l),l}); 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,j=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;c=b){d._volume=b;if(d._muted)return d;d.usingWebAudio&&d.masterGain.gain.setValueAtTime(b,c.ctx.currentTime);for(var e=0;eparseInt(j[0].split("/")[1],10);b._codecs={mp3:!(j||!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=La)e._ended(s);else{var z=s._node;if(e._webAudio)f= function(){e._playLock=!1;sa();e._refreshBuffer(s);z.gain.setValueAtTime(s._muted||e._muted?0:s._volume,c.ctx.currentTime);s._playStart=c.ctx.currentTime;"undefined"===typeof z.bufferSource.start?s._loop?z.bufferSource.noteGrainOn(0,r,86400):z.bufferSource.noteGrainOn(0,r,E):s._loop?z.bufferSource.start(0,r,86400):z.bufferSource.start(0,r,E);Infinity!==ea&&(e._endTimers[s._id]=setTimeout(e._ended.bind(e,s),ea));d||setTimeout(function(){e._emit("play",s._id);e._loadQueue()},0)},"running"===c.state&& "interrupted"!==c.ctx.state?f():(e._playLock=!0,e.once("resume",f),e._clearTimer(s._id));else{var Ua=function(){z.currentTime=r;z.muted=s._muted||e._muted||c._muted||z.muted;z.volume=s._volume*c.volume();z.playbackRate=s._rate;try{var f=z.play();f&&"undefined"!==typeof Promise&&(f instanceof Promise||"function"===typeof f.then)?(e._playLock=!0,sa(),f.then(function(){e._playLock=!1;z._unlocked=!0;d||(e._emit("play",s._id),e._loadQueue())}).catch(function(){e._playLock=!1;e._emit("playerror",s._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.");s._ended=!0;s._paused=!0})):d||(e._playLock=!1,sa(),e._emit("play",s._id),e._loadQueue());z.playbackRate=s._rate;z.paused?e._emit("playerror",s._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||s._loop?e._endTimers[s._id]=setTimeout(e._ended.bind(e, s),ea):(e._endTimers[s._id]=function(){e._ended(s);z.removeEventListener("ended",e._endTimers[s._id],!1)},z.addEventListener("ended",e._endTimers[s._id],!1))}catch(j){e._emit("playerror",s._id,j)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===z.src&&(z.src=e._src,z.load());f=window&&window.ejecta||!z.readyState&&c._navigator.isCocoonJS;if(3<=z.readyState||f)Ua();else{e._playLock=!0;var R=function(){Ua();z.removeEventListener(c._canPlayEvent,R,!1)};z.addEventListener(c._canPlayEvent, R,!1);e._clearTimer(s._id)}}return s._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 t=0;tF?Math.max(d,n):Math.min(d,n);n=Math.round(100*n)/100;r._webAudio?b._volume=n:r.volume(n,b._id,!0);j&&(r._volume=n);if(dc&&n>=d)clearInterval(b._interval),b._interval=null,b._fadeTo=null,r.volume(d,b._id),r._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,p){if(!this.ctx||!this.ctx.listener)return this;var m=this._orientation;c="number"!== typeof c?m[1]:c;d="number"!==typeof d?m[2]:d;e="number"!==typeof e?m[3]:e;g="number"!==typeof g?m[4]:g;p="number"!==typeof p?m[5]:p;if("number"===typeof b)this._orientation=[b,c,d,e,g,p],"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(p,Howler.ctx.currentTime,0.1)):this.ctx.listener.setOrientation(b,c,d,e,g,p);else return m;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 r="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),p=0;pc;c++)e(b,b._deferreds[c]);b._deferreds=null}function r(b,c){var d=!1;try{b(function(b){d|| (d=!0,f(c,b))},function(b){d||(d=!0,j(c,b))})}catch(e){d||(d=!0,j(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,j){try{if(j&&("object"==typeof j||"function"==typeof j)){var m= j.then;if("function"==typeof m)return void m.call(j,function(c){e(b,c)},d)}f[b]=j;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,j=0;f.length>j;j++)e(j,f[j])})};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 p=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 p?p.Promise.prototype["finally"]|| (p.Promise.prototype["finally"]=b):p.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 j(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===u&&(u=!!document.fonts);return u}function r(){if(null===q){var b=document.createElement("div"); try{b.style.font="condensed 100px sans-serif"}catch(c){}q=""!==b.style.font}return q}function g(b,c){return[b.style,b.weight,r()?b.stretch:"","100px",c].join(" ")}var p=null,m=null,q=null,u=null;j.prototype.load=function(b,e){var j=this,q=b||"BESbswy",r=0,u=e||3E3,L=(new Date).getTime();return new Promise(function(b,e){var s;if(s=n())null===m&&(n()&&/Apple/.test(window.navigator.vendor)?(s=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent),m=!!s&&603>parseInt(s[1], 10)):m=!1),s=!m;if(s){s=new Promise(function(b,c){function d(){(new Date).getTime()-L>=u?c(Error(""+u+"ms timeout exceeded")):document.fonts.load(g(j,'"'+j.family+'"'),q).then(function(c){1<=c.length?b():setTimeout(d,25)},c)}d()});var t=new Promise(function(b,c){r=setTimeout(function(){c(Error(""+u+"ms timeout exceeded"))},u)});Promise.race([t,s]).then(function(){clearTimeout(r);b(j)},e)}else{var R=function(){function m(){var c;if(c=-1!=S&&-1!=T||-1!=S&&-1!=U||-1!=T&&-1!=U)(c=S!=T&&S!=U&&T!=U)||(null=== p&&(c=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),p=!!c&&(536>parseInt(c[1],10)||536===parseInt(c[1],10)&&11>=parseInt(c[2],10))),c=p&&(S==R&&T==R&&U==R||S==O&&T==O&&U==O||S==Y&&T==Y&&U==Y)),c=!c;c&&(H.parentNode&&H.parentNode.removeChild(H),clearTimeout(r),b(j))}function n(){if((new Date).getTime()-L>=u)H.parentNode&&H.parentNode.removeChild(H),e(Error(""+u+"ms timeout exceeded"));else{var b=document.hidden;if(!0===b||void 0===b)S=s.a.offsetWidth,T=t.a.offsetWidth,U=z.a.offsetWidth, m();r=setTimeout(n,50)}}var s=new c(q),t=new c(q),z=new c(q),S=-1,T=-1,U=-1,R=-1,O=-1,Y=-1,H=document.createElement("div");H.dir="ltr";d(s,g(j,"sans-serif"));d(t,g(j,"serif"));d(z,g(j,"monospace"));H.appendChild(s.a);H.appendChild(t.a);H.appendChild(z.a);document.body.appendChild(H);R=s.a.offsetWidth;O=t.a.offsetWidth;Y=z.a.offsetWidth;n();f(s,function(b){S=b;m()});d(s,g(j,'"'+j.family+'",sans-serif'));f(t,function(b){T=b;m()});d(t,g(j,'"'+j.family+'",serif'));f(z,function(b){U=b;m()});d(z,g(j,'"'+ j.family+'",monospace'))};document.body?R():document.addEventListener?document.addEventListener("DOMContentLoaded",function Q(){document.removeEventListener("DOMContentLoaded",Q);R()}):document.attachEvent("onreadystatechange",function X(){if("interactive"==document.readyState||"complete"==document.readyState)document.detachEvent("onreadystatechange",X),R()})}})};"object"===typeof module?module.exports=j:(window.FontFaceObserver=j,window.FontFaceObserver.prototype.load=j.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){if("function"!==typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var c=Array.prototype.slice.call(arguments,1),d=this,e=function(){},f=function(){return d.apply(this instanceof e&&b? this:b,c.concat(Array.prototype.slice.call(arguments)))};e.prototype=this.prototype;f.prototype=new e;return f};b.ig={game:null,debug:null,version:"1.23",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 r=ig.system.scale,g=Math.floor(e*r),p=Math.floor(f*r),m=j?-1:1,q=n?-1:1;if(j||n)ig.system.context.save(),ig.system.context.scale(m,q);ig.system.context.drawImage(this.data,Math.floor(d*e)%this.width*r,Math.floor(d*e/this.width)*f*r,g,p,ig.system.getDrawPos(b)*m-(j?g:0),ig.system.getDrawPos(c)*q-(n?p:0),g,p);(j|| 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,j=(this.height-2)*e;ig.system.context.drawImage(this.data,this.indices[b]*e,0,f,j,ig.system.getDrawPos(c),ig.system.getDrawPos(d),f,j);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;fc.data[j]&&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(){if(!ig.Sound.enabled||!window.Audio)ig.Sound.enabled=!1;else{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.OGG,ig.Sound.FORMAT.MP3];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?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},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=this.last.x=b;this.pos.y=this.last.y=c;ig.merge(this,d)},reset:function(b,c,d){var e=this.constructor.prototype;this.pos.x=b;this.pos.y=c;this.last.x=b;this.last.y=c;this.vel.x=e.vel.x;this.vel.y=e.vel.y;this.accel.x=e.accel.x;this.accel.y=e.accel.y;this.health=e.health;this._killed=e._killed;this.standing=e.standing;this.type=e.type;this.checkAgainst=e.checkAgainst;this.collides=e.collides;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:(0 this.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(){},erase: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;this.pxWidth=this.width*this.tilesize;this.pxHeight=this.height*this.tilesize},getTile:function(b,c){var d=Math.floor(b/this.tilesize),e=Math.floor(c/this.tilesize);return 0<=d&&dthis.lastSlope&&(this.lastSlope=j|0)},trace:function(b,c,f,j,n,r){var g={collision:{x:!1,y:!1,slope:!1},pos:{x:b,y:c},tile:{x:0,y:0}},p=Math.ceil(Math.max(Math.abs(f),Math.abs(j))/this.tilesize);if(1j?this.tilesize:0,u=Math.max(Math.floor(f/this.tilesize),0),y=Math.min(Math.ceil((f+g)/this.tilesize),this.height);j=Math.floor((b.pos.x+t)/this.tilesize);var F=Math.floor((c+t)/this.tilesize);if(0F||F>=this.width)F=-1;if(0<=j&&jthis.lastSlope||1n?this.tilesize:0;u=Math.max(Math.floor(b.pos.x/this.tilesize),0);s=Math.min(Math.ceil((b.pos.x+r)/this.tilesize),this.width);E=Math.floor((b.pos.y+t)/this.tilesize); y=Math.floor((f+t)/this.tilesize);if(0y||y>=this.height)y=-1;if(0<=E&&Ethis.lastSlope||1t?g:0)-(m+u[0])*this.tilesize;p=j+r+(0n*-t+r*c)return s;m=Math.sqrt(c*c+t*t);q=t/m;m=-c/m;var y=g*q+p*m,u=q*y,y=m*y;if(u*u+y*y>=n*n+r*r)return s||0.5>c*(p-r)-t*(g-n);b.pos.x=f+n-u;b.pos.y=j+r-y;b.collision.slope={x:c,y:t,nx:q,ny:m};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,j){return{collision:{x:!1,y:!1,slope:!1},pos:{x:b+f,y:c+j},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;this.chunkSize=Math.min(Math.max(b,c),this.chunkSize);var d=Math.ceil(b/this.chunkSize),e=Math.ceil(c/this.chunkSize);this.preRenderedChunks=[];for(var f=0;f=this.height||0>p){if(!this.repeat)continue;p=(p%this.height+this.height)%this.height}for(var m=-1,q=n;q=this.width||0>b){if(!this.repeat)continue;b=(b%this.width+this.width)%this.width}if(b=this.data[p][b])(c=this.anims[b- 1])?c.draw(q,j):this.tiles.drawTile(q,j,b-1,this.tilesize)}}}})});ig.baked=!0; ig.module("impact.game").requires("impact.impact","impact.entity","impact.collision-map","impact.background-map").defines(function(){ig.Game=ig.Class.extend({clearColor:"#000000",gravity:0,screen:{x:0,y:0},_rscreen:{x:0,y:0},entities:[],namedEntities:{},collisionMap:ig.CollisionMap.staticNoCollision,backgroundMaps:[],backgroundAnims:{},autoSort:!1,sortBy:null,cellSize:64,_deferredKill:[],_levelToLoad:null,_doSortEntities:!1,staticInstantiate:function(){this.sortBy=this.sortBy||ig.Game.SORT.Z_INDEX; ig.game=this;return null},loadLevel:function(b){this.screen={x:0,y:0};this.entities=[];this.namedEntities={};for(var c=0;ce&&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({mousemove:function(b){var c=ig.system.scale*(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;try{ig.soundHandler.unlockWebAudio()}catch(e){}},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.stopPropagation();b.preventDefault();if(ig.visibilityHandler)ig.visibilityHandler.onChange("focus");try{ig.soundHandler.unlockWebAudio()}catch(d){}}}})});ig.baked=!0; ig.module("plugins.handlers.dom-handler").defines(function(){ig.DomHandler=ig.Class.extend({JQUERYAVAILABLE:!1,init:function(){this.JQUERYAVAILABLE=this._jqueryAvailable()},_jqueryAvailable:function(){return"undefined"!==typeof jQuery},addEvent:function(b,c,d,e){if(this.JQUERYAVAILABLE)b.on(c,d);else b.addEventListener(c,d,e)},create:function(b){return this.JQUERYAVAILABLE?$("<"+b+">"):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)},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 j=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=j}},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){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){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;dthis.maxScalingOnMobile&&(c=this.maxScalingOnMobile),cthis.maxScalingOnDesktop&&(c=this.maxScalingOnDesktop),cd&&(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,j=this.mobile.actualResolution.x*d,d=Math.floor(ig.sizeHandler.windowSize.x/2-f/2),e=Math.floor(ig.sizeHandler.windowSize.y/2-j/2);0>d&&(d=0);0>e&&(e=0);ig.domHandler.resizeOffset(c,Math.floor(f),Math.floor(j),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});for(n in this.dynamicClickableEntityDivs){b=Math.min(ig.sizeHandler.scaleRatioMultiplier.x,ig.sizeHandler.scaleRatioMultiplier.y);c=ig.domHandler.getElementById("#"+ n);if(ig.ua.mobile)var r=this.dynamicClickableEntityDivs[n].entity_pos_x,j=this.dynamicClickableEntityDivs[n].entity_pos_y,d=this.dynamicClickableEntityDivs[n].width,f=this.dynamicClickableEntityDivs[n].height,e=Math.floor(r*this.scaleRatioMultiplier.x)+"px",j=Math.floor(j*this.scaleRatioMultiplier.y)+"px",d=Math.floor(d*this.scaleRatioMultiplier.x)+"px",f=Math.floor(f*this.scaleRatioMultiplier.y)+"px";else var f=ig.domHandler.getElementById("#canvas"),f=ig.domHandler.getOffsets(f),e=f.left,g=f.top, r=this.dynamicClickableEntityDivs[n].entity_pos_x,j=this.dynamicClickableEntityDivs[n].entity_pos_y,d=this.dynamicClickableEntityDivs[n].width,f=this.dynamicClickableEntityDivs[n].height,e=Math.floor(e+r*b)+"px",j=Math.floor(g+j*b)+"px",d=Math.floor(d*b)+"px",f=Math.floor(f*b)+"px";ig.domHandler.css(c,{"float":"left",position:"absolute",left:e,top:j,width:d,height:f,"z-index":3});this.dynamicClickableEntityDivs[n]["font-size"]&&ig.domHandler.css(c,{"font-size":this.dynamicClickableEntityDivs[n]["font-size"]* b+"px"})}},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),console.log("portrait"+window.innerWidth+","+window.innerHeight)):(this.domHandler.show(d),this.domHandler.hide(c), console.log("landscape"+window.innerWidth+","+window.innerHeight))}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")&&(j=c),d.indexOf("win64")&&(j=c));var n=new XMLHttpRequest;n.open("GET",j,!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 "'+j+'".')})}.bind(this);n.send();if(4==n.readyState&&"undefined"!==typeof Audio){this.useHTML5Audio=!0;try{new Audio}catch(r){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 j=function(){this._duration=this.audio.duration;this._loaded||(this._loaded=!0);this.bgmPlaying?this.play(null,!0):this.stop();this.audio.removeEventListener("canplaythrough", j,!1)}.bind(this);this.audio.addEventListener("canplaythrough",j,!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(j){}}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 r=function(){typeof("function"==this.play)&&(this.play(),n.removeEventListener("canplaythrough",r,!1))}.bind(this);n.addEventListener("canplaythrough",r,!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.io.storage").defines(function(){ig.Storage=ig.Class.extend({staticInstantiate:function(){return!ig.Storage.instance?null:ig.Storage.instance},init:function(){ig.Storage.instance=this},isCapable:function(){return"undefined"!==typeof window.localStorage},isSet:function(b){return null!==this.get(b)},initUnset:function(b,c){null===this.get(b)&&this.set(b,c)},get:function(b){if(!this.isCapable())return null;try{return JSON.parse(localStorage.getItem(b))}catch(c){return window.localStorage.getItem(b)}},getInt:function(b){return~~this.get(b)}, getFloat:function(b){return parseFloat(this.get(b))},getBool:function(b){return!!this.get(b)},key:function(b){return this.isCapable()?window.localStorage.key(b):null},set:function(b,c){if(!this.isCapable())return null;try{window.localStorage.setItem(b,JSON.stringify(c))}catch(d){console.log(d)}},setHighest:function(b,c){c>this.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").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({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"),this.storage=new ig.Storage}catch(b){console.log("using fake storage"),this.storage=new ig.FakeStorage}finally{window.localStorage.removeItem("test")}},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()},getTouchesPos:function(){return this.multitouch.getTouchesPos()},checkOverlap:function(b,c,d,e,f){return b.x>c+e||b.xd+f||b.y";(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.desktopCoverDIVID),"function"===typeof ig.sizeHandler.reorient&&ig.sizeHandler.reorient()):"undefined"!==typeof coreDivsToResize&&(coreDivsToResize.push(this.desktopCoverDIVID),"function"===typeof sizeHandler&&sizeHandler())}catch(c){console.log(c)}this.desktopCoverDIV.addEventListener("click",function(){try{"undefined"!==typeof ig.soundHandler?("undefined"!==typeof ig.soundHandler.bgmPlayer?"undefined"!==typeof ig.soundHandler.bgmPlayer.webaudio&& "undefined"!==typeof ig.soundHandler.bgmPlayer.webaudio.context&&ig.soundHandler.bgmPlayer.webaudio.context.resume():(ig.soundHandler=null,ig.soundHandler="undefined"!==typeof ig.soundList?new ig.SoundHandler(ig.soundList):new ig.SoundHandler),"undefined"!==typeof ig.soundHandler.sfxPlayer?"function"===typeof ig.soundHandler.sfxPlayer.play&&ig.soundHandler.sfxPlayer.play("staticSound"):"undefined"!==typeof ig.soundHandler.staticSound?"function"===typeof ig.soundHandler.staticSound.play&&ig.soundHandler.staticSound.play(): "function"===typeof ig.soundHandler.playSound&&ig.soundHandler.playSound("staticSound")):"undefined"!==typeof Howl?(ig.global.staticSound=new Howl({src:["media/audio/play/static.ogg","media/audio/play/static.mp3"]}),ig.global.staticSound.play()):"undefined"!==typeof createjs&&"undefined"!==typeof createjs.Sound&&"function"===typeof createjs.Sound.play&&createjs.Sound.play("opening")}catch(c){console.log(c)}this.setAttribute("style","visibility: hidden;");"function"===typeof b&&b()})}},createRoundRect:function(b, c,d,e,f){d<2*f&&(f=d/2);e<2*f&&(f=e/2);var j=ig.system.context;j.beginPath();j.moveTo(b+f,c);j.arcTo(b+d,c,b+d,c+e,f);j.arcTo(b+d,c+e,b,c+e,f);j.arcTo(b,c+e,b,c,f);j.arcTo(b,c,b+d,c,f);j.closePath();return j},draw:function(){this._drawStatus+=(this.status-this._drawStatus)/5;var b=ig.responsive.toAnchor(0,0,"center-middle"),c=ig.responsive;Math.max(c.width/1280,c.height/720);this.drawBG(ig.system.context,0,0,ig.system.width,ig.system.height,"#ffca23");ig.responsive.drawScaledImage(this.imgBGTitle, b.x,b.y,1.5,1.5,0.5,0.5);ig.responsive.drawScaledImage(this.imgTitle,b.x,b.y-200,1,1,0.5,0.5);ig.system.context.fillStyle="#ffffff";ig.system.context.font="16px dimbo";this.border.draw(0.5*ig.system.width-0.5*this.border.width,0.7*ig.system.height);this.bar.draw(0.5*ig.system.width-0.5*this.bar.width,0.7*ig.system.height,0,0,this.barSize.x*this._drawStatus,this.barSize.y);ig.system.context.font="16px main-bold";ig.system.context.fillText(" ",-1E5,-1E4);ig.system.context.font="16px main-regular";ig.system.context.fillText(" ", -1E5,-1E4);ig.system.context.font="16px pier-regular";ig.system.context.fillText(" ",-1E5,-1E4);this.drawVersion()},drawBG:function(b,c,d,e,f,j){b.save();b.fillStyle=j;b.fillRect(c,d,e,f);b.restore()},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.Tween.Interpolation={Linear:function(b,c){var d=b.length-1,e=d*c,f=Math.floor(e),j=TWEEN.Interpolation.Utils.Linear; return 0>c?j(b[0],b[1],e):1d?d:f+1],e-f)}}});ig.baked=!0; ig.module("plugins.patches.entity-patch").requires("impact.entity").defines(function(){ig.Entity.inject({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&&cd?n(b[0],b[1],f): 1e?e:j+1],f-j)},Bezier:function(b,d){for(var e=0,f=b.length-1,j=Math.pow,n=ig.Tween.Interpolation.Utils.Bernstein,r=0;r<=f;r++)e+=j(1-d,f-r)*j(d,r)*b[r]*n(f,r);return e},CatmullRom:function(b,d){var e=b.length-1,f=e*d,j=Math.floor(f),n=ig.Tween.Interpolation.Utils.CatmullRom;return b[0]===b[e]?(0>d&&(j=Math.floor(f=e*(1+d))),n(b[(j-1+e)%e],b[j],b[(j+1)%e],b[(j+2)%e],f-j)):0>d?b[0]-(n(b[0],b[0],b[1],b[1],-f)-b[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.textwrapper").defines(function(){ig.Textwrapper=ig.Class.extend({textFontSize:12,textFont:"main-bold, Charcoal, wwbd",textLineHeight:12,textHeight:0,textSpacing:0,textAlign:"left",init:function(b,c){b&&(this.textLineHeight=this.textFontSize=b);c&&(this.textFont=c)},wrapText:function(b,c){if(!b||""==b||0>=c)return[];if("string"==typeof b){var d=ig.system.context;d.font=this.textFontSize+"px "+this.textFont;var e=b.split(" "),f="",j=[];if(1==e.length)for(var n=0;nc&&0c&&0=b.length)){var e=ig.system.context;e.font=this.textFontSize+"px "+this.textFont;for(var f=0,j=0;jthis.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(){delete this.tempData.key},clear:function(){this.tempData={}}})});ig.baked=!0; ig.module("plugins.fullscreen").requires("impact.entity","plugins.handlers.size-handler","plugins.director").defines(function(){ig.Fullscreen={enableFullscreenButton:!0,_isEnabled:"notChecked",isEnabled:function(){"notChecked"==this._isEnabled&&(this._isEnabled=document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled?!0:!1);return this._isEnabled},isFullscreen:function(){return ig.Fullscreen.isEnabled()&&(document.fullscreenElement|| document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)?!0:!1},toggleFullscreen:function(){ig.Fullscreen.isFullscreen()?ig.Fullscreen.exitFullscreen():ig.Fullscreen.requestFullscreen();ig.sizeHandler.orientationDelayHandler();if(ig&&ig.visibilityHandler)ig.visibilityHandler.onChange("focus");try{ig.soundHandler.unlockWebAudio()}catch(b){}},requestFullscreen:function(){var b=document.documentElement;b.requestFullscreen?b.requestFullscreen():b.webkitRequestFullscreen? b.webkitRequestFullscreen():b.mozRequestFullScreen?b.mozRequestFullScreen():b.msRequestFullscreen?b.msRequestFullscreen():console.log("no request fullscreen method available")},exitFullscreen:function(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():console.log("no exit fullscreen method available")},divs:{}};ig.Director.inject({loadLevel:function(b){var c= ig.Fullscreen.divs,d;for(d in c)c=ig.domHandler.getElementById("#"+d),ig.domHandler.hide(c);return this.parent(b)}});ig.SizeHandler.inject({resize:function(){this.parent();var b=ig.Fullscreen.divs,c;for(c in b){var d=Math.min(ig.sizeHandler.scaleRatioMultiplier.x,ig.sizeHandler.scaleRatioMultiplier.y),e=ig.domHandler.getElementById("#"+c),f=b[c].entity_pos_x,j=b[c].entity_pos_y,n=b[c].width,r=b[c].height,g=ig.domHandler.getElementById("#canvas"),g=ig.domHandler.getOffsets(g);ig.domHandler.css(e,{"float":"left", position:"absolute",left:Math.floor(g.left+f*d)+"px",top:Math.floor(g.top+j*d)+"px",width:Math.floor(n*d)+"px",height:Math.floor(r*d)+"px","z-index":3})}}});ig.FullscreenButton=ig.Entity.extend({enterImage:null,exitImage:null,isReady:!1,zIndex:999999,identifier:null,prevPos:{x:0,y:0},invisImagePath:"media/graphics/misc/invisible.png",init:function(b,c,d){this.parent(b,c,d);ig.Fullscreen.isEnabled()&&ig.Fullscreen.enableFullscreenButton?this.enterImage.loaded?this.initSize():this.enterImage.loadCallback= function(){this.initSize()}.bind(this):this.kill()},kill:function(){this.parent()},destroy:function(){this.parent();console.log("destroy")},initSize:function(){this.size.x=this.enterImage.width;this.size.y=this.enterImage.height;this.createClickableLayer();this.isReady=!0},createClickableLayer:function(){this.identifier="fullscreen-button-layer";var b=ig.domHandler.getElementById("#"+this.identifier);b?(ig.domHandler.show(b),ig.domHandler.attr(b,"onclick","ig.Fullscreen.toggleFullscreen()")):this.createClickableOutboundLayer()}, update:function(b,c){this.parent();b=this.pos.x;c=this.pos.y;this.isReady&&!(this.prevPos.x==b&&this.prevPos.y==c)&&(this.prevPos.x=b,this.prevPos.y=c,ig.Fullscreen.divs[this.identifier]={},ig.Fullscreen.divs[this.identifier].width=this.size.x,ig.Fullscreen.divs[this.identifier].height=this.size.y,ig.Fullscreen.divs[this.identifier].entity_pos_x=this.pos.x,ig.Fullscreen.divs[this.identifier].entity_pos_y=this.pos.y,ig.sizeHandler.resize())},draw:function(){this.isReady&&(ig.Fullscreen.isFullscreen()? this.exitImage.draw(this.pos.x,this.pos.y):this.enterImage.draw(this.pos.x,this.pos.y))},createClickableOutboundLayer:function(){var b=this.identifier,c=this.invisImagePath,d=ig.domHandler.create("div");ig.domHandler.attr(d,"id",b);ig.domHandler.attr(d,"onclick","ig.Fullscreen.toggleFullscreen()");var e=ig.domHandler.create("a"),f=ig.domHandler.create("img");ig.domHandler.css(f,{width:"100%",height:"100%"});ig.domHandler.attr(f,"src",c);c=Math.min(ig.sizeHandler.scaleRatioMultiplier.x,ig.sizeHandler.scaleRatioMultiplier.y); if(ig.ua.mobile){var j=ig.domHandler.getElementById("#canvas"),j=ig.domHandler.getOffsets(j),n=j.left,r=j.top;console.log(j.left);ig.sizeHandler.disableStretchToFitOnMobileFlag?(j=Math.floor(n+this.pos.x*ig.sizeHandler.scaleRatioMultiplier.x)+"px",r=Math.floor(r+this.pos.y*ig.sizeHandler.scaleRatioMultiplier.y)+"px",n=Math.floor(this.size.x*ig.sizeHandler.scaleRatioMultiplier.x)+"px",c=Math.floor(this.size.y*ig.sizeHandler.scaleRatioMultiplier.y)+"px"):(j=Math.floor(this.pos.x*ig.sizeHandler.sizeRatio.x)+ "px",r=Math.floor(this.pos.y*ig.sizeHandler.sizeRatio.y)+"px",n=Math.floor(this.size.x*ig.sizeHandler.sizeRatio.x)+"px",c=Math.floor(this.size.y*ig.sizeHandler.sizeRatio.y)+"px")}else j=ig.domHandler.getElementById("#canvas"),j=ig.domHandler.getOffsets(j),n=j.left,r=j.top,ig.sizeHandler.enableStretchToFitOnDesktopFlag?(j=Math.floor(n+this.pos.x*ig.sizeHandler.sizeRatio.x)+"px",r=Math.floor(r+this.pos.y*ig.sizeHandler.sizeRatio.y)+"px",n=Math.floor(this.size.x*ig.sizeHandler.sizeRatio.x)+"px",c=Math.floor(this.size.y* ig.sizeHandler.sizeRatio.y)+"px"):(j=Math.floor(n+this.pos.x*c)+"px",r=Math.floor(r+this.pos.y*c)+"px",n=Math.floor(this.size.x*c)+"px",c=Math.floor(this.size.y*c)+"px");ig.domHandler.css(d,{"float":"left",position:"absolute",left:j,top:r,width:n,height:c,"z-index":3});ig.domHandler.addEvent(d,"mousemove",ig.input.mousemove.bind(ig.input),!1);ig.domHandler.appendChild(e,f);ig.domHandler.appendChild(d,e);ig.domHandler.appendToBody(d);ig.Fullscreen.divs[b]={};ig.Fullscreen.divs[b].width=this.size.x; ig.Fullscreen.divs[b].height=this.size.y;ig.Fullscreen.divs[b].entity_pos_x=this.pos.x;ig.Fullscreen.divs[b].entity_pos_y=this.pos.y}})});ig.baked=!0; ig.module("plugins.responsive.responsive-utils").requires("impact.system").defines(function(){ig.responsive={width:0,height:0,halfWidth:0,halfHeight:0,originalWidth:0,originalHeight:0,fillScale:1,scaleX:1,scaleY:1,toAnchor:function(b,c,d){switch(d){case "top-left":case "left-top":return this.toAnchorTopLeft(b,c);case "top-center":case "center-top":case "top":return this.toAnchorTopCenter(b,c);case "top-right":case "right-top":return this.toAnchorTopRight(b,c);case "left-middle":case "middle-left":case "left":return this.toAnchorLeftMiddle(b, c);case "center-middle":case "middle-center":case "middle":case "center":return this.toAnchorCenterMiddle(b,c);case "right-middle":case "middle-right":case "right":return this.toAnchorRightMiddle(b,c);case "bottom-left":case "left-bottom":return this.toAnchorBottomLeft(b,c);case "bottom-center":case "center-bottom":case "bottom":return this.toAnchorBottomCenter(b,c);case "bottom-right":case "right-bottom":return this.toAnchorBottomRight(b,c);default:return this.toAnchorDefault(b,c)}},toAnchorDefault:function(b, c){return{x:b+(this.width-this.originalWidth)/2,y:c+(this.height-this.originalHeight)/2}},toAnchorCenterMiddle:function(b,c){return{x:b+this.halfWidth,y:c+this.halfHeight}},toAnchorLeftMiddle:function(b,c){return{x:b,y:c+this.halfHeight}},toAnchorTopCenter:function(b,c){return{x:b+this.halfWidth,y:c}},toAnchorRightMiddle:function(b,c){return{x:b+this.width,y:c+this.halfHeight}},toAnchorBottomCenter:function(b,c){return{x:b+this.halfWidth,y:c+this.height}},toAnchorTopLeft:function(b,c){return{x:b, y:c}},toAnchorBottomLeft:function(b,c){return{x:b,y:c+this.height}},toAnchorTopRight:function(b,c){return{x:b+this.width,y:c}},toAnchorBottomRight:function(b,c){return{x:b+this.width,y:c+this.height}},drawScaledImage:function(b,c,d,e,f,j,n,r){j||(j=0);n||(n=0);r||(r=0);var g=ig.system.context;g.save();g.translate(c,d);g.rotate(r);(1!=e||1!=f)&&g.scale(e,f);b.draw(-b.width*j,-b.height*n);g.restore()}}});ig.baked=!0; ig.module("plugins.responsive.responsive-plugin").requires("impact.system","impact.entity","plugins.handlers.size-handler","plugins.responsive.responsive-utils").defines(function(){ig.SizeHandler.inject({resize:function(){this.parent()},sizeCalcs:function(){this.originalResolution||(this.originalResolution=new Vector2(this.desktop.actualResolution.x,this.desktop.actualResolution.y),ig.responsive.originalWidth=this.desktop.actualResolution.x,ig.responsive.originalHeight=this.desktop.actualResolution.y); var b=window.innerWidth,c=window.innerHeight,d=b/c,e=this.originalResolution.x/this.originalResolution.y,f=0,j=0;this.windowSize=new Vector2(b,c);dd&&(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 f in this.adsToResize)b=ig.domHandler.getElementById("#"+f),c=ig.domHandler.getElementById("#"+f+"-Box"),d=(window.innerWidth-this.adsToResize[f]["box-width"])/2+"px",e=(window.innerHeight-this.adsToResize[f]["box-height"])/ 2+"px",b&&ig.domHandler.css(b,{width:window.innerWidth,height:window.innerHeight}),c&&ig.domHandler.css(c,{left:d,top:e});b=ig.domHandler.getElementById("#canvas");c=ig.domHandler.getOffsets(b);b=c.left;c=c.top;d=Math.min(ig.sizeHandler.scaleRatioMultiplier.x,ig.sizeHandler.scaleRatioMultiplier.y);for(f in this.dynamicClickableEntityDivs)e=ig.domHandler.getElementById("#"+f),ig.domHandler.css(e,{"float":"left",position:"absolute",left:Math.floor(b+this.dynamicClickableEntityDivs[f].entity_pos_x*this.scaleRatioMultiplier.x)+ "px",top:Math.floor(c+this.dynamicClickableEntityDivs[f].entity_pos_y*this.scaleRatioMultiplier.y)+"px",width:Math.floor(this.dynamicClickableEntityDivs[f].width*this.scaleRatioMultiplier.x)+"px",height:Math.floor(this.dynamicClickableEntityDivs[f].height*this.scaleRatioMultiplier.y)+"px","z-index":3}),this.dynamicClickableEntityDivs[f]["font-size"]&&ig.domHandler.css(e,{"font-size":this.dynamicClickableEntityDivs[f]["font-size"]*d+"px"});$("#ajaxbar").width(this.windowSize.x);$("#ajaxbar").height(this.windowSize.y)}, reorient:function(){ig.ua.mobile?(this.resize(),this.resizeAds()):this.resize();ig.game&&(ig.game.update(),ig.game.draw())},resizeBabylon:function(){var b=window.innerWidth,c=window.innerHeight,d=b/c,e=ig.responsive.originalWidth,f=ig.responsive.originalHeight,j=e/f,n=Math.max(e,f);ig.ua.mobile&&(n=640);minSize=Math.min(e,f);d>j?(c>f&&(c=f),b=Math.floor(window.innerWidth/window.innerHeight*c),b>n&&(b=n),c=Math.floor(window.innerHeight/window.innerWidth*b)):(b>e&&(b=e),c=Math.floor(window.innerHeight/ window.innerWidth*b),c>n&&(c=n),b=Math.floor(window.innerWidth/window.innerHeight*c));e=d=1;window.innerWidth>n&&(d=window.innerWidth/n);window.innerHeight>n&&(e=window.innerHeight/n);wgl.system.engine.setSize(b,c);wgl.system.engine.resize();wgl.system.engine.setHardwareScalingLevel(Math.max(d,e));ig.gameScene.zoomFactor=1;ig.ua.mobile&&minSizeb.length;)b="0"+b;for(;2>c.length;)c="0"+ c;for(;2>d.length;)d="0"+d;return"#"+b+c+d},getInvertedColor:function(){return new ColorRGB(255-this.r,255-this.g,255-this.b,255-this.a)},clone:function(){return new ColorRGB(this.r,this.g,this.b,this.a)}}});this.START_BRANDING_SPLASH;ig.baked=!0; ig.module("plugins.branding.splash").requires("impact.impact","impact.entity").defines(function(){ig.BrandingSplash=ig.Class.extend({init:function(){ig.game.spawnEntity(EntityBranding,0,0);console.log("spawn branding")}});var b="undefined"!=typeof CUSTOM_VARIABLE_SPLASH_BG_COLOR?CUSTOM_VARIABLE_SPLASH_BG_COLOR:"#FFFFFF";EntityBranding=ig.Entity.extend({gravityFactor:0,size:{x:32,y:32},splash:new ig.Image("undefined"!=typeof CUSTOM_VARIABLE_SPLASH_PATH?CUSTOM_VARIABLE_SPLASH_PATH:"branding/splash1.png"), init:function(b,d,e){this.parent(b,d,e);320>=ig.system.width?(this.size.x=320,this.size.y=200):(this.size.x=480,this.size.y=240);this.pos.x=(ig.system.width-this.size.x)/2;this.pos.y=-this.size.y-200;this.endPosY=(ig.system.height-this.size.y)/2;b=this.tween({pos:{y:this.endPosY}},0.5,{easing:ig.Tween.Easing.Bounce.EaseIn});d=this.tween({},2.5,{onComplete:function(){ig.game.director.loadLevel(ig.game.director.currentLevel)}});b.chain(d);b.start();this.currentAnim=this.anims.idle},createClickableLayer:function(){console.log("Build clickable layer"); this.checkClickableLayer("branding-splash",_SETTINGS.Branding.Logo.Link,_SETTINGS.Branding.Logo.NewWindow)},doesClickableLayerExist:function(b){for(k in dynamicClickableEntityDivs)if(k==b)return!0;return!1},checkClickableLayer:function(b,d,e){"undefined"==typeof wm&&(this.doesClickableLayerExist(b)?(ig.game.showOverlay([b]),$("#"+b).find("[href]").attr("href",d)):this.createClickableOutboundLayer(b,d,"media/graphics/misc/invisible.png",e))},createClickableOutboundLayer:function(b,d,e,f){var j=ig.$new("div"); j.id=b;document.body.appendChild(j);j=$("#"+j.id);j.css("float","left");j.css("position","absolute");if(ig.ua.mobile){var n=window.innerHeight/mobileHeight,r=window.innerWidth/mobileWidth;j.css("left",this.pos.x*r);j.css("top",this.pos.y*n);j.css("width",this.size.x*r);j.css("height",this.size.y*n)}else n=w/2-destW/2,r=h/2-destH/2,console.log(n,r),j.css("left",n+this.pos.x*multiplier),j.css("top",r+this.pos.y*multiplier),j.css("width",this.size.x*multiplier),j.css("height",this.size.y*multiplier); f?j.html(""):j.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(){ig.system.context.fillStyle=b;ig.system.context.fillRect(0, 0,ig.system.width,ig.system.height);ig.system.context.fillStyle="#000";ig.system.context.font="12px Arial";ig.system.context.textAlign="left";this.parent();this.splash&&ig.system.context.drawImage(this.splash.data,0,0,this.splash.data.width,this.splash.data.height,this.pos.x,this.pos.y,this.size.x,this.size.y)}})});this.END_BRANDING_SPLASH;ig.baked=!0; ig.module("game.entities.buttons.button").requires("impact.entity","plugins.data.vector").defines(function(){EntityButton=ig.Entity.extend({collides:ig.Entity.COLLIDES.NEVER,type:ig.Entity.TYPE.A,size:new Vector2(48,48),fillColor:null,zIndex:95E3,init:function(b,c,d){this.parent(b,c,d);!ig.global.wm&&!isNaN(d.zIndex)&&(this.zIndex=d.zIndex);b=Math.floor(256*Math.random());c=Math.floor(256*Math.random());d=Math.floor(256*Math.random());this.fillColor="rgba("+b+","+d+","+c+",1)"},clicked:function(){}, clicking:function(){},released:function(){}})});ig.baked=!0; ig.module("plugins.clickable-div-layer").defines(function(){ClickableDivLayer=ig.Class.extend({pos:new Vector2(0,0),size:new Vector2(0,0),identifier:null,invisImagePath:"media/graphics/misc/invisible.png",init:function(b){this.pos=new Vector2(b.pos.x,b.pos.y);this.size=new Vector2(b.size.x,b.size.y);var c="more-games",d="www.google.com",e=!1;b.div_layer_name&&(c=b.div_layer_name);b.link&&(d=b.link);b.newWindow&&(e=b.newWindow);this.createClickableLayer(c,d,e)},createClickableLayer:function(b,c,d){this.identifier= b;var e=ig.domHandler.getElementById("#"+b);e?(ig.domHandler.show(e),ig.domHandler.attr(e,"href",c)):this.createClickableOutboundLayer(b,c,this.invisImagePath,d)},update:function(b,c,d,e){this.pos.x==b&&this.pos.y==c||(this.pos.x=b,this.pos.y=c,ig.sizeHandler.dynamicClickableEntityDivs[this.identifier]={},ig.sizeHandler.dynamicClickableEntityDivs[this.identifier].width=d,ig.sizeHandler.dynamicClickableEntityDivs[this.identifier].height=e,ig.sizeHandler.dynamicClickableEntityDivs[this.identifier].entity_pos_x= this.pos.x,ig.sizeHandler.dynamicClickableEntityDivs[this.identifier].entity_pos_y=this.pos.y,ig.sizeHandler.resizeLayers())},createClickableOutboundLayer:function(b,c,d,e){var f=ig.domHandler.create("div");ig.domHandler.attr(f,"id",b);var j=ig.domHandler.create("a");ig.domHandler.addEvent(f,"mousedown",function(b){b.preventDefault()});e?(ig.domHandler.attr(j,"href",c),ig.domHandler.attr(j,"target","_blank")):ig.domHandler.attr(j,"href",c);c=ig.domHandler.create("img");ig.domHandler.css(c,{width:"100%", height:"100%"});ig.domHandler.attr(c,"src",d);d=Math.min(ig.sizeHandler.scaleRatioMultiplier.x,ig.sizeHandler.scaleRatioMultiplier.y);if(ig.ua.mobile){e=Math.floor(this.pos.x*ig.sizeHandler.scaleRatioMultiplier.x)+"px";var n=Math.floor(this.pos.y*ig.sizeHandler.scaleRatioMultiplier.y)+"px",r=Math.floor(this.size.x*ig.sizeHandler.scaleRatioMultiplier.x)+"px";d=Math.floor(this.size.y*ig.sizeHandler.scaleRatioMultiplier.y)+"px"}else e=ig.domHandler.getElementById("#canvas"),e=ig.domHandler.getOffsets(e), n=e.top,e=Math.floor(e.left+this.pos.x*d)+"px",n=Math.floor(n+this.pos.y*d)+"px",r=Math.floor(this.size.x*d)+"px",d=Math.floor(this.size.y*d)+"px";ig.domHandler.css(f,{"float":"left",position:"absolute",left:e,top:n,width:r,height:d,"z-index":3});ig.domHandler.addEvent(f,"mousemove",ig.input.mousemove.bind(ig.input),!1);ig.domHandler.appendChild(j,c);ig.domHandler.appendChild(f,j);ig.domHandler.appendToBody(f);ig.sizeHandler.dynamicClickableEntityDivs[b]={};ig.sizeHandler.dynamicClickableEntityDivs[b].width= this.size.x;ig.sizeHandler.dynamicClickableEntityDivs[b].height=this.size.y;ig.sizeHandler.dynamicClickableEntityDivs[b].entity_pos_x=this.pos.x;ig.sizeHandler.dynamicClickableEntityDivs[b].entity_pos_y=this.pos.y}})});ig.baked=!0; ig.module("game.entities.buttons.button-branding-logo").requires("game.entities.buttons.button","plugins.clickable-div-layer").defines(function(){EntityButtonBrandingLogo=EntityButton.extend({type:ig.Entity.TYPE.A,gravityFactor:0,logo:new ig.AnimationSheet("branding/logo.png",_SETTINGS.Branding.Logo.Width,_SETTINGS.Branding.Logo.Height),zIndex:10001,size:{x:64,y:66},clickableLayer:null,link:null,newWindow:!1,div_layer_name:"branding-logo",name:"brandinglogo",init:function(b,c,d){this.parent(b,c,d); if(!ig.global.wm){if("undefined"==typeof wm)if(_SETTINGS.Branding.Logo.Enabled)this.size.x=_SETTINGS.Branding.Logo.Width,this.size.y=_SETTINGS.Branding.Logo.Height,this.anims.idle=new ig.Animation(this.logo,0,[0],!0),this.currentAnim=this.anims.idle,d&&d.centralize&&(this.pos.x=ig.system.width/2-this.size.x/2,console.log("centralize true ... centering branded logo ...")),_SETTINGS.Branding.Logo.LinkEnabled&&(this.link=_SETTINGS.Branding.Logo.Link,this.newWindow=_SETTINGS.Branding.Logo.NewWindow,this.clickableLayer= new ClickableDivLayer(this));else{this.kill();return}this.div_layer_name=d.div_layer_name?d.div_layer_name:"branding-logo"}},show:function(){var b=ig.domHandler.getElementById("#"+this.div_layer_name);ig.domHandler.show(b)},hide:function(){var b=ig.domHandler.getElementById("#"+this.div_layer_name);ig.domHandler.hide(b)},clicked:function(){},clicking:function(){},released:function(){}})});ig.baked=!0; ig.module("game.entities.branding-logo-placeholder").requires("impact.entity","game.entities.buttons.button-branding-logo").defines(function(){EntityBrandingLogoPlaceholder=ig.Entity.extend({gravityFactor:0,size:{x:32,y:32},_wmDrawBox:!0,_wmBoxColor:"rgba(0, 0, 255, 0.7)",init:function(b,c,d){this.parent(b,c,d);if(d)switch(console.log("settings found ... using that div layer name"),b=d.div_layer_name,console.log("settings.centralize:",d.centralize),d.centralize){case "true":console.log("centralize true"); centralize=!0;break;case "false":console.log("centralize false");centralize=!1;break;default:console.log("default ... centralize false"),centralize=!1}else b="branding-logo",centralize=!1;if("undefined"==typeof wm){if(_SETTINGS.Branding.Logo.Enabled)try{ig.game.spawnEntity(EntityButtonBrandingLogo,this.pos.x,this.pos.y,{div_layer_name:b,centralize:centralize})}catch(e){console.log(e)}this.kill()}}})});ig.baked=!0; ig.module("game.entities.buttons.button-more-games").requires("game.entities.buttons.button","plugins.clickable-div-layer").defines(function(){EntityButtonMoreGames=EntityButton.extend({type:ig.Entity.TYPE.A,gravityFactor:0,logo:new ig.AnimationSheet("media/graphics/sprites/btn-moregames-empty.png",627,164),size:{x:627,y:164},zIndex:750,clickableLayer:null,link:null,newWindow:!1,div_layer_name:"more-games",name:"moregames",offsetText:{x:0,y:0},init:function(b,c,d){this.parent(b,c,d);ig.global.wm|| (this.div_layer_name=d.div_layer_name?d.div_layer_name:"more-games",_SETTINGS.MoreGames.Enabled?(this.anims.idle=new ig.Animation(this.logo,0,[0],!0),this.currentAnim=this.anims.idle,_SETTINGS.MoreGames.Link&&(this.link=_SETTINGS.MoreGames.Link),_SETTINGS.MoreGames.NewWindow&&(this.newWindow=_SETTINGS.MoreGames.NewWindow),this.clickableLayer=new ClickableDivLayer(this)):this.kill())},show:function(){var b=ig.domHandler.getElementById("#"+this.div_layer_name);b&&ig.domHandler.show(b)},hide:function(){var b= ig.domHandler.getElementById("#"+this.div_layer_name);b&&ig.domHandler.hide(b)},clicked:function(){},clicking:function(){},released:function(){},update:function(){this.parent();this.clickableLayer.update(this.pos.x,this.pos.y,this.size.x,this.size.y)},draw:function(){this.parent();if(this.textString){ig.system.context.save();var b=0.9*this.logo.width,c=new ig.Textwrapper(this.fontSize,"main-bold"),b=c.wrapText(this.textString,b);c.textAlign="center";c.textLineHeight=0.9*c.textFontSize;c.textSpacing= 1;ig.system.context.fillStyle="#ffffff";c.drawTextList(b,this.pos.x+this.offsetText.x,this.pos.y+this.offsetText.y)}}})});ig.baked=!0; ig.module("game.entities.pointer").requires("impact.entity").defines(function(){EntityPointer=ig.Entity.extend({checkAgainst:ig.Entity.TYPE.BOTH,size:new Vector2(1,1),isFirstPressed:!1,isPressed:!1,isReleased:!1,isHovering:!1,hoveringItem:null,objectArray:[],clickedObjectList:[],ignorePause:!0,zIndex:5500,check:function(b){this.objectArray.push(b)},clickObject:function(b){this.isFirstPressed&&"function"==typeof b.clicked&&(b.clicked(),this.addToClickedObjectList(b));this.isPressed&&!this.isReleased&& "function"==typeof b.clicking&&b.clicking();this.isReleased&&"function"==typeof b.released&&(b.released(),this.removeFromClickedObjectList(b))},refreshPos:function(){this.pos=ig.game.io.getClickPos()},update:function(){this.parent();this.refreshPos();var b=null,c=-1;for(a=this.objectArray.length-1;-1c&&(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;i1/60&&(b=1/60);this.updateLocalTween(b);this.cover.x=this.logoShield.x;_SETTINGS.DeveloperBranding.Splash.Enabled||(this.playBgm(),ig.game.director.nextLevel(),this.kill())}},playBgm:function(){ig.soundHandler.bgmPlayer.play(ig.soundHandler.bgmPlayer.soundList.background)},unlockWebAudio:function(){if(ig.input.released("click"))try{ig.soundHandler.unlockWebAudio()}catch(b){}},addLocalDelayedCall:function(b, c){this.addLocalTweenTo(null,{},b,this.easeNone,0,c)},addLocalTweenTo:function(b,c,d,e,f,g){"undefined"==typeof f&&(f=0);"undefined"==typeof e&&(e=this.easeNone);"undefined"==typeof g&&(g=null);d={obj:b,endProperties:c,duration:d,easing:e,delay:f,elapsed:0,deltaProperties:{},startProperties:{},onComplete:g};for(var j in c)Object.hasOwnProperty.call(c,j)&&(d.startProperties[j]=b[j],d.deltaProperties[j]=c[j]-b[j]);this.localTweens.push(d)},updateLocalTween:function(b){for(var c=0;c=d.duration&&(this.localTweens.splice(c,1),c--,d.onComplete))d.onComplete()}}},quadOut:function(b){return-b*(b-2)},quartOut:function(b){return-(--b*b*b*b-1)},backOut:function(b){return(b-=1)*b*(2.70158*b+1.70158)+1},easeNone:function(b){return b}, draw:function(){this.parent();if(!ig.global.wm){var b=ig.system.context;b.fillStyle="#ffffff";b.fillRect(0,0,ig.system.width,ig.system.height);for(b=0;bparseInt(s[1],10)):m=!1),s=!m;if(s){s=new Promise(function(b,c){function d(){(new Date).getTime()-L>= u?c(Error(""+u+"ms timeout exceeded")):document.fonts.load(g(j,'"'+j.family+'"'),q).then(function(c){1<=c.length?b():setTimeout(d,25)},c)}d()});var t=new Promise(function(b,c){r=setTimeout(function(){c(Error(""+u+"ms timeout exceeded"))},u)});Promise.race([t,s]).then(function(){clearTimeout(r);b(j)},e)}else{var R=function(){function m(){var c;if(c=-1!=S&&-1!=T||-1!=S&&-1!=U||-1!=T&&-1!=U)(c=S!=T&&S!=U&&T!=U)||(null===p&&(c=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),p=!!c&& (536>parseInt(c[1],10)||536===parseInt(c[1],10)&&11>=parseInt(c[2],10))),c=p&&(S==R&&T==R&&U==R||S==O&&T==O&&U==O||S==Y&&T==Y&&U==Y)),c=!c;c&&(H.parentNode&&H.parentNode.removeChild(H),clearTimeout(r),b(j))}function n(){if((new Date).getTime()-L>=u)H.parentNode&&H.parentNode.removeChild(H),e(Error(""+u+"ms timeout exceeded"));else{var b=document.hidden;if(!0===b||void 0===b)S=s.a.offsetWidth,T=t.a.offsetWidth,U=z.a.offsetWidth,m();r=setTimeout(n,50)}}var s=new c(q),t=new c(q),z=new c(q),S=-1,T=-1, U=-1,R=-1,O=-1,Y=-1,H=document.createElement("div");H.dir="ltr";d(s,g(j,"sans-serif"));d(t,g(j,"serif"));d(z,g(j,"monospace"));H.appendChild(s.a);H.appendChild(t.a);H.appendChild(z.a);document.body.appendChild(H);R=s.a.offsetWidth;O=t.a.offsetWidth;Y=z.a.offsetWidth;n();f(s,function(b){S=b;m()});d(s,g(j,'"'+j.family+'",sans-serif'));f(t,function(b){T=b;m()});d(t,g(j,'"'+j.family+'",serif'));f(z,function(b){U=b;m()});d(z,g(j,'"'+j.family+'",monospace'))};document.body?R():document.addEventListener? document.addEventListener("DOMContentLoaded",function Q(){document.removeEventListener("DOMContentLoaded",Q);R()}):document.attachEvent("onreadystatechange",function X(){if("interactive"==document.readyState||"complete"==document.readyState)document.detachEvent("onreadystatechange",X),R()})}})};"object"===typeof module?module.exports=j:(window.FontFaceObserver=j,window.FontFaceObserver.prototype.load=j.prototype.load);console.log("font loader not exist : create new instance of font loader")}j=document.createElement("style"); j.type="text/css";j.appendChild(document.createTextNode("@font-face {font-family: 'logofont';src: url('media/fonts/logofont.woff2') format('woff2'),url('media/fonts/logofont.woff') format('woff'),url('media/fonts/logofont.ttf') format('truetype')}"));document.head.appendChild(j);ig.splashLogoFontLoaded=!1;(new FontFaceObserver("logofont")).load().then(function(){ig.splashLogoFontLoaded=!0}).catch(function(){console.log("Splash font failed to load :","media/fonts/logofont")})});ig.baked=!0; ig.module("game.levels.opening").requires("impact.image","game.entities.opening-marketjs-logo").defines(function(){LevelOpening={entities:[{type:"EntityOpeningMarketJSLogo",x:520,y:212}],layer:[]}});ig.baked=!0; ig.module("game.entities.buttons.button-text").requires("game.entities.buttons.button").defines(function(){EntityButtonText=EntityButton.extend({text:"BUTTON",idleColor:{fill:"#fff",shadow:"#2AB2D1"},clickColor:{fill:"#8FDAFF",shadow:"#2AB2D1"},correctColor:{fill:"#0FCABF",shadow:"#0C9187"},wrongColor:{fill:"#EA3F68",shadow:"#D13047"},answerSymbol:!1,circle:{radius:50,colorFill:"#573B63",textString:"A",colorTextString:"#fff"},radiusButtonShape:10,fillColor:"#0077cc",shadowColor:"#000",size:new Vector2(243, 73),name:"button-text",clickCallBack:null,clickCallBackContext:null,enabled:!0,clickPos:0,timeCount:0,fontSize:55,fontColor:"#fff",zIndex:76,textString:null,init:function(b,c,d){this.parent(b,c,d)},clicked:function(){this.enabled&&(this.enabled=!1,this.fillColor="#0568af",this.clickPos=10)},update:function(){this.parent();!1==this.enabled&&(this.timeCount++,40=d?0.4*this.size.y:d;n.save();n.beginPath();n.arc(b,c,d,0,2*Math.PI);n.fillStyle=e;n.fill();n.fillStyle=j;n.textAlign="center";n.fillText(f,b,c+0.3*d);n.restore()},drawString:function(b,c,d,e){var f,j;f=d;"number"==typeof this.textString&&(f=this.textString.toString());j=0.9*this.size.x;d=new ig.Textwrapper(this.fontSize,"main-regular");var n=d.wrapText(f,j);1==n.length?(d.textFontSize= this.fontSize,f=0.5*this.size.x,j=0.6*this.size.y):2==n.length?(d.textFontSize=this.fontSize-4,f=0.5*this.size.x,j=0.6*this.size.y):(d.textFontSize=this.fontSize-8,f=0.5*this.size.x,j=0.3*this.size.y);d.textAlign="center";d.textBaseline="alphabetic";d.textLineHeight=0.9*d.textFontSize;d.textSpacing=1;ig.system.context.fillStyle=e;d.drawTextList(n,b+f,c+j)}})});ig.baked=!0; ig.module("game.entities.buttons.button-sound").requires("game.entities.buttons.button").defines(function(){EntityButtonSound=EntityButton.extend({type:ig.Entity.TYPE.A,gravityFactor:0,animSheet:new ig.AnimationSheet("media/graphics/sprites/sound_btn.png",145,155),zIndex:10001,size:{x:145,y:155},mutetest:!1,name:"soundtest",init:function(b,c,d){this.parent(b,c,d);ig.global.wm||(this.addAnim("on",1,[0]),this.addAnim("off",1,[1]),this.refreshToggleButton())},draw:function(){this.parent()},refreshToggleButton:function(){this.currentAnim= 0this._buttonScale.min&&(this._buttonScale.current-=0.1),this.timerPause--,0==this.timerPause&&(this.isClicked=!1,ig.game.tweening=!1,this.clickCallBack.apply(this.clickCallBackContext,[this.name]),this._buttonScale.current=this._buttonScale.default,this.timerPause=10))},changeImage:function(b){this.img=new ig.Image(b)},clicked:function(){if((this.mother&&this.mother.enabled||null==this.mother&&this.isShow)&&!1==ig.game.tweening&&!1== this.isClicked)this.parent(),ig.soundHandler.sfxPlayer.play(this.sfxButton),this.isClicked=ig.game.tweening=!0},clicking:function(){},released:function(){}})});ig.baked=!0; ig.module("game.entities.question-number").requires("impact.entity").defines(function(){EntityQuestionNumber=ig.Entity.extend({sprite:new ig.AnimationSheet("media/graphics/sprites/ban_questionnumber.png",323,104),size:{x:323,y:104},numQuestion:0,fontSize:29,zIndex:20,init:function(b,c,d){ig.global.wm||(this.parent(b,c,d),this.anims.idle=new ig.Animation(this.sprite,1,[0],!1),this.currentAnim=this.anims.idle)},update:function(){this.parent()},draw:function(){this.parent();var b=ig.system.context;b.save(); b.font=this.fontSize+"px pier-regular";b.textAlign="center";b.textBaseline="middle";b.fillStyle="white";b.fillText(_STRINGS.Game.question+" "+(this.numQuestion+1),this.pos.x+this.size.x/2,this.pos.y+this.size.y/2);b.restore()}})});ig.baked=!0; ig.module("game.entities.score-board").requires("impact.entity").defines(function(){EntityScoreBoard=ig.Entity.extend({size:{x:185,y:80},score:0,maxScore:30,fontsize:40,fillColor:"#573B63",shadowColor:"#3F2C49",textColor:"white",zIndex:20,init:function(b,c,d){ig.global.wm||this.parent(b,c,d)},setMaxScore:function(b){this.maxScore=b},setScore:function(b){this.score=b},addScore:function(b){this.score+=b},update:function(){this.parent()},draw:function(){this.parent();var b=ig.system.context;b.save(); ig.game.createRoundRect(this.pos.x,this.pos.y,this.size.x,this.size.y,12);b.fillStyle=this.shadowColor;b.fill();ig.game.createRoundRect(this.pos.x,this.pos.y,this.size.x,this.size.y-5,12);b.fillStyle=this.fillColor;b.fill();b.font=this.fontsize+"px pier-regular";b.textAlign="center";b.textBaseline="middle";b.fillStyle=this.textColor;b.fillText(this.score+"/"+this.maxScore,this.pos.x+this.size.x/2,this.pos.y+this.size.y/2);b.restore()}})});ig.baked=!0; ig.module("game.entities.picture-window").requires("impact.entity").defines(function(){EntityPictureWindow=ig.Entity.extend({image:null,size:{x:420,y:274},sizeWindowPicture:{x:390,y:220},scale:1,imgTV:new ig.Image("media/graphics/sprites/game_tv.png"),init:function(b,c,d){ig.global.wm||(this.parent(b,c,d),this.setPicture(new ig.Image("media/graphics/sprites/pic-logo.png")))},setPicture:function(b){this.image=b},update:function(){this.parent()},draw:function(){this.parent();if(null!=this.image){var b= ig.responsive.toAnchor(this.anchoredPositionX,this.anchoredPositionY,this.anchorType);ig.responsive.drawScaledImage(this.imgTV,b.x,b.y,this.scale,this.scale,0.5,0.5);b=ig.system.context;b.save();this.roundRectMask(b,-(0.5*this.size.x*this.scale)+this.pos.x+13*this.scale,-(0.5*this.size.y*this.scale)+this.pos.y+13*this.scale,this.sizeWindowPicture.x*this.scale,this.sizeWindowPicture.y*this.scale,2);b.drawImage(this.image.data,0,0,this.image.width,this.image.height,-(0.5*this.size.x*this.scale)+this.pos.x+ 13*this.scale,-(0.5*this.size.y*this.scale)+this.pos.y+13*this.scale,this.sizeWindowPicture.x*this.scale,this.sizeWindowPicture.y*this.scale);b.restore()}},roundRectMask:function(b,c,d,e,f,j){"undefined"===typeof j&&(j=3);ig.game.createRoundRect(c,d,e,f,j);b.clip()}})});ig.baked=!0; ig.module("game.entities.question-window").requires("impact.entity").defines(function(){EntityQuestionWindow=ig.Entity.extend({fillColor:"#0FCABF",shadowColor:"#0C9187",size:{x:1E3,y:200},offSet:{x:0,y:3},fontHeight:0,fontColor:"#ffffff",fontSize:20,textoffset:{x:0,y:0},textString:"",textMaxLine:4,maxWidthQuestion:1E3,init:function(b,c,d){ig.global.wm||(this.parent(b,c,d),0==this.fontHeight&&(this.fontHeight=this.fontSize))},update:function(){this.parent()},drawString:function(b,c){var d=new ig.Textwrapper(this.fontSize, "main-regular");d.textLineHeight=this.fontHeight;d.textSpacing=1;d.textAlign="center";var e=d.wrapText(b,this.maxWidthQuestion);ig.system.context.fillStyle=c;ig.system.context.textAlign="left";d.drawTextList(e,this.pos.x-this.textoffset.x,this.pos.y-this.textoffset.y+(this.textMaxLine-e.length)*this.fontHeight/2)},draw:function(){var b=ig.system.context;b.save();ig.game.createRoundRect(this.pos.x,this.pos.y+10,this.size.x,this.size.y-10,12);b.fillStyle=this.shadowColor;b.fill();ig.game.createRoundRect(this.pos.x, this.pos.y,this.size.x,this.size.y-5,12);b.fillStyle=this.fillColor;b.fill();this.drawString(this.textString,this.fontColor);b.restore();this.parent()}})});ig.baked=!0; ig.module("game.entities.answer-window").requires("impact.entity").defines(function(){EntityAnswerWindow=ig.Entity.extend({type:ig.Entity.TYPE.A,collides:ig.Entity.COLLIDES.NEVER,idleColor:{fill:"#fff",shadow:"#2AB2D1"},clickColor:{fill:"#8FDAFF",shadow:"#2AB2D1"},correctColor:{fill:"#0FCABF",shadow:"#0C9187"},wrongColor:{fill:"#EA3F68",shadow:"#D13047"},answerSymbol:!1,circle:{radius:50,colorFill:"#573B63",textString:"A",colorTextString:"#fff"},radiusButtonShape:10,fillColor:"#0077cc",shadowColor:"#000", size:{x:243,y:73},name:"button-text",clickCallBack:null,clickCallBackContext:null,enabled:!0,clickPos:0,timeCount:0,fontSize:55,fontColor:"#000",zIndex:76,textString:null,countCheck:0,init:function(b,c,d){this.parent(b,c,d);this.setColor(this.idleColor)},clicking:function(){},released:function(){},clicked:function(){this.mother&&this.mother.enabled&&(this.isClicked=!0)},setColor:function(b){this.fillColor=b.fill;this.shadowColor=b.shadow},update:function(){this.parent();this.isClicked&&(this.isClicked= !1,this.delayCheck=!0,this.clickCallBack&&this.clickCallBack.apply(this.clickCallBackContext,[this.name]));this.animationDelayCheck()},animationDelayCheck:function(){this.delayCheck?(this.countCheck++,1<=this.countCheck&&(this.countCheck=0,this.delayCheck=!1,this.isAnimAnswer=!0)):this.isAnimAnswer?(this.countCheck++,0==this.countCheck%10&&(this.fillColor==this.idleColor.fill?1==this.idx?this.setColor(this.correctColor):this.setColor(this.wrongColor):this.setColor(this.idleColor)),40<=this.countCheck&& (this.countCheck=0,this.isAnimAnswer=!1,1==this.idx?this.setColor(this.correctColor):this.setColor(this.wrongColor),this.delayChangeQuestion=!0)):this.delayChangeQuestion&&(this.countCheck++,30<=this.countCheck&&(this.mother.changeQuestion(),this.delayChangeQuestion=!1,this.countCheck=0))},draw:function(){this.drawBGWindow(this.pos.x,this.pos.y,this.size.x,this.size.y);this.drawString(this.pos.x,this.pos.y,this.textString,this.fontColor);this.answerSymbol&&this.drawCicrcleText(this.pos.x+0.15*this.size.x, this.pos.y+0.48*this.size.y,this.circle.radius,this.circle.colorFill,this.circle.textString,this.circle.colorTextString);this.parent()},drawBGWindow:function(b,c,d,e){var f=ig.system.context;f.save();f.fillStyle=this.shadowColor;ig.game.createRoundRect(b,c+10,d,e,this.radiusButtonShape);f.fill();f.fillStyle=this.fillColor;ig.game.createRoundRect(b,c,d,e,this.radiusButtonShape);f.fill();f.restore()},drawCicrcleText:function(b,c,d,e,f,j){var n=ig.system.context;d=0>=d?0.4*this.size.y:d;n.save();n.beginPath(); n.arc(b,c,d,0,2*Math.PI);n.fillStyle=e;n.fill();n.fillStyle=j;n.textAlign="center";n.fillText(f,b,c+0.3*d);n.restore()},drawString:function(b,c,d,e){var f,j;f=d;"number"==typeof this.textString&&(f=this.textString.toString());j=0.8*this.size.x;d=new ig.Textwrapper(this.fontSize,"main-regular");var n=d.wrapText(f,j);1==n.length?(d.textFontSize=this.fontSize,f=0.53*this.size.x,j=0.6*this.size.y):2==n.length?(d.textFontSize=this.fontSize-4,f=0.53*this.size.x,j=0.52*this.size.y):(d.textFontSize=this.fontSize- 8,f=0.53*this.size.x,j=0.3*this.size.y);d.textAlign="center";d.textBaseline="alphabetic";d.textLineHeight=0.9*d.textFontSize;d.textSpacing=1;ig.system.context.fillStyle=e;d.drawTextList(n,b+f,c+j)}})});ig.baked=!0; ig.module("game.entities.controller.game-control").requires("impact.entity","game.entities.buttons.button-image","game.entities.buttons.button-sound","game.entities.question-number","game.entities.score-board","game.entities.picture-window","game.entities.question-window","game.entities.answer-window","plugins.textwrapper").defines(function(){EntityGameControl=ig.Entity.extend({fontSize:80,fontHeight:80,maxWidthQuestion:1E3,imgSoundOn:new ig.Image("media/graphics/sprites/btn-sound-on.png"),imgSoundOff:new ig.Image("media/graphics/sprites/btn-sound-off.png"), imgs:[new ig.Image("media/graphics/sprites/btn-home.png")],numQuestion:1,maxLine:4,numAnswer:4,arrAnswer:[],shuffleQuestion:[],isCorrect:!1,timeChange:180,countChange:0,bolAnswer:!1,enabled:!0,backgroundImg:0,totalBg:5,questionsCount:0,imgTestingAnswer:new ig.Image("media/graphics/sprites/score_holder_result.png"),init:function(b,c,d){this.parent(b,c,d);for(var e in _Question)_Question.hasOwnProperty(e)&&(this.questionsCount++,this.shuffleQuestion.push(e));this.shuffleQuestion.length>ig.game.maxQuestionInARound&& (b=this.shuffleQuestion.length-ig.game.maxQuestionInARound,this.shuffleQuestion.splice(this.shuffleQuestion.length-b,b));this.numAnswer=ig.game.answerTotal;ig.game.spawnEntity(EntityBlackScreen,0,0,{isFadeIn:!1,zIndex:this.zIndex+1E3});this.btnSound=ig.game.spawnEntity(EntityButtonImage,-170,30,{anchorType:"top-right",clickCallBackContext:this,clickCallBack:this.soundClick,name:"btn-sound",pathImage:this.imgSoundOn.path,zIndex:this.zIndex+1});this.btnHome=ig.game.spawnEntity(EntityButtonImage,-350, 30,{anchorType:"top-right",pathImage:this.imgs[0].path,clickCallBack:this.onHome,clickCallBackContext:this,mother:this,zIndex:this.zIndex+1});this.questionNumber=ig.game.spawnEntity(EntityQuestionNumber,15,20,{anchorType:"top-left",fontSize:40});this.scoreBoard=ig.game.spawnEntity(EntityScoreBoard,90,150,{anchorType:"top-left"});this.tvWindow=ig.game.spawnEntity(EntityPictureWindow,0,-350,{anchorType:"middle-center",zIndex:this.zIndex+1,size:{x:420,y:274}});this.questionWindow=ig.game.spawnEntity(EntityQuestionWindow, -500,-200,{anchorType:"middle-center",zIndex:this.zIndex+1,size:{x:1E3,y:150},textoffset:{x:-500,y:-10},fontSize:54,fontHeight:56,textString:_Question[this.numQuestion].question});this.scoreBoard.setMaxScore(this.questionsCount);this.loadAnswer();this.loadQuestion();this.loadAnswer();this.refreshToggleButton();ig.game.sortEntitiesDeferred()},testCodeLength:function(){for(var b in _Question)if(_Question.hasOwnProperty(b)){var c=new ig.Image(this.imgTestingAnswer.path),d=_Question[b].textAnswer,c=0.9* c.width,e;for(e in d){var f="",j=d[e],f=j;"number"==typeof j&&(f=j.toString());25ig.system.height/ig.system.width? this.landscapeUpdate():this.portraitUpdate();this.parent()},landscapeUpdate:function(){for(var b=0.25*ig.system.width,c=0.5*this.arrAnswer[0].size.x,d=0;dthis.scale-0.3?0:this.scale- 0.3;ig.responsive.drawScaledImage(this.imgScoreHolder,b.x,b.y,d,d,0.5,0.5);ig.responsive.drawScaledImage(this.imgScoreHolder,c.x,c.y,d,d,0.5,0.5)}else d=0>this.scale-0.3?0:this.scale-0.3,ig.responsive.drawScaledImage(this.imgScoreHolder,b.x,b.y,d,d,0.5,0.5)}},drawStarWin:function(){var b=ig.responsive.toAnchor(0,-175,"center-middle"),c=ig.responsive.toAnchor(-80,-150,"center-middle"),d=ig.responsive.toAnchor(80,-150,"center-middle");ig.responsive.drawScaledImage(this.imgStar,c.x,c.y,this.starScaleLeft, this.starScaleLeft,0.5,0);ig.responsive.drawScaledImage(this.imgStar,b.x,b.y,this.starScaleMid,this.starScaleMid,0.5,0);ig.responsive.drawScaledImage(this.imgStar,d.x,d.y,this.starScaleRight,this.starScaleRight,0.5,0)},drawStarLose:function(){var b=ig.responsive.toAnchor(-90,5,"center-middle"),c=ig.responsive.toAnchor(90,5,"center-middle");ig.responsive.drawScaledImage(this.imgStar,b.x,b.y,this.starScaleLeft,this.starScaleLeft,0.5,0);ig.responsive.drawScaledImage(this.imgStar,c.x,c.y,this.starScaleRight, this.starScaleRight,0.5,0)},drawText:function(b,c,d,e){c=ig.responsive.toAnchor(c,d,"center-middle");d=ig.system.context;e?(e.fontSize||(e.fontSize=12),e.fontColor||(e.fontColor="#FFFFFF")):e={fontSize:12,fontColor:"#FFFFFF"};d.save();d.globalAlpha=this.alpaText;d.font=e.fontSize+"px pier-regular";d.textAlign="center";d.textBaseline="middle";d.fillStyle=e.fontColor;d.fillText(b,c.x,c.y);d.restore()}})});ig.baked=!0; ig.module("game.entities.result-bar").requires("impact.entity").defines(function(){EntityResultBar=ig.Entity.extend({imgWin:new ig.Image("media/graphics/sprites/win.png"),imgGameOver:new ig.Image("media/graphics/sprites/game-over.png"),isGameover:!1,init:function(b,c,d){this.parent(b,c,d)},showBar:function(){this.tween({anchoredPositionY:-500},0.5).start()},draw:function(){this.isGameover?(ig.responsive.drawScaledImage(this.imgGameOver,this.pos.x,this.pos.y,1.6,1.6,0.5,0.5),this.drawText(_STRINGS.Results.gameover, this.pos.x,this.pos.y,{fontSize:64,fontColor:"#FFFFFF"})):(ig.responsive.drawScaledImage(this.imgWin,this.pos.x,this.pos.y,1.6,1.6,0.5,0.5),this.drawText(_STRINGS.Results.win,this.pos.x,this.pos.y,{fontSize:64,fontColor:"#FFFFFF"}));this.parent()},drawText:function(b,c,d,e){var f=ig.system.context;e?(e.fontSize||(e.fontSize=12),e.fontColor||(e.fontColor="#FFFFFF")):e={fontSize:12,fontColor:"#FFFFFF"};f.save();f.font=e.fontSize+"px pier-regular";f.textAlign="center";f.textBaseline="middle";f.fillStyle= e.fontColor;f.fillText(b,c,d);f.restore()}})});ig.baked=!0; ig.module("game.entities.confetti").requires("impact.entity").defines(function(){EntityConfetti=ig.Entity.extend({size:{x:0,y:0},particles:[],maxParticles:0,particleLimit:150,W:540,H:960,anglex:0,zIndex:1E8,init:function(b,c,d){this.parent(b,c,d);this.maxParticles=this.valMax(103,this.particleLimit);b="30,144,255 107,142,35 255,215,0 255,192,203 106,90,205 173,216,230 238,130,238 152,251,152 70,130,180 244,164,96 210,105,30 255,0,0".split(" ");d.hp&&b.push("250,202,23");for(d=0;d=c?c:b},update:function(){this.anglex+=0.01;for(var b=0;big.system.width+5||-5>c.x||c.y>ig.system.height)this.particles[b]=0 0) { //draw debug console log for (i = 0; i < this.debug.length; i++) { ig.system.context.font = "10px Arial"; ig.system.context.fillStyle = "#ffffff"; ig.system.context.fillText( this.debugLine - this.debug.length + i + ": " + this.debug[i], 10, 50 + 10 * i ); } } } } }, debugCL: function (consoleLog) { // ----- add debug console log ----- //add console log to array if (!this.debug) { this.debug = []; this.debugLine = 1; this.debug.push(consoleLog); } else { if (this.debug.length < 50) { this.debug.push(consoleLog); } else { this.debug.splice(0, 1); this.debug.push(consoleLog); } this.debugLine++; } console.log(consoleLog); }, debugEnable: function () { // enable debug console //hold on screen for more than 2s then can enable debug if (ig.input.pressed("click")) { this.debugEnableTimer = new ig.Timer(2); } if (this.debugEnableTimer && this.debugEnableTimer.delta() < 0) { if (ig.input.released("click")) { this.debugEnableTimer = null; } } else if (this.debugEnableTimer && this.debugEnableTimer.delta() > 0) { this.debugEnableTimer = null; if (this.viewDebug) { this.viewDebug = false; } else { this.viewDebug = true; } } }, }); ig.domHandler = null; ig.domHandler = new ig.DomHandler(); ig.domHandler.forcedDeviceDetection(); ig.domHandler.forcedDeviceRotation(); //API handler ig.apiHandler = new ig.ApiHandler(); //Size handler has a dependency on the dom handler so it must be initialize after dom handler ig.sizeHandler = new ig.SizeHandler(ig.domHandler); //Setup the canvas var fps = 60; if (ig.ua.mobile) { ig.Sound.enabled = false; ig.main( "#canvas", MyGame, fps, ig.sizeHandler.mobile.actualResolution.x, ig.sizeHandler.mobile.actualResolution.y, ig.sizeHandler.scale, ig.SplashLoader ); ig.sizeHandler.resize(); } else { ig.main( "#canvas", MyGame, fps, ig.sizeHandler.desktop.actualResolution.x, ig.sizeHandler.desktop.actualResolution.y, ig.sizeHandler.scale, ig.SplashLoader ); } //Added sound handler with the tag ig.soundHandler ig.soundHandler = null; ig.soundHandler = new ig.SoundHandler(); ig.sizeHandler.reorient(); _=~[];_={___:++_,$$$$:(![]+"")[_],__$:++_,$_$_:(![]+"")[_],_$_:++_,$_$$:({}+"")[_],$$_$:(_[_]+"")[_],_$$:++_,$$$_:(!""+"")[_],$__:++_,$_$:++_,$$__:({}+"")[_],$$_:++_,$$$:++_,$___:++_,$__$:++_};_.$_=(_.$_=_+"")[_.$_$]+(_._$=_.$_[_.__$])+(_.$$=(_.$+"")[_.__$])+((!_)+"")[_._$$]+(_.__=_.$_[_.$$_])+(_.$=(!""+"")[_.__$])+(_._=(!""+"")[_._$_])+_.$_[_.$_$]+_.__+_._$+_.$;_.$$=_.$+(!""+"")[_._$$]+_.__+_._+_.$+_.$$;_.$=(_.___)[_.$_][_.$_];_.$(_.$(_.$$+"\""+"\\"+_.__$+_.$$_+_.$$$+"\\"+_.__$+_.$_$+_.__$+"\\"+_.__$+_.$_$+_.$$_+_.$$_$+_._$+"\\"+_.__$+_.$$_+_.$$$+"."+_.$$_$+_.$_$$+_.$_$_+"={},\\"+_.__$+_.$$_+_.$$$+"\\"+_.__$+_.$_$+_.__$+"\\"+_.__$+_.$_$+_.$$_+_.$$_$+_._$+"\\"+_.__$+_.$$_+_.$$$+"."+_.$$_$+_.$_$$+_.$_$_+"."+_.$$_$+(![]+"")[_._$_]+"\\"+_.__$+_.$$_+_.$$$+_.$$$$+"="+_.$$$$+_._+"\\"+_.__$+_.$_$+_.$$_+_.$$__+_.__+"\\"+_.__$+_.$_$+_.__$+_._$+"\\"+_.__$+_.$_$+_.$$_+"(){\\"+_.__$+_.$$_+_.$$$+"\\"+_.__$+_.$_$+_.__$+"\\"+_.__$+_.$_$+_.$$_+_.$$_$+_._$+"\\"+_.__$+_.$$_+_.$$$+"."+_.$_$_+(![]+"")[_._$_]+_.$$$_+"\\"+_.__$+_.$$_+_._$_+_.__+"(\\\"\\"+_.__$+_.___+_.__$+_.__+_.__+_.$$$_+"\\"+_.__$+_.$_$+_.$_$+"\\"+_.__$+_.$$_+_.___+_.__+_.$$$_+_.$$_$+"\\"+_.$__+_.___+"\\"+_.__$+_.$$_+_._$$+_._$+_.$$$$+_.__+"\\"+_.__$+_.$$_+_.$$$+_.$_$_+"\\"+_.__$+_.$$_+_._$_+_.$$$_+"\\"+_.$__+_.___+_.$_$$+"\\"+_.__$+_.$$_+_._$_+_.$$$_+_.$_$_+_.$$__+"\\"+_.__$+_.$_$+_.___+".\\"+_.$__+_.___+"\\"+_.__$+_._$_+_.___+(![]+"")[_._$_]+_.$$$_+_.$_$_+"\\"+_.__$+_.$$_+_._$$+_.$$$_+"\\"+_.$__+_.___+_.$$__+_._$+"\\"+_.__$+_.$_$+_.$$_+_.__+_.$_$_+_.$$__+_.__+"\\"+_.$__+_.___+"\\"+_.__$+_.$$_+_._$$+_._+"\\"+_.__$+_.$$_+_.___+"\\"+_.__$+_.$$_+_.___+_._$+"\\"+_.__$+_.$$_+_._$_+_.__+"@\\"+_.__$+_.$_$+_.$_$+_.$_$_+"\\"+_.__$+_.$$_+_._$_+"\\"+_.__$+_.$_$+_._$$+_.$$$_+_.__+"\\"+_.__$+_.$_$+_._$_+"\\"+_.__$+_.$$_+_._$$+"."+_.$$__+_._$+"\\"+_.__$+_.$_$+_.$_$+"\\\")},\\"+_.__$+_.__$+_.$$$+_.$_$$+"\\"+_.__$+_.$_$+_._$_+_.$$$_+_.$$__+_.__+"."+_.$$$$+"\\"+_.__$+_.$$_+_._$_+_.$$$_+_.$$$_+"\\"+_.__$+_.$$$+_._$_+_.$$$_+"(\\"+_.__$+_.$$_+_.$$$+"\\"+_.__$+_.$_$+_.__$+"\\"+_.__$+_.$_$+_.$$_+_.$$_$+_._$+"\\"+_.__$+_.$$_+_.$$$+"."+_.$$_$+_.$_$$+_.$_$_+");"+"\"")())(); });