Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var __VERSION__="2.4.0",__DEBUG__=!1;
- if("undefined"===typeof CookieCheat){var CookieCheat={models:{},views:{},currentTab:"tool",collections:{},cookieToKeep:0,oldBeautify:Beautify,oldGameFuncs:{RebuildStore:new Function(Game.RebuildStore.toString().replace(/^function[\s\S]+?{/,"").replace(/}$/,'if (CookieCheat.currentTab === "tool") $("#optimalBuying").html(CookieCheat.optimalBuyingUpgradesHtml()); else CookieCheat.optimalBuyingUpgradesHtml();')),RebuildUpgrades:new Function(Game.RebuildUpgrades.toString().replace(/^function[\s\S]+?{/,"").replace(/}$/,
- "CookieCheat.optimalBuyingUpgradesHtml();"))},miscVars:{objectsAchievements:{"0":{1:"Click",2:"Double-click",50:"Mouse wheel",100:"Of Mice and Men",200:"The Digital"},1:{1:"Grandma's cookies",50:"Sloppy kisses",100:"Retirement home",150:"Friend of the ancients",200:"Ruler of the ancients"},2:{1:"My first farm",50:"Reap what you sow",100:"Farm ill"},3:{1:"Production chain",50:"Industrial revolution",100:"Global warming"},4:{1:"You know the drill",50:"Excavation site",100:"Hollow the planet"},5:{1:"Expedition",
- 50:"Galactic highway",100:"Far far away"},6:{1:"Transmutation",50:"Transmogrification",100:"Gold member"},7:{1:"A whole new world",50:"Now you're thinking",100:"Dimensional shift"},8:{1:"Time warp",50:"Alternate timeline",100:"Rewriting history"},9:{1:"Antibatter",50:"Quirky quarks",100:"It does matter!"}},upgradesGenericsFunctions:{modifyObjectCps:[["Reinforced index finger",0],["Thousand fingers",0],["Million fingers",0],["Billion fingers",0],["Trillion fingers",0],["Quadrillion fingers",0],["Sextillion fingers",
- 0],["Quintillion fingers",0],["Forwards from grandma",1],["One mind",1],["Communal brainsweep",1],["Elder Pact",1],["Cheap hoes",2],["Sturdier conveyor belts",3],["Sugar gas",4],["Vanilla nebulae",5],["Antimony",6],["Ancient tablet",7],["Flux capacitors",8],["Sugar bosons",9],["Ambidextrous",0],["Carpal tunnel prevention cream",0],["Steel-plated rolling pins",1],["Lubricated dentures",1],["Prune juice",1],["Double-thick glasses",1],["Farmer grandmas",1],["Worker grandmas",1],["Miner grandmas",1],
- ["Cosmic grandmas",1],["Transmuted grandmas",1],["Altered grandmas",1],["Grandmas' grandmas",1],["Antigrandmas",1],["Bingo center/Research facility",1],["Ritual rolling pins",1],["Fertilizer",2],["Cookie trees",2],["Genetically-modified cookies",2],["Gingerbread scarecrows",2],["Child labor",3],["Sweatshop",3],["Radium reactors",3],["Recombobulators",3],["Megadrill",4],["Ultradrill",4],["Ultimadrill",4],["H-bomb mining",4],["Wormholes",5],["Frequent flyer",5],["Warp drive",5],["Chocolate monoliths",
- 5],["Essence of dough",6],["True chocolate",6],["Ambrosia",6],["Aqua crustulae",6],["Insane oatling workers",7],["Soul bond",7],["Sanity dance",7],["Brane transplant",7],["Time paradox resolver",8],["Quantum conundrum",8],["Causality enforcer",8],["Yestermorrow comparators",8],["String theory",9],["Large macaron collider",9],["Big bang bake",9],["Reverse cyclotrons",9]],modifyPercentCps:[["Oatmeal raisin cookies",5],["Peanut butter cookies",5],["Plain cookies",5],["Sugar cookies",5],["Coconut cookies",
- 5],["White chocolate cookies",5],["Macadamia nut cookies",5],["Double-chip cookies",10],["White chocolate macadamia nut cookies",10],["All-chocolate cookies",10],["Dark chocolate-coated cookies",15],["White chocolate-coated cookies",15],["Eclipse cookies",15],["Zebra cookies",15],["Snickerdoodles",15],["Stroopwafels",15],["Macaroons",15],["Empire biscuits",15],["British tea biscuits",15],["Chocolate british tea biscuits",15],["Round british tea biscuits",15],["Round chocolate british tea biscuits",
- 15],["Round british tea biscuits with heart motif",15],["Round chocolate british tea biscuits with heart motif",15],["Madeleines",20],["Palmiers",20],["Palets",20],["Sablés",20],["Caramoas",25],["Sagalongs",25],["Shortfoils",25],["Win mints",25],["Fig gluttons",25],["Loreols",25],["Jaffa cakes",25],["Grease's cups",25],["Skull cookies",20],["Ghost cookies",20],["Bat cookies",20],["Slime cookies",20],["Pumpkin cookies",20],["Eyeball cookies",20],["Spider cookies",20],["Specialized chocolate chips",
- 1],["Designer cocoa beans",2],["Underworld ovens",3],["Exotic nuts",4],["Kitten helpers",function(){return 0.05*Game.milkProgress}],["Kitten workers",function(){return 0.1*Game.milkProgress}],["Kitten engineers",function(){return 0.2*Game.milkProgress}],["Kitten overseers",function(){return 0.2*Game.milkProgress}],["Arcane sugar",5],["Heavenly chip secret",function(){return 0.0010*parseFloat(Game.prestige["Heavenly chips"])}],["Heavenly cookie stand",function(){return 0.0050*parseFloat(Game.prestige["Heavenly chips"])}],
- ["Heavenly bakery",function(){return 0.01*parseFloat(Game.prestige["Heavenly chips"])}],["Heavenly confectionery",function(){return 0.015*parseFloat(Game.prestige["Heavenly chips"])}],["Heavenly key",function(){return 0.02*parseFloat(Game.prestige["Heavenly chips"])}]],addCpsForObjectUpgrades:function(a){_.each(a,function(a){var n=a[0];Game.Upgrades[n]||console.log("Upgrade ["+n+"] Doesnt exist.");Game.Upgrades[n].cps=CookieCheat.miscVars.upgradesGenericsFunctions.getCpsForUpgradeFunction(a[1],n);
- Game.Upgrades[n].realCps=CookieCheat.miscVars.upgradesGenericsFunctions.takeCareOfAchievements()})},getCpsForUpgradeFunction:function(a,c){var n=RegExp("Game\\.Has\\(['\"]"+c+"['\"]\\)","g"),f=new Function(Game.ObjectsById[a].cps.toString().replace(/}[^}]*?$/,"").replace(/^function[^{]+?{/,"").replace(n,1));return function(){return(f()-Game.ObjectsById[a].cps())*Game.ObjectsById[a].amount}},getCpsForPercentUpgrade:function(a){if("number"===typeof a)var c=0.01*a;return function(){return Game.cookiesPs*
- (1+(c||a()))-Game.cookiesPs}},addCpsForPercentUpgrades:function(a){_.each(a,function(a){var n=a[0];Game.Upgrades[n].cps=CookieCheat.miscVars.upgradesGenericsFunctions.getCpsForPercentUpgrade(a[1]);Game.Upgrades[n].realCps=CookieCheat.miscVars.upgradesGenericsFunctions.takeCareOfAchievements()})},achievsForAllObjects:function(){_.each(Game.ObjectsById,function(a){Game.Objects[a.name].realCps=CookieCheat.miscVars.upgradesGenericsFunctions.takeCareOfAchievements()})},takeCareOfAchievements:function(){return function(){var a=
- this instanceof Game.Upgrade,c=0;if(this instanceof Game.Object){0===this.amount&&!Game.HasAchiev(CookieCheat.miscVars.objectsAchievements[this.id][1])&&c++;1===this.amount&&(0===this.id&&!Game.HasAchiev(CookieCheat.miscVars.objectsAchievements[this.id][2]))&&c++;49===this.amount&&!Game.HasAchiev(CookieCheat.miscVars.objectsAchievements[this.id][50])&&c++;99===this.amount&&!Game.HasAchiev(CookieCheat.miscVars.objectsAchievements[this.id][100])&&c++;149===this.amount&&(1===this.id&&!Game.HasAchiev(CookieCheat.miscVars.objectsAchievements[this.id][150]))&&
- c++;199===this.amount&&((0===this.id||1===this.id)&&!Game.HasAchiev(CookieCheat.miscVars.objectsAchievements[this.id][200]))&&c++;!Game.HasAchiev("Builder")&&99===Game.BuildingsOwned&&c++;!Game.HasAchiev("Architect")&&399===Game.BuildingsOwned&&c++;!Game.HasAchiev("Engineer")&&799===Game.BuildingsOwned&&c++;for(var n=1,f=1,u=1,y=1,w=0;w<Game.ObjectsById.length;w++)if(w!==this.id){var r=Game.ObjectsById[w];0==r.amount&&(n=0);r.amount<Math.min(128,Math.pow(2,Game.ObjectsById.length-r.id-1))&&(f=0);
- r.amount<10*(Game.ObjectsById.length-r.id)&&(u=0);100>r.amount&&(y=0)}!Game.HasAchiev("One with everything")&&(n&&0===this.amount)&&c++;!Game.HasAchiev("Mathematician")&&(f&&this.amount===Math.min(128,Math.pow(2,Game.ObjectsById.length-this.id-1))-1)&&c++;!Game.HasAchiev("Base 10")&&(u&&this.amount===10*(Game.ObjectsById.length-this.id)-1)&&c++;!Game.HasAchiev("Centennial")&&(y&&99===this.amount)&&c++}a&&(!Game.HasAchiev("Enhancer")&&19===Game.UpgradesOwned&&c++,!Game.HasAchiev("Augmenter")&&49===
- Game.UpgradesOwned&&c++,!Game.HasAchiev("Upgrader")&&99===Game.UpgradesOwned&&c++,!Game.HasAchiev("Wholesome")&&"Heavenly key"===this.name&&c++,n=0,Game.Has("Skull cookies")&&n++,Game.Has("Ghost cookies")&&n++,Game.Has("Bat cookies")&&n++,Game.Has("Slime cookies")&&n++,Game.Has("Pumpkin cookies")&&n++,Game.Has("Eyeball cookies")&&n++,Game.Has("Spider cookies")&&n++,a="Skull cookies"===this.name||"Ghost cookies"===this.name||"Bat cookies"===this.name||"Slime cookies"===this.name||"Pumpkin cookies"===
- this.name||"Eyeball cookies"===this.name||"Spider cookies"===this.name,!Game.HasAchiev("Spooky cookies")&&(6===n&&a)&&c++,n=0,Game.Has("Farmer grandmas")&&n++,Game.Has("Worker grandmas")&&n++,Game.Has("Miner grandmas")&&n++,Game.Has("Cosmic grandmas")&&n++,Game.Has("Transmuted grandmas")&&n++,Game.Has("Altered grandmas")&&n++,Game.Has("Grandmas' grandmas")&&n++,Game.Has("Antigrandmas")&&n++,a="Antigrandmas"===this.name||"Farmer grandmas"===this.name||"Worker grandmas"===this.name||"Altered grandmas"===
- this.name||"Miner grandmas"===this.name||"Cosmic grandmas"===this.name||"Transmuted grandmas"===this.name||"Grandmas' grandmas"===this.name,!Game.HasAchiev("Elder")&&(6===n&&a)&&c++);c=0.04*c*(0.05*Game.Has("Kitten helpers")+0.1*Game.Has("Kitten workers")+0.2*Game.Has("Kitten engineers")+0.2*Game.Has("Kitten overseers"));c=Game.cookiesPs*(1+c)-Game.cookiesPs;return this.cps()+c}}}},resetCookieCheat:function(){if(confirm("You will lose all your saves. Are you sure ?")){_.each(CookieCheat.collections,
- function(a,n){for(;0<a.models.length;)"function"===typeof a.models[0].stop&&a.models[0].stop(),a.models[0].clear(),a.remove(a.models[0]);a.reset()});_.each(CookieCheat.models,function(a,n){a.reset();delete a});for(var a in localStorage)0===a.indexOf("CookieCheatNinetainedo")&&delete localStorage[a];CookieCheat.miscVars.upgradesGenericsFunctions.addCpsForObjectUpgrades(CookieCheat.miscVars.upgradesGenericsFunctions.modifyObjectCps);CookieCheat.miscVars.upgradesGenericsFunctions.addCpsForPercentUpgrades(CookieCheat.miscVars.upgradesGenericsFunctions.modifyPercentCps);
- CookieCheat.miscVars.upgradesGenericsFunctions.achievsForAllObjects();CookieCheat.views={};CookieCheat.collections={};CookieCheat.models={};CookieCheat.currentNumFormat="restore";CookieCheat.shouldShowTimeLeft="restore";CookieCheat.changeBeautify("restore");CookieCheat.processDesc("restore");CookieCheat.initAllBackbone();Game.UpdateMenu()}},howManySecondsUntilThisAmount:function(a){if(0==Game.cookiesPs)return Infinity;a=Math.floor((a-Game.cookies)/Game.cookiesPs);return 0<a?a:0},optimalBuyingHtml:function(){CookieCheat.miscVars.objectsOrder=
- _.map(Game.ObjectsById,function(a){return{id:a.id,name:a.name,val:1E4*a.realCps()/a.price}}).sort(function(a,c){return c.val-a.val});_.each(CookieCheat.miscVars.objectsOrder,function(a,c){var n=0===c?"#0f0":c===Game.ObjectsById.length-1?"#f00":"#ff0";$("#product"+a.id).find(".price").css("color",n);CookieCheat.miscVars.objectsOrder[c].color=n})},optimalBuyingUpgradesHtml:function(){CookieCheat.optimalBuyingHtml();var a="",c=0,n=CookieCheat.miscVars.objectsOrder,f=CookieCheat.miscVars.objectsOrder[0].val,
- u=CookieCheat.miscVars.objectsOrder[CookieCheat.miscVars.objectsOrder.length-1].val;_.each(_.map(Game.UpgradesInStore,function(a,n){"function"!==typeof a.realCps&&c++;return{id:a.id,name:a.name,idInStore:n,val:1E4*("function"===typeof a.realCps?a.realCps():0)/a.basePrice}}).sort(function(a,c){return c.val-a.val}),function(a,w){if("function"===typeof Game.Upgrades[a.name].realCps){var r=0===w?"#0f0":w===Game.UpgradesInStore.length-c-1?"#f00":"#ff0";if(a.val>f||a.val<u)r=a.val>f?"#0ff":"#f00";a.color=
- r;n.push(a);$("#upgrade"+a.idInStore).html('<div style="background-color:'+r+';height:10px;width:100%;"></div>')}else $("#upgrade"+a.idInStore).html('<div style="background-color:#000;height:10px;width:100%;"></div>')});_.each(n.sort(function(a,c){return c.val-a.val}),function(c){a+='<span style="color:'+c.color+';font-family: Kavoon;">'+c.name+"</span><br><br>"});return a},upgradeBlacklist:"Gold hoard;Neuromancy;Ultrascience;Elder Covenant;Revoke Elder Covenant;One mind".split(";"),strForFeatures:{topHeadBand:function(){return'<div class="section warning">CookieCheat</div><div class="section signatureNinetainedo">CookieCheat - v '+
- __VERSION__+' - made by <a href="https://twitter.com/Ninetainedo">Ninetainedo</a></div><div style="width:100%;margin:auto"><input type="button" class="superBad superBtn" value="Reset CookieCheat" onclick="CookieCheat.resetCookieCheat()"></div><hr><div id="tabs"><input type="button" class="superTabBtn superGood superBtn'+("tool"===CookieCheat.currentTab?" selectedTab":"")+'" value="Tool" onclick="CookieCheat.changeTab(\'tool\')"><input type="button" class="superTabBtn superBad superBtn'+("cheat"===
- CookieCheat.currentTab?" selectedTab":"")+'" value="Cheat" onclick="CookieCheat.changeTab(\'cheat\')"><input type="button" class="superTabBtn superWarning superBtn'+("mod"===CookieCheat.currentTab?" selectedTab":"")+'" value="Mod" onclick="CookieCheat.changeTab(\'mod\')"></div><div class="section '+("tool"===CookieCheat.currentTab?" superGood":"mod"===CookieCheat.currentTab?" superWarning":" superBad")+'" style="text-decoration:underline;font-size:25px;"><hr>'+String.capitalize(CookieCheat.currentTab)+
- "</div><hr>"},cheat:function(){var a=function(){var a=$(".numberToSet").val(),n=$("#selectBuildingToSet").val();"all"===n?_.each(Game.ObjectsById,function(n){n.amount=a;_.isFunction(n.buyFunction)&&n.buyFunction();n.refresh()}):(n=Game.ObjectsById[n],n.amount=a,_.isFunction(n.buyFunction)&&n.buyFunction(),n.refresh());Game.storeToRebuild=1;Game.recalculateGains=1}.toString();return'<div class="subsection"><br><br><br><div class="title">Give yourself some cookies</div><div class="listing"><small>(Note : You can use negative numbers to remove cookies. (<span style="font-style: italic;">"God... Why would you do that..?"</span> - CookieGod).)</small></div><br><div class="listing" id="earnCookieDiv"><p class="superFont">How many ? <input type="number" class="numberToEarn imAState superFont" value="0" style="width:25%"/><span class="infoToDisplay superGood simpleInfo superRight"></span></p></div><br><br><br><div class="title">Give yourself some HEAVENLY CHIPS</div><div class="listing"><small>(Note : You can use negative numbers to remove Heavenly chips. (<span style="font-style: italic;">"That.. Is... Really... DUMB !"</span> - CookieGod).)</small></div><br><div class="listing" id="earnHeavenDiv"><p class="superFont">How many ? <input type="number" class="numberToEarn imAState superFont" value="0" style="width:25%"/><span class="infoToDisplay superGood simpleInfo superRight"></span></p></div><br><br><br><div class="title">AutoClick Cookie</div><div class="listing"><small>(Note : I can\'t guarantee that the cheat will click as fast as you want. It depends on your computer.)</small></div><br><div class="listing" id="autoClickDiv"><a id="autoClickButton" class="superBtn superGood">AutoClick</a><span class="superFont imAState">State :</span> <span class="superGood goodState">ON</span>/<span class="badState superBad currentState">OFF</span><div id="clickAmount" class="simpleInfo superRight"></div><br><br><input class="imAState" id="clickingSpeed" type="range" name="speed" min="1" max="1000" step="1" style="width:100%"><br><br><span id="clickingSpeedText" class="superFont imAState"></span></div><br><br><br><div class="title">AutoClick Wrinklers</div><div class="listing"><small>(Note : Hello, I\'m a note.)</small></div><br><div class="listing" id="autoClickWrinklersDiv"><a id="autoClickWrinklersButton" class="superBtn superGood">Kill them all !</a><span class="superFont imAState">State :</span> <span class="superGood goodState">ON</span>/<span class="badState superBad currentState">OFF</span><div id="clickWrinklersAmount" class="simpleInfo superRight"></div></div><br><br><br><div class="title">Set building amount</div><div class="listing"><small>(Note : I know you\'ll crash your game with this but... CookieCheat must do ANYTHING. (Yes, even crash your game).)</small></div><div class="listing"><small>(Note : Don\'t be too greedy... (I know you will...))</small></div><br><div class="listing" id="setBuildingDiv"><br><p class="superFont">Which building ?<select id="selectBuildingToSet" class="imAState superFont"><option value="all">ALL !!!</option>'+
- function(){var a="",n;for(n in Game.ObjectsById)a+='<option value="'+n+'">'+Game.ObjectsById[n].name+"</option>";return a}()+'</select></p><br><p class="superFont">How many ?<input type="number" class="numberToSet imAState superFont" value="0" style="width:25%"/></p><br><p class="superFont"><a id="setBuildingButton" class="superBtn superGood" onclick="'+a.substring(a.indexOf("{")+1,a.lastIndexOf("}")).replace(/"/g,"'")+'">Set it ! OMFG HURRY UP I WANT A LOT OF THAT THINGS !!!!</a></p></div><br><br><br><div class="title">AutoClick Reindeers</div><div class="listing" id="autoReindeerClickDiv"><a id="autoReindeerClickButton" class="superBtn superGood">AutoReindeerClick</a><span class="superFont imAState">State :</span> <span class="superGood goodState">ON</span>/<span class="badState superBad currentState">OFF</span><div id="reindeerClickAmount" class="simpleInfo superRight"></div></div><br><br><br><div class="title">AutoSpawn Golden Cookies</div><div class="listing"><small>(Note : I can\'t guarantee that the cheat will spawn golden cookies as fast as you want. It depends on your computer.)</small></div><div class="listing"><small>(Note : Sometimes, "legit" golden cookies will spawn. They do not depend on my cheat.)</small></div><br><div class="listing" id="autoSpawnDiv"><a id="autoSpawnButton" class="superBtn superGood">AutoSpawn</a><span class="superFont imAState">State :</span> <span class="superGood goodState">ON</span>/<span class="badState superBad currentState">OFF</span><div id="spawnAmount" class="simpleInfo superRight"></div><br><br><input class="imAState" id="spawningSpeed" type="range" name="speed" min="100" max="600000" step="100" style="width:100%"><br><br><span id="spawningSpeedText" class="superFont imAState"></span></div><br><br><br><div class="title">AutoClick GoldenCookies</div><div class="listing" id="autoGoldenClickDiv"><a id="autoGoldenClickButton" class="superBtn superGood">AutoGoldenClick</a><span class="superFont imAState">State :</span> <span class="superGood goodState">ON</span>/<span class="badState superBad currentState">OFF</span><div id="goldenClickAmount" class="simpleInfo superRight"></div></div><br><br><br><div class="title">Spawn GoldenCookies</div><div class="listing" id="goldenSpawnDiv"><a id="goldenSpawnButton" class="superBtn superGood">Spawn a golden cookie NOW ! <span style="font-size:50%;">...please</span></a><div id="goldenSpawnedAmount" class="simpleInfo superRight"></div></div></div>'},
- tool:function(){var a=function(){confirm("Do you really want to sell ALL your buildings ?")&&_.each(Game.ObjectsById,function(a){for(;1<a.amount;){var n=a.basePrice*Math.pow(Game.priceIncrease,a.amount),n=Math.floor(0.5*n);Game.cookies+=n;a.amount--;Game.BuildingsOwned--}a.sell()})}.toString();return'<div class="subsection"><br><br><br><div class="title">Save manager</div><div class="listing"><div id="newSaveForm"><form><p class="superFont">Custom save name :<input type="text" id="enterNameSave" class="superRight superFont" style="width:50%"></input></p><br /><br /><p class="superFont">Save code :<select id="selectSaveCode" class="superRight superFont"><option value="'+
- CookieCheat.miscVars.newGame+'">New game</option><option value="current">--Current game--</option><option value="manual">--Import a save--</option></select></p><br /><br /><input type="text" id="saveCode" class="superRight superFont" disabled="1" value="'+CookieCheat.miscVars.newGame+'" style="width:100%;"></input><br /><br /><p style="text-align:center"><input type="submit" id="newSaveButton" class="submit superBtn superGood" value="Give me that save !" /></p></form></div><br /><br /><div class="superHidden" id="savesListContainer"></div></div><br><br><br><div class="title">Cookie amount to keep safely (It\'s soooo safe)</div><div class="listing" id="safeCookieDiv"><p><p><a class="superBtn" id="fixCookies" style="font-size:1em;color:#333;">Fix my cookies please... (Infinity or NaN cookies ? Push this button and let the CookieGod work !)</a></p><br><br><p><a class="superBtn superRadioBtn _pseudoRadio" id="checkBoxToKeepForLucky" style="font-size:1.2em;">Automatically keep cookies to maximize "Lucky!".</a><span class="infoToDisplay superGood simpleInfo superRight"></span></p><br><br><p><a class="superBtn superRadioBtn _pseudoRadio" id="checkBoxToKeepForFrenzy" style="font-size:1.2em;">Automatically keep cookies to maximize "Lucky!+Frenzy!".</a></p><br><br><p><a class="superBtn superRadioBtn _pseudoRadio" id="checkBoxToKeepAny" style="font-size:1.2em;">By yourself ? Game boy.</a><input type="number" class="numberToKeep imAState superFont" value="0" style="width:25%"/><span class="whatAboutYou superGood simpleInfo superRight"></span></p><p><br><input type="checkbox" id="hitMePlease"/><label for="hitMePlease" class="superBad" id="hitLabel">Don\'t let me break this limit, CookieGod !</label><span class="cookieGod superBad simpleInfo superRight">The CookieGod doesn\'t care</span></p></p></div><br><br><br><div class="title">Optimal Building order</div><div class="listing" id="optimalBuying">'+
- CookieCheat.optimalBuyingUpgradesHtml()+'</div><br><br><br><div class="title">Sell buildings</div><div class="listing"><a class="superBtn superBad" onclick="'+a.substring(a.indexOf("{")+1,a.lastIndexOf("}")).replace(/"/g,"'")+'" style="font-size:1.2em;">Sell ALL your buildings (EVERYTHING !!!)</a>'+function(){var a="";_.each(Game.ObjectsById,function(n){a+="<br><br><br>";a+='<a class="superFont superBtn superWarning" onclick="var objName = \''+n.name+"';var obj = Game.Objects[objName];var goal = Game.Objects[objName].amount - 10;goal = (goal < 0 ? goal = 0 : goal = goal);if (!confirm('Do you really want to sell ' + (Game.Objects[objName].amount - goal) + ' ' + objName + ' ?'))return;goal++;while (obj.amount > goal) {var price=obj.basePrice*Math.pow(Game.priceIncrease,obj.amount);price=Math.floor(price*0.5);Game.cookies += price;obj.amount--;Game.BuildingsOwned--;}obj.sell();\" style=\"font-size:1.2em;\">Sell 10 "+
- n.name+"</a>\t";a+='<a class="superFont superBtn superBad" onclick="var objName = \''+n.name+"';var obj = Game.Objects[objName];if (!confirm('Do you really want to sell ALL your ' + objName + ' ?'))return;while (obj.amount > 1) {var price=obj.basePrice*Math.pow(Game.priceIncrease,obj.amount);price=Math.floor(price*0.5);Game.cookies += price;obj.amount--;Game.BuildingsOwned--;}obj.sell();\" style=\"font-size:1.2em;\">Sell all your "+n.name+"</a>"});return a}()+'</div><br><br><br><div class="title">AutoBuy Buildings</div><div class="listing"><div id="newForm"><form><p class="superFont">Building : <select id="selectBuilding" class="superRight superFont"><option value="all">ALL !!!</option></select></p><br /><br /><p class="superFont">Amount to reach : <input type="number" class="superRight number superFont" min="0" max="1000" value="0"/></p><br /><br /><p style="text-align:center"><input type="submit" id="newAutoBuyBuildingsButton" class="submit superBtn superGood" value="Add it !" /></p></form></div><br /><br /><div class="superHidden" id="buildingsListContainer"></div></div><br><br><br><div class="title">AutoBuy Upgrades</div><div class="listing"><div id="newUpgradeForm"><form><p class="superFont">Upgrade : <select id="selectUpgrade" class="superRight superFont" style="width:70%;"><option value="all">ALL !!!</option></select></p><br /><br /><p class="superFont">Or enter its name here : <input type="text" id="enterNameUpgrade" class="superRight superFont" style="width:40%"></input></p><br /><br /><p style="text-align:center"><input type="submit" id="newAutoBuyUpgradesButton" class="submit superBtn superGood" value="Buy it !" /></p></form></div><br /><br /><div class="superHidden" id="upgradesListContainer"></div></div></div>'},
- mod:function(){var a=function(){var a=$("#fontSet").val();CookieCheat.changeBeautify(a)}.toString();return'<div class="subsection"><br><br><br><div class="title">Modify the number display</div><div class="listing"><p class="superFont">Which format do you want ?<select class="imAState superFont" id="fontSet" onchange="'+a.substring(a.indexOf("{")+1,a.lastIndexOf("}")).replace(/"/g,"'")+'"><option value="restore">Default</option>'+function(){var a="",n;for(n in CookieCheat.numFormats)a+='<option value="'+
- n+'" + '+(CookieCheat.currentNumFormat===n?" selected ":"")+">"+CookieCheat.lowCamelCaseToSentence(n)+"</option>";return a}()+"</select></p></div><br><br><br><div class=\"title\">About the remaining time</div><div class=\"listing\"><p class=\"superFont\">Do you want to show the remaining time in buildings/upgrades tooltips ?<br><br><input id=\"aboutTheTimeLeft\" onchange=\"$('#shouldLabel').toggleClass('superGood', CookieCheat.shouldShowTimeLeft === 'restore').toggleClass('superBad', CookieCheat.shouldShowTimeLeft !== 'restore');CookieCheat.shouldShowTimeLeft = (CookieCheat.shouldShowTimeLeft === 'restore' ? 'hello' : 'restore');CookieCheat.processDesc(CookieCheat.shouldShowTimeLeft);\" type=\"checkbox\" "+
- ("restore"===CookieCheat.shouldShowTimeLeft?"":"checked")+'/><label for="aboutTheTimeLeft" class="'+("restore"===CookieCheat.shouldShowTimeLeft?"superBad":"superGood")+'" id="shouldLabel">I want to see that information !!!!</label></p></div><br><br><br><div class="title">Golden cookie effects</div><div class="listing"><br><br><div class="superHidden" id="choicesListContainer"></div></div></div>'}},processNb:function(a){var c="",n=[];if("restore"!==CookieCheat.currentNumFormat)return _datas=CookieCheat.numFormats[CookieCheat.currentNumFormat],
- _.each(_datas,function(c){var u=0,u=Math.floor(a/c.num);a-=c.num*u;3>u.toString().length&&(u=(2===u.toString().length?"0":"00")+u);0!=u&&n.push({val:u,unit:"undefined"!==typeof c.plural&&1<u?c.plural:c.name})}),0===n.length&&n.push({val:0,unit:""}),c=""+parseInt(n[0].val,10)+(1<n.length?"."+n[1].val:"")+" "+n[0].unit},lowCamelCaseToSentence:function(a,c){var n="",f=!1;c=c||!0;_.each(a,function(a){_.isNaN(123*a)?(n=a===a.toUpperCase()?n+(" "+a):n+((f?" ":"")+a),f=!1):(n=f?n+a:n+(" "+a),f=!0)});return c?
- String.capitalize(n):n},changeBeautify:function(a){localStorage.CookieCheatNinetainedoBeautifyThem=JSON.stringify(a);null==a||"restore"===a?Beautify=CookieCheat.oldBeautify:(CookieCheat.currentNumFormat=a,Beautify=CookieCheat.processNb);Game.storeToRebuild=1},processDesc:function(a,c){c=_.isUndefined(c)?!0:_.isUndefined(CookieCheat.lastUpMenu)?c:1E3<Math.abs(CookieCheat.lastUpMenu-(new Date).getTime())?!0:!1;localStorage.CookieCheatNinetainedoShouldShowTimeLeft=JSON.stringify(a);"restore"===a?(Game.RebuildStore.toString()!==
- CookieCheat.oldGameFuncs.RebuildStore.toString()&&(Game.RebuildStore=CookieCheat.oldGameFuncs.RebuildStore,Game.RebuildUpgrades=CookieCheat.oldGameFuncs.RebuildUpgrades),_.isUndefined(CookieCheat.objSaves)?(CookieCheat.objSaves={},_.each(Game.ObjectsById,function(a){CookieCheat.objSaves[a.name]={};CookieCheat.objSaves[a.name].desc=a.desc;a.desc=CookieCheat.objSaves[a.name].desc})):_.each(Game.ObjectsById,function(a){a.desc=CookieCheat.objSaves[a.name].desc}),_.isUndefined(CookieCheat.upgSaves)?(CookieCheat.upgSaves=
- {},_.each(Game.UpgradesById,function(a){CookieCheat.upgSaves[a.name]={};CookieCheat.upgSaves[a.name].desc=a.desc;a.desc=CookieCheat.upgSaves[a.name].desc})):_.each(Game.UpgradesById,function(a){a.desc=CookieCheat.upgSaves[a.name].desc})):(Game.RebuildStore.toString()===CookieCheat.oldGameFuncs.RebuildStore.toString()&&(Game.RebuildStore=function(){CookieCheat.processDesc(CookieCheat.shouldShowTimeLeft,!1);var a="",c;for(c in Game.Objects)var u=Game.Objects[c],a=a+('<div class="product" '+Game.getTooltip('<div style="min-width:300px;"><div style="float:right;"><span class="price">'+
- Beautify(Math.round(u.price))+'</span></div><div class="name">'+u.name+"</div><small>[owned : "+u.amount+'</small>]<div class="description">'+u.desc+"</div></div>",0,0,"left")+' id="product'+u.id+'"><div class="icon" id="productIcon'+u.id+'" style="background-image:url(img/'+u.icon+'.png);"></div><div class="content"><div class="title">'+u.displayName+'</div><span class="price">'+Beautify(Math.round(u.price))+"</span>"+(0<u.amount?'<div class="title owned">'+u.amount+"</div>":"")+"</div></div>");
- l("products").innerHTML=a;for(c in Game.Objects)u=Game.Objects[c],AddEvent(l("product"+u.id),"mouseover",function(a){return function(){clearInterval(window.memoInterval);window.memoInterval=setInterval(function(){$("#timeInfo").html(0<CookieCheat.howManySecondsUntilThisAmount(Game.ObjectsById[a].price)?"<span class="+(86400<CookieCheat.howManySecondsUntilThisAmount(Game.ObjectsById[a].price)?"superBad":"superWarning")+">Available in "+CookieCheat.processMs(1E3*CookieCheat.howManySecondsUntilThisAmount(Game.ObjectsById[a].price))+
- "</span>":'<span class="superGood">Already enabled !</span>')},1E3)}}(u.id)),AddEvent(l("product"+u.id),"mouseout",function(){CookieCheat.processDesc(CookieCheat.shouldShowTimeLeft,!0);clearInterval(window.memoInterval)}),AddEvent(l("product"+u.id),"click",function(a){return function(){Game.ObjectsById[a].buy()}}(u.id));Game.storeToRebuild=0;"tool"==CookieCheat.currentTab?$("#optimalBuying").html(CookieCheat.optimalBuyingUpgradesHtml()):CookieCheat.optimalBuyingUpgradesHtml()},Game.RebuildUpgrades=
- function(){CookieCheat.processDesc(CookieCheat.shouldShowTimeLeft,!1);Game.upgradesToRebuild=0;var a=[],c;for(c in Game.Upgrades){var u=Game.Upgrades[c];u.bought||u.unlocked&&a.push(u)}a.sort(function(a,c){return a.basePrice>c.basePrice?1:a.basePrice<c.basePrice?-1:0});Game.UpgradesInStore=[];for(c in a)Game.UpgradesInStore.push(a[c]);a="";for(c in Game.UpgradesInStore)u=Game.UpgradesInStore[c],a+='<div class="crate upgrade" '+Game.getTooltip('<div style="min-width:200px;"><div style="float:right;"><span class="price">'+
- Beautify(Math.round(u.basePrice))+'</span></div><small>[Upgrade]</small><div class="name">'+u.name+'</div><div class="description">'+u.desc+"</div></div>",0,16,"bottom-right")+' onclick="Game.UpgradesById['+u.id+'].buy();" id="upgrade'+c+'" style="background-position:'+(48*-u.icon[0]+6)+"px "+(48*-u.icon[1]+6)+'px;"></div>';l("upgrades").innerHTML=a;for(c in Game.UpgradesInStore)u=Game.UpgradesInStore[c],AddEvent(l("upgrade"+c),"mouseover",function(a){return function(){clearInterval(window.memoInterval);
- window.memoInterval=setInterval(function(){$("#timeInfo").html(0<CookieCheat.howManySecondsUntilThisAmount(Game.UpgradesInStore[a].basePrice)?"<span class="+(86400<CookieCheat.howManySecondsUntilThisAmount(Game.UpgradesInStore[a].basePrice)?"superBad":"superWarning")+">Available in "+CookieCheat.processMs(1E3*CookieCheat.howManySecondsUntilThisAmount(Game.UpgradesInStore[a].basePrice))+"</span>":'<span class="superGood">Already enabled !</span>')},1E3)}}(c)),AddEvent(l("upgrade"+c),"mouseout",function(){CookieCheat.processDesc(CookieCheat.shouldShowTimeLeft,
- !0);clearInterval(window.memoInterval)});CookieCheat.optimalBuyingUpgradesHtml()}),_.isUndefined(CookieCheat.objSaves)?(CookieCheat.objSaves={},_.each(Game.ObjectsById,function(a){CookieCheat.objSaves[a.name]={};CookieCheat.objSaves[a.name].desc=a.desc;a.desc=CookieCheat.objSaves[a.name].desc+'<br><div id="timeInfo">'+(0<CookieCheat.howManySecondsUntilThisAmount(a.price)?"<span class="+(86400<CookieCheat.howManySecondsUntilThisAmount(a.price)?"superBad":"superWarning")+">Available in "+CookieCheat.processMs(1E3*
- CookieCheat.howManySecondsUntilThisAmount(a.price))+"</span>":'<span class="superGood">Already enabled !</span></div>')})):_.each(Game.ObjectsById,function(a){a.desc=CookieCheat.objSaves[a.name].desc+'<br><div id="timeInfo">'+(0<CookieCheat.howManySecondsUntilThisAmount(a.price)?"<span class="+(86400<CookieCheat.howManySecondsUntilThisAmount(a.price)?"superBad":"superWarning")+">Available in "+CookieCheat.processMs(1E3*CookieCheat.howManySecondsUntilThisAmount(a.price))+"</span>":'<span class="superGood">Already enabled !</span></div>')}),
- _.isUndefined(CookieCheat.upgSaves)?(CookieCheat.upgSaves={},_.each(Game.UpgradesById,function(a){CookieCheat.upgSaves[a.name]={};CookieCheat.upgSaves[a.name].desc=a.desc;a.desc=CookieCheat.upgSaves[a.name].desc+'<br><div id="timeInfo">'+(0<CookieCheat.howManySecondsUntilThisAmount(a.basePrice)?"<span class="+(86400<CookieCheat.howManySecondsUntilThisAmount(a.basePrice)?"superBad":"superWarning")+">Available in "+CookieCheat.processMs(1E3*CookieCheat.howManySecondsUntilThisAmount(a.basePrice))+"</span>":
- '<span class="superGood">Already enabled !</span></div>')})):_.each(Game.UpgradesById,function(a){a.desc=CookieCheat.upgSaves[a.name].desc+'<br><div id="timeInfo">'+(0<CookieCheat.howManySecondsUntilThisAmount(a.basePrice)?"<span class="+(86400<CookieCheat.howManySecondsUntilThisAmount(a.basePrice)?"superBad":"superWarning")+">Available in "+CookieCheat.processMs(1E3*CookieCheat.howManySecondsUntilThisAmount(a.basePrice))+"</span>":'<span class="superGood">Already enabled !</span></div>')}));c&&(CookieCheat.lastUpMenu=
- (new Date).getTime(),Game.RebuildStore(),Game.RebuildUpgrades())},currentNumFormat:"restore",shouldShowTimeLeft:"restore",numFormats:{international:[{name:"Y",num:Math.pow(1E3,8)},{name:"Z",num:Math.pow(1E3,7)},{name:"E",num:Math.pow(1E3,6)},{name:"P",num:Math.pow(1E3,5)},{name:"T",num:Math.pow(1E3,4)},{name:"G",num:Math.pow(1E3,3)},{name:"M",num:Math.pow(1E3,2)},{name:"k",num:1E3},{name:"",num:1}],tenPowerBased:[{name:"x10^42",num:Math.pow(1E3,14)},{name:"x10^39",num:Math.pow(1E3,13)},{name:"x10^36",
- num:Math.pow(1E3,12)},{name:"x10^33",num:Math.pow(1E3,11)},{name:"x10^30",num:Math.pow(1E3,10)},{name:"x10^27",num:Math.pow(1E3,9)},{name:"x10^24",num:Math.pow(1E3,8)},{name:"x10^21",num:Math.pow(1E3,7)},{name:"x10^18",num:Math.pow(1E3,6)},{name:"x10^15",num:Math.pow(1E3,5)},{name:"x10^12",num:Math.pow(1E3,4)},{name:"x10^9",num:Math.pow(1E3,3)},{name:"x10^6",num:Math.pow(1E3,2)},{name:"x10^3",num:1E3},{name:"",num:1}],fullNamesShortScale:[{name:"Tredecillion",plural:"Tredecillions",num:Math.pow(1E3,
- 14)},{name:"Duodecillion",plural:"Duodecillions",num:Math.pow(1E3,13)},{name:"Undecillion",plural:"Undecillions",num:Math.pow(1E3,12)},{name:"Decillion",plural:"Decillions",num:Math.pow(1E3,11)},{name:"Nonillion",plural:"Nonillions",num:Math.pow(1E3,10)},{name:"Octillion",plural:"Octillions",num:Math.pow(1E3,9)},{name:"Septillion",plural:"Septillions",num:Math.pow(1E3,8)},{name:"Sextillion",plural:"Sextillions",num:Math.pow(1E3,7)},{name:"Quintillion",plural:"Quintillions",num:Math.pow(1E3,6)},{name:"Quadrillion",
- plural:"Quadrillions",num:Math.pow(1E3,5)},{name:"Trillion",plural:"Trillions",num:Math.pow(1E3,4)},{name:"Billion",plural:"Billions",num:Math.pow(1E3,3)},{name:"Million",plural:"Millions",num:Math.pow(1E3,2)},{name:"Thousand",plural:"Thousands",num:1E3},{name:"",num:1}],fullNamesShortScaleShortened:[{name:"Tred",num:Math.pow(1E3,14)},{name:"Dud",num:Math.pow(1E3,13)},{name:"Und",num:Math.pow(1E3,12)},{name:"De",num:Math.pow(1E3,11)},{name:"No",num:Math.pow(1E3,10)},{name:"Oc",num:Math.pow(1E3,9)},
- {name:"Sp",num:Math.pow(1E3,8)},{name:"Sx",num:Math.pow(1E3,7)},{name:"Qi",num:Math.pow(1E3,6)},{name:"Qa",num:Math.pow(1E3,5)},{name:"Tr",num:Math.pow(1E3,4)},{name:"Bi",num:Math.pow(1E3,3)},{name:"Mi",num:Math.pow(1E3,2)},{name:"Th",num:1E3},{name:"",num:1}],fullNamesLongScale:[{name:"Octillion",plural:"Octillions",num:Math.pow(1E3,16)},{name:"Septilliard",plural:"Septilliards",num:Math.pow(1E3,15)},{name:"Septillion",plural:"Septillions",num:Math.pow(1E3,14)},{name:"Sextilliard",plural:"Sextilliards",
- num:Math.pow(1E3,13)},{name:"Sextillion",plural:"Sextillions",num:Math.pow(1E3,12)},{name:"Quintilliard",plural:"Quintilliards",num:Math.pow(1E3,11)},{name:"Quintillion",plural:"Quintillions",num:Math.pow(1E3,10)},{name:"Quadrilliard",plural:"Quadrilliards",num:Math.pow(1E3,9)},{name:"Quadrillion",plural:"Quadrillions",num:Math.pow(1E3,8)},{name:"Trilliard",plural:"Trilliards",num:Math.pow(1E3,7)},{name:"Trillion",plural:"Trillions",num:Math.pow(1E3,6)},{name:"Billiard",plural:"Billiards",num:Math.pow(1E3,
- 5)},{name:"Billion",plural:"Billions",num:Math.pow(1E3,4)},{name:"Milliard",plural:"Milliards",num:Math.pow(1E3,3)},{name:"Million",plural:"Millions",num:Math.pow(1E3,2)},{name:"Thousand",plural:"Thousands",num:1E3},{name:"",num:1}],fullNamesLongScaleShortened:[{name:"Oco",num:Math.pow(1E3,16)},{name:"Spd",num:Math.pow(1E3,15)},{name:"Spo",num:Math.pow(1E3,14)},{name:"Sxd",num:Math.pow(1E3,13)},{name:"Sxo",num:Math.pow(1E3,12)},{name:"Qid",num:Math.pow(1E3,11)},{name:"Qio",num:Math.pow(1E3,10)},{name:"Qad",
- num:Math.pow(1E3,9)},{name:"Qao",num:Math.pow(1E3,8)},{name:"Trd",num:Math.pow(1E3,7)},{name:"Tio",num:Math.pow(1E3,6)},{name:"Brd",num:Math.pow(1E3,5)},{name:"Bio",num:Math.pow(1E3,4)},{name:"Mrd",num:Math.pow(1E3,3)},{name:"Mio",num:Math.pow(1E3,2)},{name:"Ths",num:1E3},{name:"",num:1}]},launch:function(){CookieCheat.addCSS();CookieCheat.initModels();CookieCheat.initCollections();CookieCheat.initViews();CookieCheat.addButton();CookieCheat.loadChoices();CookieCheat.updateMouseCps();CookieCheat.computeChoose();
- CookieCheat.updateGoldenCookieclick();CookieCheat.initAllBackbone();CookieCheat.protectToKeepSafe();_.isUndefined(localStorage.CookieCheatNinetainedoBeautifyThem)||(CookieCheat.currentNumFormat=JSON.parse(localStorage.CookieCheatNinetainedoBeautifyThem),CookieCheat.changeBeautify(CookieCheat.currentNumFormat));_.isUndefined(localStorage.CookieCheatNinetainedoShouldShowTimeLeft)||(CookieCheat.shouldShowTimeLeft=JSON.parse(localStorage.CookieCheatNinetainedoShouldShowTimeLeft));CookieCheat.miscVars.upgradesGenericsFunctions.addCpsForObjectUpgrades(CookieCheat.miscVars.upgradesGenericsFunctions.modifyObjectCps);
- CookieCheat.miscVars.upgradesGenericsFunctions.addCpsForPercentUpgrades(CookieCheat.miscVars.upgradesGenericsFunctions.modifyPercentCps);CookieCheat.miscVars.upgradesGenericsFunctions.achievsForAllObjects();Game.RebuildStore=CookieCheat.oldGameFuncs.RebuildStore;Game.RebuildUpgrades=CookieCheat.oldGameFuncs.RebuildUpgrades;CookieCheat.processDesc(CookieCheat.shouldShowTimeLeft)}};(function(){null==String.capitalize&&(String.capitalize=function(a){var c;c=""+a.charAt(0).toUpperCase();return c+=a.substring(1).toLowerCase()});
- (function(a,c){function n(b){var k=b.length,a=d.type(b);return d.isWindow(b)?!1:1===b.nodeType&&k?!0:"array"===a||"function"!==a&&(0===k||"number"==typeof k&&0<k&&k-1 in b)}function f(b){var k=hb[b]={};return d.each(b.match(ba)||[],function(b,a){k[a]=!0}),k}function u(b,k,a,s){if(d.acceptData(b)){var e,E,M=d.expando,g=b.nodeType,h=g?d.cache:b,f=g?b[M]:b[M]&&M;if(f&&h[f]&&(s||h[f].data)||a!==c||"string"!=typeof k)return f||(f=g?b[M]=ya.pop()||d.guid++:M),h[f]||(h[f]=g?{}:{toJSON:d.noop}),("object"==
- typeof k||"function"==typeof k)&&(s?h[f]=d.extend(h[f],k):h[f].data=d.extend(h[f].data,k)),E=h[f],s||(E.data||(E.data={}),E=E.data),a!==c&&(E[d.camelCase(k)]=a),"string"==typeof k?(e=E[k],null==e&&(e=E[d.camelCase(k)])):e=E,e}}function y(b,k,a){if(d.acceptData(b)){var s,e,c=b.nodeType,h=c?d.cache:b,g=c?b[d.expando]:d.expando;if(h[g]){if(k&&(s=a?h[g]:h[g].data)){d.isArray(k)?k=k.concat(d.map(k,d.camelCase)):k in s?k=[k]:(k=d.camelCase(k),k=k in s?[k]:k.split(" "));for(e=k.length;e--;)delete s[k[e]];
- if(a?!r(s):!d.isEmptyObject(s))return}(a||(delete h[g].data,r(h[g])))&&(c?d.cleanData([b],!0):d.support.deleteExpando||h!=h.window?delete h[g]:h[g]=null)}}}function w(b,k,a){if(a===c&&1===b.nodeType){var s="data-"+k.replace(Kb,"-$1").toLowerCase();if(a=b.getAttribute(s),"string"==typeof a){try{a="true"===a?!0:"false"===a?!1:"null"===a?null:+a+""===a?+a:Lb.test(a)?d.parseJSON(a):a}catch(e){}d.data(b,k,a)}else a=c}return a}function r(b){for(var k in b)if(("data"!==k||!d.isEmptyObject(b[k]))&&"toJSON"!==
- k)return!1;return!0}function z(){return!0}function G(){return!1}function I(){try{return B.activeElement}catch(b){}}function S(b,k){do b=b[k];while(b&&1!==b.nodeType);return b}function W(b,k,a){if(d.isFunction(k))return d.grep(b,function(b,d){return!!k.call(b,d,b)!==a});if(k.nodeType)return d.grep(b,function(b){return b===k!==a});if("string"==typeof k){if(Mb.test(k))return d.filter(k,b,a);k=d.filter(k,b)}return d.grep(b,function(b){return 0<=d.inArray(b,k)!==a})}function ea(b){var k=ib.split("|");
- b=b.createDocumentFragment();if(b.createElement)for(;k.length;)b.createElement(k.pop());return b}function Z(b,k){return d.nodeName(b,"table")&&d.nodeName(1===k.nodeType?k:k.firstChild,"tr")?b.getElementsByTagName("tbody")[0]||b.appendChild(b.ownerDocument.createElement("tbody")):b}function ca(b){return b.type=(null!==d.find.attr(b,"type"))+"/"+b.type,b}function qa(b){var k=Nb.exec(b.type);return k?b.type=k[1]:b.removeAttribute("type"),b}function U(b,k){for(var a,s=0;null!=(a=b[s]);s++)d._data(a,"globalEval",
- !k||d._data(k[s],"globalEval"))}function ra(b,k){if(1===k.nodeType&&d.hasData(b)){var a,s,e;s=d._data(b);var c=d._data(k,s),h=s.events;if(h)for(a in delete c.handle,c.events={},h){s=0;for(e=h[a].length;e>s;s++)d.event.add(k,a,h[a][s])}c.data&&(c.data=d.extend({},c.data))}}function F(b,k){var a,s,e=0,E=typeof b.getElementsByTagName!==H?b.getElementsByTagName(k||"*"):typeof b.querySelectorAll!==H?b.querySelectorAll(k||"*"):c;if(!E){E=[];for(a=b.childNodes||b;null!=(s=a[e]);e++)!k||d.nodeName(s,k)?E.push(s):
- d.merge(E,F(s,k))}return k===c||k&&d.nodeName(b,k)?d.merge([b],E):E}function ma(b){Ua.test(b.type)&&(b.defaultChecked=b.checked)}function q(b,k){if(k in b)return k;for(var a=k.charAt(0).toUpperCase()+k.slice(1),d=k,e=jb.length;e--;)if(k=jb[e]+a,k in b)return k;return d}function J(b,k){return b=k||b,"none"===d.css(b,"display")||!d.contains(b.ownerDocument,b)}function fa(b,k){for(var a,s,e,c=[],h=0,g=b.length;g>h;h++)s=b[h],s.style&&(c[h]=d._data(s,"olddisplay"),a=s.style.display,k?(c[h]||"none"!==
- a||(s.style.display=""),""===s.style.display&&J(s)&&(c[h]=d._data(s,"olddisplay",na(s.nodeName)))):c[h]||(e=J(s),(a&&"none"!==a||!e)&&d._data(s,"olddisplay",e?a:d.css(s,"display"))));for(h=0;g>h;h++)s=b[h],s.style&&(k&&"none"!==s.style.display&&""!==s.style.display||(s.style.display=k?c[h]||"":"none"));return b}function T(b,k,a){return(b=Ob.exec(k))?Math.max(0,b[1]-(a||0))+(b[2]||"px"):k}function L(b,k,a,s,e){k=a===(s?"border":"content")?4:"width"===k?1:0;for(var c=0;4>k;k+=2)"margin"===a&&(c+=d.css(b,
- a+sa[k],!0,e)),s?("content"===a&&(c-=d.css(b,"padding"+sa[k],!0,e)),"margin"!==a&&(c-=d.css(b,"border"+sa[k]+"Width",!0,e))):(c+=d.css(b,"padding"+sa[k],!0,e),"padding"!==a&&(c+=d.css(b,"border"+sa[k]+"Width",!0,e)));return c}function ga(b,k,a){var s=!0,e="width"===k?b.offsetWidth:b.offsetHeight,c=ta(b),h=d.support.boxSizing&&"border-box"===d.css(b,"boxSizing",!1,c);if(0>=e||null==e){if(e=ua(b,k,c),(0>e||null==e)&&(e=b.style[k]),Ma.test(e))return e;s=h&&(d.support.boxSizingReliable||e===b.style[k]);
- e=parseFloat(e)||0}return e+L(b,k,a||(h?"border":"content"),s,c)+"px"}function na(b){var k=B,a=kb[b];return a||(a=V(b,k),"none"!==a&&a||(Ia=(Ia||d("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(k.documentElement),k=(Ia[0].contentWindow||Ia[0].contentDocument).document,k.write("<!doctype html><html><body>"),k.close(),a=V(b,k),Ia.detach()),kb[b]=a),a}function V(b,k){var a=d(k.createElement(b)).appendTo(k.body),s=d.css(a[0],"display");return a.remove(),
- s}function P(b,k,a,s){var e;if(d.isArray(k))d.each(k,function(k,d){a||Pb.test(b)?s(b,d):P(b+"["+("object"==typeof d?k:"")+"]",d,a,s)});else if(a||"object"!==d.type(k))s(b,k);else for(e in k)P(b+"["+e+"]",k[e],a,s)}function da(b){return function(k,a){"string"!=typeof k&&(a=k,k="*");var s,e=0,c=k.toLowerCase().match(ba)||[];if(d.isFunction(a))for(;s=c[e++];)"+"===s[0]?(s=s.slice(1)||"*",(b[s]=b[s]||[]).unshift(a)):(b[s]=b[s]||[]).push(a)}}function ha(b,k,a,s){function e(f){var p;return h[f]=!0,d.each(b[f]||
- [],function(b,d){var f=d(k,a,s);return"string"!=typeof f||g||h[f]?g?!(p=f):c:(k.dataTypes.unshift(f),e(f),!1)}),p}var h={},g=b===Va;return e(k.dataTypes[0])||!h["*"]&&e("*")}function g(b,k){var a,s,e=d.ajaxSettings.flatOptions||{};for(s in k)k[s]!==c&&((e[s]?b:a||(a={}))[s]=k[s]);return a&&d.extend(!0,b,a),b}function p(){try{return new a.XMLHttpRequest}catch(b){}}function x(){return setTimeout(function(){za=c}),za=d.now()}function e(b,k,a){for(var d,e=(Ja[k]||[]).concat(Ja["*"]),c=0,h=e.length;h>
- c;c++)if(d=e[c].call(a,k,b))return d}function h(b,k,a){var s,c=0,h=Na.length,g=d.Deferred().always(function(){delete f.elem}),f=function(){if(s)return!1;for(var k=za||x(),k=Math.max(0,p.startTime+p.duration-k),a=1-(k/p.duration||0),d=0,A=p.tweens.length;A>d;d++)p.tweens[d].run(a);return g.notifyWith(b,[p,a,k]),1>a&&A?k:(g.resolveWith(b,[p]),!1)},p=g.promise({elem:b,props:d.extend({},k),opts:d.extend(!0,{specialEasing:{}},a),originalProperties:k,originalOptions:a,startTime:za||x(),duration:a.duration,
- tweens:[],createTween:function(k,a){var A=d.Tween(b,p.opts,k,a,p.opts.specialEasing[k]||p.opts.easing);return p.tweens.push(A),A},stop:function(k){var a=0,d=k?p.tweens.length:0;if(s)return this;for(s=!0;d>a;a++)p.tweens[a].run(1);return k?g.resolveWith(b,[p,k]):g.rejectWith(b,[p,k]),this}});a=p.props;for(t(a,p.opts.specialEasing);h>c;c++)if(k=Na[c].call(p,b,a,p.opts))return k;return d.map(a,e,p),d.isFunction(p.opts.start)&&p.opts.start.call(b,p),d.fx.timer(d.extend(f,{elem:b,anim:p,queue:p.opts.queue})),
- p.progress(p.opts.progress).done(p.opts.done,p.opts.complete).fail(p.opts.fail).always(p.opts.always)}function t(b,k){var a,s,e,c,h;for(a in b)if(s=d.camelCase(a),e=k[s],c=b[a],d.isArray(c)&&(e=c[1],c=b[a]=c[0]),a!==s&&(b[s]=c,delete b[a]),h=d.cssHooks[s],h&&"expand"in h)for(a in c=h.expand(c),delete b[s],c)a in b||(b[a]=c[a],k[a]=e);else k[s]=e}function v(b,k,a,d,e){return new v.prototype.init(b,k,a,d,e)}function R(b,k){var a,d={height:b},e=0;for(k=k?1:0;4>e;e+=2-k)a=sa[e],d["margin"+a]=d["padding"+
- a]=b;return k&&(d.opacity=d.width=b),d}function ia(b){return d.isWindow(b)?b:9===b.nodeType?b.defaultView||b.parentWindow:!1}var N,O,H=typeof c,Oa=a.location,B=a.document,mb=B.documentElement,Qb=a.jQuery,Rb=a.$,Pa={},ya=[],nb=ya.concat,Wa=ya.push,ja=ya.slice,ob=ya.indexOf,Sb=Pa.toString,Da=Pa.hasOwnProperty,Xa="1.10.2".trim,d=function(b,k){return new d.fn.init(b,k,O)},Qa=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ba=/\S+/g,Tb=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,Ub=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
- pb=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Vb=/^[\],:{}\s]*$/,Wb=/(?:^|:|,)(?:\s*\[)+/g,Xb=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,Yb=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,Zb=/^-ms-/,$b=/-([\da-z])/gi,ac=function(b,k){return k.toUpperCase()},ka=function(b){(B.addEventListener||"load"===b.type||"complete"===B.readyState)&&(qb(),d.ready())},qb=function(){B.addEventListener?(B.removeEventListener("DOMContentLoaded",ka,!1),a.removeEventListener("load",ka,!1)):(B.detachEvent("onreadystatechange",
- ka),a.detachEvent("onload",ka))};d.fn=d.prototype={jquery:"1.10.2",constructor:d,init:function(b,k,a){var e,C;if(!b)return this;if("string"==typeof b){if(e="<"===b.charAt(0)&&">"===b.charAt(b.length-1)&&3<=b.length?[null,b,null]:Ub.exec(b),!e||!e[1]&&k)return!k||k.jquery?(k||a).find(b):this.constructor(k).find(b);if(e[1]){if(k=k instanceof d?k[0]:k,d.merge(this,d.parseHTML(e[1],k&&k.nodeType?k.ownerDocument||k:B,!0)),pb.test(e[1])&&d.isPlainObject(k))for(e in k)d.isFunction(this[e])?this[e](k[e]):
- this.attr(e,k[e]);return this}if(C=B.getElementById(e[2]),C&&C.parentNode){if(C.id!==e[2])return a.find(b);this.length=1;this[0]=C}return this.context=B,this.selector=b,this}return b.nodeType?(this.context=this[0]=b,this.length=1,this):d.isFunction(b)?a.ready(b):(b.selector!==c&&(this.selector=b.selector,this.context=b.context),d.makeArray(b,this))},selector:"",length:0,toArray:function(){return ja.call(this)},get:function(b){return null==b?this.toArray():0>b?this[this.length+b]:this[b]},pushStack:function(b){b=
- d.merge(this.constructor(),b);return b.prevObject=this,b.context=this.context,b},each:function(b,k){return d.each(this,b,k)},ready:function(b){return d.ready.promise().done(b),this},slice:function(){return this.pushStack(ja.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(b){var k=this.length;b=+b+(0>b?k:0);return this.pushStack(0<=b&&k>b?[this[b]]:[])},map:function(b){return this.pushStack(d.map(this,function(k,a){return b.call(k,a,k)}))},
- end:function(){return this.prevObject||this.constructor(null)},push:Wa,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var b,k,a,e,C,h,g=arguments[0]||{},f=1,p=arguments.length,t=!1;"boolean"==typeof g&&(t=g,g=arguments[1]||{},f=2);"object"==typeof g||d.isFunction(g)||(g={});for(p===f&&(g=this,--f);p>f;f++)if(null!=(C=arguments[f]))for(e in C)b=g[e],a=C[e],g!==a&&(t&&a&&(d.isPlainObject(a)||(k=d.isArray(a)))?(k?(k=!1,h=b&&d.isArray(b)?b:[]):h=b&&d.isPlainObject(b)?
- b:{},g[e]=d.extend(t,h,a)):a!==c&&(g[e]=a));return g};d.extend({expando:"jQuery"+("1.10.2"+Math.random()).replace(/\D/g,""),noConflict:function(b){return a.$===d&&(a.$=Rb),b&&a.jQuery===d&&(a.jQuery=Qb),d},isReady:!1,readyWait:1,holdReady:function(b){b?d.readyWait++:d.ready(!0)},ready:function(b){if(!0===b?!--d.readyWait:!d.isReady){if(!B.body)return setTimeout(d.ready);d.isReady=!0;!0!==b&&0<--d.readyWait||(N.resolveWith(B,[d]),d.fn.trigger&&d(B).trigger("ready").off("ready"))}},isFunction:function(b){return"function"===
- d.type(b)},isArray:Array.isArray||function(b){return"array"===d.type(b)},isWindow:function(b){return null!=b&&b==b.window},isNumeric:function(b){return!isNaN(parseFloat(b))&&isFinite(b)},type:function(b){return null==b?b+"":"object"==typeof b||"function"==typeof b?Pa[Sb.call(b)]||"object":typeof b},isPlainObject:function(b){var k;if(!b||"object"!==d.type(b)||b.nodeType||d.isWindow(b))return!1;try{if(b.constructor&&!Da.call(b,"constructor")&&!Da.call(b.constructor.prototype,"isPrototypeOf"))return!1}catch(a){return!1}if(d.support.ownLast)for(k in b)return Da.call(b,
- k);for(k in b);return k===c||Da.call(b,k)},isEmptyObject:function(b){for(var k in b)return!1;return!0},error:function(b){throw Error(b);},parseHTML:function(b,k,a){if(!b||"string"!=typeof b)return null;"boolean"==typeof k&&(a=k,k=!1);k=k||B;var e=pb.exec(b);a=!a&&[];return e?[k.createElement(e[1])]:(e=d.buildFragment([b],k,a),a&&d(a).remove(),d.merge([],e.childNodes))},parseJSON:function(b){return a.JSON&&a.JSON.parse?a.JSON.parse(b):null===b?b:"string"==typeof b&&(b=d.trim(b),b&&Vb.test(b.replace(Xb,
- "@").replace(Yb,"]").replace(Wb,"")))?Function("return "+b)():(d.error("Invalid JSON: "+b),c)},parseXML:function(b){var k,A;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(A=new DOMParser,k=A.parseFromString(b,"text/xml")):(k=new ActiveXObject("Microsoft.XMLDOM"),k.async="false",k.loadXML(b))}catch(e){k=c}return k&&k.documentElement&&!k.getElementsByTagName("parsererror").length||d.error("Invalid XML: "+b),k},noop:function(){},globalEval:function(b){b&&d.trim(b)&&(a.execScript||function(b){a.eval.call(a,
- b)})(b)},camelCase:function(b){return b.replace(Zb,"ms-").replace($b,ac)},nodeName:function(b,a){return b.nodeName&&b.nodeName.toLowerCase()===a.toLowerCase()},each:function(b,a,d){var e,c=0,h=b.length,g=n(b);if(d)if(g)for(;h>c&&!(e=a.apply(b[c],d),!1===e);c++);else for(c in b){if(e=a.apply(b[c],d),!1===e)break}else if(g)for(;h>c&&!(e=a.call(b[c],c,b[c]),!1===e);c++);else for(c in b)if(e=a.call(b[c],c,b[c]),!1===e)break;return b},trim:Xa&&!Xa.call("\ufeff\u00a0")?function(b){return null==b?"":Xa.call(b)}:
- function(b){return null==b?"":(b+"").replace(Tb,"")},makeArray:function(b,a){var A=a||[];return null!=b&&(n(Object(b))?d.merge(A,"string"==typeof b?[b]:b):Wa.call(A,b)),A},inArray:function(b,a,d){var e;if(a){if(ob)return ob.call(a,b,d);e=a.length;for(d=d?0>d?Math.max(0,e+d):d:0;e>d;d++)if(d in a&&a[d]===b)return d}return-1},merge:function(b,a){var d=a.length,e=b.length,h=0;if("number"==typeof d)for(;d>h;h++)b[e++]=a[h];else for(;a[h]!==c;)b[e++]=a[h++];return b.length=e,b},grep:function(b,a,d){var e,
- c=[],h=0,g=b.length;for(d=!!d;g>h;h++)e=!!a(b[h],h),d!==e&&c.push(b[h]);return c},map:function(b,a,d){var e,c=0,h=b.length,g=[];if(n(b))for(;h>c;c++)e=a(b[c],c,d),null!=e&&(g[g.length]=e);else for(c in b)e=a(b[c],c,d),null!=e&&(g[g.length]=e);return nb.apply([],g)},guid:1,proxy:function(b,a){var e,s,h;return"string"==typeof a&&(h=b[a],a=b,b=h),d.isFunction(b)?(e=ja.call(arguments,2),s=function(){return b.apply(a||this,e.concat(ja.call(arguments)))},s.guid=b.guid=b.guid||d.guid++,s):c},access:function(b,
- a,e,s,h,g,f){var p=0,t=b.length,n=null==e;if("object"===d.type(e))for(p in h=!0,e)d.access(b,a,p,e[p],!0,g,f);else if(s!==c&&(h=!0,d.isFunction(s)||(f=!0),n&&(f?(a.call(b,s),a=null):(n=a,a=function(b,a,k){return n.call(d(b),k)})),a))for(;t>p;p++)a(b[p],e,f?s:s.call(b[p],p,a(b[p],e)));return h?b:n?a.call(b):t?a(b[0],e):g},now:function(){return(new Date).getTime()},swap:function(b,a,d,e){var c,h={};for(c in a)h[c]=b.style[c],b.style[c]=a[c];d=d.apply(b,e||[]);for(c in a)b.style[c]=h[c];return d}});
- d.ready.promise=function(b){if(!N)if(N=d.Deferred(),"complete"===B.readyState)setTimeout(d.ready);else if(B.addEventListener)B.addEventListener("DOMContentLoaded",ka,!1),a.addEventListener("load",ka,!1);else{B.attachEvent("onreadystatechange",ka);a.attachEvent("onload",ka);var k=!1;try{k=null==a.frameElement&&B.documentElement}catch(e){}k&&k.doScroll&&function C(){if(!d.isReady){try{k.doScroll("left")}catch(b){return setTimeout(C,50)}qb();d.ready()}}()}return N.promise(b)};d.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),
- function(b,a){Pa["[object "+a+"]"]=a.toLowerCase()});O=d(B);(function(b,a){function e(b,a,k,d){var c,A,s,h,g;if((a?a.ownerDocument||a:va)!==X&&Ea(a),a=a||X,k=k||[],!b||"string"!=typeof b)return k;if(1!==(h=a.nodeType)&&9!==h)return[];if(I&&!d){if(c=wa.exec(b))if(s=c[1])if(9===h){if(A=a.getElementById(s),!A||!A.parentNode)return k;if(A.id===s)return k.push(A),k}else{if(a.ownerDocument&&(A=a.ownerDocument.getElementById(s))&&Ka(a,A)&&A.id===s)return k.push(A),k}else{if(c[2])return T.apply(k,a.getElementsByTagName(b)),
- k;if((s=c[3])&&D.getElementsByClassName&&a.getElementsByClassName)return T.apply(k,a.getElementsByClassName(s)),k}if(D.qsa&&(!aa||!aa.test(b))){if(A=c=Q,s=a,g=9===h&&b,1===h&&"object"!==a.nodeName.toLowerCase()){h=v(b);(c=a.getAttribute("id"))?A=c.replace(za,"\\$&"):a.setAttribute("id",A);A="[id='"+A+"'] ";for(s=h.length;s--;)h[s]=A+u(h[s]);s=fa.test(b)&&a.parentNode||a;g=h.join(",")}if(g)try{return T.apply(k,s.querySelectorAll(g)),k}catch(C){}finally{c||a.removeAttribute("id")}}}var f;a:{b=b.replace(ca,
- "$1");var E,p;A=v(b);if(!d&&1===A.length){if(f=A[0]=A[0].slice(0),2<f.length&&"ID"===(E=f[0]).type&&D.getById&&9===a.nodeType&&I&&K.relative[f[1].type]){if(a=(K.find.ID(E.matches[0].replace(Aa,Ba),a)||[])[0],!a){f=k;break a}b=b.slice(f.shift().value.length)}for(h=da.needsContext.test(b)?0:f.length;h--&&!(E=f[h],K.relative[c=E.type]);)if((p=K.find[c])&&(d=p(E.matches[0].replace(Aa,Ba),fa.test(f[0].type)&&a.parentNode||a))){if(f.splice(h,1),b=d.length&&u(f),!b){f=(T.apply(k,d),k);break a}break}}f=(H(b,
- A)(d,a,!I,k,fa.test(b)),k)}return f}function c(){function b(k,d){return a.push(k+=" ")>K.cacheLength&&delete b[a.shift()],b[k]=d}var a=[];return b}function h(b){return b[Q]=!0,b}function g(b){var a=X.createElement("div");try{return!!b(a)}catch(k){return!1}finally{a.parentNode&&a.parentNode.removeChild(a)}}function f(b,a){for(var k=b.split("|"),d=b.length;d--;)K.attrHandle[k[d]]=a}function p(b,a){var k=a&&b,d=k&&1===b.nodeType&&1===a.nodeType&&(~a.sourceIndex||ba)-(~b.sourceIndex||ba);if(d)return d;
- if(k)for(;k=k.nextSibling;)if(k===a)return-1;return b?1:-1}function t(b){return function(a){return"input"===a.nodeName.toLowerCase()&&a.type===b}}function n(b){return function(a){var k=a.nodeName.toLowerCase();return("input"===k||"button"===k)&&a.type===b}}function q(b){return h(function(a){return a=+a,h(function(k,d){for(var e,c=b([],k.length,a),A=c.length;A--;)k[e=c[A]]&&(k[e]=!(d[e]=k[e]))})})}function x(){}function v(b,a){var k,d,c,s,h,g,C;if(h=W[b+" "])return a?0:h.slice(0);h=b;g=[];for(C=K.preFilter;h;){(!k||
- (d=qa.exec(h)))&&(d&&(h=h.slice(d[0].length)||h),g.push(c=[]));k=!1;(d=ra.exec(h))&&(k=d.shift(),c.push({value:k,type:d[0].replace(ca," ")}),h=h.slice(k.length));for(s in K.filter)!(d=da[s].exec(h))||C[s]&&!(d=C[s](d))||(k=d.shift(),c.push({value:k,type:s,matches:d}),h=h.slice(k.length));if(!k)break}return a?h.length:h?e.error(b):W(b,g).slice(0)}function u(b){for(var a=0,k=b.length,d="";k>a;a++)d+=b[a].value;return d}function r(b,a,k){var d=a.dir,e=k&&"parentNode"===d,c=cc++;return a.first?function(a,
- k,c){for(;a=a[d];)if(1===a.nodeType||e)return b(a,k,c)}:function(a,k,A){var s,h,g,C=oa+" "+c;if(A)for(;a=a[d];){if((1===a.nodeType||e)&&b(a,k,A))return!0}else for(;a=a[d];)if(1===a.nodeType||e)if(g=a[Q]||(a[Q]={}),(h=g[d])&&h[0]===C){if(!0===(s=h[1])||s===B)return!0===s}else if(h=g[d]=[C],h[1]=b(a,k,A)||B,!0===h[1])return!0}}function R(b){return 1<b.length?function(a,k,d){for(var e=b.length;e--;)if(!b[e](a,k,d))return!1;return!0}:b[0]}function y(b,a,k,d,e){for(var c,A=[],s=0,h=b.length,g=null!=a;h>
- s;s++)(c=b[s])&&(!k||k(c,d,e))&&(A.push(c),g&&a.push(s));return A}function ia(b,a,k,d,c,s){return d&&!d[Q]&&(d=ia(d)),c&&!c[Q]&&(c=ia(c,s)),h(function(s,h,g,C){var f,E,p=[],M=[],t=h.length,n;if(!(n=s)){n=a||"*";for(var q=g.nodeType?[g]:g,Ca=[],x=0,v=q.length;v>x;x++)e(n,q[x],Ca);n=Ca}n=!b||!s&&a?n:y(n,p,b,g,C);q=k?c||(s?b:t||d)?[]:h:n;if(k&&k(n,q,g,C),d){f=y(q,M);d(f,[],g,C);for(g=f.length;g--;)(E=f[g])&&(q[M[g]]=!(n[M[g]]=E))}if(s){if(c||b){if(c){f=[];for(g=q.length;g--;)(E=q[g])&&f.push(n[g]=E);
- c(null,q=[],f,C)}for(g=q.length;g--;)(E=q[g])&&-1<(f=c?V.call(s,E):p[g])&&(s[f]=!(h[f]=E))}}else q=y(q===h?q.splice(t,q.length):q),c?c(null,h,q,C):T.apply(h,q)})}function w(b){var a,k,d,e=b.length,c=K.relative[b[0].type];k=c||K.relative[" "];for(var A=c?1:0,s=r(function(b){return b===a},k,!0),h=r(function(b){return-1<V.call(a,b)},k,!0),g=[function(b,k,d){return!c&&(d||k!==G)||((a=k).nodeType?s(b,k,d):h(b,k,d))}];e>A;A++)if(k=K.relative[b[A].type])g=[r(R(g),k)];else{if(k=K.filter[b[A].type].apply(null,
- b[A].matches),k[Q]){for(d=++A;e>d&&!K.relative[b[d].type];d++);return ia(1<A&&R(g),1<A&&u(b.slice(0,A-1).concat({value:" "===b[A-2].type?"*":""})).replace(ca,"$1"),k,d>A&&w(b.slice(A,d)),e>d&&w(b=b.slice(d)),e>d&&u(b))}g.push(k)}return R(g)}function N(b,a){var k=0,d=0<a.length,c=0<b.length,s=function(s,h,g,C,f){var E,p,M=[],n=0,t="0",q=s&&[],Ca=null!=f,x=G,v=s||c&&K.find.TAG("*",f&&h.parentNode||h),lb=oa+=null==x?1:Math.random()||0.1;for(Ca&&(G=h!==X&&h,B=k);null!=(f=v[t]);t++){if(c&&f){for(E=0;p=
- b[E++];)if(p(f,h,g)){C.push(f);break}Ca&&(oa=lb,B=++k)}d&&((f=!p&&f)&&n--,s&&q.push(f))}if(n+=t,d&&t!==n){for(E=0;p=a[E++];)p(q,M,h,g);if(s){if(0<n)for(;t--;)q[t]||M[t]||(M[t]=ma.call(C));M=y(M)}T.apply(C,M);Ca&&!s&&0<M.length&&1<n+a.length&&e.uniqueSort(C)}return Ca&&(oa=lb,G=x),q};return d?h(s):s}var z,D,B,K,O,J,H,G,F,Ea,X,pa,I,aa,L,Ra,Ka,Q="sizzle"+-new Date,va=b.document,oa=0,cc=0,Oa=c(),W=c(),Y=c(),P=!1,Z=function(b,a){return b===a?(P=!0,0):0},U=typeof a,ba=-2147483648,ha={}.hasOwnProperty,S=
- [],ma=S.pop,na=S.push,T=S.push,ga=S.slice,V=S.indexOf||function(b){for(var a=0,k=this.length;k>a;a++)if(this[a]===b)return a;return-1},ka="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w#"),la="\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)[\\x20\\t\\r\\n\\f]*(?:([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+ka+")|)|)[\\x20\\t\\r\\n\\f]*\\]",ea=":((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+la.replace(3,8)+")*)|.*)\\)|)",
- ca=/^[\x20\t\r\n\f]+|((?:^|[^\\])(?:\\.)*)[\x20\t\r\n\f]+$/g,qa=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,ra=/^[\x20\t\r\n\f]*([>+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,fa=/[\x20\t\r\n\f]*[+~]/,sa=/=[\x20\t\r\n\f]*([^\]'"]*)[\x20\t\r\n\f]*\]/g,ta=RegExp(ea),ua=RegExp("^"+ka+"$"),da={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,TAG:RegExp("^("+"(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w*")+")"),ATTR:RegExp("^"+la),PSEUDO:RegExp("^"+ea),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")},ja=/^[^{]+\{\s*\[native \w/,wa=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,xa=/^(?:input|select|textarea|button)$/i,ya=/^h\d$/i,za=/'|\\/g,Aa=/\\([\da-f]{1,6}[\x20\t\r\n\f]?|([\x20\t\r\n\f])|.)/ig,
- Ba=function(b,a,k){b="0x"+a-65536;return b!==b||k?a:0>b?String.fromCharCode(b+65536):String.fromCharCode(55296|b>>10,56320|1023&b)};try{T.apply(S=ga.call(va.childNodes),va.childNodes),S[va.childNodes.length].nodeType}catch(Da){T={apply:S.length?function(b,a){na.apply(b,ga.call(a))}:function(b,a){for(var k=b.length,d=0;b[k++]=a[d++];);b.length=k-1}}}J=e.isXML=function(b){return(b=b&&(b.ownerDocument||b).documentElement)?"HTML"!==b.nodeName:!1};D=e.support={};Ea=e.setDocument=function(b){var d=b?b.ownerDocument||
- b:va;b=d.defaultView;return d!==X&&9===d.nodeType&&d.documentElement?(X=d,pa=d.documentElement,I=!J(d),b&&b.attachEvent&&b!==b.top&&b.attachEvent("onbeforeunload",function(){Ea()}),D.attributes=g(function(b){return b.className="i",!b.getAttribute("className")}),D.getElementsByTagName=g(function(b){return b.appendChild(d.createComment("")),!b.getElementsByTagName("*").length}),D.getElementsByClassName=g(function(b){return b.innerHTML="<div class='a'></div><div class='a i'></div>",b.firstChild.className=
- "i",2===b.getElementsByClassName("i").length}),D.getById=g(function(b){return pa.appendChild(b).id=Q,!d.getElementsByName||!d.getElementsByName(Q).length}),D.getById?(K.find.ID=function(b,a){if(typeof a.getElementById!==U&&I){var k=a.getElementById(b);return k&&k.parentNode?[k]:[]}},K.filter.ID=function(b){var a=b.replace(Aa,Ba);return function(b){return b.getAttribute("id")===a}}):(delete K.find.ID,K.filter.ID=function(b){var a=b.replace(Aa,Ba);return function(b){return(b=typeof b.getAttributeNode!==
- U&&b.getAttributeNode("id"))&&b.value===a}}),K.find.TAG=D.getElementsByTagName?function(b,d){return typeof d.getElementsByTagName!==U?d.getElementsByTagName(b):a}:function(b,a){var k,d=[],e=0,c=a.getElementsByTagName(b);if("*"===b){for(;k=c[e++];)1===k.nodeType&&d.push(k);return d}return c},K.find.CLASS=D.getElementsByClassName&&function(b,d){return typeof d.getElementsByClassName!==U&&I?d.getElementsByClassName(b):a},L=[],aa=[],(D.qsa=ja.test(d.querySelectorAll))&&(g(function(b){b.innerHTML="<select><option selected=''></option></select>";
- b.querySelectorAll("[selected]").length||aa.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(":checked").length||aa.push(":checked")}),g(function(b){var a=d.createElement("input");a.setAttribute("type","hidden");b.appendChild(a).setAttribute("t","");b.querySelectorAll("[t^='']").length&&aa.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");b.querySelectorAll(":enabled").length||
- aa.push(":enabled",":disabled");b.querySelectorAll("*,:x");aa.push(",.*:")})),(D.matchesSelector=ja.test(Ra=pa.webkitMatchesSelector||pa.mozMatchesSelector||pa.oMatchesSelector||pa.msMatchesSelector))&&g(function(b){D.disconnectedMatch=Ra.call(b,"div");Ra.call(b,"[s!='']:x");L.push("!=",ea)}),aa=aa.length&&RegExp(aa.join("|")),L=L.length&&RegExp(L.join("|")),Ka=ja.test(pa.contains)||pa.compareDocumentPosition?function(b,a){var k=9===b.nodeType?b.documentElement:b,d=a&&a.parentNode;return b===d||!(!d||
- 1!==d.nodeType||!(k.contains?k.contains(d):b.compareDocumentPosition&&16&b.compareDocumentPosition(d)))}:function(b,a){if(a)for(;a=a.parentNode;)if(a===b)return!0;return!1},Z=pa.compareDocumentPosition?function(b,a){if(b===a)return P=!0,0;var k=a.compareDocumentPosition&&b.compareDocumentPosition&&b.compareDocumentPosition(a);return k?1&k||!D.sortDetached&&a.compareDocumentPosition(b)===k?b===d||Ka(va,b)?-1:a===d||Ka(va,a)?1:F?V.call(F,b)-V.call(F,a):0:4&k?-1:1:b.compareDocumentPosition?-1:1}:function(b,
- a){var k,e=0;k=b.parentNode;var c=a.parentNode,A=[b],s=[a];if(b===a)return P=!0,0;if(!k||!c)return b===d?-1:a===d?1:k?-1:c?1:F?V.call(F,b)-V.call(F,a):0;if(k===c)return p(b,a);for(k=b;k=k.parentNode;)A.unshift(k);for(k=a;k=k.parentNode;)s.unshift(k);for(;A[e]===s[e];)e++;return e?p(A[e],s[e]):A[e]===va?-1:s[e]===va?1:0},d):X};e.matches=function(b,a){return e(b,null,null,a)};e.matchesSelector=function(b,a){if((b.ownerDocument||b)!==X&&Ea(b),a=a.replace(sa,"='$1']"),!(!D.matchesSelector||!I||L&&L.test(a)||
- aa&&aa.test(a)))try{var k=Ra.call(b,a);if(k||D.disconnectedMatch||b.document&&11!==b.document.nodeType)return k}catch(d){}return 0<e(a,X,null,[b]).length};e.contains=function(b,a){return(b.ownerDocument||b)!==X&&Ea(b),Ka(b,a)};e.attr=function(b,d){(b.ownerDocument||b)!==X&&Ea(b);var e=K.attrHandle[d.toLowerCase()],e=e&&ha.call(K.attrHandle,d.toLowerCase())?e(b,d,!I):a;return e===a?D.attributes||!I?b.getAttribute(d):(e=b.getAttributeNode(d))&&e.specified?e.value:null:e};e.error=function(b){throw Error("Syntax error, unrecognized expression: "+
- b);};e.uniqueSort=function(b){var a,k=[],d=0,e=0;if(P=!D.detectDuplicates,F=!D.sortStable&&b.slice(0),b.sort(Z),P){for(;a=b[e++];)a===b[e]&&(d=k.push(e));for(;d--;)b.splice(k[d],1)}return b};O=e.getText=function(b){var a,k="",d=0;if(a=b.nodeType)if(1===a||9===a||11===a){if("string"==typeof b.textContent)return b.textContent;for(b=b.firstChild;b;b=b.nextSibling)k+=O(b)}else{if(3===a||4===a)return b.nodeValue}else for(;a=b[d];d++)k+=O(a);return k};K=e.selectors={cacheLength:50,createPseudo:h,match:da,
- attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(b){return b[1]=b[1].replace(Aa,Ba),b[3]=(b[4]||b[5]||"").replace(Aa,Ba),"~="===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]||e.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]&&e.error(b[0]),
- b},PSEUDO:function(b){var d,e=!b[5]&&b[2];return da.CHILD.test(b[0])?null:(b[3]&&b[4]!==a?b[2]=b[4]:e&&ta.test(e)&&(d=v(e,!0))&&(d=e.indexOf(")",e.length-d)-e.length)&&(b[0]=b[0].slice(0,d),b[2]=e.slice(0,d)),b.slice(0,3))}},filter:{TAG:function(b){var a=b.replace(Aa,Ba).toLowerCase();return"*"===b?function(){return!0}:function(b){return b.nodeName&&b.nodeName.toLowerCase()===a}},CLASS:function(b){var a=Oa[b+" "];return a||(a=RegExp("(^|[\\x20\\t\\r\\n\\f])"+b+"([\\x20\\t\\r\\n\\f]|$)"))&&Oa(b,function(b){return a.test("string"==
- typeof b.className&&b.className||typeof b.getAttribute!==U&&b.getAttribute("class")||"")})},ATTR:function(b,a,k){return function(d){d=e.attr(d,b);return null==d?"!="===a:a?(d+="","="===a?d===k:"!="===a?d!==k:"^="===a?k&&0===d.indexOf(k):"*="===a?k&&-1<d.indexOf(k):"$="===a?k&&d.slice(-k.length)===k:"~="===a?-1<(" "+d+" ").indexOf(k):"|="===a?d===k||d.slice(0,k.length+1)===k+"-":!1):!0}},CHILD:function(b,a,k,d,e){var c="nth"!==b.slice(0,3),A="last"!==b.slice(-4),s="of-type"===a;return 1===d&&0===e?
- function(b){return!!b.parentNode}:function(a,k,h){var g,C,f,E,p;k=c!==A?"nextSibling":"previousSibling";var M=a.parentNode,n=s&&a.nodeName.toLowerCase();h=!h&&!s;if(M){if(c){for(;k;){for(C=a;C=C[k];)if(s?C.nodeName.toLowerCase()===n:1===C.nodeType)return!1;p=k="only"===b&&!p&&"nextSibling"}return!0}if(p=[A?M.firstChild:M.lastChild],A&&h){h=M[Q]||(M[Q]={});g=h[b]||[];E=g[0]===oa&&g[1];f=g[0]===oa&&g[2];for(C=E&&M.childNodes[E];C=++E&&C&&C[k]||(f=E=0)||p.pop();)if(1===C.nodeType&&++f&&C===a){h[b]=[oa,
- E,f];break}}else if(h&&(g=(a[Q]||(a[Q]={}))[b])&&g[0]===oa)f=g[1];else for(;(C=++E&&C&&C[k]||(f=E=0)||p.pop())&&(!(s?C.nodeName.toLowerCase()===n:1===C.nodeType)||!++f||!(h&&((C[Q]||(C[Q]={}))[b]=[oa,f]),C===a)););return f-=e,f===d||0===f%d&&0<=f/d}}},PSEUDO:function(b,a){var k,d=K.pseudos[b]||K.setFilters[b.toLowerCase()]||e.error("unsupported pseudo: "+b);return d[Q]?d(a):1<d.length?(k=[b,b,"",a],K.setFilters.hasOwnProperty(b.toLowerCase())?h(function(b,k){for(var e,c=d(b,a),A=c.length;A--;)e=V.call(b,
- c[A]),b[e]=!(k[e]=c[A])}):function(b){return d(b,0,k)}):d}},pseudos:{not:h(function(b){var a=[],k=[],d=H(b.replace(ca,"$1"));return d[Q]?h(function(b,a,k,e){var c;k=d(b,null,e,[]);for(e=b.length;e--;)(c=k[e])&&(b[e]=!(a[e]=c))}):function(b,e,c){return a[0]=b,d(a,null,c,k),!k.pop()}}),has:h(function(b){return function(a){return 0<e(b,a).length}}),contains:h(function(b){return function(a){return-1<(a.textContent||a.innerText||O(a)).indexOf(b)}}),lang:h(function(b){return ua.test(b||"")||e.error("unsupported lang: "+
- b),b=b.replace(Aa,Ba).toLowerCase(),function(a){var k;do if(k=I?a.lang:a.getAttribute("xml:lang")||a.getAttribute("lang"))return k=k.toLowerCase(),k===b||0===k.indexOf(b+"-");while((a=a.parentNode)&&1===a.nodeType);return!1}}),target:function(a){var k=b.location&&b.location.hash;return k&&k.slice(1)===a.id},root:function(b){return b===pa},focus:function(b){return b===X.activeElement&&(!X.hasFocus||X.hasFocus())&&!(!b.type&&!b.href&&!~b.tabIndex)},enabled:function(b){return!1===b.disabled},disabled:function(b){return!0===
- b.disabled},checked:function(b){var a=b.nodeName.toLowerCase();return"input"===a&&!!b.checked||"option"===a&&!!b.selected},selected:function(b){return b.parentNode&&b.parentNode.selectedIndex,!0===b.selected},empty:function(b){for(b=b.firstChild;b;b=b.nextSibling)if("@"<b.nodeName||3===b.nodeType||4===b.nodeType)return!1;return!0},parent:function(b){return!K.pseudos.empty(b)},header:function(b){return ya.test(b.nodeName)},input:function(b){return xa.test(b.nodeName)},button:function(b){var a=b.nodeName.toLowerCase();
- return"input"===a&&"button"===b.type||"button"===a},text:function(b){var a;return"input"===b.nodeName.toLowerCase()&&"text"===b.type&&(null==(a=b.getAttribute("type"))||a.toLowerCase()===b.type)},first:q(function(){return[0]}),last:q(function(b,a){return[a-1]}),eq:q(function(b,a,k){return[0>k?k+a:k]}),even:q(function(b,a){for(var k=0;a>k;k+=2)b.push(k);return b}),odd:q(function(b,a){for(var k=1;a>k;k+=2)b.push(k);return b}),lt:q(function(b,a,k){for(a=0>k?k+a:k;0<=--a;)b.push(a);return b}),gt:q(function(b,
- a,k){for(k=0>k?k+a:k;a>++k;)b.push(k);return b})}};K.pseudos.nth=K.pseudos.eq;for(z in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})K.pseudos[z]=t(z);for(z in{submit:!0,reset:!0})K.pseudos[z]=n(z);x.prototype=K.filters=K.pseudos;K.setFilters=new x;H=e.compile=function(b,a){var k,d=[],e=[],c=Y[b+" "];if(!c){a||(a=v(b));for(k=a.length;k--;)c=w(a[k]),c[Q]?d.push(c):e.push(c);c=Y(b,N(e,d))}return c};D.sortStable=Q.split("").sort(Z).join("")===Q;D.detectDuplicates=P;Ea();D.sortDetached=g(function(b){return 1&
- b.compareDocumentPosition(X.createElement("div"))});g(function(b){return b.innerHTML="<a href='#'></a>","#"===b.firstChild.getAttribute("href")})||f("type|href|height|width",function(b,d,e){return e?a:b.getAttribute(d,"type"===d.toLowerCase()?1:2)});D.attributes&&g(function(b){return b.innerHTML="<input/>",b.firstChild.setAttribute("value",""),""===b.firstChild.getAttribute("value")})||f("value",function(b,d,e){return e||"input"!==b.nodeName.toLowerCase()?a:b.defaultValue});g(function(b){return null==
- b.getAttribute("disabled")})||f("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(b,d,e){var c;return e?a:(c=b.getAttributeNode(d))&&c.specified?c.value:!0===b[d]?d.toLowerCase():null});d.find=e;d.expr=e.selectors;d.expr[":"]=d.expr.pseudos;d.unique=e.uniqueSort;d.text=e.getText;d.isXMLDoc=e.isXML;d.contains=e.contains})(a);var hb={};d.Callbacks=function(b){b="string"==typeof b?hb[b]||f(b):d.extend({},b);var a,e,s,
- h,g,p,n=[],t=!b.once&&[],q=function(d){e=b.memory&&d;s=!0;g=p||0;p=0;h=n.length;for(a=!0;n&&h>g;g++)if(!1===n[g].apply(d[0],d[1])&&b.stopOnFalse){e=!1;break}a=!1;n&&(t?t.length&&q(t.shift()):e?n=[]:x.disable())},x={add:function(){if(n){var c=n.length;(function bc(a){d.each(a,function(a,k){var e=d.type(k);"function"===e?b.unique&&x.has(k)||n.push(k):k&&k.length&&"string"!==e&&bc(k)})})(arguments);a?h=n.length:e&&(p=c,q(e))}return this},remove:function(){return n&&d.each(arguments,function(b,e){for(var c;-1<
- (c=d.inArray(e,n,c));)n.splice(c,1),a&&(h>=c&&h--,g>=c&&g--)}),this},has:function(b){return b?-1<d.inArray(b,n):!(!n||!n.length)},empty:function(){return n=[],h=0,this},disable:function(){return n=t=e=c,this},disabled:function(){return!n},lock:function(){return t=c,e||x.disable(),this},locked:function(){return!t},fireWith:function(b,d){return!n||s&&!t||(d=d||[],d=[b,d.slice?d.slice():d],a?t.push(d):q(d)),this},fire:function(){return x.fireWith(this,arguments),this},fired:function(){return!!s}};return x};
- d.extend({Deferred:function(b){var a=[["resolve","done",d.Callbacks("once memory"),"resolved"],["reject","fail",d.Callbacks("once memory"),"rejected"],["notify","progress",d.Callbacks("memory")]],e="pending",c={state:function(){return e},always:function(){return h.done(arguments).fail(arguments),this},then:function(){var b=arguments;return d.Deferred(function(e){d.each(a,function(a,k){var A=k[0],g=d.isFunction(b[a])&&b[a];h[k[1]](function(){var b=g&&g.apply(this,arguments);b&&d.isFunction(b.promise)?
- b.promise().done(e.resolve).fail(e.reject).progress(e.notify):e[A+"With"](this===c?e.promise():this,g?[b]:arguments)})});b=null}).promise()},promise:function(b){return null!=b?d.extend(b,c):c}},h={};return c.pipe=c.then,d.each(a,function(b,d){var g=d[2],f=d[3];c[d[1]]=g.add;f&&g.add(function(){e=f},a[1^b][2].disable,a[2][2].lock);h[d[0]]=function(){return h[d[0]+"With"](this===h?c:this,arguments),this};h[d[0]+"With"]=g.fireWith}),c.promise(h),b&&b.call(h,h),h},when:function(b){var a=0,e=ja.call(arguments),
- c=e.length,h=1!==c||b&&d.isFunction(b.promise)?c:0,g=1===h?b:d.Deferred(),f=function(b,a,k){return function(d){a[b]=this;k[b]=1<arguments.length?ja.call(arguments):d;k===p?g.notifyWith(a,k):--h||g.resolveWith(a,k)}},p,n,t;if(1<c){p=Array(c);n=Array(c);for(t=Array(c);c>a;a++)e[a]&&d.isFunction(e[a].promise)?e[a].promise().done(f(a,t,e)).fail(g.reject).progress(f(a,n,p)):--h}return h||g.resolveWith(t,e),g.promise()}});d.support=function(b){var k,e,c,h,g,f,p=B.createElement("div");if(p.setAttribute("className",
- "t"),p.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k=p.getElementsByTagName("*")||[],e=p.getElementsByTagName("a")[0],!e||!e.style||!k.length)return b;c=B.createElement("select");h=c.appendChild(B.createElement("option"));k=p.getElementsByTagName("input")[0];e.style.cssText="top:1px;float:left;opacity:.5";b.getSetAttribute="t"!==p.className;b.leadingWhitespace=3===p.firstChild.nodeType;b.tbody=!p.getElementsByTagName("tbody").length;b.htmlSerialize=!!p.getElementsByTagName("link").length;
- b.style=/top/.test(e.getAttribute("style"));b.hrefNormalized="/a"===e.getAttribute("href");b.opacity=/^0.5/.test(e.style.opacity);b.cssFloat=!!e.style.cssFloat;b.checkOn=!!k.value;b.optSelected=h.selected;b.enctype=!!B.createElement("form").enctype;b.html5Clone="<:nav></:nav>"!==B.createElement("nav").cloneNode(!0).outerHTML;b.inlineBlockNeedsLayout=!1;b.shrinkWrapBlocks=!1;b.pixelPosition=!1;b.deleteExpando=!0;b.noCloneEvent=!0;b.reliableMarginRight=!0;b.boxSizingReliable=!0;k.checked=!0;b.noCloneChecked=
- k.cloneNode(!0).checked;c.disabled=!0;b.optDisabled=!h.disabled;try{delete p.test}catch(n){b.deleteExpando=!1}k=B.createElement("input");k.setAttribute("value","");b.input=""===k.getAttribute("value");k.value="t";k.setAttribute("type","radio");b.radioValue="t"===k.value;k.setAttribute("checked","t");k.setAttribute("name","t");e=B.createDocumentFragment();e.appendChild(k);b.appendChecked=k.checked;b.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked;p.attachEvent&&(p.attachEvent("onclick",
- function(){b.noCloneEvent=!1}),p.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})p.setAttribute(e="on"+f,"t"),b[f+"Bubbles"]=e in a||!1===p.attributes[e].expando;p.style.backgroundClip="content-box";p.cloneNode(!0).style.backgroundClip="";b.clearCloneStyle="content-box"===p.style.backgroundClip;for(f in d(b))break;return b.ownLast="0"!==f,d(function(){var k,e,c,A=B.getElementsByTagName("body")[0];A&&(k=B.createElement("div"),k.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",
- A.appendChild(k).appendChild(p),p.innerHTML="<table><tr><td></td><td>t</td></tr></table>",c=p.getElementsByTagName("td"),c[0].style.cssText="padding:0;margin:0;border:0;display:none",g=0===c[0].offsetHeight,c[0].style.display="",c[1].style.display="none",b.reliableHiddenOffsets=g&&0===c[0].offsetHeight,p.innerHTML="",p.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",
- d.swap(A,null!=A.style.zoom?{zoom:1}:{},function(){b.boxSizing=4===p.offsetWidth}),a.getComputedStyle&&(b.pixelPosition="1%"!==(a.getComputedStyle(p,null)||{}).top,b.boxSizingReliable="4px"===(a.getComputedStyle(p,null)||{width:"4px"}).width,e=p.appendChild(B.createElement("div")),e.style.cssText=p.style.cssText="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",e.style.marginRight=e.style.width="0",p.style.width="1px",b.reliableMarginRight=
- !parseFloat((a.getComputedStyle(e,null)||{}).marginRight)),typeof p.style.zoom!==H&&(p.innerHTML="",p.style.cssText="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;width:1px;padding:1px;display:inline;zoom:1",b.inlineBlockNeedsLayout=3===p.offsetWidth,p.style.display="block",p.innerHTML="<div></div>",p.firstChild.style.width="5px",b.shrinkWrapBlocks=3!==p.offsetWidth,b.inlineBlockNeedsLayout&&(A.style.zoom=1)),A.removeChild(k),
- k=p=c=e=null)}),k=c=e=h=e=k=null,b}({});var Lb=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,Kb=/([A-Z])/g;d.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(b){return b=b.nodeType?d.cache[b[d.expando]]:b[d.expando],!!b&&!r(b)},data:function(b,a,d){return u(b,a,d)},removeData:function(b,a){return y(b,a)},_data:function(b,a,d){return u(b,a,d,!0)},_removeData:function(b,a){return y(b,a,!0)},acceptData:function(b){if(b.nodeType&&1!==b.nodeType&&9!==b.nodeType)return!1;
- var a=b.nodeName&&d.noData[b.nodeName.toLowerCase()];return!a||!0!==a&&b.getAttribute("classid")===a}});d.fn.extend({data:function(b,a){var e,s,h=null,g=0,f=this[0];if(b===c){if(this.length&&(h=d.data(f),1===f.nodeType&&!d._data(f,"parsedAttrs"))){for(e=f.attributes;e.length>g;g++)s=e[g].name,0===s.indexOf("data-")&&(s=d.camelCase(s.slice(5)),w(f,s,h[s]));d._data(f,"parsedAttrs",!0)}return h}return"object"==typeof b?this.each(function(){d.data(this,b)}):1<arguments.length?this.each(function(){d.data(this,
- b,a)}):f?w(f,b,d.data(f,b)):null},removeData:function(b){return this.each(function(){d.removeData(this,b)})}});d.extend({queue:function(b,a,e){var s;return b?(a=(a||"fx")+"queue",s=d._data(b,a),e&&(!s||d.isArray(e)?s=d._data(b,a,d.makeArray(e)):s.push(e)),s||[]):c},dequeue:function(b,a){a=a||"fx";var e=d.queue(b,a),c=e.length,h=e.shift(),g=d._queueHooks(b,a),f=function(){d.dequeue(b,a)};"inprogress"===h&&(h=e.shift(),c--);h&&("fx"===a&&e.unshift("inprogress"),delete g.stop,h.call(b,f,g));!c&&g&&g.empty.fire()},
- _queueHooks:function(b,a){var e=a+"queueHooks";return d._data(b,e)||d._data(b,e,{empty:d.Callbacks("once memory").add(function(){d._removeData(b,a+"queue");d._removeData(b,e)})})}});d.fn.extend({queue:function(b,a){var e=2;return"string"!=typeof b&&(a=b,b="fx",e--),e>arguments.length?d.queue(this[0],b):a===c?this:this.each(function(){var e=d.queue(this,b,a);d._queueHooks(this,b);"fx"===b&&"inprogress"!==e[0]&&d.dequeue(this,b)})},dequeue:function(b){return this.each(function(){d.dequeue(this,b)})},
- delay:function(b,a){return b=d.fx?d.fx.speeds[b]||b:b,a=a||"fx",this.queue(a,function(a,k){var d=setTimeout(a,b);k.stop=function(){clearTimeout(d)}})},clearQueue:function(b){return this.queue(b||"fx",[])},promise:function(b,a){var e,h=1,g=d.Deferred(),f=this,p=this.length,n=function(){--h||g.resolveWith(f,[f])};"string"!=typeof b&&(a=b,b=c);for(b=b||"fx";p--;)(e=d._data(f[p],b+"queueHooks"))&&e.empty&&(h++,e.empty.add(n));return n(),g.promise(a)}});var Ga,rb,Ya=/[\t\r\n\f]/g,dc=/\r/g,ec=/^(?:input|select|textarea|button|object)$/i,
- fc=/^(?:a|area)$/i,Za=/^(?:checked|selected)$/i,wa=d.support.getSetAttribute,Sa=d.support.input;d.fn.extend({attr:function(b,a){return d.access(this,d.attr,b,a,1<arguments.length)},removeAttr:function(b){return this.each(function(){d.removeAttr(this,b)})},prop:function(b,a){return d.access(this,d.prop,b,a,1<arguments.length)},removeProp:function(b){return b=d.propFix[b]||b,this.each(function(){try{this[b]=c,delete this[b]}catch(a){}})},addClass:function(b){var a,e,c,h,g,f=0,p=this.length;a="string"==
- typeof b&&b;if(d.isFunction(b))return this.each(function(a){d(this).addClass(b.call(this,a,this.className))});if(a)for(a=(b||"").match(ba)||[];p>f;f++)if(e=this[f],c=1===e.nodeType&&(e.className?(" "+e.className+" ").replace(Ya," "):" ")){for(g=0;h=a[g++];)0>c.indexOf(" "+h+" ")&&(c+=h+" ");e.className=d.trim(c)}return this},removeClass:function(b){var a,e,c,h,g,f=0,p=this.length;a=0===arguments.length||"string"==typeof b&&b;if(d.isFunction(b))return this.each(function(a){d(this).removeClass(b.call(this,
- a,this.className))});if(a)for(a=(b||"").match(ba)||[];p>f;f++)if(e=this[f],c=1===e.nodeType&&(e.className?(" "+e.className+" ").replace(Ya," "):"")){for(g=0;h=a[g++];)for(;0<=c.indexOf(" "+h+" ");)c=c.replace(" "+h+" "," ");e.className=b?d.trim(c):""}return this},toggleClass:function(b,a){var e=typeof b;return"boolean"==typeof a&&"string"===e?a?this.addClass(b):this.removeClass(b):d.isFunction(b)?this.each(function(e){d(this).toggleClass(b.call(this,e,this.className,a),a)}):this.each(function(){if("string"===
- e)for(var a,k=0,c=d(this),h=b.match(ba)||[];a=h[k++];)c.hasClass(a)?c.removeClass(a):c.addClass(a);else(e===H||"boolean"===e)&&(this.className&&d._data(this,"__className__",this.className),this.className=this.className||!1===b?"":d._data(this,"__className__")||"")})},hasClass:function(b){b=" "+b+" ";for(var a=0,d=this.length;d>a;a++)if(1===this[a].nodeType&&0<=(" "+this[a].className+" ").replace(Ya," ").indexOf(b))return!0;return!1},val:function(b){var a,e,h,g=this[0];if(arguments.length)return h=
- d.isFunction(b),this.each(function(a){var k;1===this.nodeType&&(k=h?b.call(this,a,d(this).val()):b,null==k?k="":"number"==typeof k?k+="":d.isArray(k)&&(k=d.map(k,function(b){return null==b?"":b+""})),e=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&e.set(this,k,"value")!==c||(this.value=k))});if(g)return e=d.valHooks[g.type]||d.valHooks[g.nodeName.toLowerCase()],e&&"get"in e&&(a=e.get(g,"value"))!==c?a:(a=g.value,"string"==typeof a?a.replace(dc,""):null==a?"":a)}});d.extend({valHooks:{option:{get:function(b){var a=
- d.find.attr(b,"value");return null!=a?a:b.text}},select:{get:function(b){for(var a,e=b.options,c=b.selectedIndex,h="select-one"===b.type||0>c,g=h?null:[],f=h?c+1:e.length,p=0>c?f:h?c:0;f>p;p++)if(a=e[p],!(!a.selected&&p!==c||(d.support.optDisabled?a.disabled:null!==a.getAttribute("disabled"))||a.parentNode.disabled&&d.nodeName(a.parentNode,"optgroup"))){if(b=d(a).val(),h)return b;g.push(b)}return g},set:function(b,a){for(var e,c,h=b.options,g=d.makeArray(a),f=h.length;f--;)c=h[f],(c.selected=0<=d.inArray(d(c).val(),
- g))&&(e=!0);return e||(b.selectedIndex=-1),g}}},attr:function(b,a,e){var h,g,f=b.nodeType;if(b&&3!==f&&8!==f&&2!==f)return typeof b.getAttribute===H?d.prop(b,a,e):(1===f&&d.isXMLDoc(b)||(a=a.toLowerCase(),h=d.attrHooks[a]||(d.expr.match.bool.test(a)?rb:Ga)),e===c?h&&"get"in h&&null!==(g=h.get(b,a))?g:(g=d.find.attr(b,a),null==g?c:g):null!==e?h&&"set"in h&&(g=h.set(b,e,a))!==c?g:(b.setAttribute(a,e+""),e):(d.removeAttr(b,a),c))},removeAttr:function(b,a){var e,c,h=0,g=a&&a.match(ba);if(g&&1===b.nodeType)for(;e=
- g[h++];)c=d.propFix[e]||e,d.expr.match.bool.test(e)?Sa&&wa||!Za.test(e)?b[c]=!1:b[d.camelCase("default-"+e)]=b[c]=!1:d.attr(b,e,""),b.removeAttribute(wa?e:c)},attrHooks:{type:{set:function(b,a){if(!d.support.radioValue&&"radio"===a&&d.nodeName(b,"input")){var e=b.value;return b.setAttribute("type",a),e&&(b.value=e),a}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(b,a,e){var h,g,f,p=b.nodeType;if(b&&3!==p&&8!==p&&2!==p)return f=1!==p||!d.isXMLDoc(b),f&&(a=d.propFix[a]||a,g=d.propHooks[a]),
- e!==c?g&&"set"in g&&(h=g.set(b,e,a))!==c?h:b[a]=e:g&&"get"in g&&null!==(h=g.get(b,a))?h:b[a]},propHooks:{tabIndex:{get:function(b){var a=d.find.attr(b,"tabindex");return a?parseInt(a,10):ec.test(b.nodeName)||fc.test(b.nodeName)&&b.href?0:-1}}}});rb={set:function(b,a,e){return!1===a?d.removeAttr(b,e):Sa&&wa||!Za.test(e)?b.setAttribute(!wa&&d.propFix[e]||e,e):b[d.camelCase("default-"+e)]=b[e]=!0,e}};d.each(d.expr.match.bool.source.match(/\w+/g),function(b,a){var e=d.expr.attrHandle[a]||d.find.attr;
- d.expr.attrHandle[a]=Sa&&wa||!Za.test(a)?function(b,a,k){var h=d.expr.attrHandle[a];b=k?c:(d.expr.attrHandle[a]=c)!=e(b,a,k)?a.toLowerCase():null;return d.expr.attrHandle[a]=h,b}:function(b,a,k){return k?c:b[d.camelCase("default-"+a)]?a.toLowerCase():null}});Sa&&wa||(d.attrHooks.value={set:function(b,a,e){return d.nodeName(b,"input")?(b.defaultValue=a,c):Ga&&Ga.set(b,a,e)}});wa||(Ga={set:function(b,a,d){var e=b.getAttributeNode(d);return e||b.setAttributeNode(e=b.ownerDocument.createAttribute(d)),
- e.value=a+="","value"===d||a===b.getAttribute(d)?a:c}},d.expr.attrHandle.id=d.expr.attrHandle.name=d.expr.attrHandle.coords=function(b,a,d){var e;return d?c:(e=b.getAttributeNode(a))&&""!==e.value?e.value:null},d.valHooks.button={get:function(b,a){var d=b.getAttributeNode(a);return d&&d.specified?d.value:c},set:Ga.set},d.attrHooks.contenteditable={set:function(b,a,d){Ga.set(b,""===a?!1:a,d)}},d.each(["width","height"],function(b,a){d.attrHooks[a]={set:function(b,d){return""===d?(b.setAttribute(a,
- "auto"),d):c}}}));d.support.hrefNormalized||d.each(["href","src"],function(b,a){d.propHooks[a]={get:function(b){return b.getAttribute(a,4)}}});d.support.style||(d.attrHooks.style={get:function(b){return b.style.cssText||c},set:function(b,a){return b.style.cssText=a+""}});d.support.optSelected||(d.propHooks.selected={get:function(b){b=b.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}});d.each("tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" "),
- function(){d.propFix[this.toLowerCase()]=this});d.support.enctype||(d.propFix.enctype="encoding");d.each(["radio","checkbox"],function(){d.valHooks[this]={set:function(b,a){return d.isArray(a)?b.checked=0<=d.inArray(d(b).val(),a):c}};d.support.checkOn||(d.valHooks[this].get=function(b){return null===b.getAttribute("value")?"on":b.value})});var $a=/^(?:input|select|textarea)$/i,gc=/^key/,hc=/^(?:mouse|contextmenu)|click/,sb=/^(?:focusinfocus|focusoutblur)$/,tb=/^([^.]*)(?:\.(.+)|)$/;d.event={global:{},
- add:function(b,a,e,h,g){var f,p,n,t,q,x,v,u,r,R;if(n=d._data(b)){e.handler&&(t=e,e=t.handler,g=t.selector);e.guid||(e.guid=d.guid++);(p=n.events)||(p=n.events={});(x=n.handle)||(x=n.handle=function(b){return typeof d===H||b&&d.event.triggered===b.type?c:d.event.dispatch.apply(x.elem,arguments)},x.elem=b);a=(a||"").match(ba)||[""];for(n=a.length;n--;)f=tb.exec(a[n])||[],r=R=f[1],f=(f[2]||"").split(".").sort(),r&&(q=d.event.special[r]||{},r=(g?q.delegateType:q.bindType)||r,q=d.event.special[r]||{},
- v=d.extend({type:r,origType:R,data:h,handler:e,guid:e.guid,selector:g,needsContext:g&&d.expr.match.needsContext.test(g),namespace:f.join(".")},t),(u=p[r])||(u=p[r]=[],u.delegateCount=0,q.setup&&!1!==q.setup.call(b,h,f,x)||(b.addEventListener?b.addEventListener(r,x,!1):b.attachEvent&&b.attachEvent("on"+r,x))),q.add&&(q.add.call(b,v),v.handler.guid||(v.handler.guid=e.guid)),g?u.splice(u.delegateCount++,0,v):u.push(v),d.event.global[r]=!0);b=null}},remove:function(b,a,e,c,h){var g,f,p,n,t,q,x,v,r,u,
- R,y=d.hasData(b)&&d._data(b);if(y&&(q=y.events)){a=(a||"").match(ba)||[""];for(t=a.length;t--;)if(p=tb.exec(a[t])||[],r=R=p[1],u=(p[2]||"").split(".").sort(),r){x=d.event.special[r]||{};r=(c?x.delegateType:x.bindType)||r;v=q[r]||[];p=p[2]&&RegExp("(^|\\.)"+u.join("\\.(?:.*\\.|)")+"(\\.|$)");for(n=g=v.length;g--;)f=v[g],!h&&R!==f.origType||e&&e.guid!==f.guid||p&&!p.test(f.namespace)||c&&c!==f.selector&&("**"!==c||!f.selector)||(v.splice(g,1),f.selector&&v.delegateCount--,x.remove&&x.remove.call(b,
- f));n&&!v.length&&(x.teardown&&!1!==x.teardown.call(b,u,y.handle)||d.removeEvent(b,r,y.handle),delete q[r])}else for(r in q)d.event.remove(b,r+a[t],e,c,!0);d.isEmptyObject(q)&&(delete y.handle,d._removeData(b,"events"))}},trigger:function(b,k,e,h){var g,f,p,n,t,q,x=[e||B],v=Da.call(b,"type")?b.type:b;q=Da.call(b,"namespace")?b.namespace.split("."):[];if(p=g=e=e||B,3!==e.nodeType&&8!==e.nodeType&&!sb.test(v+d.event.triggered)&&(0<=v.indexOf(".")&&(q=v.split("."),v=q.shift(),q.sort()),f=0>v.indexOf(":")&&
- "on"+v,b=b[d.expando]?b:new d.Event(v,"object"==typeof b&&b),b.isTrigger=h?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=c,b.target||(b.target=e),k=null==k?[b]:d.makeArray(k,[b]),t=d.event.special[v]||{},h||!t.trigger||!1!==t.trigger.apply(e,k))){if(!h&&!t.noBubble&&!d.isWindow(e)){n=t.delegateType||v;for(sb.test(n+v)||(p=p.parentNode);p;p=p.parentNode)x.push(p),g=p;g===(e.ownerDocument||B)&&x.push(g.defaultView||g.parentWindow||
- a)}for(q=0;(p=x[q++])&&!b.isPropagationStopped();)b.type=1<q?n:t.bindType||v,(g=(d._data(p,"events")||{})[b.type]&&d._data(p,"handle"))&&g.apply(p,k),(g=f&&p[f])&&d.acceptData(p)&&g.apply&&!1===g.apply(p,k)&&b.preventDefault();if(b.type=v,!h&&!b.isDefaultPrevented()&&(!t._default||!1===t._default.apply(x.pop(),k))&&d.acceptData(e)&&f&&e[v]&&!d.isWindow(e)){(g=e[f])&&(e[f]=null);d.event.triggered=v;try{e[v]()}catch(r){}d.event.triggered=c;g&&(e[f]=g)}return b.result}},dispatch:function(b){b=d.event.fix(b);
- var a,e,h,g,f,p=[],n=ja.call(arguments);a=(d._data(this,"events")||{})[b.type]||[];var t=d.event.special[b.type]||{};if(n[0]=b,b.delegateTarget=this,!t.preDispatch||!1!==t.preDispatch.call(this,b)){p=d.event.handlers.call(this,b,a);for(a=0;(g=p[a++])&&!b.isPropagationStopped();){b.currentTarget=g.elem;for(f=0;(h=g.handlers[f++])&&!b.isImmediatePropagationStopped();)(!b.namespace_re||b.namespace_re.test(h.namespace))&&(b.handleObj=h,b.data=h.data,e=((d.event.special[h.origType]||{}).handle||h.handler).apply(g.elem,
- n),e!==c&&!1===(b.result=e)&&(b.preventDefault(),b.stopPropagation()))}return t.postDispatch&&t.postDispatch.call(this,b),b.result}},handlers:function(b,a){var e,h,g,f,p=[],n=a.delegateCount,t=b.target;if(n&&t.nodeType&&(!b.button||"click"!==b.type))for(;t!=this;t=t.parentNode||this)if(1===t.nodeType&&(!0!==t.disabled||"click"!==b.type)){g=[];for(f=0;n>f;f++)h=a[f],e=h.selector+" ",g[e]===c&&(g[e]=h.needsContext?0<=d(e,this).index(t):d.find(e,this,null,[t]).length),g[e]&&g.push(h);g.length&&p.push({elem:t,
- handlers:g})}return a.length>n&&p.push({elem:this,handlers:a.slice(n)}),p},fix:function(b){if(b[d.expando])return b;var a,e,c;a=b.type;var h=b,g=this.fixHooks[a];g||(this.fixHooks[a]=g=hc.test(a)?this.mouseHooks:gc.test(a)?this.keyHooks:{});c=g.props?this.props.concat(g.props):this.props;b=new d.Event(h);for(a=c.length;a--;)e=c[a],b[e]=h[e];return b.target||(b.target=h.srcElement||B),3===b.target.nodeType&&(b.target=b.target.parentNode),b.metaKey=!!b.metaKey,g.filter?g.filter(b,h):b},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
- fixHooks:{},keyHooks:{props:["char","charCode","key","keyCode"],filter:function(b,a){return null==b.which&&(b.which=null!=a.charCode?a.charCode:a.keyCode),b}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(b,a){var d,e,h,g=a.button,f=a.fromElement;return null==b.pageX&&null!=a.clientX&&(e=b.target.ownerDocument||B,h=e.documentElement,d=e.body,b.pageX=a.clientX+(h&&h.scrollLeft||d&&d.scrollLeft||0)-(h&&
- h.clientLeft||d&&d.clientLeft||0),b.pageY=a.clientY+(h&&h.scrollTop||d&&d.scrollTop||0)-(h&&h.clientTop||d&&d.clientTop||0)),!b.relatedTarget&&f&&(b.relatedTarget=f===b.target?a.toElement:f),b.which||g===c||(b.which=1&g?1:2&g?3:4&g?2:0),b}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==I()&&this.focus)try{return this.focus(),!1}catch(b){}},delegateType:"focusin"},blur:{trigger:function(){return this===I()&&this.blur?(this.blur(),!1):c},delegateType:"focusout"},click:{trigger:function(){return d.nodeName(this,
- "input")&&"checkbox"===this.type&&this.click?(this.click(),!1):c},_default:function(b){return d.nodeName(b.target,"a")}},beforeunload:{postDispatch:function(b){b.result!==c&&(b.originalEvent.returnValue=b.result)}}},simulate:function(b,a,e,c){b=d.extend(new d.Event,e,{type:b,isSimulated:!0,originalEvent:{}});c?d.event.trigger(b,null,a):d.event.dispatch.call(a,b);b.isDefaultPrevented()&&e.preventDefault()}};d.removeEvent=B.removeEventListener?function(b,a,d){b.removeEventListener&&b.removeEventListener(a,
- d,!1)}:function(b,a,d){a="on"+a;b.detachEvent&&(typeof b[a]===H&&(b[a]=null),b.detachEvent(a,d))};d.Event=function(b,a){return this instanceof d.Event?(b&&b.type?(this.originalEvent=b,this.type=b.type,this.isDefaultPrevented=b.defaultPrevented||!1===b.returnValue||b.getPreventDefault&&b.getPreventDefault()?z:G):this.type=b,a&&d.extend(this,a),this.timeStamp=b&&b.timeStamp||d.now(),this[d.expando]=!0,c):new d.Event(b,a)};d.Event.prototype={isDefaultPrevented:G,isPropagationStopped:G,isImmediatePropagationStopped:G,
- preventDefault:function(){var b=this.originalEvent;this.isDefaultPrevented=z;b&&(b.preventDefault?b.preventDefault():b.returnValue=!1)},stopPropagation:function(){var b=this.originalEvent;this.isPropagationStopped=z;b&&(b.stopPropagation&&b.stopPropagation(),b.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=z;this.stopPropagation()}};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b,a){d.event.special[b]={delegateType:a,bindType:a,handle:function(b){var e,
- c=b.relatedTarget,h=b.handleObj;return(!c||c!==this&&!d.contains(this,c))&&(b.type=h.origType,e=h.handler.apply(this,arguments),b.type=a),e}}});d.support.submitBubbles||(d.event.special.submit={setup:function(){return d.nodeName(this,"form")?!1:(d.event.add(this,"click._submit keypress._submit",function(b){b=b.target;(b=d.nodeName(b,"input")||d.nodeName(b,"button")?b.form:c)&&!d._data(b,"submitBubbles")&&(d.event.add(b,"submit._submit",function(b){b._submit_bubble=!0}),d._data(b,"submitBubbles",!0))}),
- c)},postDispatch:function(b){b._submit_bubble&&(delete b._submit_bubble,this.parentNode&&!b.isTrigger&&d.event.simulate("submit",this.parentNode,b,!0))},teardown:function(){return d.nodeName(this,"form")?!1:(d.event.remove(this,"._submit"),c)}});d.support.changeBubbles||(d.event.special.change={setup:function(){return $a.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(d.event.add(this,"propertychange._change",function(b){"checked"===b.originalEvent.propertyName&&(this._just_changed=
- !0)}),d.event.add(this,"click._change",function(b){this._just_changed&&!b.isTrigger&&(this._just_changed=!1);d.event.simulate("change",this,b,!0)})),!1):(d.event.add(this,"beforeactivate._change",function(b){b=b.target;$a.test(b.nodeName)&&!d._data(b,"changeBubbles")&&(d.event.add(b,"change._change",function(b){!this.parentNode||b.isSimulated||b.isTrigger||d.event.simulate("change",this.parentNode,b,!0)}),d._data(b,"changeBubbles",!0))}),c)},handle:function(b){var a=b.target;return this!==a||b.isSimulated||
- b.isTrigger||"radio"!==a.type&&"checkbox"!==a.type?b.handleObj.handler.apply(this,arguments):c},teardown:function(){return d.event.remove(this,"._change"),!$a.test(this.nodeName)}});d.support.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},function(b,a){var e=0,c=function(b){d.event.simulate(a,b.target,d.event.fix(b),!0)};d.event.special[a]={setup:function(){0===e++&&B.addEventListener(b,c,!0)},teardown:function(){0===--e&&B.removeEventListener(b,c,!0)}}});d.fn.extend({on:function(b,a,e,
- h,g){var f,p;if("object"==typeof b){"string"!=typeof a&&(e=e||a,a=c);for(f in b)this.on(f,a,e,b[f],g);return this}if(null==e&&null==h?(h=a,e=a=c):null==h&&("string"==typeof a?(h=e,e=c):(h=e,e=a,a=c)),!1===h)h=G;else if(!h)return this;return 1===g&&(p=h,h=function(b){return d().off(b),p.apply(this,arguments)},h.guid=p.guid||(p.guid=d.guid++)),this.each(function(){d.event.add(this,b,h,e,a)})},one:function(b,a,d,e){return this.on(b,a,d,e,1)},off:function(b,a,e){var h,g;if(b&&b.preventDefault&&b.handleObj)return h=
- b.handleObj,d(b.delegateTarget).off(h.namespace?h.origType+"."+h.namespace:h.origType,h.selector,h.handler),this;if("object"==typeof b){for(g in b)this.off(g,a,b[g]);return this}return(!1===a||"function"==typeof a)&&(e=a,a=c),!1===e&&(e=G),this.each(function(){d.event.remove(this,b,e,a)})},trigger:function(b,a){return this.each(function(){d.event.trigger(b,a,this)})},triggerHandler:function(b,a){var e=this[0];return e?d.event.trigger(b,a,e,!0):c}});var Mb=/^.[^:#\[\.,]*$/,ic=/^(?:parents|prev(?:Until|All))/,
- ub=d.expr.match.needsContext,jc={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({find:function(b){var a,e=[],c=this,h=c.length;if("string"!=typeof b)return this.pushStack(d(b).filter(function(){for(a=0;h>a;a++)if(d.contains(c[a],this))return!0}));for(a=0;h>a;a++)d.find(b,c[a],e);return e=this.pushStack(1<h?d.unique(e):e),e.selector=this.selector?this.selector+" "+b:b,e},has:function(b){var a,e=d(b,this),c=e.length;return this.filter(function(){for(a=0;c>a;a++)if(d.contains(this,e[a]))return!0})},
- not:function(b){return this.pushStack(W(this,b||[],!0))},filter:function(b){return this.pushStack(W(this,b||[],!1))},is:function(b){return!!W(this,"string"==typeof b&&ub.test(b)?d(b):b||[],!1).length},closest:function(b,a){for(var e,c=0,h=this.length,g=[],f=ub.test(b)||"string"!=typeof b?d(b,a||this.context):0;h>c;c++)for(e=this[c];e&&e!==a;e=e.parentNode)if(11>e.nodeType&&(f?-1<f.index(e):1===e.nodeType&&d.find.matchesSelector(e,b))){g.push(e);break}return this.pushStack(1<g.length?d.unique(g):g)},
- index:function(b){return b?"string"==typeof b?d.inArray(this[0],d(b)):d.inArray(b.jquery?b[0]:b,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(b,a){var e="string"==typeof b?d(b,a):d.makeArray(b&&b.nodeType?[b]:b),e=d.merge(this.get(),e);return this.pushStack(d.unique(e))},addBack:function(b){return this.add(null==b?this.prevObject:this.prevObject.filter(b))}});d.each({parent:function(b){return(b=b.parentNode)&&11!==b.nodeType?b:null},parents:function(b){return d.dir(b,
- "parentNode")},parentsUntil:function(b,a,e){return d.dir(b,"parentNode",e)},next:function(b){return S(b,"nextSibling")},prev:function(b){return S(b,"previousSibling")},nextAll:function(b){return d.dir(b,"nextSibling")},prevAll:function(b){return d.dir(b,"previousSibling")},nextUntil:function(b,a,e){return d.dir(b,"nextSibling",e)},prevUntil:function(b,a,e){return d.dir(b,"previousSibling",e)},siblings:function(b){return d.sibling((b.parentNode||{}).firstChild,b)},children:function(b){return d.sibling(b.firstChild)},
- contents:function(b){return d.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:d.merge([],b.childNodes)}},function(b,a){d.fn[b]=function(e,c){var h=d.map(this,a,e);return"Until"!==b.slice(-5)&&(c=e),c&&"string"==typeof c&&(h=d.filter(c,h)),1<this.length&&(jc[b]||(h=d.unique(h)),ic.test(b)&&(h=h.reverse())),this.pushStack(h)}});d.extend({filter:function(b,a,e){var c=a[0];return e&&(b=":not("+b+")"),1===a.length&&1===c.nodeType?d.find.matchesSelector(c,b)?[c]:[]:d.find.matches(b,d.grep(a,
- function(b){return 1===b.nodeType}))},dir:function(b,a,e){var h=[];for(b=b[a];b&&9!==b.nodeType&&(e===c||1!==b.nodeType||!d(b).is(e));)1===b.nodeType&&h.push(b),b=b[a];return h},sibling:function(b,a){for(var d=[];b;b=b.nextSibling)1===b.nodeType&&b!==a&&d.push(b);return d}});var ib="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",kc=/ jQuery\d+="(?:null|\d+)"/g,vb=RegExp("<(?:"+ib+")[\\s/>]",
- "i"),ab=/^\s+/,wb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,xb=/<([\w:]+)/,yb=/<tbody/i,lc=/<|&#?\w+;/,mc=/<(?:script|style|link)/i,Ua=/^(?:checkbox|radio)$/i,nc=/checked\s*(?:[^=]|=\s*.checked.)/i,zb=/^$|\/(?:java|ecma)script/i,Nb=/^true\/(.*)/,oc=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Y={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],
- tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:d.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},bb=ea(B).appendChild(B.createElement("div"));Y.optgroup=Y.option;Y.tbody=Y.tfoot=Y.colgroup=Y.caption=Y.thead;Y.th=Y.td;d.fn.extend({text:function(b){return d.access(this,function(b){return b===c?d.text(this):this.empty().append((this[0]&&this[0].ownerDocument||B).createTextNode(b))},
- null,b,arguments.length)},append:function(){return this.domManip(arguments,function(b){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&Z(this,b).appendChild(b)})},prepend:function(){return this.domManip(arguments,function(b){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var a=Z(this,b);a.insertBefore(b,a.firstChild)}})},before:function(){return this.domManip(arguments,function(b){this.parentNode&&this.parentNode.insertBefore(b,this)})},after:function(){return this.domManip(arguments,
- function(b){this.parentNode&&this.parentNode.insertBefore(b,this.nextSibling)})},remove:function(b,a){for(var e,c=b?d.filter(b,this):this,h=0;null!=(e=c[h]);h++)a||1!==e.nodeType||d.cleanData(F(e)),e.parentNode&&(a&&d.contains(e.ownerDocument,e)&&U(F(e,"script")),e.parentNode.removeChild(e));return this},empty:function(){for(var b,a=0;null!=(b=this[a]);a++){for(1===b.nodeType&&d.cleanData(F(b,!1));b.firstChild;)b.removeChild(b.firstChild);b.options&&d.nodeName(b,"select")&&(b.options.length=0)}return this},
- clone:function(b,a){return b=null==b?!1:b,a=null==a?b:a,this.map(function(){return d.clone(this,b,a)})},html:function(b){return d.access(this,function(b){var a=this[0]||{},e=0,h=this.length;if(b===c)return 1===a.nodeType?a.innerHTML.replace(kc,""):c;if(!("string"!=typeof b||mc.test(b)||!d.support.htmlSerialize&&vb.test(b)||!d.support.leadingWhitespace&&ab.test(b)||Y[(xb.exec(b)||["",""])[1].toLowerCase()])){b=b.replace(wb,"<$1></$2>");try{for(;h>e;e++)a=this[e]||{},1===a.nodeType&&(d.cleanData(F(a,
- !1)),a.innerHTML=b);a=0}catch(g){}}a&&this.empty().append(b)},null,b,arguments.length)},replaceWith:function(){var b=d.map(this,function(b){return[b.nextSibling,b.parentNode]}),a=0;return this.domManip(arguments,function(e){var c=b[a++],h=b[a++];h&&(c&&c.parentNode!==h&&(c=this.nextSibling),d(this).remove(),h.insertBefore(e,c))},!0),a?this:this.remove()},detach:function(b){return this.remove(b,!0)},domManip:function(b,a,e){b=nb.apply([],b);var c,h,g,f,p=0,n=this.length,t=this,q=n-1,x=b[0],v=d.isFunction(x);
- if(v||!(1>=n||"string"!=typeof x||d.support.checkClone)&&nc.test(x))return this.each(function(d){var c=t.eq(d);v&&(b[0]=x.call(this,d,c.html()));c.domManip(b,a,e)});if(n&&(f=d.buildFragment(b,this[0].ownerDocument,!1,!e&&this),c=f.firstChild,1===f.childNodes.length&&(f=c),c)){g=d.map(F(f,"script"),ca);for(h=g.length;n>p;p++)c=f,p!==q&&(c=d.clone(c,!0,!0),h&&d.merge(g,F(c,"script"))),a.call(this[p],c,p);if(h){f=g[g.length-1].ownerDocument;d.map(g,qa);for(p=0;h>p;p++)c=g[p],zb.test(c.type||"")&&!d._data(c,
- "globalEval")&&d.contains(f,c)&&(c.src?d._evalUrl(c.src):d.globalEval((c.text||c.textContent||c.innerHTML||"").replace(oc,"")))}f=c=null}return this}});d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,a){d.fn[b]=function(b){for(var e=0,c=[],h=d(b),g=h.length-1;g>=e;e++)b=e===g?this:this.clone(!0),d(h[e])[a](b),Wa.apply(c,b.get());return this.pushStack(c)}});d.extend({clone:function(b,a,e){var c,h,g,f,p,n=d.contains(b.ownerDocument,
- b);if(d.support.html5Clone||d.isXMLDoc(b)||!vb.test("<"+b.nodeName+">")?g=b.cloneNode(!0):(bb.innerHTML=b.outerHTML,bb.removeChild(g=bb.firstChild)),!(d.support.noCloneEvent&&d.support.noCloneChecked||1!==b.nodeType&&11!==b.nodeType||d.isXMLDoc(b))){c=F(g);p=F(b);for(f=0;null!=(h=p[f]);++f)if(c[f]){var t=c[f],q=void 0,x=void 0,v=void 0;if(1===t.nodeType){if(q=t.nodeName.toLowerCase(),!d.support.noCloneEvent&&t[d.expando]){v=d._data(t);for(x in v.events)d.removeEvent(t,x,v.handle);t.removeAttribute(d.expando)}"script"===
- q&&t.text!==h.text?(ca(t).text=h.text,qa(t)):"object"===q?(t.parentNode&&(t.outerHTML=h.outerHTML),d.support.html5Clone&&h.innerHTML&&!d.trim(t.innerHTML)&&(t.innerHTML=h.innerHTML)):"input"===q&&Ua.test(h.type)?(t.defaultChecked=t.checked=h.checked,t.value!==h.value&&(t.value=h.value)):"option"===q?t.defaultSelected=t.selected=h.defaultSelected:("input"===q||"textarea"===q)&&(t.defaultValue=h.defaultValue)}}}if(a)if(e){p=p||F(b);c=c||F(g);for(f=0;null!=(h=p[f]);f++)ra(h,c[f])}else ra(b,g);return c=
- F(g,"script"),0<c.length&&U(c,!n&&F(b,"script")),g},buildFragment:function(b,a,e,c){for(var h,g,f,p,t,n,q,x=b.length,v=ea(a),r=[],u=0;x>u;u++)if(g=b[u],g||0===g)if("object"===d.type(g))d.merge(r,g.nodeType?[g]:g);else if(lc.test(g)){p=p||v.appendChild(a.createElement("div"));t=(xb.exec(g)||["",""])[1].toLowerCase();q=Y[t]||Y._default;p.innerHTML=q[1]+g.replace(wb,"<$1></$2>")+q[2];for(h=q[0];h--;)p=p.lastChild;if(!d.support.leadingWhitespace&&ab.test(g)&&r.push(a.createTextNode(ab.exec(g)[0])),!d.support.tbody)for(h=
- (g="table"!==t||yb.test(g)?"<table>"!==q[1]||yb.test(g)?0:p:p.firstChild)&&g.childNodes.length;h--;)d.nodeName(n=g.childNodes[h],"tbody")&&!n.childNodes.length&&g.removeChild(n);d.merge(r,p.childNodes);for(p.textContent="";p.firstChild;)p.removeChild(p.firstChild);p=v.lastChild}else r.push(a.createTextNode(g));p&&v.removeChild(p);d.support.appendChecked||d.grep(F(r,"input"),ma);for(u=0;g=r[u++];)if((!c||-1===d.inArray(g,c))&&(f=d.contains(g.ownerDocument,g),p=F(v.appendChild(g),"script"),f&&U(p),
- e))for(h=0;g=p[h++];)zb.test(g.type||"")&&e.push(g);return v},cleanData:function(b,a){for(var e,c,h,g,f=0,p=d.expando,t=d.cache,n=d.support.deleteExpando,q=d.event.special;null!=(e=b[f]);f++)if((a||d.acceptData(e))&&(h=e[p],g=h&&t[h])){if(g.events)for(c in g.events)q[c]?d.event.remove(e,c):d.removeEvent(e,c,g.handle);t[h]&&(delete t[h],n?delete e[p]:typeof e.removeAttribute!==H?e.removeAttribute(p):e[p]=null,ya.push(h))}},_evalUrl:function(b){return d.ajax({url:b,type:"GET",dataType:"script",async:!1,
- global:!1,"throws":!0})}});d.fn.extend({wrapAll:function(b){if(d.isFunction(b))return this.each(function(a){d(this).wrapAll(b.call(this,a))});if(this[0]){var a=d(b,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&a.insertBefore(this[0]);a.map(function(){for(var b=this;b.firstChild&&1===b.firstChild.nodeType;)b=b.firstChild;return b}).append(this)}return this},wrapInner:function(b){return d.isFunction(b)?this.each(function(a){d(this).wrapInner(b.call(this,a))}):this.each(function(){var a=
- d(this),e=a.contents();e.length?e.wrapAll(b):a.append(b)})},wrap:function(b){var a=d.isFunction(b);return this.each(function(e){d(this).wrapAll(a?b.call(this,e):b)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()}});var Ia,ta,ua,cb=/alpha\([^)]*\)/i,pc=/opacity\s*=\s*([^)]*)/,qc=/^(top|right|bottom|left)$/,rc=/^(none|table(?!-c[ea]).+)/,Ab=/^margin/,Ob=RegExp("^("+Qa+")(.*)$","i"),Ma=RegExp("^("+Qa+")(?!px)[a-z%]+$","i"),
- sc=RegExp("^([+-])=("+Qa+")","i"),kb={BODY:"block"},tc={position:"absolute",visibility:"hidden",display:"block"},Bb={letterSpacing:0,fontWeight:400},sa=["Top","Right","Bottom","Left"],jb=["Webkit","O","Moz","ms"];d.fn.extend({css:function(b,a){return d.access(this,function(b,a,e){var k,h={},g=0;if(d.isArray(a)){k=ta(b);for(e=a.length;e>g;g++)h[a[g]]=d.css(b,a[g],!1,k);return h}return e!==c?d.style(b,a,e):d.css(b,a)},b,a,1<arguments.length)},show:function(){return fa(this,!0)},hide:function(){return fa(this)},
- toggle:function(b){return"boolean"==typeof b?b?this.show():this.hide():this.each(function(){J(this)?d(this).show():d(this).hide()})}});d.extend({cssHooks:{opacity:{get:function(b,a){if(a){var e=ua(b,"opacity");return""===e?"1":e}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(b,a,e,h){if(b&&3!==b.nodeType&&8!==b.nodeType&&b.style){var g,
- f,p,t=d.camelCase(a),n=b.style;if(a=d.cssProps[t]||(d.cssProps[t]=q(n,t)),p=d.cssHooks[a]||d.cssHooks[t],e===c)return p&&"get"in p&&(g=p.get(b,!1,h))!==c?g:n[a];if(f=typeof e,"string"===f&&(g=sc.exec(e))&&(e=(g[1]+1)*g[2]+parseFloat(d.css(b,a)),f="number"),!(null==e||"number"===f&&isNaN(e)||("number"!==f||d.cssNumber[t]||(e+="px"),d.support.clearCloneStyle||""!==e||0!==a.indexOf("background")||(n[a]="inherit"),p&&"set"in p&&(e=p.set(b,e,h))===c)))try{n[a]=e}catch(x){}}},css:function(b,a,e,h){var g,
- f,p,t=d.camelCase(a);return a=d.cssProps[t]||(d.cssProps[t]=q(b.style,t)),p=d.cssHooks[a]||d.cssHooks[t],p&&"get"in p&&(f=p.get(b,!0,e)),f===c&&(f=ua(b,a,h)),"normal"===f&&a in Bb&&(f=Bb[a]),""===e||e?(g=parseFloat(f),!0===e||d.isNumeric(g)?g||0:f):f}});a.getComputedStyle?(ta=function(b){return a.getComputedStyle(b,null)},ua=function(b,a,e){var h,g,f,p=(e=e||ta(b))?e.getPropertyValue(a)||e[a]:c,t=b.style;return e&&(""!==p||d.contains(b.ownerDocument,b)||(p=d.style(b,a)),Ma.test(p)&&Ab.test(a)&&(h=
- t.width,g=t.minWidth,f=t.maxWidth,t.minWidth=t.maxWidth=t.width=p,p=e.width,t.width=h,t.minWidth=g,t.maxWidth=f)),p}):B.documentElement.currentStyle&&(ta=function(b){return b.currentStyle},ua=function(b,a,e){var d,h,g;e=(e=e||ta(b))?e[a]:c;var f=b.style;return null==e&&f&&f[a]&&(e=f[a]),Ma.test(e)&&!qc.test(a)&&(d=f.left,h=b.runtimeStyle,g=h&&h.left,g&&(h.left=b.currentStyle.left),f.left="fontSize"===a?"1em":e,e=f.pixelLeft+"px",f.left=d,g&&(h.left=g)),""===e?"auto":e});d.each(["height","width"],
- function(b,a){d.cssHooks[a]={get:function(b,e,h){return e?0===b.offsetWidth&&rc.test(d.css(b,"display"))?d.swap(b,tc,function(){return ga(b,a,h)}):ga(b,a,h):c},set:function(b,e,c){var h=c&&ta(b);return T(b,e,c?L(b,a,c,d.support.boxSizing&&"border-box"===d.css(b,"boxSizing",!1,h),h):0)}}});d.support.opacity||(d.cssHooks.opacity={get:function(b,a){return pc.test((a&&b.currentStyle?b.currentStyle.filter:b.style.filter)||"")?0.01*parseFloat(RegExp.$1)+"":a?"1":""},set:function(b,a){var e=b.style,c=b.currentStyle,
- h=d.isNumeric(a)?"alpha(opacity="+100*a+")":"",g=c&&c.filter||e.filter||"";e.zoom=1;(1<=a||""===a)&&""===d.trim(g.replace(cb,""))&&e.removeAttribute&&(e.removeAttribute("filter"),""===a||c&&!c.filter)||(e.filter=cb.test(g)?g.replace(cb,h):g+" "+h)}});d(function(){d.support.reliableMarginRight||(d.cssHooks.marginRight={get:function(b,a){return a?d.swap(b,{display:"inline-block"},ua,[b,"marginRight"]):c}});!d.support.pixelPosition&&d.fn.position&&d.each(["top","left"],function(b,a){d.cssHooks[a]={get:function(b,
- e){return e?(e=ua(b,a),Ma.test(e)?d(b).position()[a]+"px":e):c}}})});d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(b){return 0>=b.offsetWidth&&0>=b.offsetHeight||!d.support.reliableHiddenOffsets&&"none"===(b.style&&b.style.display||d.css(b,"display"))},d.expr.filters.visible=function(b){return!d.expr.filters.hidden(b)});d.each({margin:"",padding:"",border:"Width"},function(b,a){d.cssHooks[b+a]={expand:function(e){var d=0,c={};for(e="string"==typeof e?e.split(" "):[e];4>d;d++)c[b+sa[d]+a]=
- e[d]||e[d-2]||e[0];return c}};Ab.test(b)||(d.cssHooks[b+a].set=T)});var uc=/%20/g,Pb=/\[\]$/,Cb=/\r?\n/g,vc=/^(?:submit|button|image|reset|file)$/i,wc=/^(?:input|select|textarea|keygen)/i;d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var b=d.prop(this,"elements");return b?d.makeArray(b):this}).filter(function(){var b=this.type;return this.name&&!d(this).is(":disabled")&&wc.test(this.nodeName)&&!vc.test(b)&&(this.checked||
- !Ua.test(b))}).map(function(b,a){var e=d(this).val();return null==e?null:d.isArray(e)?d.map(e,function(b){return{name:a.name,value:b.replace(Cb,"\r\n")}}):{name:a.name,value:e.replace(Cb,"\r\n")}}).get()}});d.param=function(b,a){var e,h=[],g=function(b,a){a=d.isFunction(a)?a():null==a?"":a;h[h.length]=encodeURIComponent(b)+"="+encodeURIComponent(a)};if(a===c&&(a=d.ajaxSettings&&d.ajaxSettings.traditional),d.isArray(b)||b.jquery&&!d.isPlainObject(b))d.each(b,function(){g(this.name,this.value)});else for(e in b)P(e,
- b[e],a,g);return h.join("&").replace(uc,"+")};d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(b,a){d.fn[a]=function(b,e){return 0<arguments.length?this.on(a,null,b,e):this.trigger(a)}});d.fn.extend({hover:function(b,a){return this.mouseenter(b).mouseleave(a||b)},bind:function(b,a,e){return this.on(b,null,a,e)},unbind:function(b,
- a){return this.off(b,null,a)},delegate:function(b,a,e,d){return this.on(a,b,e,d)},undelegate:function(b,a,e){return 1===arguments.length?this.off(b,"**"):this.off(a,b||"**",e)}});var xa,la,db=d.now(),eb=/\?/,xc=/#.*$/,Db=/([?&])_=[^&]*/,yc=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,zc=/^(?:GET|HEAD)$/,Ac=/^\/\//,Eb=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Fb=d.fn.load,Gb={},Va={},Hb="*/".concat("*");try{la=Oa.href}catch(Ec){la=B.createElement("a"),la.href="",la=la.href}xa=Eb.exec(la.toLowerCase())||[];
- d.fn.load=function(b,a,e){if("string"!=typeof b&&Fb)return Fb.apply(this,arguments);var h,g,f,p=this,t=b.indexOf(" ");return 0<=t&&(h=b.slice(t,b.length),b=b.slice(0,t)),d.isFunction(a)?(e=a,a=c):a&&"object"==typeof a&&(f="POST"),0<p.length&&d.ajax({url:b,type:f,dataType:"html",data:a}).done(function(b){g=arguments;p.html(h?d("<div>").append(d.parseHTML(b)).find(h):b)}).complete(e&&function(b,a){p.each(e,g||[b.responseText,a,b])}),this};d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),
- function(b,a){d.fn[a]=function(b){return this.on(a,b)}});d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:la,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xa[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Hb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",
- text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(b,a){return a?g(g(b,d.ajaxSettings),a):g(d.ajaxSettings,b)},ajaxPrefilter:da(Gb),ajaxTransport:da(Va),ajax:function(b,a){function e(b,a,h,g){var k,s,x,A,C=a;if(2!==z){z=2;t&&clearTimeout(t);q=c;p=g||"";D.readyState=0<b?4:0;g=200<=b&&300>b||304===b;if(h){x=v;for(var w=D,N,B,O,H,J=x.contents,G=x.dataTypes;"*"===G[0];)G.shift(),
- B===c&&(B=x.mimeType||w.getResponseHeader("Content-Type"));if(B)for(H in J)if(J[H]&&J[H].test(B)){G.unshift(H);break}if(G[0]in h)O=G[0];else{for(H in h){if(!G[0]||x.converters[H+" "+G[0]]){O=H;break}N||(N=H)}O=O||N}x=O?(O!==G[0]&&G.unshift(O),h[O]):c}var I;a:{h=v;N=x;B=D;O=g;var F,Fa,L;x={};w=h.dataTypes.slice();if(w[1])for(F in h.converters)x[F.toLowerCase()]=h.converters[F];for(H=w.shift();H;)if(h.responseFields[H]&&(B[h.responseFields[H]]=N),!L&&O&&h.dataFilter&&(N=h.dataFilter(N,h.dataType)),
- L=H,H=w.shift())if("*"===H)H=L;else if("*"!==L&&L!==H){if(F=x[L+" "+H]||x["* "+H],!F)for(I in x)if(Fa=I.split(" "),Fa[1]===H&&(F=x[L+" "+Fa[0]]||x["* "+Fa[0]])){!0===F?F=x[I]:!0!==x[I]&&(H=Fa[0],w.unshift(Fa[1]));break}if(!0!==F)if(F&&h["throws"])N=F(N);else try{N=F(N)}catch(P){I={state:"parsererror",error:F?P:"No conversion from "+L+" to "+H};break a}}I={state:"success",data:N}}x=I;g?(v.ifModified&&(A=D.getResponseHeader("Last-Modified"),A&&(d.lastModified[f]=A),A=D.getResponseHeader("etag"),A&&
- (d.etag[f]=A)),204===b||"HEAD"===v.type?C="nocontent":304===b?C="notmodified":(C=x.state,k=x.data,s=x.error,g=!s)):(s=C,(b||!C)&&(C="error",0>b&&(b=0)));D.status=b;D.statusText=(a||C)+"";g?R.resolveWith(r,[k,C,D]):R.rejectWith(r,[D,C,s]);D.statusCode(ia);ia=c;n&&u.trigger(g?"ajaxSuccess":"ajaxError",[D,v,g?k:s]);y.fireWith(r,[D,C]);n&&(u.trigger("ajaxComplete",[D,v]),--d.active||d.event.trigger("ajaxStop"))}}"object"==typeof b&&(a=b,b=c);a=a||{};var h,g,f,p,t,n,q,x,v=d.ajaxSetup({},a),r=v.context||
- v,u=v.context&&(r.nodeType||r.jquery)?d(r):d.event,R=d.Deferred(),y=d.Callbacks("once memory"),ia=v.statusCode||{},w={},N={},z=0,B="canceled",D={readyState:0,getResponseHeader:function(b){var a;if(2===z){if(!x)for(x={};a=yc.exec(p);)x[a[1].toLowerCase()]=a[2];a=x[b.toLowerCase()]}return null==a?null:a},getAllResponseHeaders:function(){return 2===z?p:null},setRequestHeader:function(b,a){var e=b.toLowerCase();return z||(b=N[e]=N[e]||b,w[b]=a),this},overrideMimeType:function(b){return z||(v.mimeType=
- b),this},statusCode:function(b){var a;if(b)if(2>z)for(a in b)ia[a]=[ia[a],b[a]];else D.always(b[D.status]);return this},abort:function(b){b=b||B;return q&&q.abort(b),e(0,b),this}};if(R.promise(D).complete=y.add,D.success=D.done,D.error=D.fail,v.url=((b||v.url||la)+"").replace(xc,"").replace(Ac,xa[1]+"//"),v.type=a.method||a.type||v.method||v.type,v.dataTypes=d.trim(v.dataType||"*").toLowerCase().match(ba)||[""],null==v.crossDomain&&(h=Eb.exec(v.url.toLowerCase()),v.crossDomain=!(!h||h[1]===xa[1]&&
- h[2]===xa[2]&&(h[3]||("http:"===h[1]?"80":"443"))===(xa[3]||("http:"===xa[1]?"80":"443")))),v.data&&v.processData&&"string"!=typeof v.data&&(v.data=d.param(v.data,v.traditional)),ha(Gb,v,a,D),2===z)return D;(n=v.global)&&0===d.active++&&d.event.trigger("ajaxStart");v.type=v.type.toUpperCase();v.hasContent=!zc.test(v.type);f=v.url;v.hasContent||(v.data&&(f=v.url+=(eb.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(v.url=Db.test(f)?f.replace(Db,"$1_="+db++):f+(eb.test(f)?"&":"?")+"_="+db++));
- v.ifModified&&(d.lastModified[f]&&D.setRequestHeader("If-Modified-Since",d.lastModified[f]),d.etag[f]&&D.setRequestHeader("If-None-Match",d.etag[f]));(v.data&&v.hasContent&&!1!==v.contentType||a.contentType)&&D.setRequestHeader("Content-Type",v.contentType);D.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+Hb+"; q=0.01":""):v.accepts["*"]);for(g in v.headers)D.setRequestHeader(g,v.headers[g]);if(v.beforeSend&&(!1===v.beforeSend.call(r,
- D,v)||2===z))return D.abort();B="abort";for(g in{success:1,error:1,complete:1})D[g](v[g]);if(q=ha(Va,v,a,D)){D.readyState=1;n&&u.trigger("ajaxSend",[D,v]);v.async&&0<v.timeout&&(t=setTimeout(function(){D.abort("timeout")},v.timeout));try{z=1,q.send(w,e)}catch(O){if(!(2>z))throw O;e(-1,O)}}else e(-1,"No Transport");return D},getJSON:function(b,a,e){return d.get(b,a,e,"json")},getScript:function(b,a){return d.get(b,c,a,"script")}});d.each(["get","post"],function(b,a){d[a]=function(b,e,h,g){return d.isFunction(e)&&
- (g=g||h,h=e,e=c),d.ajax({url:b,type:a,dataType:g,data:e,success:h})}});d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(b){return d.globalEval(b),b}}});d.ajaxPrefilter("script",function(b){b.cache===c&&(b.cache=!1);b.crossDomain&&(b.type="GET",b.global=!1)});d.ajaxTransport("script",function(b){if(b.crossDomain){var a,e=B.head||d("head")[0]||B.documentElement;
- return{send:function(d,c){a=B.createElement("script");a.async=!0;b.scriptCharset&&(a.charset=b.scriptCharset);a.src=b.url;a.onload=a.onreadystatechange=function(b,e){(e||!a.readyState||/loaded|complete/.test(a.readyState))&&(a.onload=a.onreadystatechange=null,a.parentNode&&a.parentNode.removeChild(a),a=null,e||c(200,"success"))};e.insertBefore(a,e.firstChild)},abort:function(){a&&a.onload(c,!0)}}}});var Ib=[],fb=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var b=Ib.pop()||
- d.expando+"_"+db++;return this[b]=!0,b}});d.ajaxPrefilter("json jsonp",function(b,e,h){var g,f,p,t=!1!==b.jsonp&&(fb.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&fb.test(b.data)&&"data");return t||"jsonp"===b.dataTypes[0]?(g=b.jsonpCallback=d.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,t?b[t]=b[t].replace(fb,"$1"+g):!1!==b.jsonp&&(b.url+=(eb.test(b.url)?"&":"?")+b.jsonp+"="+g),b.converters["script json"]=function(){return p||
- d.error(g+" was not called"),p[0]},b.dataTypes[0]="json",f=a[g],a[g]=function(){p=arguments},h.always(function(){a[g]=f;b[g]&&(b.jsonpCallback=e.jsonpCallback,Ib.push(g));p&&d.isFunction(f)&&f(p[0]);p=f=c}),"script"):c});var Ha,La,Bc=0,gb=a.ActiveXObject&&function(){for(var b in Ha)Ha[b](c,!0)};d.ajaxSettings.xhr=a.ActiveXObject?function(){var b;if(!(b=!this.isLocal&&p()))a:{try{b=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(e){}b=void 0}return b}:p;La=d.ajaxSettings.xhr();d.support.cors=
- !!La&&"withCredentials"in La;(La=d.support.ajax=!!La)&&d.ajaxTransport(function(b){if(!b.crossDomain||d.support.cors){var e;return{send:function(h,g){var f,p,t=b.xhr();if(b.username?t.open(b.type,b.url,b.async,b.username,b.password):t.open(b.type,b.url,b.async),b.xhrFields)for(p in b.xhrFields)t[p]=b.xhrFields[p];b.mimeType&&t.overrideMimeType&&t.overrideMimeType(b.mimeType);b.crossDomain||h["X-Requested-With"]||(h["X-Requested-With"]="XMLHttpRequest");try{for(p in h)t.setRequestHeader(p,h[p])}catch(n){}t.send(b.hasContent&&
- b.data||null);e=function(a,h){var p,n,q,v;try{if(e&&(h||4===t.readyState))if(e=c,f&&(t.onreadystatechange=d.noop,gb&&delete Ha[f]),h)4!==t.readyState&&t.abort();else{v={};p=t.status;n=t.getAllResponseHeaders();"string"==typeof t.responseText&&(v.text=t.responseText);try{q=t.statusText}catch(x){q=""}p||!b.isLocal||b.crossDomain?1223===p&&(p=204):p=v.text?200:404}}catch(r){h||g(-1,r)}v&&g(p,q,v,n)};b.async?4===t.readyState?setTimeout(e):(f=++Bc,gb&&(Ha||(Ha={},d(a).unload(gb)),Ha[f]=e),t.onreadystatechange=
- e):e()},abort:function(){e&&e(c,!0)}}}});var za,Ta,Cc=/^(?:toggle|show|hide)$/,Jb=RegExp("^(?:([+-])=|)("+Qa+")([a-z%]*)$","i"),Dc=/queueHooks$/,Na=[function(b,a,c){var h,g,f,p,t,n=this,q={},v=b.style,x=b.nodeType&&J(b),r=d._data(b,"fxshow");c.queue||(p=d._queueHooks(b,"fx"),null==p.unqueued&&(p.unqueued=0,t=p.empty.fire,p.empty.fire=function(){p.unqueued||t()}),p.unqueued++,n.always(function(){n.always(function(){p.unqueued--;d.queue(b,"fx").length||p.empty.fire()})}));1===b.nodeType&&("height"in
- a||"width"in a)&&(c.overflow=[v.overflow,v.overflowX,v.overflowY],"inline"===d.css(b,"display")&&"none"===d.css(b,"float")&&(d.support.inlineBlockNeedsLayout&&"inline"!==na(b.nodeName)?v.zoom=1:v.display="inline-block"));c.overflow&&(v.overflow="hidden",d.support.shrinkWrapBlocks||n.always(function(){v.overflow=c.overflow[0];v.overflowX=c.overflow[1];v.overflowY=c.overflow[2]}));for(h in a)if(g=a[h],Cc.exec(g))if(!(delete a[h],f=f||"toggle"===g,g===(x?"hide":"show")))q[h]=r&&r[h]||d.style(b,h);if(!d.isEmptyObject(q))for(h in r?
- "hidden"in r&&(x=r.hidden):r=d._data(b,"fxshow",{}),f&&(r.hidden=!x),x?d(b).show():n.done(function(){d(b).hide()}),n.done(function(){var a;d._removeData(b,"fxshow");for(a in q)d.style(b,a,q[a])}),q)a=e(x?r[h]:0,h,n),h in r||(r[h]=a.start,x&&(a.end=a.start,a.start="width"===h||"height"===h?1:0))}],Ja={"*":[function(b,a){var e=this.createTween(b,a),c=e.cur(),h=Jb.exec(a),g=h&&h[3]||(d.cssNumber[b]?"":"px"),f=(d.cssNumber[b]||"px"!==g&&+c)&&Jb.exec(d.css(e.elem,b)),p=1,t=20;if(f&&f[3]!==g){g=g||f[3];
- h=h||[];f=+c||1;do p=p||".5",f/=p,d.style(e.elem,b,f+g);while(p!==(p=e.cur()/c)&&1!==p&&--t)}return h&&(f=e.start=+f||+c||0,e.unit=g,e.end=h[1]?f+(h[1]+1)*h[2]:+h[2]),e}]};d.Animation=d.extend(h,{tweener:function(b,a){d.isFunction(b)?(a=b,b=["*"]):b=b.split(" ");for(var e,c=0,h=b.length;h>c;c++)e=b[c],Ja[e]=Ja[e]||[],Ja[e].unshift(a)},prefilter:function(b,a){a?Na.unshift(b):Na.push(b)}});d.Tween=v;v.prototype={constructor:v,init:function(b,a,e,c,h,g){this.elem=b;this.prop=e;this.easing=h||"swing";
- this.options=a;this.start=this.now=this.cur();this.end=c;this.unit=g||(d.cssNumber[e]?"":"px")},cur:function(){var b=v.propHooks[this.prop];return b&&b.get?b.get(this):v.propHooks._default.get(this)},run:function(b){var a,e=v.propHooks[this.prop];return this.pos=a=this.options.duration?d.easing[this.easing](b,this.options.duration*b,0,1,this.options.duration):b,this.now=(this.end-this.start)*a+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),e&&e.set?e.set(this):v.propHooks._default.set(this),
- this}};v.prototype.init.prototype=v.prototype;v.propHooks={_default:{get:function(b){var a;return null==b.elem[b.prop]||b.elem.style&&null!=b.elem.style[b.prop]?(a=d.css(b.elem,b.prop,""),a&&"auto"!==a?a:0):b.elem[b.prop]},set:function(b){d.fx.step[b.prop]?d.fx.step[b.prop](b):b.elem.style&&(null!=b.elem.style[d.cssProps[b.prop]]||d.cssHooks[b.prop])?d.style(b.elem,b.prop,b.now+b.unit):b.elem[b.prop]=b.now}}};v.propHooks.scrollTop=v.propHooks.scrollLeft={set:function(b){b.elem.nodeType&&b.elem.parentNode&&
- (b.elem[b.prop]=b.now)}};d.each(["toggle","show","hide"],function(b,a){var e=d.fn[a];d.fn[a]=function(b,d,c){return null==b||"boolean"==typeof b?e.apply(this,arguments):this.animate(R(a,!0),b,d,c)}});d.fn.extend({fadeTo:function(b,a,e,d){return this.filter(J).css("opacity",0).show().end().animate({opacity:a},b,e,d)},animate:function(b,a,e,c){var g=d.isEmptyObject(b),f=d.speed(a,e,c);a=function(){var a=h(this,d.extend({},b),f);(g||d._data(this,"finish"))&&a.stop(!0)};return a.finish=a,g||!1===f.queue?
- this.each(a):this.queue(f.queue,a)},stop:function(b,a,e){var h=function(b){var a=b.stop;delete b.stop;a(e)};return"string"!=typeof b&&(e=a,a=b,b=c),a&&!1!==b&&this.queue(b||"fx",[]),this.each(function(){var a=!0,c=null!=b&&b+"queueHooks",g=d.timers,k=d._data(this);if(c)k[c]&&k[c].stop&&h(k[c]);else for(c in k)k[c]&&k[c].stop&&Dc.test(c)&&h(k[c]);for(c=g.length;c--;)g[c].elem!==this||null!=b&&g[c].queue!==b||(g[c].anim.stop(e),a=!1,g.splice(c,1));(a||!e)&&d.dequeue(this,b)})},finish:function(b){return!1!==
- b&&(b=b||"fx"),this.each(function(){var a,e=d._data(this),c=e[b+"queue"];a=e[b+"queueHooks"];var h=d.timers,g=c?c.length:0;e.finish=!0;d.queue(this,b,[]);a&&a.stop&&a.stop.call(this,!0);for(a=h.length;a--;)h[a].elem===this&&h[a].queue===b&&(h[a].anim.stop(!0),h.splice(a,1));for(a=0;g>a;a++)c[a]&&c[a].finish&&c[a].finish.call(this);delete e.finish})}});d.each({slideDown:R("show"),slideUp:R("hide"),slideToggle:R("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},
- function(b,a){d.fn[b]=function(b,e,d){return this.animate(a,b,e,d)}});d.speed=function(b,a,e){var c=b&&"object"==typeof b?d.extend({},b):{complete:e||!e&&a||d.isFunction(b)&&b,duration:b,easing:e&&a||a&&!d.isFunction(a)&&a};return c.duration=d.fx.off?0:"number"==typeof c.duration?c.duration:c.duration in d.fx.speeds?d.fx.speeds[c.duration]:d.fx.speeds._default,(null==c.queue||!0===c.queue)&&(c.queue="fx"),c.old=c.complete,c.complete=function(){d.isFunction(c.old)&&c.old.call(this);c.queue&&d.dequeue(this,
- c.queue)},c};d.easing={linear:function(b){return b},swing:function(b){return 0.5-Math.cos(b*Math.PI)/2}};d.timers=[];d.fx=v.prototype.init;d.fx.tick=function(){var b,a=d.timers,e=0;for(za=d.now();a.length>e;e++)b=a[e],b()||a[e]!==b||a.splice(e--,1);a.length||d.fx.stop();za=c};d.fx.timer=function(b){b()&&d.timers.push(b)&&d.fx.start()};d.fx.interval=13;d.fx.start=function(){Ta||(Ta=setInterval(d.fx.tick,d.fx.interval))};d.fx.stop=function(){clearInterval(Ta);Ta=null};d.fx.speeds={slow:600,fast:200,
- _default:400};d.fx.step={};d.expr&&d.expr.filters&&(d.expr.filters.animated=function(b){return d.grep(d.timers,function(a){return b===a.elem}).length});d.fn.offset=function(b){if(arguments.length)return b===c?this:this.each(function(a){d.offset.setOffset(this,b,a)});var a,e,h={top:0,left:0},g=this[0],f=g&&g.ownerDocument;if(f)return a=f.documentElement,d.contains(a,g)?(typeof g.getBoundingClientRect!==H&&(h=g.getBoundingClientRect()),e=ia(f),{top:h.top+(e.pageYOffset||a.scrollTop)-(a.clientTop||0),
- left:h.left+(e.pageXOffset||a.scrollLeft)-(a.clientLeft||0)}):h};d.offset={setOffset:function(b,a,e){var c=d.css(b,"position");"static"===c&&(b.style.position="relative");var h=d(b),g=h.offset(),f=d.css(b,"top"),p=d.css(b,"left"),t={},n={},v,q;("absolute"===c||"fixed"===c)&&-1<d.inArray("auto",[f,p])?(n=h.position(),v=n.top,q=n.left):(v=parseFloat(f)||0,q=parseFloat(p)||0);d.isFunction(a)&&(a=a.call(b,e,g));null!=a.top&&(t.top=a.top-g.top+v);null!=a.left&&(t.left=a.left-g.left+q);"using"in a?a.using.call(b,
- t):h.css(t)}};d.fn.extend({position:function(){if(this[0]){var b,a,e={top:0,left:0},c=this[0];return"fixed"===d.css(c,"position")?a=c.getBoundingClientRect():(b=this.offsetParent(),a=this.offset(),d.nodeName(b[0],"html")||(e=b.offset()),e.top+=d.css(b[0],"borderTopWidth",!0),e.left+=d.css(b[0],"borderLeftWidth",!0)),{top:a.top-e.top-d.css(c,"marginTop",!0),left:a.left-e.left-d.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var b=this.offsetParent||mb;b&&!d.nodeName(b,
- "html")&&"static"===d.css(b,"position");)b=b.offsetParent;return b||mb})}});d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,a){var e=/Y/.test(a);d.fn[b]=function(h){return d.access(this,function(b,h,g){var f=ia(b);return g===c?f?a in f?f[a]:f.document.documentElement[h]:b[h]:(f?f.scrollTo(e?d(f).scrollLeft():g,e?g:d(f).scrollTop()):b[h]=g,c)},b,h,arguments.length,null)}});d.each({Height:"height",Width:"width"},function(b,a){d.each({padding:"inner"+b,content:a,"":"outer"+b},function(e,
- h){d.fn[h]=function(h,g){var f=arguments.length&&(e||"boolean"!=typeof h),p=e||(!0===h||!0===g?"margin":"border");return d.access(this,function(a,e,h){var g;return d.isWindow(a)?a.document.documentElement["client"+b]:9===a.nodeType?(g=a.documentElement,Math.max(a.body["scroll"+b],g["scroll"+b],a.body["offset"+b],g["offset"+b],g["client"+b])):h===c?d.css(a,e,p):d.style(a,e,h,p)},a,f?h:c,f,null)}})});d.fn.size=function(){return this.length};d.fn.andSelf=d.fn.addBack;"object"==typeof module&&module&&
- "object"==typeof module.exports?module.exports=d:(a.jQuery=a.$=d,"function"==typeof define&&define.amd&&define("jquery",[],function(){return d}))})(window);!function(){var a=this,c=a._,n={},f=Array.prototype,u=Object.prototype,y=f.push,w=f.slice,r=f.concat,z=u.toString,G=u.hasOwnProperty,I=f.forEach,S=f.map,W=f.reduce,ea=f.reduceRight,Z=f.filter,ca=f.every,qa=f.some,U=f.indexOf,ra=f.lastIndexOf,u=Array.isArray,F=Object.keys,ma=Function.prototype.bind,q=function(a){return a instanceof q?a:this instanceof
- q?(this._wrapped=a,void 0):new q(a)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=q),exports._=q):a._=q;q.VERSION="1.5.0";var J=q.each=q.forEach=function(a,c,g){if(null!=a)if(I&&a.forEach===I)a.forEach(c,g);else if(a.length===+a.length)for(var f=0,p=a.length;p>f&&c.call(g,a[f],f,a)!==n;f++);else for(f in a)if(q.has(a,f)&&c.call(g,a[f],f,a)===n)break};q.map=q.collect=function(a,c,g){var f=[];return null==a?f:S&&a.map===S?a.map(c,g):(J(a,function(a,
- e,p){f.push(c.call(g,a,e,p))}),f)};q.reduce=q.foldl=q.inject=function(a,c,g,f){var p=2<arguments.length;if(null==a&&(a=[]),W&&a.reduce===W)return f&&(c=q.bind(c,f)),p?a.reduce(c,g):a.reduce(c);if(J(a,function(a,e,n){p?g=c.call(f,g,a,e,n):(g=a,p=!0)}),!p)throw new TypeError("Reduce of empty array with no initial value");return g};q.reduceRight=q.foldr=function(a,c,g,f){var p=2<arguments.length;if(null==a&&(a=[]),ea&&a.reduceRight===ea)return f&&(c=q.bind(c,f)),p?a.reduceRight(c,g):a.reduceRight(c);
- var n=a.length;if(n!==+n)var x=q.keys(a),n=x.length;if(J(a,function(q,r,u){r=x?x[--n]:--n;p?g=c.call(f,g,a[r],r,u):(g=a[r],p=!0)}),!p)throw new TypeError("Reduce of empty array with no initial value");return g};q.find=q.detect=function(a,c,g){var f;return fa(a,function(a,e,p){return c.call(g,a,e,p)?(f=a,!0):void 0}),f};q.filter=q.select=function(a,c,g){var f=[];return null==a?f:Z&&a.filter===Z?a.filter(c,g):(J(a,function(a,e,p){c.call(g,a,e,p)&&f.push(a)}),f)};q.reject=function(a,c,g){return q.filter(a,
- function(a,e,f){return!c.call(g,a,e,f)},g)};q.every=q.all=function(a,c,g){c||(c=q.identity);var f=!0;return null==a?f:ca&&a.every===ca?a.every(c,g):(J(a,function(a,e,p){return(f=f&&c.call(g,a,e,p))?void 0:n}),!!f)};var fa=q.some=q.any=function(a,c,g){c||(c=q.identity);var f=!1;return null==a?f:qa&&a.some===qa?a.some(c,g):(J(a,function(a,e,p){return f||(f=c.call(g,a,e,p))?n:void 0}),!!f)};q.contains=q.include=function(a,c){return null==a?!1:U&&a.indexOf===U?-1!=a.indexOf(c):fa(a,function(a){return a===
- c})};q.invoke=function(a,c){var g=w.call(arguments,2),f=q.isFunction(c);return q.map(a,function(a){return(f?c:a[c]).apply(a,g)})};q.pluck=function(a,c){return q.map(a,function(a){return a[c]})};q.where=function(a,c,g){return q.isEmpty(c)?g?void 0:[]:q[g?"find":"filter"](a,function(a){for(var e in c)if(c[e]!==a[e])return!1;return!0})};q.findWhere=function(a,c){return q.where(a,c,!0)};q.max=function(a,c,g){if(!c&&q.isArray(a)&&a[0]===+a[0]&&65535>a.length)return Math.max.apply(Math,a);if(!c&&q.isEmpty(a))return-1/
- 0;var f={computed:-1/0,value:-1/0};return J(a,function(a,e,p){e=c?c.call(g,a,e,p):a;e>f.computed&&(f={value:a,computed:e})}),f.value};q.min=function(a,c,g){if(!c&&q.isArray(a)&&a[0]===+a[0]&&65535>a.length)return Math.min.apply(Math,a);if(!c&&q.isEmpty(a))return 1/0;var f={computed:1/0,value:1/0};return J(a,function(a,e,p){e=c?c.call(g,a,e,p):a;e<f.computed&&(f={value:a,computed:e})}),f.value};q.shuffle=function(a){var c,g=0,f=[];return J(a,function(a){c=q.random(g++);f[g-1]=f[c];f[c]=a}),f};var T=
- function(a){return q.isFunction(a)?a:function(c){return c[a]}};q.sortBy=function(a,c,g){var f=T(c);return q.pluck(q.map(a,function(a,e,c){return{value:a,index:e,criteria:f.call(g,a,e,c)}}).sort(function(a,e){var c=a.criteria,g=e.criteria;if(c!==g){if(c>g||void 0===c)return 1;if(g>c||void 0===g)return-1}return a.index<e.index?-1:1}),"value")};var L=function(a,c,g,f){var p={},n=T(null==c?q.identity:c);return J(a,function(c,h){var q=n.call(g,c,h,a);f(p,q,c)}),p};q.groupBy=function(a,c,g){return L(a,
- c,g,function(a,e,c){(q.has(a,e)?a[e]:a[e]=[]).push(c)})};q.countBy=function(a,c,g){return L(a,c,g,function(a,e){q.has(a,e)||(a[e]=0);a[e]++})};q.sortedIndex=function(a,c,g,f){g=null==g?q.identity:T(g);c=g.call(f,c);for(var p=0,n=a.length;n>p;){var x=p+n>>>1;g.call(f,a[x])<c?p=x+1:n=x}return p};q.toArray=function(a){return a?q.isArray(a)?w.call(a):a.length===+a.length?q.map(a,q.identity):q.values(a):[]};q.size=function(a){return null==a?0:a.length===+a.length?a.length:q.keys(a).length};q.first=q.head=
- q.take=function(a,c,g){return null==a?void 0:null==c||g?a[0]:w.call(a,0,c)};q.initial=function(a,c,g){return w.call(a,0,a.length-(null==c||g?1:c))};q.last=function(a,c,g){return null==a?void 0:null==c||g?a[a.length-1]:w.call(a,Math.max(a.length-c,0))};q.rest=q.tail=q.drop=function(a,c,g){return w.call(a,null==c||g?1:c)};q.compact=function(a){return q.filter(a,q.identity)};var ga=function(a,c,g){return c&&q.every(a,q.isArray)?r.apply(g,a):(J(a,function(a){q.isArray(a)||q.isArguments(a)?c?y.apply(g,
- a):ga(a,c,g):g.push(a)}),g)};q.flatten=function(a,c){return ga(a,c,[])};q.without=function(a){return q.difference(a,w.call(arguments,1))};q.uniq=q.unique=function(a,c,g,f){q.isFunction(c)&&(f=g,g=c,c=!1);g=g?q.map(a,g,f):a;var p=[],n=[];return J(g,function(g,f){(c?f&&n[n.length-1]===g:q.contains(n,g))||(n.push(g),p.push(a[f]))}),p};q.union=function(){return q.uniq(q.flatten(arguments,!0))};q.intersection=function(a){var c=w.call(arguments,1);return q.filter(q.uniq(a),function(a){return q.every(c,
- function(e){return 0<=q.indexOf(e,a)})})};q.difference=function(a){var c=r.apply(f,w.call(arguments,1));return q.filter(a,function(a){return!q.contains(c,a)})};q.zip=function(){return q.unzip.apply(q,w.call(arguments))};q.unzip=function(){for(var a=q.max(q.pluck(arguments,"length").concat(0)),c=Array(a),g=0;a>g;g++)c[g]=q.pluck(arguments,""+g);return c};q.object=function(a,c){if(null==a)return{};for(var g={},f=0,p=a.length;p>f;f++)c?g[a[f]]=c[f]:g[a[f][0]]=a[f][1];return g};q.indexOf=function(a,c,
- g){if(null==a)return-1;var f=0,p=a.length;if(g){if("number"!=typeof g)return f=q.sortedIndex(a,c),a[f]===c?f:-1;f=0>g?Math.max(0,p+g):g}if(U&&a.indexOf===U)return a.indexOf(c,g);for(;p>f;f++)if(a[f]===c)return f;return-1};q.lastIndexOf=function(a,c,g){if(null==a)return-1;var f=null!=g;if(ra&&a.lastIndexOf===ra)return f?a.lastIndexOf(c,g):a.lastIndexOf(c);for(g=f?g:a.length;g--;)if(a[g]===c)return g;return-1};q.range=function(a,c,g){1>=arguments.length&&(c=a||0,a=0);g=arguments[2]||1;for(var f=Math.max(Math.ceil((c-
- a)/g),0),p=0,n=Array(f);f>p;)n[p++]=a,a+=g;return n};var na=function(){};q.bind=function(a,c){var g,f;if(ma&&a.bind===ma)return ma.apply(a,w.call(arguments,1));if(!q.isFunction(a))throw new TypeError;return g=w.call(arguments,2),f=function(){if(!(this instanceof f))return a.apply(c,g.concat(w.call(arguments)));na.prototype=a.prototype;var p=new na;na.prototype=null;var n=a.apply(p,g.concat(w.call(arguments)));return Object(n)===n?n:p}};q.partial=function(a){var c=w.call(arguments,1);return function(){return a.apply(this,
- c.concat(w.call(arguments)))}};q.bindAll=function(a){var c=w.call(arguments,1);if(0===c.length)throw Error("bindAll must be passed function names");return J(c,function(c){a[c]=q.bind(a[c],a)}),a};q.memoize=function(a,c){var g={};return c||(c=q.identity),function(){var f=c.apply(this,arguments);return q.has(g,f)?g[f]:g[f]=a.apply(this,arguments)}};q.delay=function(a,c){var g=w.call(arguments,2);return setTimeout(function(){return a.apply(null,g)},c)};q.defer=function(a){return q.delay.apply(q,[a,1].concat(w.call(arguments,
- 1)))};q.throttle=function(a,c,g){var f,p,n,q=null,x=0;g||(g={});var r=function(){x=new Date;q=null;n=a.apply(f,p)};return function(){var u=new Date;x||!1!==g.leading||(x=u);var y=c-(u-x);return f=this,p=arguments,0>=y?(clearTimeout(q),q=null,x=u,n=a.apply(f,p)):q||!1===g.trailing||(q=setTimeout(r,y)),n}};q.debounce=function(a,c,g){var f,p=null;return function(){var n=this,q=arguments,x=g&&!p;return clearTimeout(p),p=setTimeout(function(){p=null;g||(f=a.apply(n,q))},c),x&&(f=a.apply(n,q)),f}};q.once=
- function(a){var c,g=!1;return function(){return g?c:(g=!0,c=a.apply(this,arguments),a=null,c)}};q.wrap=function(a,c){return function(){var g=[a];return y.apply(g,arguments),c.apply(this,g)}};q.compose=function(){var a=arguments;return function(){for(var c=arguments,g=a.length-1;0<=g;g--)c=[a[g].apply(this,c)];return c[0]}};q.after=function(a,c){return function(){return 1>--a?c.apply(this,arguments):void 0}};q.keys=F||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var c=[],g;for(g in a)q.has(a,
- g)&&c.push(g);return c};q.values=function(a){var c=[],g;for(g in a)q.has(a,g)&&c.push(a[g]);return c};q.pairs=function(a){var c=[],g;for(g in a)q.has(a,g)&&c.push([g,a[g]]);return c};q.invert=function(a){var c={},g;for(g in a)q.has(a,g)&&(c[a[g]]=g);return c};q.functions=q.methods=function(a){var c=[],g;for(g in a)q.isFunction(a[g])&&c.push(g);return c.sort()};q.extend=function(a){return J(w.call(arguments,1),function(c){if(c)for(var g in c)a[g]=c[g]}),a};q.pick=function(a){var c={},g=r.apply(f,w.call(arguments,
- 1));return J(g,function(g){g in a&&(c[g]=a[g])}),c};q.omit=function(a){var c={},g=r.apply(f,w.call(arguments,1)),p;for(p in a)q.contains(g,p)||(c[p]=a[p]);return c};q.defaults=function(a){return J(w.call(arguments,1),function(c){if(c)for(var g in c)void 0===a[g]&&(a[g]=c[g])}),a};q.clone=function(a){return q.isObject(a)?q.isArray(a)?a.slice():q.extend({},a):a};q.tap=function(a,c){return c(a),a};var V=function(a,c,g,f){if(a===c)return 0!==a||1/a==1/c;if(null==a||null==c)return a===c;a instanceof q&&
- (a=a._wrapped);c instanceof q&&(c=c._wrapped);var p=z.call(a);if(p!=z.call(c))return!1;switch(p){case "[object String]":return a==String(c);case "[object Number]":return a!=+a?c!=+c:0==a?1/a==1/c:a==+c;case "[object Date]":case "[object Boolean]":return+a==+c;case "[object RegExp]":return a.source==c.source&&a.global==c.global&&a.multiline==c.multiline&&a.ignoreCase==c.ignoreCase}if("object"!=typeof a||"object"!=typeof c)return!1;for(var n=g.length;n--;)if(g[n]==a)return f[n]==c;var n=a.constructor,
- x=c.constructor;if(n!==x&&(!q.isFunction(n)||!(n instanceof n&&q.isFunction(x)&&x instanceof x)))return!1;g.push(a);f.push(c);n=0;x=!0;if("[object Array]"==p){if(n=a.length,x=n==c.length)for(;n--&&(x=V(a[n],c[n],g,f)););}else{for(var r in a)if(q.has(a,r)&&(n++,!(x=q.has(c,r)&&V(a[r],c[r],g,f))))break;if(x){for(r in c)if(q.has(c,r)&&!n--)break;x=!n}}return g.pop(),f.pop(),x};q.isEqual=function(a,c){return V(a,c,[],[])};q.isEmpty=function(a){if(null==a)return!0;if(q.isArray(a)||q.isString(a))return 0===
- a.length;for(var c in a)if(q.has(a,c))return!1;return!0};q.isElement=function(a){return!(!a||1!==a.nodeType)};q.isArray=u||function(a){return"[object Array]"==z.call(a)};q.isObject=function(a){return a===Object(a)};J("Arguments Function String Number Date RegExp".split(" "),function(a){q["is"+a]=function(c){return z.call(c)=="[object "+a+"]"}});q.isArguments(arguments)||(q.isArguments=function(a){return!(!a||!q.has(a,"callee"))});"function"!=typeof/./&&(q.isFunction=function(a){return"function"==
- typeof a});q.isFinite=function(a){return isFinite(a)&&!isNaN(parseFloat(a))};q.isNaN=function(a){return q.isNumber(a)&&a!=+a};q.isBoolean=function(a){return!0===a||!1===a||"[object Boolean]"==z.call(a)};q.isNull=function(a){return null===a};q.isUndefined=function(a){return void 0===a};q.has=function(a,c){return G.call(a,c)};q.noConflict=function(){return a._=c,this};q.identity=function(a){return a};q.times=function(a,c,g){for(var f=Array(Math.max(0,a)),p=0;a>p;p++)f[p]=c.call(g,p);return f};q.random=
- function(a,c){return null==c&&(c=a,a=0),a+Math.floor(Math.random()*(c-a+1))};var P={escape:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"}};P.unescape=q.invert(P.escape);var da={escape:RegExp("["+q.keys(P.escape).join("")+"]","g"),unescape:RegExp("("+q.keys(P.unescape).join("|")+")","g")};q.each(["escape","unescape"],function(a){q[a]=function(c){return null==c?"":(""+c).replace(da[a],function(c){return P[a][c]})}});q.result=function(a,c){if(null!=a){var g=a[c];return q.isFunction(g)?
- g.call(a):g}};q.mixin=function(a){J(q.functions(a),function(c){var g=q[c]=a[c];q.prototype[c]=function(){var a=[this._wrapped];y.apply(a,arguments);a=g.apply(q,a);return this._chain?q(a).chain():a}})};var ha=0;q.uniqueId=function(a){var c=++ha+"";return a?a+c:c};q.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var g=/(.)^/,p={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},x=/\\|'|\r|\n|\t|\u2028|\u2029/g;q.template=
- function(a,c,f){var n;f=q.defaults({},f,q.templateSettings);var r=RegExp([(f.escape||g).source,(f.interpolate||g).source,(f.evaluate||g).source].join("|")+"|$","g"),u=0,y="__p+='";a.replace(r,function(c,g,f,h,n){return y+=a.slice(u,n).replace(x,function(a){return"\\"+p[a]}),g&&(y+="'+\n((__t=("+g+"))==null?'':_.escape(__t))+\n'"),f&&(y+="'+\n((__t=("+f+"))==null?'':__t)+\n'"),h&&(y+="';\n"+h+"\n__p+='"),u=n+c.length,c});y+="';\n";f.variable||(y="with(obj||{}){\n"+y+"}\n");y="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+
- y+"return __p;\n";try{n=new Function(f.variable||"obj","_",y)}catch(w){throw w.source=y,w;}if(c)return n(c,q);c=function(a){return n.call(this,a,q)};return c.source="function("+(f.variable||"obj")+"){\n"+y+"}",c};q.chain=function(a){return q(a).chain()};q.mixin(q);J("pop push reverse shift sort splice unshift".split(" "),function(a){var c=f[a];q.prototype[a]=function(){var g=this._wrapped;return c.apply(g,arguments),"shift"!=a&&"splice"!=a||0!==g.length||delete g[0],this._chain?q(g).chain():g}});
- J(["concat","join","slice"],function(a){var c=f[a];q.prototype[a]=function(){var a=c.apply(this._wrapped,arguments);return this._chain?q(a).chain():a}});q.extend(q.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}.call(this);(function(){var a=this,c=a.Backbone,n=[],f=n.push,u=n.slice,y=n.splice,w;w="undefined"!==typeof exports?exports:a.Backbone={};w.VERSION="1.0.0";var r=a._;!r&&"undefined"!==typeof require&&(r=require("underscore"));w.$=a.jQuery||
- a.Zepto||a.ender||a.$;w.noConflict=function(){a.Backbone=c;return this};w.emulateHTTP=!1;w.emulateJSON=!1;var z=w.Events={on:function(a,c,f){if(!I(this,"on",a,[c,f])||!c)return this;this._events||(this._events={});(this._events[a]||(this._events[a]=[])).push({callback:c,context:f,ctx:f||this});return this},once:function(a,c,f){if(!I(this,"once",a,[c,f])||!c)return this;var e=this,h=r.once(function(){e.off(a,h);c.apply(this,arguments)});h._callback=c;return this.on(a,h,f)},off:function(a,c,f){var e,
- h,n,q,u,y,w,z;if(!this._events||!I(this,"off",a,[c,f]))return this;if(!a&&!c&&!f)return this._events={},this;q=a?[a]:r.keys(this._events);u=0;for(y=q.length;u<y;u++)if(a=q[u],n=this._events[a]){this._events[a]=e=[];if(c||f){w=0;for(z=n.length;w<z;w++)h=n[w],(c&&c!==h.callback&&c!==h.callback._callback||f&&f!==h.context)&&e.push(h)}e.length||delete this._events[a]}return this},trigger:function(a){if(!this._events)return this;var c=u.call(arguments,1);if(!I(this,"trigger",a,c))return this;var f=this._events[a],
- e=this._events.all;f&&S(f,c);e&&S(e,arguments);return this},stopListening:function(a,c,f){var e=this._listeners;if(!e)return this;var h=!c&&!f;"object"===typeof c&&(f=this);a&&((e={})[a._listenerId]=a);for(var n in e)e[n].off(c,f,this),h&&delete this._listeners[n];return this}},G=/\s+/,I=function(a,c,f,e){if(!f)return!0;if("object"===typeof f){for(var h in f)a[c].apply(a,[h,f[h]].concat(e));return!1}if(G.test(f)){f=f.split(G);h=0;for(var n=f.length;h<n;h++)a[c].apply(a,[f[h]].concat(e));return!1}return!0},
- S=function(a,c){var f,e=-1,h=a.length,n=c[0],q=c[1],r=c[2];switch(c.length){case 0:for(;++e<h;)(f=a[e]).callback.call(f.ctx);break;case 1:for(;++e<h;)(f=a[e]).callback.call(f.ctx,n);break;case 2:for(;++e<h;)(f=a[e]).callback.call(f.ctx,n,q);break;case 3:for(;++e<h;)(f=a[e]).callback.call(f.ctx,n,q,r);break;default:for(;++e<h;)(f=a[e]).callback.apply(f.ctx,c)}};r.each({listenTo:"on",listenToOnce:"once"},function(a,c){z[c]=function(c,e,f){var p=this._listeners||(this._listeners={}),n=c._listenerId||
- (c._listenerId=r.uniqueId("l"));p[n]=c;"object"===typeof e&&(f=this);c[a](e,f,this);return this}});z.bind=z.on;z.unbind=z.off;r.extend(w,z);var W=w.Model=function(a,c){var f,e=a||{};c||(c={});this.cid=r.uniqueId("c");this.attributes={};r.extend(this,r.pick(c,ea));c.parse&&(e=this.parse(e,c)||{});if(f=r.result(this,"defaults"))e=r.defaults({},e,f);this.set(e,c);this.changed={};this.initialize.apply(this,arguments)},ea=["url","urlRoot","collection"];r.extend(W.prototype,z,{changed:null,validationError:null,
- idAttribute:"id",initialize:function(){},toJSON:function(a){return r.clone(this.attributes)},sync:function(){return w.sync.apply(this,arguments)},get:function(a){return this.attributes[a]},escape:function(a){return r.escape(this.get(a))},has:function(a){return null!=this.get(a)},set:function(a,c,f){var e,h,n,q,u,y,w;if(null==a)return this;"object"===typeof a?(h=a,f=c):(h={})[a]=c;f||(f={});if(!this._validate(h,f))return!1;n=f.unset;q=f.silent;a=[];u=this._changing;this._changing=!0;u||(this._previousAttributes=
- r.clone(this.attributes),this.changed={});w=this.attributes;y=this._previousAttributes;this.idAttribute in h&&(this.id=h[this.idAttribute]);for(e in h)c=h[e],r.isEqual(w[e],c)||a.push(e),r.isEqual(y[e],c)?delete this.changed[e]:this.changed[e]=c,n?delete w[e]:w[e]=c;if(!q){a.length&&(this._pending=!0);c=0;for(e=a.length;c<e;c++)this.trigger("change:"+a[c],this,w[a[c]],f)}if(u)return this;if(!q)for(;this._pending;)this._pending=!1,this.trigger("change",this,f);this._changing=this._pending=!1;return this},
- unset:function(a,c){return this.set(a,void 0,r.extend({},c,{unset:!0}))},clear:function(a){var c={},f;for(f in this.attributes)c[f]=void 0;return this.set(c,r.extend({},a,{unset:!0}))},hasChanged:function(a){return null==a?!r.isEmpty(this.changed):r.has(this.changed,a)},changedAttributes:function(a){if(!a)return this.hasChanged()?r.clone(this.changed):!1;var c,f=!1,e=this._changing?this._previousAttributes:this.attributes,h;for(h in a)if(!r.isEqual(e[h],c=a[h]))(f||(f={}))[h]=c;return f},previous:function(a){return null==
- a||!this._previousAttributes?null:this._previousAttributes[a]},previousAttributes:function(){return r.clone(this._previousAttributes)},fetch:function(a){a=a?r.clone(a):{};void 0===a.parse&&(a.parse=!0);var c=this,f=a.success;a.success=function(e){if(!c.set(c.parse(e,a),a))return!1;f&&f(c,e,a);c.trigger("sync",c,e,a)};ha(this,a);return this.sync("read",this,a)},save:function(a,c,f){var e,h=this.attributes;null==a||"object"===typeof a?(e=a,f=c):(e={})[a]=c;if(e&&(!f||!f.wait)&&!this.set(e,f))return!1;
- f=r.extend({validate:!0},f);if(!this._validate(e,f))return!1;e&&f.wait&&(this.attributes=r.extend({},h,e));void 0===f.parse&&(f.parse=!0);var n=this,q=f.success;f.success=function(a){n.attributes=h;var c=n.parse(a,f);f.wait&&(c=r.extend(e||{},c));if(r.isObject(c)&&!n.set(c,f))return!1;q&&q(n,a,f);n.trigger("sync",n,a,f)};ha(this,f);a=this.isNew()?"create":f.patch?"patch":"update";"patch"===a&&(f.attrs=e);a=this.sync(a,this,f);e&&f.wait&&(this.attributes=h);return a},destroy:function(a){a=a?r.clone(a):
- {};var c=this,f=a.success,e=function(){c.trigger("destroy",c,c.collection,a)};a.success=function(h){(a.wait||c.isNew())&&e();f&&f(c,h,a);c.isNew()||c.trigger("sync",c,h,a)};if(this.isNew())return a.success(),!1;ha(this,a);var h=this.sync("delete",this,a);a.wait||e();return h},url:function(){var a=r.result(this,"urlRoot")||r.result(this.collection,"url")||da();return this.isNew()?a:a+("/"===a.charAt(a.length-1)?"":"/")+encodeURIComponent(this.id)},parse:function(a,c){return a},clone:function(){return new this.constructor(this.attributes)},
- isNew:function(){return null==this.id},isValid:function(a){return this._validate({},r.extend(a||{},{validate:!0}))},_validate:function(a,c){if(!c.validate||!this.validate)return!0;a=r.extend({},this.attributes,a);var f=this.validationError=this.validate(a,c)||null;if(!f)return!0;this.trigger("invalid",this,f,r.extend(c||{},{validationError:f}));return!1}});r.each("keys values pairs invert pick omit".split(" "),function(a){W.prototype[a]=function(){var c=u.call(arguments);c.unshift(this.attributes);
- return r[a].apply(r,c)}});var Z=w.Collection=function(a,c){c||(c={});c.url&&(this.url=c.url);c.model&&(this.model=c.model);void 0!==c.comparator&&(this.comparator=c.comparator);this._reset();this.initialize.apply(this,arguments);a&&this.reset(a,r.extend({silent:!0},c))},ca={add:!0,remove:!0,merge:!0},qa={add:!0,merge:!1,remove:!1};r.extend(Z.prototype,z,{model:W,initialize:function(){},toJSON:function(a){return this.map(function(c){return c.toJSON(a)})},sync:function(){return w.sync.apply(this,arguments)},
- add:function(a,c){return this.set(a,r.defaults(c||{},qa))},remove:function(a,c){a=r.isArray(a)?a.slice():[a];c||(c={});var f,e,h,n;f=0;for(e=a.length;f<e;f++)if(n=this.get(a[f]))delete this._byId[n.id],delete this._byId[n.cid],h=this.indexOf(n),this.models.splice(h,1),this.length--,c.silent||(c.index=h,n.trigger("remove",n,this,c)),this._removeReference(n);return this},set:function(a,c){c=r.defaults(c||{},ca);c.parse&&(a=this.parse(a,c));r.isArray(a)||(a=a?[a]:[]);var n,e,h,q,u,w=c.at,z=this.comparator&&
- null==w&&!1!==c.sort,F=r.isString(this.comparator)?this.comparator:null,G=[],H=[],I={};n=0;for(e=a.length;n<e;n++)if(h=this._prepareModel(a[n],c))(q=this.get(h))?(c.remove&&(I[q.cid]=!0),c.merge&&(q.set(h.attributes,c),z&&(!u&&q.hasChanged(F))&&(u=!0))):c.add&&(G.push(h),h.on("all",this._onModelEvent,this),this._byId[h.cid]=h,null!=h.id&&(this._byId[h.id]=h));if(c.remove){n=0;for(e=this.length;n<e;++n)I[(h=this.models[n]).cid]||H.push(h);H.length&&this.remove(H,c)}G.length&&(z&&(u=!0),this.length+=
- G.length,null!=w?y.apply(this.models,[w,0].concat(G)):f.apply(this.models,G));u&&this.sort({silent:!0});if(c.silent)return this;n=0;for(e=G.length;n<e;n++)(h=G[n]).trigger("add",h,this,c);u&&this.trigger("sort",this,c);return this},reset:function(a,c){c||(c={});for(var f=0,e=this.models.length;f<e;f++)this._removeReference(this.models[f]);c.previousModels=this.models;this._reset();this.add(a,r.extend({silent:!0},c));c.silent||this.trigger("reset",this,c);return this},push:function(a,c){a=this._prepareModel(a,
- c);this.add(a,r.extend({at:this.length},c));return a},pop:function(a){var c=this.at(this.length-1);this.remove(c,a);return c},unshift:function(a,c){a=this._prepareModel(a,c);this.add(a,r.extend({at:0},c));return a},shift:function(a){var c=this.at(0);this.remove(c,a);return c},slice:function(a,c){return this.models.slice(a,c)},get:function(a){return null==a?void 0:this._byId[null!=a.id?a.id:a.cid||a]},at:function(a){return this.models[a]},where:function(a,c){return r.isEmpty(a)?c?void 0:[]:this[c?
- "find":"filter"](function(c){for(var e in a)if(a[e]!==c.get(e))return!1;return!0})},findWhere:function(a){return this.where(a,!0)},sort:function(a){if(!this.comparator)throw Error("Cannot sort a set without a comparator");a||(a={});r.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(r.bind(this.comparator,this));a.silent||this.trigger("sort",this,a);return this},sortedIndex:function(a,c,f){c||(c=this.comparator);var e=r.isFunction(c)?
- c:function(a){return a.get(c)};return r.sortedIndex(this.models,a,e,f)},pluck:function(a){return r.invoke(this.models,"get",a)},fetch:function(a){a=a?r.clone(a):{};void 0===a.parse&&(a.parse=!0);var c=a.success,f=this;a.success=function(e){f[a.reset?"reset":"set"](e,a);c&&c(f,e,a);f.trigger("sync",f,e,a)};ha(this,a);return this.sync("read",this,a)},create:function(a,c){c=c?r.clone(c):{};if(!(a=this._prepareModel(a,c)))return!1;c.wait||this.add(a,c);var f=this,e=c.success;c.success=function(h){c.wait&&
- f.add(a,c);e&&e(a,h,c)};a.save(null,c);return a},parse:function(a,c){return a},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0;this.models=[];this._byId={}},_prepareModel:function(a,c){if(a instanceof W)return a.collection||(a.collection=this),a;c||(c={});c.collection=this;var f=new this.model(a,c);return!f._validate(a,c)?(this.trigger("invalid",this,a,c),!1):f},_removeReference:function(a){this===a.collection&&delete a.collection;a.off("all",this._onModelEvent,
- this)},_onModelEvent:function(a,c,f,e){("add"===a||"remove"===a)&&f!==this||("destroy"===a&&this.remove(c,e),c&&a==="change:"+c.idAttribute&&(delete this._byId[c.previous(c.idAttribute)],null!=c.id&&(this._byId[c.id]=c)),this.trigger.apply(this,arguments))}});r.each("forEach each map collect reduce foldl inject reduceRight foldr find detect filter select reject every all some any include contains invoke max min toArray size first head take initial rest tail drop last without indexOf shuffle lastIndexOf isEmpty chain".split(" "),
- function(a){Z.prototype[a]=function(){var c=u.call(arguments);c.unshift(this.models);return r[a].apply(r,c)}});r.each(["groupBy","countBy","sortBy"],function(a){Z.prototype[a]=function(c,f){var e=r.isFunction(c)?c:function(a){return a.get(c)};return r[a](this.models,e,f)}});var n=w.View=function(a){this.cid=r.uniqueId("view");this._configure(a||{});this._ensureElement();this.initialize.apply(this,arguments);this.delegateEvents()},U=/^(\S+)\s*(.*)$/,ra="model collection el id attributes className tagName events".split(" ");
- r.extend(n.prototype,z,{tagName:"div",$:function(a){return this.$el.find(a)},initialize:function(){},render:function(){return this},remove:function(){this.$el.remove();this.stopListening();return this},setElement:function(a,c){this.$el&&this.undelegateEvents();this.$el=a instanceof w.$?a:w.$(a);this.el=this.$el[0];!1!==c&&this.delegateEvents();return this},delegateEvents:function(a){if(!a&&!(a=r.result(this,"events")))return this;this.undelegateEvents();for(var c in a){var f=a[c];r.isFunction(f)||
- (f=this[a[c]]);if(f){var e=c.match(U),h=e[1],e=e[2],f=r.bind(f,this),h=h+(".delegateEvents"+this.cid);if(""===e)this.$el.on(h,f);else this.$el.on(h,e,f)}}return this},undelegateEvents:function(){this.$el.off(".delegateEvents"+this.cid);return this},_configure:function(a){this.options&&(a=r.extend({},r.result(this,"options"),a));r.extend(this,r.pick(a,ra));this.options=a},_ensureElement:function(){if(this.el)this.setElement(r.result(this,"el"),!1);else{var a=r.extend({},r.result(this,"attributes"));
- this.id&&(a.id=r.result(this,"id"));this.className&&(a["class"]=r.result(this,"className"));a=w.$("<"+r.result(this,"tagName")+">").attr(a);this.setElement(a,!1)}}});w.sync=function(a,c,f){var e=F[a];r.defaults(f||(f={}),{emulateHTTP:w.emulateHTTP,emulateJSON:w.emulateJSON});var h={type:e,dataType:"json"};f.url||(h.url=r.result(c,"url")||da());if(null==f.data&&c&&("create"===a||"update"===a||"patch"===a))h.contentType="application/json",h.data=JSON.stringify(f.attrs||c.toJSON(f));f.emulateJSON&&(h.contentType=
- "application/x-www-form-urlencoded",h.data=h.data?{model:h.data}:{});if(f.emulateHTTP&&("PUT"===e||"DELETE"===e||"PATCH"===e)){h.type="POST";f.emulateJSON&&(h.data._method=e);var n=f.beforeSend;f.beforeSend=function(a){a.setRequestHeader("X-HTTP-Method-Override",e);if(n)return n.apply(this,arguments)}}"GET"!==h.type&&!f.emulateJSON&&(h.processData=!1);if("PATCH"===h.type&&window.ActiveXObject&&(!window.external||!window.external.msActiveXFilteringEnabled))h.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")};
- a=f.xhr=w.ajax(r.extend(h,f));c.trigger("request",c,a,f);return a};var F={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};w.ajax=function(){return w.$.ajax.apply(w.$,arguments)};var ma=w.Router=function(a){a||(a={});a.routes&&(this.routes=a.routes);this._bindRoutes();this.initialize.apply(this,arguments)},q=/\((.*?)\)/g,J=/(\(\?)?:\w+/g,fa=/\*\w+/g,T=/[\-{}\[\]+?.,\\\^$|#\s]/g;r.extend(ma.prototype,z,{initialize:function(){},route:function(a,c,f){r.isRegExp(a)||(a=this._routeToRegExp(a));
- r.isFunction(c)&&(f=c,c="");f||(f=this[c]);var e=this;w.history.route(a,function(h){h=e._extractParameters(a,h);f&&f.apply(e,h);e.trigger.apply(e,["route:"+c].concat(h));e.trigger("route",c,h);w.history.trigger("route",e,c,h)});return this},navigate:function(a,c){w.history.navigate(a,c);return this},_bindRoutes:function(){if(this.routes){this.routes=r.result(this,"routes");for(var a,c=r.keys(this.routes);null!=(a=c.pop());)this.route(a,this.routes[a])}},_routeToRegExp:function(a){a=a.replace(T,"\\$&").replace(q,
- "(?:$1)?").replace(J,function(a,c){return c?a:"([^/]+)"}).replace(fa,"(.*?)");return RegExp("^"+a+"$")},_extractParameters:function(a,c){var f=a.exec(c).slice(1);return r.map(f,function(a){return a?decodeURIComponent(a):null})}});var L=w.History=function(){this.handlers=[];r.bindAll(this,"checkUrl");"undefined"!==typeof window&&(this.location=window.location,this.history=window.history)},ga=/^[#\/]|\s+$/g,na=/^\/+|\/+$/g,V=/msie [\w.]+/,P=/\/$/;L.started=!1;r.extend(L.prototype,z,{interval:50,getHash:function(a){return(a=
- (a||this).location.href.match(/#(.*)$/))?a[1]:""},getFragment:function(a,c){if(null==a)if(this._hasPushState||!this._wantsHashChange||c){a=this.location.pathname;var f=this.root.replace(P,"");a.indexOf(f)||(a=a.substr(f.length))}else a=this.getHash();return a.replace(ga,"")},start:function(a){if(L.started)throw Error("Backbone.history has already been started");L.started=!0;this.options=r.extend({},{root:"/"},this.options,a);this.root=this.options.root;this._wantsHashChange=!1!==this.options.hashChange;
- this._wantsPushState=!!this.options.pushState;this._hasPushState=!(!this.options.pushState||!this.history||!this.history.pushState);a=this.getFragment();var c=document.documentMode,c=V.exec(navigator.userAgent.toLowerCase())&&(!c||7>=c);this.root=("/"+this.root+"/").replace(na,"/");c&&this._wantsHashChange&&(this.iframe=w.$('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(a));if(this._hasPushState)w.$(window).on("popstate",this.checkUrl);else if(this._wantsHashChange&&
- "onhashchange"in window&&!c)w.$(window).on("hashchange",this.checkUrl);else this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval));this.fragment=a;a=this.location;c=a.pathname.replace(/[^\/]$/,"$&/")===this.root;if(this._wantsHashChange&&this._wantsPushState&&!this._hasPushState&&!c)return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+this.location.search+"#"+this.fragment),!0;this._wantsPushState&&(this._hasPushState&&c&&a.hash)&&(this.fragment=
- this.getHash().replace(ga,""),this.history.replaceState({},document.title,this.root+this.fragment+a.search));if(!this.options.silent)return this.loadUrl()},stop:function(){w.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl);clearInterval(this._checkUrlInterval);L.started=!1},route:function(a,c){this.handlers.unshift({route:a,callback:c})},checkUrl:function(a){a=this.getFragment();a===this.fragment&&this.iframe&&(a=this.getFragment(this.getHash(this.iframe)));if(a===this.fragment)return!1;
- this.iframe&&this.navigate(a);this.loadUrl()||this.loadUrl(this.getHash())},loadUrl:function(a){var c=this.fragment=this.getFragment(a);return r.any(this.handlers,function(a){if(a.route.test(c))return a.callback(c),!0})},navigate:function(a,c){if(!L.started)return!1;if(!c||!0===c)c={trigger:c};a=this.getFragment(a||"");if(this.fragment!==a){this.fragment=a;var f=this.root+a;if(this._hasPushState)this.history[c.replace?"replaceState":"pushState"]({},document.title,f);else if(this._wantsHashChange)this._updateHash(this.location,
- a,c.replace),this.iframe&&a!==this.getFragment(this.getHash(this.iframe))&&(c.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,a,c.replace));else return this.location.assign(f);c.trigger&&this.loadUrl(a)}},_updateHash:function(a,c,f){f?(f=a.href.replace(/(javascript:|#).*$/,""),a.replace(f+"#"+c)):a.hash="#"+c}});w.history=new L;W.extend=Z.extend=ma.extend=n.extend=L.extend=function(a,c){var f=this,e;e=a&&r.has(a,"constructor")?a.constructor:function(){return f.apply(this,
- arguments)};r.extend(e,f,c);var h=function(){this.constructor=e};h.prototype=f.prototype;e.prototype=new h;a&&r.extend(e.prototype,a);e.__super__=f.prototype;return e};var da=function(){throw Error('A "url" property or function must be specified');},ha=function(a,c){var f=c.error;c.error=function(e){f&&f(a,e,c);a.trigger("error",a,e,c)}}}).call(this);(function(a,c){"function"===typeof define&&define.amd?define(["underscore","backbone"],function(n,f){return c(n||a._,f||a.Backbone)}):c(_,Backbone)})(this,
- function(a,c){function n(){return(65536*(1+Math.random())|0).toString(16).substring(1)}c.LocalStorage=window.Store=function(a){this.name=a;this.records=(a=this.localStorage().getItem(this.name))&&a.split(",")||[]};a.extend(c.LocalStorage.prototype,{save:function(){this.localStorage().setItem(this.name,this.records.join(","))},create:function(a){a.id||(a.id=n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n(),a.set(a.idAttribute,a.id));this.localStorage().setItem(this.name+"-"+a.id,JSON.stringify(a));this.records.push(a.id.toString());
- this.save();return this.find(a)},update:function(c){this.localStorage().setItem(this.name+"-"+c.id,JSON.stringify(c));a.include(this.records,c.id.toString())||this.records.push(c.id.toString());this.save();return this.find(c)},find:function(a){return this.jsonData(this.localStorage().getItem(this.name+"-"+a.id))},findAll:function(){return a(this.records).chain().map(function(a){return this.jsonData(this.localStorage().getItem(this.name+"-"+a))},this).compact().value()},destroy:function(c){if(c.isNew())return!1;
- this.localStorage().removeItem(this.name+"-"+c.id);this.records=a.reject(this.records,function(a){return a===c.id.toString()});this.save();return c},localStorage:function(){return localStorage},jsonData:function(a){return a&&JSON.parse(a)}});c.LocalStorage.sync=window.Store.sync=c.localSync=function(a,c,n){var w=c.localStorage||c.collection.localStorage,r,z,G=$.Deferred&&$.Deferred();try{switch(a){case "read":r=void 0!=c.id?w.find(c):w.findAll();break;case "create":r=w.create(c);break;case "update":r=
- w.update(c);break;case "delete":r=w.destroy(c)}}catch(I){z=I.code===DOMException.QUOTA_EXCEEDED_ERR&&0===window.localStorage.length?"Private browsing is unsupported":I.message}r?(c.trigger("sync",c,r,n),n&&n.success&&n.success(r),G&&G.resolve(r)):(z=z?z:"Record Not Found",n&&n.error&&n.error(z),G&&G.reject(z));n&&n.complete&&n.complete(r);return G&&G.promise()};c.ajaxSync=c.sync;c.getSyncMethod=function(a){return a.localStorage||a.collection&&a.collection.localStorage?c.localSync:c.ajaxSync};c.sync=
- function(a,n,y){return c.getSyncMethod(n).apply(this,[a,n,y])};return c.LocalStorage});$=jQuery})();CookieCheat.miscVars.cssText='<style>#tabs{width: 100%;}#hitLabel{font-size:2em;border-color:#f00;font-weight:bold;opacity:1;}#shouldLabel{font-size:2em;font-weight:bold;opacity:1;}#shouldLabel:hover{cursor:pointer;}#hitLabel:hover{color:#FF5555;cursor:pointer;}.superTabBtn.selectedTab{background-color:#C9C9C9 !important;box-shadow:2px 2px 5px rgba(0, 0, 0, 0.6) inset, -1px -1px 3px rgba(0, 0, 0, 0.8) inset !important}.superTabBtn{width: 33.333333333333333333333333333333333333333333333333333%;font-size: 30px;}.superRadioBtn{color: #444 !important;background-color: white !important;}.superRadioBtn:hover{color: white !important;background-color: #444 !important;}.tabElem{border:solid 2px;background-color:#333;padding:10px 10px;font-family:"Kavoon";margin-top:5px;margin-bottom:5px;}input[type=text]:focus{outline:0;}.tabElem:hover{background-color:#555;}.tabElemDone{border:solid 2px;background: #4DBD33;background: -webkit-linear-gradient(left, #4DBD33, #395D33);background: -moz-linear-gradient(left, #4DBD33, #395D33);background: -ms-linear-gradient(left, #4DBD33, #395D33);background: -o-linear-gradient(left, #4DBD33, #395D33);background: linear-gradient(left, #4DBD33, #395D33);padding:10px 10px;font-family:"Kavoon";margin-top:5px;margin-bottom:5px;}.tabElemDone:hover{background: #6FDF55;background: -webkit-linear-gradient(left, #6FDF55, #5B7F55);background: -moz-linear-gradient(left, #6FDF55, #5B7F55);background: -ms-linear-gradient(left, #6FDF55, #5B7F55);background: -o-linear-gradient(left, #6FDF55, #5B7F55);background: linear-gradient(left, #6FDF55, #5B7F55);}.superBtn{border:0;font-family:"Kavoon";box-shadow:2px 2px 5px;padding:2px;background-color:#fff;}.btns{float:right;}.superFont{font-family:"Kavoon"}.currentState{border:1px solid;border-radius:100px;padding:2px;box-shadow:1px 1px 5px;}.currentState.superBad{background-color:#EEB4B4;}.currentState.superGood{background-color:#BCED91;}.superBtn:active{box-shadow:1px 1px 2px #000 inset;}.superBtn:hover{cursor:pointer;background-color:#eee;text-decoration:underline;border:0;}.superGood, .superGood:hover{font-family:"Kavoon";color:#4CBB17 !important;border-color:#4CBB17;}.superBad, .superBad:hover{font-family:"Kavoon";color:#CD0000;border-color:#CD0000;}.superWarning, .superWarning:hover{font-family:"Kavoon";color:#EE7621;border-color:#EE7621;}#cheatButton{text-decoration:underline;padding:14px 16px 10px 0px;top:0px;right:-16px;}#cheatButton:hover{right:-8px;text-decoration:underline;}.simpleInfo{border:solid 2px;background-color:#333;padding:5px 10px;display:inline-block;}.superRight{float:right}.imAState{margin-left:10px;}#newForm, #newUpgradeForm, #newSaveForm{border:2px solid;padding:10px;width:50%;margin:0 auto;box-shadow:5px 5px 10px;background-color:#222;}#newAutoBuyBuildingsButton{width:75%;margin:0 auto;}.signatureNinetainedo{font-size:120%;}#upgradesListContainer, #buildingsListContainer, #savesListContainer, #choicesListContainer{border:2px white solid;box-shadow:5px 5px 10px;padding:5px;overflow:auto;max-height:500px}.superHidden{display:none;}</style>';
- CookieCheat.miscVars.buildingTemplate='<span class="superGood buildingName"></span> <span class="imAState howManyBought"></span> <span class="imAState">State :</span> <span class="superGood goodState">ON</span>/<span class="badState superBad currentState">OFF</span><div class="btns"><a class="superBtn superGood myGoBtn">Go</a> <a class="superBtn superWarning myPauseBtn">Pause</a> <a class="superBtn superBad myRemoveBtn">Remove</a></div>';CookieCheat.miscVars.upgradeTemplate='<span class="superGood upgradeName"></span> <span class="imAState unlockedOrNot"></span> <span class="imAState">State :</span> <span class="superGood goodState">ON</span>/<span class="badState superBad currentState">OFF</span><div class="btns"><a class="superBtn superGood myGoBtn">Go</a> <a class="superBtn superWarning myPauseBtn">Pause</a> <a class="superBtn superBad myRemoveBtn">Remove</a></div>';
- CookieCheat.miscVars.saveTemplate='<span class="superGood saveName""></span><input type="text" class="enterNameSave" class="superFont" style="display:none;></input> <span class="imAState saveDate"></span><div class="btns"><a class="superBtn superWarning mySaveHereBtn">Save current game here</a> <a class="superBtn superGood myLoadBtn">Load</a> <a class="superBtn superWarning myExportBtn">Export</a> <a class="superBtn superBad myRemoveBtn">Remove</a></div>';CookieCheat.miscVars.specialTemplate='<div class="tabElem"><div style="height:20px;text-align:center;padding:10px"><a class="superBtn superGood myGoAllBtn" style="padding:10px;font-size:16px;margin:10px;">Go all !</a> <a class="superBtn superWarning myPauseAllBtn" style="padding:10px;font-size:16px;margin:10px;">Pause all !</a> <a class="superBtn superBad myRemoveAllBtn" style="padding:10px;font-size:16px;margin:10px;">Remove all !</a> <a class="superBtn superBad myRemoveDoneBtn" style="padding:10px;font-size:16px;margin:10px;">Remove completed !</a></div></div>';
- CookieCheat.miscVars.choiceTemplate='<span class="superGood choiceName"></span> <span class="imAState activeOrNot"></span> <span class="imAState">State :</span> <span class="superGood goodState">ON</span>/<span class="badState superBad currentState">OFF</span><div class="btns"><a class="superBtn superGood myToggleBtn">Toggle</a> <a class="superBtn superWarning mySpawnBtn">Spawn !</a></div>';CookieCheat.miscVars.newGame="MS4wMzZ8fDEzODAwNTgxMzE5MjV8MTExMTExfDA7MDswOzA7MDswOy0xOy0xOzA7MDswOzA7MDswfDAsMCwwLDA7MCwwLDAsMDswLDAsMCwwOzAsMCwwLDA7MCwwLDAsMDswLDAsMCwwOzAsMCwwLDA7MCwwLDAsMDswLDAsMCwwOzAsMCwwLDA7fDIyNTE3OTk4MTM2ODUyNDk7MjI1MTc5OTgxMzY4NTI0OTsyMjUxNzk5ODEzNjg1MjQ5OzIyNTE3OTk4MTM2ODUyNDk7NTI0Mjg5fDIyNTE3OTk4MTM2ODUyNDk7ODc5NjA5MzAyMjIwOQ%3D%3D%21END%21";
- CookieCheat.addCSS=function(){$("head").append(CookieCheat.miscVars.cssText)};CookieCheat.initModels=function(){CookieCheat.Models={AutoClickWrinklersModel:Backbone.Model.extend({initialize:function(){0!==this.get("count")&&this.set({count:0});!1!==this.get("running")&&this.set({running:!1});_.isUndefined(localStorage.CookieCheatNinetainedoAutoClickWrinklers)||this.set(JSON.parse(localStorage.CookieCheatNinetainedoAutoClickWrinklers));this.save();this.set({intervalId:0});"undefined"===typeof this.get("timeOut")&&
- this.set({timeOut:1E3});this.get("running")&&this.go()},save:function(){localStorage.CookieCheatNinetainedoAutoClickWrinklers=JSON.stringify(this.toJSON())},go:function(){var a=this,c=function(){var f=0;_.each(Game.wrinklers,function(a){0<a.phase&&(0<a.hp&&0<a.sucked)&&(a.hp=0,f++)});a.set({count:a.get("count")+f});var n=setTimeout(c,a.get("timeOut"));a.set({intervalId:n})},n=setTimeout(c,a.get("timeOut"));this.set({intervalId:n,running:!0});this.save()},stop:function(){"undefined"!==typeof this.get("intervalId")&&
- clearTimeout(this.get("intervalId"));this.set({running:!1});this.save()},reset:function(){this.stop();this.set({running:!1,count:0,timeOut:1E3})}}),AutoClickModel:Backbone.Model.extend({initialize:function(){0!==this.get("count")&&this.set({count:0});!1!==this.get("running")&&this.set({running:!1});_.isUndefined(localStorage.CookieCheatNinetainedoAutoClick)||this.set(JSON.parse(localStorage.CookieCheatNinetainedoAutoClick));this.save();this.set({intervalId:0});"undefined"===typeof this.get("timeOut")&&
- this.set({timeOut:50});this.get("running")&&this.go()},save:function(){localStorage.CookieCheatNinetainedoAutoClick=JSON.stringify(this.toJSON())},go:function(){var a=this,c=function(){Game.ClickCookie();a.set({count:a.get("count")+1});var f=setTimeout(c,a.get("timeOut"));a.set({intervalId:f})},n=setTimeout(c,a.get("timeOut"));this.set({intervalId:n,running:!0});this.save()},stop:function(){"undefined"!==typeof this.get("intervalId")&&clearTimeout(this.get("intervalId"));this.set({running:!1});this.save()},
- reset:function(){this.stop();this.set({running:!1,count:0,timeOut:50})}}),AutoSpawnModel:Backbone.Model.extend({initialize:function(){0!==this.get("count")&&this.set({count:0});!1!==this.get("running")&&this.set({running:!1});_.isUndefined(localStorage.CookieCheatNinetainedoAutoSpawn)||this.set(JSON.parse(localStorage.CookieCheatNinetainedoAutoSpawn));this.save();this.set({intervalId:0});"undefined"===typeof this.get("timeOut")&&this.set({timeOut:6E5});this.get("running")&&this.go()},save:function(){localStorage.CookieCheatNinetainedoAutoSpawn=
- JSON.stringify(this.toJSON())},go:function(){var a=this,c=function(){Game.goldenCookie.life=0;Game.goldenCookie.time=Game.goldenCookie.minTime;Game.goldenCookie.spawn();a.set({count:a.get("count")+1});var f=setTimeout(c,a.get("timeOut"));a.set({intervalId:f})},n=setTimeout(c,a.get("timeOut"));this.set({intervalId:n,running:!0});this.save()},stop:function(){"undefined"!==typeof this.get("intervalId")&&clearTimeout(this.get("intervalId"));this.set({running:!1});this.save()},reset:function(){this.stop();
- this.set({running:!1,count:0,timeOut:50})}}),GoldenSpawnModel:Backbone.Model.extend({initialize:function(){0!==this.get("count")&&this.set({count:0})},incr:function(){this.set({count:this.get("count")+1})},reset:function(){this.set({count:0})}}),AutoGoldenClickModel:Backbone.Model.extend({save:function(){localStorage.CookieCheatNinetainedoAutoGoldenClick=JSON.stringify(this.toJSON())},initialize:function(){0!==this.get("count")&&this.set({count:0});!1!==this.get("running")&&this.set({running:!1});
- _.isUndefined(localStorage.CookieCheatNinetainedoAutoGoldenClick)||this.set(JSON.parse(localStorage.CookieCheatNinetainedoAutoGoldenClick));this.save();this.set({intervalId:0});this.get("running")&&this.go()},go:function(){var a=this,c=setInterval(function(){0<Game.goldenCookie.life&&(Game.goldenCookie.click(),a.set({count:a.get("count")+1}))},1E3);this.set({intervalId:c,running:!0});this.save()},stop:function(){"undefined"!==typeof this.get("intervalId")&&clearInterval(this.get("intervalId"));this.set({running:!1});
- this.save()},reset:function(){this.stop();this.set({running:!1,count:0})}}),AutoReindeerClickModel:Backbone.Model.extend({save:function(){localStorage.CookieCheatNinetainedoAutoReindeerClick=JSON.stringify(this.toJSON())},initialize:function(){0!==this.get("count")&&this.set({count:0});!1!==this.get("running")&&this.set({running:!1});_.isUndefined(localStorage.CookieCheatNinetainedoAutoReindeerClick)||this.set(JSON.parse(localStorage.CookieCheatNinetainedoAutoReindeerClick));this.save();this.set({intervalId:0});
- this.get("running")&&this.go()},go:function(){var a=this,c=setInterval(function(){0<Game.seasonPopup.life&&(Game.seasonPopup.click(),a.set({count:a.get("count")+1}))},1E3);this.set({intervalId:c,running:!0});this.save()},stop:function(){"undefined"!==typeof this.get("intervalId")&&clearInterval(this.get("intervalId"));this.set({running:!1});this.save()},reset:function(){this.stop();this.set({running:!1,count:0})}}),AutoBuyBuilding:Backbone.Model.extend({initialize:function(){("undefined"===typeof this.get("maxAmount")||
- 1>this.get("maxAmount"))&&this.set({maxAmount:1});0!==this.get("count")&&this.set({count:0});!1!==this.get("running")&&!0!==this.get("running")&&this.set({running:!1});0!==this.get("bought")&&this.set({bought:0});this.set({count:Game.ObjectsById[this.get("buildingId")].amount});this.set({maxBought:this.get("maxAmount")-this.get("count")});!0===this.get("running")&&(this.toJSON().first=!0,this.go());this.set({intervalId:0,first:!0})},validate:function(a,c){if("undefined"===typeof Game.ObjectsById[this.get("buildingId")])return"Invalid buildingId specified.";
- if(this.get("count")>=this.get("maxAmount"))return"["+Game.ObjectsById[this.get("buildingId")].name+"] :Your current amount is above your maxAmount."},functionToDo:function(){__DEBUG__&&console.log("In");var a=this.get("running"),c=this.get("buildingId");a&&Game.ObjectsById[c].amount<this.get("maxAmount")?Game.cookies-Game.ObjectsById[c].price>=CookieCheat.cookieToKeep&&(Game.ObjectsById[c].buy(),this.get("count")!==Game.ObjectsById[c].amount&&(this.set({bought:this.get("bought")+1}),this.save())):
- Game.ObjectsById[c].amount>=this.get("maxAmount")&&this.stop();this.set({count:Game.ObjectsById[c].amount});this.get("again")?setTimeout(_.bind(this.functionToDo,this),a?100:2E3):__DEBUG__&&console.log("Finished for real")},go:function(){if("undefined"===typeof this.toJSON().first||!0===this.toJSON().first)setTimeout(_.bind(this.functionToDo,this),200),this.toJSON().first=!1;this.set({running:!0,again:!0});this.save()},stop:function(){this.set({running:!1});this.save()},reset:function(){this.stop();
- this.set({running:!1,maxAmount:1,bought:0,count:0})}}),AutoBuyUpgrade:Backbone.Model.extend({initialize:function(){!1!==this.get("running")&&!0!==this.get("running")&&this.set({running:!1});!0===this.get("running")&&this.go();this.set({intervalId:0})},validate:function(a,c){if("undefined"===typeof Game.UpgradesById[this.get("upgradeId")])return"Invalid upgradeId specified."},go:function(){var a=this,c=setInterval(function(){1===Game.UpgradesById[a.get("upgradeId")].unlocked&&Game.cookies-Game.UpgradesById[a.get("upgradeId")].basePrice>=
- CookieCheat.cookieToKeep&&(Game.UpgradesById[a.get("upgradeId")].buy(),a.save())},100);this.set({intervalId:c,running:!0});a.save()},stop:function(){"undefined"!==typeof this.get("intervalId")&&clearInterval(this.get("intervalId"));this.set({running:!1});this.save()},reset:function(){this.stop();this.set({running:!1,upgradeId:-1})}}),SaveModel:Backbone.Model.extend({initialize:function(){"undefined"===typeof this.get("name")&&this.set({name:"NoName"});"undefined"===typeof this.get("date")&&this.set({date:new Date});
- "undefined"===typeof this.get("code")&&this.set({code:""})},validate:function(a,c){var n=unescape(this.get("code")).split("!END!")[0],n=b64_to_utf8(n);if(""===n)return"Bad save"},saveGame:function(a){this.set({backUp:this.get("code"),code:a})},loadGame:function(){Game.LoadSave(this.get("code"))},loadBackup:function(){Game.LoadSave(this.get("backUp"))},generateSavePreview:function(a){var c={prefs:{},upgrades:{},achievements:{},objects:{}};a=unescape(a);var n=0;1>a.split("|")[0]||(a=a.split("!END!")[0],
- a=b64_to_utf8(a));if(""!=a){var f="";a=a.split("|");c.version=n=parseFloat(a[0]);if(1<=n&&n>Game.version){alert("Error : you are attempting to load a save from a later version (v."+n+"; you are using v."+Game.version+").");return}if(1<=n){f=a[2].split(";");c.startDate=parseInt(f[0]);f=a[3].split("");c.prefs.particles=parseInt(f[0]);c.prefs.numbers=parseInt(f[1]);c.prefs.autosave=parseInt(f[2]);c.prefs.autoupdate=f[3]?parseInt(f[3]):1;c.prefs.milk=f[4]?parseInt(f[4]):1;c.prefs.fancy=parseInt(f[5]);
- f=a[4].split(";");c.cookies=parseFloat(f[0]);c.cookiesEarned=parseFloat(f[1]);c.cookieClicks=f[2]?parseInt(f[2]):0;c.goldenClicks=f[3]?parseInt(f[3]):0;c.handmadeCookies=f[4]?parseFloat(f[4]):0;c.missedGoldenClicks=f[5]?parseInt(f[5]):0;c.backgroundType=f[6]?parseInt(f[6]):0;c.milkType=f[7]?parseInt(f[7]):0;c.cookiesReset=f[8]?parseFloat(f[8]):0;c.elderWrath=f[9]?parseInt(f[9]):0;c.pledges=f[10]?parseInt(f[10]):0;c.pledgeT=f[11]?parseInt(f[11]):0;c.nextResearch=f[12]?parseInt(f[12]):0;c.researchT=
- f[13]?parseInt(f[13]):0;f=a[5].split(";");c.BuildingsOwned=0;for(var u in Game.ObjectsById){var y=Game.ObjectsById[u];c.objects[y.name]={};y=c.objects[y.name];if(f[u]){var w=f[u].toString().split(",");y.amount=parseInt(w[0]);y.bought=parseInt(w[1]);y.totalCookies=parseInt(w[2]);y.specialUnlocked=parseInt(w[3]);c.BuildingsOwned+=y.amount}else y.unlocked=0,y.bought=0,y.totalCookies=0}if(1.035>n){f=a[6].split(";");c.UpgradesOwned=0;for(u in Game.UpgradesById)y=Game.UpgradesById[u],c.upgrades[y.name]=
- {},y=c.upgrades[y.name],f[u]?(w=f[u].split(","),y.unlocked=parseInt(w[0]),y.bought=parseInt(w[1]),y.bought&&c.UpgradesOwned++):(y.unlocked=0,y.bought=0);f=a[7]?a[7].split(";"):[];c.AchievementsOwned=0;for(u in Game.AchievementsById)y=Game.AchievementsById[u],c.achievements[y.name]={},y=c.achievements[y.name],f[u]?(w=f[u].split(","),y.won=parseInt(w[0])):y.won=0,y.won&&3!=y.hide&&c.AchievementsOwned++}else{f=a[6]?a[6]:[];f=UncompressLargeBin(f);c.UpgradesOwned=0;for(u in Game.UpgradesById)y=Game.UpgradesById[u],
- c.upgrades[y.name]={},y=c.upgrades[y.name],f[2*u]?(w=[f[2*u],f[2*u+1]],y.unlocked=parseInt(w[0]),y.bought=parseInt(w[1]),y.bought&&c.UpgradesOwned++):(y.unlocked=0,y.bought=0);f=a[7]?a[7]:[];f=UncompressLargeBin(f);c.AchievementsOwned=0;for(u in Game.AchievementsById)y=Game.AchievementsById[u],c.achievements[y.name]={},y=c.achievements[y.name],f[u]?(w=[f[u]],y.won=parseInt(w[0])):y.won=0,y.won&&3!=y.hide&&c.AchievementsOwned++}}}return c}}),ChoiceModel:Backbone.Model.extend({})}};CookieCheat.initCollections=
- function(){CookieCheat.Collections={BuildingsCollection:Backbone.Collection.extend({model:CookieCheat.Models.AutoBuyBuilding,localStorage:new Store("CookieCheatNinetainedoBuildings"),initialize:function(){return this}}),UpgradesCollection:Backbone.Collection.extend({model:CookieCheat.Models.AutoBuyUpgrade,localStorage:new Store("CookieCheatNinetainedoUpgrades"),initialize:function(){return this}}),ChoicesCollection:Backbone.Collection.extend({model:CookieCheat.Models.ChoiceModel,localStorage:new Store("CookieCheatNinetainedoGoldenChoices"),
- initialize:function(){return this},getFromArray:function(a){for(var c in a){var n=CookieCheat.clone(a[c]);n.id=a[c].name;this.add(n)}this.saveAll()},saveAll:function(){for(var a in this.models)this.models[a].save()},computeAndApply:function(){var a=_.map(this.models,function(a){return a.toJSON()});Game.goldenCookie.choose=CookieCheat.generateChooseFunc(a)}}),SavesCollection:Backbone.Collection.extend({model:CookieCheat.Models.SaveModel,localStorage:new Store("CookieCheatNinetainedoSaves"),initialize:function(){return this},
- getModelByName:function(a){var c="";_.each(this.models,function(n){n.get("name")===a&&(c=n)});return c}})}};CookieCheat.initViews=function(){CookieCheat.Views={AutoClickWrinklersView:Backbone.View.extend({elName:"#autoClickWrinklersDiv",initialize:function(){this.listenTo(this.model,"change",this.render);this.render();return this},render:function(){var a=$(this.elName),c=this;$(a).find("#autoClickWrinklersButton").off("click");$(a).find("#autoClickWrinklersButton").click(function(){c.clicked.apply(c)});
- $(a).find("#autoClickWrinklersButton").toggleClass("superGood",this.model.get("running"));$(a).find("#autoClickWrinklersButton").toggleClass("superBad",!this.model.get("running"));$(a).find("#clickWrinklersAmount").text("Clicked "+this.model.get("count")+" Wrinkler"+(1<this.model.get("count")?"s.":"."));$(a).find(".goodState").toggleClass("currentState",this.model.get("running"));$(a).find(".badState").toggleClass("currentState",!this.model.get("running"));return this},clicked:function(){this.model.get("running")?
- this.model.stop():this.model.go()}}),SafeCookiesView:Backbone.View.extend({elName:"#safeCookieDiv",initialize:function(){CookieCheat.cookieToKeep=JSON.parse(localStorage.CookieCheatNinetainedoSafeAmount||0);CookieCheat.godMustCheck=JSON.parse(localStorage.CookieCheatNinetainedoGodCheck||0);this.radioChecked=JSON.parse(localStorage.CookieCheatNinetainedoRadioChecked||3);this.f();this.render();_.bindAll(this,"f","checkLimit");this.checkId=setInterval(this.checkLimit,1E3);return this},checkLimit:function(){var a=
- $(this.elName);$(a).find(".whatAboutYou").text(Game.cookies>=CookieCheat.cookieToKeep?"You are above the limit ! ;)":"You are below the limit ! :(");$(a).find(".whatAboutYou").toggleClass("superGood",Game.cookies>=CookieCheat.cookieToKeep);$(a).find(".whatAboutYou").toggleClass("superBad",Game.cookies<CookieCheat.cookieToKeep)},render:function(){var a=$(this.elName),c=this,n="";$(a).find("#fixCookies").off("click");$(a).find("#fixCookies").click(function(){confirm("CookieGod will reset your cookies ! Are you sure ?")?
- (Game.Popup("Respect from CookHeaven... - CookieGod"),Game.cookies=Game.cookiesd=0):Game.Popup('"Coward... - CookieGod"')});$(a).find("#checkBoxToKeepForLucky").toggleClass("superGood",1===this.radioChecked);$(a).find("#checkBoxToKeepForLucky").off("click");$(a).find("#checkBoxToKeepForLucky").click(function(){c.radioChecked=1;c.changed.apply(c)});$(a).find("#checkBoxToKeepForFrenzy").off("click");$(a).find("#checkBoxToKeepForFrenzy").toggleClass("superGood",2===this.radioChecked);$(a).find("#checkBoxToKeepForFrenzy").click(function(){c.radioChecked=
- 2;c.changed.apply(c)});$(a).find("#checkBoxToKeepAny").toggleClass("superGood",3===this.radioChecked);$(a).find("#checkBoxToKeepAny").off("click");$(a).find("#checkBoxToKeepAny").click(function(){c.radioChecked=3;c.changed.apply(c)});$(a).find("#hitMePlease").off("change");$(a).find("#hitMePlease").change(function(){c.changedGod.apply(c)});$(a).find("#hitMePlease").prop("checked",CookieCheat.godMustCheck);$(a).find(".numberToKeep").off("change");$(a).find(".numberToKeep").change(function(){c.changed.apply(c)});
- $(a).find(".numberToKeep").val(CookieCheat.cookieToKeep);$(a).find(".numberToKeep").prop("disabled",3!==this.radioChecked);$(a).find(".cookieGod").text(CookieCheat.godMustCheck?"The CookieGod look on your cookies. Trust him":"The CookieGod doesn't care at all");$(a).find(".cookieGod").toggleClass("superGood",0<CookieCheat.godMustCheck);$(a).find(".cookieGod").toggleClass("superBad",!CookieCheat.godMustCheck);$(a).find(".infoToDisplay").toggleClass("superGood",0<CookieCheat.cookieToKeep&&!(2>=this.radioChecked&&
- 0>=Game.cookiesPs));$(a).find(".infoToDisplay").toggleClass("superBad",0>=CookieCheat.cookieToKeep&&!(2>=this.radioChecked&&0>=Game.cookiesPs));$(a).find(".infoToDisplay").toggleClass("superWarning",2>=this.radioChecked&&0>=Game.cookiesPs);0>=CookieCheat.cookieToKeep&&(n="Your cookies aren't safe !");1===CookieCheat.cookieToKeep&&(n="One cookie is safe !");1<CookieCheat.cookieToKeep&&(n=""+Beautify(CookieCheat.cookieToKeep)+" cookies are safe !");2>=this.radioChecked&&0>=Game.cookiesPs&&(n="You do not product cookies... =/");
- $(a).find(".infoToDisplay").text(n);this.checkLimit();return this},changed:function(){localStorage.CookieCheatNinetainedoRadioChecked=JSON.stringify(this.radioChecked);3===this.radioChecked?(CookieCheat.cookieToKeep=parseInt("0"+$(this.elName).find(".numberToKeep").val(),10),localStorage.CookieCheatNinetainedoSafeAmount=JSON.stringify(CookieCheat.cookieToKeep),this.render()):this.f()},changedGod:function(){CookieCheat.godMustCheck=$("#hitMePlease").is(":checked")?1:0;localStorage.CookieCheatNinetainedoGodCheck=
- JSON.stringify(CookieCheat.godMustCheck);this.render()},f:function(){if(1===this.radioChecked||2===this.radioChecked)CookieCheat.cookieToKeep=Math.floor(1===this.radioChecked?12E3*Game.cookiesPs:84E3*Game.cookiesPs),this.render(),setTimeout(this.f,500)}}),EarnChipsView:Backbone.View.extend({elName:"#earnHeavenDiv",initialize:function(){this.heavenEarned=JSON.parse(localStorage.CookieCheatNinetainedoEarnHeavenAmount||0);this.render();return this},render:function(){var a=$(this.elName),c=this;$(a).find(".numberToEarn").off("change");
- $(a).find(".numberToEarn").change(function(){c.changed.apply(c)});$(a).find(".numberToEarn").val("0");$(a).find(".infoToDisplay").text(0>=c.heavenEarned?"You didn't cheat chips !":1===c.heavenEarned?"You gave yourself one chip !":Beautify(c.heavenEarned)+" chips were given to you by the CookieGod !");$(a).find(".infoToDisplay").toggleClass("superGood",0<c.heavenEarned);$(a).find(".infoToDisplay").toggleClass("superBad",0>=c.heavenEarned);return this},changed:function(){_.isUndefined(Game.prestige["Heavenly chips"])&&
- (Game.prestige["Heavenly chips"]=0);var a=parseInt($(this.elName).find(".numberToEarn").val(),10);_.isFinite(a+Game.prestige["Heavenly chips"])?(this.heavenEarned+=a,Game.prestige["Heavenly chips"]+=a,localStorage.CookieCheatNinetainedoEarnHeavenAmount=JSON.stringify(this.heavenEarned),Game.recalculateGains=1,Game.Popup("The CookieGod gave you "+Beautify(a)+" chips from Heaven !")):Game.Popup("The CookieGod hates infinity, sorry...");$(this.elName).find(".numberToEarn").val(0);this.render()}}),EarnCookiesView:Backbone.View.extend({elName:"#earnCookieDiv",
- initialize:function(){this.cookieEarned=JSON.parse(localStorage.CookieCheatNinetainedoEarnAmount||0);this.render();return this},render:function(){var a=$(this.elName),c=this;$(a).find(".numberToEarn").off("change");$(a).find(".numberToEarn").change(function(){c.changed.apply(c)});$(a).find(".numberToEarn").val("0");$(a).find(".infoToDisplay").text(0>=c.cookieEarned?"You didn't cheat cookies !":1===c.cookieEarned?"You gave yourself one cookie !":Beautify(c.cookieEarned)+" cookies were given to you by the CookieGod !");
- $(a).find(".infoToDisplay").toggleClass("superGood",0<c.cookieEarned);$(a).find(".infoToDisplay").toggleClass("superBad",0>=c.cookieEarned);return this},changed:function(){var a=parseInt($(this.elName).find(".numberToEarn").val(),10);_.isFinite(a+Game.cookies)?(this.cookieEarned+=a,Game.Earn(a),localStorage.CookieCheatNinetainedoEarnAmount=JSON.stringify(this.cookieEarned),Game.Popup("The CookieGod gave you "+Beautify(a)+" cookies !")):Game.Popup("The CookieGod hates infinity, sorry...");$(this.elName).find(".numberToEarn").val(0);
- this.render()}}),GoldenSpawnView:Backbone.View.extend({elName:"#goldenSpawnDiv",initialize:function(){this.listenTo(this.model,"change",this.render);this.render();return this},render:function(){var a=$(this.elName),c=this;$(a).find("#goldenSpawnButton").off("click");$(a).find("#goldenSpawnButton").click(function(){c.clicked.apply(c)});$(a).find("#goldenSpawnedAmount").text(this.model.get("count")+" golden cookie"+(1<this.model.get("count")?"s spawned.":" spawned."));return this},clicked:function(){Game.goldenCookie.life=
- 0;Game.goldenCookie.time=Game.goldenCookie.minTime;Game.goldenCookie.spawn();this.model.incr()}}),AutoClickView:Backbone.View.extend({elName:"#autoClickDiv",initialize:function(){this.listenTo(this.model,"change",this.render);this.render();return this},render:function(){var a=$(this.elName),c=this,n=1E3/this.model.get("timeOut");$(a).find("#autoClickButton").off("click");$(a).find("#clickingSpeed").off("change");$(a).find("#autoClickButton").click(function(){c.clicked.apply(c)});$(a).find("#clickingSpeed").change(function(){c.changed.apply(c)});
- $(a).find("#clickingSpeed").val(n);$(a).find("#autoClickButton").toggleClass("superGood",this.model.get("running"));$(a).find("#autoClickButton").toggleClass("superBad",!this.model.get("running"));$(a).find("#clickAmount").text("Clicked "+this.model.get("count")+" time"+(1<this.model.get("count")?"s.":"."));$(a).find(".goodState").toggleClass("currentState",this.model.get("running"));$(a).find(".badState").toggleClass("currentState",!this.model.get("running"));$(a).find("#clickingSpeedText").text("Clicking speed : "+
- n.toPrecision(5)+" clicks per second");return this},clicked:function(){this.model.get("running")?this.model.stop():this.model.go()},changed:function(){var a=1E3/parseInt($(this.elName).find("#clickingSpeed").val(),10);this.model.set({timeOut:a});this.model.save()}}),AutoSpawnView:Backbone.View.extend({elName:"#autoSpawnDiv",initialize:function(){this.listenTo(this.model,"change",this.render);this.render();return this},render:function(){var a=$(this.elName),c=this,n=this.model.get("timeOut");$(a).find("#autoSpawnButton").off("click");
- $(a).find("#spawningSpeed").off("change");$(a).find("#autoSpawnButton").click(function(){c.clicked.apply(c)});$(a).find("#spawningSpeed").change(function(){c.changed.apply(c)});$(a).find("#spawningSpeed").val(n);$(a).find("#autoSpawnButton").toggleClass("superGood",this.model.get("running"));$(a).find("#autoSpawnButton").toggleClass("superBad",!this.model.get("running"));$(a).find("#spawnAmount").text("Spawned "+this.model.get("count")+" golden cookie"+(1<this.model.get("count")?"s.":"."));$(a).find(".goodState").toggleClass("currentState",
- this.model.get("running"));$(a).find(".badState").toggleClass("currentState",!this.model.get("running"));$(a).find("#spawningSpeedText").text("Spawning interval : "+CookieCheat.processMs(n.toPrecision(5)));return this},clicked:function(){this.model.get("running")?this.model.stop():this.model.go()},changed:function(){var a=parseInt($(this.elName).find("#spawningSpeed").val(),10);this.model.stop();this.model.set({timeOut:a});this.model.go()}}),AutoGoldenClickView:Backbone.View.extend({elName:"#autoGoldenClickDiv",
- initialize:function(){this.listenTo(this.model,"change",this.render);this.render();return this},render:function(){var a=$(this.elName),c=this;$(a).find("#autoGoldenClickButton").off("click");$(a).find("#autoGoldenClickButton").click(function(){c.clicked.apply(c)});$(a).find("#autoGoldenClickButton").toggleClass("superGood",this.model.get("running"));$(a).find("#autoGoldenClickButton").toggleClass("superBad",!this.model.get("running"));$(a).find("#goldenClickAmount").text("Clicked "+this.model.get("count")+
- " golden cookie"+(1<this.model.get("count")?"s.":"."));$(a).find(".goodState").toggleClass("currentState",this.model.get("running"));$(a).find(".badState").toggleClass("currentState",!this.model.get("running"));return this},clicked:function(){this.model.get("running")?this.model.stop():this.model.go()}}),AutoReindeerClickView:Backbone.View.extend({elName:"#autoReindeerClickDiv",initialize:function(){this.listenTo(this.model,"change",this.render);this.render();return this},render:function(){var a=
- $(this.elName),c=this;$(a).find("#autoReindeerClickButton").off("click");$(a).find("#autoReindeerClickButton").click(function(){c.clicked.apply(c)});$(a).find("#autoReindeerClickButton").toggleClass("superGood",this.model.get("running"));$(a).find("#autoReindeerClickButton").toggleClass("superBad",!this.model.get("running"));$(a).find("#reindeerClickAmount").text("Clicked "+this.model.get("count")+" reindeer"+(1<this.model.get("count")?"s.":"."));$(a).find(".goodState").toggleClass("currentState",
- this.model.get("running"));$(a).find(".badState").toggleClass("currentState",!this.model.get("running"));return this},clicked:function(){this.model.get("running")?this.model.stop():this.model.go()}}),BuildingFormView:Backbone.View.extend({elName:"#newForm",addOne:function(a,c){var n=new CookieCheat.Models.AutoBuyBuilding({maxAmount:c,buildingId:a});n.isValid()?(CookieCheat.collections.buildingsCollection.add(n),n.save()):alert(n.validationError)},initialize:function(){this.render();return this},render:function(){var a=
- $(this.elName),c=this;$(a).find("#newAutoBuyBuildingsButton").off("click");$(a).find("#newAutoBuyBuildingsButton").click(function(a){c.clicked.call(c,a)});for(var n in Game.ObjectsById)$(a).find("#selectBuilding").append('<option value="'+n+'">'+Game.ObjectsById[n].name+"</option>");return this},clicked:function(a){a.preventDefault();var c=$(this.elName);a=$(c).find("#selectBuilding").val();c=parseInt($(c).find(".number").val(),10);if("all"!==a)this.addOne(parseInt(a,10),c);else if("all"===a)for(var n in Game.ObjectsById)this.addOne(n,
- c)}}),BuildingListView:Backbone.View.extend({elName:"#buildingsListContainer",initialize:function(){var a=this;this.template=_.template(CookieCheat.miscVars.specialTemplate);this.listenTo(this.collection,"add",function(){a.update();a.render()});this.listenTo(this.collection,"remove",function(){a.update();a.render()});this.update();this.render();return this},update:function(){CookieCheat.views.buildingViews=[];_.each(this.collection.models,function(a){CookieCheat.views.buildingViews.push(new CookieCheat.Views.BuildingView({model:a}))});
- return this},render:function(){var a=$(this.elName),c=this;$(a).toggleClass("superHidden",0===CookieCheat.views.buildingViews.length);$(a).html("");0<CookieCheat.views.buildingViews.length&&($(a).append(this.template()),$(a).find(".myPauseAllBtn").off("click"),$(a).find(".myPauseAllBtn").click(function(a){c.pauseAll.call(c,a)}),$(a).find(".myRemoveAllBtn").off("click"),$(a).find(".myRemoveAllBtn").click(function(a){c.removeAll.call(c,a)}),$(a).find(".myGoAllBtn").off("click"),$(a).find(".myGoAllBtn").click(function(a){c.goAll.call(c,
- a)}),$(a).find(".myRemoveDoneBtn").off("click"),$(a).find(".myRemoveDoneBtn").click(function(a){c.removeBought.call(c,a)}));_.each(CookieCheat.views.buildingViews,function(c){$(a).append(c.render().$el)});return this},goAll:function(){_.each(CookieCheat.views.buildingViews,function(a){a.model.go()})},pauseAll:function(){_.each(CookieCheat.views.buildingViews,function(a){a.model.stop()})},removeAll:function(){_.each(CookieCheat.views.buildingViews,function(a){a.model.stop();a.model.destroy();CookieCheat.collections.buildingsCollection.remove(a.model);
- a.remove()})},removeBought:function(){_.each(CookieCheat.views.buildingViews,function(a){a.model.get("count")>=a.model.get("maxAmount")&&(a.model.stop(),a.model.destroy(),CookieCheat.collections.buildingsCollection.remove(a.model),a.remove())})}}),BuildingView:Backbone.View.extend({tagName:"div",className:"tabElem",initialize:function(){this.listenTo(this.model,"change",this.render);this.template=_.template(CookieCheat.miscVars.buildingTemplate);return this},render:function(){this.$el.html(this.template());
- var a=this.$el;$(a).find(".myGoBtn").off("click");$(a).find(".myPauseBtn").off("click");$(a).find(".myRemoveBtn").off("click");var c=this;$(a).find(".myRemoveBtn").click(function(){c.removed.apply(c)});$(a).find(".myGoBtn").click(function(){c.went.apply(c)});$(a).find(".myPauseBtn").click(function(){c.paused.apply(c)});$(a).find(".goodState").toggleClass("currentState",this.model.get("running"));$(a).find(".badState").toggleClass("currentState",!this.model.get("running"));$(a).find(".howManyBought").text("Bought : "+
- this.model.get("bought")+" ("+this.model.get("count")+"/"+this.model.get("maxAmount")+")");$(a).find(".buildingName").text(Game.ObjectsById[this.model.get("buildingId")].name);$(a).find(".buildingName").toggleClass("superGood",this.model.get("running"));$(a).find(".buildingName").toggleClass("superBad",!this.model.get("running"));$(a).toggleClass("tabElemDone",this.model.get("count")>=this.model.get("maxAmount"));return this},removed:function(){var a=this;this.$el.fadeOut("fast",function(){a.model.stop();
- a.model.set({again:!1});a.model.destroy();CookieCheat.collections.buildingsCollection.remove(a.model);a.remove()})},went:function(){this.model.go()},paused:function(){this.model.stop()}}),UpgradeFormView:Backbone.View.extend({elName:"#newUpgradeForm",addOne:function(a){a=new CookieCheat.Models.AutoBuyUpgrade({upgradeId:a});a.isValid()?(CookieCheat.collections.upgradesCollection.add(a),a.save()):alert(a.validationError)},initialize:function(){CookieCheat.upgradeNames={};_.each(_.pluck(Game.UpgradesById,
- "name"),function(a){CookieCheat.upgradeNames[a.toLowerCase()]=a});this.render();return this},render:function(){var a=$(this.elName),c=this;$(a).find("#newAutoBuyUpgradesButton").off("click");$(a).find("#newAutoBuyUpgradesButton").click(function(a){c.clicked.call(c,a)});for(var n in Game.UpgradesById)!Game.UpgradesById[n].bought&&-1===CookieCheat.upgradeBlacklist.indexOf(Game.UpgradesById[n].name)&&$(a).find("#selectUpgrade").append('<option value="'+n+'">'+Game.UpgradesById[n].name+"</option>");return this},
- clicked:function(a){a.preventDefault();var c=$(this.elName);a=$(c).find("#selectUpgrade").val();c=0<$(c).find("#enterNameUpgrade").val().length?(c=CookieCheat.upgradeNames[$(c).find("#enterNameUpgrade").val().toLowerCase()])?Game.Upgrades[c].id:-1:a;if(c===a&&"all"!==a)this.addOne(parseInt(c,10));else if("all"===a)for(var n in Game.UpgradesById)!Game.UpgradesById[n].bought&&-1===CookieCheat.upgradeBlacklist.indexOf(Game.UpgradesById[n].name)&&this.addOne(Game.UpgradesById[n].id);this.render()}}),
- UpgradeListView:Backbone.View.extend({elName:"#upgradesListContainer",initialize:function(){var a=this;this.template=_.template(CookieCheat.miscVars.specialTemplate);this.listenTo(this.collection,"add",function(){a.update();a.render()});this.listenTo(this.collection,"remove",function(){a.update();a.render()});this.update();this.render();return this},update:function(){CookieCheat.views.upgradeViews=[];_.each(this.collection.models,function(a){CookieCheat.views.upgradeViews.push(new CookieCheat.Views.UpgradeView({model:a}))});
- return this},render:function(){var a=$(this.elName),c=this;$(a).toggleClass("superHidden",0===CookieCheat.views.upgradeViews.length);$(a).html("");0<CookieCheat.views.upgradeViews.length&&($(a).append(this.template()),$(a).find(".myPauseAllBtn").off("click"),$(a).find(".myPauseAllBtn").click(function(a){c.pauseAll.call(c,a)}),$(a).find(".myRemoveAllBtn").off("click"),$(a).find(".myRemoveAllBtn").click(function(a){c.removeAll.call(c,a)}),$(a).find(".myGoAllBtn").off("click"),$(a).find(".myGoAllBtn").click(function(a){c.goAll.call(c,
- a)}),$(a).find(".myRemoveDoneBtn").off("click"),$(a).find(".myRemoveDoneBtn").click(function(a){c.removeBought.call(c,a)}));_.each(CookieCheat.views.upgradeViews,function(c){$(a).append(c.render().$el)});return this},goAll:function(){_.each(CookieCheat.views.upgradeViews,function(a){a.model.go()})},pauseAll:function(){_.each(CookieCheat.views.upgradeViews,function(a){a.model.stop()})},removeAll:function(){_.each(CookieCheat.views.upgradeViews,function(a){a.model.stop();a.model.destroy();CookieCheat.collections.upgradesCollection.remove(a.model);
- a.remove()})},removeBought:function(){_.each(CookieCheat.views.upgradeViews,function(a){0<Game.UpgradesById[a.model.get("upgradeId")].bought&&(a.model.stop(),a.model.destroy(),CookieCheat.collections.upgradesCollection.remove(a.model),a.remove())})}}),UpgradeView:Backbone.View.extend({tagName:"div",className:"tabElem",initialize:function(){this.listenTo(this.model,"change",this.render);this.template=_.template(CookieCheat.miscVars.upgradeTemplate);return this},render:function(){this.$el.html(this.template());
- var a=this.$el;$(a).find(".myGoBtn").off("click");$(a).find(".myPauseBtn").off("click");$(a).find(".myRemoveBtn").off("click");var c=this;$(a).find(".myRemoveBtn").click(function(){c.removed.apply(c)});$(a).find(".myGoBtn").click(function(){c.went.apply(c)});$(a).find(".myPauseBtn").click(function(){c.paused.apply(c)});$(a).find(".goodState").toggleClass("currentState",this.model.get("running"));$(a).find(".badState").toggleClass("currentState",!this.model.get("running"));$(a).find(".unlockedOrNot").text(Game.UpgradesById[c.model.get("upgradeId")].unlocked?
- "Unlocked":"Locked");$(a).find(".unlockedOrNot").toggleClass("superGood",Game.UpgradesById[c.model.get("upgradeId")].unlocked);$(a).find(".unlockedOrNot").toggleClass("superBad",!Game.UpgradesById[c.model.get("upgradeId")].unlocked);$(a).find(".upgradeName").text(Game.UpgradesById[this.model.get("upgradeId")].name);$(a).find(".upgradeName").toggleClass("superGood",this.model.get("running"));$(a).find(".upgradeName").toggleClass("superBad",!this.model.get("running"));$(a).toggleClass("tabElemDone",
- 0<Game.UpgradesById[c.model.get("upgradeId")].bought);return this},removed:function(){var a=this;this.$el.fadeOut("slow",function(){a.model.stop();a.model.destroy();CookieCheat.collections.upgradesCollection.remove(a.model);a.remove()})},went:function(){this.model.go()},paused:function(){this.model.stop()}}),SaveFormView:Backbone.View.extend({elName:"#newSaveForm",initialize:function(){this.render();return this},render:function(){var a=$(this.elName),c=this;$(a).find("#newSaveButton").off("click");
- $(a).find("#newSaveButton").click(function(a){c.clicked.call(c,a)});$(a).find("#selectSaveCode").off("change");$(a).find("#selectSaveCode").change(function(a){c.changed.call(c,a)});return this},clicked:function(a){a.preventDefault();a=$(this.elName);var c=new CookieCheat.Models.SaveModel({name:0<$(a).find("#enterNameSave").val().length?$(a).find("#enterNameSave").val():"noname",code:0<$(a).find("#saveCode").val().length?$(a).find("#saveCode").val():CookieCheat.miscVars.newGame,asked:!1});c.isValid()?
- (CookieCheat.collections.savesCollection.add(c),$(a).find("#enterNameSave").val(""),c.save(),this.render()):alert(c.validationError)},changed:function(a){a=$(this.elName);var c=$(a).find("#selectSaveCode").val();"manual"===c?($(a).find("#saveCode").removeAttr("disabled"),$(a).find("#saveCode").val(""),$(a).find("#saveCode").attr("placeholder","Paste your code here")):("current"===c?($(a).find("#saveCode").removeAttr("placeholder"),$(a).find("#saveCode").val(Game.WriteSave(1))):($(a).find("#saveCode").removeAttr("placeholder"),
- $(a).find("#saveCode").val($(a).find("#selectSaveCode").val())),$(a).find("#saveCode").attr("disabled","1"));this.render()}}),SaveListView:Backbone.View.extend({elName:"#savesListContainer",initialize:function(){var a=this;this.listenTo(this.collection,"add",function(){a.update();a.render()});this.listenTo(this.collection,"remove",function(){a.update();a.render()});this.noAsked();this.update();this.render();return this},update:function(){CookieCheat.views.saveViews=[];_.each(this.collection.models,
- function(a){CookieCheat.views.saveViews.push(new CookieCheat.Views.SaveView({model:a}))});return this},render:function(){var a=$(this.elName);$(a).toggleClass("superHidden",0===CookieCheat.views.saveViews.length);$(a).html("");_.each(CookieCheat.views.saveViews,function(c){$(a).append(c.render().$el)});return this},noAsked:function(){_.each(this.collection.models,function(a){a.set({asked:!1})})}}),SaveView:Backbone.View.extend({tagName:"div",className:"tabElem",initialize:function(){this.listenTo(this.model,
- "change",this.render);this.template=_.template(CookieCheat.miscVars.saveTemplate);return this},render:function(){this.$el.html(this.template());var a=this.$el;$(a).find(".myLoadBtn").off("click");$(a).find(".myRemoveBtn").off("click");$(a).find(".saveName").off("dblclick");$(a).find(".enterNameSave").off("blur");$(a).find(".myExportBtn").off("click");$(a).find(".mySaveHereBtn").off("click");var c=this;$(a).find(".mySaveHereBtn").click(function(){c.savedHere.apply(c)});$(a).find(".myExportBtn").click(function(){c.exported.apply(c)});
- $(a).find(".myLoadBtn").click(function(){c.loaded.apply(c)});$(a).find(".myRemoveBtn").click(function(){c.removed.apply(c)});$(a).find(".saveName").dblclick(function(){c.dblclicked.apply(c)});$(a).find(".enterNameSave").blur(function(){c.blured.apply(c)});$(a).find(".saveName").text(this.model.get("name"));$(a).find(".saveDate").text("Created : "+(new Date(this.model.get("date"))).toUTCString());return this},savedHere:function(){if(this.model.get("asked")||confirm("Do you want to overwrite "+this.model.get("name")+
- " with your current save ? (You won't be asked again to save here !)"))this.model.saveGame(Game.WriteSave(1)),this.model.set({asked:!1}),CookieCheat.views.saveListView.noAsked(),this.model.save(),this.model.set({asked:!0}),CookieCheat.currentSave=this.model,Game.Popup("Game succesfully saved in the cheat interface !")},removed:function(){var a=this;confirm("Do you really want to remove ["+this.model.get("name")+"] ?")&&this.$el.fadeOut("fast",function(){a.model.destroy();CookieCheat.collections.savesCollection.remove(a.model);
- a.remove()})},exported:function(){prompt("Here is your exported save !",this.model.get("code"))},loaded:function(){confirm("Do you want to save before loading another game ?")&&("undefined"!==typeof CookieCheat.currentSave&&!0===CookieCheat.currentSave.get("asked")?(CookieCheat.currentSave.saveGame(Game.WriteSave(1)),CookieCheat.currentSave.set({asked:!1}),CookieCheat.currentSave.save()):(m=new CookieCheat.Models.SaveModel({name:"Safe save",code:Game.WriteSave(1)}),CookieCheat.collections.savesCollection.add(m),
- m.save()));CookieCheat.views.saveListView.noAsked();CookieCheat.currentSave=this.model;Game.LoadSave(this.model.get("code"))},dblclicked:function(){var a=this.$el;$(a).find(".saveName").hide();$(a).find(".enterNameSave").val(this.model.get("name"));$(a).find(".enterNameSave").show();$(a).find(".enterNameSave").select()},blured:function(){var a=this.$el,c=$(a).find(".enterNameSave").val()+"";1>c.length&&(c="noname");$(a).find(".enterNameSave").hide();this.model.set({name:c});$(a).find(".saveName").val(this.model.get("name"));
- $(a).find(".saveName").show();this.model.save()}}),ChoiceListView:Backbone.View.extend({elName:"#choicesListContainer",initialize:function(){var a=this;this.listenTo(this.collection,"add",function(){a.update();a.render()});this.listenTo(this.collection,"remove",function(){a.update();a.render()});this.update();this.render();return this},update:function(){var a=this;CookieCheat.views.choiceViews=[];_.each(this.collection.models,function(c){CookieCheat.views.choiceViews.push(new CookieCheat.Views.ChoiceView({model:c,
- collection:a.collection}))});return this},render:function(){var a=$(this.elName);$(a).toggleClass("superHidden",0===CookieCheat.views.choiceViews.length);$(a).html("");_.each(CookieCheat.views.choiceViews,function(c){$(a).append(c.render().$el)});return this}}),ChoiceView:Backbone.View.extend({tagName:"div",className:"tabElem",initialize:function(){this.listenTo(this.model,"change",this.render);this.template=_.template(CookieCheat.miscVars.choiceTemplate);return this},render:function(){this.$el.html(this.template());
- var a=this.$el,c=this.model.get("active");$(a).find(".myToggleBtn").off("click");$(a).find(".mySpawnBtn").off("click");var n=this;$(a).find(".myToggleBtn").click(function(){n.toggle.apply(n)});$(a).find(".mySpawnBtn").click(function(){n.spawnNow.apply(n)});$(a).find(".goodState").toggleClass("currentState",c);$(a).find(".badState").toggleClass("currentState",!c);$(a).find(".activeOrNot").text(c?"Active":"Inactive");$(a).find(".activeOrNot").toggleClass("superGood",c);$(a).find(".activeOrNot").toggleClass("superBad",
- !c);$(a).find(".choiceName").text(this.model.get("name"));$(a).find(".choiceName").toggleClass("superGood",c);$(a).find(".choiceName").toggleClass("superBad",!c);return this},spawnNow:function(){CookieCheat.executeChoice(this.model.toJSON())},toggle:function(){this.model.set({active:!this.model.get("active")});!this.model.get("active")&&Game.goldenCookie.chainName===this.model.get("name")&&(Game.goldenCookie.chain=0);this.model.save();this.collection.computeAndApply()}})}};CookieCheat.addButton=function(){$("#comments").append('<div id="cheatButton" class="warning button"><span style="top: -8px;font-size: 0.8em;position: relative;">Cookie<br>Cheat</span></div>');
- l("cheatButton").onclick=function(){Game.ShowMenu("cheat")}};CookieCheat.processMs=function(a){var c="",n,f=[];_.each({years:{name:"year",plural:"years",num:31104E6},months:{name:"month",plural:"months",num:2592E6},days:{name:"day",plural:"days",num:864E5},hours:{name:"h",num:36E5},minutes:{name:"min",plural:"mins",num:6E4},seconds:{name:"sec",num:1E3},milliseconds:{name:"ms",num:1}},function(c){var n=0,n=Math.floor(a/c.num);a-=c.num*n;0!=n&&f.push(n+" "+("undefined"!==typeof c.plural&&1<n?c.plural:
- c.name))});n=f.length;_.each(f,function(a,f){c+=a;c=f===n-1?c+".":c+", "});return c};CookieCheat.protectToKeepSafe=function(){_.each(Game.ObjectsById,function(a,c,n){a=a.buy.toString().replace("if (Game.cookies>=price)","var q = false;if ( !! CookieCheat.godMustCheck && (Game.cookies - price < CookieCheat.cookieToKeep)) q = confirm('The CookieGod warns you about the safe cookies... Are you sure ?');else if (!CookieCheat.godMustCheck || (Game.cookies - price >= CookieCheat.cookieToKeep && CookieCheat.godMustCheck)) q = true;if (q && Game.cookies >= price)");
- a=a.substring(a.indexOf("{")+1,a.lastIndexOf("}"));n[c].buy=new Function(a)});_.each(Game.UpgradesById,function(a,c,n){a=a.buy.toString().replace("if (Game.cookies>=price && !this.bought)","var q = false;if ( !! CookieCheat.godMustCheck && (Game.cookies - price < CookieCheat.cookieToKeep)) q = confirm('The CookieGod warns you about the safe cookies... Are you sure ?');else if (!CookieCheat.godMustCheck || (Game.cookies - price >= CookieCheat.cookieToKeep && CookieCheat.godMustCheck)) q = true;if (q && Game.cookies>=price && !this.bought)");
- a=a.substring(a.indexOf("{")+1,a.lastIndexOf("}"));n[c].buy=new Function(a)})};CookieCheat.howManyCookies=function(a,c,n,f){n||(n=0);if(!c)return 0;a||(a="min");if("string"===typeof c||!Array.isArray(c))c=[c];f||(f=this);c=_.map(c,function(a){"string"===typeof a&&(a=new Function("return "+a));return _.isFunction(a)?a.call(f):a});"function"===typeof n&&(n=n.call(f));var u=-1;"min"===a?(c.sort(function(a,c){return a-c}),u=c[0]):"max"===a?(c.sort(function(a,c){return c-a}),u=c[0]):"random"===a?u=c[Math.floor(Math.random()*
- c.length)]:"exact"===a&&(u=c[0]);return 0>u?0+n:u+n};CookieCheat.parseOrAnd=function(a,c){var n="(",f=this,u=!1,y="or"===(c||"and")?" || ":" && ";if(_.isArray(a))for(var w in a){var r=a[w],z;for(z in r)if("or"===z||"and"===z)u&&(n+=y),n+=CookieCheat.parseOrAnd.call(this,r[z],z),u=!0;else if("val"===z||"vals"===z||"value"===z||"values"===z)Array.isArray(r[z])&&_.each(r[z],function(a,c){"function"===typeof a&&(r[z][c]="("+_.bind(a,f)+")()")}),u&&(n+=y),n=Array.isArray(r[z])?n+r[z].join(y):n+("function"===
- typeof r[z]?"("+_.bind(r[z],f)+")()":r[z]),u=!0}else for(z in r=a,r)if("or"===z||"and"===z)u&&(n+=y),n+=CookieCheat.parseOrAnd.call(this,r[z],z),u=!0;else if("val"===z||"vals"===z||"value"===z||"values"===z)Array.isArray(r[z])&&_.each(r[z],function(a,c){"function"===typeof a&&(r[z][c]="("+_.bind(a,f)+")()")}),u&&(n+=y),n=Array.isArray(r[z])?n+r[z].join(y):n+("function"===typeof r[z]?"("+_.bind(r[z],f)+")()":r[z]),u=!0;return n+")"};CookieCheat.clone=function(a){var c;if(null===a||"undefined"===typeof a)return a;
- if("string"!==typeof a&&Array.isArray(a)){c=[];for(var n=0,f=a.length;n<f;n++)c.push(CookieCheat.clone(a[n]))}else if("object"===typeof a&&a.constructor===Object){c={};for(var u in a)if("string"!==typeof a[u]&&Array.isArray(a[u])){c[u]=[];n=0;for(f=a[u].length;n<f;n++)c[u].push(CookieCheat.clone(a[u][n]))}else c[u]="object"===typeof a[u]&&a[u].constructor===Object?CookieCheat.clone(a[u]):a[u]}else c=a;return c};CookieCheat.loadChoices=function(){CookieCheat.choices={frenzy:{active:!0,name:"frenzy",
- condition:[{val:"Game.goldenCookie.wrath == 0"}],type:"cpsChange",message:"'Frenzy : cookie production x' + this.params.frenzy + ' for ' + this.realTime + ' seconds !'",recalculateGains:!0,params:{frenzy:7,baseTime:77}},"multiply cookies":{active:!0,name:"multiply cookies",condition:[{val:"true"}],type:"cookieModif",message:"'Lucky ! +' + Beautify(this.cookies) + ' cookies !'",recalculateGains:!1,params:{modifType:"earn",modifFunc:Game.Earn,type:"min",fixAdd:13,vals:["Game.cookies * 0.1","Game.cookiesPs * 60 * 20"]}},
- "ruin cookies":{active:!0,name:"ruin cookies",condition:[{val:"Game.goldenCookie.wrath > 0"}],type:"cookieModif",message:"'Ruin ! Lost ' + Beautify(this.cookies) + ' cookies !'",recalculateGains:!1,params:{modifType:"lose",modifFunc:Game.Spend,type:"min",fixAdd:13,val:["Game.cookies * 0.05","Game.cookiesPs * 60 * 10"]}},"blood frenzy":{active:!0,name:"blood frenzy",condition:[{val:["Game.goldenCookie.wrath > 0","Math.random() < 0.3"]}],type:"cpsChange",message:"'Elder frenzy : cookie production x' + this.params.frenzy + ' for ' + this.realTime + ' seconds !'",
- recalculateGains:!0,params:{frenzy:666,baseTime:6}},clot:{active:!0,name:"clot",condition:[{val:"Game.goldenCookie.wrath > 0"}],type:"cpsChange",message:"'Clot : cookie production halved for ' + this.realTime + ' seconds !'",recalculateGains:!0,params:{frenzy:0.5,baseTime:66}},"auto click":{active:!0,name:"auto click",condition:[{val:["Math.random() < 0.05","Game.cookieClicks > 1000"]}],type:"autoClick",message:"'Auto click ! Clicking ' + this.params.clicksPerSecond + ' times per second for ' + this.realTime + ' seconds !'",
- recalculateGains:!1,params:{clicksPerSecond:10,baseTime:5}},"click frenzy":{active:!0,name:"click frenzy",condition:[{val:"Math.random() < 0.05"}],type:"mouseChange",message:"'Click frenzy ! Clicking power x' + this.params.frenzy + ' for ' + this.realTime + ' seconds !'",recalculateGains:!0,params:{frenzy:777,baseTime:13}},"chain cookie":{active:!0,name:"chain cookie",condition:[{or:[{and:[{val:["Game.cookiesEarned >= 100000","Math.random() < 0.01"]}]},{and:[{val:["Game.goldenCookie.wrath > 0","Math.random() < 0.3"]}]}]}],
- type:"chain",message:"(function () {if (Game.goldenCookie.chain !== 0)return 'Cookie chain : +' + Beautify(this.cookies) + ' cookies !';else return 'Cookie chain : +' + Beautify(this.cookies) + ' cookies !<br>Cookie chain over.';}).call(this)",recalculateGains:!1,params:{chainNumber:"i",chainType:"cookieModif",chainStop:[{or:[{val:["Math.random() < 0.1","parseInt(this.cookies.toString() + this.cookies.toString()[0]) >= Game.cookies * 0.25","this.cookies > Game.cookiesPs * 60 * 60 * 6"]}]},{val:"this.chainRealNumber > 4"}],
- modifType:"earn",modifFunc:Game.Earn,type:"exact",fixAdd:0,val:"(function () {var max = this.chainRealNumber;var moni = '';var digit = (Game.goldenCookie.wrath?'6':'7');for (var i = 0; i < max; i++)moni += digit;return parseInt(moni);}).call(this)"}},"chain multiplicator":{active:!0,name:"chain multiplicator",condition:[{val:["Math.random() < 0.01","Game.cookiesEarned >= 1000000000","Game.goldenCookie.wrath == 1","Game.elderWrath > 1"]}],type:"chain",message:"(function () {if (Game.goldenCookie.chain !== 0)return 'Chain multiplicator : cookie production x' + this.params.frenzy + ' for ' + this.realTime + ' seconds !';else return 'Chain multiplicator : cookie production x' + this.params.frenzy + ' for ' + this.realTime + ' seconds !<br>Cookie chain over.';}).call(this)",
- recalculateGains:!0,params:{chainNumber:"4 + 0.5 * i",chainType:"cpsChange",chainStop:[{or:[{vals:["Math.random() < 0.1","this.chainRealNumber > 15"]}],vals:"this.chainRealNumber > 4"}],frenzy:"this.chainRealNumber",baseTime:"20 + this.chainRealNumber * 3"}},cheaper:{active:!0,name:"cheaper",condition:[{vals:["Math.random() < 0.2","Game.HasAchiev('Architect')","Game.HasAchiev('Mathematician')","Game.HasAchiev('Base 10')"]}],type:"buildingSales",message:"'Cheaper : ' + this.params.buildingName + ' price x' + this.params.priceMultiplicator + ' for ' + this.realTime + ' seconds !'",
- recalculateGains:!0,params:{baseTime:12,priceMultiplicator:0.2,buildingName:"choose(_.pluck(Game.ObjectsById, 'name'))"}}}};CookieCheat.updateMouseCps=function(){Game.mouseFrenzyPower=1;CookieCheat.oldGameFuncs.mouseCps=Game.mouseCps;var a=Game.mouseCps.toString().replace("if (Game.clickFrenzy>0) mult*=777","if (Game.clickFrenzy > 0) mult *= (Game.mouseFrenzyPower || 777); else Game.mouseFrenzyPower = 1;"),a=a.substring(a.indexOf("{")+1,a.lastIndexOf("}"));Game.mouseCps=new Function(a)};CookieCheat.executeChoice=
- function(a){var c=CookieCheat.clone(a),n={cpsChange:function(a){var c=a.params.baseTime;"string"===typeof a.params.baseTime&&(c=(new Function("return "+a.params.baseTime)).call(a));a.realTime=c+c*Game.Has("Get lucky");Game.frenzy=Game.fps*a.realTime;"string"===typeof a.params.frenzy&&(a.params.frenzy=(new Function("return "+a.params.frenzy)).call(a));Game.frenzyPower=a.params.frenzy;n.finish(a)},cookieModif:function(a){_.isUndefined(a.cookies)&&(a.cookies=CookieCheat.howManyCookies(a.params.type,
- a.params.vals||a.params.val||a.params.value||a.params.values,a.params.fixAdd,a));"undefined"!==typeof a.params.modifFunc?a.params.modifFunc(a.cookies):("earn"===a.params.modifType?Game.Earn:Game.Spend)(a.cookies);n.finish(a)},chain:function(a){Game.goldenCookie.chainName=a.name;Game.goldenCookie.chain++;a.chainRealNumber=(new Function("i","return "+a.params.chainNumber)).call(a,Game.goldenCookie.chain);"cookieModif"===a.params.chainType&&(a.cookies=CookieCheat.howManyCookies(a.params.type,a.params.vals||
- a.params.val||a.params.value||a.params.values,a.params.fixAdd,a));(new Function("return "+CookieCheat.parseOrAnd(a.params.chainStop))).call(a)&&(Game.goldenCookie.chain=0);n[a.params.chainType](a)},autoClick:function(a){var c=a.params.baseTime;"string"===typeof a.params.baseTime&&(c=(new Function("return "+a.params.baseTime)).call(a));a.realTime=c+c*Game.Has("Get lucky");"string"===typeof a.params.clicksPerSecond&&(a.params.clicksPerSecond=(new Function("return "+a.params.clicksPerSecond)).call(a));
- a.clickInterval=1E3/a.params.clicksPerSecond;var y=function(c){0<c&&(Game.ClickCookie(),setTimeout(function(){y(c-1)},a.clickInterval))};y(a.realTime*a.params.clicksPerSecond);n.finish(a)},mouseChange:function(a){var c=a.params.baseTime;"string"===typeof a.params.baseTime&&(c=(new Function("return "+a.params.baseTime)).call(a));a.realTime=c+c*Game.Has("Get lucky");"string"===typeof a.params.frenzy&&(a.params.frenzy=(new Function("return "+a.params.frenzy)).call(a));Game.mouseFrenzyPower=a.params.frenzy;
- Game.clickFrenzy=Game.fps*a.realTime;n.finish(a)},buildingSales:function(a){var c=a.params.baseTime;"string"===typeof a.params.baseTime&&(c=(new Function("return "+a.params.baseTime)).call(a));a.realTime=c+c*Game.Has("Get lucky");"string"===typeof a.params.priceMultiplicator&&(a.params.priceMultiplicator=(new Function("return "+a.params.priceMultiplicator)).call(a));"string"===typeof a.params.buildingName&&(a.params.buildingName=(new Function("return "+a.params.buildingName)).call(a));if("undefined"===
- typeof Game.Objects[a.params.buildingName].oldBasePrice||Game.Objects[a.params.buildingName].oldBasePrice===Game.Objects[a.params.buildingName].basePrice)Game.Objects[a.params.buildingName].oldBasePrice=Game.Objects[a.params.buildingName].basePrice;Game.Objects[a.params.buildingName].basePrice=Game.Objects[a.params.buildingName].oldBasePrice*a.params.priceMultiplicator;Game.Objects[a.params.buildingName].currentTime=0;Game.Objects[a.params.buildingName].stopTime=a.realTime;Game.Objects[a.params.buildingName].refresh();
- Game.storeToRebuild=1;var y=function(){Game.Objects[a.params.buildingName].currentTime==Game.Objects[a.params.buildingName].stopTime?(Game.Objects[a.params.buildingName].basePrice=Game.Objects[a.params.buildingName].oldBasePrice,Game.Objects[a.params.buildingName].refresh(),Game.storeToRebuild=1):(Game.Objects[a.params.buildingName].currentTime+=1,setTimeout(y,1E3))};setTimeout(y,1E3);n.finish(a)},finish:function(a){Game.Popup((new Function("return "+a.message)).call(a));a.recalculateGains&&(Game.recalculateGains=
- 1)}};n[a.type](c)};CookieCheat.generateChooseFunc=function(a){var c="var list = [];",n;for(n in a)if(!0===a[n].active)var f="if "+CookieCheat.parseOrAnd.call(a[n],a[n].condition)+'list.push("'+a[n].name+'");',c=c+f;return new Function(c+"if (list.length > 1 && Game.goldenCookie.last != '' && Math.random() < 0.8 && list.indexOf(Game.goldenCookie.last) != -1)list.splice(list.indexOf(Game.goldenCookie.last), 1);return choose(list);")};CookieCheat.computeChoose=function(){Game.goldenCookie.choose=CookieCheat.generateChooseFunc(CookieCheat.choices)};
- CookieCheat.updateGoldenCookieclick=function(){CookieCheat.oldGameFuncs.goldenCookie={click:Game.goldenCookie.click};l("goldenCookie").onclick=Game.goldenCookie.click=function(){if(0<Game.goldenCookie.life){Game.goldenCookie.toDie=1;Game.goldenClicks++;1<=Game.goldenClicks&&Game.Win("Golden cookie");7<=Game.goldenClicks&&Game.Win("Lucky cookie");27<=Game.goldenClicks&&Game.Win("A stroke of luck");77<=Game.goldenClicks&&Game.Win("Fortune");777<=Game.goldenClicks&&Game.Win("Leprechaun");7777<=Game.goldenClicks&&
- Game.Win("Black cat's paw");7<=Game.goldenClicks&&Game.Unlock("Lucky day");27<=Game.goldenClicks&&Game.Unlock("Serendipity");77<=Game.goldenClicks&&Game.Unlock("Get lucky");l("goldenCookie").style.display="none";var a=Game.goldenCookie.choose();0<Game.goldenCookie.chain&&(a=Game.goldenCookie.chainName);if("undefined"!==typeof a)Game.goldenCookie.last=a,"chain"!==CookieCheat.choices[a].type&&(Game.goldenCookie.chain=0),CookieCheat.executeChoice(CookieCheat.choices[a]);else{var c=function(){0===CookieCheat.timeToRemoveFace?
- Game.removeClass("elderWrath"):(CookieCheat.timeToRemoveFace--,setTimeout(c,1E3))};Game.Popup("Nothing happened... Easter egg spotted !! Here is a face cookie.");Game.addClass("elderWrath");CookieCheat.timeToRemoveFace=5;c()}Game.goldenCookie.minTime=Game.goldenCookie.getMinTime();Game.goldenCookie.maxTime=Game.goldenCookie.getMaxTime()}}};CookieCheat.initAllBackbone=function(){CookieCheat.views.safeCookiesView=new CookieCheat.Views.SafeCookiesView;CookieCheat.views.earnCookiesView=new CookieCheat.Views.EarnCookiesView;
- CookieCheat.views.earnChipsView=new CookieCheat.Views.EarnChipsView;CookieCheat.models.autoClickWrinklersModel=new CookieCheat.Models.AutoClickWrinklersModel;CookieCheat.views.autoClickWrinklersView=new CookieCheat.Views.AutoClickWrinklersView({model:CookieCheat.models.autoClickWrinklersModel});CookieCheat.models.autoClickModel=new CookieCheat.Models.AutoClickModel;CookieCheat.views.autoClickView=new CookieCheat.Views.AutoClickView({model:CookieCheat.models.autoClickModel});CookieCheat.models.autoSpawnModel=
- new CookieCheat.Models.AutoSpawnModel;CookieCheat.views.autoSpawnView=new CookieCheat.Views.AutoSpawnView({model:CookieCheat.models.autoSpawnModel});CookieCheat.models.autoGoldenClickModel=new CookieCheat.Models.AutoGoldenClickModel;CookieCheat.views.autoGoldenClickView=new CookieCheat.Views.AutoGoldenClickView({model:CookieCheat.models.autoGoldenClickModel});CookieCheat.models.autoReindeerClickModel=new CookieCheat.Models.AutoReindeerClickModel;CookieCheat.views.autoReindeerClickView=new CookieCheat.Views.AutoReindeerClickView({model:CookieCheat.models.autoReindeerClickModel});
- CookieCheat.models.goldenSpawnModel=new CookieCheat.Models.GoldenSpawnModel;CookieCheat.views.goldenSpawnView=new CookieCheat.Views.GoldenSpawnView({model:CookieCheat.models.goldenSpawnModel});CookieCheat.collections.buildingsCollection=new CookieCheat.Collections.BuildingsCollection;CookieCheat.collections.buildingsCollection.fetch();CookieCheat.views.buildingFormView=new CookieCheat.Views.BuildingFormView;CookieCheat.views.buildingListView=new CookieCheat.Views.BuildingListView({collection:CookieCheat.collections.buildingsCollection});
- CookieCheat.collections.upgradesCollection=new CookieCheat.Collections.UpgradesCollection;CookieCheat.collections.upgradesCollection.fetch();CookieCheat.views.upgradeFormView=new CookieCheat.Views.UpgradeFormView;CookieCheat.views.upgradeListView=new CookieCheat.Views.UpgradeListView({collection:CookieCheat.collections.upgradesCollection});CookieCheat.collections.savesCollection=new CookieCheat.Collections.SavesCollection;CookieCheat.collections.savesCollection.fetch();CookieCheat.views.saveFormView=
- new CookieCheat.Views.SaveFormView;CookieCheat.views.saveListView=new CookieCheat.Views.SaveListView({collection:CookieCheat.collections.savesCollection});CookieCheat.collections.choicesCollection=new CookieCheat.Collections.ChoicesCollection;CookieCheat.collections.choicesCollection.fetch();0===CookieCheat.collections.choicesCollection.models.length&&CookieCheat.collections.choicesCollection.getFromArray(CookieCheat.choices);CookieCheat.collections.choicesCollection.computeAndApply();CookieCheat.views.choiceListView=
- new CookieCheat.Views.ChoiceListView({collection:CookieCheat.collections.choicesCollection})};CookieCheat.changeTab=function(a){delete CookieCheat.old;CookieCheat.currentTab=a;Game.UpdateMenu()};Game.oldUpdateMenu=Game.UpdateMenu;CookieCheat.oldGameFuncs.UpdateMenu=Game.UpdateMenu;Game.UpdateMenu=function(){if("cheat"!==Game.onMenu)return delete CookieCheat.old,Game.oldUpdateMenu();if("undefined"===typeof CookieCheat.old){CookieCheat.old="Used";var a="";""!=Game.onMenu&&(a+='<div style="position:absolute;top:8px;right:8px;cursor:pointer;font-size:16px;" onclick="Game.ShowMenu(Game.onMenu);">X</div>');
- "cheat"===Game.onMenu&&(a+=CookieCheat.strForFeatures.topHeadBand(),"tool"===CookieCheat.currentTab?a+=CookieCheat.strForFeatures.tool():"cheat"===CookieCheat.currentTab?a+=CookieCheat.strForFeatures.cheat():"mod"===CookieCheat.currentTab&&(a+=CookieCheat.strForFeatures.mod()));l("menu").innerHTML=a;"tool"===CookieCheat.currentTab?(CookieCheat.views.safeCookiesView.render(),CookieCheat.views.buildingFormView.render(),CookieCheat.views.buildingListView.render(),CookieCheat.views.upgradeFormView.render(),
- CookieCheat.views.upgradeListView.render(),CookieCheat.views.saveFormView.render(),CookieCheat.views.saveListView.render()):"cheat"===CookieCheat.currentTab?(CookieCheat.views.earnCookiesView.render(),CookieCheat.views.earnChipsView.render(),CookieCheat.views.autoClickView.render(),CookieCheat.views.autoSpawnView.render(),CookieCheat.views.autoGoldenClickView.render(),CookieCheat.views.autoReindeerClickView.render(),CookieCheat.views.goldenSpawnView.render(),CookieCheat.views.autoClickWrinklersView.render()):
- "mod"===CookieCheat.currentTab&&CookieCheat.views.choiceListView.render()}};CookieCheat.launch()};
Add Comment
Please, Sign In to add comment