var FBInstant={options:{name:"",apiKey:"",apiSecret:"",devMode:"sandbox",container:null,generalOptions:{},shareOptions:{shareURI:"",dlgWidth:600,dlgHeignht:400},adsOptions:{},paymentsOptions:{},analyticsOptions:{},storageOptions:{},userOptions:{allowAnonymous:!0},messagingOptions:{},leaderboardsOptions:{},referralsOptions:{},chatOptions:{}},supportedAPIs:["initializeAsync","setLoadingProgress","startGameAsync","getEntryPointData"],__state:{initialized:!1,purchasingReadyCallback:null,platform:"WEB"},Log:function(t){console.log(t)},player:{getName:function(){var t=UserService.instance.GetProfileData();return null===t?null:t.name},getPhoto:function(){var t=UserService.instance.GetProfileData();return null===t?null:void 0===t.photo?null:t.photo},getID:function(){var t=UserService.instance.GetProfileData();return null===t||void 0===t?null:t.id},getDataAsync:function(o){return new Promise(function(e){var t=FBInstant.options.name+"userData";if(void 0!==StorageService.instance)StorageService.instance.GetUserData(t,function(a){var r={};null===a?(a=localStorage.getItem(t),a=JSON.parse(a)):localStorage.setItem(t,JSON.stringify(a)),null!==a&&o.forEach(function(t){"undefined"!==a[t]&&(r[t]=a[t])}),e(r)});else{var a={},r=localStorage.getItem(t);r=JSON.parse(r),null===r&&(r=localStorage.getItem("userData"),r=JSON.parse(r)),null!==r&&o.forEach(function(t){"undefined"!==r[t]&&(a[t]=r[t])}),e(a)}})},setDataAsync:function(t){return new Promise(function(e){var o=FBInstant.options.name+"userData",a=localStorage.getItem(o),s=JSON.parse(a);for(var n in(void 0===s||null==s)&&(s={}),t)s[n]=t[n];localStorage.setItem(o,JSON.stringify(s)),void 0===StorageService.instance?e():StorageService.instance.SetUserData(o,JSON.stringify(s),function(){e()})})},getStatsAsync:function(){},setStatsAsync:function(){return new Promise(function(t){t()})},incrementStatsAsync:function(){},flushDataAsync:function(){},getConnectedPlayersAsync:function(){return new Promise(function(a){UserService.instance.GetFriends(function(e){a(e)})})},getSignedPlayerInfoAsync:function(){return new Promise(function(t){t(null)})},canSubscribeBotAsync:function(){return new Promise(function(t){t(!1)})},subscribeBotAsync:function(){return new Promise(function(t){t(null)})}},context:{getID:function(){return null},chooseAsync:function(){return new Promise(function(t){t()})},switchAsync:function(){return new Promise(function(t){t()})},createAsync:function(){return new Promise(function(t){t()})},getType:function(){return"SOLO"},isSizeBetween:function(){return!0},getPlayersAsync:function(){return new Promise(function(t){t([])})}},payments:{getCatalogAsync:function(){return new Promise(function(o,e){PaymentsService.instance.GetProducts(function(t,a){null===t?o(a):e(t)})})},purchaseAsync:function(o){return new Promise(function(n,t){PaymentsService.instance.PurchaseProduct(o,function(a,e){null===a?n(e):t(a)})})},getPurchasesAsync:function(){return new Promise(function(o,e){PaymentsService.instance.GetPurchases(function(t,a){null===t?o(a):e(t)})})},consumePurchaseAsync:function(o){return new Promise(function(n,t){PaymentsService.instance.ConsumeProduct(o,function(a){null===a?n():t(a)})})},onReady:function(t){FBInstant.__state.purchasingReadyCallback=t}},getSupportedAPIs:function(){return FBInstant.supportedAPIs},getLocale:function(){var t=UserService.instance.GetProfileData();return null===t?LibUtils.GetLocale():t.lang+"_"},initializeAsync:function(){return new Promise(function(a){var e=FBInstant.options;FBInstant.Log(">>>> initializeAsync"),GameService.instance.Init(e),void 0!==StorageService.instance&&StorageService.instance.InitStorage(e.storageOptions),void 0!==UserService.instance&&UserService.instance.InitUser(e.usersOptions),void 0!==AnalyticsService.instance&&AnalyticsService.instance.InitAnalytics(e.analyticsOptions),void 0!==MessagingService.instance&&MessagingService.instance.InitMessaging(e.messagingOptions),void 0!==ShareService.instance&&ShareService.instance.InitShare(e.shareOptions),void 0!==LeaderboardsService.instance&&LeaderboardsService.instance.InitLeaderboards(e.leaderboardsOptions),void 0!==AdsService.instance&&AdsService.instance.InitAds(e.adsOptions),void 0!==ReferralService.instance&&ReferralService.instance.InitReferrals(e.referralsOptions),void 0!==ChatService.instance&&ChatService.instance.InitChat(e.chatOptions),void 0!==PaymentsService.instance&&PaymentsService.instance.InitPayments(e.paymentsOptions,function(t){null===t&&null!==FBInstant.__state.purchasingReadyCallback&&FBInstant.__state.purchasingReadyCallback()}),a()})},setLoadingProgress:function(a){return new Promise(function(e){GameService.instance&&GameService.instance.service&&GameService.instance.service.SetLoadingProgress&&GameService.instance.service.SetLoadingProgress(a),e()})},startGameAsync:function(){return new Promise(function(o,e){FBInstant.Log(">>>> startGameAsync"),GameService.instance&&GameService.instance.service&&GameService.instance.service.FinishedLoading&&GameService.instance.service.FinishedLoading(),UserService.instance.Login(FBInstant.options.userOptions.allowAnonymous,function(t){null===t?(FBInstant.__state.initialized=!0,FBInstant.Log(">> Login success"),o()):(FBInstant.Log(">> Login failed"),e())})})},quit:function(){},updateAsync:function(){return new Promise(function(t){t()})},getEntryPointData:function(){FBInstant.Log(">>>> getEntryPointData");var t=window.location.search;t.startsWith("?")&&(t=t.substring(1));for(var e=t.split("&"),a=0;a<e.length;a++)if(e[a].startsWith("data")){var o=e[a].split("=");return void 0!==o[1]&&""!==o[1]&&(t=decodeURIComponent(o[1]),t=JSON.parse(t),FBInstant.Log(t)),void 0===t?null:t}return null},getEntryPointAsync:function(){return new Promise(function(t){t("admin_message")})},setSessionData:function(){},getPlatform:function(){return FBInstant.__state.platform},getSDKVersion:function(){return"6.2"},postSessionScore:function(){},shareAsync:function(o){return new Promise(function(e,t){void 0===ShareService.instance?t({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"}):(ShareService.instance.SharePrimary(o),e())})},switchGameAsync:function(){return Promise.reject(new Error("Not available"))},logEvent:function(o,e,t){return void 0===AnalyticsService.instance?{code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"}:AnalyticsService.instance.LogEvent(o,e,t)},onPause:function(t){window.onblur=function(){t()}},canCreateShortcutAsync:function(){return Promise.resolve(!1)},Leaderboard:function(t){this.name=t},getLeaderboardAsync:function(o,e){return new Promise(function(t){var a=new FBInstant.Leaderboard(o);void 0===e&&(e={}),a.options=e,t(a)})},AdInstance:function(a,e){this.id=a,this.type=e},getInterstitialAdAsync:function(o){return void 0===AdsService.instance?void 0:new Promise(function(e,t){AdsService.instance.IsSupported(o,"inter")?e(new FBInstant.AdInstance(o,"inter")):t({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"})})},getRewardedVideoAsync:function(o){return void 0===AdsService.instance?void 0:new Promise(function(e,t){AdsService.instance.IsSupported(o,"video")?e(new FBInstant.AdInstance(o,"video")):t({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"})})},createDefaultServices:function(t){"xtralife"===t?(new GameService(t),new StorageService(t),new UserService(t),new LeaderboardsService(t),new MessagingService(t),new ReferralService(t),new ShareService("generic")):"unity"===t?(new GameService(t),new UserService(t),new AnalyticsService(t),new LeaderboardsService(t),new PaymentsService(t),new AdsService(t),new ShareService(t),new DebugService(t)):"kongregate"===t?(new GameService(t),new UserService(t),new AnalyticsService(t),new PaymentsService(t),new ShareService(t),new ChatService(t)):"poki"===t?(new GameService(t),new UserService("none"),new AdsService(t),new ShareService("generic")):"none"===t?(new GameService(t),new UserService(t),new ShareService("generic")):"swag"==t&&(new GameService(t),new StorageService(t),new UserService(t),new AnalyticsService(t),new LeaderboardsService(t),new ShareService("generic"))},matchPlayerAsync:function(){return new Promise(function(a,e){e({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"})})},checkCanPlayerMatchAsync:function(){return new Promise(function(a,e){e({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"})})}};FBInstant.AdInstance.prototype.getPlacementID=function(){return this.id},FBInstant.AdInstance.prototype.loadAsync=function(){if(void 0!==AdsService.instance){var o=this;return new Promise(function(n,t){AdsService.instance.PreloadAd(o.id,o.type,function(a){null===a?n():t(a)})})}},FBInstant.AdInstance.prototype.showAsync=function(){if(void 0!==AdsService.instance){var o=this;return new Promise(function(n,t){AdsService.instance.ShowAd(o.id,o.type,function(a){null===a?n():t(a)})})}},FBInstant.Leaderboard.prototype.getEntriesAsync=function(o,e){if(void 0!==LeaderboardsService.instance){var t=this;return new Promise(function(a){LeaderboardsService.instance.LeaderboardGetPaged(t,t.name,(0|e/o)+1,o,function(t){a(t)})})}},FBInstant.Leaderboard.prototype.getConnectedPlayerEntriesAsync=function(o,e){if(void 0!==LeaderboardsService.instance){var t=this;return new Promise(function(a){LeaderboardsService.instance.LeaderboardGetFriendsPaged(t,t.name,(0|e/o)+1,o,function(t){a(t)})})}},FBInstant.Leaderboard.prototype.getPlayerEntryAsync=function(){if(void 0!==LeaderboardsService.instance){var a=this;return new Promise(function(o){LeaderboardsService.instance.LeaderboardGetRank(a,a.name,function(t){o(t)})})}},FBInstant.Leaderboard.prototype.setScoreAsync=function(o,e){if(void 0!==LeaderboardsService.instance){var t=this;return new Promise(function(a){LeaderboardsService.instance.LeaderboardSetScore(t,t.name,o,e,function(t){a(t)})})}},FBInstant.ext={isLoggedIn:function(){return void 0!==UserService.instance&&null!==UserService.instance.GetGamerData()},getLoginType:function(){var t=UserService.instance.GetGamerData();return t?t.network:"none"},getRegistrationDate:function(){var t=UserService.instance.GetGamerData();return t?t.registerTime:null},loginWithShortCodeAsync:function(a){return new Promise(function(o){UserService.instance.LoginWithShortCode(a,function(t,e){o(t,e)})})},loginAsync:function(){return new Promise(function(o,e){UserService.instance.Login(FBInstant.options.userOptions.allowAnonymous,function(t){t?(FBInstant.Log(">> Login failed"),e()):(FBInstant.Log(">> Login success"),o())})})},loginWithEmailAsync:function(o,e,t){return new Promise(function(a,r){UserService.instance.LoginWithCredentials(o,e,t,function(t){t?(FBInstant.Log(">> Login with email failed"),r()):(FBInstant.Log(">> Login with email success"),a())})})},loginWithFacebookAccessTokenAsync:function(a){return new Promise(function(o){UserService.instance.LoginWithFacebook(a,function(t,e){o(t,e)})})},logoutAsync:function(){return new Promise(function(a){UserService.instance.Logout(function(e){a(e)})})},convertAccountAsync:function(o,e,t){return new Promise(function(a){UserService.instance.ConvertAccount(o,e,t,function(t){a(t)})})},linkAccountAsync:function(o,e,t){return new Promise(function(a){UserService.instance.LinkAccount(o,e,t,function(t){a(t)})})},resetPasswordAsync:function(o,e,t,a){return new Promise(function(r){UserService.instance.ResetPassword(o,e,t,a,function(t){r(t)})})},changePasswordAsync:function(a){return new Promise(function(o){UserService.instance.ChangePassword(a,function(t){o(t)})})},getGames:function(){return UserService.instance.GetGames()},setProfileAsync:function(a){return new Promise(function(o){UserService.instance.SetProfile(a,function(t){o(t)})})},addFriendAsync:function(a){return new Promise(function(o){UserService.instance.AddFriend(a,function(t){console.log(">>>>> addFriendAsync "+t),o(t)})})},removeFriendAsync:function(a){return new Promise(function(o){UserService.instance.RemoveFriend(a,function(t){o(t)})})},listUsersAsync:function(o,e,t){return new Promise(function(a){UserService.instance.ListUsers(o,e,t,function(t){a(t)})})},sendEventAsync:function(o,e){return new Promise(function(t){MessagingService.instance.SendEvent(o,e,function(a){t(null===a)})})},getEventsAsync:function(){return new Promise(function(a){MessagingService.instance.GetAllEvents(function(e){a(e)})})},getReferralCodeAsync:function(){return new Promise(function(a){ReferralService.instance.GetReferralCode(function(e){a(e)})})},useReferralCodeAsync:function(a){return new Promise(function(o){ReferralService.instance.UseReferralCode(a,function(t){o(t)})})},shareTwitterAsync:function(a){return new Promise(function(e){ShareService.instance.ShareService(a),e()})},getShareURLAsync:function(a){return new Promise(function(e){e(ShareService.instance.GetShareURL(a))})},openExternalURL:function(o){return new Promise(function(e,t){void 0===ShareService.instance?t({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"}):(ShareService.instance.OpenURL(o),e())})},chatSendAsync:function(a){return new Promise(function(e){ChatService.instance.SendChatMessage(a),e()})},chatStartAsync:function(a){return new Promise(function(e){ChatService.instance.StartChat(a),e()})},chatEndAsync:function(a){return new Promise(function(e){ChatService.instance.EndChat(a),e()})},showLeaderboard:function(t){LeaderboardsService.instance.ShowLeaderboard(t)},gameEvent:function(t){GameService.instance&&GameService.instance.service&&GameService.instance.service.GameEvent&&GameService.instance.service.GameEvent(t)},debug:{show:function(t){DebugService.instance.Show(t)},clear:function(){DebugService.instance.Clear()},log:function(t){DebugService.instance.Log(t)}}},"use strict";var WebUtils={};WebUtils.CreateShareUI=function(l){var e=document.createElement("div");e.id="igx_share_container";var t=document.createElement("div");t.id="igx_share",t.className="container";var a=document.createElement("div");a.className="row";var s=document.createElement("div");s.className="row";var n=document.createElement("div");n.className="row";var r=document.createElement("div");r.className="row";var o=document.createElement("hr"),i=document.createElement("h1");i.id="igx_title";var d=document.createElement("input");d.id="igx_url",d.type="text";var c=document.createElement("hr"),p=document.createElement("button");p.id="igx_copy_button",p.className="btn btn-success btn-lg",p.innerText="Copy",e.appendChild(t),t.appendChild(a),t.appendChild(s),t.appendChild(n),t.appendChild(r),a.appendChild(o),a.appendChild(i),s.appendChild(d),n.appendChild(c),r.appendChild(p),l||(l="gamecanvas"),document.getElementById(l),document.body.appendChild(e),WebUtils.ShareUICreated=!0},WebUtils.ShareDataURL=function(o,n,t){o=o?{data:o}:{},FBInstant.ext.getShareURLAsync(o).then(function(a){WebUtils.ShowShareLink(!0,a,n),void 0!==t&&t(a)})},WebUtils.ShowShareLink=function(i,e,t){WebUtils.ShareUICreated||WebUtils.CreateShareUI();var a=document.getElementById("igx_share_container"),s=document.getElementById("igx_title"),n=document.getElementById("igx_url"),r=document.getElementById("igx_copy_button");s.innerText=t,n.value=e,i?(a.style.visibility="visible",r.onclick=function(){WebUtils.CopyToClipboard(e),a.style.visibility="hidden"}):(okbutton.onclick=void 0,a.style.visibility="hidden")},WebUtils.CopyToClipboard=function(a){var e=document.createElement("textarea");e.value=a,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)},WebUtils.SendShareInvite=function(t){t||(t="Share the url below to invite friends to play."),WebUtils.ShareDataURL(void 0,t)};var LibUtils={Log:function(t){console.log(t)},LogError:function(t){console.log(t)},ResolveService:function(t){return void 0!==GameService.instance&&GameService.instance.name===t?GameService.instance.service:void 0!==UserService.instance&&UserService.instance.name===t?UserService.instance.service:void 0!==LeaderboardsService.instance&&LeaderboardsService.instance.name===t?LeaderboardsService.instance.service:void 0!==MessagingService.instance&&MessagingService.instance.name===t?MessagingService.instance.service:void 0!==ReferralService.instance&&ReferralService.instance.name===t?ReferralService.instance.service:void 0!==StorageService.instance&&StorageService.instance.name===t?StorageService.instance.service:void 0!==AnalyticsService.instance&&AnalyticsService.instance.name===t?AnalyticsService.instance.service:void 0!==AdsService.instance&&AdsService.instance.name===t?AdsService.instance.service:void 0!==PaymentsService.instance&&PaymentsService.instance.name===t?PaymentsService.instance.service:void 0!==ChatService.instance&&ChatService.instance.name===t?ChatService.instance.service:void 0!==DebugService.instance&&DebugService.instance.name===t?DebugService.instance.service:void 0},GetLocale:function(){var t=navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage;return t?t.replace("-","_"):"en_US"}},LibSocial={Log:function(t){console.log(t)},LogError:function(t){console.log(t)},Facebook:{StatusChangeCallback:void 0,Init:function(a,o){window.fbAsyncInit=function(){FB.init({appId:a,autoLogAppEvents:!0,xfbml:!0,version:"v3.1"}),FB.getLoginStatus(function(t){void 0!==o&&o(t)})},function(t,e,a){var s=t.getElementsByTagName(e)[0],r;return t.getElementById(a)?void(void 0!==o&&o({status:"Facebook SDK already loaded"})):void(r=t.createElement(e),r.id=a,r.src="https://connect.facebook.net/en_US/sdk.js",s.parentNode.insertBefore(r,s))}(document,"script","facebook-jssdk")},Login:function(a){FB.login(function(e){void 0!==a&&a(e)},{scope:"public_profile,email"})},GetProfile:function(a){FB.api("/me",function(e){void 0!==a&&a(e)})},Logout:function(a){FB.logout(function(e){void 0!==a&&a(e)})}}};function GameService(t){this.service=LibUtils.ResolveService(t),void 0===this.service&&("xtralife"===t?this.service=new LibXtralife:"kongregate"===t?this.service=new LibKongregate:"miniclip"===t?this.service=new LibMiniclip:"unity"===t?this.service=new LibUnity:"poki"===t?this.service=new LibPoki:"swag"==t&&(this.service=new LibSwag)),this.name=t,GameService.instance=this}GameService.prototype.Init=function(t){return void 0===this.service?void 0:this.service.Init(t)},GameService.prototype.SetLoadingProgress=function(t){return this.service&&this.service.SetLoadingProgress?this.service.SetLoadingProgress(t):void 0},GameService.prototype.FinishedLoading=function(t){return this.service&&this.service.FinishedLoading?this.service.FinishedLoading(t):void 0};function UserService(t){this.service=LibUtils.ResolveService(t),void 0===this.service&&("xtralife"===t?this.service=new LibXtralife:"kongregate"===t?this.service=new LibKongregate:"miniclip"===t?this.service=new LibMiniclip:"unity"===t?this.service=new LibUnity:"swag"==t&&(this.service=new LibSwag)),this.name=t,UserService.instance=this,void 0!==FBInstant.ext&&void 0!==this.service&&this.service.addSupportedAPI("user")}UserService.Player=function(o,e,t,a,r){this.id=o,this.name=e,this.photo=t,this.email=a,this.lang=r,this.getName=function(){return this.name},this.getPhoto=function(){return void 0===this.photo?null:this.photo},this.getID=function(){return this.id},this.getEmail=function(){return this.email},this.getLanguage=function(){return this.lang}},UserService.Game=function(o,e,t,a,r){this.id=o,this.name=e,this.login=t,this.icon=a,this.location=r},UserService.prototype.InitUser=function(t){return void 0===this.service?void 0:this.service.InitUser(t)},UserService.prototype.IsSupported=function(){return void 0!==this.service},UserService.prototype.Login=function(a,e){return void 0===this.service?void(void 0!==e&&e(null,null)):this.service.Login(a,e)},UserService.prototype.ResumeSession=function(o,e,t){return void 0===this.service?void(void 0!==t&&t({code:"CLIENT_UNSUPPORTED_OPERATION ",message:"CLIENT_UNSUPPORTED_OPERATION "},null)):this.service.ResumeSession(o,e,t)},UserService.prototype.LoginWithCredentials=function(o,e,t,a){return void 0===this.service?void(void 0!==a&&a({code:"CLIENT_UNSUPPORTED_OPERATION ",message:"CLIENT_UNSUPPORTED_OPERATION "},null)):this.service.LoginWithCredentials(o,e,t,a)},UserService.prototype.LoginWithShortCode=function(a,e){return void 0===this.service?void(void 0!==e&&e({code:"CLIENT_UNSUPPORTED_OPERATION ",message:"CLIENT_UNSUPPORTED_OPERATION "},null)):this.service.LoginWithShortCode(a,e)},UserService.prototype.LoginWithFacebook=function(a,e){return void 0===this.service?void(void 0!==e&&e({code:"CLIENT_UNSUPPORTED_OPERATION ",message:"CLIENT_UNSUPPORTED_OPERATION "},null)):this.service.LoginWithFacebook(a,e)},UserService.prototype.Logout=function(t){return void 0===this.service?void(void 0!==t&&t(null)):this.service.Logout(t)},UserService.prototype.ConvertAccount=function(o,e,t,a){return void 0===this.service?void(void 0!==a&&a({code:"CLIENT_UNSUPPORTED_OPERATION ",message:"CLIENT_UNSUPPORTED_OPERATION "})):this.service.ConvertAccount(o,e,t,a)},UserService.prototype.LinkAccount=function(o,e,t,a){return void 0===this.service?void(void 0!==a&&a({code:"CLIENT_UNSUPPORTED_OPERATION ",message:"CLIENT_UNSUPPORTED_OPERATION "})):this.service.LinkAccount(o,e,t,a)},UserService.prototype.ResetPassword=function(o,e,t,a,r){return void 0===this.service?void(void 0!==r&&r({code:"CLIENT_UNSUPPORTED_OPERATION ",message:"CLIENT_UNSUPPORTED_OPERATION "})):this.service.ResetPassword(o,e,t,a,r)},UserService.prototype.ChangePassword=function(a,e){return void 0===this.service?void(void 0!==e&&e({code:"CLIENT_UNSUPPORTED_OPERATION ",message:"CLIENT_UNSUPPORTED_OPERATION "})):this.service.ChangePassword(a,e)},UserService.prototype.GetGamerData=function(){return void 0===this.service?null:this.service.GetGamerData()},UserService.prototype.GetProfileData=function(){return void 0===this.service?null:this.service.GetProfileData()},UserService.prototype.GetProfile=function(t){return void 0===this.service?void(void 0!==t&&t({code:"CLIENT_UNSUPPORTED_OPERATION ",message:"CLIENT_UNSUPPORTED_OPERATION "})):this.service.GetProfile(t)},UserService.prototype.SetProfile=function(a,e){return void 0===this.service?void(void 0!==e&&e({code:"CLIENT_UNSUPPORTED_OPERATION ",message:"CLIENT_UNSUPPORTED_OPERATION "})):this.service.SetProfile(a,e)},UserService.prototype.GetGames=function(){return void 0===this.service?null:this.service.GetGames()},UserService.prototype.ListUsers=function(o,e,t,a){return void 0===this.service?void(void 0!==a&&a(null)):this.service.ListUsers(o,e,t,a)},UserService.prototype.GetFriends=function(t){return void 0===this.service?void(void 0!==t&&t(null)):this.service.GetFriends(t)},UserService.prototype.AddFriend=function(a,e){return void 0===this.service?void(void 0!==e&&e(!1)):this.service.AddFriend(a,e)},UserService.prototype.RemoveFriend=function(a,e){return void 0===this.service?void(void 0!==e&&e(!1)):this.service.RemoveFriend(a,e)};function StorageService(t){this.service=LibUtils.ResolveService(t),void 0===this.service&&("xtralife"===t?this.service=new LibXtralife:"swag"==t&&(this.service=new LibSwag)),this.name=t,StorageService.instance=this,void 0!==FBInstant.ext&&void 0!==this.service&&this.service.addSupportedAPI("storage")}StorageService.prototype.InitStorage=function(t){return void 0===this.service?void 0:this.service.InitStorage(t)},StorageService.prototype.IsSupported=function(){return void 0!==this.service},StorageService.prototype.SetUserData=function(o,e,t){return void 0===this.service?void(void 0!==t&&t(!1)):this.service.SetUserData(o,e,t)},StorageService.prototype.GetUserData=function(a,e){return void 0===this.service?void(void 0!==e&&e(null)):this.service.GetUserData(a,e)};function LeaderboardsService(t){this.service=LibUtils.ResolveService(t),void 0===this.service&&("xtralife"===t?this.service=new LibXtralife:"unity"===t?this.service=new LibUnity:"swag"==t&&(this.service=new LibSwag)),this.name=t,LeaderboardsService.instance=this,void 0!==FBInstant.ext&&void 0!==this.service&&this.service.addSupportedAPI("leaderboards")}LeaderboardsService.LbdEntry=function(i,e,t,a,s,n,r){this.id=i,this.rank=e,this.name=t,this.score=a,this.extra=s,this.photo=n,this.timestamp=r,this.getPlayer=function(){var t=this;return{rank:this.rank,getName:function(){return t.name},getPhoto:function(){return void 0===t.photo?null:t.photo},getID:function(){return t.id}}},this.getRank=function(){return this.rank},this.getScore=function(){return this.score},this.getExtraData=function(){return this.extra},this.getTimestamp=function(){return this.timestamp}},LeaderboardsService.prototype.InitLeaderboards=function(t){return void 0===this.service?void 0:this.service.InitLeaderboards(t)},LeaderboardsService.prototype.IsSupported=function(){return void 0!==this.service},LeaderboardsService.prototype.LeaderboardGetPaged=function(o,e,t,a,r){return void 0===this.service?void(void 0!==r&&r(null)):this.service.LeaderboardGetPaged(o,e,t,a,r)},LeaderboardsService.prototype.LeaderboardGetFriendsPaged=function(o,e,t,a,r){return void 0===this.service?void(void 0!==r&&r(null)):this.service.LeaderboardGetFriendsPaged(o,e,t,a,r)},LeaderboardsService.prototype.LeaderboardGetRank=function(o,e,t){return void 0===this.service?void(void 0!==t&&t(null)):this.service.LeaderboardGetRank(o,e,t)},LeaderboardsService.prototype.LeaderboardSetScore=function(o,e,t,a,r){return void 0===this.service?void(void 0!==r&&r(!1)):this.service.LeaderboardSetScore(o,e,t,a,r)},LeaderboardsService.prototype.ShowLeaderboard=function(t){return void 0===this.service?void(void 0!==done_cb&&done_cb(!1)):this.service.ShowLeaderboard(t)};function MessagingService(t){this.service=LibUtils.ResolveService(t),void 0===this.service&&"xtralife"===t&&(this.service=new LibXtralife),this.name=t,MessagingService.instance=this,void 0!==FBInstant.ext&&void 0!==this.service&&this.service.addSupportedAPI("messaging")}MessagingService.prototype.InitMessaging=function(t){return void 0===this.service?void 0:this.service.InitMessaging(t)},MessagingService.prototype.IsSupported=function(){return void 0!==this.service},MessagingService.prototype.SendEvent=function(o,e,t){return void 0===this.service?void(void 0!==t&&t({code:"CLIENT_UNSUPPORTED_OPERATION ",message:"CLIENT_UNSUPPORTED_OPERATION "})):this.service.SendEvent(o,e,t)},MessagingService.prototype.ListenForEvent=function(t){return void 0===this.service?void(void 0!==t&&t({code:"CLIENT_UNSUPPORTED_OPERATION ",message:"CLIENT_UNSUPPORTED_OPERATION "})):this.service.ListenForEvent(t)},MessagingService.prototype.GetAllEvents=function(t){return void 0===this.service?void(void 0!==t&&t(null)):this.service.GetAllEvents(t)};function ReferralService(t){this.service=LibUtils.ResolveService(t),void 0===this.service&&"xtralife"===t&&(this.service=new LibXtralife),this.name=t,ReferralService.instance=this,void 0!==FBInstant.ext&&void 0!==this.service&&this.service.addSupportedAPI("referrals")}ReferralService.prototype.InitReferrals=function(t){return void 0===this.service?void 0:this.service.InitReferrals(t)},ReferralService.prototype.IsSupported=function(){return void 0!==this.service},ReferralService.prototype.GetReferralCode=function(t){return void 0===this.service?void(void 0!==t&&t(null)):this.service.GetReferralCode(t)},ReferralService.prototype.UseReferralCode=function(a,e){return void 0===this.service?void(void 0!==e&&e(!1)):this.service.UseReferralCode(a,e)};function ShareService(t){this.service=LibUtils.ResolveService(t),void 0===this.service&&("generic"===t?this.service=new LibGeneric:"kongregate"===t?this.service=new LibKongregate:"unity"==t&&(this.service=new LibUnity)),this.name=t,ShareService.instance=this,void 0!==FBInstant.ext&&void 0!==this.service&&this.service.addSupportedAPI("share")}ShareService.prototype.InitShare=function(t){return void 0===this.service?void 0:this.service.InitShare(t)},ShareService.prototype.IsSupported=function(){return void 0!==this.service},ShareService.prototype.SharePrimary=function(t){return void 0===this.service?void 0:this.service.SharePrimary(t)},ShareService.prototype.ShareFacebook=function(o){var e=FBInstant.options.shareOptions,t=void 0===o.title?"":o.title,a=o.text,r=encodeURIComponent(e.shareURI+"?t="+t+"&d="+a);void 0!==o.data&&(r+="&data="+JSON.stringify(o.data)),window.open("https://www.facebook.com/sharer/sharer.php?u="+r,"pop","width="+e.dlgWidth+", height="+e.dlgHeight+", scrollbars=no")},ShareService.prototype.ShareTwitter=function(o){var e=FBInstant.options.shareOptions,t=o.text,a=encodeURIComponent(t);window.open("https://twitter.com/intent/tweet?text="+a,"pop","width="+e.dlgWidth+", height="+e.dlgHeight+", scrollbars=no")},ShareService.prototype.GetShareURL=function(o){var e=FBInstant.options.shareOptions,t=e.shareURI;return void 0!==o.data&&(t+="?data="+encodeURIComponent(JSON.stringify(o.data))),t},ShareService.prototype.OpenURL=function(t){return void 0===this.service?void 0:this.service.OpenURL(t)},ChatService.Message=function(o,e,t,a){this.message=o,this.user=e,this.method=t,this.room=a,this.time=Date.now};function ChatService(t){this.service=LibUtils.ResolveService(t),void 0===this.service&&"kongregate"===t&&(this.service=new LibKongregate),this.name=t,ChatService.instance=this,void 0!==FBInstant.ext&&void 0!==this.service&&this.service.addSupportedAPI("chat")}ChatService.prototype.InitChat=function(t){return void 0!==this.service&&this.service.InitChat(t)},ChatService.prototype.IsSupported=function(){return void 0!==this.service},ChatService.prototype.StartChat=function(t){return void 0!==this.service&&this.service.StartChat(t)},ChatService.prototype.EndChat=function(t){return void 0!==this.service&&this.service.EndChat(t)},ChatService.prototype.SendChatMessage=function(t){return void 0!==this.service&&this.service.SendChatMessage(t)};function DebugService(t){this.service=LibUtils.ResolveService(t),void 0===this.service&&"unity"===t&&(this.service=new LibUnity),this.name=t,DebugService.instance=this,void 0!==FBInstant.ext&&void 0!==this.service&&this.service.addSupportedAPI("debug")}DebugService.prototype.Show=function(t){return void 0===this.service?void 0:this.service.ShowDebug(t)},DebugService.prototype.Clear=function(){return void 0===this.service?void 0:this.service.ClearDebug()},DebugService.prototype.Log=function(t){return void 0===this.service?void 0:this.service.LogDebug(t)};function LibGeneric(){}LibGeneric.Log=function(t){console.log(t)},LibGeneric.LogError=function(t){console.log(t)},LibGeneric.prototype.InitShare=function(){},LibGeneric.prototype.addSupportedAPI=function(t){"share"===t&&(FBInstant.supportedAPIs.push("shareAsync"),FBInstant.supportedAPIs.push("ext.shareTwitterAsync"),FBInstant.supportedAPIs.push("ext.GetShareURL"))},LibGeneric.prototype.SharePrimary=function(t){WebUtils.ShareDataURL(t.data,t.text)},LibGeneric.prototype.OpenURL=function(t){window.open(t.url,"_blank")};function LibXtralife(){}LibXtralife.Log=function(t){console.log(t)},LibXtralife.LogError=function(t){console.log(t)},LibXtralife.prototype.Init=function(o){this.clan=Clan(o.apiKey,o.apiSecret,o.devMode);var e=FBInstant.options.name+"_gamer",t=localStorage.getItem(e);null!==t&&(this.gamerData=JSON.parse(t))},LibXtralife.prototype.InitLeaderboards=function(){},LibXtralife.prototype.InitMessaging=function(){},LibXtralife.prototype.InitReferrals=function(){},LibXtralife.prototype.InitShare=function(){},LibXtralife.prototype.InitStorage=function(){},LibXtralife.prototype.InitUser=function(){},LibXtralife.prototype.addSupportedAPI=function(t){"leaderboards"===t?(FBInstant.supportedAPIs.push("Leaderboard.getEntriesAsync"),FBInstant.supportedAPIs.push("Leaderboard.getConnectedPlayerEntriesAsync"),FBInstant.supportedAPIs.push("Leaderboard.getPlayerEntryAsync"),FBInstant.supportedAPIs.push("Leaderboard.setScoreAsync"),FBInstant.supportedAPIs.push("getLeaderboardAsync")):"messaging"===t?(FBInstant.supportedAPIs.push("ext.sendEventAsync"),FBInstant.supportedAPIs.push("ext.getEventsAsync")):"referrals"===t?(FBInstant.supportedAPIs.push("ext.getReferralCodeAsync"),FBInstant.supportedAPIs.push("ext.useReferralCodeAsync")):"storage"===t?(FBInstant.supportedAPIs.push("player.getDataAsync"),FBInstant.supportedAPIs.push("player.setDataAsync")):"user"==t&&(FBInstant.supportedAPIs.push("getLocale"),FBInstant.supportedAPIs.push("player.getConnectedPlayersAsync"),FBInstant.supportedAPIs.push("ext.isLoggedIn"),FBInstant.supportedAPIs.push("ext.getLoginType"),FBInstant.supportedAPIs.push("ext.getRegistrationDate"),FBInstant.supportedAPIs.push("ext.loginWithShortCodeAsync"),FBInstant.supportedAPIs.push("ext.loginAsync"),FBInstant.supportedAPIs.push("ext.loginWithEmailAsync"),FBInstant.supportedAPIs.push("ext.loginWithFacebookAccessTokenAsync"),FBInstant.supportedAPIs.push("ext.logoutAsync"),FBInstant.supportedAPIs.push("ext.convertAccountAsync"),FBInstant.supportedAPIs.push("ext.linkAccountAsync"),FBInstant.supportedAPIs.push("ext.resetPasswordAsync"),FBInstant.supportedAPIs.push("ext.changePasswordAsync"),FBInstant.supportedAPIs.push("ext.getGames"),FBInstant.supportedAPIs.push("ext.setProfileAsync"),FBInstant.supportedAPIs.push("ext.addFriendAsync"),FBInstant.supportedAPIs.push("ext.removeFriendAsync"),FBInstant.supportedAPIs.push("ext.listUsersAsync"))},LibXtralife.prototype.Login=function(a,o){return this.gamerData?void this.ResumeSession(this.gamerData.gamer_id,this.gamerData.gamer_secret,o):a?void this.clan.login(null,function(t,e){if(LibXtralife.Log(">>>> Creating new anonymous player"),null==t){this.gamerData=e;var a=FBInstant.options.name+"_gamer";localStorage.setItem(a,JSON.stringify(e))}void 0!==o&&o(t,e)}.bind(this)):(LibXtralife.Log(">>>> Anonymous login disabled"),void(void 0!==o&&o(null,null)))},LibXtralife.prototype.ResumeSession=function(o,e,n){this.clan.resumeSession(o,e,function(a,e){if(LibXtralife.Log(">>>> Resuming session"),null==a){this.gamerData=e;var t=FBInstant.options.name+"_gamer";localStorage.setItem(t,JSON.stringify(e))}void 0!==n&&n(a,e)}.bind(this))},LibXtralife.prototype.LoginWithCredentials=function(o,e,t,n){return this.gamerData?void this.ResumeSession(this.gamerData.gamer_id,this.gamerData.gamer_secret,n):void this.clan.login("email",o,e,t,function(o,e){if(null==o){this.gamerData=e;var t=FBInstant.options.name+"_gamer";localStorage.setItem(t,JSON.stringify(e))}void 0!==n&&n(o,e)}.bind(this))},LibXtralife.prototype.LoginWithShortCode=function(a,o){return this.gamerData?void this.ResumeSession(this.gamerData.gamer_id,this.gamerData.gamer_secret,o):void this.clan.loginWithShortCode(a,function(t,e){if(null==t){this.gamerData=e;var a=FBInstant.options.name+"_gamer";localStorage.setItem(a,JSON.stringify(e))}void 0!==o&&o(t,e)}.bind(this))},LibXtralife.prototype.LoginWithFacebook=function(a,o){return this.gamerData&&"facebook"===this.gamerData.network?void this.ResumeSession(this.gamerData.gamer_id,this.gamerData.gamer_secret,o):void this.clan.login("facebook","",a,function(t,e){if(null==t){this.gamerData=e;var a=FBInstant.options.name+"_gamer";localStorage.setItem(a,JSON.stringify(e))}void 0!==o&&o(t,e)}.bind(this))},LibXtralife.prototype.Logout=function(a){this.gamerData?this.clan.withGamer(this.gamerData).logout(function(e){e||(this.gamerData=void 0),void 0!==a&&a(e)}.bind(this)):void 0!==a&&a({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"})},LibXtralife.prototype.ConvertAccount=function(o,e,t,a){this.gamerData?this.clan.withGamer(this.gamerData).convertTo(o,e,t,function(o,e){void 0!==a&&a(o,e)}.bind(this)):void 0!==a&&a({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"})},LibXtralife.prototype.LinkAccount=function(o,e,t,a){this.gamerData?(console.log("LinkAccount: "+o+", "+e+", "+t),this.clan.withGamer(this.gamerData).link(o,e,t,function(o,e){console.log("LinkAccount error: "+JSON.stringify(o)),console.log("LinkAccount result: "+JSON.stringify(e)),void 0!==a&&a(o,e)}.bind(this))):void 0!==a&&a({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"})},LibXtralife.prototype.ResetPassword=function(o,e,t,a,r){this.clan.sendResetMailPassword(o,e,t,a,function(a,e){void 0!==r&&r(a,e)}.bind(this))},LibXtralife.prototype.ChangePassword=function(a,o){this.gamerData?this.clan.withGamer(this.gamerData).changePassword(a,function(t,e){void 0!==o&&o(t,e)}.bind(this)):void 0!==o&&o({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"})},LibXtralife.prototype.GetGamerData=function(){return void 0===this.gamerData?null:this.gamerData},LibXtralife.prototype.GetProfileData=function(){if(this.gamerData){var t=this.gamerData.profile;return new UserService.Player(this.gamerData.gamer_id,t.displayName,t.avatar,t.email,t.lang)}return null},LibXtralife.prototype.GetProfile=function(o){this.gamerData?this.clan.withGamer(this.gamerData).profile().get(function(e,t){void 0!==o&&o(e,t)}):void 0!==o&&o({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"})},LibXtralife.prototype.SetProfile=function(o,e){var t=this;this.gamerData?this.clan.withGamer(this.gamerData).profile().set(o,function(a,s){if(null===a)for(var n in o)t.gamerData.profile[n]=o[n];void 0!==e&&e(a,s)}):void 0!==e&&e({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"})},LibXtralife.prototype.GetGames=function(){if(this.gamerData){for(var t=this.gamerData.games,e=[],a=0;a<t.length;a++)e.push(new UserService.Game(t[a].appid,t[a].appid,t[a].lastlogin,null,null));return e}return null},LibXtralife.prototype.ListUsers=function(o,e,t,a){this,this.gamerData?this.clan.withGamer(this.gamerData).listUsers(encodeURIComponent(o),t,e,function(o,e){console.log("ListUsers error: "+JSON.stringify(o)),console.log("ListUsers result: "+JSON.stringify(e)),void 0!==a&&(null===o?a(e.result):a(null))}):void 0!==a&&a(null)},LibXtralife.prototype.LeaderboardGetPaged=function(o,e,t,r,l){this,this.gamerData?this.clan.withGamer(this.gamerData).leaderboards(this.clan.privateDomain).getHighscores(e,+t,+r,function(t,n){if(null!==t)LibXtralife.LogError("Leaderboard Get Paged error: "+t),void 0!==l&&l(null);else{LibXtralife.Log("LeaderboardGetPaged: "+JSON.stringify(n));var a=[],s=n[e];if(void 0!==s)for(var a=[],r=0,i;r<s.scores.length;r++)i=s.scores[r],void 0!==i&&a.push(new LeaderboardsService.LbdEntry(i.gamer_id,s.rankOfFirst+r,i.profile.displayName,i.score.score,i.score.info,i.profile.avatar,i.score.timestamp));void 0!==l&&l(a)}}):void 0!==l&&l(null)},LibXtralife.prototype.LeaderboardGetFriendsPaged=function(o,e,t,r,l){this,this.gamerData?this.clan.withGamer(this.gamerData).leaderboards(this.clan.privateDomain).getFriendsHighscores(e,+t,+r,function(t,n){if(null!==t)LibXtralife.LogError("Leaderboard Get Friends Paged error: "+t),void 0!==l&&l(null);else{LibXtralife.Log("LeaderboardGetFriendsPaged: "+JSON.stringify(n));var a=[],s=n[e];if(void 0!==s)for(var r=0,i;r<s.length;r++)i=s[r],void 0!==i&&a.push(new LeaderboardsService.LbdEntry(i.gamer_id,i.rank,i.profile.displayName,i.score.score,i.score.info,i.profile.avatar,i.score.timestamp));void 0!==l&&l(a)}}):void 0!==l&&l(null)},LibXtralife.prototype.LeaderboardGetRank=function(o,e,t){var a=this;this.gamerData?this.clan.withGamer(this.gamerData).leaderboards(this.clan.privateDomain).getCenteredHighscores(e,1,function(s,l){var n=null;if(LibXtralife.Log(a.gamerData),null!==s)LibXtralife.LogError("Could not get centered rank: "+JSON.stringify(s));else{var r=l[e];if(void 0!==r){var o=r.scores[0];void 0!==o&&(LibXtralife.Log("LeaderboardGetRank: "+JSON.stringify(l)),n=new LeaderboardsService.LbdEntry(o.gamer_id,r.rankOfFirst,o.profile.displayName,o.score.score,o.score.info,o.profile.avatar,o.score.timestamp))}}void 0!==t&&t(n)}):void 0!==t&&t(null)},LibXtralife.prototype.LeaderboardSetScore=function(o,e,t,r,i){this,this.gamerData?this.clan.withGamer(this.gamerData).leaderboards(this.clan.privateDomain).set(e,o.options.sortOrder,{score:+t,info:r},function(a,e){null===a?(LibXtralife.Log("LeaderboardSetScore: "+JSON.stringify(e)),void 0!==i&&i(!0)):(LibXtralife.LogError("Leaderboard Set score error: "+a),void 0!==i&&i(!1))}):void 0!==i&&i(!1)},LibXtralife.prototype.SetUserData=function(o,e,n){this.gamerData?this.clan.withGamer(this.gamerData).gamervfs(this.clan.privateDomain).setValue(o,e,function(a,e){null===a?(LibXtralife.LogError("User data set: "+e.result),void 0!==n&&n(!0)):(LibXtralife.LogError("Set user data error: "+JSON.stringify(a)),void 0!==n&&n(!1))}):void 0!==n&&n(!1)},LibXtralife.prototype.GetUserData=function(o,e){this.gamerData?this.clan.withGamer(this.gamerData).gamervfs(this.clan.privateDomain).getValue(o,function(t,a){null===t?(LibXtralife.Log("User data get: "+JSON.stringify(a)),void 0!==e&&e(a.result[o])):(LibXtralife.LogError("Get user data error: "+JSON.stringify(t)),void 0!==e&&e(null))}):void 0!==e&&e(null)},LibXtralife.prototype.GetFriends=function(i){this.gamerData?this.clan.withGamer(this.gamerData).friends(this.clan.privateDomain).get(function(e,t){if(null!==e)LibXtralife.LogError("Get friends error: "+JSON.stringify(e)),void 0!==i&&i(null);else{LibXtralife.Log("Get friends: "+JSON.stringify(t));var a=[],s=t.friends;if(void 0!==s)for(var n=0,o;n<s.length;n++)o=s[n],void 0!==o&&a.push(new UserService.Player(o.gamer_id,o.profile.displayName,o.profile.avatar,o.profile.email));void 0!==i&&i(a)}}):void 0!==i&&i(null)},LibXtralife.prototype.AddFriend=function(a,o){this.gamerData?this.clan.withGamer(this.gamerData).friends(this.clan.privateDomain).status(a,"add",function(t,e){null===t?(LibXtralife.Log("AddFriend: "+JSON.stringify(e)),void 0!==o&&o(!0)):(LibXtralife.LogError("AddFriend error: "+JSON.stringify(t)),void 0!==o&&o(!1))}):void 0!==o&&o(!1)},LibXtralife.prototype.RemoveFriend=function(a,o){this.gamerData?this.clan.withGamer(this.gamerData).friends(this.clan.privateDomain).status(a,"forget",function(t,e){null===t?(LibXtralife.Log("RemoveFriend: "+JSON.stringify(e)),void 0!==o&&o(!0)):(LibXtralife.LogError("RemoveFriend error: "+JSON.stringify(t)),void 0!==o&&o(!1))}):void 0!==o&&o(!1)},LibXtralife.prototype.SendEvent=function(o,e,n){void 0===this.gamerData?void 0!==n&&n({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"}):this.clan.withGamer(this.gamerData).events(this.clan.privateDomain).send(o,e,null,function(a,e){null===a?(LibXtralife.Log("SendEvent: "+JSON.stringify(e)),void 0!==n&&n(a,e)):(LibXtralife.LogError("SendEvent error: "+JSON.stringify(a)),void 0!==n&&n(a,e))})},LibXtralife.prototype.ListenForEvent=function(o){void 0===this.gamerData?void 0!==o&&o({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"}):this.clan.withGamer(this.gamerData).events(this.clan.privateDomain).receive("auto",function(e,t){null===e?(LibXtralife.Log("ListenForEvent: "+JSON.stringify(t)),void 0!==o&&o(e,t)):(LibXtralife.LogError("ListenForEvent error: "+JSON.stringify(e)),void 0!==o&&o(e,t))})},LibXtralife.prototype.GetAllEvents=function(o){if(void 0===this.gamerData)return void(void 0!==o&&o(null));var e=[];events_available=!0;var t=this,r=function(){t.ListenForEvent(function(t,a){null===a?void 0!==o&&o(e):(e.push(a),r())})};r()},LibXtralife.prototype.GetReferralCode=function(o){void 0===this.gamerData?void 0!==o&&o(null):this.clan.withGamer(this.gamerData).referral(this.clan.privateDomain).getCode(function(e,t){null===t?void 0!==o&&o(null):void 0!==o&&o(t.godfathercode)})},LibXtralife.prototype.UseReferralCode=function(a,o){void 0===this.gamerData?void 0!==o&&o(!1):this.clan.withGamer(this.gamerData).referral(this.clan.privateDomain).useCode(a,null,function(t){null===t?void 0!==o&&o(!0):void 0!==o&&o(!1)})};function LibKongregate(){LibKongregate.Log(">>>> Kongregate: construct"),this.loggedIn=!1,this.gamerData=null}LibKongregate.Log=function(t){console.log(t)},LibKongregate.LogError=function(t){console.log(t)},LibKongregate.prototype.Init=function(){LibKongregate.Log(">>>> Kongregate: Init");var a=this,e=function(){LibKongregate.Log(">>>> Kongregate: Logged in"),a.loggedIn=!0,void 0!==a.loggedinCallback&&a.loggedinCallback(),a.messageSentCallback=FBInstant.options.chatOptions.messageSentCallback,a.messageReceivedCallback=FBInstant.options.chatOptions.messageReceivedCallback,a.kongregate.chat.addEventListener("message",function(e){void 0!==a.messageSentCallback&&a.messageSentCallback(new ChatService.Message(e.data.message,e.data.username,"sent",null))}),a.kongregate.chat.addEventListener("room.message",function(e){void 0!==a.messageReceivedCallback&&a.messageReceivedCallback(new ChatService.Message(e.data.message,e.data.username,"recv",e.data.room))}),this.gamerData={network:"kong"}};kongregateAPI.loadAPI(function(){LibKongregate.Log(">>>> Kongregate: API Loaded"),a.kongregate=kongregateAPI.getAPI(),LibKongregate.Log(a.kongregate),a.kongregate.services.isGuest()?(LibKongregate.Log(">>>> Kongregate: Not logged in"),a.kongregate.services.addEventListener("login",function(){e()})):(LibKongregate.Log(">>>> Kongregate: Already logged in"),e())})},LibKongregate.prototype.InitAnalytics=function(){},LibKongregate.prototype.InitPayments=function(a,e){e(null)},LibKongregate.prototype.InitUser=function(){},LibKongregate.prototype.InitShare=function(){},LibKongregate.prototype.InitChat=function(){},LibKongregate.prototype.addSupportedAPI=function(t){"user"===t?(FBInstant.supportedAPIs.push("getLocale"),FBInstant.supportedAPIs.push("player.getConnectedPlayersAsync"),FBInstant.supportedAPIs.push("ext.isLoggedIn"),FBInstant.supportedAPIs.push("ext.loginAsync")):"analytics"===t?FBInstant.supportedAPIs.push("logEvent"):"share"===t?FBInstant.supportedAPIs.push("shareAsync"):"chat"===t?(FBInstant.supportedAPIs.push("ext.chatSendAsync"),FBInstant.supportedAPIs.push("ext.chatStartAsync"),FBInstant.supportedAPIs.push("ext.chatEndAsync")):"payments"==t&&(FBInstant.supportedAPIs.push("payments.getCatalogAsync"),FBInstant.supportedAPIs.push("payments.purchaseAsync"),FBInstant.supportedAPIs.push("payments.getPurchasesAsync"),FBInstant.supportedAPIs.push("payments.consumePurchaseAsync"),FBInstant.supportedAPIs.push("payments.purchaseAsync"))},LibKongregate.prototype.Login=function(a,e){this.loggedIn&&void 0!==e&&e(null,null),a?(LibKongregate.Log(">>>> Kongregate: Anonymous login"),void 0!==e&&e(null,null)):(this.loggedinCallback=function(){void 0!==e&&e(null,null)},this.kongregate.services.showRegistrationBox())},LibKongregate.prototype.GetProfileData=function(){return this.loggedIn?new UserService.Player(this.kongregate.services.getUserId(),this.kongregate.services.getUsername(),null,null,LibUtils.GetLocale()):null},LibKongregate.prototype.GetFriends=function(t){void 0!==t&&t([])},LibKongregate.prototype.LogEvent=function(a,e){return this.loggedIn?(this.kongregate.analytics.addEvent(a,{value:e}),null):{code:"ANALYTICS_POST_EXCEPTION ",message:"ANALYTICS_POST_EXCEPTION "}},LibKongregate.prototype.GetProducts=function(t){return LibKongregate.Log(">>>> Kongregate: GetProducts"),this.loggedIn?void this.kongregate.mtx.requestItemList([],function(e){if(e.success){for(var a=[],s=0;s<e.data.length;s++){var n=e.data[s],r=new PaymentsService.Product(n.name,n.id,n.description,n.image_url,n.price,"");r.identifier=n.identifier,r.tags=n.tags,a.push(r)}t(null,a)}else t({code:"NETWORK_FAILURE",message:"NETWORK_FAILURE"},null)}):void t({code:"PAYMENTS_NOT_INITIALIZED",message:"PAYMENTS_NOT_INITIALIZED"},null)},LibKongregate.prototype.PurchaseProduct=function(a,e){return LibKongregate.Log(">>>> Kongregate: PurchaseProduct"),this.loggedIn?void this.kongregate.mtx.purchaseItems([a.productID],function(t){if(LibKongregate.Log(">>>> Kongregate: purchase result"),LibKongregate.Log(t),t.success){var o=new PaymentsService.Purchase(a.developerPayload,"",a.productID,Date.now,"",null);e(null,o)}else e({code:"NETWORK_FAILURE",message:"NETWORK_FAILURE"},null)}):void e({code:"PAYMENTS_NOT_INITIALIZED",message:"PAYMENTS_NOT_INITIALIZED"},null)},LibKongregate.prototype.RefundProduct=function(a,e){e({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"})},LibKongregate.prototype.ConsumeProduct=function(a,o){return LibKongregate.Log(">>>> Kongregate: ConsumeProduct"),this.loggedIn?void this.kongregate.mtx.useItemInstance(a,function(t){t.success?o(null):o({code:"NETWORK_FAILURE",message:"NETWORK_FAILURE"})}):void o({code:"PAYMENTS_NOT_INITIALIZED",message:"PAYMENTS_NOT_INITIALIZED"})},LibKongregate.prototype.GetPurchases=function(t){return LibKongregate.Log(">>>> Kongregate: GetPurchases"),this.loggedIn?void this.kongregate.mtx.requestUserItemList(null,function(e){if(e.success){for(var a=[],s=0;s<e.data.length;s++){var n=e.data[s],r=new PaymentsService.Purchase("",n.id,n.identifier,null,n.id,null);r.data=n.data,r.remainingUses=n.remaining_uses,a.push(r)}t(null,a)}else t({code:"NETWORK_FAILURE",message:"NETWORK_FAILURE"},null)}):void t({code:"PAYMENTS_NOT_INITIALIZED",message:"PAYMENTS_NOT_INITIALIZED"},null)},LibKongregate.prototype.ShowPurchaseDialog=function(t){return LibKongregate.Log(">>>> Kongregate: ShowPurchaseDialog"),this.loggedIn?void this.kongregate.mtx.showKredPurchaseDialog(t.type):void done_cb({code:"PAYMENTS_NOT_INITIALIZED",message:"PAYMENTS_NOT_INITIALIZED"},null)},LibKongregate.prototype.SharePrimary=function(t){LibKongregate.Log(">>>> Kongregate: SharePrimary"),LibKongregate.Log(t),"feed"===t.type?this.kongregate.services.showFeedPostBox({content:t.text,image_url:t.image,kv_params:t.data},function(){}):"shout"===t.type?this.kongregate.services.showShoutBox(t.text,function(){}):"private"===t.type?this.kongregate.services.privateMessage(t.text):this.kongregate.services.showInvitationBox({content:t.text,filter:t.filter,kv_params:t.data},function(t){LibKongregate.Log(">>>> Kongregate: invite Result"),console.log(t)})},LibKongregate.prototype.OpenURL=function(t){window.open(t.url,"_blank")},LibKongregate.prototype.SendStat=function(t){return(LibKongregate.Log(">>>> Kongregate: SendStat"),!!this.loggedIn)&&(this.kongregate.stats.submit(t.stat,t.value),!0)},LibKongregate.prototype.StartChat=function(t){return(LibKongregate.Log(">>>> Kongregate: StartChat"),LibKongregate.Log(t),!!this.loggedIn)&&(this.kongregate.chat.showTab(t.name,t.description,t.options),!0)},LibKongregate.prototype.EndChat=function(){return(LibKongregate.Log(">>>> Kongregate: EndChat"),!!this.loggedIn)&&(this.kongregate.chat.closeTab(),!0)},LibKongregate.prototype.SendChatMessage=function(t){return(LibKongregate.Log(">>>> Kongregate: SendChatMessage"),!!this.loggedIn)&&(this.kongregate.chat.displayMessage(t.message,t.username),!0)};function LibCrazyGames(){}LibCrazyGames.Log=function(t){console.log(t)},LibCrazyGames.LogError=function(t){console.log(t)},LibCrazyGames.prototype.InitAds=function(a){LibCrazyGames.Log(">>>> CrazyGames: InitAds");var e=this;this.crazysdk=window.CrazyGames.CrazySDK.getInstance(),this.adRequested=!1,this.startedCallback=a.startedCallback,this.finishedCallback=a.finishedCallback,this.crazysdk.init(),this.crazysdk.addEventListener("adStarted",function(){LibCrazyGames.Log("CrazyGames: adStarted"),e.startedCallback&&e.startedCallback()}),this.crazysdk.addEventListener("adError",function(){LibCrazyGames.Log("CrazyGames: adError"),e.adRequested=!1,e.finishedCallback&&e.finishedCallback(!1),e.watchedCallback&&e.watchedCallback({code:"ADS_NOT_LOADED",message:"ADS_NOT_LOADED"}),e.watchedCallback=void 0}),this.crazysdk.addEventListener("adFinished",function(){LibCrazyGames.Log("CrazyGames: adFinished"),e.adRequested=!1,e.finishedCallback&&e.finishedCallback(!0),e.watchedCallback&&e.watchedCallback(null),e.watchedCallback=void 0})},LibCrazyGames.prototype.addSupportedAPI=function(t){"ads"===t&&(FBInstant.supportedAPIs.push("getInterstitialAdAsync"),FBInstant.supportedAPIs.push("getRewardedVideoAsync"),FBInstant.supportedAPIs.push("AdInstance.loadAsync"),FBInstant.supportedAPIs.push("AdInstance.showAsync"))},LibCrazyGames.prototype.PreloadAd=function(o,e,t){t(null)},LibCrazyGames.prototype.ShowAd=function(o,e,t){this.adRequested&&(LibCrazyGames.Log("CrazyGames: Ad already requested"),t({code:"ADS_NOT_LOADED",message:"ADS_NOT_LOADED"})),LibCrazyGames.Log("CrazyGames: Requesting ad"),this.adRequested=!0,"video"===e?(this.watchedCallback=t,this.crazysdk.requestAd("rewarded")):"inter"===e?(this.watchedCallback=t,this.crazysdk.requestAd("midgame")):t({code:"ADS_NOT_LOADED",message:"ADS_NOT_LOADED"})};function LibGameDistribution(){LibGameDistribution.Log(">>>> GameDistribution: Created!")}LibGameDistribution.Log=function(t){console.log(t)},LibGameDistribution.LogError=function(t){console.log(t)},LibGameDistribution.prototype.InitAds=function(o){LibGameDistribution.Log(">>>> GameDistribution: InitAds");var n=this;this.startedCallback=o.startedCallback,this.finishedCallback=o.finishedCallback,window.GD_OPTIONS={gameId:o.appId,onEvent:function(t){switch(t.name){case"SDK_GAME_START":LibGameDistribution.Log("GameDistribution: adFinished"),n.finishedCallback&&n.finishedCallback(),n.watchedCallback&&n.watchedCallback(null),n.watchedCallback=void 0;break;case"SDK_GAME_PAUSE":LibGameDistribution.Log("GameDistribution: adStarted"),n.startedCallback&&n.startedCallback();break;case"AD_ERROR":LibGameDistribution.Log("GameDistribution: adError"),n.finishedCallback&&n.finishedCallback(!1),n.watchedCallback&&n.watchedCallback({code:"ADS_NOT_LOADED",message:"ADS_NOT_LOADED"}),n.watchedCallback=void 0;break;case"SDK_ERROR":LibGameDistribution.LogError("GameDistribution: SDK ERROR");break;case"SDK_GDPR_TRACKING":break;case"SDK_GDPR_TARGETING":}}};var e=document.createElement("script");e.id="gamedistribution-jssdk",e.src="https://html5.api.gamedistribution.com/main.min.js",e.onload=function(){LibGameDistribution.Log(">>>> GameDistribution: Loaded")},document.head.appendChild(e)},LibGameDistribution.prototype.addSupportedAPI=function(t){"ads"===t&&(FBInstant.supportedAPIs.push("getInterstitialAdAsync"),FBInstant.supportedAPIs.push("getRewardedVideoAsync"),FBInstant.supportedAPIs.push("AdInstance.loadAsync"),FBInstant.supportedAPIs.push("AdInstance.showAsync"))},LibGameDistribution.prototype.PreloadAd=function(o,e,t){t(null)},LibGameDistribution.prototype.ShowAd=function(o,e,t){return LibGameDistribution.Log("GameDistribution: Requesting ad"),void 0===gdsdk?void t({code:"ADS_NOT_LOADED",message:"ADS_NOT_LOADED"}):void("video"===e?(this.watchedCallback=t,gdsdk.showBanner()):"inter"===e?(gdsdk.showBanner(),t(null)):t({code:"ADS_NOT_LOADED",message:"ADS_NOT_LOADED"}))};function LibMiniclip(){this.loggedIn=!1}LibMiniclip.Log=function(t){console.log(t)},LibMiniclip.LogError=function(t){console.log(t)},LibMiniclip.prototype.Init=function(){LibMiniclip.Log(">>>> Miniclip: Init"),window.mcAsyncInit=function(){MC.init({app_id:0,language:"en",modules:["currency","social"]}),MC.resize()},function(o,e,t){var a=o.getElementById("gamecanvas"),n;o.getElementById(t)||(n=o.createElement(e),n.id=t,n.src="//static.miniclipcdn.com/js/mc.js",a.parentNode.insertBefore(n,a))}(document,"script","miniclip-jssdk")};function login(){}LibMiniclip.prototype.InitUser=function(){},LibMiniclip.prototype.addSupportedAPI=function(t){"user"===t&&(FBInstant.supportedAPIs.push("getLocale"),FBInstant.supportedAPIs.push("player.getConnectedPlayersAsync"),FBInstant.supportedAPIs.push("ext.isLoggedIn"),FBInstant.supportedAPIs.push("ext.loginAsync"))},LibMiniclip.prototype.Login=function(a,o){LibMiniclip.Log(">>>> Miniclip: Login"),this.loggedIn&&void 0!==o&&o(null,null),a?(LibMiniclip.Log(">>>> Miniclip: Anonymous login"),void 0!==o&&o(null,null)):MC.login(function(t){LibMiniclip.Log(">>>> Miniclip: Logged in"),LibMiniclip.Log(t),this.loggedIn=!0,void 0!==o&&o(null,null)})},LibMiniclip.prototype.GetProfileData=function(){return this.loggedIn?new UserService.Player("1","Guest",null,null,LibUtils.GetLocale()):null},LibMiniclip.prototype.GetFriends=function(t){void 0!==t&&t([])};function LibAdInPlay(){}LibAdInPlay.Log=function(t){console.log(t)},LibAdInPlay.LogError=function(t){console.log(t)},LibAdInPlay.prototype.InitAds=function(t){LibAdInPlay.Log("LibAdInPlay: InitAds"),this.adWidth=960,this.adHeight=540,void 0!==t.adWidth&&(this.adWidth=t.adWidth),void 0!==t.adHeight&&(this.adHeight=t.adHeight),this.startedCallback=t.startedCallback,this.finishedCallback=t.finishedCallback},LibAdInPlay.prototype.addSupportedAPI=function(t){"ads"===t&&(FBInstant.supportedAPIs.push("getInterstitialAdAsync"),FBInstant.supportedAPIs.push("getRewardedVideoAsync"),FBInstant.supportedAPIs.push("AdInstance.loadAsync"),FBInstant.supportedAPIs.push("AdInstance.showAsync"))},LibAdInPlay.prototype.PreloadAd=function(o,e,t){t(null)},LibAdInPlay.prototype.ShowAd=function(o,e,t){LibAdInPlay.Log("LibAdInPlay: Requesting ad");var a=this;return void 0===this.aiptag&&(this.aiptag=aiptag||{},this.aiptag.cmd=this.aiptag.cmd||[],this.aiptag.cmd.player=this.aiptag.cmd.player||[],this.aiptag.consented=!0,this.aiptag.cmd.player.push(function(){adplayer=new aipPlayer({AD_WIDTH:a.adWidth,AD_HEIGHT:a.adHeight,AD_FULLSCREEN:!1,AD_CENTERPLAYER:!1,LOADING_TEXT:"loading advertisement",PREROLL_ELEM:function(){return document.getElementById("preroll")},AIP_COMPLETE:function(){LibAdInPlay.Log("AdInPlay: adFinished"),a.adRequested=!1,void 0!==a.finishedCallback&&a.finishedCallback(!0),void 0!==a.watchedCallback&&a.watchedCallback(null),a.watchedCallback=void 0},AIP_REMOVE:function(){}})})),void 0===this.aiptag?void t({code:"ADS_NOT_LOADED",message:"ADS_NOT_LOADED"}):void("video"===e?(this.watchedCallback=t,this.aiptag.cmd.player.push(function(){adplayer.startPreRoll()}),void 0!==this.startedCallback&&this.startedCallback()):"inter"===e?(this.aiptag.cmd.player.push(function(){adplayer.startPreRoll()}),t(null),void 0!==this.startedCallback&&this.startedCallback()):t({code:"ADS_NOT_LOADED",message:"ADS_NOT_LOADED"}))};function LibGoogleAnalytics(){LibGoogleAnalytics.Log(">>>> GoogleAnalytics: Created!")}LibGoogleAnalytics.Log=function(t){console.log(t)},LibGoogleAnalytics.LogError=function(t){console.log(t)},LibGoogleAnalytics.prototype.InitAnalytics=function(t){LibGoogleAnalytics.Log(">>>> GoogleAnalytics: InitAnalytics"),this,function(a,e,t,s,n,o,r){a.GoogleAnalyticsObject=n,a[n]=a[n]||function(){(a[n].q=a[n].q||[]).push(arguments)},a[n].l=1*new Date,o=e.createElement(t),r=e.getElementsByTagName(t)[0],o.async=1,o.src=s,r.parentNode.insertBefore(o,r)}(window,document,"script","https://www.google-analytics.com/analytics.js","ga"),ga("create",t.trackingId,"auto")},LibGoogleAnalytics.prototype.addSupportedAPI=function(t){"analytics"===t&&FBInstant.supportedAPIs.push("logEvent")},LibGoogleAnalytics.prototype.LogEvent=function(a,e){return LibGoogleAnalytics.Log(">>>> GoogleAnalytics: LogEvent "+a),ga("send","event","game",a,e),!0};function LibPayPal(){LibPayPal.Log(">>>> GoogleAnalytics: Created!")}LibPayPal.Log=function(t){console.log(t)},LibPayPal.LogError=function(t){console.log(t)},FBInstant.options.paymentsOptions.style={size:"responsive",color:"blue",shape:"pill",label:"checkout",tagline:"true"},FBInstant.options.paymentsOptions.locale="en_US",FBInstant.options.paymentsOptions.currency="USD",FBInstant.options.paymentsOptions.buttonId="#paypal-button",FBInstant.options.paymentsOptions.products={},LibPayPal.prototype.InitPayments=function(a,e){LibPayPal.Log(">>>> PayPal: InitPayments"),e(null)},LibPayPal.prototype.addSupportedAPI=function(t){"payments"===t&&(FBInstant.supportedAPIs.push("payments.getCatalogAsync"),FBInstant.supportedAPIs.push("payments.purchaseAsync"),FBInstant.supportedAPIs.push("payments.getPurchasesAsync"),FBInstant.supportedAPIs.push("payments.consumePurchaseAsync"),FBInstant.supportedAPIs.push("payments.purchaseAsync"))},LibPayPal.prototype.GetProducts=function(t){t(null,FBInstant.options.paymentsOptions.products)},LibPayPal.prototype.PurchaseProduct=function(o,e){var t=FBInstant.options.paymentsOptions;LibPayPal.Log(">>>> PayPal: PurchaseProduct - env "+t.devMode);var r=t.products[o.productID];return void 0===r?void e({code:"INVALID_PARAM",message:"INVALID_PARAM"},null):void paypal.Button.render({env:t.devMode,client:{sandbox:t.sandboxId,production:t.productionId},locale:t.locale,style:t.style,payment:function(a,e){return e.payment.create({transactions:[{amount:{total:""+r.price,currency:r.priceCurrencyCode},description:r.description}]})},onAuthorize:function(t,a){return a.payment.execute().then(function(){var a=new PaymentsService.Purchase(o.developerPayload,t.paymentID,r.productID,Date.now,t.paymentToken,null);a.orderID=t.orderID,a.returnUrl=t.returnUrl,e(null,t)})},onCancel:function(){e({code:"USER_INPUT",message:"USER_INPUT"},null)}},t.buttonId)},LibPayPal.prototype.RefundProduct=function(a,e){e({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"},null)},LibPayPal.prototype.ConsumeProduct=function(a,e){e({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"},null)},LibPayPal.prototype.GetPurchases=function(t){t({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"},null)};function LibUnity(){LibUnity.Log(">>>> Unity: construct"),this.iap_init=!1,this.profile=new UserService.Player("User","","","","us"),this.gamerData=null}LibUnity.Log=function(t){console.log(t)},LibUnity.LogError=function(t){console.log(t)},LibUnity.MessageQ=[],LibUnity.MessageQSendInterval=50,LibUnity.SendMessages=function(){0<LibUnity.MessageQ.length&&(window.location.href="igx://"+LibUnity.MessageQ[0],LibUnity.MessageQ.shift())},setInterval(LibUnity.SendMessages,LibUnity.MessageQSendInterval),LibUnity.SendMessageToUnity=function(t){LibUnity.MessageQ.push(t)},LibUnity.ShowAdCallback=function(o){LibUnity.Log(">>>> Unity: ShowAdCallback "+o);var e=AdsService.instance.service;if("ok"===o){var t=e.watchedCallback;void 0!==t&&t(null),void 0!==e.finishedCallback&&e.finishedCallback(!0),e.watchedCallback=void 0}else if("error"===o||"skip"===o){var t=e.watchedCallback;void 0!==t&&t({code:"ADS_NOT_LOADED",message:"ADS_NOT_LOADED"}),void 0!==e.finishedCallback&&e.finishedCallback(!1),e.watchedCallback=void 0}},LibUnity.LoadAdCallback=function(a){LibUnity.Log(">>>> Unity: LoadAdCallback "+a);var e=AdsService.instance.service;"ok"===a?(void 0!==e.loadCallback&&e.loadCallback(null,null),e.loadCallback=void 0):"error"==a&&(void 0!==e.loadCallback&&e.loadCallback({code:"ADS_NOT_LOADED",message:"ADS_NOT_LOADED"}),e.loadCallback=void 0)},LibUnity.LoadRewardedAdCallback=function(a){LibUnity.Log(">>>> Unity: LoadAdCallback "+a);var e=AdsService.instance.service;"ok"===a?(void 0!==e.loadRewardedCallback&&e.loadRewardedCallback(null,null),e.loadRewardedCallback=void 0):"error"==a&&(void 0!==e.loadRewardedCallback&&e.loadRewardedCallback({code:"ADS_NOT_LOADED",message:"ADS_NOT_LOADED"}),e.loadRewardedCallback=void 0)},LibUnity.IAPCallback=function(t,e){LibUnity.Log(">>>> Unity: IAPCallback "+t);var a=PaymentsService.instance.service;if("success"===t){var s=FBInstant.options.paymentsOptions.products;for(var n in s)for(var r=0;r<e.length;r++)s[n].productID===e[r].id&&(s[n].price=e[r].price);a.iap_init=!0,a.iap_initialised(null)}else"error"==t&&(a.iap_init=!1,a.iap_initialised())},LibUnity.PurchaseCallback=function(o,e){LibUnity.Log(">>>> Unity: PurchaseCallback "+o);var t=PaymentsService.instance.service;"success"===o?void 0!==t.purchase_complete&&(t.purchase_complete(null,new PaymentsService.Purchase("","",e,Date.now,"",null)),t.purchase_complete=void 0):"error"==o&&void 0!==t.purchase_complete&&(t.purchase_complete({code:"NETWORK_FAILURE",message:"NETWORK_FAILURE"},null),t.purchase_complete=void 0)},LibUnity.LoginCallback=function(o,e){LibUnity.Log(">>>> Unity: LoginCallback "+o);var t=UserService.instance.service;void 0!==t.login_complete&&(o?(t.gamerData={network:"unity"},t.login_complete(null,e)):t.login_complete({code:"NETWORK_FAILURE",message:"NETWORK_FAILURE"},e),t.login_complete=void 0,t.profile=e)},LibUnity.SetScoreCallback=function(a){LibUnity.Log(">>>> Unity: SubmitScoreCallback");var e=LeaderboardsService.instance.service;void 0!==e.setscore_complete&&(e.setscore_complete(a),e.setscore_complete=void 0)},LibUnity.LoadPlayerScoreCallback=function(a){LibUnity.Log(">>>> Unity: LoadPlayerScoreCallback");var e=LeaderboardsService.instance.service;void 0!==e.getscore_complete&&(null===a?e.getscore_complete(null):e.getscore_complete(a),e.getscore_complete=void 0)},LibUnity.LoadScoresCallback=function(a){LibUnity.Log(">>>> Unity: LoadScoresCallback");var e=LeaderboardsService.instance.service;void 0!==e.loadscores_complete&&(null===a?e.loadscores_complete(null):e.loadscores_complete(a),e.loadscores_complete=void 0)},LibUnity.SetLocale=function(a){var e=UserService.instance.service;e.profile.lang=a},LibUnity.prototype.Init=function(){LibUnity.Log(">>>> Unity: Init"),LibUnity.SendMessageToUnity("init")},LibUnity.prototype.InitAds=function(t){LibUnity.Log(">>>> Unity: InitAds"),this.startedCallback=t.startedCallback,this.finishedCallback=t.finishedCallback,LibUnity.SendMessageToUnity("initAds"+t.vendor+","+t.appId)},LibUnity.prototype.InitAnalytics=function(){},LibUnity.prototype.InitPayments=function(o,e){LibUnity.Log(">>>> Unity: InitPayments"),this,this.iap_initialised=e;var t=FBInstant.options.paymentsOptions.products,a="";for(var r in t)a+=t[r].productID+",";LibUnity.SendMessageToUnity("initIAP"+a)},LibUnity.prototype.InitUser=function(){LibUnity.Log(">>>> Unity: InitUser"),LibUnity.SendMessageToUnity("initSocial")},LibUnity.prototype.InitLeaderboards=function(){},LibUnity.prototype.InitShare=function(){},LibUnity.prototype.addSupportedAPI=function(t){"leaderboards"===t?(FBInstant.supportedAPIs.push("Leaderboard.getEntriesAsync"),FBInstant.supportedAPIs.push("Leaderboard.getConnectedPlayerEntriesAsync"),FBInstant.supportedAPIs.push("Leaderboard.getPlayerEntryAsync"),FBInstant.supportedAPIs.push("Leaderboard.setScoreAsync"),FBInstant.supportedAPIs.push("getLeaderboardAsync"),FBInstant.supportedAPIs.push("ext.showLeaderboard")):"user"===t?(FBInstant.supportedAPIs.push("getLocale"),FBInstant.supportedAPIs.push("player.getConnectedPlayersAsync"),FBInstant.supportedAPIs.push("ext.isLoggedIn"),FBInstant.supportedAPIs.push("ext.loginAsync")):"share"===t?FBInstant.supportedAPIs.push("shareAsync"):"ads"===t?(FBInstant.supportedAPIs.push("getInterstitialAdAsync"),FBInstant.supportedAPIs.push("getRewardedVideoAsync"),FBInstant.supportedAPIs.push("AdInstance.loadAsync"),FBInstant.supportedAPIs.push("AdInstance.showAsync")):"analytics"===t?FBInstant.supportedAPIs.push("logEvent"):"payments"===t?(FBInstant.supportedAPIs.push("payments.getCatalogAsync"),FBInstant.supportedAPIs.push("payments.purchaseAsync"),FBInstant.supportedAPIs.push("payments.getPurchasesAsync"),FBInstant.supportedAPIs.push("payments.consumePurchaseAsync"),FBInstant.supportedAPIs.push("payments.purchaseAsync")):"debug"==t&&(FBInstant.supportedAPIs.push("ext.debug.show"),FBInstant.supportedAPIs.push("ext.debug.log"))},LibUnity.prototype.Login=function(a,e){a?(LibUnity.Log(">>>> LibUnity: Anonymous login"),void 0!==e&&e(null,null)):(this.login_complete=e,LibUnity.SendMessageToUnity("login"))},LibUnity.prototype.GetProfileData=function(){return this.profile},LibUnity.prototype.SetProfile=function(t){this.profile=t},LibUnity.prototype.GetFriends=function(t){void 0!==t&&t([])},LibUnity.prototype.PreloadAd=function(o,e,t){LibUnity.Log("Unity: Loading ad"),"video"===e?(this.loadRewardedCallback=t,LibUnity.SendMessageToUnity("loadVideo")):"inter"===e?(this.loadCallback=t,LibUnity.SendMessageToUnity("loadInter")):t({code:"ADS_NOT_LOADED",message:"ADS_NOT_LOADED"})},LibUnity.prototype.ShowAd=function(o,e,t){LibUnity.Log("Unity: Showing ad"),"video"===e?(this.watchedCallback=t,LibUnity.SendMessageToUnity("showVideo"),void 0!==this.startedCallback&&this.startedCallback()):"inter"===e?(LibUnity.SendMessageToUnity("showInter"),t(null),void 0!==this.startedCallback&&this.startedCallback()):t({code:"ADS_NOT_LOADED",message:"ADS_NOT_LOADED"})},LibUnity.prototype.LogEvent=function(o,e,t){var a="logEvent"+o;for(var r in t)a+=","+r+","+t[r];return LibUnity.SendMessageToUnity(a),null},LibUnity.prototype.GetProducts=function(t){t(null,FBInstant.options.paymentsOptions.products)},LibUnity.prototype.PurchaseProduct=function(a,e){return this.iap_init?void(FBInstant.options.paymentsOptions,this.purchase_complete=e,LibUnity.SendMessageToUnity("purchase"+a.productID)):void e({code:"PAYMENTS_NOT_INITIALIZED",message:"PAYMENTS_NOT_INITIALIZED"},null)},LibUnity.prototype.RefundProduct=function(a,e){e({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"},null)},LibUnity.prototype.ConsumeProduct=function(a,e){e({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"},null)},LibUnity.prototype.GetPurchases=function(t){t({code:"CLIENT_UNSUPPORTED_OPERATION",message:"CLIENT_UNSUPPORTED_OPERATION"},null)},LibUnity.prototype.LeaderboardGetPaged=function(o,e,t,a,r){this.loadscores_complete=r,LibUnity.SendMessageToUnity("scores"+e+",global")},LibUnity.prototype.LeaderboardGetFriendsPaged=function(o,e,t,a,r){this.loadscores_complete=r,LibUnity.SendMessageToUnity("scores"+e+",friends")},LibUnity.prototype.LeaderboardGetRank=function(o,e,t){this.getscore_complete=t,LibUnity.SendMessageToUnity("getscore"+e)},LibUnity.prototype.LeaderboardSetScore=function(o,e,t,a,r){this.setscore_complete=r,LibUnity.SendMessageToUnity("setscore"+e+","+t)},LibUnity.prototype.ShowLeaderboard=function(){LibUnity.SendMessageToUnity("showlbd")},LibUnity.prototype.SharePrimary=function(o){if(void 0!==o.image){var e=o.image.replace(/^data:image\/(png|jpeg);base64,/,"");e=e.replace(/\+/g,"$");var t=e.length;console.log("########## Total len "+t);for(var a=0;0<t;)15000>t?LibUnity.SendMessageToUnity("ud"+e.substr(a,t)):LibUnity.SendMessageToUnity("ud"+e.substr(a,15000)),a+=15000,t-=15000,console.log("########## "+t);LibUnity.SendMessageToUnity("share"+o.title+","+o.text+",image")}else LibUnity.SendMessageToUnity("share"+o.title+","+o.text+",")},LibUnity.prototype.OpenURL=function(t){LibUnity.SendMessageToUnity("openurl"+t.url)},LibUnity.prototype.ShowDebug=function(t){!0===t?LibUnity.SendMessageToUnity("showdbg1"):LibUnity.SendMessageToUnity("showdbg0")},LibUnity.prototype.ClearDebug=function(){LibUnity.SendMessageToUnity("clog")},LibUnity.prototype.LogDebug=function(t){LibUnity.SendMessageToUnity("dlog"+t)};function LibPoki(){}LibPoki.Log=function(t){console.log(t)},LibPoki.LogError=function(t){console.log(t)},LibPoki.prototype.Init=function(){LibPoki.Log(">>>> Poki: Init");var t=function(){PokiSDK.gameLoadingStart()};PokiSDK.init().then(t).catch(()=>{LibPoki.Log(">>>> adblock"),t()})},LibPoki.prototype.InitAds=function(t){LibPoki.Log(">>>> Poki: InitAds"),this.adfinished_callback=t.finishedCallback,this.adstarted_callback=t.startedCallback},LibPoki.prototype.addSupportedAPI=function(t){"ads"===t&&(FBInstant.supportedAPIs.push("getInterstitialAdAsync"),FBInstant.supportedAPIs.push("getRewardedVideoAsync"),FBInstant.supportedAPIs.push("AdInstance.loadAsync"),FBInstant.supportedAPIs.push("AdInstance.showAsync"),FBInstant.supportedAPIs.push("setLoadingProgress"))},LibPoki.prototype.SetLoadingProgress=function(t){PokiSDK.gameLoadingProgress({percentageDone:t/10})},LibPoki.prototype.FinishedLoading=function(){PokiSDK.gameLoadingFinished()},LibPoki.prototype.PreloadAd=function(o,e,t){t(null)},LibPoki.prototype.ShowAd=function(o,e,t){LibPoki.Log("Poki: Requesting ad");var a=this;"video"===e?(this.adstarted_callback&&this.adstarted_callback(),PokiSDK.rewardedBreak().then((o)=>{LibPoki.Log("Poki: rewarded ad done "+o),o?t(null):t({code:"ADS_NOT_LOADED",message:"ADS_NOT_LOADED"}),a.adfinished_callback&&a.adfinished_callback()})):"inter"===e?(this.adstarted_callback&&this.adstarted_callback(),PokiSDK.commercialBreak().then(()=>{LibPoki.Log("Poki: inter ad done"),t(null),a.adfinished_callback&&a.adfinished_callback()})):t({code:"ADS_NOT_LOADED",message:"ADS_NOT_LOADED"})},LibPoki.prototype.GameEvent=function(t){"gameplayStart"===t.type?PokiSDK.gameplayStart():"gameplayStop"===t.type?PokiSDK.gameplayStop():"happyTime"===t.type&&PokiSDK.happyTime(t.value)};function LibSwag(){}LibSwag.Log=function(t){console.log(t)},LibSwag.LogError=function(t){console.log(t)},LibSwag.prototype.Init=function(t){console.log(">>>> Init SWAG API"),this.gamerData=null,this.swagApi=SWAGAPI.getInstance({wrapper:t.container,api_key:t.apiKey,theme:void 0===t.theme?"shockwave":t.theme,debug:"sandbox"===t.devMode}),console.log(this.swagApi)},LibSwag.prototype.InitLeaderboards=function(){},LibSwag.prototype.InitAnalytics=function(){},LibSwag.prototype.InitMessaging=function(){},LibSwag.prototype.InitReferrals=function(){},LibSwag.prototype.InitShare=function(){},LibSwag.prototype.InitStorage=function(){},LibSwag.prototype.InitUser=function(){},LibSwag.prototype.addSupportedAPI=function(t){"leaderboards"===t?(FBInstant.supportedAPIs.push("Leaderboard.getEntriesAsync"),FBInstant.supportedAPIs.push("Leaderboard.getConnectedPlayerEntriesAsync"),FBInstant.supportedAPIs.push("Leaderboard.getPlayerEntryAsync"),FBInstant.supportedAPIs.push("Leaderboard.setScoreAsync"),FBInstant.supportedAPIs.push("getLeaderboardAsync"),FBInstant.supportedAPIs.push("ext.showLeaderboard")):"storage"===t?(FBInstant.supportedAPIs.push("player.getDataAsync"),FBInstant.supportedAPIs.push("player.setDataAsync")):"user"===t?FBInstant.supportedAPIs.push("ext.isLoggedIn"):"analytics"==t&&FBInstant.supportedAPIs.push("logEvent")},LibSwag.prototype.Login=function(o,e){LibSwag.Log(">>>> SWAG Starting session");var t=this;this.swagApi.startSession().then(function(){LibSwag.Log(">>>> SWAG Session started"),t.player=t.swagApi.getCurrentEntity(),void 0!==e&&e(null,null),t.gamerData={network:"swag"}})},LibSwag.prototype.GetGamerData=function(){return this.gamerData},LibSwag.prototype.GetProfileData=function(){return void 0===this.player?null:new UserService.Player(this.player._id,this.player.memberName,null,null,LibUtils.GetLocale())},LibSwag.prototype.ShowLeaderboard=function(a){if(void 0===this.swagApi)return void(void 0!==a.closed&&a.closed());if(!this.dialog_open){var e=this;this.dialog_open=!0,this.swagApi.showDialog("scores",{title:a.title}),this.swagApi.on("DIALOG_CLOSED",function(){void 0!==a.closed&&a.closed(),e.dialog_open=!1})}},LibSwag.prototype.LeaderboardGetPaged=function(i,e,l,a,d){if(console.log(">>>> SWAG LeaderboardGetPaged"),void 0===this.swagApi)return void(void 0!==d&&d(null));var n=this,r=i.options;this.swagApi.getScores({type:r.type,level_key:e,current_user:!1,period:r.period,target_date:r.targetDate,use_daily:r.useDaily,value_formatter:r.valueFormat}).then(function(n){var e=[];if(n){if(console.log(">>>> SWAG scores"),console.log(n),void 0!==n.message)return void(void 0!==d&&d(null));for(var t in n){var a=n[t],s=parseInt(a.position),r=a.value;void 0===r&&(r=0);var o=new LeaderboardsService.LbdEntry(a.screen_name,s,a.screen_name,r,null,null,a.date_created);e.push(o)}}void 0!==d&&d(e)})},LibSwag.prototype.LeaderboardGetFriendsPaged=function(o,e,t,a,r){void 0!==r&&r(null)},LibSwag.prototype.LeaderboardGetRank=function(o,e,l){if(console.log(">>>> SWAG LeaderboardGetRank"),void 0===this.swagApi)return void(void 0!==l&&l(null));var a=this,r=o.options;this.swagApi.getScores({type:r.type,level_key:e,current_user:!0,period:r.period,target_date:r.targetDate,use_daily:r.useDaily,value_formatter:r.valueFormat}).then(function(s){console.log(s);var e=new LeaderboardsService.LbdEntry(a.player._id,0,a.player.memberName,0,null,null,null);if(e.daily=[],s&&0<s.length){if(console.log(">>>> SWAG player scores"),void 0!==s.message)return void(void 0!==l&&l(null));for(var t in s){var n=s[t],r=parseInt(n.day_sort),c=parseInt(n.position),p=n.value;void 0===p&&(p=0),e.daily.push({day:r,day_name:n.day_name,pos:c,score:p})}e.daily.sort(function(a,e){return a.day-e.day})}void 0!==l&&l(e)})},LibSwag.prototype.LeaderboardSetScore=function(o,e,t,a,r){return void 0===this.swagApi?void(void 0!==r&&r(null)):void(void 0!==a&&null!==a&&a.daily?this.swagApi.postDailyScore(a.date,e,t).then(function(t){console.log(">>>> LeaderboardSetScore postDailyScore"),console.log(a.date),console.log(t),void 0!==r&&r(null===t)}):this.swagApi.postScore(e,t).then(function(t){console.log(">>>> LeaderboardSetScore postScore"),console.log(t),void 0!==r&&r(null===t)}))},LibSwag.prototype.SetUserData=function(o,e,t){return void 0===this.swagApi?void(void 0!==t&&t(!1)):void(console.log(">>>> SWAG Saving data"),console.log(o),console.log(e),this.swagApi.postDatastore(o,e).then(function(){console.log(">>>> SWAG Saved data"),void 0!==t&&t(!0)}))},LibSwag.prototype.GetUserData=function(t,e){return console.log(">>>> SWAG GetUserData"),void 0===this.swagApi?void(void 0!==e&&e(!1)):void this.swagApi.getUserDatastore().then(function(a){if(console.log(">>>> SWAG Data loaded"),console.log(a),void 0!==e){for(var o=0;o<a.length;o++)if(a[o].key===t)return console.log(">>>> SWAG key found"),console.log(a),console.log(a[o]),void e(JSON.parse(a[o].value));e(null)}})},LibSwag.prototype.LogEvent=function(o,e,t){"startGame"===o?this.swagApi.startGame().then(function(a){console.log(">>>> SWAG log event startGame"),console.log(a),void 0!==t.done_cb&&t.done_cb(a)}):"endGame"==o&&this.swagApi.endGame(t.options).then(function(a){console.log(">>>> SWAG log event endGame"),console.log(a),void 0!==t.done_cb&&t.done_cb(a)})};function AdsService(t){this.service=LibUtils.ResolveService(t),void 0===this.service&&("crazygames"===t?this.service=new LibCrazyGames:"poki"===t?this.service=new LibPoki:"gamedistribution"===t?this.service=new LibGameDistribution:"adinplay"===t?this.service=new LibAdInPlay:"unity"==t&&(this.service=new LibUnity)),this.name=t,AdsService.instance=this,void 0!==FBInstant.ext&&void 0!==this.service&&this.service.addSupportedAPI("ads")}AdsService.prototype.InitAds=function(t){return void 0!==this.service&&this.service.InitAds(t)},AdsService.prototype.IsSupported=function(){return void 0!==this.service},AdsService.prototype.PreloadAd=function(o,e,t){return void 0===this.service?void 0:this.service.PreloadAd(o,e,t)},AdsService.prototype.ShowAd=function(o,e,t){return void 0===this.service?void 0:this.service.ShowAd(o,e,t)},PaymentsService.Product=function(o,e,t,a,s,n){this.title=o,this.productID=e,this.description=t,this.imageURI=a,this.price=s,this.priceCurrencyCode=n},PaymentsService.Purchase=function(o,e,t,a,s,n){this.developerPayload=o,this.paymentID=e,this.productID=t,this.purchaseTime=a,this.purchaseToken=s,this.signedRequest=n};function PaymentsService(t){this.service=LibUtils.ResolveService(t),void 0===this.service&&("paypal"===t?this.service=new LibPayPal:"kongregate"===t?this.service=new LibKongregate:"unity"==t&&(this.service=new LibUnity)),this.name=t,PaymentsService.instance=this,void 0!==FBInstant.ext&&void 0!==this.service&&this.service.addSupportedAPI("payments")}PaymentsService.prototype.InitPayments=function(a,e){return void 0!==this.service&&this.service.InitPayments(a,e)},PaymentsService.prototype.IsSupported=function(){return void 0!==this.service},PaymentsService.prototype.GetProducts=function(t){return void 0===this.service?void 0:this.service.GetProducts(t)},PaymentsService.prototype.PurchaseProduct=function(a,e){return void 0===this.service?void 0:this.service.PurchaseProduct(a,e)},PaymentsService.prototype.RefundProduct=function(a,e){return void 0===this.service?void 0:this.service.RefundProduct(a,e)},PaymentsService.prototype.ConsumeProduct=function(a,e){return void 0===this.service?void 0:this.service.ConsumeProduct(a,e)},PaymentsService.prototype.GetPurchases=function(t){return void 0===this.service?void 0:this.service.GetPurchases(t)};function AnalyticsService(t){this.service=LibUtils.ResolveService(t),void 0===this.service&&("google"===t?this.service=new LibGoogleAnalytics:"kongregate"===t?this.service=new LibKongregate:"unity"===t?this.service=new LibUnity:"swag"==t&&(this.service=new LibSwag)),this.name=t,AnalyticsService.instance=this,void 0!==FBInstant.ext&&void 0!==this.service&&this.service.addSupportedAPI("analytics")}AnalyticsService.prototype.InitAnalytics=function(t){return void 0!==this.service&&this.service.InitAnalytics(t)},AnalyticsService.prototype.IsSupported=function(){return void 0!==this.service},AnalyticsService.prototype.LogEvent=function(o,e,t){return void 0===this.service?null:this.service.LogEvent(o,e,t)},function(){for(var r=0,e=["ms","moz","webkit","o"],t=0;t<e.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e){var t=new Date().getTime(),o=Math.max(0,16-(t-r)),a=window.setTimeout(function(){e(t+o)},o);return r=t+o,a}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}(),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(s,e){function t(a,o){return a===o||"number"==typeof a&&"number"==typeof o&&isNaN(a)&&isNaN(o)}if(null==this)throw new TypeError("\"this\" is null or not defined");var a=Object(this),r=a.length>>>0;if(0==r)return!1;for(var o=0|e,i=Math.max(0<=o?o:r-Math.abs(o),0);i<r;){if(t(a[i],s))return!0;i++}return!1}}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(a,e){return e=!e||0>e?0:+e,this.substring(e,e+a.length)===a}}),function(r){if(!(r.visibilityState||r.webkitVisibilityState)){r.hidden=!1,r.visibilityState="visible";var e=null,s=function(){r.createEvent?(!e&&(e=r.createEvent("HTMLEvents"),e.initEvent("visibilitychange",!0,!0)),r.dispatchEvent(e)):"object"==typeof Visibility&&Visibility._change.call(Visibility,{})},o=function(){r.hidden=!1,r.visibilityState="visible",s()},a=function(){r.hidden=!0,r.visibilityState="hidden",s()};r.addEventListener?(window.addEventListener("focus",o,!0),window.addEventListener("blur",a,!0)):(r.attachEvent("onfocusin",o),r.attachEvent("onfocusout",a))}}(document),function(a){var n=-1,r={onVisible:function(o){var e=r.isSupported();if(!e||!r.hidden())return o(),e;var n=r.change(function(){r.hidden()||(r.unbind(n),o())});return n},change:function(t){if(!r.isSupported())return!1;n+=1;var e=n;return r._callbacks[e]=t,r._listen(),e},unbind:function(t){delete r._callbacks[t]},afterPrerendering:function(o){var t=r.isSupported();if(!t||"prerender"!=r.state())return o(),t;var s=r.change(function(t,a){"prerender"!=a&&(r.unbind(s),o())});return s},hidden:function(){return!!(r._doc.hidden||r._doc.webkitHidden)},state:function(){return r._doc.visibilityState||r._doc.webkitVisibilityState||"visible"},isSupported:function(){return void 0!==r._doc.hidden||void 0!==r._doc.webkitHidden},_doc:document||{},_callbacks:{},_change:function(o){var e=r.state();for(var t in r._callbacks)r._callbacks[t].call(r._doc,o,e)},_listen:function(){if(!r._init){var a="visibilitychange";r._doc.webkitVisibilityState&&(a="webkit"+a);var e=function(){r._change.apply(r,arguments)};r._doc.addEventListener?r._doc.addEventListener(a,e):r._doc.attachEvent(a,e),r._init=!0}}};"undefined"!=typeof module&&module.exports?module.exports=r:a.Visibility=r}(this),function(a){var s=-1,e=function(l){return l.every=function(t,o,i){l._time(),i||(i=o,o=null),s+=1;var d=s;return l._timers[d]={visible:t,hidden:o,callback:i},l._run(d,!1),l.isSupported()&&l._listen(),d},l.stop=function(t){return!!l._timers[t]&&(l._stop(t),delete l._timers[t],!0)},l._timers={},l._time=function(){l._timed||(l._timed=!0,l._wasHidden=l.hidden(),l.change(function(){l._stopRun(),l._wasHidden=l.hidden()}))},l._run=function(e,t){var o=l._timers[e],n;if(l.hidden()){if(null===o.hidden)return;n=o.hidden}else n=o.visible;var r=function(){o.last=new Date,o.callback.call(a)};if(t){var i=new Date,s=i-o.last;n>s?o.delay=setTimeout(function(){o.id=setInterval(r,n),r()},n-s):(o.id=setInterval(r,n),r())}else o.id=setInterval(r,n)},l._stop=function(a){var e=l._timers[a];clearInterval(e.id),clearTimeout(e.delay),delete e.id,delete e.delay},l._stopRun=function(){var o=l.hidden(),n=l._wasHidden;if(o&&!n||!o&&n)for(var r in l._timers)l._stop(r),l._run(r,!o)},l};"undefined"!=typeof module&&module.exports?module.exports=e(require("./visibility.core")):e(a.Visibility||require("./visibility.core"))}(window),"use strict";var b5={};b5.app=null,b5.data={},b5.version=1.54,function(){for(var r=0,e=["ms","moz","webkit","o"],t=0;t<e.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e){var t=new Date().getTime(),o=Math.max(0,16-(t-r)),a=window.setTimeout(function(){e(t+o)},o);return r=t+o,a}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}(),"use strict",b5.Ease=function(){},b5.Ease.linear=0,b5.Ease.quadin=1,b5.Ease.quadout=2,b5.Ease.cubicin=3,b5.Ease.cubicout=4,b5.Ease.quartin=5,b5.Ease.quartout=6,b5.Ease.sin=7,b5.Ease.sinin=7,b5.Ease.sinout=8,b5.Ease.sininout=9,b5.Ease.quadinout=10,b5.Ease.cubicinout=11,b5.Ease.quarticinout=12,b5.Ease.bouncein=13,b5.Ease.bounceout=14,b5.Ease.bounceinout=15,b5.Ease.backin=16,b5.Ease.backout=17,b5.Ease.backinout=18,b5.Ease.circin=19,b5.Ease.circout=20,b5.Ease.circinout=21,b5.Ease.expin=22,b5.Ease.expout=23,b5.Ease.expinout=24,b5.Ease.easingFuncs=[function(t){return t},function(t){return t*t},function(t){return t*(2-t)},function(t){return t*t*t},function(t){return t-=1,t*t*t+1},function(t){return t*t*t*t},function(t){return t-=1,-(t*t*t*t-1)},function(t){return 1-Math.cos(t*Math.PI/2)},function(t){return Math.sin(t*Math.PI/2)},function(t){return .5*(1-Math.cos(Math.PI*t))},function(t){return .5>t?2*t*t:-1+(4-2*t)*t},function(t){return .5>t?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},function(t){return .5>t?8*t*t*t*t:1-8*--t*t*t*t},function(t){return 1-b5.Ease.easingFuncs[b5.Ease.bounceout](1-t)},function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},function(t){return .5>t?.5*b5.Ease.easingFuncs[b5.Ease.bounceout](2*t):.5*b5.Ease.easingFuncs[b5.Ease.bounceout](2*t-1)+.5},function(a){var e=1.70158;return a*a*((e+1)*a-e)},function(a){var e=1.70158;return--a*a*((e+1)*a+e)+1},function(a){var e=1.70158*1.525;a=1>(a*=2)?.5*(a*a*((e+1)*a-e)):.5*((a-=2)*a*((e+1)*a+e)+2)},function(t){return 1-Math.sqrt(1-t*t)},function(t){return Math.sqrt(1- --t*t)},function(a){var e=Math.sqrt;a*=2,a=1>a?-.5*(e(1-a*a)-1):.5*(e(1-(a-=2)*a)+1)},function(t){return 0==t?0:Math.pow(1024,t-1)},function(t){return 1==t?t:1-Math.pow(2,-10*t)},function(a){var e=Math.pow;return 0==a?0:1==a?1:1>(a*=2)?.5*e(1024,a-1):.5*(-e(2,-10*(a-1))+2)}],"use strict",b5.Animation=function(s,e,t,o,a,n,r){this.timeline=s,this.state=b5.Animation.AS_playing,this.time=-1e-6,this.repeats_left=n,this.index=-1,this.name=null,this.target=e,this.property=t,this.frames=o,this.times=a,this.easing=r,this.repeat=n,this.destroy=!0,this.actions=[],this.time_scale=1,this.delay=-.001,this.tween=!0,this.deactivate=!1},b5.Animation.AS_playing=0,b5.Animation.AS_paused=1,b5.Animation.prototype.setRelative=function(t){this.initial_value=t?this.target[this.property]:void 0},b5.Animation.prototype.pause=function(){this.state=b5.Animation.AS_paused},b5.Animation.prototype.play=function(){this.state=b5.Animation.AS_playing},b5.Animation.prototype.restart=function(){this.state=b5.Animation.AS_playing,this.time=this.delay,this.index=-1,this.repeats_left=this.repeat},b5.Animation.prototype.update=function(t){if(this.state!==b5.Animation.AS_playing)return!1;t*=this.time_scale;var e=this.time+t,o=this.times,a=this.frames,n=o.length,r=this.index;if(0>e){var i=a[0];return void 0!==this.initial_value&&(i+=this.initial_value),this.target[this.property]=i,this.time=e,!0}if(1>=n)return!1;for(var s=r,c;s<n;s++)if(c=o[s],e<c){if(this.index=s,e>=o[0]){if(this.index!==r){var d=this.actions[this.index-1];void 0!==d&&d()}var p=o[s-1],l=a[s-1],m=e-p;if(0!=m){var i;if(this.tween){var _=c-p,u=a[s]-l;i=void 0===this.easing?l+u*m/_:l+u*b5.Ease.easingFuncs[this.easing[s-1]](m/_)}else i=l;void 0!==this.initial_value&&(i+=this.initial_value),this.target[this.property]=i}}break}var h=o[o.length-1];if(e>h){if(0<this.repeat&&this.repeats_left--,0===this.repeat||0<this.repeats_left){for(;e>=h;)e-=h;void 0!==this.onRepeat&&this.onRepeat(this);var i=a[0];void 0!==this.initial_value&&(i+=this.initial_value),this.target[this.property]=i}else{var i=a[o.length-1];void 0!==this.initial_value&&(i+=this.initial_value),this.target[this.property]=i,this.state=b5.Animation.AS_paused,this.destroy&&this.timeline.remove(this),void 0!==this.onEnd&&this.onEnd(this),this.deactivate&&(this.target._av=!1)}this.index=-1}return this.time=e,!0},b5.Animation.prototype.setTime=function(t){this.time=t,this.index=-1,this.update(0)},b5.Animation.prototype.setAction=function(a,e){this.actions[a]=e},"use strict",b5.Timeline=function(s,e,t,o,a,n){this.anims=[],this.manager=null,this.name=null,this.playing=!1,void 0!==s&&this.add(s,e,t,o,a,n)},b5.Timeline.prototype.setRelative=function(t){for(var e=this.anims,o=e.length,a=0;a<o;a++)e[a].setRelative(t)},b5.Timeline.prototype.setRepeats=function(t){for(var e=this.anims,o=e.length,a=0;a<o;a++)e[a].repeat=t,e[a].repeats_left=t},b5.Timeline.prototype.add=function(s,e,t,o,a,n){if(1==arguments.length)return s.timeline=this,this.anims.push(s),s;var r=new b5.Animation(this,s,e,t,o,a,n);return this.anims.push(r),r},b5.Timeline.prototype.remove=function(t){for(var e=this.anims,o=e.length,a=0;a<o;a++)if(e[a]===t)return void e.splice(a,1)},b5.Timeline.prototype.changeTarget=function(t){for(var e=this.anims,o=e.length,a=0;a<o;a++)e[a].target=t},b5.Timeline.prototype.find=function(t){for(var e=this.anims,o=e.length,a=0;a<o;a++)if(e[a].name===t)return e[a];return null},b5.Timeline.prototype.setDelay=function(t){for(var r=this.anims,o=r.length,a=0;a<o;a++)r[a].delay=-t,r[a].time=-t},b5.Timeline.prototype.pause=function(){for(var t=this.anims.length,e=0;e<t;e++)this.anims[e].pause()},b5.Timeline.prototype.play=function(){for(var t=this.anims.length,e=0;e<t;e++)this.anims[e].play()},b5.Timeline.prototype.restart=function(){for(var t=this.anims.length,e=0;e<t;e++)this.anims[e].restart()},b5.Timeline.prototype.print=function(){for(var t=this.anims.length,e=0;e<t;e++)console.log(this.anims[e])},b5.Timeline.prototype.update=function(t){var e=this.anims.length;if(0===e&&void 0!==this.manager)return this.manager.remove(this),!0;this.playing=!1;for(var o=e-1;0<=o;o--)this.anims[o].update(t)&&(this.playing=!0);return this.playing},"use strict",b5.TimelineManager=function(){this.timelines=[],this.playing=!1},b5.TimelineManager.prototype.add=function(t){return this.timelines.push(t),t.manager=this,t},b5.TimelineManager.prototype.remove=function(t){if(void 0===t)return void(this.timelines=[]);for(var e=this.timelines,o=e.length,a=0;a<o;a++)if(e[a]===t)return void e.splice(a,1)},b5.TimelineManager.prototype.changeTarget=function(t){for(var e=this.timelines,o=e.length,a=0;a<o;a++)e[a].changeTarget(t)},b5.TimelineManager.prototype.find=function(t){for(var e=this.timelines,o=e.length,a=0;a<o;a++)if(e[a].name===t)return e[a];return null},b5.TimelineManager.prototype.setRepeats=function(t){for(var e=this.timelines,o=e.length,a=0;a<o;a++)e[a].setRepeats(t)},b5.TimelineManager.prototype.pause=function(){for(var t=this.timelines.length,e=0;e<t;e++)this.timelines[e].pause()},b5.TimelineManager.prototype.play=function(){for(var t=this.timelines.length,e=0;e<t;e++)this.timelines[e].play()},b5.TimelineManager.prototype.restart=function(){for(var t=this.timelines.length,e=0;e<t;e++)this.timelines[e].restart()},b5.TimelineManager.prototype.print=function(){for(var t=this.timelines.length,e=0;e<t;e++)console.log(this.timelines[e])},b5.TimelineManager.prototype.update=function(t){var e=this.timelines.length;if(0===e)return!1;this.playing=!1;for(var o=e-1;0<=o;o--)this.timelines[o].update(t)&&(this.playing=!0);return this.playing},"use strict",b5.ActionsRegister={creators:[],register:function(a,e){b5.ActionsRegister.creators[a]=e},create:function(a,e){return b5.ActionsRegister.creators[a](e)}},b5.ActionsList=function(a,e){this.repeats_left=e,this.manager=null,this.name=a,this.repeat=e,this.actions=[],this.current=0,this.destroy=!0,this.playing=!1},b5.ActionsList.prototype.add=function(t){return this.actions.push(t),t.parent=this,t},b5.ActionsList.prototype.remove=function(t){for(var e=this.actions,o=e.length,a=0;a<o;a++)if(e[a]===t)return void e.splice(a,1)},b5.ActionsList.prototype.execute=function(){if(!this.playing)return!0;var a=this.actions,e=a.length;if(0===e)return!1;var t=a[this.current];return!0!==t.initialised&&(void 0!==t.onInit&&t.onInit(),t.initialised=!0),void 0!==t.onTick&&t.onTick()||(t.initialised=!1,this.current++,!(this.current>=e&&(this.current=0,0!==this.repeat&&(this.repeats_left--,0>=this.repeats_left))))||(this.playing=!1,this.repeats_left=this.repeat,!1)},b5.ActionsList.prototype.pause=function(){this.playing=!1},b5.ActionsList.prototype.play=function(){this.playing=!0},b5.ActionsList.prototype.restart=function(){for(var t=this.actions,e=t.length,o=0;o<e;o++)t[o].initialised=!1;this.repeats_left=this.repeat,this.play()},b5.ActionsListManager=function(){this.actions=[]},b5.ActionsListManager.prototype.add=function(t){return this.actions.push(t),t.manager=this,t},b5.ActionsListManager.prototype.remove=function(t){for(var e=this.actions,o=e.length,a=0;a<o;a++)if(e[a]===t)return void e.splice(a,1)},b5.ActionsListManager.prototype.find=function(t){for(var e=this.actions,o=e.length,a=0;a<o;a++)if(e[a].name===t)return e[a];return null},b5.ActionsListManager.prototype.execute=function(){for(var t=[],e=this.actions,o=e.length,a=0;a<o;a++)e[a].execute()||e[a].destroy&&t.push(e[a]);for(var a=0;a<t.length;a++)this.remove(t[a])},"use strict",b5.EventsManager=function(){this.events=[]},b5.EventsManager.prototype.on=function(a,n,r){this.events.push({name:a,func:n,data:r})},b5.EventsManager.prototype.remove=function(a){var e=this.events,t=e.length;this.events=array.filter(function(e){return e.name!==a})},b5.EventsManager.prototype.clear=function(){this.events=[]},b5.EventsManager.prototype.dispatch=function(t){for(var e=this.events,o=e.length,a=0;a<o;a++)if(e[a].name===t)return void e[a].func(e[a])},"use strict",b5.Task=function(r,e,t,o,a){this.name=r,this.func=o,this.data=a,this.state=b5.Task.Stopped,this.running_time=0,this.delay=e,this.loops=0,this.repeat=t,this.last_time=0,this.wait=0,this.pause=function(){this.state=b5.Task.Paused},this.play=function(){this.state=b5.Task.Running},this.stop=function(){this.state=b5.Task.Stopped},0===e?this.play():this.state=b5.Task.Dormant},b5.Task.Dormant=0,b5.Task.Running=1,b5.Task.Paused=2,b5.Task.Stopped=3,b5.TasksQ=function(){this.q=!0,this.tasks=[]},b5.TasksQ.prototype.add=function(s,e,t,o,a){var n=new b5.Task(s,e,t,o,a);return this.tasks.push(n),n},b5.TasksQ.prototype.removeAt=function(t){this.tasks.splice(t,1)},b5.TasksQ.prototype.remove=function(t){for(var e=this.tasks,o=e.length,a=0;a<o;a++)if(e[a].name===t)return void e.splice(a,1)},b5.TasksQ.prototype.removeTask=function(t){for(var e=this.tasks,o=e.length,a=0;a<o;a++)if(e[a]===t)return void e.splice(a,1)},b5.TasksQ.prototype.find=function(t){for(var e=this.tasks,o=e.length,a=0;a<o;a++)if(e[a].name===t)return e[a];return null},b5.TasksQ.prototype.clear=function(){this.tasks=[]},b5.TasksQ.prototype.execute=function(){var r=b5.app.dt,e=this.tasks,t=e.length;if(0===t)return 0;var o=e[0];if(o.state===b5.Task.Dormant&&(o.running_time+=r,o.running_time>=o.delay&&(o.play(),o.running_time-=r)),o.state===b5.Task.Running){var a=!0;0!==o.wait&&(o.last_time+=r,o.last_time>=o.wait?o.last_time-=o.wait:a=!1),!0==a&&(o.func(o),o.running_time+=r,0>o.delay?o.stop():0<o.repeat&&(o.loops++,o.loops>=o.repeat&&(o.stop(),void 0!==o.onComplete&&o.onComplete(this),this.removeTask(o))))}return e.length},b5.TasksManager=function(){this.tasks=[]},b5.TasksManager.prototype.add=function(s,e,t,o,a){var n=new b5.Task(s,e,t,o,a);return this.tasks.push(n),n},b5.TasksManager.prototype.removeAt=function(t){this.tasks.splice(t,1)},b5.TasksManager.prototype.remove=function(t){for(var e=this.tasks,o=e.length,a=0;a<o;a++)if(e[a].name===t)return void e.splice(a,1)},b5.TasksManager.prototype.removeTask=function(t){for(var e=this.tasks,o=e.length,a=0;a<o;a++)if(e[a]===t)return void e.splice(a,1)},b5.TasksManager.prototype.find=function(t){for(var e=this.tasks,o=e.length,a=0;a<o;a++)if(e[a].name===t)return e[a];return null},b5.TasksManager.prototype.clear=function(){this.tasks=[]},b5.TasksManager.prototype.execute=function(){for(var t=[],e=b5.app.dt,o=this.tasks,a=o.length,n=0,r;n<a;n++)if(r=o[n],r.q)0===r.execute()&&(void 0!==r.onComplete&&r.onComplete(this),t.push(r));else if(r.state===b5.Task.Dormant&&(r.running_time+=e,r.running_time>=r.delay&&(r.play(),r.running_time-=e)),r.state===b5.Task.Running){var i=!0;0!==r.wait&&(r.last_time+=e,r.last_time>=r.wait?r.last_time-=r.wait:i=!1),i&&(r.func(r),r.running_time+=e,0>r.delay?r.stop():0<r.repeat&&(r.loops++,r.loops>=r.repeat&&(t.push(r),r.stop(),void 0!==r.onComplete&&r.onComplete(this))))}for(var n=0;n<t.length;n++)this.removeTask(t[n])},"use strict",b5.Actor=function(t){this.type=b5.Actor.Type_Image,this.scene=null,this.parent=null,this.actors=[],this.removals=[],this.joints=[],this.timelines=new b5.TimelineManager,void 0!==b5.ActionsListManager&&(this.actions=new b5.ActionsListManager),this.tasks=new b5.TasksManager,this.frame_count=0,this.accum_scale_x=1,this.accum_scale_y=1,this.accum_opacity=1,this.body=null,this.transform=[],this.transform_dirty=!0,this.layout_dirty=!0,this.touch_et=null,this.touching=!1,this.touchmove=!1,this.layer=0,this.order_changed=!0,this.cache_canvas=null,this.name="",this.tag="",this.id=-1,this.active=!0,this.visible=!0,this.touchable=!1,this.hit=!0,this.x=0,this.y=0,this.x2=0,this.y2=0,this.w=0,this.h=0,this.ox=0,this.oy=0,this.ignore_atlas_size=!1,this.absolute_origin=!0,this.rotation=0,this.scale_x=1,this.scale_y=1,this.depth=0,this.opacity=1,this.use_parent_opacity=!0,this.current_frame=0,this.prev_frame=0,this.frame_speed=0,this.anim_frames=null,this.frames_repeat=!1,this.bitmap=null,this.atlas=null,this.vr=0,this.vx=0,this.vy=0,this.vd=0,this.vr_damping=1,this.vx_damping=1,this.vy_damping=1,this.vd_damping=1,this.ignore_camera=!1,this.wrap_position=!1,this.dock_x=0,this.dock_y=0,this.dock_screen=!1,this.margin=[0,0,0,0],this.bubbling=!1,this.clip_children=!1,this.clip_margin=[0,0,0,0],this.clip_shape=null,this.self_clip=!1,this.orphaned=!1,this.virtual=!1,this.stacking=0,this.clip_virtual=!0,this.shadow=!1,this.shadow_x=0,this.shadow_y=0,this.shadow_blur=0,this.shadow_colour="#000000",this.composite_op=null,this.cache=!1,this.cached=!1,this.merge_cache=!1,this.round_pixels=!1,this.padding=0,this.scale_method=0,this.draw_reverse=!1,!0===t&&this.makeVirtual()},b5.Actor.FitNone=0,b5.Actor.FitPP=1,b5.Actor.FitX=2,b5.Actor.FitY=3,b5.Actor.FitBest=4,b5.Actor.FitAverage=5,b5.Actor.FitGreatest=6,b5.Actor.FitSmallest=7,b5.Actor.FitSize=8,b5.Actor.FitBest2=9,b5.Actor.Dock_None=0,b5.Actor.Dock_Top=1,b5.Actor.Dock_Bottom=2,b5.Actor.Dock_Middle=3,b5.Actor.Dock_Left=1,b5.Actor.Dock_Right=2,b5.Actor.Dock_Centre=3,b5.Actor.Type_Image=0,b5.Actor.Type_Label=1,b5.Actor.Type_Rect=2,b5.Actor.Type_Arc=3,b5.Actor.Type_Polygon=4,b5.Actor.Type_Particle=5,b5.Actor.Type_Map=6,b5.Actor.Stack_None=0,b5.Actor.Stack_H=1,b5.Actor.Stack_V=2,Object.defineProperty(b5.Actor.prototype,"_x",{get:function(){return this.x},set:function(t){this.x!==t&&(this.x=t,this.dirty())}}),Object.defineProperty(b5.Actor.prototype,"_y",{get:function(){return this.y},set:function(t){this.y!==t&&(this.y=t,this.dirty())}}),Object.defineProperty(b5.Actor.prototype,"_x2",{get:function(){return this.x2},set:function(t){this.x2!==t&&(this.x2=t,this.dirty())}}),Object.defineProperty(b5.Actor.prototype,"_y2",{get:function(){return this.y2},set:function(t){this.y2!==t&&(this.y2=t,this.dirty())}}),Object.defineProperty(b5.Actor.prototype,"_ox",{get:function(){return this.ox},set:function(t){this.ox!==t&&(this.ox=t,this.dirty())}}),Object.defineProperty(b5.Actor.prototype,"_oy",{get:function(){return this.oy},set:function(t){this.oy!==t&&(this.oy=t,this.dirty())}}),Object.defineProperty(b5.Actor.prototype,"_rotation",{get:function(){return this.rotation},set:function(t){this.rotation!==t&&(this.rotation=t,this.dirty())}}),Object.defineProperty(b5.Actor.prototype,"_scale_x",{get:function(){return this.scale_x},set:function(t){this.scale_x!==t&&(this.scale_x=t,this.dirty())}}),Object.defineProperty(b5.Actor.prototype,"_scale_y",{get:function(){return this.scale_y},set:function(t){this.scale_y!==t&&(this.scale_y=t,this.dirty())}}),Object.defineProperty(b5.Actor.prototype,"_scale",{set:function(t){this._scale_x=t,this._scale_y=t,this.dirty()}}),Object.defineProperty(b5.Actor.prototype,"_depth",{get:function(){return this.depth},set:function(t){this.depth!==t&&(this.depth=t,this.dirty())}}),Object.defineProperty(b5.Actor.prototype,"_layer",{get:function(){return this.layer},set:function(t){this.layer!==t&&(this.layer=t,null===this.parent?this.scene.order_changed=!0:this.parent.order_changed=!0)}}),Object.defineProperty(b5.Actor.prototype,"_atlas",{get:function(){return this.atlas},set:function(t){if(this.atlas!==t){if(null===t)return void(this.atlas=null);this.atlas=b5.Utils.resolveResource(t,"brush"),this.ignore_atlas_size||(this.ow=this.atlas.frames[0].w,this.oh=this.atlas.frames[0].h)}}}),Object.defineProperty(b5.Actor.prototype,"_bitmap",{get:function(){return this.bitmap},set:function(t){this.bitmap!==t&&(this.atlas=null,this.bitmap=b5.Utils.resolveResource(t,"bitmap"))}}),Object.defineProperty(b5.Actor.prototype,"_clip_shape",{get:function(){return this.clip_shape},set:function(t){this.clip_shape!==t&&(this.clip_shape=b5.Utils.resolveResource(t,"shape"))}}),Object.defineProperty(b5.Actor.prototype,"_av",{set:function(t){t!==this.visible&&void 0!==this.onAVChanged&&this.onAVChanged(t),this.visible=t,this.active=t,this.setBodyActive(this.active)}}),b5.Actor.prototype.setBodyActive=function(t){null!==this.body&&this.body.SetActive(t);for(var e=this.actors,o=e.length,a=0;a<o;a++)e[a].setBodyActive(t)},b5.Actor.prototype.setPosition=function(n,e){if((this.x!==n||this.y!==e)&&(this.x=n,this.y=e,this.dirty(),null!==this.body)){var t=Box2D.Common.Math.b2Vec2,o=this.scene.world_scale;this.body.SetPosition(new t(n/o,e/o))}},b5.Actor.prototype.setPositionPhysics=function(a,e){this.setPosition(a,e)},b5.Actor.prototype.setSize=function(a,e){(this.w!==a||this.h!==e)&&(this.ignore_atlas_size=!0,this.w=a,this.h=e,this.dirty(),this.virtual&&(this.layout_dirty=!0,this.Virtual_updateLayout(!0)))},b5.Actor.prototype.setOrigin=function(a,e){(this.ox!==a||this.oy!==e)&&(this.ox=a,this.oy=e,this.dirty())},b5.Actor.prototype.setScale=function(a,e){(this.scale_x!==a||this.scale_y!==e)&&(this.scale_x=a,this.scale_y=e,this.dirty())},b5.Actor.prototype.setRotation=function(t){this.rotation!==t&&(this.rotation=t,this.dirty(),null!==this.body&&this.body.SetAngle(t))},b5.Actor.prototype.setRotationPhysics=function(t){this.setRotation(t)},b5.Actor.prototype.setDepth=function(t){this.depth!==t&&(this.depth=t,this.dirty())},b5.Actor.prototype.playAnim=function(a,e){if(this.active||(this._av=!0),null!==this.atlas){var t=this.atlas.getAnim(a);null===t?this.app.debug&&console.log("Warning: Could not find brush anim '"+a+"' for actor '"+this.name+"'"):(this.current_frame=0,this.anim_frames=t.indices,this.frame_speed=t.speed,this.frames_repeat=e,this.dirty())}},b5.Actor.prototype.playTimeline=function(t,e){var o=this.timelines.find(t);if(null!==o&&(!this.active&&(this._av=!0),o.restart(),o.update(0)),e)for(var a=this.actors,n=a.length,r=0;r<n;r++)a[r].playTimeline(t,e);return o},b5.Actor.prototype.TweenTo=function(s,e,t,o,a,n){!0===a&&this.timelines.remove();var r=new b5.Timeline(this,s,[this[s],e],[0,t],1,[o]);return void 0!==n&&r.setDelay(n),this.timelines.add(r),r},b5.Actor.prototype.TweenToWithEnd=function(l,e,t,o,a,n,r){var i=this.TweenTo(l,e,t,o,a,n);return null!=r&&(i.anims[0].onEnd=r),i},b5.Actor.prototype.TweenToMany=function(t){for(var e=0;e<t.length;e++){var o=t[e],a=0===e&&o.wipe;this.TweenToWithEnd(o.property,o.to,o.duration,o.easing,a,o.delay,o.onend)}},b5.Actor.prototype.TweenFrom=function(r,e,t,o,a){!0===a&&this.timelines.remove(),this.timelines.add(new b5.Timeline(this,r,[e,this[r]],[0,t],1,[o]))},b5.Actor.prototype.addTask=function(r,e,t,o,a){this.tasks.add(r,e,t,o,a)},b5.Actor.prototype.removeTask=function(t){this.tasks.remove(t)},b5.Actor.prototype.release=function(){for(var t=0;t<this.actors.length;t++)this.actors[t].release();void 0!==this.onDestroy&&this.onDestroy(),this.releaseJoints(),this.releaseBody()},b5.Actor.prototype.destroy=function(){null===this.parent?null!==this.scene&&this.scene.removeActor(this):this.parent.removeActor(this)},b5.Actor.prototype.changeParent=function(t){for(var e=null===this.parent?this.scene.actors:this.parent.actors,o=e.length,a=0;a<o;a++)if(this===e[a]){e.splice(a,1),t.addActor(this);break}},b5.Actor.prototype.addActor=function(t){return null===this.scene&&(this.scene=b5.app.focus_scene),this.actors.push(t),t.parent=this,t.scene=this.scene,this.layout_dirty=!0,t},b5.Actor.prototype.removeActor=function(t){this.removals.push(t),this.layout_dirty=!0},b5.Actor.prototype.removeActorsWithTag=function(t){for(var e=this.actors,o=e.length,a=0,n=this.removals,r=0;r<o;r++)e[r].tag===t&&(n.push(e[r]),a++);return this.layout_dirty=!0,a},b5.Actor.prototype.removeAllActors=function(){for(var t=this.actors,e=t.length,o=this.removals,a=0;a<e;a++)o.push(t[a]);this.layout_dirty=!0},b5.Actor.prototype.cleanupDestroyedActors=function(){var t=this.removals.length;if(0<t)for(var e=this.removals,o=this.actors,a=o.length,n=0,r;n<t;n++){r=e[n];for(var s=0;s<a;s++)if(r===o[s]){r.release(),o.splice(s,1),a--;break}}this.removals=[]},b5.Actor.prototype.findActor=function(t,e){void 0===e&&(e=!1);for(var o=this.actors,a=o.length,n=0;n<a;n++){if(o[n].name===t)return o[n];if(e){var r=o[n].findActor(t,e);if(null!==r)return r}}return null},b5.Actor.prototype.findActorById=function(t,e){void 0===e&&(e=!1);for(var o=this.actors,a=o.length,n=0;n<a;n++){if(o[n].id===t)return o[n];if(e){var r=o[n].findActorById(t,e);if(null!==r)return r}}return null},b5.Actor.prototype.findFirstParent=function(){for(var t=this;null!==t;){if(null===t.parent)return t;t=t.parent}return null},b5.Actor.prototype.findFirstCachedParent=function(){for(var t=this.parent;null!==t;){if(null!==t.cache_canvas)return t;t=t.parent}return null},b5.Actor.prototype.updateParentTransforms=function(){for(var t=[],e=this;null!==e;)t.push(e),e=e.parent;for(var o=t.length-1;0<=o;o--)t[o].updateTransform()},b5.Actor.prototype.getSlot=function(){for(var t=null===this.parent?this.scene.actors:this.parent.actors,e=t.length,o=0;o<e;o++)if(t[o]===this)return o},b5.Actor.prototype.moveToSlot=function(a){var e=null===this.parent?this.scene.actors:this.parent.actors,t=this.getSlot();t===a||(e.splice(a,0,this),a<t&&t++,e.splice(t,1))},b5.Actor.prototype.bringToFront=function(){for(var t=null===this.parent?this.scene.actors:this.parent.actors,e=t.length,o=-1,a=0;a<e;a++)if(t[a]===this){o=a;break}0<=o&&(t.splice(o,1),t.push(this))},b5.Actor.prototype.sendToBack=function(){for(var t=null===this.parent?this.scene.actors:this.parent.actors,e=t.length,o=-1,a=0;a<e;a++)if(t[a]===this){o=a;break}0<=o&&(t.splice(o,1),t.unshift(this))},b5.Actor.prototype.onBeginTouchBase=function(t){this.touching=!0,this.bubbling&&null!==this.parent&&this.parent.onBeginTouchBase(t),void 0!==this.onBeginTouch&&this.onBeginTouch(t)},b5.Actor.prototype.onEndTouchBase=function(a){if(this.touching&&void 0!==this.onTapped&&(this.onTapped(a),void 0!==this.onDblTapped))if(null===this.touch_et)this.touch_et=Date.now();else{var e=Date.now(),t=e-this.touch_et;500>t&&this.onDblTapped(a),this.touch_et=e}this.touching=!1,this.touchmove=!1,this.bubbling&&null!==this.parent&&this.parent.onEndTouchBase(a),void 0!==this.onEndTouch&&this.onEndTouch(a)},b5.Actor.prototype.onMoveTouchBase=function(t){this.touching&&(this.touchmove=!0),this.bubbling&&null!==this.parent&&this.parent.onMoveTouchBase(t),this.virtual&&this.Virtual_onMoveTouch(t),void 0!==this.onMoveTouch&&this.onMoveTouch(t)},b5.Actor.prototype.releaseBody=function(){null!==this.body&&(this.scene.world.DestroyBody(this.body),this.body=null)},b5.Actor.prototype.releaseJoints=function(){if(null!==this.body){for(var t=0;t<this.joints.length;t++)this.scene.world.DestroyJoint(this.joints[t]);this.joints=null}},b5.Actor.prototype.initBody=function(s,e,t){if(!this.scene.app.box2d)return null;var o=this.scene,a=new Box2D.Dynamics.b2BodyDef,n=o.world_scale;return a.type="static"===s?Box2D.Dynamics.b2Body.b2_staticBody:"kinematic"===s?Box2D.Dynamics.b2Body.b2_kinematicBody:Box2D.Dynamics.b2Body.b2_dynamicBody,a.position.Set(this.x/n,this.y/n),a.angle=this.rotation,a.fixedRotation=e,a.bullet=t,this.body=o.world.CreateBody(a),this.body.SetUserData(this),this.body},b5.Actor.prototype.addFixture=function(t){if(null===this.body)return null;var e=t,o=t,a;void 0!==t.shape&&(e=t.shape),void 0!==t.material&&(o=t.material);var n=this.scene.world_scale,r=this.scale_x,s=this.scale_y,i=Box2D.Common.Math.b2Vec2;if(e.type===b5.Shape.TypeBox){a=new Box2D.Dynamics.b2FixtureDef,a.shape=new Box2D.Collision.Shapes.b2PolygonShape;var d=e.width/(2*n)*r,c=e.height/(2*n)*s;a.shape.SetAsOrientedBox(d,c,new i(e.width/n*this.ox,e.height/n*this.oy),0)}else if(e.type===b5.Shape.TypeCircle)a=new Box2D.Dynamics.b2FixtureDef,a.shape=new Box2D.Collision.Shapes.b2CircleShape(e.width/n*r);else if(e.type===b5.Shape.TypePolygon){if(void 0!==e.convexVertices&&0<e.convexVertices.length){for(var l=[],p=e.convexVertices.length,_=0;_<p;_++){a=new Box2D.Dynamics.b2FixtureDef,a.shape=new Box2D.Collision.Shapes.b2PolygonShape;for(var u=e.convexVertices[_],h=[],g=u.length,m=0;m<g;m+=2)h.push({x:u[m]/n*r,y:u[m+1]/n*s});a.shape.SetAsArray(h,h.length),void 0!==o.density&&(a.density=o.density),void 0!==o.friction&&(a.friction=o.friction),void 0!==o.restitution&&(a.restitution=o.restitution),void 0!==t.is_sensor&&(a.isSensor=t.is_sensor),void 0!==t.collision_category&&(a.filter.categoryBits=t.collision_category),void 0!==t.collision_mask&&(a.filter.maskBits=t.collision_mask),void 0!==t.collision_group&&(a.filter.groupIndex=t.collision_group),l.push(this.body.CreateFixture(a))}return l}a=new Box2D.Dynamics.b2FixtureDef,a.shape=new Box2D.Collision.Shapes.b2PolygonShape;for(var u=e.vertices,h=[],g=u.length,m=0;m<g;m+=2)h.push({x:u[m]/n*r,y:u[m+1]/n*s});a.shape.SetAsArray(h,h.length)}return void 0!==o.density&&(a.density=o.density),void 0!==o.friction&&(a.friction=o.friction),void 0!==o.restitution&&(a.restitution=o.restitution),void 0!==o.is_sensor&&(a.isSensor=o.is_sensor),void 0!==t.collision_category&&(a.filter.categoryBits=t.collision_category),void 0!==t.collision_mask&&(a.filter.maskBits=t.collision_mask),void 0!==t.collision_group&&(a.filter.groupIndex=t.collision_group),this.body.CreateFixture(a)},b5.Actor.prototype.addJoint=function(g){var e=Math.PI;if(null===this.body)return null;var t=this.scene,o=t.world,a=t.world_scale,n=Box2D.Common.Math.b2Vec2,r=this.body,i=g.actor_b.body,s=r.GetWorldCenter(),c=i.GetWorldCenter(),d=new n(s.x,s.y),p;d.x+=g.anchor_a.x/a,d.y+=g.anchor_a.y/a;var l=new n(c.x,c.y);if(l.x+=g.anchor_b.x/a,l.y+=g.anchor_b.y/a,"weld"===g.type)p=new Box2D.Dynamics.Joints.b2WeldJointDef,p.Initialize(r,i,d),p.collideConnected=g.self_collide;else if("distance"===g.type)p=new Box2D.Dynamics.Joints.b2DistanceJointDef,p.Initialize(r,i,d,l),p.collideConnected=g.self_collide,p.frequencyHz=g.frequency,p.dampingRatio=g.damping;else if("revolute"===g.type)p=new Box2D.Dynamics.Joints.b2RevoluteJointDef,p.Initialize(r,i,d),p.collideConnected=g.self_collide,g.limit_joint&&(p.enableLimit=!0,p.lowerAngle=g.lower_limit*(e/180),p.upperAngle=g.upper_limit*(e/180)),g.motor_enabled&&(p.enableMotor=!0,p.motorSpeed=g.motor_speed,p.maxMotorTorque=g.max_motor_torque);else if("prismatic"===g.type)p=new Box2D.Dynamics.Joints.b2PrismaticJointDef,p.Initialize(r,i,d,new n(g.axis.x,g.axis.y)),p.collideConnected=g.self_collide,g.limit_joint&&(p.enableLimit=!0,p.lowerTranslation=g.lower_limit/a,p.upperTranslation=g.upper_limit/a),g.motor_enabled&&(p.enableMotor=!0,p.motorSpeed=g.motor_speed,p.maxMotorForce=g.max_motor_force);else if("pulley"===g.type){var m=new n(s.x,s.y);m.x+=g.ground_a.x/a,m.y+=g.ground_a.y/a;var _=new n(c.x,c.y);_.x+=g.ground_b.x/a,_.y+=g.ground_b.y/a,p=new Box2D.Dynamics.Joints.b2PulleyJointDef,p.Initialize(r,i,m,_,d,l,g.ratio),p.collideConnected=g.self_collide}else"wheel"===g.type?(p=new Box2D.Dynamics.Joints.b2LineJointDef,p.Initialize(r,i,d,g.axis),p.collideConnected=g.self_collide,g.limit_joint&&(p.enableLimit=!0,p.lowerTranslation=g.lower_limit/a,p.upperTranslation=g.upper_limit/a),g.motor_enabled&&(p.enableMotor=!0,p.motorSpeed=g.motor_speed,p.maxMotorForce=g.max_motor_force)):"mouse"===g.type&&(p=new Box2D.Dynamics.Joints.b2MouseJointDef,p.collideConnected=g.self_collide,p.bodyA=r,p.bodyB=i,p.collideConnected=g.self_collide,p.maxForce=g.max_motor_force,p.dampingRatio=g.damping);var u=o.CreateJoint(p);return this.joints.push(u),u},b5.Actor.prototype.removeJoint=function(t){for(var e=this.joints,o=e.length,a=0;a<o;a++)if(e[a]===t)return world.DestroyJoint(t),void e.splice(a,1)},b5.Actor.prototype.getScaleFromMethod=function(l){var e=b5.app,t=e.global_scale,d=e.global_scale;if(!e.disable_dock_screen){var p=l;if(p!==b5.Actor.FitNone){var n=1/e.canvas_scale,r=e.inner_width/e.design_width*n,i=e.inner_height/e.design_height*n;if(p===b5.Actor.FitBest)r>i?(t*=r,d*=r):(t*=i,d*=i);else if(p===b5.Actor.FitBest2)r<i?(t*=r,d*=r):(t*=i,d*=i);else if(p===b5.Actor.FitX)t*=r,d*=r;else if(p===b5.Actor.FitY)t*=i,d*=i;else if(p===b5.Actor.FitAverage){var s=.5*(r+i);t*=s,d*=s}else if(p===b5.Actor.FitGreatest){var s;s=e.inner_width>e.inner_height?r:i,t*=s,d*=s}else if(p===b5.Actor.FitSmallest){var s;s=e.inner_width<e.inner_height?r:i,t*=s,d*=s}else p===b5.Actor.FitSize?(t*=r,d*=i):p===b5.Actor.FitPP&&(t*=n,d*=n)}}return{x:t,y:d}},b5.Actor.prototype.updateTransform=function(){if(this.transform_dirty){var m=this.transform,e=this.scene,t=this.rotation,o=this.scale_x,a=this.scale_y,n=this.x+this.x2,r=this.y+this.y2;null===this.parent&&(o*=e.scale,a*=e.scale);var i=this.scale_method;if(0!==i){var c=this.getScaleFromMethod(i);o*=c.x,a*=c.y}var d=this.parent;null===d||this.orphaned?(this.accum_scale_x=o,this.accum_scale_y=a):(this.accum_scale_x=o*d.accum_scale_x,this.accum_scale_y=a*d.accum_scale_y);var s=Math.cos(t),p=Math.sin(t);if(0!==this.depth&&1!==this.depth){var T=1/this.depth;o*=T,a*=T,m[4]=(n-e.camera_x)*T,m[5]=(r-e.camera_y)*T}else this.transform_dirty=!1,m[4]=n,m[5]=r;m[0]=s*o,m[1]=p*o,m[2]=-p*a,m[3]=s*a;var y=null,_=this.atlas;null!==_&&(null===this.anim_frames?y=_.getFrame(0|this.current_frame):y=_.getFrame(this.anim_frames[0|this.current_frame]));var u=this.ox,h=this.oy;(0!==u||0!==h||null!==y)&&(!this.absolute_origin&&(u*=this.ow,h*=this.oh),null!==y&&(u-=y.ox,h-=y.oy),m[4]+=u*m[0]+h*m[2],m[5]+=u*m[1]+h*m[3]),null===d||this.orphaned||b5.Maths.mulMatrix(m,d.transform)}},b5.Actor.prototype.drawChildren=function(t){var e=this.actors.length,o=0;if(0<e){var a=this.actors;if(this.draw_reverse)for(var n=e-1,r;0<=n;n--)r=a[n].layer,t?0<=r&&(a[n].draw(),o++):0>r&&(a[n].draw(),o++);else for(var n=0,r;n<e;n++)r=a[n].layer,t?0<=r&&(a[n].draw(),o++):0>r&&(a[n].draw(),o++)}return o===e},b5.Actor.prototype.draw=function(){if(this.visible){if(this.cache&&(this.drawToCache(),this.cache=!1),this.merge_cache)return this.drawChildren(!1),void this.drawChildren(!0);var T=this.cache_canvas,e=this.scene,t=e.app,o=t.canvas_scale,a=t.display,n=b5.app.pixel_ratio;null===T&&(n=1);var r=null;if(null===T){var i=this.atlas;null!==i&&(r=null===this.anim_frames?i.getFrame(0|this.current_frame):i.getFrame(this.anim_frames[0|this.current_frame]),!this.ignore_atlas_size&&(this.w=r.w,this.h=r.h),(0|this.prev_frame)!=(0|this.current_frame)&&this.dirty(),this.prev_frame=this.current_frame)}var s=t.canvas_cx+e.x*o/n,c=t.canvas_cy+e.y*o/n;void 0===this.ow&&(this.ow=this.w,this.oh=this.h);var d=this.ow/2,A=this.oh/2;this.ignore_camera||0!==this.depth&&1!==this.depth||(s-=e.camera_x*o,c-=e.camera_y*o),this.updateTransform();var S=this.drawChildren(!1);this.preDraw();var y=this.self_clip,b=this.clip_children,u=this.transform,h=u[4]*o+s,g=u[5]*o+c;this.round_pixels&&(d=0|d+.5,A=0|A+.5,h=0|h+.5,g=0|g+.5),a.setTransform(u[0]*o,u[1]*o,u[2]*o,u[3]*o,h,g),y&&this.setClipping(0,0),null===T?null===i?null!==this.bitmap&&a.drawImage(this.bitmap.image,-d,-A,this.w,this.h):a.drawAtlasImage(i.bitmap.image,r.x,r.y,r.w,r.h,-d,-A,this.w+1,this.h+1):a.drawImage(T,-T.width>>1,-T.height>>1),this.postDraw(),b?!y&&this.setClipping(-d,-A):y&&a.restoreContext(),S||this.drawChildren(!0),b&&a.restoreContext()}},b5.Actor.prototype.enableCache=function(t){this.cache=!0,this.cached=!0,this.merge_cache=t},b5.Actor.prototype.resetCache=function(){if(this.cached){this.cache=!0;var t=this.actors.length;if(0<t)for(var e=this.actors,o=0;o<t;o++)e[o].resetCache()}},b5.Actor.prototype.drawToCache=function(){var m=b5.app.display,e=null,t=null;if(this.merge_cache){var t=this.findFirstCachedParent();null!==t&&(e=t.cache_canvas)}var o=null,a=this.atlas;null!==a&&(null===this.anim_frames?o=a.getFrame(this.current_frame<<0):o=a.getFrame(this.anim_frames[this.current_frame<<0]));var n=b5.app.pixel_ratio;null===e&&(e=m.createCache(),e.width=0|this.ow*n,e.height=0|this.oh*n),m.setCache(e);var i=this.ow/2,T=this.oh/2,A=this.scene,d=[],p=this.rotation,l=Math.cos(p),r=Math.sin(p),S=1/n,_=this.scale_x,u=this.scale_y;d[0]=l*_,d[1]=r*_,d[2]=-r*u,d[3]=l*u,d[4]=this.x+e.width/2-this.ox*this.ow,d[5]=this.y+e.height/2-this.oy*this.oh;var h=[1,0,0,1,this.ox*this.ow,this.oy*this.oh];b5.Maths.preMulMatrix(d,h),this.self_clip&&(m.setTransform(1,0,0,1,0,0),this.setClipping(d[4],d[5])),this.preDrawCached(),m.setTransform(d[0]*S,d[1]*S,d[2]*S,d[3]*S,d[4],d[5]),null===a?null!==this.bitmap&&m.drawImage(this.bitmap.image,-i,-T,this.w,this.h):m.drawAtlasImage(a.bitmap.image,o.x,o.y,o.w,o.h,-i,-T,this.w,this.h),this.postDrawCached(),this.self_clip&&m.restoreContext(),m.setCache(null),this.cached&&!this.merge_cache&&(this.cache_canvas=e)},b5.Actor.prototype.preDraw=function(){var t=b5.app.display;this.accum_opacity=null!==this.parent&&this.use_parent_opacity?this.parent.accum_opacity*this.opacity:this.opacity*this.scene.opacity,this.type===b5.Actor.Type_Image?t.setGlobalAlpha(this.accum_opacity):t.setGlobalAlpha(1),this.shadow&&t.setShadow(this.shadow_x,this.shadow_y,this.shadow_colour,this.shadow_blur),null!==this.composite_op&&t.setGlobalCompositeOp(this.composite_op)},b5.Actor.prototype.postDraw=function(){var t=b5.app.display;this.shadow&&t.setShadowOff(),null!==this.composite_op&&t.setGlobalCompositeOp("source-over")},b5.Actor.prototype.preDrawCached=function(){var t=b5.app.display;this.shadow&&t.setShadow(this.shadow_x,this.shadow_y,this.shadow_colour,this.shadow_blur),null!==this.composite_op&&t.setGlobalCompositeOp(this.composite_op)},b5.Actor.prototype.postDrawCached=function(){var t=b5.app.display;this.shadow&&t.setShadowOff(),null!==this.composite_op&&t.setGlobalCompositeOp("source-over")},b5.Actor.prototype.baseUpdate=function(t){if(this.active){void 0!==this.onTick&&this.onTick(t),this.timelines.update(t),void 0!==this.actions&&this.actions.execute(),this.tasks.execute(),this.virtual&&this.Virtual_update(t);var e=this.scene;if(null!==this.atlas){this.current_frame+=this.frame_speed*t;var o;if(o=null===this.anim_frames?this.atlas.getMaxFrames():this.anim_frames.length,!this.frames_repeat)this.current_frame>=o?(void 0!==this.onAnimEnd&&this.onAnimEnd(),this.current_frame=o-1):0>this.current_frame&&(void 0!==this.onAnimEnd&&this.onAnimEnd(),this.current_frame=0);else if(0>this.current_frame)for(;0>this.current_frame;)this.current_frame+=o;else for(;this.current_frame>=o;)this.current_frame-=o}var a=this.x,n=this.y,r=this.body;if(null!==r){var s=r.GetPosition(),i=e.world_scale;this.setRotation(r.GetAngle()),this.setPosition(s.x*i,s.y*i)}else this.rotation+=this.vr*t,this.vr*=this.vr_damping,this.x+=this.vx*t,this.vx*=this.vx_damping,this.y+=this.vy*t,this.vy*=this.vy_damping;if(0!==this.vd&&(this.depth+=this.vd*t,this.vd*=this.vd_damping),this.wrap_position){var d=e.extents[0],c=d+e.extents[2],l=e.extents[1],p=l+e.extents[3];this.x<d?this.x=c:this.x>c&&(this.x=d),this.y<l?this.y=p:this.y>p&&(this.y=l)}if(null===this.parent||!this.parent.virtual)if(this.dock_screen&&!b5.app.disable_dock_screen){var _=this.scale_method,u=1,h=1;if(0!==_){var g=this.getScaleFromMethod(_);u=g.x,h=g.y}if(0!==this.dock_x){var g=this.getScaleFromMethod(2);this.dock_x===b5.Actor.Dock_Left?this.x=-e.w*g.x/2+(this.w+2*this.margin[0])*this.scale_x*u/2:this.dock_x===b5.Actor.Dock_Right?this.x=e.w*g.x/2-(this.w+2*this.margin[1])*this.scale_x*u/2:this.dock_x===b5.Actor.Dock_Centre&&(this.x=(this.w+2*this.margin[0])*this.scale_x*u/2)}if(0!==this.dock_y){var g=this.getScaleFromMethod(3);this.dock_y===b5.Actor.Dock_Top?this.y=-e.h*g.y/2+(this.h+2*this.margin[2])*this.scale_y*h/2:this.dock_y===b5.Actor.Dock_Bottom?this.y=e.h*g.y/2-(this.h+2*this.margin[3])*this.scale_y*h/2:this.dock_y===b5.Actor.Dock_Middle&&(this.y=(this.h+2*this.margin[2])*this.scale_y*h/2)}}else 0!==this.dock_x&&(this.dock_x===b5.Actor.Dock_Left?this.x=-e.w/2+this.w*this.scale_x/2+this.margin[0]:this.dock_x===b5.Actor.Dock_Right?this.x=e.w/2-this.w*this.scale_x/2+this.margin[1]:this.dock_x===b5.Actor.Dock_Centre&&(this.x=this.w*this.scale_x/2+this.margin[0])),0!==this.dock_y&&(this.dock_y===b5.Actor.Dock_Top?this.y=-e.h/2+this.h*this.scale_y/2+this.margin[2]:this.dock_y===b5.Actor.Dock_Bottom?this.y=e.h/2-this.h*this.scale_y/2+this.margin[3]:this.dock_y===b5.Actor.Dock_Middle&&(this.y=this.h*this.scale_y/2+this.margin[2]));(this.x!==a||this.y!==n||null===r&&0!==this.vr)&&this.dirty();var m=this.actors.length;if(0<m)for(var T=this.actors,y=0;y<m;y++)T[y].update(t);this.cleanupDestroyedActors(),this.order_changed&&(this.order_changed=!1,b5.Utils.sortLayers(this.actors)),this.frame_count++}},b5.Actor.prototype.update=function(t){this.baseUpdate(t)},b5.Actor.prototype.updateToPhysics=function(){if(null!==this.body){var t=Box2D.Common.Math.b2Vec2;this.body.SetLinearVelocity(new t(this.vx,this.vy)),this.body.SetAngularVelocity(this.vr),this.body.SetAwake(!0)}},b5.Actor.prototype.dirty=function(){this.transform_dirty=!0;for(var t=this.actors,e=t.length,o=0;o<e;o++)t[o].dirty()},b5.Actor.prototype.makeVirtual=function(){this.prev_scroll_pos_x=0,this.prev_scroll_pos_y=0,this.scroll_pos_x=0,this.scroll_pos_y=0,this.scroll_vx=0,this.scroll_vy=0,this.scroll_range=[0,0,0,0],this.virtual=!0},b5.Actor.prototype.Virtual_onMoveTouch=function(){if(this.touching&&(0!==this.scroll_range[2]||0!==this.scroll_range[3])){var t=this.scene.app;this.prev_scroll_pos_x=this.scroll_pos_x,this.prev_scroll_pos_y=this.scroll_pos_y,this.scroll_vx=t.touch_drag_x,this.scroll_pos_x+=t.touch_drag_x,this.scroll_vy=t.touch_drag_y,this.scroll_pos_y+=t.touch_drag_y,(0!==this.scroll_vx||0!==this.scroll_vy)&&(this.Virtual_scrollRangeCheck(),this.layout_dirty=!0,this.Virtual_updateLayout())}},b5.Actor.prototype.Virtual_update=function(){this.touching||(this.prev_scroll_pos_x=this.scroll_pos_x,this.prev_scroll_pos_y=this.scroll_pos_y,this.scroll_pos_x+=this.scroll_vx,this.scroll_pos_y+=this.scroll_vy,(0!==this.scroll_vx||0!==this.scroll_vy)&&(this.Virtual_scrollRangeCheck(),this.layout_dirty=!0,this.Virtual_updateLayout()),this.scroll_vx*=.9,this.scroll_vy*=.9,-.5<this.scroll_vx&&.5>this.scroll_vx&&(this.scroll_vx=0),-.5<this.scroll_vy&&.5>this.scroll_vy&&(this.scroll_vy=0))},b5.Actor.prototype.Virtual_scrollRangeCheck=function(){var s=this.scroll_pos_x,e=this.scroll_pos_y,t=-this.scroll_range[0],o=t-this.scroll_range[2],a=-this.scroll_range[1],n=a-this.scroll_range[3];s<o?(s=o,this.scroll_vx=0):s>t&&(s=t,this.scroll_vx=0),e<n?(e=n,this.scroll_vy=0):e>a&&(e=a,this.scroll_vy=0),this.scroll_pos_x=s,this.scroll_pos_y=e},b5.Actor.prototype.Virtual_clipLayout=function(s,e,i){var l=Math.abs;if(this.clip_virtual){var a=s.w/2,n=s.h/2;s._av=!(s.y<-i-n||s.y>i+n||s.x<-e-a||s.x>e+a)}(1<l(this.scroll_vx)||1<l(this.scroll_vy))&&(s.touching=!1),s.dirty()},b5.Actor.prototype.Virtual_updateLayout=function(t){if(this.layout_dirty){this.layout_dirty=!1;var e=this.prev_scroll_pos_x-this.scroll_pos_x,a=this.prev_scroll_pos_y-this.scroll_pos_y,o=this.actors.length,n=this.w*this.scale_x/2,r=this.h*this.scale_y/2;if(0<o){var g=this.stacking,c=this.actors,d;if(g===b5.Actor.Stack_None)for(var p=0;p<o;p++)d=c[p],0===d.dock_x?d.x+=e:d.dock_x===b5.Actor.Dock_Left?d.x=-n+d.w*d.scale_x/2+d.margin[0]:d.dock_x===b5.Actor.Dock_Right&&(d.x=n-d.w*d.scale_x/2+d.margin[1]),0===d.dock_y?d.y+=a:d.dock_y===b5.Actor.Dock_Top?d.y=-r+d.h*d.scale_y/2+d.margin[2]:d.dock_y===b5.Actor.Dock_Bottom&&(d.y=r-d.h*d.scale_y/2+d.margin[3]),this.Virtual_clipLayout(d,n,r);else if(g===b5.Actor.Stack_H){d=c[0];for(var l=-n+d.w*d.scale_x/2,p=0;p<o;p++)d=c[p],d.x=l+d.margin[0],l+=d.w*d.scale_x+d.margin[1],this.Virtual_clipLayout(d,n,r)}else if(g===b5.Actor.Stack_V){d=c[0];for(var m=-r+d.h*d.scale_y/2,p=0;p<o;p++)d=c[p],d.y=m+d.margin[2],m+=d.h*d.scale_y+d.margin[3],this.Virtual_clipLayout(d,n,r)}}if(t)for(var u=this.actors,p=0;p<u.length;p++)u[p].Virtual_updateLayout(!0)}},b5.Actor.prototype.Virtual_isClipped=function(r){if(!this.clip_virtual)return!1;var e=this.w*this.scale_x/2,s=this.h*this.scale_y/2,i=r.w/2,a=r.h/2;return!!(r.y<-s-a||r.y>s+a||r.x<-e-i||r.x>e+i)},b5.Actor.prototype.hitTest=function(t){if(!this.touchable||!this.active)return null;var e=this.actors.length,o;if(0<e)for(var a=this.actors,n=e-1;0<=n;n--)if(o=a[n].hitTest(t),null!==o)return o;if(this.hit){var r=this.scene,i=this.transform,s=i[4]+r.x,c=i[5]+r.y;this.ignore_camera||(s-=r.camera_x,c-=r.camera_y);var d=this.accum_scale_x,p=this.accum_scale_y,l=(t.x-s)/d,T=(t.y-c)/p,_=l*i[0]+T*i[1],u=l*i[2]+T*i[3],h=this.w*d/2,y=this.h*p/2;if(_>=-h&&_<=h&&u>=-y&&u<=y)return this}return null},b5.Actor.prototype.transformPoint=function(a,e){return b5.Maths.vecMulMatrix(a,e,this.transform)},b5.Actor.prototype.setClipping=function(s,e){var t=Math.PI,o=b5.app.display;o.saveContext();var a=this.clip_margin,n=this.clip_shape;if(null===n){var r=this.type;r===b5.Actor.Type_Arc?o.clipArc(s+a[0],e+a[1],this.radius,0,2*t):r===b5.Actor.Type_Polygon?o.clipPolygon(this.points):o.clipRect(s+a[0],e+a[1],this.w-a[2]-a[0],this.h-a[3]-a[1])}else{var r=n.type;r===b5.Shape.TypeBox?o.clipRect(s+a[0],e+a[1],n.width-a[2]-a[0],n.height-a[3]-a[1]):r===b5.Shape.TypeCircle?o.clipArc(s+a[0],e+a[1],n.width,0,2*t):r===b5.Shape.TypePolygon&&o.clipPolygon(n.vertices)}},b5.Actor.prototype.overlaps=function(l){var e=this.x+this.x2,t=this.y+this.y2,o=this.w,a=this.h,n=l.w,r=l.h,i=e-o/2,s=t-a/2,c=l.x-n/2,d=l.y-r/2;return!(s+a<d||s>d+r||i>c+n||i+o<c)},b5.Actor.prototype.overlapsRect=function(l){var e=this.x+this.x2,t=this.y+this.y2,o=this.w,a=this.h,n=l.x2-l.x1,r=l.y2-l.y1,i=e-o/2,s=t-a/2,c=l.x1,d=l.y1;return!(s+a<d||s>d+r||i>c+n||i+o<c)},b5.Actor.prototype.circleOverlaps=function(l){var e=l.x-l.w/2,t=l.y-l.h/2,o=l.x+l.w/2,a=l.y+l.h/2,n=this.x+this.x2,r=this.y+this.y2,i=n<e?e:n>o?o:n,s=r<t?t:r>a?a:r,c=n-i,d=r-s;return c*c+d*d<this.w/2*this.w/2},b5.Actor.prototype.circleOverlapsRect=function(l){var e=l.x1,t=l.y1,o=l.x2,a=l.y2,n=this.x+this.x2,r=this.y+this.y2,i=n<e?e:n>o?o:n,s=r<t?t:r>a?a:r,c=n-i,d=r-s;return c*c+d*d<this.w/2*this.w/2},b5.Actor.fullCircleOverlapTest=function(s,e){var t=s.transformPoint(0,0),o=e.transformPoint(0,0),a=o.x-t.x,n=o.y-t.y,r=s.w*s.w/2+e.w*e.w/2;return!!(a*a+n*n<=r)},"use strict",b5.ArcActor=function(){this.fill_style="#ffffff",this.stroke_style="#ffffff",this.stroke_thickness=1,this.radius=1,this.start_angle=0,this.end_angle=2*Math.PI,this.filled=!0,this.stroke_filled=!1,b5.Actor.call(this),this.type=b5.Actor.Type_Arc},b5.ArcActor.prototype=new b5.Actor,b5.ArcActor.prototype.constructor=b5.ArcActor,b5.ArcActor.prototype.parent=b5.Actor.prototype,b5.ArcActor.prototype.update=function(t){return this.baseUpdate(t)},b5.ArcActor.prototype.draw=function(){if(this.visible){if(this.cache&&(this.drawToCache(),this.cache=!1),this.merge_cache)return this.drawChildren(!1),void this.drawChildren(!0);this.updateTransform();var u=this.drawChildren(!1),e=this.cache_canvas,t=this.scene,o=t.app,a=o.canvas_scale,n=o.display;null===e&&(this.filled&&""!==this.fill_style&&n.setFillStyle(this.fill_style),this.stroke_filled&&""!==this.stroke_style&&n.setStrokeStyle(this.stroke_style),this.stroke_filled&&n.setLineWidth(this.stroke_thickness));var r=o.canvas_cx+t.x*a,i=o.canvas_cy+t.y*a;this.ignore_camera||0!==this.depth&&1!==this.depth||(r-=t.camera_x*a,i-=t.camera_y*a),this.preDraw();var s=this.self_clip,g=this.clip_children,d=this.transform,p=d[4]*a+r,l=d[5]*a+i;this.round_pixels&&(p=0|p+.5,l=0|l+.5),n.setTransform(d[0]*a,d[1]*a,d[2]*a,d[3]*a,p,l),s&&this.setClipping(0,0),null===e?n.drawArc(0,0,this.radius,this.start_angle,this.end_angle,this.filled):n.drawImage(e,-e.width>>1,-e.height>>1),this.postDraw(),g?!s&&this.setClipping(0,0):s&&n.restoreContext(),u||this.drawChildren(!0),g&&n.restoreContext()}},b5.ArcActor.prototype.drawToCache=function(){var l=b5.app.display,e=null,t=2*this.padding,o=this.w+t,a=this.h+t,n=0,r=0;if(this.merge_cache){var i=this.findFirstCachedParent();null!==i&&(e=i.cache_canvas,n=this.x+e.width/2-o/2,r=this.y+e.height/2-a/2)}if(null===e){var s=b5.app.pixel_ratio;e=l.createCache(),e.width=0|o*s,e.height=0|a*s}l.setCache(e),this.preDrawCached(),this.filled&&""!==this.fill_style&&l.setFillStyle(this.fill_style),this.stroke_filled&&""!==this.stroke_style&&l.setStrokeStyle(this.stroke_style),this.stroke_filled&&l.setLineWidth(this.stroke_thickness),l.setTransform(1,0,0,1,n+o/2,r+a/2),l.drawArc(0,0,this.radius,this.start_angle,this.end_angle,this.filled),this.postDrawCached(),l.setCache(null),this.cache_canvas=e},b5.ArcActor.prototype.hitTest=function(t){if(!this.touchable)return null;var e=this.actors.length,o;if(0<e)for(var a=this.actors,n=0;n<e;n++)if(o=a[n].hitTest(t),null!==o)return o;var r=this.scene,s=this.transform,i=s[4]+r.x,d=s[5]+r.y;this.ignore_camera||(i-=r.camera_x,d-=r.camera_y);var c=this.accum_scale_x,l=this.accum_scale_y,p=(t.x-i)/c,_=(t.y-d)/l,u=p*s[0]+_*s[1],h=p*s[2]+_*s[3],g=this.radius*c;return g*=g,u*u+h*h<=g?this:null},"use strict",b5.LabelActor=function(){this.text="",this.font="16pt Calibri",this.text_align="center",this.text_baseline="middle",this.fill_style="#ffffff",this.stroke_style="#ffffff",this.stroke_thickness=1,this.line_height=16,this.max_width=0,this.filled=!0,this.stroke_filled=!1,b5.Actor.call(this),this.type=b5.Actor.Type_Label},b5.LabelActor.prototype=new b5.Actor,b5.LabelActor.prototype.constructor=b5.LabelActor,b5.LabelActor.prototype.parent=b5.Actor.prototype,Object.defineProperty(b5.LabelActor.prototype,"_text",{get:function(){return this.text},set:function(t){this.text!==t&&(this.text=""+t,null!==this.cache_canvas&&(this.cache=!0))}}),b5.LabelActor.prototype.update=function(t){return this.baseUpdate(t)},b5.LabelActor.prototype.draw=function(){if(this.visible&&""!==this.text){if(this.cache&&(this.drawToCache(),this.cache=!1),this.merge_cache)return this.drawChildren(!1),void this.drawChildren(!0);this.updateTransform();var g=this.drawChildren(!1);this.preDraw();var e=this.cache_canvas,t=this.scene,o=t.app,a=o.canvas_scale,n=o.display;null===e&&(""!==this.font&&n.setFont(this.font),""!==this.textAlign&&n.setTextAlign(this.text_align),""!==this.textBaseline&&n.setTextBaseline(this.text_baseline),this.filled&&""!==this.fill_style&&n.setFillStyle(this.fill_style),this.stroke_filled&&""!==this.stroke_style&&n.setStrokeStyle(this.stroke_style),this.stroke_filled&&n.setLineWidth(this.stroke_thickness));var r=b5.app.pixel_ratio;null===e&&(r=1);var i=o.canvas_cx+t.x*a/r,s=o.canvas_cy+t.y*a/r;this.ignore_camera||0!==this.depth&&1!==this.depth||(i-=t.camera_x*a,s-=t.camera_y*a);var c=this.transform,d=c[4]*a+i,p=c[5]*a+s;if(this.round_pixels&&(d=0|d+.5,p=0|p+.5),a/=r,n.setTransform(c[0]*a,c[1]*a,c[2]*a,c[3]*a,d,p),null===e)this.stroke_filled&&n.drawTextWrap(this.text,0,0,this.max_width,this.line_height,!1,this.text_baseline),this.filled&&n.drawTextWrap(this.text,0,0,this.max_width,this.line_height,!0,this.text_baseline);else{var l=-e.width/2,h=-e.height/2;n.drawImage(e,l,h)}this.postDraw(),g||this.drawChildren(!0)}},b5.LabelActor.prototype.drawToCache=function(){var m=b5.app.display,e=null,t=2*this.padding,o=this.w+t,a=this.h+t,n=0,i=0;if(this.merge_cache){var s=this.findFirstCachedParent();null!==s&&(e=s.cache_canvas,n=this.x+e.width/2-o/2,i=this.y+e.height/2-a/2)}if(null===e){var c=b5.app.pixel_ratio;e=m.createCache(),e.width=0|o*c,e.height=0|a*c}if(m.setCache(e),this.preDrawCached(),""!==this.font&&m.setFont(this.font),""!==this.textAlign&&m.setTextAlign(this.text_align),""!==this.textBaseline&&m.setTextBaseline(this.text_baseline),this.filled&&""!==this.fill_style&&m.setFillStyle(this.fill_style),this.stroke_filled&&""!==this.stroke_style&&m.setStrokeStyle(this.stroke_style),this.stroke_filled&&m.setLineWidth(this.stroke_thickness),m.setTransform(1,0,0,1,0,0),"center"===this.text_align?n+=o/2:"right"===this.text_align&&(n+=o),"middle"===this.text_baseline?i+=a/2:"bottom"===this.text_baseline&&(i+=a),this.merge_cache){var d=this.scene,p=[],l=this.rotation,T=Math.cos(l),r=Math.sin(l),y=this.scale_x,u=this.scale_y;p[0]=T*y,p[1]=r*y,p[2]=-r*u,p[3]=T*u,p[4]=this.x+e.width/2-this.ox*this.ow,p[5]=this.y+e.height/2-this.oy*this.oh;var h=[1,0,0,1,this.ox*this.ow,this.oy*this.oh];b5.Maths.preMulMatrix(p,h),m.setTransform(1*p[0],1*p[1],1*p[2],1*p[3],p[4],p[5]),this.stroke_filled&&m.drawTextWrap(this.text,0,0,this.max_width,this.line_height,!1,this.text_baseline),this.filled&&m.drawTextWrap(this.text,0,0,this.max_width,this.line_height,!0,this.text_baseline),m.setTransform(1,0,0,1,0,0)}else m.setTransform(1,0,0,1,0,0),this.stroke_filled&&m.drawTextWrap(this.text,n,i,this.max_width,this.line_height,!1,this.text_baseline),this.filled&&m.drawTextWrap(this.text,n,i,this.max_width,this.line_height,!0,this.text_baseline);this.postDrawCached(),m.setCache(null),this.cache_canvas=e},"use strict",b5.ParticleActor=function(){b5.Actor.call(this),this.type=b5.Actor.Type_Particle,this.gravity=0,this.added_callback=null,this.reset_callback=null},b5.ParticleActor.prototype=new b5.Actor,b5.ParticleActor.prototype.constructor=b5.ParticleActor,b5.ParticleActor.prototype.parent=b5.Actor.prototype,b5.ParticleActor.prototype.resetParticle=function(a){if(a.life_time=0,a.orphaned){var e=this.transformPoint(a.org_x+this.x,a.org_y+this.y);a.x=e.x,a.y=e.y}else a.x=a.org_x,a.y=a.org_y;a.rotation=a.org_rotation,a.scale_x=a.org_scale_x,a.scale_y=a.org_scale_y,a.depth=a.org_depth,a.opacity=a.org_opacity,a.current_frame=a.org_current_frame,a.vr=a.org_vr,a.vx=a.org_vx,a.vy=a.org_vy,a.vd=a.org_vd,a.vo=a.org_vo,a.vsx=a.org_vsx,a.vsy=a.org_vsy,null!==this.reset_callback&&this.reset_callback(a)},b5.ParticleActor.prototype.addParticle=function(r,e,t,o){if(this.addActor(r),void 0===r.vo&&(r.vo=0),void 0===r.vsx&&(r.vsx=0),void 0===r.vsy&&(r.vsy=0),r.life_time=-o,r.life_span=e,r.num_lives=t,0>r.life_time&&(r.active=!1,r.visible=!1),r.org_num_lives=r.num_lives,r.org_x=r.x,r.org_y=r.y,r.org_rotation=r.rotation,r.org_scale_x=r.scale_x,r.org_scale_y=r.scale_y,r.org_depth=r.depth,r.org_opacity=r.opacity,r.org_current_frame=r.current_frame,r.org_vr=r.vr,r.org_vx=r.vx,r.org_vy=r.vy,r.org_vd=r.vd,r.org_vo=r.vo,r.org_vsx=r.vsx,r.org_vsy=r.vsy,r.orphaned){var s=this.transformPoint(r.org_x+this.x,r.org_y+this.y);r.x=s.x,r.y=s.y}return null!==this.added_callback&&this.added_callback(r),r},b5.ParticleActor.prototype.update=function(t){var e=this.actors,o=e.length;if(0===o)void 0!==this.onParticlesEnd&&this.onParticlesEnd(),this.destroy();else for(var a=o-1,n;0<=a;a--){n=e[a],n.life_time+=t;var r=n.life_time;0<=r&&(0>r-t&&0<=r&&(n.active=!0,n.visible=!0),n.active&&(n.scale_x+=n.vsx*t,n.scale_y+=n.vsy*t,n.opacity+=n.vo*t,0>n.opacity&&(n.opacity=0),n.vy+=this.gravity*t,n.update(t),r>=n.life_span&&(0<n.num_lives&&n.num_lives--,0<n.num_lives||0===n.org_num_lives?this.resetParticle(n):void 0===this.onParticleLost?n.destroy():this.onParticleLost(n)&&n.destroy())))}return this.baseUpdate(t)},b5.ParticleActor.prototype.generateExplosion=function(t,e,p,a,n,r,i,s){this.updateParentTransforms();for(var c=0;c<t;c++){var d;for(var l in d="string"==typeof e?new b5[e]:new e,s)d[l]=s[l];d.vr+=Math.random()*n,d.vx+=Math.random()*a-a/2,d.vy+=Math.random()*a-a/2,d.vx_damping=i,d.vy_damping=i,d.vo=-1/p,this.addParticle(d,p,1,c/(t*r))}},b5.ParticleActor.prototype.generatePlume=function(t,e,p,a,u,r,i,s){this.updateParentTransforms();for(var c=0;c<t;c++){var d;for(var l in d="string"==typeof e?new b5[e]:new e,s)d[l]=s[l];d.vr+=Math.random()*u,d.vx+=Math.random()*a-a/2,d.vy+=Math.random()*-a-a/2,d.vx_damping=i,d.vy_damping=i,d.vo=-1/p,this.addParticle(d,p,0,c/(t*r))}},b5.ParticleActor.prototype.generateRain=function(t,e,p,a,n,r,i,s,c){this.updateParentTransforms();for(var d=0;d<t;d++){var l;for(var u in l="string"==typeof e?new b5[e]:new e,c)l[u]=c[u];l.x=Math.random()*s-s/2,l.vr+=Math.random()*n,l.vy+=Math.random()*a+a/2,l.vx_damping=i,l.vy_damping=i,l.vo=-1/p,this.addParticle(l,p,0,d/(t*r))}},"use strict",b5.PolygonActor=function(){this.fill_style="#ffffff",this.stroke_style="",this.stroke_thickness=1,this.filled=!0,this.stroke_filled=!1,this.points=null,b5.Actor.call(this),this.type=b5.Actor.Type_Polygon},b5.PolygonActor.prototype=new b5.Actor,b5.PolygonActor.prototype.constructor=b5.PolygonActor,b5.PolygonActor.prototype.parent=b5.Actor.prototype,b5.PolygonActor.prototype.update=function(t){return this.baseUpdate(t)},b5.PolygonActor.prototype.draw=function(){if(this.visible&&null!==this.points){if(this.cache&&(this.drawToCache(),this.cache=!1),this.merge_cache)return this.drawChildren(!1),void this.drawChildren(!0);this.updateTransform();var u=this.drawChildren(!1),e=this.cache_canvas,t=this.scene,o=t.app,a=o.display;null===e&&(this.filled&&""!==this.fill_style&&a.setFillStyle(this.fill_style),this.stroke_filled&&""!==this.stroke_style&&a.setStrokeStyle(this.stroke_style),this.stroke_filled&&a.setLineWidth(this.stroke_thickness));var n=o.canvas_scale,r=o.canvas_cx+this.scene.x*n,i=o.canvas_cy+this.scene.y*n;this.ignore_camera||0!==this.depth&&1!==this.depth||(r-=t.camera_x*n,i-=t.camera_y*n),this.preDraw();var s=this.self_clip,g=this.clip_children,d=this.transform,p=d[4]*n+r,l=d[5]*n+i;this.round_pixels&&(p=0|p+.5,l=0|l+.5),a.setTransform(d[0]*n,d[1]*n,d[2]*n,d[3]*n,p,l),s&&this.setClipping(0,0),null===e?a.drawPolygon(0,0,this.points,this.filled):a.drawImage(e,-e.width>>1,-e.height>>1),this.postDraw(),g?!s&&this.setClipping(0,0):s&&a.restoreContext(),u||this.drawChildren(!0),g&&a.restoreContext()}},b5.PolygonActor.prototype.drawToCache=function(){var l=b5.app.display,e=null,t=2*this.padding,o=this.w+t,a=this.h+t,n=0,r=0;if(this.merge_cache){var i=this.findFirstCachedParent();null!==i&&(e=i.cache_canvas,n=this.x+e.width/2-o/2,r=this.y+e.height/2-a/2)}if(null===e){var s=b5.app.pixel_ratio;e=l.createCache(),e.width=0|o*s,e.height=0|a*s}l.setCache(e),this.preDrawCached(),this.filled&&""!==this.fill_style&&l.setFillStyle(this.fill_style),this.stroke_filled&&""!==this.stroke_style&&l.setStrokeStyle(this.stroke_style),this.stroke_filled&&l.setLineWidth(this.stroke_thickness),l.setTransform(1,0,0,1,n+o/2,r+a/2),l.drawPolygon(0,0,this.points,this.filled),this.postDrawCached(),l.setCache(null),this.cache_canvas=e},"use strict",b5.RectActor=function(){this.fill_style="#ffffff",this.stroke_style="#ffffff",this.stroke_thickness=1,this.corner_radius=0,this.filled=!0,this.stroke_filled=!1,b5.Actor.call(this),this.type=b5.Actor.Type_Rect},b5.RectActor.prototype=new b5.Actor,b5.RectActor.prototype.constructor=b5.RectActor,b5.RectActor.prototype.parent=b5.Actor.prototype,b5.RectActor.prototype.update=function(t){return this.baseUpdate(t)},b5.RectActor.prototype.draw=function(){if(this.visible){if(this.cache&&(this.drawToCache(),this.cache=!1),this.merge_cache)return this.drawChildren(!1),void this.drawChildren(!0);this.updateTransform();var g=this.drawChildren(!1),e=this.cache_canvas,t=this.scene,o=t.app,a=o.canvas_scale,n=o.display;null===e&&(this.filled&&""!==this.fill_style&&n.setFillStyle(this.fill_style),this.stroke_filled&&""!==this.stroke_style&&n.setStrokeStyle(this.stroke_style),this.stroke_filled&&n.setLineWidth(this.stroke_thickness));var r=o.canvas_cx+t.x*a,i=o.canvas_cy+t.y*a,s=this.w/2,h=this.h/2;this.ignore_camera||0!==this.depth&&1!==this.depth||(r-=t.camera_x*a,i-=t.camera_y*a),this.preDraw();var m=this.self_clip,T=this.clip_children,l=this.transform,y=l[4]*a+r,_=l[5]*a+i;this.round_pixels&&(s=0|s+.5,h=0|h+.5,y=0|y+.5,_=0|_+.5),n.setTransform(l[0]*a,l[1]*a,l[2]*a,l[3]*a,y,_),m&&this.setClipping(-s,-h),null===e?0===this.corner_radius?n.drawRect(-s,-h,this.w,this.h,this.filled):n.drawRoundRect(-s,-h,this.w,this.h,this.corner_radius,this.filled):n.drawImage(e,-e.width>>1,-e.height>>1),this.postDraw(),T?!m&&this.setClipping(-s,-h):m&&n.restoreContext(),g||this.drawChildren(!0),T&&n.restoreContext()}},b5.RectActor.prototype.drawToCache=function(){var l=b5.app.display,e=null,t=2*this.padding,o=this.w+t,d=this.h+t,p=0,r=0;if(this.merge_cache){var i=this.findFirstCachedParent();null!==i&&(e=i.cache_canvas,p=this.x+e.width/2-o/2,r=this.y+e.height/2-d/2)}if(null===e){var s=b5.app.pixel_ratio;e=l.createCache(),e.width=0|o*s,e.height=0|d*s}l.setCache(e),this.preDrawCached(),this.filled&&""!==this.fill_style&&l.setFillStyle(this.fill_style),this.stroke_filled&&""!==this.stroke_style&&l.setStrokeStyle(this.stroke_style),this.stroke_filled&&l.setLineWidth(this.stroke_thickness),l.setTransform(1,0,0,1,p+o/2,r+d/2),0===this.corner_radius?l.drawRect(-o/2,-d/2,this.w,this.h,this.filled):l.drawRoundRect(-o/2,-d/2,this.w,this.h,this.corner_radius,this.filled),this.postDrawCached(),l.setCache(null),this.cache_canvas=e},"use strict",b5.MapActor=function(){this.tiles=[],this.map=[],this.collision_map=[],this.tile_width=32,this.tile_height=32,this.map_width=0,this.map_height=0,this.display_width=8,this.display_height=8,b5.Actor.call(this),this.type=b5.Actor.Type_Map},b5.MapActor.prototype=new b5.Actor,b5.MapActor.prototype.constructor=b5.MapActor,b5.MapActor.prototype.parent=b5.Actor.prototype,b5.MapActor.prototype.update=function(t){return this.baseUpdate(t)},b5.MapActor.prototype.generateTiles=function(t,e,o,a){for(var n=.5,l=.5,d=0;d<t;d++)this.tiles[d]={x:n,y:l},n+=e,n>=a&&(n=.5,l+=o);this.tile_width=e,this.tile_height=o},b5.MapActor.prototype.setTile=function(s,e,t,o){var a=this.map_width,n=this.map_height;0>s||s>=a||0>e||e>=n||(void 0!==o&&o?this.collision_map[e*a+s]=t:this.map[e*a+s]=t)},b5.MapActor.prototype.getTile=function(r,e,t){var o=this.map_width,a=this.map_height;return 0>r||r>=o?-1:0>e||e>=a?-1:void 0!==t&&t?this.collision_map[e*o+r]:this.map[e*o+r]},b5.MapActor.prototype.getTileXY=function(s,e){var t=Math.round,o=this.map_width,a=this.map_height,n=this.tile_width,r=this.tile_height;return{x:t((s-n/2)/n)+(o>>1),y:t((e-r/2)/r)+(a>>1)}},b5.MapActor.prototype.getTilePosition=function(s,e,t){var o=this.tile_width,a=this.tile_height,n=this.getTileXY(s,e);return n.x-=this.map_width>>1,n.y-=this.map_height>>1,n.x*=o,n.y*=a,"m"===t?n.y+=a/2:"b"===t?n.y+=a:"c"===t?n.x+=o/2:"r"==t&&(n.x+=o),n},b5.MapActor.prototype.getTileFromPosition=function(n,e,t){var o=this.getTileXY(n,e);return this.getTile(o.x,o.y,t)},b5.MapActor.prototype.draw=function(){if(this.visible){var y=this.scene,e=y.app,t=e.canvas_scale,o=e.display,a=e.canvas_cx+y.x*t,n=e.canvas_cy+y.y*t;this.ignore_camera||0!==this.depth&&1!==this.depth||(a-=y.camera_x*t,n-=y.camera_y*t),this.updateTransform();var r=this.drawChildren(!1);this.preDraw();var i=this.transform,s=i[4]*t+a,c=i[5]*t+n;this.round_pixels&&(s=0|s+.5,c=0|c+.5),o.setTransform(i[0]*t,i[1]*t,i[2]*t,i[3]*t,s,c);var d=this.map_width,p=this.map_height,l=this.tile_width,_=this.tile_height,u=this.map,h=this.tiles,g,m,f,A,I;null===this.bitmap?null!==this.atlas&&(I=this.atlas.bitmap):I=this.bitmap;var x=I.image,b=this.display_width,v=this.display_height;a=b===d?-b>>1:0|(y.camera_x-this.x)/l-(b>>1)+.5;var O=a;n=v===p?-v>>1:0|(y.camera_y-this.y)/_-(v>>1)+.5;var C=a*l,w=C,P=n*_;for(a+=d>>1,O=a,n+=p>>1,m=0;m<v;m++){if(0<=n&&n<p)for(a=O,C=w,g=0;g<b&&(0<=a&&(f=u[n*d+a],A=h[f],o.drawAtlasImage(x,A.x,A.y,l-1,_-1,C,P,l+1,_+1)),C+=l,a++,!(a>=d));g++);if(P+=_,n++,n>=p)break}this.postDraw(),r||this.drawChildren(!0)}},"use strict",b5.App=function(a,e){b5.app=this,this.removals=[],this.touched=!1,this.touch_pos={x:0,y:0},this.touch_drag_x=0,this.touch_drag_y=0,this.timer=null,this.last_time=Date.now(),this.dt=0,this.avg_time=0,this.avg_fps=60,this.avg_frame=0,this.canvas_scale=1,this.pixel_ratio=1,this.design_width=a.width,this.design_height=a.height,this.display_width=a.width,this.display_height=a.height,this.canvas_cx=this.design_width>>1,this.canvas_cy=this.design_height>>1,this.order_changed=!0,this.total_loaded=0,this.total_load_errors=0,this.inner_width=b5.Display.getWidth(),this.inner_height=b5.Display.getHeight(),this.fill_screen=!1,this.disable_dock_screen=!1,this.started=null,this.num_logic=0,this.num_draw=0,this.world=null,this.scenes=[],this.canvas=a,this.canvas_scale_method=b5.App.FitNone,this.touch_supported=this.isTouchSupported(),this.allow_touchables=!0,this.target_frame_rate=60,this.adaptive_physics=!1,this.focus_scene=null,this.focus_scene2=null,this.hover_focus=null,this.clear_canvas=!1,this.touch_focus=null,this.global_scale=1,this.prevent_default=!1,this.debug=!1,this.timelines=new b5.TimelineManager,void 0!==b5.ActionsListManager&&(this.actions=new b5.ActionsListManager),this.events=new b5.EventsManager,this.tasks=new b5.TasksManager,this.box2d="undefined"!=typeof Box2D,this.instants="undefined"!=typeof FBInstant,this.loading_screen={background_fill:"#fffff",background_image:"loading.png",bar_background_fill:"#8080ff",bar_fill:"#ffffff"},this.use_web_audio=e||!0,this.shared_world=!1,this.time_step=.03333,this.mobile=b5.Utils.IsMobile(),this.platform=b5.Utils.GetPlatform(),this.bitmaps={},this.brushes={},this.shapes={},this.materials={},this.sounds={},this.fonts={},this.raw={},this.onResourceLoaded=function(a,e){this.onResourceLoadedBase(a,e)},this.display=new b5.Display(this.canvas),this.use_web_audio=b5.Sound.init(this),window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",this.onTouchStart,!1),a.addEventListener("MSPointerMove",this.onTouchMove,!1),a.addEventListener("MSPointerUp",this.onTouchEnd,!1)):(a.addEventListener("touchstart",this.onTouchStart,!1),a.addEventListener("touchmove",this.onTouchMove,!1),a.addEventListener("touchend",this.onTouchEnd,!1),a.addEventListener("mousedown",this.onTouchStart,!1),a.addEventListener("mousemove",this.onTouchMove,!1),a.addEventListener("mouseup",this.onTouchEnd,!1),a.addEventListener("mouseout",this.onTouchEnd,!1));var t="onwheel"in document.createElement("div")?"wheel":void 0===document.onmousewheel?"DOMMouseScroll":"mousewheel";a.addEventListener(t,this.onWheel,!1),window.addEventListener("keypress",this.onKeyPress,!1),window.addEventListener("keydown",this.onKeyDown,!1),window.addEventListener("keyup",this.onKeyUp,!1),Visibility.change(function(a,t){void 0!==b5.app.onAppPaused&&("hidden"===t?b5.app.onAppPaused(!0):"visible"==t&&b5.app.onAppPaused(!1))})},Object.defineProperty(b5.App.prototype,"_focus_scene",{get:function(){return this.focus_scene},set:function(t){this.focus_scene!==t&&(this.focus_scene=b5.Utils.resolveObject(t))}}),Object.defineProperty(b5.App.prototype,"_focus_scene2",{get:function(){return this.focus_scene2},set:function(t){this.focus_scene2!==t&&(this.focus_scene2=b5.Utils.resolveObject(t))}}),b5.App.FitNone=0,b5.App.FitX=1,b5.App.FitY=2,b5.App.FitBest=3,b5.App.FitSize=4,b5.App.FitGreatest=5,b5.App.FitSmallest=6,b5.App.FitBest2=7,b5.App.prototype.onKeyPress=function(a){var e=b5.app;null!=e.focus_scene&&e.focus_scene.onKeyPressBase(a)},b5.App.prototype.onKeyDown=function(a){var e=b5.app;null!=e.focus_scene&&e.focus_scene.onKeyDownBase(a)},b5.App.prototype.onKeyUp=function(a){var e=b5.app;null!=e.focus_scene&&e.focus_scene.onKeyUpBase(a)},b5.App.prototype.isTouchSupported=function(){var a=window.navigator.msMaxTouchPoints,e="ontouchstart"in this.canvas;return!!(a||e)},b5.App.prototype.onTouchStart=function(s){var t=b5.app;if(!(t.touch_supported&&(s.stopPropagation(),t.prevent_default&&s.preventDefault(),1<s.touches.length))){var e=t.focus_scene,o=t.focus_scene2,a=t.display;if(t.touched=!0,t.touch_pos=t.touch_supported&&void 0!==s.changedTouches?a.getCanvasPoint(s.changedTouches[0].pageX,s.changedTouches[0].pageY):a.getCanvasPoint(s.pageX,s.pageY),null!=e&&e.onBeginTouchBase(t.touch_pos),null!=o&&o.onBeginTouchBase(t.touch_pos),t.allow_touchables){var n=t.findHitActor(t.touch_pos);null!=n&&(t.touch_focus=n,n.onBeginTouchBase(t.touch_pos))}}},b5.App.prototype.onTouchEnd=function(s){var t=b5.app;if(b5.Sound.unblock(),!(t.touch_supported&&(s.stopPropagation(),t.prevent_default&&s.preventDefault(),1<s.touches.length))){var e=t.focus_scene,o=t.focus_scene2,a=t.display;if(t.touched=!1,t.touch_pos=t.touch_supported&&void 0!==s.changedTouches?a.getCanvasPoint(s.changedTouches[0].pageX,s.changedTouches[0].pageY):a.getCanvasPoint(s.pageX,s.pageY),null!=e&&e.onEndTouchBase(t.touch_pos),null!=o&&o.onEndTouchBase(t.touch_pos),t.allow_touchables){var n=t.findHitActor(t.touch_pos);null!=n&&n.onEndTouchBase(t.touch_pos),null!=t.touch_focus&&(void 0!==t.touch_focus.onLostTouchFocus&&t.touch_focus.onLostTouchFocus(t.touch_pos),t.touch_focus=null)}}},b5.App.prototype.onTouchMove=function(l){var t=b5.app;if(!(t.touch_supported&&(l.stopPropagation(),t.prevent_default&&l.preventDefault(),1<l.touches.length))){var e=t.focus_scene,o=t.focus_scene2,a=t.touch_pos.x,n=t.touch_pos.y,r=t.display;if(t.touch_pos=t.touch_supported&&void 0!==l.changedTouches?r.getCanvasPoint(l.changedTouches[0].pageX,l.changedTouches[0].pageY):r.getCanvasPoint(l.pageX,l.pageY),t.raw_touch_x=l.pageX,t.raw_touch_y=l.pageY,t.touch_drag_x=a-t.touch_pos.x,t.touch_drag_y=n-t.touch_pos.y,null!=e&&e.onMoveTouchBase(t.touch_pos),null!=o&&o.onMoveTouchBase(t.touch_pos),t.allow_touchables){var i=t.findHitActor(t.touch_pos);null!=i&&i.onMoveTouchBase(t.touch_pos),null!==t.hover_focus&&void 0!==t.hover_focus.onHover&&t.hover_focus.onHoverEnd(t.touch_pos),t.hover_focus=i,null!==i&&void 0!==i.onHover&&i.onHover(t.touch_pos)}}},b5.App.prototype.onWheel=function(n){var t=b5.app;t.touch_supported&&(n.stopPropagation(),t.prevent_default&&n.preventDefault());var e=t.focus_scene,o=t.focus_scene2;null!=e&&e.onWheelBase(n),null!=o&&o.onWheelBase(n)},b5.App.prototype.addScene=function(t){return this.scenes.push(t),t.app=this,t},b5.App.prototype.removeScene=function(t){this.focus_scene==t&&(this.focus_scene=null),this.removals.push(t)},b5.App.prototype.cleanupDestroyedScenes=function(){var t=this.removals.length;if(0<t)for(var e=this.removals,o=this.scenes,a=o.length,n=0,r;n<t;n++){r=e[n];for(var s=0;s<a;s++)if(r==o[s]){r.release(),o.splice(s,1),a--;break}}this.removals=[]},b5.App.prototype.findScene=function(t){for(var e=this.scenes,o=e.length,a=0;a<o;a++)if(e[a].name==t)return e[a];return null},b5.App.prototype.addResource=function(a,e){var t=b5.Utils.getResFromType(this,e);null!=t&&(t[a.name]=a,a.parent=this)},b5.App.prototype.removeResource=function(a,e){var t=b5.Utils.getResFromType(this,e);null!=t&&(t[a.name]=void 0)},b5.App.prototype.findResource=function(n,e){var t=b5.Utils.getResFromType(this,e);if(null==t)return null;var o=t[n];return void 0===o?(this.debug&&console.log("resource '"+n+"' ("+e+") not found"),null):o},b5.App.prototype.countResourcesNeedLoading=function(){var a=0,e=this.bitmaps;for(var t in e)e[t].preload&&a++;for(var t in e=this.sounds,e)e[t].preload&&a++;for(var t in e=this.fonts,e)e[t].preload&&a++;for(var t in e=this.raw,e)e[t].preload&&a++;return a},b5.App.prototype.onResourceLoadedBase=function(a,e){a.preload&&b5.app.total_loaded++,e?(a.preload&&b5.app.total_load_errors++,console.log("Error loading resource "+a.name)):this.debug&&console.log("Resource loaded "+a.name),a.loaded=!0},b5.App.prototype.waitForResources=function(s){var e=this;if(null!==e.loading_screen){var t=e.display,o=e.canvas_scale;t.setTransform(1,0,0,1,0,0),t.setFillStyle(e.loading_screen.background_fill),t.drawRect(0,0,e.display_width,e.display_height);var a=new Image;a.src=e.loading_screen.background_image,a.onload=function(){t.setTransform(o,0,0,o,e.canvas_cx,e.canvas_cy),t.drawImage(a,-a.width>>1,-a.height>>1,a.width,a.height),t.setFillStyle(e.loading_screen.bar_background_fill),t.drawRoundRect(-200,(e.canvas_height>>2)-40,400,80,20,!0)}}var l=e.countResourcesNeedLoading(!0),r=setInterval(function(){var o=b5.app.total_loaded;if(o>=l){b5.app.debug&&(console.log("Total resources loaded "+o+" of "+l),console.log("Total resource load errors "+b5.app.total_load_errors)),void 0!==s&&s(o,l),clearInterval(r);var a=setInterval(function(){void 0!==s&&s(l,l),e.start(),clearInterval(a)},1e3)}if(null!==e.loading_screen){var n=o/l;1<n&&(n=1);var i=380*n<<0;t.setFillStyle(e.loading_screen.bar_fill),t.drawRoundRect(-190,(e.canvas_height>>2)-30,i,60,10,!0)}},100)},b5.App.prototype.draw=function(){for(var t=this.scenes,e=t.length,o=0;o<e;o++)t[o].draw()},b5.App.prototype.update=function(t){var e=b5.app,o=this.scenes,a=o.length;if(e.dt=t,e.timelines.update(t),void 0!==e.actions&&e.actions.execute(),e.tasks.execute(),null!==this.world){if(0===this.time_step)this.world.Step(t,10,10);else{var n=1;this.adaptive_physics&&(n=this.target_frame_rate/this.avg_fps+.5<<0,1>n?n=1:3<n&&(n=3));for(var r=0;r<n;r++)this.world.Step(this.time_step,10,10)}null!==this.world&&this.world.ClearForces()}for(var r=0;r<a;r++)o[r].update(t);this.cleanupDestroyedScenes(),this.order_changed&&(this.order_changed=!1,b5.Utils.sortLayers(this.scenes))},b5.App.prototype.mainLogic=function(){var n=b5.app,e=Date.now(),t=e-n.last_time;n.last_time=e,n.adt=t/1e3;var o;o=0===n.target_frame_rate?n.adt:1/n.target_frame_rate,.1<o&&(o=.1),n.update(o),n.avg_time+=t,n.avg_frame++,60==n.avg_frame&&(n.avg_frame=0,n.avg_fps=6e4/n.avg_time,n.avg_time=0),n.num_logic++},b5.App.prototype.mainDraw=function(){var s=b5.app,e=b5.Display.getWidth(),t=b5.Display.getHeight(),o=s.inner_width,a=s.inner_height,n=0|e-o,r=0|t-a;(0!=n||0!=r)&&s.setCanvasScalingMethod(),s.mainLogic(),s.clear_canvas&&s.display.clear(!0),s.draw(),s.num_draw++,(0!=n||0!=r)&&s.onResize&&s.onResize(e,t,o,a),requestAnimationFrame(s.mainDraw)},b5.App.prototype.start=function(){null!==this.started&&this.started(),this.mainDraw(),this.dirty()},b5.App.prototype.findHitActor=function(a){var e=null;return null!==this.focus_scene&&(e=this.focus_scene.findHitActor(a)),null===e&&null!==this.focus_scene2&&(e=this.focus_scene2.findHitActor(a)),e},b5.App.prototype.dirty=function(){for(var t=this.scenes,e=t.length,o=0;o<e;o++)t[o].dirty()},b5.App.prototype.setCanvasScalingMethod=function(u){void 0!==u&&(this.canvas_scale_method=u);var e=this.design_width,t=this.design_height,o=b5.Display.getWidth(),a=b5.Display.getHeight();if(!this.fill_screen){var n=!0;switch(this.canvas_scale_method){case b5.App.FitX:n=!0;break;case b5.App.FitY:n=!1;break;case b5.App.FitBest:n=!!(o/e<a/t);break;case b5.App.FitGreatest:n=!!(o>a);break;case b5.App.FitSmallest:n=!!(o<a);break;case b5.App.FitBest2:n=!!(o/e>a/t);}n?a=o*this.design_height/this.design_width:o=a*this.design_width/this.design_height}this.inner_width=o,this.inner_height=a;var r=e,i=t,s=1,c=1;if(this.canvas_scale=this.global_scale,this.canvas_scale_method===b5.App.FitNone);else if(this.canvas_scale_method===b5.App.FitSize)r=o,i=a;else{r=o,i=a,s=r/e,c=i/t;var d=1;switch(this.canvas_scale_method){case b5.App.FitX:d=s;break;case b5.App.FitY:d=c;break;case b5.App.FitBest:d=s<c?s:c;break;case b5.App.FitGreatest:d=r>i?s:c;break;case b5.App.FitSmallest:d=r<i?s:c;break;case b5.App.FitBest2:d=s>c?s:c;}this.canvas_scale=d*this.global_scale}var p=0|r*this.pixel_ratio,l=0|i*this.pixel_ratio;this.canvas.width=p,this.canvas.height=l,this.canvas.style.width=r+"px",this.canvas.style.height=i+"px",this.canvas_cx=r/2,this.canvas_cy=i/2,this.display_width=r,this.display_height=i,this.dirty()},b5.App.prototype.parseAndSetFocus=function(t){new b5.Xoml(this).parseResources(this,[b5.data[t]]),this.order_changed=!0,this.focus_scene=this.findScene(t)},b5.App.prototype.addTask=function(r,e,t,o,a){return this.tasks.add(r,e,t,o,a)},b5.App.prototype.removeTask=function(t){this.tasks.remove(t)},b5.App.prototype.initWorld=function(n,e,t){if(this.box2d){this.world=new Box2D.Dynamics.b2World(new Box2D.Common.Math.b2Vec2(n,e),t);var o=new Box2D.Dynamics.b2ContactListener;o.BeginContact=function(a){var e=a.GetFixtureA().GetBody().GetUserData();void 0!==e.onCollisionStart&&e.onCollisionStart(a),e=a.GetFixtureB().GetBody().GetUserData(),void 0!==e.onCollisionStart&&e.onCollisionStart(a)},o.EndContact=function(a){var e=a.GetFixtureA().GetBody().GetUserData();void 0!==e.onCollisionEnd&&e.onCollisionEnd(a),e=a.GetFixtureB().GetBody().GetUserData(),void 0!==e.onCollisionEnd&&e.onCollisionEnd(a)},this.world.SetContactListener(o)}},"use strict",b5.Scene=function(){this.app=null,this.actors=[],this.removals=[],this.world=null,this.timelines=new b5.TimelineManager,void 0!==b5.ActionsListManager&&(this.actions=new b5.ActionsListManager),this.tasks=new b5.TasksManager,this.events=new b5.EventsManager,this.order_changed=!0,this.name="",this.tag="",this.active=!0,this.visible=!0,this.layer=0,this.x=0,this.y=0,this.w=1024,this.h=768,this.scale=1,this.clip_children=!0,this.clip_shape=null,this.camera_x=0,this.camera_y=0,this.camera_vx=0,this.camera_vy=0,this.vx_damping=1,this.vy_damping=1,this.follow_speed_x=.3,this.follow_speed_y=.3,this.target_x=null,this.target_y=null,this.touch_pan_x=!1,this.touch_pan_y=!1,this.panning=!1,this.min_panning=0,this.world_scale=20,this.time_step=0,this.extents=[0,0,0,0],this.opacity=1,this.frame_count=0,this.touching=!1,this.touchmove=!1,this.draw_reverse=!1,this.bitmaps=[],this.brushes=[],this.shapes=[],this.materials=[],this.sounds=[],this.fonts=[],this.raw=[]},Object.defineProperty(b5.Scene.prototype,"_x",{get:function(){return this.x},set:function(t){this.x!==t&&(this.x=t)}}),Object.defineProperty(b5.Scene.prototype,"_y",{get:function(){return this.y},set:function(t){this.y!==t&&(this.y=t)}}),Object.defineProperty(b5.Scene.prototype,"_layer",{get:function(){return this.layer},set:function(t){this.layer!==t&&(this.layer=t,this.app.order_changed=!0)}}),Object.defineProperty(b5.Scene.prototype,"_clip_shape",{get:function(){return this.clip_shape},set:function(t){this.clip_shape!==t&&(this.clip_shape=b5.Utils.resolveResource(t,"shape"))}}),Object.defineProperty(b5.Scene.prototype,"_av",{set:function(t){this.visible=t,this.active=t}}),b5.Scene.prototype.release=function(){for(var t=0;t<this.actors.length;t++)this.actors[t].release();void 0!==this.onDestroy&&this.onDestroy(),this.world=null,this.actors=null},b5.Scene.prototype.destroy=function(){this.app.removeScene(this)},b5.Scene.prototype.addActor=function(t){return this.actors.push(t),t.scene=this,t},b5.Scene.prototype.removeActor=function(t){this.removals.push(t)},b5.Scene.prototype.removeActorsWithTag=function(t){for(var e=this.actors,o=e.length,a=this.removals,n=0;n<o;n++)e[n].tag===t&&a.push(e[n])},b5.Scene.prototype.cleanupDestroyedActors=function(){var t=this.removals.length;if(0<t)for(var e=this.removals,o=this.actors,a=o.length,n=0,r;n<t;n++){r=e[n];for(var s=0;s<a;s++)if(r===o[s]){r.release(),o.splice(s,1),a--;break}}this.removals=[]},b5.Scene.prototype.findActor=function(t,e){void 0===e&&(e=!1);for(var o=this.actors,a=o.length,n=0;n<a;n++){if(o[n].name===t)return o[n];if(e){var r=o[n].findActor(t,e);if(null!==r)return r}}return null},b5.Scene.prototype.findActorById=function(t,e){void 0===e&&(e=!1);for(var o=this.actors,a=o.length,n=0;n<a;n++){if(o[n].id===t)return o[n];if(e){var r=o[n].findActorById(t,e);if(null!==r)return r}}return null},b5.Scene.prototype.bringToFront=function(){for(var t=this.app.scenes,e=t.length,o=-1,a=0;a<e;a++)if(t[a]===this){o=a;break}0<=o&&(t.splice(o,1),t.push(this))},b5.Scene.prototype.sendToBack=function(){for(var t=this.app.scenes,e=t.length,o=-1,a=0;a<e;a++)if(t[a]===this){o=a;break}0<=o&&(t.splice(o,1),t.unshift(this))},b5.Scene.prototype.onKeyPressBase=function(t){void 0!==this.onKeyPress&&this.onKeyPress(t)},b5.Scene.prototype.onKeyDownBase=function(t){void 0!==this.onKeyDown&&this.onKeyDown(t)},b5.Scene.prototype.onKeyUpBase=function(t){void 0!==this.onKeyUp&&this.onKeyUp(t)},b5.Scene.prototype.onBeginTouchBase=function(t){this.touching=!0,void 0!==this.onBeginTouch&&this.onBeginTouch(t)},b5.Scene.prototype.onEndTouchBase=function(t){this.touching&&void 0!==this.onTapped&&this.onTapped(t),this.touching=!1,this.touchmove=!1,void 0!==this.onEndTouch&&this.onEndTouch(t),this.panning=!1},b5.Scene.prototype.onMoveTouchBase=function(a){if(this.touchmove=!0,void 0!==this.onMoveTouch&&this.onMoveTouch(a),this.touching){var e=this.app,t=0;this.touch_pan_x&&(t=e.touch_drag_x,this.camera_vx=t*e.target_frame_rate,this.camera_x+=t),this.touch_pan_y&&(t=e.touch_drag_y,this.camera_vy=t*e.target_frame_rate,this.camera_y+=t),e.touch_drag_x*e.touch_drag_x+e.touch_drag_y*e.touch_drag_y>this.min_panning&&(this.panning=!0)}},b5.Scene.prototype.onWheelBase=function(e){void 0!==this.onWheel&&this.onWheel(e)},b5.Scene.prototype.initWorld=function(n,e,t){if(this.app.box2d){if(this.app.shared_world)return null===this.app.world&&this.app.initWorld(n,e,t),void(this.world=this.app.world);this.world=new Box2D.Dynamics.b2World(new Box2D.Common.Math.b2Vec2(n,e),t);var o=new Box2D.Dynamics.b2ContactListener;o.BeginContact=function(a){var e=a.GetFixtureA().GetBody().GetUserData();void 0!==e.onCollisionStart&&e.onCollisionStart(a),e=a.GetFixtureB().GetBody().GetUserData(),void 0!==e.onCollisionStart&&e.onCollisionStart(a)},o.EndContact=function(a){var e=a.GetFixtureA().GetBody().GetUserData();void 0!==e.onCollisionEnd&&e.onCollisionEnd(a),e=a.GetFixtureB().GetBody().GetUserData(),void 0!==e.onCollisionEnd&&e.onCollisionEnd(a)},this.world.SetContactListener(o)}},b5.Scene.prototype.draw=function(){if(this.visible){var t=this.app,e=t.canvas_scale*this.scale,o=t.display;if(this.clip_children){var a=t.canvas_cx+this.x,n=t.canvas_cy+this.y;if(o.setTransform(e,0,0,e,a,n),o.saveContext(),null===this.clip_shape)o.clipRect(-this.w/2,-this.h/2,this.w,this.h);else{var r=this.clip_shape;this.clip_shape.type===b5.Shape.TypeBox?o.clipRect(0,0,r.width,r.height):this.clip_shape.type===b5.Shape.TypeCircle?o.clipArc(0,0,r.width,0,2*Math.PI):this.clip_shape.type===b5.Shape.TypePolygon&&o.clipPolygon(r.vertices)}}var i=this.actors,s=i.length;if(this.draw_reverse)for(var l=s-1;0<=l;l--)i[l].draw();else for(var l=0;l<s;l++)i[l].draw();this.clip_children&&o.restoreContext()}},b5.Scene.prototype.baseUpdate=function(t){if(!this.active)return!1;void 0!==this.onTick&&this.onTick(t),this.timelines.update(t),void 0!==this.actions&&this.actions.execute(),this.tasks.execute(),this.updateCamera(t);for(var e=this.actors,o=e.length,a=0;a<o;a++)e[a].update(t);if(null!==this.world&&null===b5.app.world){var n=b5.app;if(0===this.time_step)this.world.Step(t,10,10);else{var r=1;n.adaptive_physics&&(r=n.target_frame_rate/n.avg_fps+.5<<0,1>r?r=1:3<r&&(r=3));for(var a=0;a<r;a++)this.world.Step(this.time_step,10,10)}null!==this.world&&this.world.ClearForces()}return this.frame_count++,this.cleanupDestroyedActors(),this.order_changed&&(this.order_changed=!1,b5.Utils.sortLayers(this.actors)),!0},b5.Scene.prototype.update=function(t){return this.baseUpdate(t)},b5.Scene.prototype.updateCamera=function(l){if(null!==this.target_x&&(0===this.follow_speed_x?(this.camera_x=this.target_x.x,this.camera_vx=0):this.camera_vx+=(this.target_x.x-this.camera_x)*this.follow_speed_x),null!==this.target_y&&(0===this.follow_speed_y?(this.camera_y=this.target_y.y,this.camera_vy=0):this.camera_vy+=(this.target_y.y-this.camera_y)*this.follow_speed_y),this.touching||(this.camera_x+=this.camera_vx*l,this.camera_y+=this.camera_vy*l,this.camera_vx*=this.vx_damping,this.camera_vy*=this.vy_damping),0!==this.camera_x||0!==this.camera_y){var e=this.extents[2],t=this.extents[3],o=this.app.design_width,a=this.app.design_height;if(0!==e&&o<=e){var n=o/2,r=this.extents[0]+n,i=this.extents[0]+e-n;this.camera_x<r&&(this.camera_x=r,this.camera_vx=0),this.camera_x>i&&(this.camera_x=i,this.camera_vx=0)}if(o>e&&(this.camera_x=0),0!==t&&a<=t){var s=a/2,c=this.extents[1]+s,d=this.extents[1]+t-s;this.camera_y<c&&(this.camera_y=c,this.camera_vy=0),this.camera_y>d&&(this.camera_y=d,this.camera_vy=0)}a>t&&(this.camera_y=0)}},b5.Scene.prototype.findHitActor=function(t){for(var e=this.actors,o=e.length,a=null,n=o-1;0<=n;n--)if(a=e[n].hitTest(t),null!==a)return a;return a},b5.Scene.prototype.dirty=function(){for(var t=this.actors,e=t.length,o=0;o<e;o++)t[o].dirty()},b5.Scene.prototype.addResource=function(a,e){if(void 0===e)throw"Resource type not specified";var t=b5.Utils.getResFromType(this,e);null!==t&&(t.push(a),a.parent=this)},b5.Scene.prototype.removeResource=function(t,e){var o=b5.Utils.getResFromType(this,e);if(null!==o)for(var a=o.length,n=0;n<a;n++)if(o[n]===t)return o.parent=null,void o.splice(n,1)},b5.Scene.prototype.playTimeline=function(a){this.active||(this.active=!0,this.visible=!0);var e=this.timelines.find(a);null!==e&&e.restart()},b5.Scene.prototype.addTask=function(r,e,t,o,a){this.tasks.add(r,e,t,o,a)},b5.Scene.prototype.removeTask=function(t){this.tasks.remove(t)},b5.Scene.prototype.findResource=function(t,e){var o=b5.Utils.getResFromType(this,e);if(null===o)return null;for(var a=o.length,n=0;n<a;n++)if(o[n].name===t)return o[n];return this.app.findResource(t,e)},b5.Scene.prototype.areResourcesLoaded=function(){for(var t=this.bitmaps,e=t.length,o=0;o<e;o++)if(t[o].preload&&!t[o].loaded)return!1;return!0},b5.Scene.prototype.countResourcesNeedLoading=function(){for(var t=0,e=this.bitmaps,o=e.length,a=0;a<o;a++)e[a].preload&&t++;for(e=this.sounds,o=e.length,a=0;a<o;a++)e[a].preload&&t++;for(e=this.fonts,o=e.length,a=0;a<o;a++)e[a].preload&&t++;for(e=this.raw,o=e.length,a=0;a<o;a++)e[a].preload&&t++;return t},"use strict",b5.Xoml=function(t){this.current_scene=null,this.app=t},b5.Xoml.prototype.parseScene=function(t,e){this.app.debug&&console.log("Parsing Scene "+e.Name);var o=new b5.Scene;null!==t&&(t.addScene(o),e.Current?t.focus_scene=o:e.Current2&&(t.focus_scene2=o)),this.current_scene=o,o.name=e.Name,void 0!==e.Tag&&(o.tag=e.Tag),o.x=e.Position[0],o.y=e.Position[1],void 0!==e.CanvasSize&&(o.w=e.CanvasSize[0],o.h=e.CanvasSize[1]),void 0!==e.Layer&&(o.layer=e.Layer),void 0!==e.Visible&&(o.visible=e.Visible),void 0!==e.Active&&(o.active=e.Active),void 0!==e.Physics&&e.Physics&&(o.initWorld(e.Gravity[0],e.Gravity[1],e.DoSleep),void 0!==e.PhysicsTimestep&&(o.time_step=e.PhysicsTimestep),void 0!==e.WorldScale&&(o.world_scale=e.WorldScale)),void 0!==e.ClipChildren&&(o.clip_children=e.ClipChildren),"Both"===e.TouchPan?(o.touch_pan_x=!0,o.touch_pan_y=!0):"X"===e.TouchPan?o.touch_pan_x=!0:"Y"===e.TouchPan&&(o.touch_pan_y=!0),o.extents[0]=e.Extents[0],o.extents[1]=e.Extents[1],o.extents[2]=e.Extents[2],o.extents[3]=e.Extents[3],o.follow_speedx=e.FollowSpeed[0],o.follow_speedy=e.FollowSpeed[1];var a=e.UserProps;if(void 0!==a)for(var n=0;n<a.length;n++)o[a[n].N]=a[n].V;var r=e.TimelineCollection;if(void 0!==r)for(var n=0;n<r.length;n++)this.parseTimeline(o,r[n]);var i=e.ActionsList;if(void 0!==i)for(var n=0;n<i.length;n++)this.parseActionsList(o,i[n]);return void 0!==e.Alpha&&(o.opacity=e.Alpha),void 0===e.Cn||this.parseResources(o,e.Cn),void 0!==e.ClipShape&&""!==e.ClipShape&&(o.clip_shape=o.findResource(e.ClipShape,"shape")),""!==e.TargetX&&(o.target_x=o.findActor(e.TargetX)),""!==e.TargetY&&(o.target_y=o.findActor(e.TargetY)),void 0!==e.VelocityDamping&&(o.vx_damping=e.VelocityDamping[0],o.vy_damping=e.VelocityDamping[1]),void 0!==e.OnCreate&&(o.onCreate=Function(e.OnCreate)),void 0!==e.OnDestroy&&(o.onDestroy=Function(e.OnDestroy)),void 0!==e.OnTick&&(o.onTick=Function("dt",e.OnTick)),void 0!==e.OnTapped&&(o.onTapped=Function("touch_pos",e.OnTapped)),void 0!==e.OnBeginTouch&&(o.onBeginTouch=Function("touch_pos",e.OnBeginTouch)),void 0!==e.OnEndTouch&&(o.onEndTouch=Function("touch_pos",e.OnEndTouch)),void 0!==e.OnMoveTouch&&(o.onMoveTouch=Function("touch_pos",e.OnMoveTouch)),void 0!==e.OnWheel&&(o.onWheel=Function("event",e.OnWheel)),void 0!==e.OnKeyPress&&(o.onKeyPress=Function("event",e.OnKeyPress)),void 0!==e.OnKeyDown&&(o.onKeyDown=Function("event",e.OnKeyDown)),void 0!==e.OnKeyUp&&(o.onKeyUp=Function("event",e.OnKeyUp)),void 0!==o.onCreate&&o.onCreate(),o},b5.Xoml.prototype.parseBrush=function(t,e){this.app.debug&&console.log("Parsing Brush "+e.N);var o;if(0===e.BT){var a=e.RC,n=t.findResource(e.I,"bitmap"),r=e.F;if(0===r.length)o=new b5.ImageAtlas(e.N,n,a[0],a[1],a[2],a[3],a[4],a[5]);else{o=new b5.ImageAtlas(e.N,n);for(var i=0,s;i<r.length;i++)s=r[i],o.addFrame(s[0],s[1],s[2],s[3],s[5],s[6])}var c=e.AN;if(void 0!==c&&0!==c.length)for(var i=0;i<c.length;i++)o.addAnim(c[i].N,c[i].F,c[i].S)}else{var d=e.ST;o=new b5.Gradient(e.N),o.rad_radius=e.RR,void 0!==o.rad_radius&&(o.rad_pos=[0,0,0,0]),void 0!==e.RP&&(o.rad_pos=e.RP);for(var i=0,p;i<d.length;i++)p=d[i],o.addColourStop(p.c,p.o);void 0!==e.Angle&&(o.angle=e.Angle)}return t.addResource(o,"brush"),o},b5.Xoml.prototype.parseRaw=function(a,e){this.app.debug&&console.log("Parsing Raw "+e.N);var t=new b5.Raw(e.N,e.Loc,e.P);return a.addResource(t,"raw"),t},b5.Xoml.prototype.parseImage=function(a,e){this.app.debug&&console.log("Parsing Image "+e.N);var t;return t=void 0!==e.Loc2&&b5.app.mobile?new b5.Bitmap(e.N,e.Loc2,e.P):new b5.Bitmap(e.N,e.Loc,e.P),a.addResource(t,"bitmap"),t},b5.Xoml.prototype.parseSound=function(a,e){this.app.debug&&console.log("Parsing Sound "+e.N);var t=new b5.Sound(e.N,e.Loc,e.R);return void 0!==e.P&&(t.preload=1==e.P),void 0!==e.A&&(t.auto_play=1==e.A),void 0!==e.Loc2&&(t.location2=e.Loc2),void 0!==e.L&&(t.loop=1==e.L),t.preload&&t.load(),a.addResource(t,"sound"),t},b5.Xoml.prototype.parseFont=function(a,e){this.app.debug&&console.log("Parsing Font "+e.Name);var t=new b5.Font(e.Name,e.Name,e.Preload);a.addResource(t,"font")},b5.Xoml.prototype.parseShape=function(t,e){this.app.debug&&console.log("Parsing Shape "+e.N);var o=new b5.Shape(e.N);if(o.width=e.W,o.height=e.H,"Circle"===e.ST)o.type=b5.Shape.TypeCircle;else if("Box"===e.ST)o.type=b5.Shape.TypeBox;else if("Polygon"===e.ST){o.type=b5.Shape.TypePolygon;for(var a=e.V,n=a.length,r=0;r<n;r++)o.vertices.push(a[r]);if(void 0!==e.CV)for(var s=e.CV.length,r=0;r<s;r++){var i=[],a=e.CV[r];n=a.length;for(var l=0;l<n;l++)i.push(a[l]);o.convexVertices.push(i)}}return t.addResource(o,"shape"),o},b5.Xoml.prototype.parseMaterial=function(a,e){this.app.debug&&console.log("Parsing Material "+e.N);var t=new b5.Material;return t.name=e.N,t.type=e.MT,t.density=e.D,t.friction=e.F,t.restitution=e.R,t.gravity_scale=e.GS,t.fixed_rotation=e.FR,t.is_bullet=e.IB,a.addResource(t,"material"),t},b5.Xoml.prototype.parseTimeline=function(t,e){var o=new b5.Timeline;void 0!==e.N&&(o.name=e.N);for(var a=e.A.length,n=0;n<a;n++){var r=e.A[n],i=new b5.Animation(o,t,r.P,r.V,r.TI,0,r.E);if(void 0!==r.T&&(i.tween=r.T),void 0!==r.D&&(i.destroy=r.D),void 0!==r.R&&(i.repeat=r.R),i.repeats_left=i.repeat,void 0!==r.TS&&(i.time_scale=r.TS),void 0!==r.DA&&(i.deactivate=r.DA),void 0!==r.DE&&(i.delay=-r.DE),!1===r.A&&i.pause(),void 0!==r.OnE&&(i.onEnd=Function(r.OnE)),void 0!==r.OnR&&(i.onRepeat=Function(r.OnR)),void 0!==r.AC)for(var s=0;s<r.AC.length;s++)if(""!==r.Actions[s]){var l=r.AC[s];i.setAction(s,Function(l))}o.anims.push(i)}t.timelines.add(o)},b5.Xoml.prototype.parseActionsList=function(t,e){var o=new b5.ActionsList;void 0!==e.N&&(o.name=e.N),void 0!==e.R&&(o.repeats_left=e.R,o.repeat=e.R),o.destroy=!1;for(var a=e.A,n=a.length,r=0;r<n;r++){var i=a[r][0],s;"Custom"===i&&(i=a[r][1],a[r].splice(0,1)),s=b5.ActionsRegister.create(i,a[r]),o.actions.push(s)}void 0!==e.P&&e.P&&o.play(),t.actions.add(o)},b5.Xoml.prototype.parseActor=function(t,e,o){var a=null;if(t.scene=this.current_scene,void 0!==o.N&&(t.name=o.N),void 0!==o.T&&(t.tag=o.T),void 0!==o.V&&(t.visible=o.V),void 0!==o.Ac&&(t.active=o.Ac),void 0!==o.L&&(t.layer=o.L),void 0!==o.P&&(t.x=o.P[0],t.y=o.P[1]),void 0!==o.S&&(t.scale_x=o.S[0],t.scale_y=o.S[1]),void 0!==o.SM&&(t.scale_method=o.SM),void 0!==o.St&&(t.stacking=o.St),void 0!==o.FX&&o.FX&&(t.scale_x=-t.scale_x),void 0!==o.FY&&o.FY&&(t.scale_y=-t.scale_y),void 0!==o.Or&&(t.orphaned=o.Or),void 0!==o.A&&(t.rotation=o.A),void 0!==o.C&&(t.fill_style=o.C),void 0!==o.SC&&(t.stroke_style=o.SC),void 0!==o.F&&(t.filled=o.F),void 0!==o.FS&&(t.stroke_filled=o.FS),void 0!==o.Th&&(t.stroke_thickness=o.Th),void 0!==o.Sz&&(t.w=o.Sz[0],t.h=o.Sz[1],t.ow=o.Sz[0],t.oh=o.Sz[1]),void 0!==o.O&&(t.ox=o.O[0],t.oy=o.O[1]),t.absolute_origin=!!(-1>=t.ox||1<=t.ox||-1>=t.oy||1<=t.oy),void 0!==o.Al&&(t.opacity=o.Al),void 0!==o.SAl&&(t.stroke_opacity=o.SAl),void 0!==o.UPO&&(t.use_parent_opacity=o.UPO),void 0!==o.D&&(t.depth=o.D),t.use_transform=!0,void 0!==o.Ve&&(t.vx=o.Ve[0],t.vy=o.Ve[1]),void 0!==o.AV&&(t.vr=o.AV),void 0!==o.VD&&(t.vx_damping=o.VD[0],t.vy_damping=o.VD[1]),void 0!==o.AVD&&(t.vr_damping=o.AVD),void 0!==o.WP&&(t.wrap_position=o.WP),void 0!==o.IC&&(t.ignore_camera=o.IC),void 0!==o.CC&&(t.clip_children=o.CC),void 0!==o.To&&(t.touchable=o.To),void 0!==o.Ht&&(t.hit=o.Ht),void 0!==o.Bu&&(t.bubbling=o.Bu),void 0!==o.Do){var n=o.Do;void 0!==o.Dse&&(t.dock_screen=o.Dse),"top"===n||"topleft"===n||"topright"===n||"topcentre"===n?t.dock_y=b5.Actor.Dock_Top:"bottom"===n||"bottomleft"===n||"bottomright"===n||"bottomcentre"===n?t.dock_y=b5.Actor.Dock_Bottom:("middleleft"===n||"middleright"===n||"middlecentre"===n)&&(t.dock_y=b5.Actor.Dock_Middle),"left"===n||"topleft"===n||"bottomleft"===n||"middleleft"===n?t.dock_x=b5.Actor.Dock_Left:"right"===n||"topright"===n||"bottomright"===n||"middleright"===n?t.dock_x=b5.Actor.Dock_Right:("topcentre"===n||"bottomcentre"===n||"middlecentre"===n)&&(t.dock_x=b5.Actor.Dock_Centre)}if(void 0!==o.M&&(t.margin[0]=o.M[0],t.margin[1]=o.M[1],t.margin[2]=o.M[2],t.margin[3]=o.M[3]),void 0!==o.CM&&(t.clip_margin[0]=o.CM[0],t.clip_margin[1]=o.CM[1],t.clip_margin[2]=o.CM[2],t.clip_margin[3]=o.CM[3]),void 0!==o.Sh&&(t.shadow=o.Sh),void 0!==o.ShO&&(t.shadow_x=o.ShO[0],t.shadow_y=o.ShO[1]),void 0!==o.ShB&&(t.shadow_blur=o.ShB),void 0!==o.ShC&&(t.shadow_colour=o.ShC),void 0!==o.CO&&(t.composite_op=o.CO),void 0!==o.BG)if(a=this.current_scene.findResource(o.BG,"brush"),void 0!==a.stops){var r={x:0,y:0},i={x:0,y:1};void 0!==o.GS&&(r.x=o.GS[0],r.y=o.GS[1]),void 0!==o.GE&&(i.x=o.GE[0],i.y=o.GE[1]);var s=a.createStyle(t.w,t.h,r,i);t.filled?t.fill_style=s:t.stroke_filled&&(t.stroke_style=s)}else t.atlas=a;if(void 0!==o.Pd&&(t.padding=o.Pd),void 0!==o.DA&&null!==a&&t.playAnim(o.DA),3===o.RA){var c=o.TX,d=o.TY;t.map_width=o.MW,t.map_height=o.MH,t.tile_width=o.TW,t.tile_height=o.TH,t.display_width=o.DW,t.display_height=o.DH,t.map=o.Map,t.collision_map=o.CMap,t.generateTiles(c*d,t.tile_width,t.tile_height,t.tile_width*c)}null!==e&&e.addActor(t),void 0!==o.OnC&&(t.onCreate=Function(o.OnC)),void 0!==o.OnD&&(t.onDestroy=Function(o.OnD)),void 0!==o.OnTi&&(t.onTick=Function("dt",o.OnTi)),void 0!==o.OnT&&(t.touchable=!0,t.onTapped=Function("touch_pos",o.OnT)),void 0!==o.OnDBT&&(t.touchable=!0,t.onDblTapped=Function("touch_pos",o.OnDBT)),void 0!==o.OnB&&(t.touchable=!0,t.onBeginTouch=Function("touch_pos",o.OnB)),void 0!==o.OnE&&(t.touchable=!0,t.onEndTouch=Function("touch_pos",o.OnE)),void 0!==o.OnM&&(t.touchable=!0,t.onMoveTouch=Function("touch_pos",o.OnM)),void 0!==o.OnL&&(t.touchable=!0,t.onLostTouchFocus=Function("touch_pos",o.OnL)),void 0!==o.OnH&&(t.onHover=Function("touch_pos",o.OnH)),void 0!==o.OnHE&&(t.onHoverEnd=Function("touch_pos",o.OnHE)),void 0!==o.OnCS&&(t.onCollisionStart=Function("contact",o.OnCS)),void 0!==o.OnCE&&(t.onCollisionEnd=Function("contact",o.OnCE));var p=o.UP;if(void 0!==p)for(var l=0;l<p.length;l++)t[p[l].N]=p[l].V;var T=o.Fxs;if(void 0!==T)for(var l=0;l<T.length;l++){var _={},u=null,h=null;void 0!==T[l].M&&""!==T[l].M&&(u=this.current_scene.findResource(T[l].M,"material")),void 0!==T[l].S&&""!==T[l].S&&(h=this.current_scene.findResource(T[l].S,"shape")),0===l&&t.initBody(u.type,u.fixed_rotation,u.is_bullet),null===h?1===o.RA?(_.type=b5.Shape.TypeCircle,_.width=t.w/2):(_.type=b5.Shape.TypeBox,_.width=t.w,_.height=t.h):_.shape=h,null!==u&&(_.material=u),_.is_sensor=T[l].R,void 0!==T[l].C&&(_.collision_category=T[l].C[0],_.collision_mask=T[l].C[1],_.collision_group=T[l].C[2]),t.addFixture(_)}var g=o.Jts;if(void 0!==g)for(var l=0;l<g.length;l++){var _=[],m=this.current_scene.findActor(g[l].AB);_.type=g[l].T,_.actor_b=m,_.anchor_a={x:g[l].OA[0],y:g[l].OA[1]},_.anchor_b={x:g[l].OB[0],y:g[l].OB[1]},_.self_collide=g[l].SC,_.damping=g[l].D,_.frequency=g[l].F,_.limit_joint=g[l].LJ,_.lower_limit=g[l].LL,_.upper_limit=g[l].UL,_.motor_enabled=g[l].ME,_.motor_speed=g[l].MS,_.max_motor_torque=g[l].MT,_.max_motor_force=g[l].MF,_.ground_a={x:g[l].GA[0],y:g[l].GA[1]},_.ground_b={x:g[l].GB[0],y:g[l].GB[1]},_.axis={x:g[l].A[0],y:g[l].A[1]},_.ratio=g[l].R,t.addJoint(_)}var y=o.TC;if(void 0!==y)for(var l=0;l<y.length;l++)this.parseTimeline(t,y[l]);var A=o.AL;if(void 0!==A)for(var l=0;l<A.length;l++)this.parseActionsList(t,A[l]);if(null!==t.body){var S=Box2D.Common.Math.b2Vec2;t.body.SetLinearVelocity(new S(t.vx,t.vy)),t.body.SetAngularVelocity(t.vr),t.body.SetLinearDamping(t.vx_damping),t.body.SetAngularDamping(t.vr_damping)}return void 0!==o.Cn&&this.parseResources(t,o.Cn),t.setBodyActive(t.active),t},b5.Xoml.prototype.parseIcon=function(s,e,t){this.app.debug&&console.log("Parsing Icon "+e.N);var o=0,a;if(void 0!==e.RA&&(o=e.RA),!0!==t&&e.Tmp)return null;if(1===o)a=new b5.ArcActor;else if(2===o)a=new b5.RectActor;else if(3===o)a=new b5.MapActor;else if(0===o)if(void 0!==e.Geo){a=new b5.PolygonActor;var n=this.current_scene.findResource(e.Geo,"shape");null!==n&&(a.points=n.vertices)}else a=new b5.Actor;return void 0!==e.CR&&(a.corner_radius=e.CR),this.parseActor(a,s,e),1===o&&(a.radius=a.w/2),void 0!==e.Vi&&e.Vi&&(a.makeVirtual(),void 0!==e.SR&&(a.scroll_range[0]=e.SR[0],a.scroll_range[1]=e.SR[1],a.scroll_range[2]=e.SR[2],a.scroll_range[3]=e.SR[3]),void 0!==e.SPos&&(a.scroll_pos_x=e.SPos[0],a.scroll_pos_y=e.SPos[1])),void 0!==e.ClV&&(a.clip_virtual=e.ClV),void 0!==e.IAS&&(a.ignore_atlas_size=e.IAS),void 0!==e.SCl&&(a.self_clip=e.SCl),void 0!==e.CS&&(a.clip_shape=this.current_scene.findResource(e.CS,"shape")),!0===e.Ca&&(a.cached=!0,a.cache=!0),!0===e.Me&&(a.merge_cache=!0),!0===e.Rd&&(a.round_pixels=!0),void 0!==a.onCreate&&a.onCreate(),a},b5.Xoml.prototype.parseLabel=function(a,e){this.app.debug&&console.log("Parsing Label "+e.N);var t=new b5.LabelActor;return t.text=e.Text,t.font=e.Font,t.text_align=e.AlignH,t.text_baseline=e.AlignV,this.parseActor(t,a,e),void 0!==e.Lh&&(t.line_height=e.Lh),!0===e.Ca&&(t.cached=!0,t.cache=!0),!0===e.Me&&(t.merge_cache=!0),!0===e.Rd&&(t.round_pixels=!0),void 0!==e.Mw&&(t.max_width=e.Mw),void 0!==t.onCreate&&t.onCreate(),t},b5.Xoml.prototype.parseResources=function(t,e){for(var o=e.length,a=0;a<o;a++)this.parseResource(t,e[a])},b5.Xoml.prototype.parseResource=function(n,e,t){var o=e.RT;return"Scene"===o?this.parseScene(n,e):"Brush"===o?this.parseBrush(n,e):"Image"===o?this.parseImage(n,e):"Sound"===o?this.parseSound(n,e):"Font"===o?this.parseFont(n,e):"Shape"===o?this.parseShape(n,e):"Material"===o?this.parseMaterial(n,e):"Icon"===o?this.parseIcon(n,e,t):"Label"===o?this.parseLabel(n,e):"GFile"===o?this.parseRaw(n,e):null},b5.Xoml.findResource=function(t,e,o){void 0!==t.Cn&&(t=t.Cn);for(var a=t.length,n=0;n<a;n++)if(t[n].RT.toLowerCase()===o&&t[n].N===e)return t[n];return null},"use strict",b5.Maths=function(){},b5.Maths.mulMatrix=function(u,e){var t=e[0],o=e[1],a=e[2],n=e[3],r=e[4],i=e[5],s=u[0],c=u[1],d=u[2],p=u[3],l=u[4],g=u[5];u[0]=t*s+a*c,u[1]=o*s+n*c,u[2]=t*d+a*p,u[3]=o*d+n*p,u[4]=t*l+a*g+r,u[5]=o*l+n*g+i},b5.Maths.preMulMatrix=function(u,e){var t=u[0],o=u[1],a=u[2],n=u[3],r=u[4],i=u[5],s=e[0],c=e[1],d=e[2],p=e[3],l=e[4],g=e[5];u[0]=t*s+a*c,u[1]=o*s+n*c,u[2]=t*d+a*p,u[3]=o*d+n*p,u[4]=t*l+a*g+r,u[5]=o*l+n*g+i},b5.Maths.vecMulMatrix=function(r,e,t){var o=r*t[0]+e*t[2]+t[4],s=r*t[1]+e*t[3]+t[5];return{x:o,y:s}},"use strict",b5.Display=function(a){this.canvas=a,this.cache_ctx=null,this.context=a.getContext("2d"),this.context.lineWidth=1,this.context.strokeStyle="black",this.context.fillStyle="black",this.context.globalAlpha=1,this.context.lineJoin="round",this.context.lineCap="round";var e=b5.Utils.GetDevicePixelRatio(),t=b5.Utils.GetBackingStorePixelRatio(this.context);e!==t&&(b5.app.pixel_ratio=e/t)},b5.Display.getWidth=function(){return document.documentElement.clientWidth},b5.Display.getHeight=function(){return document.documentElement.clientHeight},b5.Display.prototype.getCanvasPoint=function(n,e){var t=b5.app,o=t.canvas_scale;return{x:(n-this.canvas.offsetLeft-t.canvas_cx)/o,y:(e-this.canvas.offsetTop-t.canvas_cy)/o}},b5.Display.prototype.clear=function(){var a=b5.app,e=this.context,t=b5.app.pixel_ratio;e.setTransform(t,0,0,t,0,0),e.clearRect(0,0,a.display_width,a.display_height)},b5.Display.prototype.drawPolygon=function(i,e,t,o){var a=this.context;null!==this.cache_ctx&&(a=this.cache_ctx);var n=t.length;a.beginPath(),a.moveTo(t[0]+i,t[1]+e);for(var r=2;r<n;r+=2)a.lineTo(t[r]+i,t[r+1]+e);return o?a.fill():(a.lineTo(t[0]+i,t[1]+e),a.stroke()),this},b5.Display.prototype.drawLine=function(r,e,t,o){var a=this.context;return null!==this.cache_ctx&&(a=this.cache_ctx),a.beginPath(),a.moveTo(r,e),a.lineTo(t,o),a.stroke(),this},b5.Display.prototype.drawRect=function(s,e,t,o,a){var n=this.context;return null!==this.cache_ctx&&(n=this.cache_ctx),a?n.fillRect(s,e,t,o):n.strokeRect(s,e,t,o),this},b5.Display.prototype.drawRoundRect=function(s,e,t,o,a,n){var r=this.context;null!==this.cache_ctx&&(r=this.cache_ctx),r.beginPath(),r.moveTo(s+a,e),r.lineTo(s+t-a,e),r.quadraticCurveTo(s+t,e,s+t,e+a),r.lineTo(s+t,e+o-a),r.quadraticCurveTo(s+t,e+o,s+t-a,e+o),r.lineTo(s+a,e+o),r.quadraticCurveTo(s,e+o,s,e+o-a),r.lineTo(s,e+a),r.quadraticCurveTo(s,e,s+a,e),r.closePath(),n?r.fill():r.stroke()},b5.Display.prototype.drawArc=function(s,e,t,o,a,n){var r=this.context;return null!==this.cache_ctx&&(r=this.cache_ctx),r.beginPath(),r.arc(s,e,t,o,a),n?r.fill():r.stroke(),this},b5.Display.prototype.drawAtlasImage=function(l,e,t,o,a,n,r,i,s){if(!(0>=l.width||0>=l.height)){var c=this.context;null!==this.cache_ctx&&(c=this.cache_ctx),c.drawImage(l,e,t,o,a,n,r,i,s)}},b5.Display.prototype.drawImage=function(s,e,t,o,a){if(!(0>=s.width||0>=s.height)){var n=this.context;null!==this.cache_ctx&&(n=this.cache_ctx),void 0===o?n.drawImage(s,e,t):n.drawImage(s,e,t,o,a)}},b5.Display.prototype.drawText=function(t,e,o,a,n){var r=this.context;null!==this.cache_ctx&&(r=this.cache_ctx),t=""+t;for(var i=t.split("\n"),s=0;s<i.length;s++)n?r.fillText(i[s],e,o):r.strokeText(i[s],e,o),o+=a},b5.Display.prototype.drawTextWrap=function(t,e,o,a,n,r,i){if(0===a)return void this.drawText(t,e,o,n,r);t=""+t;var s=this.measureTextLines(t,a);1<s&&"middle"===i&&(o-=n*s/2-n/2);var c=this.context;null!==this.cache_ctx&&(c=this.cache_ctx);for(var d=t.split("\n"),p=0;p<d.length;p++){for(var l="",_=d[p].split(" "),u=0;u<_.length;u++){var h=l+_[u]+" ",g=c.measureText(h);g.width>a?(r?c.fillText(l,e,o):c.strokeText(l,e,o),l=_[u]+" ",o+=n):l=h}r?c.fillText(l,e,o):c.strokeText(l,e,o),o+=n}},b5.Display.prototype.measureText=function(a){var e=this.context;return null!==this.cache_ctx&&(e=this.cache_ctx),e.measureText(a)},b5.Display.prototype.measureTextLines=function(t,e){if(0===e)return 1;var o=this.context;null!==this.cache_ctx&&(o=this.cache_ctx);for(var a=t.split("\n"),n=0,r=0;r<a.length;r++){for(var i="",s=a[r].split(" "),c=0;c<s.length;c++){var d=i+s[c]+" ",p=o.measureText(d);p.width>e?(i=s[c]+" ",n++):i=d}n++}return n},b5.Display.prototype.setTransform=function(l,e,t,o,a,n){var r=b5.app.pixel_ratio;l*=r,e*=r,t*=r,o*=r,a*=r,n*=r;var i=this.context;null!==this.cache_ctx&&(i=this.cache_ctx),i.setTransform(l,e,t,o,a,n)},b5.Display.prototype.clipRect=function(r,e,t,o){var a=this.context;null!==this.cache_ctx&&(a=this.cache_ctx),a.beginPath(),a.rect(r,e,t,o),a.clip()},b5.Display.prototype.clipArc=function(s,e,t,o,a){var n=this.context;null!==this.cache_ctx&&(n=this.cache_ctx),n.beginPath(),n.arc(s,e,t,o,a),n.clip()},b5.Display.prototype.clipPolygon=function(n){var e=this.context;null!==this.cache_ctx&&(e=this.cache_ctx),e.beginPath();var t=n.length;e.moveTo(n[0],n[1]);for(var o=2;o<t;o+=2)e.lineTo(n[o],n[o+1]);e.closePath(),e.clip()},b5.Display.prototype.saveContext=function(){var t=this.context;null!==this.cache_ctx&&(t=this.cache_ctx),t.save()},b5.Display.prototype.restoreContext=function(){var t=this.context;null!==this.cache_ctx&&(t=this.cache_ctx),t.restore()},b5.Display.prototype.createCache=function(){return document.createElement("canvas")},b5.Display.prototype.createCacheWithSize=function(a,e){var t=document.createElement("canvas");return t.width=a,t.height=e,t},b5.Display.prototype.setGlobalAlpha=function(t){this.context.globalAlpha=t},b5.Display.prototype.setGlobalCompositeOp=function(t){this.context.globalCompositeOperation=t},b5.Display.prototype.setShadow=function(r,e,t,o){var a=this.context;null!==this.cache_ctx&&(a=this.cache_ctx),a.shadowOffsetX=r,a.shadowOffsetY=e,a.shadowColor=t,a.shadowBlur=o},b5.Display.prototype.setShadowOff=function(){var t=this.context;null!==this.cache_ctx&&(t=this.cache_ctx),t.shadowColor="transparent"},b5.Display.prototype.setFillStyle=function(a){var e=this.context;null!==this.cache_ctx&&(e=this.cache_ctx),e.fillStyle=a},b5.Display.prototype.setStrokeStyle=function(a){var e=this.context;null!==this.cache_ctx&&(e=this.cache_ctx),e.strokeStyle=a},b5.Display.prototype.setLineWidth=function(a){var e=this.context;null!==this.cache_ctx&&(e=this.cache_ctx),e.lineWidth=a},b5.Display.prototype.setFont=function(a){var e=this.context;null!==this.cache_ctx&&(e=this.cache_ctx),e.font=a},b5.Display.prototype.setTextAlign=function(a){var e=this.context;null!==this.cache_ctx&&(e=this.cache_ctx),e.textAlign=a},b5.Display.prototype.setTextBaseline=function(a){var e=this.context;null!==this.cache_ctx&&(e=this.cache_ctx),e.textBaseline=a},b5.Display.prototype.setSmoothing=function(a){var e=this.context;null!==this.cache_ctx&&(e=this.cache_ctx),e.imageSmoothingEnabled=a,e.mozImageSmoothingEnabled=a,e.oImageSmoothingEnabled=a,e.imageSmoothingEnabled=a,e.msImageSmoothingEnabled=a},b5.Display.prototype.setCache=function(t){this.cache_ctx=null===t?null:t.getContext("2d")},"use strict",b5.Raw=function(n,e,t,o){this.data=null,this.parent=null,this.name=n,this.location=e,this.onload=o,this.preload=t,this.loaded=!1,this.load_retry=0,t&&this.load()},b5.Raw.prototype.load=function(){var a=this;b5.Utils.loadJSON(this.location,!1,function(e){a.data=e,null===e?(a.load_retry++,3<a.load_retry?(b5.app.onResourceLoaded(a,!0),void 0!==onload&&onload(e)):a.load()):(a.loaded=!0,b5.app.onResourceLoaded(a,!1))},!1)},b5.Raw.prototype.destroy=function(){this.data=null,null!==this.parent&&this.parent.removeResource(this,"raw")},function(){function g(a,o){document.addEventListener?a.addEventListener("scroll",o,!1):a.attachEvent("scroll",o)}function m(a){document.body?a():document.addEventListener?document.addEventListener("DOMContentLoaded",function e(){document.removeEventListener("DOMContentLoaded",e),a()}):document.attachEvent("onreadystatechange",function e(){("interactive"==document.readyState||"complete"==document.readyState)&&(document.detachEvent("onreadystatechange",e),a())})}function b(t){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(t)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function i(a,e){a.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+e+";"}function h(a){var e=a.a.offsetWidth,n=e+100;return a.f.style.width=n+"px",a.c.scrollLeft=n,a.b.scrollLeft=a.b.scrollWidth+100,a.g!==e&&(a.g=e,!0)}function r(e,t){function o(){var o=a;h(o)&&o.a.parentNode&&t(o.g)}var a=e;g(e.b,o),g(e.c,o),h(e)}function e(a,e){var t=e||{};this.family=a,this.style=t.style||"normal",this.weight=t.weight||"normal",this.stretch=t.stretch||"normal"}function o(){if(null===t)if(n()&&/Apple/.test(window.navigator.vendor)){var a=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);t=!!a&&603>parseInt(a[1],10)}else t=!1;return t}function n(){return null===c&&(c=!!document.fonts),c}function a(){if(null===d){var t=document.createElement("div");try{t.style.font="condensed 100px sans-serif"}catch(t){}d=""!==t.style.font}return d}function s(o,e){return[o.style,o.weight,a()?o.stretch:"","100px",e].join(" ")}var l=null,t=null,d=null,c=null;e.prototype.load=function(a,e){var d=this,p=a||"BESbswy",c=0,_=e||3E3,h=new Date().getTime();return new Promise(function(g,y){if(n()&&!o()){var e=new Promise(function(n,e){function t(){new Date().getTime()-h>=_?e():document.fonts.load(s(d,"\""+d.family+"\""),p).then(function(a){1<=a.length?n():setTimeout(t,25)},function(){e()})}t()}),t=new Promise(function(a,e){c=setTimeout(e,_)});Promise.race([t,e]).then(function(){clearTimeout(c),g(d)},function(){y(d)})}else m(function(){function t(){var o;(o=-1!=n&&-1!=T||-1!=n&&-1!=S||-1!=T&&-1!=S)&&((o=n!=T&&n!=S&&T!=S)||(null===l&&(o=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),l=!!o&&(536>parseInt(o[1],10)||536===parseInt(o[1],10)&&11>=parseInt(o[2],10))),o=l&&(n==e&&T==e&&S==e||n==a&&T==a&&S==a||n==f&&T==f&&S==f)),o=!o),o&&(P.parentNode&&P.parentNode.removeChild(P),clearTimeout(c),g(d))}function o(){if(new Date().getTime()-h>=_)P.parentNode&&P.parentNode.removeChild(P),y(d);else{var a=document.hidden;(!0===a||void 0===a)&&(n=u.a.offsetWidth,T=m.a.offsetWidth,S=A.a.offsetWidth,t()),c=setTimeout(o,50)}}var u=new b(p),m=new b(p),A=new b(p),n=-1,T=-1,S=-1,e=-1,a=-1,f=-1,P=document.createElement("div");P.dir="ltr",i(u,s(d,"sans-serif")),i(m,s(d,"serif")),i(A,s(d,"monospace")),P.appendChild(u.a),P.appendChild(m.a),P.appendChild(A.a),document.body.appendChild(P),e=u.a.offsetWidth,a=m.a.offsetWidth,f=A.a.offsetWidth,o(),r(u,function(a){n=a,t()}),i(u,s(d,"\""+d.family+"\",sans-serif")),r(m,function(a){T=a,t()}),i(m,s(d,"\""+d.family+"\",serif")),r(A,function(a){S=a,t()}),i(A,s(d,"\""+d.family+"\",monospace"))})})},"object"==typeof module?module.exports=e:(window.FontFaceObserver=e,window.FontFaceObserver.prototype.load=e.prototype.load)}(),"use strict",b5.Font=function(a,e,t){this.data=null,this.parent=null,this.name=a,this.font_name=e,this.preload=t,this.loaded=!1,this.load_retry=0,t&&this.load()},b5.Font.prototype.load=function(){var a=this,e=new FontFaceObserver(this.font_name);e.load().then(function(){a.loaded=!0,b5.app.onResourceLoaded(a,!1)},function(){a.load_retry++,3<a.load_retry?b5.app.onResourceLoaded(a,!0):a.load(),b5.app.debug&&console.log("Error: Could not load font")})},b5.Font.prototype.destroy=function(){this.data=null,null!==this.parent&&this.parent.removeResource(this,"font")},"use strict",b5.Bitmap=function(n,e,t,o){this.image=new Image,this.parent=null,this.name=n,this.location=e,this.onload=o,this.preload=t,this.loaded=!1,this.load_retry=0,t&&this.load()},b5.Bitmap.prototype.load=function(){var t=this;this.image.onload=function(){b5.app.onResourceLoaded(t,!1),void 0!==t.onload&&(0>=t.image.width||0>=t.image.naturalWidth||0>=t.image.naturalHeight||!t.image.complete?t.onload(t,!1):t.onload(t,!0))},this.image.onerror=function(){t.load_retry++,3<t.load_retry?(b5.app.onResourceLoaded(t,!0),void 0!==t.onload&&t.onload(t,!1)):t.load()},this.image.src=this.location},b5.Bitmap.prototype.destroy=function(){this.image=null,null!==this.parent&&this.parent.removeResource(this,"bitmap")},"use strict",b5.Gradient=function(a,e){this.parent=null,this.stops=void 0===e?[]:e,this.name=a},b5.Gradient.prototype.addColourStop=function(a,o){this.stops.push({c:a,offs:o})},b5.Gradient.prototype.getColourStop=function(t){return this.stops[t]},b5.Gradient.prototype.getMaxStops=function(){return this.stops.length},b5.Gradient.prototype.destroy=function(){null!==this.parent&&this.parent.removeResource(this,"brush")},b5.Gradient.prototype.createStyle=function(t,e,o,a){if(void 0!==this.stops){var n=0,r=0,s=1,i=0;void 0!==o&&(n=o.x,r=o.y),void 0!==a&&(s=a.x,i=a.y),n=n*t-t/2,r=r*e-e/2,s=s*t-t/2,i=i*e-e/2;for(var d=void 0===this.rad_pos?b5.app.display.context.createLinearGradient(n,r,s,i):b5.app.display.context.createRadialGradient(this.rad_pos[0]*t,this.rad_pos[1]*t,this.rad_radius[0]*t,this.rad_pos[2]*t,this.rad_pos[3]*t,this.rad_radius[1]*t),c=0,l;c<this.stops.length;c++)l=this.stops[c],d.addColorStop(l.offs,l.c);return d}return null},"use strict",b5.ImageAtlas=function(l,e,t,o,a,n,r,i){this.frames=[],this.anims=[],this.parent=null,this.name=l,this.bitmap=e,void 0!==t&&void 0!==o&&void 0!==a&&void 0!==n&&this.addFrame(t,o,a,n,r,i)},b5.ImageAtlas.prototype.addFrame=function(s,i,l,d,c,p){void 0===c&&(c=0),void 0===p&&(p=0),this.frames.push({x:s,y:i,w:l,h:d,ox:c,oy:p})},b5.ImageAtlas.prototype.getFrame=function(t){return this.frames[t]},b5.ImageAtlas.prototype.getMaxFrames=function(){return this.frames.length},b5.ImageAtlas.prototype.addAnim=function(a,e,n){this.anims[a]={indices:e,speed:n}},b5.ImageAtlas.prototype.getAnim=function(t){return this.anims[t]},b5.ImageAtlas.prototype.generate=function(l,e,t,o,a,n,r){void 0!==r&&(r=a*n);for(var i=e,s=0,c;s<n;s++){c=l;for(var d=0;d<a;d++)if(this.addFrame(c,i,t,o,0,0),c+=t,r--,0>=r)return;i+=o}},b5.ImageAtlas.prototype.destroy=function(){null!==this.parent&&this.parent.removeResource(this,"brush")},"use strict",b5.Material=function(t){this.parent=null,this.name=t,this.type="static",this.density=1,this.friction=.1,this.restitution=.1,this.gravity_scale=1,this.fixed_rotation=!1,this.is_bullet=!1},b5.Material.prototype.destroy=function(){null!==this.parent&&this.parent.removeResource(this,"material")},"use strict",b5.Shape=function(t){this.parent=null,this.name=t,this.type=b5.Shape.TypeBox,this.width=0,this.height=0,this.vertices=[],this.convexVertices=[]},b5.Shape.TypeBox=0,b5.Shape.TypeCircle=1,b5.Shape.TypePolygon=2,b5.Shape.prototype.typeToConst=function(){return"polygon"===shape.type?b5.Shape.TypePolygon:"circle"===shape.type?b5.Shape.TypeCircle:b5.Shape.TypeBox},b5.Shape.prototype.remove=function(){null!==this.parent&&this.parent.removeResource(this,"shape")},"use strict",b5.Sound=function(a,e,t){this.parent=null,this.snd=null,this.buffer=null,this.name=a,this.location=e,this.location2=null,this.loop=!1,this.reuse=void 0!==t&&t,this.preload=!1,this.loaded=!1,this.auto_play=!1,this.load_retry=0},b5.Sound.context=null,b5.Sound.blocked=!1,b5.Sound.muted=!1,b5.Sound.unblock=function(){b5.Sound.blocked&&b5.Sound.context.resume().then(function(){b5.Sound.blocked=!1})},b5.Sound.init=function(){try{if(window.AudioContext=window.AudioContext||window.webkitAudioContext,void 0===window.AudioContext)return!1;b5.Sound.context=new AudioContext,"suspended"===b5.Sound.context.state&&(b5.Sound.blocked=!0)}catch(e){return b5.app.instants&&FBInstant&&FBInstant.logEvent("Web audio error"),!1}return!0},b5.Sound.isSupported=function(){return!0},b5.Sound.prototype.load=function(s,e){if(!b5.app.use_web_audio)return this.snd=new Audio(this.location),void b5.app.onResourceLoaded(this,!0);var t=b5.app.debug,i=this,a=this.location,n=this.auto_play;b5.Utils.loadJSON(a,!1,function(t){null===t?(i.load_retry++,3<i.load_retry?b5.app.onResourceLoaded(i,!0):i.load()):b5.Sound.context.decodeAudioData(t,function(t){i.buffer=t,b5.app.onResourceLoaded(i,!1),n&&i.play(s),void 0!==e&&e(this)},function(e){console.log(e)})},!0)||(i.load_retry++,3<i.load_retry?b5.app.onResourceLoaded(i,!0):i.load())},b5.Sound.prototype.play=function(n){if(!0!=n&&b5.Sound.muted)return null;if(!b5.app.use_web_audio)return this.snd.loop=this.loop,void this.snd.play();if(null===this.buffer)return null;var e=b5.Sound.context,t=e.createBufferSource(),r=e.createGain();return t.buffer=this.buffer,t.loop=this.loop,t.connect(r),r.connect(e.destination),r.gain.value=1,t.start(0),this.auto_play&&(this.snd={source:t,gain:r}),{source:t,gain:r}},b5.Sound.prototype.stop=function(){var t=this.snd;return null===t||void 0===t?void 0:b5.app.use_web_audio?void(t=t.source,t.stop()):void t.pause()},b5.Sound.prototype.pause=function(){if(!b5.app.use_web_audio)return void(void 0).pause();this.snd},b5.Sound.prototype.destroy=function(){},"use strict",b5.Utils=function(){},b5.Utils.loadJSON=function(r,e,s,o){var a=new XMLHttpRequest;a.open("GET",r,!e),a.overrideMimeType("application/json"),o&&(a.responseType="arraybuffer"),e||(a.onreadystatechange=function(){4===a.readyState&&(200===a.status||0===a.status?o?s(a.response):s(a.responseText):s(null))});try{a.send()}catch(e){return!1}return e&&(200===a.status?o?s(a.response):s(a.responseText):s(null)),!0},b5.Utils.loadJS=function(a){var e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("src",a),"undefined"!=typeof e&&document.getElementsByTagName("head")[0].appendChild(e)},b5.Utils.SendGetRequest=function(a,e){var t=new XMLHttpRequest;t.onreadystatechange=function(){null!=e&&e(t)},t.open("GET",a,!0),t.send()},b5.Utils.SendPostJSONRequest=function(n,e,t){var o=new XMLHttpRequest;o.open("POST",n,!0),o.setRequestHeader("Content-Type","application/json"),o.onreadystatechange=function(){null!=t&&t(o)},o.send(JSON.stringify(e))},b5.Utils.findObjectFromPath=function(t,e){var o=t.split("."),a=o.length;if(0===a)return null;var n=b5.app.findScene(o[0]);if(1===a&&void 0===e)return n;if(1<a){if(void 0===e){for(var r=1;r<a;r++)n=n.findActor(o[r]);return null===n?(b5.app.debug&&console.log("Warning: Could not resolve object with path '"+t+"'"),null):n}var i=e.charAt(0);if("t"==i&&"timeline"===e){for(var r=1;r<a-1;r++)n=n.findActor(o[r]);return null===n?(b5.app.debug&&console.log("Warning: Could not resolve timeline with path '"+t+"'"),null):n.timelines.find(o[a-1])}if("a"==i&&"actions"===e){for(var r=1;r<a-1;r++)n=n.findActor(o[r]);return null===n?(b5.app.debug&&console.log("Warning: Could not resolve actions with path '"+t+"'"),null):n.actions.find(o[a-1])}}return b5.app.debug&&console.log("Warning: Could not resolve object with path '"+t+"'"),null},b5.Utils.findResourceFromPath=function(s,e){var t=s.split("."),o=t.length;if(0===o)return null;var a=b5.app;1<o&&(a=b5.app.findScene(s));var n=a.findResource(t[o-1],e);return null===n?(b5.app.debug&&console.log("Warning: Could not resolve resource for path '"+s+"'"),null):n},b5.Utils.resolveObject=function(a,o){return void 0===a?null:"string"==typeof a?b5.Utils.findObjectFromPath(a,o):a},b5.Utils.resolveResource=function(a,o){return void 0===a?null:"string"==typeof a?b5.Utils.findResourceFromPath(a,o):a},b5.Utils.getResFromType=function(a,e){var t=e.charAt(0);if("b"==t){if("brush"===e)return a.brushes;if("bitmap"===e)return a.bitmaps}else if("s"==t){if("sound"===e)return a.sounds;if("shape"===e)return a.shapes}else{if("m"==t&&"material"===e)return a.materials;if("raw"===e)return a.raw;if("font"===e)return a.fonts}return null},b5.Utils.sortLayers=function(t){var e=t.length,o,a;for(a=0;a<e;a++)for(o=a+1;o<e;o++)if(t[a].layer>t[o].layer){var n=t[a];t[a]=t[o],t[o]=n}},b5.Utils.CreateCanvas=function(r,e,t,o){var a=document.createElement("canvas");return a.id=r,a.width=e,a.style.width=e+"px",a.height=t,a.style.height=t+"px",a.style.zIndex=o,a.style.position="fixed",a.style.display="block",a.style.left=0,a.style.top=0,a.style.right=0,a.style.bottom=0,a.style.margin="auto",a.style.pointerEvents="auto",a.style.visibility="visible",document.body.appendChild(a),a},b5.Utils.GetDevicePixelRatio=function(){if(void 0!==window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;return void 0!==t&&void 0!==t.systemXDPI&&void 0!==t.logicalXDPI&&t.systemXDPI>t.logicalXDPI?t.systemXDPI/t.logicalXDPI:1},b5.Utils.GetBackingStorePixelRatio=function(t){return t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1},b5.Utils.RunafterTime=function(a,e,t){b5.app.addTask("",a,1,e,t)},b5.Utils.SetFullscreen=function(t){document.fullscreenEnabled&&(t?null==document.fullscreenElement&&b5.app.canvas.requestFullscreen():null!=document.fullscreenElement&&document.exitFullscreen())},b5.Utils.IsMobile=function(){var t=navigator.userAgent;return function(){return t.match(/Android/i)}()||function(){return t.match(/BlackBerry/i)}()||function(){return t.match(/iPhone|iPad|iPod/i)}()||function(){return t.match(/Opera Mini/i)}()||function(){return t.match(/IEMobile/i)}()},b5.Utils.GetPlatform=function(){var t=navigator.userAgent;return t.match(/Android/i)?"ANDROID":t.match(/BlackBerry/i)?"BLACKBERRY":t.match(/iPhone|iPad|iPod/i)?"IOS":t.match(/Opera Mini/i)?"OPERA":t.match(/IEMobile/i)?"WINDOWS":"WEB"},"use strict";var Log=function(t){b5.app.debug&&console.log(t)};b5.Instants=function(){this.onPaused=void 0,this.onPaymentsReady=void 0,this.videoAdsSupported=!1,this.interstitialAdsSupported=!1,this.purchasingSupported=!1,this.purchasingReady=!1,this.preloadedVideoAd=null,this.preloadedInterAd=null,this.adReady=!1,this.adLoadErrorCode=0,this.adLoadError="",this.adLoadErrorCount="",this.vadReady=!1,this.vadLoadErrorCode=0,this.vadLoadError="",this.shotCache=null;var t=this;"undefined"!=typeof FBInstant&&(FBInstant.onPause(function(){void 0!==t.onPaused&&t.onPaused()}),FBInstant.payments.onReady(function(){Log(">>>> Purchasing is ready"),t.purchasingReady=!0,void 0!==t.onPaymentsReady&&t.onPaymentsReady()}))},b5.Instants.prototype.Init=function(){var t=FBInstant.getSupportedAPIs();t.includes("getInterstitialAdAsync")?this.interstitialAdsSupported=!0:FBInstant.logEvent("Ads inter not supported",1),t.includes("getRewardedVideoAsync")?this.videoAdsSupported=!0:FBInstant.logEvent("Ads video not supported",1),t.includes("payments.purchaseAsync")&&(this.purchasingSupported=!0)},b5.Instants.prototype.StartInit=function(t){FBInstant.initializeAsync().then(function(){FBInstant.logEvent("FB Init Success"),void 0!==t&&t()})},b5.Instants.prototype.StartGame=function(t){FBInstant.startGameAsync().then(function(){0<b5.app.total_load_errors?FBInstant.logEvent("FB Load Errors"):FBInstant.logEvent("FB Load Finished"),void 0!==t&&t(!0)}).catch(function(){t(!1)})},b5.Instants.prototype.SetLoadingProgress=function(t){FBInstant.setLoadingProgress(t)},b5.Instants.prototype.GetLocale=function(){return FBInstant.getLocale()},b5.Instants.prototype.GetPlatform=function(){return FBInstant.getPlatform()},b5.Instants.prototype.GetEntryPointData=function(){return FBInstant.getEntryPointData()},b5.Instants.prototype.GetPlayerID=function(){return FBInstant.player.getID()},b5.Instants.prototype.GetPlayerName=function(){return FBInstant.player.getName()},b5.Instants.prototype.GetPlayerPhotoURL=function(){return FBInstant.player.getPhoto()},b5.Instants.prototype.GetConnectedPlayers=function(a){FBInstant.player.getConnectedPlayersAsync().then(function(e){void 0!==a&&a(e)}).catch(function(e){Log(e),void 0!==a&&a(null)})},b5.Instants.prototype.GetContext=function(){return FBInstant.context},b5.Instants.prototype.GetContextPlayers=function(a){FBInstant.context.getPlayersAsync().then(function(e){void 0!==a&&a(e)}).catch(function(e){Log(e),void 0!==a&&a(null)})},b5.Instants.prototype.ChooseContext=function(a){FBInstant.context.chooseAsync().then(function(){void 0!==a&&a(!0)}).catch(function(e){Log(e),void 0!==a&&a(!1,e)})},b5.Instants.prototype.ChooseContextWithOptions=function(a,o){FBInstant.context.chooseAsync(a).then(function(){void 0!==o&&o(!0)}).catch(function(t){Log(t),void 0!==o&&o(!1,t)})},b5.Instants.prototype.SwitchContext=function(a,o){FBInstant.context.switchAsync(a).then(function(){void 0!==o&&o(!0)}).catch(function(t){Log(t),void 0!==o&&o(!1,t)})},b5.Instants.prototype.CreateContext=function(a,o){FBInstant.context.createAsync(a).then(function(){void 0!==o&&o(!0,FBInstant.context.getID())}).catch(function(t){Log(t),void 0!==o&&o(!1,t)})},b5.Instants.prototype.SetPlayerData=function(a,o){FBInstant.player.setDataAsync(a).then(function(){void 0!==o&&o(!0),Log("Player data set")}).catch(function(t){Log(t),void 0!==o&&o(!1)})},b5.Instants.prototype.GetPlayerData=function(a,o){FBInstant.player.getDataAsync(a).then(function(t){void 0!==o&&o(t),Log("Player data loaded")}).catch(function(t){Log(t),void 0!==o&&o()})},b5.Instants.prototype.SetSessionData=function(t){FBInstant.setSessionData(t)},b5.Instants.prototype.SwitchGame=function(a,e,n){FBInstant.switchGameAsync(a,e).catch(function(e){void 0!==n&&n(e)})},b5.Instants.prototype.PostCustomUpdate=function(s,l,d,c,p,u,g){FBInstant.updateAsync({action:"CUSTOM",cta:s,image:l,text:{default:d,localizations:{}},template:c,data:{myReplayData:u},strategy:p,notification:"NO_PUSH"}).then(function(){Log("Message was sent successfully"),void 0!==g&&g()}).catch(function(t){Log(t),void 0!==g&&g()})},b5.Instants.prototype.PostLeaderboardUpdate=function(a,n,r){FBInstant.updateAsync({action:"LEADERBOARD",name:a,text:n}).then(function(){Log("Leaderboard message was sent successfully"),void 0!==r&&r()}).catch(function(t){Log(t),void 0!==r&&r()})},b5.Instants.prototype.ShareCustom=function(r,s,i,l,d){FBInstant.shareAsync({intent:r,image:s,text:i,data:{myReplayData:l}}).then(function(){Log("Shared successfully"),void 0!==d&&d(!0)}).catch(function(t){Log(t),void 0!==d&&d(!1,t)})},b5.Instants.prototype.GetLeaderboardEntries=function(n,r,t,o){FBInstant.getLeaderboardAsync(n).then(function(a){return a.getEntriesAsync(t,r)}).then(function(t){Log("Leaderboard retrieved"),Log(t),null!=o&&o(t)}).catch(function(t){Log(t),null!=o&&o(null)})},b5.Instants.prototype.GetConnectedLeaderboardEntries=function(n,r,t,o){FBInstant.getLeaderboardAsync(n).then(function(a){return a.getConnectedPlayerEntriesAsync(t,r)}).then(function(t){Log("Connected leaderboard retrieved"),Log(t),null!=o&&o(t)}).catch(function(t){Log(t),null!=o&&o(null)})},b5.Instants.prototype.SetLeaderboardScore=function(n,r,t,o){FBInstant.getLeaderboardAsync(n).then(function(a){return a.setScoreAsync(r,t)}).then(function(t){Log("Score saved"),Log(t),null!=o&&o(!0,t)}).catch(function(t){Log(t),null!=o&&o(!1)})},b5.Instants.prototype.GetLeaderboardScore=function(a,o){FBInstant.getLeaderboardAsync(a).then(function(t){return t.getPlayerEntryAsync()}).then(function(t){Log("Score retrieved"),Log(t),null!=o&&o(t)}).catch(function(t){null!=o&&o(null),console.error(t)})},b5.Instants.prototype.CanMatchPlayer=function(a){FBInstant.checkCanPlayerMatchAsync().then(function(e){void 0!==a&&a(e)}).catch(function(e){Log(e),void 0!==a&&a(!1)})},b5.Instants.prototype.MatchPlayer=function(a,e,t){FBInstant.matchPlayerAsync(a,e).then(function(){void 0!==t&&t(!0)}).catch(function(){void 0!==t&&t(!1)})},b5.Instants.prototype.Quit=function(){FBInstant.quit()},b5.Instants.prototype.GetPlayerPhotoURL=function(){return FBInstant.player.getPhoto()},b5.Instants.prototype.PreloadVideoAd=function(a,e){if(this.videoAdsSupported){var n=this;FBInstant.getRewardedVideoAsync(e).then(function(t){return n.preloadedVideoAd=t,n.preloadedVideoAd.loadAsync()}).then(function(){n.vadReady=!0,n.vadLoadError="",n.vadLoadErrorCode=0,Log("Rewarded video preloaded"),void 0!==a&&a(!0)}).catch(function(e){n.vadReady=!1,n.vadLoadError=e.message,n.vadLoadErrorCode=e.error,Log("Rewarded video failed to preload: "+e.message),void 0!==a&&a(!1,e)})}},b5.Instants.prototype.ReloadVideoAd=function(a){if(this.videoAdsSupported){if(!this.preloadedVideoAd)return void(void 0!==a&&a(!1,{message:"invalid vid instance"}));var e=this;this.preloadedVideoAd.loadAsync().then(function(){e.vadReady=!0,e.vadLoadError="",e.vadLoadErrorCode=0,Log("Rewarded video preloaded"),void 0!==a&&a(!0)}).catch(function(t){e.vadReady=!1,e.vadLoadError=t.message,e.vadLoadErrorCode=t.error,Log("Rewarded video failed to preload: "+t.message),void 0!==a&&a(!1,t)})}},b5.Instants.prototype.ShowVideoAd=function(e){var t=this;return this.vadReady=!1,this.videoAdsSupported?this.preloadedVideoAd?void this.preloadedVideoAd.showAsync().then(function(){void 0!==e&&(Log("Rewarded video paid"),e(!0))}).catch(function(o){Log("Rewarded video playback error: "+o.message),t.vadLoadError=o.message,t.vadLoadErrorCode=o.error,void 0!==e&&e(!1,o)}):void(void 0!==e&&e(!1)):(Log("Rewarded video ads not supported on this device"),t.vadLoadError="Not supported",t.vadLoadErrorCode=-1,void 0!==e&&e(!1),void FBInstant.logEvent("ADVS no support",1))},b5.Instants.prototype.PreloadInterstitialAd=function(a,e){if(this.interstitialAdsSupported){var n=this;FBInstant.getInterstitialAdAsync(e).then(function(t){return n.preloadedInterAd=t,n.preloadedInterAd.loadAsync()}).then(function(){n.adReady=!0,n.adLoadError="",n.adLoadErrorCode=0,Log("Interstitial preloaded"),void 0!==a&&a(!0)}).catch(function(e){n.adReady=!1,n.adLoadError=e.message,n.adLoadErrorCode=e.error,Log("Interstitial failed to preload: "+e.message),void 0!==a&&a(!1,e)})}},b5.Instants.prototype.ReloadInterstitialAd=function(a){if(this.interstitialAdsSupported){if(!this.preloadedInterAd)return void(void 0!==a&&a(!1,{message:"invalid inter instance"}));var e=this;this.preloadedInterAd.loadAsync().then(function(){e.adReady=!0,e.adLoadError="",e.adLoadErrorCode=0,Log("Interstitial preloaded"),void 0!==a&&a(!0)}).catch(function(t){e.adReady=!1,e.adLoadError=t.message,e.adLoadErrorCode=t.error,Log("Interstitial failed to preload: "+t.message),void 0!==a&&a(!1,t)})}},b5.Instants.prototype.ShowInterstitialAd=function(e){var t=this;return this.adReady=!1,this.interstitialAdsSupported?this.preloadedInterAd?void this.preloadedInterAd.showAsync().then(function(){void 0!==e&&e(!0)}).catch(function(o){Log("Interstitial playback error: "+o.message),t.adLoadError=o.message,t.adLoadErrorCode=o.error,void 0!==e&&e(!1,o)}):void(void 0!==e&&e(!0)):(Log("Interstitial ads not supported on this device"),t.adLoadError="Not supported",t.adLoadErrorCode=-1,void 0!==e&&e(!1),void FBInstant.logEvent("ADIS no support",1))},b5.Instants.prototype.CreateScreenshotCache=function(a){var e=b5.app.display;if(this.shotCache=e.createCache(),null===this.shotCache)return null;var t=b5.app.canvas;this.shotCache.height=a,this.shotCache.width=t.width*(this.shotCache.height/t.height)},b5.Instants.prototype.GetScreenshot=function(s,e,t){var o=b5.app.display;if(null===this.shotCache)return null;try{var a=b5.app.canvas;void 0!==s&&(a=s);var n=this.shotCache.height/a.height/b5.app.pixel_ratio;return o.setCache(this.shotCache),o.setTransform(n,0,0,n,0,0),o.drawImage(a,0,0),o.setCache(null),"jpeg"===e?this.shotCache.toDataURL("image/jpeg",t):this.shotCache.toDataURL("image/png")}catch(t){return null}},b5.Instants.prototype.LogEvent=function(a,e,t){FBInstant.logEvent(a,t,e)},b5.Instants.prototype.GetProducts=function(a){FBInstant.payments.getCatalogAsync().then(function(e){void 0!==a&&a(e)}).catch(function(e){Log(e),void 0!==a&&a(null)})},b5.Instants.prototype.GetUnconsumedProducts=function(a){FBInstant.payments.getPurchasesAsync().then(function(e){void 0!==a&&a(e)}).catch(function(e){Log(e),void 0!==a&&a(null)})},b5.Instants.prototype.BuyProduct=function(a,n,r){FBInstant.payments.purchaseAsync({productID:a,developerPayload:n}).then(function(t){void 0!==r&&r(t)}).catch(function(e){Log("Purchase error: "+e.message),void 0!==r&&r(null,e)})},b5.Instants.prototype.ConsumeProduct=function(a,e){FBInstant.payments.consumePurchaseAsync(a).then(function(){void 0!==e&&e(!0)}).catch(function(t){Log("Purchase consumption error: "+t.message),void 0!==e&&e(!1,t)})},b5.Instants.prototype.CreateShortcut=function(a){FBInstant.canCreateShortcutAsync().then(function(e){e?FBInstant.createShortcutAsync().then(function(){console.log("Shortcut created"),void 0!==a&&a(!0)}).catch(function(e){console.log("Shortcut creation error "+e),void 0!==a&&a(!1)}):void 0!==a&&a(!1)})},b5.Instants.instance=new b5.Instants,"use strict",b5.A_ChangeActions=function(a,e){this.actions=a,this.action=e},b5.A_ChangeActions.prototype.onInit=function(){this.actions=b5.Utils.resolveObject(this.actions,"actions");var a=this.actions;if(null!==a){var e=this.action;"play"===e?a.play():"pause"===e?a.pause():"restart"===e&&a.restart()}},b5.ActionsRegister.register("ChangeActions",function(t){return new b5.A_ChangeActions(t[1],t[2])}),"use strict",b5.A_CreateExplosion=function(l,e,t,o,a,n,r,i,s,c){this.container=l,this.actor=c,this.count=e,this.type=t,this.duration=o,this.speed=a,this.spin_speed=n,this.rate=r,this.damping=i,this.properties=s},b5.A_CreateExplosion.prototype.onInit=function(){this.container=b5.Utils.resolveObject(this.container),this.actor=b5.Utils.resolveObject(this.actor);var t=new b5.ParticleActor;this.container.addActor(t),t.generateExplosion(this.count,this.type,this.duration,this.speed,this.spin_speed,this.rate,this.damping,this.properties),null!==this.actor&&(t._x=this.actor.x,t._y=this.actor.y,t._rotation=this.actor.rotation)},b5.ActionsRegister.register("CreateExplosion",function(t){return new b5.A_CreateExplosion(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10])}),b5.A_CreatePlume=function(l,e,t,o,a,n,r,i,s,c){this.container=l,this.actor=c,this.count=e,this.type=t,this.duration=o,this.speed=a,this.spin_speed=n,this.rate=r,this.damping=i,this.properties=s},b5.A_CreatePlume.prototype.onInit=function(){this.container=b5.Utils.resolveObject(this.container),this.actor=b5.Utils.resolveObject(this.actor);var t=new b5.ParticleActor;this.container.addActor(t),t.generatePlume(this.count,this.type,this.duration,this.speed,this.spin_speed,this.rate,this.damping,this.properties),null!==this.actor&&(t._x=this.actor.x,t._y=this.actor.y,t._rotation=this.actor.rotation)},b5.ActionsRegister.register("CreatePlume",function(t){return new b5.A_CreatePlume(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10])}),"use strict",b5.A_AttractX=function(l,e,t,o,a,n,r,i,s){this.target=l,this.container=e,this.min_x=t,this.max_x=o,this.min_y=a,this.max_y=n,this.strength=r,this.stop=i,this.bounce=s},b5.A_AttractX.prototype.onTick=function(){this.target=b5.Utils.resolveObject(this.target),this.container=b5.Utils.resolveObject(this.container);for(var t=this.target,e=this.container.actors,o=e.length,a=t.x,n=t.y,r=this.min_x,m=this.max_x,T=this.min_y,c=this.max_y,d=this.strength,p=this.stop,l=this.bounce,y=0,_;y<o;y++)if(_=e[y],void 0!==_.attract){var u=_.y-n;if(u>T&&u<c){var h=a-_.x;h<r&&h>-r?p&&(_.x<a?_._x=a-r:_.x>a&&(_._x=a+r),_.vx=l?-_.vx:0):h>r&&h<m?_.vx+=d:h>-m&&h<-r&&(_.vx-=d)}}return!0},b5.ActionsRegister.register("AttractX",function(t){return new b5.A_AttractX(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9])}),b5.A_AttractY=function(l,e,t,o,a,n,r,i,s){this.target=l,this.container=e,this.min_y=t,this.max_y=o,this.min_x=a,this.max_x=n,this.strength=r,this.stop=i,this.bounce=s},b5.A_AttractY.prototype.onTick=function(){this.target=b5.Utils.resolveObject(this.target),this.container=b5.Utils.resolveObject(this.container);for(var t=this.target,e=this.container.actors,o=e.length,a=t.x,n=t.y,r=this.min_y,m=this.max_y,T=this.min_x,c=this.max_x,d=this.strength,p=this.stop,l=this.bounce,y=0,_;y<o;y++)if(_=e[y],void 0!==_.attract){var u=_.x-a;if(u>T&&u<c){var h=n-_.y;h<r&&h>-r?p&&(_.y<n?_._y=n-r:_.y>n&&(_._y=n+r),_.vy=l?-_.vy:0):h>r&&h<m?_.vy+=d:h>-m&&h<-r&&(_.vy-=d)}}return!0},b5.ActionsRegister.register("AttractY",function(t){return new b5.A_AttractY(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9])}),b5.A_Attract=function(s,e,t,o,a,n,r){this.target=s,this.container=e,this.min_dist=t,this.max_dist=o,this.strength=a,this.stop=n,this.bounce=r},b5.A_Attract.prototype.onTick=function(){var t=Math.sqrt;this.target=b5.Utils.resolveObject(this.target),this.container=b5.Utils.resolveObject(this.container);for(var e=this.target,o=this.container.actors,a=o.length,n=e.x,r=e.y,i=this.min_dist,s=this.max_dist,d=this.strength,c=this.stop,l=this.bounce,p=t(i),_=0,u;_<a;_++)if(u=o[_],void 0!==u.attract){var h=u.x-n,g=u.y-r,m=h*h+g*g;m>i&&m<s?(m=t(m),u.vx-=d*h/m,u.vy-=d*g/m):m<i&&(m=t(m),c&&(u._x=n+p*h/m,u._y=r+p*g/m,l?(u.vx=-u.vx,u.vy=-u.vy):(u.vx=0,u.vy=0)))}return!0},b5.ActionsRegister.register("Attract",function(t){return new b5.A_Attract(t[1],t[2],t[3],t[4],t[5],t[6],t[7])}),"use strict",b5.A_Sound=function(a,e){this.sound=a,this.action=e},b5.A_Sound.prototype.onInit=function(){this.sound=b5.Utils.resolveResource(this.sound,"sound");var a=this.sound;if(null!==a){var e=this.action;"play"===e?a.play():"pause"===e?a.pause():"stop"===e&&a.stop()}},b5.ActionsRegister.register("Sound",function(t){return new b5.A_Sound(t[1],t[2])}),"use strict",b5.A_ChangeTimeline=function(a,e){this.timeline=a,this.action=e},b5.A_ChangeTimeline.prototype.onInit=function(){this.timeline=b5.Utils.resolveObject(this.timeline,"timeline");var a=this.timeline;if(null!==a){var e=this.action;"play"===e?a.play():"pause"===e?a.pause():"restart"===e&&a.restart()}},b5.ActionsRegister.register("ChangeTimeline",function(t){return new b5.A_ChangeTimeline(t[1],t[2])}),"use strict",b5.A_Wait=function(t){this.duration=t},b5.A_Wait.prototype.onInit=function(){this.time=Date.now()},b5.A_Wait.prototype.onTick=function(){return Date.now()-this.time<1e3*this.duration},b5.ActionsRegister.register("Wait",function(t){return new b5.A_Wait(t[1])}),b5.A_SetProps=function(a,e){this.target=a,this.properties=e},b5.A_SetProps.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target);var a=this.target,e=this.properties;for(var t in e)a[t]=e[t]},b5.ActionsRegister.register("SetProps",function(t){return new b5.A_SetProps(t[1],t[2])}),b5.A_AddProps=function(a,e){this.target=a,this.properties=e},b5.A_AddProps.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target);var a=this.target,e=this.properties;for(var t in e)a[t]+=e[t]},b5.ActionsRegister.register("AddProps",function(t){return new b5.A_AddProps(t[1],t[2])}),b5.A_TweenProps=function(s,e,t,o,a,n){this.target=s,this.props=e,this.start=t,this.end=o,this.duration=a,this.ease=n},b5.A_TweenProps.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target),this.time=Date.now();for(var t=this.target,e=this.props,o=this.start,a=e.length,n=0;n<a;n++)t[e[n]]=o[n]},b5.A_TweenProps.prototype.onTick=function(){var t=Date.now()-this.time,e=this.duration;if(0!==e){var o=this.props,a=this.start,n=this.end,r=o.length,i=this.target,s=this.ease,d=t/(1e3*e);1<d&&(d=1);for(var c=0;c<r;c++)i[o[c]]=a[c]+(n[c]-a[c])*b5.Ease.easingFuncs[s[c]](d)}return t<1e3*e},b5.ActionsRegister.register("TweenProps",function(t){return new b5.A_TweenProps(t[1],t[2],t[3],t[4],t[5],t[6])}),b5.A_Call=function(a,e){this.func=a,this.params=e},b5.A_Call.prototype.onInit=function(){window[this.func](this.params)},b5.ActionsRegister.register("Call",function(t){return new b5.A_Call(t[1],t[2])}),b5.A_Create=function(r,e,t,o,a){this.objects=r,this.temp_name=t,this.type=o,this.scene=e,this.properties=a},b5.A_Create.prototype.onInit=function(){"string"==typeof this.objects&&(this.objects=b5.data[this.objects]),this.scene=b5.Utils.resolveObject(this.scene);var r=b5.Xoml.findResource(this.objects,this.temp_name,this.type),e=new b5.Xoml(b5.app);e.current_scene=this.scene;var t=e.parseResource(this.scene,r),o=this.properties;for(var a in o)t[a]=o[a]},b5.ActionsRegister.register("Create",function(t){return new b5.A_Create(t[1],t[2],t[3],t[4],t[5])}),b5.A_Destroy=function(t){this.target=t},b5.A_Destroy.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target),this.target.destroy()},b5.ActionsRegister.register("Destroy",function(t){return new b5.A_Destroy(t[1])}),b5.A_FocusScene=function(a,e){this.target=a,this.focus2=e},b5.A_FocusScene.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target);var t=this.target;!0===this.focus2?b5.app.focus_scene2=t:b5.app.focus_scene=t},b5.ActionsRegister.register("FocusScene",function(t){return new b5.A_FocusScene(t[1],t[2])}),"use strict",b5.A_StopMove=function(r,e,t,o,a){this.target=r,this.stop_vx=e,this.stop_vy=t,this.stop_vr=o,this.duration=a},b5.A_StopMove.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target),this.time=Date.now()},b5.A_StopMove.prototype.onTick=function(){if(!(Date.now()-this.time<1e3*this.duration)){var t=this.target;return this.stop_vx&&(t.vx=0),this.stop_vy&&(t.vy=0),this.stop_vr&&(t.vr=0),!1}return!0},b5.ActionsRegister.register("StopMove",function(t){return new b5.A_StopMove(t[1],t[2],t[3],t[4],t[5])}),b5.A_Gravity=function(a,e,t){this.target=a,this.gravity_x=e,this.gravity_y=t},b5.A_Gravity.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target)},b5.A_Gravity.prototype.onTick=function(){this.target=b5.Utils.resolveObject(this.target);var t=this.target;return t.vx+=this.gravity_x,t.vy+=this.gravity_y,!1},b5.ActionsRegister.register("Gravity",function(t){return new b5.A_Gravity(t[1],t[2],t[3])}),b5.A_Move=function(n,e,t,o){this.target=n,this.dx=e,this.dy=t,this.duration=o,this.x=n.x,this.y=n.y},b5.A_Move.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target);var t=this.target;null!=this.dx&&(t.vx=this.dx/this.duration),null!=this.dy&&(t.vy=this.dy/this.duration),this.time=Date.now()},b5.A_Move.prototype.onTick=function(){return Date.now()-this.time<1e3*this.duration},b5.ActionsRegister.register("Move",function(t){return new b5.A_Move(t[1],t[2],t[3],t[4])}),b5.A_MoveTo=function(s,e,t,o,a,n){this.target=s,this.duration=o,this.x=e,this.y=t,this.sx=s.x,this.sy=s.y,this.ease_x=a||b5.Ease.linear,this.ease_y=n||b5.Ease.linear},b5.A_MoveTo.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target);var t=this.target;this.time=Date.now(),this.sx=t.x,this.sy=t.y},b5.A_MoveTo.prototype.onTick=function(){var a=this.target,e=Date.now()-this.time,t=e/(1e3*this.duration);return 1<t&&(t=1),null!=this.x&&(a._x=this.sx+(this.x-this.sx)*b5.Ease.easingFuncs[this.ease_x](t)),null!=this.y&&(a._y=this.sy+(this.y-this.sy)*b5.Ease.easingFuncs[this.ease_y](t)),Date.now()-this.time<1e3*this.duration},b5.ActionsRegister.register("MoveTo",function(t){return new b5.A_MoveTo(t[1],t[2],t[3],t[4],t[5],t[6])}),b5.A_MoveWithSpeed=function(n,e,t,o){this.target=n,this.speed=e,this.duration=t,this.ease=o},b5.A_MoveWithSpeed.prototype.onInit=function(){if(this.target=b5.Utils.resolveObject(this.target),this.time=Date.now(),0===this.duration){var a=this.target,e=this.speed,n=a.rotation;a.vx=e*Math.sin(n),a.vy=-e*Math.cos(n)}},b5.A_MoveWithSpeed.prototype.onTick=function(){var s=Date.now()-this.time,e=this.duration;if(0!==e){var t=this.target,o=t.rotation,a=s/(1e3*e);1<a&&(a=1);var n=this.speed*b5.Ease.easingFuncs[this.ease](a);t.vx=n*Math.sin(o),t.vy=-n*Math.cos(o)}return s<1e3*e},b5.ActionsRegister.register("MoveWithSpeed",function(t){return new b5.A_MoveWithSpeed(t[1],t[2],t[3],t[4])}),b5.A_Follow=function(n,e,t,o){this.source=n,this.target=e,this.speed=t,this.distance=o},b5.A_Follow.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target),this.source=b5.Utils.resolveObject(this.source)},b5.A_Follow.prototype.onTick=function(){var r=this.target,e=this.source,t=this.speed,o=r.x-e.x,a=r.y-e.y;return o*o+a*a<this.distance?(e.vx=0,e.vy=0):(e.vx=o/t,e.vy=a/t),!0},b5.ActionsRegister.register("Follow",function(t){return new b5.A_Follow(t[1],t[2],t[3],t[4])}),b5.A_LookAt=function(n,e,t,o){this.source=n,this.target=e,this.lower=t,this.upper=o},b5.A_LookAt.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target),this.source=b5.Utils.resolveObject(this.source)},b5.A_LookAt.prototype.onTick=function(){var r=this.target,e=this.source,t=Math.atan2(r.y-e.y,r.x-e.x)+Math.PI/2,o=this.lower;void 0!==o&&t<o&&(t=o);var a=this.upper;return void 0!==a&&t>a&&(t=a),e._rotation=t,!0},b5.ActionsRegister.register("LookAt",function(t){return new b5.A_LookAt(t[1],t[2],t[3],t[4])}),b5.A_FollowPath=function(t,e,o,a,n){this.target=t,this.path=e,this.distance=o,this.speed=a,this.angle=n;var r=e.length>>1,i=0;this.distances=[],this.angles=[],this.distances[0]=0;for(var s=1;s<r;s++){var l=e[s<<1]-e[s-1<<1],d=e[(s<<1)+1]-e[(s-1<<1)+1];i+=Math.sqrt(l*l+d*d),this.distances[s]=i,this.angle&&(this.angles[s-1]=Math.atan2(d,l)+Math.PI/2)}},b5.A_FollowPath.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target)},b5.A_FollowPath.prototype.onTick=function(){for(var t=this.target,e=this.path,o=e.length>>1,a=this.distances,n=this.distance+this.speed,r=a[o-1];n>=r;)n-=r;for(;0>n;)n+=r;this.distance=n;for(var i=0;i<o;i++)if(n<a[i]){var s=i-1;s>=o&&(s=0);var d=e[s<<1],c=e[i<<1],l=e[(s<<1)+1],p=e[(i<<1)+1],g=(n-a[s])/(a[i]-a[s]);t._x=d+(c-d)*g,t._y=l+(p-l)*g,this.angle&&(t._rotation=this.angles[s]);break}return!0},b5.ActionsRegister.register("FollowPath",function(t){return new b5.A_FollowPath(t[1],t[2],t[3],t[4],t[5])}),b5.A_FollowPathVel=function(t,e,o,a,n,r){this.target=t,this.path=e,this.distance=o,this.speed=a,this.angle=r,this.catchup_speed=n;var i=e.length>>1,s=0;this.distances=[],this.distances[0]=0;for(var c=1;c<i;c++){var d=e[c<<1]-e[c-1<<1],p=e[(c<<1)+1]-e[(c-1<<1)+1];s+=Math.sqrt(d*d+p*p),this.distances[c]=s}},b5.A_FollowPathVel.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target)},b5.A_FollowPathVel.prototype.onTick=function(){for(var t=this.target,e=this.path,o=e.length>>1,a=this.distances,n=this.distance+this.speed,r=a[o-1];n>=r;)n-=r;for(;0>n;)n+=r;this.distance=n;for(var i=0;i<o;i++)if(n<a[i]){var s=i-1;s>=o&&(s=0);var c=e[s<<1],p=e[i<<1],l=e[(s<<1)+1],g=e[(i<<1)+1],h=(n-a[s])/(a[i]-a[s]),u=this.catchup_speed;t.vx=(c+(p-c)*h-t.x)*u,t.vy=(l+(g-l)*h-t.y)*u,this.angle&&(t._rotation=Math.atan2(t.vy,t.vx)+Math.PI/2);break}return!0},b5.ActionsRegister.register("FollowPathVel",function(t){return new b5.A_FollowPathVel(t[1],t[2],t[3],t[4],t[5],t[6])}),b5.A_LimitMove=function(n,e,t,o){this.target=n,this.area=e,"bounce"===t?this.hit=0:"stop"===t?this.hit=1:"wrap"==t&&(this.hit=2),this.bounce=o},b5.A_LimitMove.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target)},b5.A_LimitMove.prototype.onTick=function(){var l=this.target,e=l.x,o=l.y,a=this.hit,n=this.area,i=this.bounce;if(0!==n[2]){var s=n[0],c=s+n[2];e<s?0===a?l.vx=-l.vx*i:1===a?l.vx=0:2===a&&(l._x=c):e>c&&(0===a?l.vx=-l.vx*i:1===a?l.vx=0:2===a&&(l._x=s))}if(0!==n[3]){var d=n[1],r=d+n[3];o<d?0===a?l.vy=-l.vy*i:1===a?l.vy=0:2===a&&(l._y=r):o>r&&(0===a?l.vy=-l.vy*i:1===a?l.vy=0:2===a&&(l._y=d))}return!1},b5.ActionsRegister.register("LimitMove",function(t){return new b5.A_LimitMove(t[1],t[2],t[3],t[4])}),"use strict",b5.A_CamStopMove=function(n,e,t,o){this.target=n,this.stop_vx=e,this.stop_vy=t,this.duration=o},b5.A_CamStopMove.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target),this.time=Date.now()},b5.A_CamStopMove.prototype.onTick=function(){if(!(Date.now()-this.time<1e3*this.duration)){var t=this.target;return this.stop_vx&&(t.camera_vx=0),this.stop_vy&&(t.camera_vy=0),!1}return!0},b5.ActionsRegister.register("CamStopMove",function(t){return new b5.A_CamStopMove(t[1],t[2],t[3],t[4])}),b5.A_CamGravity=function(a,e,t){this.target=a,this.gravity_x=e,this.gravity_y=t},b5.A_CamGravity.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target)},b5.A_CamGravity.prototype.onTick=function(){this.target=b5.Utils.resolveObject(this.target);var t=this.target;return t.camera_vx+=this.gravity_x,t.camera_vy+=this.gravity_y,!1},b5.ActionsRegister.register("CamGravity",function(t){return new b5.A_CamGravity(t[1],t[2],t[3])}),b5.A_CamMove=function(n,e,t,o){this.target=n,this.dx=e,this.dy=t,this.duration=o,this.x=n.x,this.y=n.y},b5.A_CamMove.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target);var t=this.target;null!=this.dx&&(t.camera_vx=this.dx/this.duration),null!=this.dy&&(t.camera_vy=this.dy/this.duration),this.time=Date.now()},b5.A_CamMove.prototype.onTick=function(){return Date.now()-this.time<1e3*this.duration},b5.ActionsRegister.register("CamMove",function(t){return new b5.A_CamMove(t[1],t[2],t[3],t[4])}),b5.A_CamMoveTo=function(s,e,t,o,a,n){this.target=s,this.duration=o,this.x=e,this.y=t,this.ease_x=a||b5.Ease.linear,this.ease_y=n||b5.Ease.linear},b5.A_CamMoveTo.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target);var t=this.target;this.time=Date.now(),this.sx=t.camera_x,this.sy=t.camera_y},b5.A_CamMoveTo.prototype.onTick=function(){var a=this.target,e=Date.now()-this.time,t=e/(1e3*this.duration);return 1<t&&(t=1),null!=this.x&&(a.camera_x=this.sx+(this.x-this.sx)*b5.Ease.easingFuncs[this.ease_x](t)),null!=this.y&&(a.camera_y=this.sy+(this.y-this.sy)*b5.Ease.easingFuncs[this.ease_y](t)),Date.now()-this.time<1e3*this.duration},b5.ActionsRegister.register("CamMoveTo",function(t){return new b5.A_CamMoveTo(t[1],t[2],t[3],t[4],t[5],t[6])}),b5.A_CamFollow=function(n,e,t,o){this.source=n,this.target=e,this.speed=t,this.distance=o},b5.A_CamFollow.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target),this.source=b5.Utils.resolveObject(this.source)},b5.A_CamFollow.prototype.onTick=function(){var r=this.target,e=this.source,t=this.speed,o=r.x-e.camera_x,a=r.y-e.camera_y;return o*o+a*a<this.distance?(e.camera_vx=0,e.camera_vy=0):(e.camera_vx=o/t,e.camera_vy=a/t),!0},b5.ActionsRegister.register("CamFollow",function(t){return new b5.A_CamFollow(t[1],t[2],t[3],t[4])}),b5.A_CamFollowPath=function(t,e,o,a){this.target=t,this.path=e,this.distance=o,this.speed=a;var n=e.length>>1,r=0;this.distances=[],this.distances[0]=0;for(var i=1;i<n;i++){var s=e[i<<1]-e[i-1<<1],l=e[(i<<1)+1]-e[(i-1<<1)+1];r+=Math.sqrt(s*s+l*l),this.distances[i]=r}},b5.A_CamFollowPath.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target)},b5.A_CamFollowPath.prototype.onTick=function(){for(var t=this.target,e=this.path,o=e.length>>1,a=this.distances,n=this.distance+this.speed,r=a[o-1];n>=r;)n-=r;for(;0>n;)n+=r;this.distance=n;for(var i=0;i<o;i++)if(n<a[i]){var s=i-1;s>=o&&(s=0);var d=e[s<<1],c=e[i<<1],l=e[(s<<1)+1],p=e[(i<<1)+1],g=(n-a[s])/(a[i]-a[s]);t.camera_x=d+(c-d)*g,t.camera_y=l+(p-l)*g;break}return!0},b5.ActionsRegister.register("CamFollowPath",function(t){return new b5.A_CamFollowPath(t[1],t[2],t[3],t[4])}),b5.A_CamFollowPathVel=function(t,e,o,a,n){this.target=t,this.path=e,this.distance=o,this.speed=a,this.catchup_speed=n;var r=e.length>>1,i=0;this.distances=[],this.distances[0]=0;for(var s=1;s<r;s++){var l=e[s<<1]-e[s-1<<1],d=e[(s<<1)+1]-e[(s-1<<1)+1];i+=Math.sqrt(l*l+d*d),this.distances[s]=i}},b5.A_CamFollowPathVel.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target)},b5.A_CamFollowPathVel.prototype.onTick=function(){for(var t=this.target,e=this.path,o=e.length>>1,a=this.distances,n=this.distance+this.speed,r=a[o-1];n>=r;)n-=r;for(;0>n;)n+=r;this.distance=n;for(var i=0;i<o;i++)if(n<a[i]){var s=i-1;s>=o&&(s=0);var c=e[s<<1],p=e[i<<1],l=e[(s<<1)+1],g=e[(i<<1)+1],h=(n-a[s])/(a[i]-a[s]),u=this.catchup_speed;t.camera_vx=(c+(p-c)*h-t.x)*u,t.camera_vy=(l+(g-l)*h-t.y)*u;break}return!0},b5.ActionsRegister.register("CamFollowPathVel",function(t){return new b5.A_CamFollowPathVel(t[1],t[2],t[3],t[4],t[5])}),b5.A_CamLimitMove=function(n,e,t,o){this.target=n,this.area=e,"bounce"===t?this.hit=0:"stop"===t?this.hit=1:"wrap"==t&&(this.hit=2),this.bounce=o},b5.A_CamLimitMove.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target)},b5.A_CamLimitMove.prototype.onTick=function(){var l=this.target,e=l.camera_x,o=l.camera_y,a=this.hit,n=this.area,i=this.bounce;if(0!==n[2]){var s=n[0],c=s+n[2];e<s?0===a?l.camera_vx=-l.camera_vx*i:1===a?l.camera_vx=0:2===a&&(l.camera_x=c):e>c&&(0===a?l.camera_vx=-l.camera_vx*i:1===a?l.camera_vx=0:2===a&&(l.camera_x=s))}if(0!==n[3]){var d=n[1],r=d+n[3];o<d?0===a?l.camera_vy=-l.camera_vy*i:1===a?l.camera_vy=0:2===a&&(l.camera_y=r):o>r&&(0===a?l.camera_vy=-l.camera_vy*i:1===a?l.camera_vy=0:2===a&&(l.camera_y=d))}return!1},b5.ActionsRegister.register("CamLimitMove",function(t){return new b5.A_CamLimitMove(t[1],t[2],t[3],t[4])}),"use strict",b5.A_SetLinearVelocity=function(n,e,t,o){this.target=n,this.vx=e,this.vy=t,this.duration=o},b5.A_SetLinearVelocity.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target),this.time=Date.now()},b5.A_SetLinearVelocity.prototype.onTick=function(){var a=this.target,e=a.body;if(null!==e){var t=Box2D.Common.Math.b2Vec2;e.SetAwake(!0),e.SetLinearVelocity(new t(this.vx,this.vy))}return Date.now()-this.time<1e3*this.duration},b5.ActionsRegister.register("SetLinearVelocity",function(t){return new b5.A_SetLinearVelocity(t[1],t[2],t[3],t[4])}),b5.A_SetAngularVelocity=function(a,e,t){this.target=a,this.vr=e,this.duration=t},b5.A_SetAngularVelocity.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target),this.time=Date.now()},b5.A_SetAngularVelocity.prototype.onTick=function(){var a=this.target,e=a.body;return null!==e&&(e.SetAwake(!0),e.SetAngularVelocity(this.vr)),Date.now()-this.time<1e3*this.duration},b5.ActionsRegister.register("SetAngularVelocity",function(t){return new b5.A_SetAngularVelocity(t[1],t[2],t[3])}),b5.A_ApplyForce=function(s,e,t,o,a,n){this.target=s,this.fx=e,this.fy=t,this.dx=o,this.dy=a,this.duration=n},b5.A_ApplyForce.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target),this.time=Date.now()},b5.A_ApplyForce.prototype.onTick=function(){var r=this.target,e=r.body;if(null!==e){var t=r.scene.world_scale,o=Box2D.Common.Math.b2Vec2;e.SetAwake(!0);var a=e.GetWorldPoint(new o(this.dx/t,this.dy/t));e.ApplyForce(new o(this.fx,this.fy),a)}return Date.now()-this.time<1e3*this.duration},b5.ActionsRegister.register("ApplyForce",function(t){return new b5.A_ApplyForce(t[1],t[2],t[3],t[4],t[5],t[6])}),b5.A_ApplyImpulse=function(r,e,t,o,a){this.target=r,this.ix=e,this.iy=t,this.dx=o,this.dy=a},b5.A_ApplyImpulse.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target);var r=this.target,e=r.body;if(null!==e){var t=r.scene.world_scale,o=Box2D.Common.Math.b2Vec2;e.SetAwake(!0);var a=e.GetWorldPoint(new o(this.dx/t,this.dy/t));e.ApplyImpulse(new o(this.ix,this.iy),a)}},b5.ActionsRegister.register("ApplyImpulse",function(t){return new b5.A_ApplyImpulse(t[1],t[2],t[2],t[3],t[4])}),b5.A_ApplyTorque=function(a,e,t){this.target=a,this.torque=e,this.duration=t},b5.A_ApplyTorque.prototype.onInit=function(){this.target=b5.Utils.resolveObject(this.target),this.time=Date.now()},b5.A_ApplyTorque.prototype.onTick=function(){var a=this.target,e=a.body;return null!==e&&(e.SetAwake(!0),e.ApplyTorque(this.torque)),Date.now()-this.time<1e3*this.duration},b5.ActionsRegister.register("ApplyTorque",function(t){return new b5.A_ApplyTorque(t[1],t[2],t[3])}),"use strict";function Game(e){this.app=e}Game.prototype.loadResources=function(){},Game.prototype.initGame=function(){var e=this.app;this.loadResources();var t=new b5.Xoml(e);t.parseResources(e,b5.data.globals),t.parseResources(e,[b5.data.gamescene])},Game.prototype.releaseGame=function(){app.removeScene(app.focus_scene,!0),app.focus_scene=null},"use strict";var resource_check_interval;window.onload=function(){const e=["top","indexOf","aHR0cHM6Ly9wb2tpLmNvbS9zaXRlbG9jaw==","hostname","length","location","LnBva2ktZ2RuLmNvbQ==","href"];(function(e,t){(function(t){for(;--t;)e.push(e.shift())})(++t)})(e,430);const t=function(t){t-=0;const a=e[t];return a};(function(){/*const e=["bG9jYWxob3N0","LnBva2kuY29t",t("0x0")];let a=!1;const o=window[t("0x7")][t("0x5")];for(let n=0;n<e[t("0x6")];n++){const r=atob(e[n]);if(-1!==o[t("0x3")](r,o.length-r.length)){a=!0;break}}if(!a){const e=t("0x4"),a=atob(e);window.location[t("0x1")]=a,window[t("0x2")][t("0x7")]!==window[t("0x7")]&&(window[t("0x2")][t("0x7")]=window[t("0x7")])} */})(),FBInstant.ext!==void 0&&(FBInstant.options.name="dm_aussolitaire",FBInstant.portal="poki",FBInstant.options.shareOptions.shareURI="",FBInstant.options.adsOptions.startedCallback=PauseAudio,FBInstant.options.adsOptions.finishedCallback=ResumeAudio,FBInstant.createDefaultServices("poki"));var a=new b5.App(document.getElementById("gamecanvas"),!0);a.debug=!1,a.loading_screen.background_fill="#000000",a.loading_screen.background_image="",a.loading_screen.bar_background_fill="#000000",a.loading_screen.bar_fill="#000000",a.clear_canvas=!1,a.use_marm=!1,a.target_frame_rate=60,a.adaptive_physics=!1,a.shared_world=!1,a.fill_screen=!0,a.global_scale=1,a.disable_dock_screen=!1,a.prevent_default=!0,a.setCanvasScalingMethod(1),a.display.setSmoothing(!0);var o=!1,n=b5.Instants.instance;n.StartInit(function(){window.IGPostInit!==void 0&&window.IGPostInit(),o=!0}),window.game=new Game(a),window.game.initGame();var r=0,s=a.countResourcesNeedLoading(!0),i=setInterval(function(){var e=b5.app.total_loaded,t=Math.ceil(100*e/s);100<t&&(t=100),n.SetLoadingProgress(t),e>=s&&o&&(clearInterval(i),n.StartGame(function(){0<b5.app.total_load_errors?n.LogEvent("FB Load Errors"):n.LogEvent("FB Load Finished"),a.start()})),r++,20==r?n.LogEvent("Loading exceeded 2s"):50==r?n.LogEvent("Loading exceeded 5s"):100==r?n.LogEvent("Loading exceeded 10s"):200==r&&n.LogEvent("Loading exceeded 20s")},100)},b5.data.globals=[{RT:"Font",Name:"Righteous-Regular",Loc:"Righteous-Regular.ttf",Preload:!0,Blocking:!1,PointSize:0,AutoPointSize:0},{RT:"Script",Name:"bluebird.min.js",Loc:"bluebird.min.js",Load:!0},{RT:"Script",Name:"moment.min.js",Loc:"moment.min.js",Load:!0},{RT:"Script",Name:"seedrandom.min.js",Loc:"seedrandom.min.js",Load:!0},{RT:"Script",Name:"utils.js",Loc:"utils.js",Load:!0},{RT:"Script",Name:"card.js",Loc:"card.js",Load:!0},{RT:"Script",Name:"deck.js",Loc:"deck.js",Load:!0},{RT:"Script",Name:"solitare.js",Loc:"solitare.js",Load:!0},{RT:"Script",Name:"bot.js",Loc:"bot.js",Load:!0},{RT:"Script",Name:"lang.js",Loc:"lang.js",Load:!0},{RT:"Script",Name:"ads.js",Loc:"ads.js",Load:!0},{RT:"Script",Name:"photocache.js",Loc:"photocache.js",Load:!0},{RT:"Script",Name:"menu.js",Loc:"menu.js",Load:!0},{RT:"Script",Name:"leaderboards.js",Loc:"leaderboards.js",Load:!0},{RT:"Script",Name:"daily.js",Loc:"daily.js",Load:!0},{RT:"Script",Name:"players.js",Loc:"players.js",Load:!0},{RT:"Script",Name:"social.js",Loc:"social.js",Load:!0},{RT:"Script",Name:"world.js",Loc:"world.js",Load:!0},{RT:"Script",Name:"archon.js",Loc:"archon.js",Load:!0},{RT:"Script",Name:"history.js",Loc:"history.js",Load:!0},{RT:"Script",Name:"stats.js",Loc:"stats.js",Load:!0},{RT:"Script",Name:"skins.js",Loc:"skins.js",Load:!0},{RT:"Script",Name:"quests.js",Loc:"quests.js",Load:!0},{RT:"Script",Name:"tutorial.js",Loc:"tutorial.js",Load:!0},{RT:"Sound",N:"tap",Loc:"tap.mp3",P:1,A:0,B:0,R:0},{RT:"Image",N:"Art",Loc:"Art.png",P:!0,B:!1},{RT:"Image",N:"Backs",Loc:"Backs.png",P:!0,B:!1},{RT:"Image",N:"share_generic",Loc:"share_generic.jpg",P:!0,B:!1},{RT:"Image",N:"share_help",Loc:"share_help.jpg",P:!0,B:!1},{RT:"Image",N:"share",Loc:"share.jpg",P:!0,B:!1},{RT:"Image",N:"Themes",Loc:"Themes.jpg",P:!0,B:!1},{RT:"Image",N:"bg0",Loc:"bg0.jpg",P:!0,B:!1},{RT:"Image",N:"ad_solmatch",Loc:"ad_solmatch.jpg",P:!0,B:!1},{RT:"Image",N:"loading",Loc:"loading.png",P:!0,B:!1},{RT:"Image",N:"to_landscape",Loc:"to_landscape.png",P:!0,B:!1},{RT:"Brush",N:"beam",BT:0,RC:[961,455,216,217,-1,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"glowcircle",BT:0,RC:[1429,979,106,106,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"button1",BT:0,RC:[502,883,300,85,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"glow1",BT:0,RC:[360,896,100,100,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"settingsbutton",BT:0,RC:[1872,956,159,78,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"stats",BT:0,RC:[450,1359,256,194,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"lbd_entry",BT:0,RC:[502,394,458,80,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"lbd_tab",BT:0,RC:[1874,637,164,59,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"lbd_tab2",BT:0,RC:[1873,697,164,59,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"lbd_tab2g",BT:0,RC:[1873,757,164,59,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"lbd_tabg",BT:0,RC:[1872,817,164,59,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"back",BT:0,RC:[1665,604,208,78,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"video",BT:0,RC:[1178,578,300,107,0,0],I:"Art",F:[],AN:[{N:"anim0",F:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],S:0}],UA:!0},{RT:"Brush",N:"music_off",BT:0,RC:[961,394,61,60,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"music_on",BT:0,RC:[1023,394,61,60,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"sound_off",BT:0,RC:[803,923,76,59,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"sound_on",BT:0,RC:[1537,889,76,59,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"addfriend",BT:0,RC:[1893,223,140,72,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"home",BT:0,RC:[1893,296,140,72,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"leader",BT:0,RC:[502,475,439,99,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"play",BT:0,RC:[1172,686,257,77,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"back1",BT:0,RC:[2,225,145,221,0,0],I:"Backs",F:[],UA:!0},{RT:"Brush",N:"place",BT:0,RC:[948,673,223,338,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"mplay",BT:0,RC:[803,731,77,63,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"mstats",BT:0,RC:[803,859,77,63,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"madd",BT:0,RC:[1103,391,77,63,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"mshare",BT:0,RC:[803,795,77,63,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"match",BT:0,RC:[502,209,700,100,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"glass",BT:0,RC:[1430,686,35,49,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"mhelp",BT:0,RC:[803,667,77,63,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"left",BT:0,RC:[1893,369,132,72,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"right",BT:0,RC:[1872,1035,132,72,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"topbar",BT:0,RC:[1,1,1900,111,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"button2",BT:0,RC:[1429,815,182,73,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"close",BT:0,RC:[881,747,65,70,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"share_generic",BT:0,RC:[0,0,700,366,0,0],I:"share_generic",F:[],UA:!1},{RT:"Brush",N:"share_help",BT:0,RC:[0,0,700,366,0,0],I:"share_help",F:[],UA:!1},{RT:"Brush",N:"challenger",BT:0,RC:[1203,209,600,117,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"card",BT:0,RC:[1902,1,145,221,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"clubs",BT:0,RC:[1607,1053,256,269,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"diamonds",BT:0,RC:[1615,762,256,290,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"hearts",BT:0,RC:[1,896,256,257,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"spades",BT:0,RC:[1172,764,256,305,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"share",BT:0,RC:[0,0,700,366,0,0],I:"share",F:[],UA:!1},{RT:"Brush",N:"tooltip",BT:0,RC:[502,575,400,91,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"back0",BT:0,RC:[2,2,145,221,0,0],I:"Backs",F:[],UA:!0},{RT:"Brush",N:"back2",BT:0,RC:[296,2,145,221,0,0],I:"Backs",F:[],UA:!0},{RT:"Brush",N:"back4",BT:0,RC:[590,2,145,221,0,0],I:"Backs",F:[],UA:!0},{RT:"Brush",N:"back5",BT:0,RC:[737,2,145,221,0,0],I:"Backs",F:[],UA:!0},{RT:"Brush",N:"back6",BT:0,RC:[296,225,145,221,0,0],I:"Backs",F:[],UA:!0},{RT:"Brush",N:"back7",BT:0,RC:[296,448,145,221,0,0],I:"Backs",F:[],UA:!0},{RT:"Brush",N:"back8",BT:0,RC:[296,671,145,221,0,0],I:"Backs",F:[],UA:!0},{RT:"Brush",N:"back9",BT:0,RC:[443,225,145,221,0,0],I:"Backs",F:[],UA:!0},{RT:"Brush",N:"back10",BT:0,RC:[2,448,145,221,0,0],I:"Backs",F:[],UA:!0},{RT:"Brush",N:"back11",BT:0,RC:[2,671,145,221,0,0],I:"Backs",F:[],UA:!0},{RT:"Brush",N:"back12",BT:0,RC:[149,2,145,221,0,0],I:"Backs",F:[],UA:!0},{RT:"Brush",N:"back13",BT:0,RC:[149,225,145,221,0,0],I:"Backs",F:[],UA:!0},{RT:"Brush",N:"back14",BT:0,RC:[149,448,145,221,0,0],I:"Backs",F:[],UA:!0},{RT:"Brush",N:"back15",BT:0,RC:[149,671,145,221,0,0],I:"Backs",F:[],UA:!0},{RT:"Brush",N:"backs_button",BT:0,RC:[1886,558,159,78,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"bg_button",BT:0,RC:[1872,877,159,78,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"button3",BT:0,RC:[1479,657,184,78,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"back3",BT:0,RC:[443,2,145,221,0,0],I:"Backs",F:[],UA:!0},{RT:"Brush",N:"button4",BT:0,RC:[1479,578,185,78,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"crown",BT:0,RC:[1537,949,76,46,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"button5",BT:0,RC:[1430,736,184,78,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"pbg0",BT:0,RC:[512,0,256,137,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"pbg1",BT:0,RC:[768,0,256,137,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"pbg2",BT:0,RC:[512,411,256,137,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"pbg3",BT:0,RC:[0,0,256,138,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"pbg4",BT:0,RC:[768,411,256,137,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"pbg5",BT:0,RC:[0,412,256,137,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"pbg6",BT:0,RC:[256,0,256,138,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"pbg7",BT:0,RC:[256,412,256,137,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"pbg8",BT:0,RC:[512,548,256,137,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"pbg9",BT:0,RC:[768,548,256,137,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"pbg10",BT:0,RC:[512,137,256,137,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"pbg11",BT:0,RC:[768,137,256,137,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"pbg12",BT:0,RC:[0,138,256,137,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"pbg13",BT:0,RC:[256,138,256,137,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"pbg14",BT:0,RC:[512,274,256,137,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"pbg15",BT:0,RC:[768,274,256,137,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"pbg16",BT:0,RC:[0,275,256,137,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"pbg17",BT:0,RC:[256,275,256,137,0,0],I:"Themes",F:[],UA:!0},{RT:"Brush",N:"bg0",BT:0,RC:[0,0,1900,1020,0,0],I:"bg0",F:[],UA:!1},{RT:"Brush",N:"roundover",BT:0,RC:[1,223,500,672,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"exit",BT:0,RC:[258,991,100,93,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"steal",BT:0,RC:[359,1091,100,93,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"undo",BT:0,RC:[359,1185,100,93,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"dialog1",BT:0,RC:[1184,327,500,250,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"no",BT:0,RC:[1864,1108,101,109,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"yes",BT:0,RC:[1864,1218,101,109,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"off",BT:0,RC:[1886,442,160,57,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"on",BT:0,RC:[1886,500,160,57,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"button6",BT:0,RC:[1685,417,200,186,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"b2",BT:0,RC:[326,1279,61,85,-4,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"b3",BT:0,RC:[258,1362,61,85,-4,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"b4",BT:0,RC:[1966,1108,69,85,-2,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"b5",BT:0,RC:[881,818,63,85,-4,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"b6",BT:0,RC:[856,990,67,88,-3,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"b7",BT:0,RC:[855,1079,60,85,-1,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"b8",BT:0,RC:[1966,1280,68,91,-3,-30],I:"Art",F:[],UA:!0},{RT:"Brush",N:"b9",BT:0,RC:[787,1069,67,88,-3,-30],I:"Art",F:[],UA:!0},{RT:"Brush",N:"b10",BT:0,RC:[1685,327,107,89,-3,-31],I:"Art",F:[],UA:!0},{RT:"Brush",N:"ba",BT:0,RC:[1536,996,70,85,-5,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"bj",BT:0,RC:[903,575,44,85,0,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"bk",BT:0,RC:[787,983,68,85,-6,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"bq",BT:0,RC:[1804,209,88,103,-2,-32],I:"Art",F:[],UA:!0},{RT:"Brush",N:"r2",BT:0,RC:[388,1279,61,85,-4,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"r3",BT:0,RC:[924,1012,61,85,-4,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"r4",BT:0,RC:[1966,1194,69,85,-2,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"r5",BT:0,RC:[881,904,63,85,-4,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"r6",BT:0,RC:[718,1147,67,88,-3,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"r7",BT:0,RC:[786,1158,60,85,-1,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"r8",BT:0,RC:[718,969,68,91,-3,-30],I:"Art",F:[],UA:!0},{RT:"Brush",N:"r9",BT:0,RC:[258,1273,67,88,-3,-30],I:"Art",F:[],UA:!0},{RT:"Brush",N:"r10",BT:0,RC:[1429,889,107,89,-3,-31],I:"Art",F:[],UA:!0},{RT:"Brush",N:"ra",BT:0,RC:[1536,1082,70,85,-5,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"rj",BT:0,RC:[903,661,44,85,0,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"rk",BT:0,RC:[718,1061,68,85,-6,-33],I:"Art",F:[],UA:!0},{RT:"Brush",N:"rq",BT:0,RC:[1804,313,88,103,-2,-32],I:"Art",F:[],UA:!0},{RT:"Brush",N:"resetbutton",BT:0,RC:[1103,310,80,80,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"help",BT:0,RC:[717,1236,60,56,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"hint",BT:0,RC:[359,997,100,93,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"buy",BT:0,RC:[502,775,300,107,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"addcrowns",BT:0,RC:[502,667,300,107,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"history",BT:0,RC:[460,1164,256,194,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"questbg",BT:0,RC:[502,310,600,83,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"quests",BT:0,RC:[1,1349,256,194,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"bottom",BT:0,RC:[1,113,1900,95,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"tripeaks_icon",BT:0,RC:[1,1544,256,194,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"restart",BT:0,RC:[258,896,101,94,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"next",BT:0,RC:[1664,683,208,78,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"menu",BT:0,RC:[258,1085,100,93,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"golf_icon",BT:0,RC:[1,1154,256,194,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"turnad",BT:0,RC:[258,1179,100,93,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"auspatience_icon",BT:0,RC:[461,969,256,194,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"rev_icon",BT:0,RC:[986,1070,256,194,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"solitaire_icon",BT:0,RC:[1243,1086,256,194,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"ad_solmatch",BT:0,RC:[0,0,546,900,0,0],I:"ad_solmatch",F:[]},{RT:"Brush",N:"solmatch_icon",BT:0,RC:[778,1265,256,194,0,0],I:"Art",F:[],UA:!0},{RT:"Brush",N:"to_landscape",BT:0,RC:[0,0,400,400,0,0],I:"to_landscape",F:[],UA:!1},{RT:"Brush",N:"loading",BT:0,RC:[0,0,80,79,0,0],I:"loading",F:[],UA:!1}],!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var t;"undefined"==typeof window?"undefined"==typeof global?"undefined"!=typeof self&&(t=self):t=global:t=window,t.Promise=a()}}(function(){return function d(r,t,e){function a(o,s){if(!t[o]){if(!r[o]){var i="function"==typeof _dereq_&&_dereq_;if(!s&&i)return i(o,!0);if(n)return n(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=t[o]={exports:{}};r[o][0].call(l.exports,function(t){var e=r[o][1][t];return a(e?e:t)},l,l.exports,d,r,t,e)}return t[o].exports}for(var n="function"==typeof _dereq_&&_dereq_,o=0;o<e.length;o++)a(e[o]);return a}({1:[function(a,t){"use strict";t.exports=function(a){function o(a){var t=new s(a),o=t.promise();return t.setHowMany(1),t.setUnwrap(),t.init(),o}var s=a._SomePromiseArray;a.any=function(e){return o(e)},a.prototype.any=function(){return o(this)}}},{}],2:[function(n,t){"use strict";function e(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new l(16),this._normalQueue=new l(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=a}function r(a,t,e){this._lateQueue.push(a,t,e),this._queueTick()}function i(a,t,e){this._normalQueue.push(a,t,e),this._queueTick()}function o(e){this._normalQueue._pushOne(e),this._queueTick()}var s;try{throw new Error}catch(e){s=e}var a=n("./schedule"),l=n("./queue"),d=n("./util");e.prototype.setScheduler=function(a){var t=this._schedule;return this._schedule=a,this._customScheduler=!0,t},e.prototype.hasCustomScheduler=function(){return this._customScheduler},e.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},e.prototype.disableTrampolineIfNecessary=function(){d.hasDevTools&&(this._trampolineEnabled=!1)},e.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},e.prototype.fatalError=function(a,t){t?(process.stderr.write("Fatal "+(a instanceof Error?a.stack:a)+"\n"),process.exit(2)):this.throwLater(a)},e.prototype.throwLater=function(a,t){if(1===arguments.length&&(t=a,a=function(){throw t}),"undefined"!=typeof setTimeout)setTimeout(function(){a(t)},0);else try{this._schedule(function(){a(t)})}catch(e){throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n")}},d.hasDevTools?(e.prototype.invokeLater=function(a,t,e){this._trampolineEnabled?r.call(this,a,t,e):this._schedule(function(){setTimeout(function(){a.call(t,e)},100)})},e.prototype.invoke=function(a,t,e){this._trampolineEnabled?i.call(this,a,t,e):this._schedule(function(){a.call(t,e)})},e.prototype.settlePromises=function(e){this._trampolineEnabled?o.call(this,e):this._schedule(function(){e._settlePromises()})}):(e.prototype.invokeLater=r,e.prototype.invoke=i,e.prototype.settlePromises=o),e.prototype._drainQueue=function(a){for(;0<a.length();){var t=a.shift();if("function"==typeof t){var o=a.shift(),n=a.shift();t.call(o,n)}else t._settlePromises()}},e.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},e.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},e.prototype._reset=function(){this._isTickUsed=!1},t.exports=e,t.exports.firstLineError=s},{"./queue":26,"./schedule":29,"./util":36}],3:[function(a,t){"use strict";t.exports=function(d,t,e,n){var r=!1,i=function(a,t){this._reject(t)},o=function(a,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(i,i,null,this,a)},s=function(a,t){0==(50397184&this._bitField)&&this._resolveCallback(t.target)},a=function(a,t){t.promiseRejectionQueued||this._reject(a)};d.prototype.bind=function(i){r||(r=!0,d.prototype._propagateFrom=n.propagateFromFunction(),d.prototype._boundValue=n.boundValueFunction());var c=e(i),g=new d(t);g._propagateFrom(this,1);var m=this._target();if(g._setBoundTo(c),c instanceof d){var _={promiseRejectionQueued:!1,promise:g,target:m,bindingPromise:c};m._then(t,o,void 0,g,_),c._then(s,a,void 0,g,_),g._setOnCancel(c)}else g._resolveCallback(m);return g},d.prototype._setBoundTo=function(e){void 0===e?this._bitField=-2097153&this._bitField:(this._bitField=2097152|this._bitField,this._boundTo=e)},d.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},d.bind=function(t,e){return d.resolve(e).bind(t)}}},{}],4:[function(a,t){"use strict";var e;"undefined"!=typeof Promise&&(e=Promise);var n=a("./promise")();n.noConflict=function(){try{Promise===n&&(Promise=e)}catch(e){}return n},t.exports=n},{"./promise":22}],5:[function(l,t){"use strict";var e=Object.create;if(e){var a=e(null),n=e(null);a[" size"]=n[" size"]=0}t.exports=function(d){function p(a,t){var o;if(null!=a&&(o=a[t]),"function"!=typeof o){var s="Object "+e.classString(a)+" has no method '"+e.toString(t)+"'";throw new d.TypeError(s)}return o}function n(a){var t=this.pop(),e=p(a,t);return e.apply(a,this)}function u(e){return e[this]}function i(a){var t=+this;return 0>t&&(t=Math.max(0,t+a.length)),a[t]}var e=l("./util"),a=e.canEvaluate,o;e.isIdentifier,d.prototype.call=function(a){var t=[].slice.call(arguments,1);return t.push(a),this._then(n,void 0,void 0,t,void 0)},d.prototype.get=function(n){var s;if("number"==typeof n)s=i;else if(a){var e=o(n);s=null===e?u:e}else s=u;return this._then(s,void 0,void 0,n,void 0)}}},{"./util":36}],6:[function(l,t){"use strict";t.exports=function(t,e,n,r){var i=l("./util"),o=i.tryCatch,s=i.errorObj,a=t._async;t.prototype["break"]=t.prototype.cancel=function(){if(!r.cancellation())return this._warn("cancellation is disabled");for(var a=this,t=a;a._isCancellable();){if(!a._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var e=a._cancellationParent;if(null==e||!e._isCancellable()){a._isFollowing()?a._followee().cancel():a._cancelBranched();break}a._isFollowing()&&a._followee().cancel(),a._setWillBeCancelled(),t=a,a=e}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||0>=this._branchesRemainingToCancel},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),a.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){0<this._length()&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(l,d){if(i.isArray(l))for(var c=0;c<l.length;++c)this._doInvokeOnCancel(l[c],d);else if(void 0!==l)if(!("function"==typeof l))l._resultCancelled(this);else if(!d){var n=o(l).call(this._boundValue());n===s&&(this._attachExtraTrace(n.e),a.throwLater(n.e))}},t.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),a.invoke(this._doInvokeOnCancel,this,e)},t.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},t.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(a,t){"use strict";t.exports=function(g){function e(e,s,i){return function(a){var n=i._boundValue();t:for(var l=0,c;l<e.length;++l)if(c=e[l],c===Error||null!=c&&c.prototype instanceof Error){if(a instanceof c)return r(s).call(n,a);}else if("function"==typeof c){var u=r(c).call(n,a);if(u===o)return u;if(u)return r(s).call(n,a)}else if(m.isObject(a)){for(var h=t(c),T=0,_;T<h.length;++T)if(_=h[T],c[_]!=a[_])continue t;return r(s).call(n,a)}return g}}var m=a("./util"),t=a("./es5").keys,r=m.tryCatch,o=m.errorObj;return e}},{"./es5":13,"./util":36}],8:[function(a,t){"use strict";t.exports=function(l){function t(){this._trace=new t.CapturedTrace(e())}function e(){var e=a.length-1;return 0<=e?a[e]:void 0}var r=!1,a=[];return l.prototype._promiseCreated=function(){},l.prototype._pushContext=function(){},l.prototype._popContext=function(){return null},l._peekContext=l.prototype._peekContext=function(){},t.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,a.push(this._trace))},t.prototype._popContext=function(){if(void 0!==this._trace){var o=a.pop(),t=o._promiseCreated;return o._promiseCreated=null,t}return null},t.CapturedTrace=null,t.create=function(){return r?new t:void 0},t.deactivateLongStackTraces=function(){},t.activateLongStackTraces=function(){var i=l.prototype._pushContext,n=l.prototype._popContext,o=l._peekContext,s=l.prototype._peekContext,a=l.prototype._promiseCreated;t.deactivateLongStackTraces=function(){l.prototype._pushContext=i,l.prototype._popContext=n,l._peekContext=o,l.prototype._peekContext=s,l.prototype._promiseCreated=a,r=!1},r=!0,l.prototype._pushContext=t.prototype._pushContext,l.prototype._popContext=t.prototype._popContext,l._peekContext=l.prototype._peekContext=e,l.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},t}},{}],9:[function(d,t){"use strict";t.exports=function(p,e){function t(a,t){return{promise:t}}function R(){return!1}function n(a,t,e){var o=this;try{a(t,e,function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+L.toString(e));o._attachCancellationCallback(e)})}catch(e){return e}}function o(a){if(!this._isCancellable())return this;var t=this._onCancel();void 0===t?this._setOnCancel(a):L.isArray(t)?t.push(a):this._setOnCancel([t,a])}function s(){return this._onCancelField}function a(e){this._onCancelField=e}function i(){this._cancellationParent=void 0,this._onCancelField=void 0}function l(a,t){if(0!=(1&t)){this._cancellationParent=a;var e=a._branchesRemainingToCancel;void 0===e&&(e=0),a._branchesRemainingToCancel=e+1}0!=(2&t)&&a._isBound()&&this._setBoundTo(a._boundTo)}function c(){var e=this._boundTo;return void 0!==e&&e instanceof p?e.isFulfilled()?e.value():void 0:e}function u(){this._trace=new P(this._peekContext())}function h(a,t){if(H(a)){var e=this._trace;if(void 0!==e&&t&&(e=e._parent),void 0!==e)e.attachExtraTrace(a);else if(!a.__stackCleaned__){var o=C(a);L.notEnumerableProp(a,"stack",o.message+"\n"+o.stack.join("\n")),L.notEnumerableProp(a,"__stackCleaned__",!0)}}}function _(e,t,a){if(le.warnings){var n=new I(e),o;if(t)a._attachExtraTrace(n);else if(le.longStackTraces&&(o=p._peekContext()))o.attachExtraTrace(n);else{var r=C(n);n.stack=r.message+"\n"+r.stack.join("\n")}Z("warning",n)||w(n,"",!0)}}function f(a,t){for(var e=0;e<t.length-1;++e)t[e].push("From previous event:"),t[e]=t[e].join("\n");return e<t.length&&(t[e]=t[e].join("\n")),a+"\n"+t.join("\n")}function m(a){for(var t=0;t<a.length;++t)(0===a[t].length||t+1<a.length&&a[t][0]===a[t+1][0])&&(a.splice(t,1),t--)}function g(l){for(var t=l[0],e=1;e<l.length;++e){for(var n=l[e],r=t.length-1,i=t[r],o=-1,s=n.length-1;0<=s;--s)if(n[s]===i){o=s;break}for(var s=o,a;0<=s&&(a=n[s],t[r]===a);--s)t.pop(),r--;t=n}}function b(a){for(var t=[],e=0;e<a.length;++e){var n=a[e],r="    (No stack trace)"===n||M.test(n),s=r&&re(n);r&&!s&&(Q&&" "!==n.charAt(0)&&(n="    "+n),t.push(n))}return t}function v(a){for(var t=a.stack.replace(/\s+$/g,"").split("\n"),e=0,o;e<t.length&&(o=t[e],!("    (No stack trace)"===o||M.test(o)));++e);return 0<e&&"SyntaxError"!=a.name&&(t=t.slice(e)),t}function C(a){var t=a.stack,o=a.toString();return t="string"==typeof t&&0<t.length?v(a):["    (No stack trace)"],{message:o,stack:"SyntaxError"==a.name?t:b(t)}}function w(a,t,e){if("undefined"!=typeof console){var o;if(L.isObject(a)){var n=a.stack;o=t+q(n,a)}else o=t+(a+"");"function"==typeof A?A(o,e):("function"==typeof console.log||"object"==typeof console.log)&&console.log(o)}}function E(a,t,o,n){var r=!1;try{"function"==typeof t&&(r=!0,"rejectionHandled"===a?t(n):t(o,n))}catch(e){V.throwLater(e)}"unhandledRejection"===a?Z(a,o,n)||r||w(o,"Unhandled rejection "):Z(a,n)}function k(a){var o;if("function"==typeof a)o="[function "+(a.name||"anonymous")+"]";else{o=a&&"function"==typeof a.toString?a.toString():L.toString(a);var e=/\[object [a-zA-Z0-9$_]+\]/;if(e.test(o))try{var n=JSON.stringify(a);o=n}catch(e){}0===o.length&&(o="(empty array)")}return"(<"+F(o)+">, no stack trace)"}function F(a){var t=41;return a.length<t?a:a.substr(0,t-3)+"..."}function x(){return"function"==typeof ie}function T(a){var t=a.match(se);return t?{fileName:t[1],line:parseInt(t[2],10)}:void 0}function P(a){this._parent=a,this._promisesCreated=0;var t=this._length=1+(void 0===a?0:a._length);ie(this,P),32<t&&this.uncycle()}var j=p._getDomain,V=p._async,I=d("./errors").Warning,L=d("./util"),H=L.canAttachTrace,N=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,B=/\((?:timers\.js):\d+:\d+\)/,U=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,M=null,q=null,Q=!1,$=0!=L.env("BLUEBIRD_DEBUG")&&(L.env("BLUEBIRD_DEBUG")||"development"===L.env("NODE_ENV")),G=0!=L.env("BLUEBIRD_WARNINGS")&&($||L.env("BLUEBIRD_WARNINGS")),ee=0!=L.env("BLUEBIRD_LONG_STACK_TRACES")&&($||L.env("BLUEBIRD_LONG_STACK_TRACES")),X=0!=L.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(G||!!L.env("BLUEBIRD_W_FORGOTTEN_RETURN")),W,O,A;p.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=524288|-1048577&e._bitField},p.prototype._ensurePossibleRejectionHandled=function(){0==(524288&this._bitField)&&(this._setRejectionIsUnhandled(),V.invokeLater(this._notifyUnhandledRejection,this,void 0))},p.prototype._notifyUnhandledRejectionIsHandled=function(){E("rejectionHandled",W,void 0,this)},p.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},p.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},p.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),E("unhandledRejection",O,e,this)}},p.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},p.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},p.prototype._isUnhandledRejectionNotified=function(){return 0<(262144&this._bitField)},p.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},p.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},p.prototype._isRejectionUnhandled=function(){return 0<(1048576&this._bitField)},p.prototype._warn=function(a,t,e){return _(a,t,e||this)},p.onPossiblyUnhandledRejection=function(a){var o=j();O="function"==typeof a?null===o?a:L.domainBind(o,a):void 0},p.onUnhandledRejectionHandled=function(a){var o=j();W="function"==typeof a?null===o?a:L.domainBind(o,a):void 0};var te=function(){};p.longStackTraces=function(){if(V.haveItemsQueued()&&!le.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");if(!le.longStackTraces&&x()){var a=p.prototype._captureStackTrace,t=p.prototype._attachExtraTrace;le.longStackTraces=!0,te=function(){if(V.haveItemsQueued()&&!le.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");p.prototype._captureStackTrace=a,p.prototype._attachExtraTrace=t,e.deactivateLongStackTraces(),V.enableTrampoline(),le.longStackTraces=!1},p.prototype._captureStackTrace=u,p.prototype._attachExtraTrace=h,e.activateLongStackTraces(),V.disableTrampolineIfNecessary()}},p.hasLongStackTraces=function(){return le.longStackTraces&&x()};var K=function(){try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return L.global.dispatchEvent(e),function(a,t){var o=new CustomEvent(a.toLowerCase(),{detail:t,cancelable:!0});return!L.global.dispatchEvent(o)}}if("function"==typeof Event){var e=new Event("CustomEvent");return L.global.dispatchEvent(e),function(a,t){var e=new Event(a.toLowerCase(),{cancelable:!0});return e.detail=t,!L.global.dispatchEvent(e)}}var e=document.createEvent("CustomEvent");return e.initCustomEvent("testingtheevent",!1,!0,{}),L.global.dispatchEvent(e),function(a,t){var e=document.createEvent("CustomEvent");return e.initCustomEvent(a.toLowerCase(),!1,!0,t),!L.global.dispatchEvent(e)}}catch(t){}return function(){return!1}}(),ae=function(){return L.isNode?function(){return process.emit.apply(process,arguments)}:L.global?function(a){var t="on"+a.toLowerCase(),e=L.global[t];return!!e&&(e.apply(L.global,[].slice.call(arguments,1)),!0)}:function(){return!1}}(),oe={promiseCreated:t,promiseFulfilled:t,promiseRejected:t,promiseResolved:t,promiseCancelled:t,promiseChained:function(a,t,o){return{promise:t,child:o}},warning:function(a,t){return{warning:t}},unhandledRejection:function(a,t,o){return{reason:t,promise:o}},rejectionHandled:t},Z=function(a){var t=!1;try{t=ae.apply(null,arguments)}catch(e){V.throwLater(e),t=!0}var e=!1;try{e=K(a,oe[a].apply(null,arguments))}catch(t){V.throwLater(t),e=!0}return e||t};p.config=function(e){if(e=Object(e),"longStackTraces"in e&&(e.longStackTraces?p.longStackTraces():!e.longStackTraces&&p.hasLongStackTraces()&&te()),"warnings"in e){var t=e.warnings;le.warnings=!!t,X=le.warnings,L.isObject(t)&&"wForgottenReturn"in t&&(X=!!t.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!le.cancellation){if(V.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");p.prototype._clearCancellationData=i,p.prototype._propagateFrom=l,p.prototype._onCancel=s,p.prototype._setOnCancel=a,p.prototype._attachCancellationCallback=o,p.prototype._execute=n,ne=l,le.cancellation=!0}return"monitoring"in e&&(e.monitoring&&!le.monitoring?(le.monitoring=!0,p.prototype._fireEvent=Z):!e.monitoring&&le.monitoring&&(le.monitoring=!1,p.prototype._fireEvent=R)),p},p.prototype._fireEvent=R,p.prototype._execute=function(a,t,e){try{a(t,e)}catch(e){return e}},p.prototype._onCancel=function(){},p.prototype._setOnCancel=function(){},p.prototype._attachCancellationCallback=function(){},p.prototype._captureStackTrace=function(){},p.prototype._attachExtraTrace=function(){},p.prototype._clearCancellationData=function(){},p.prototype._propagateFrom=function(){};var ne=function(a,t){0!=(2&t)&&a._isBound()&&this._setBoundTo(a._boundTo)},re=function(){return!1},se=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;L.inherits(P,Error),e.CapturedTrace=P,P.prototype.uncycle=function(){var d=this._length;if(!(2>d)){for(var t=[],e={},n=0,r=this;void 0!==r;++n)t.push(r),r=r._parent;d=this._length=n;for(var n=d-1,i;0<=n;--n)i=t[n].stack,void 0===e[i]&&(e[i]=n);for(var n=0;d>n;++n){var o=t[n].stack,s=e[o];if(void 0!==s&&s!==n){0<s&&(t[s-1]._parent=void 0,t[s-1]._length=1),t[n]._parent=void 0,t[n]._length=1;var a=0<n?t[n-1]:this;d-1>s?(a._parent=t[s+1],a._parent.uncycle(),a._length=a._parent._length+1):(a._parent=void 0,a._length=1);for(var c=a._length+1,l=n-2;0<=l;--l)t[l]._length=c,c++;return}}}},P.prototype.attachExtraTrace=function(a){if(!a.__stackCleaned__){this.uncycle();for(var t=C(a),e=t.message,o=[t.stack],n=this;void 0!==n;)o.push(b(n.stack.split("\n"))),n=n._parent;g(o),m(o),L.notEnumerableProp(a,"stack",f(e,o)),L.notEnumerableProp(a,"__stackCleaned__",!0)}};var ie=function(){var a=/^\s*at\s*/,t=function(a,o){return"string"==typeof a?a:void 0!==o.name&&void 0!==o.message?o.toString():k(o)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,M=a,q=t;var o=Error.captureStackTrace;return re=function(e){return N.test(e)},function(a,t){Error.stackTraceLimit+=6,o(a,t),Error.stackTraceLimit-=6}}var e=new Error;if("string"==typeof e.stack&&0<=e.stack.split("\n")[0].indexOf("stackDetection@"))return M=/@/,q=t,Q=!0,function(e){e.stack=new Error().stack};var n;try{throw new Error}catch(e){n="stack"in e}return"stack"in e||!n||"number"!=typeof Error.stackTraceLimit?(q=function(a,o){return"string"==typeof a?a:"object"!=typeof o&&"function"!=typeof o||void 0===o.name||void 0===o.message?k(o):o.toString()},null):(M=a,q=t,function(a){Error.stackTraceLimit+=6;try{throw new Error}catch(t){a.stack=t.stack}Error.stackTraceLimit-=6})}([]);"undefined"!=typeof console&&"undefined"!=typeof console.warn&&(A=function(e){console.warn(e)},L.isNode&&process.stderr.isTTY?A=function(a,t){var e=t?"\x1B[33m":"\x1B[31m";console.warn(e+a+"\x1B[0m\n")}:L.isNode||"string"!=typeof new Error().stack||(A=function(a,t){console.warn("%c"+a,t?"color: darkorange":"color: red")}));var le={warnings:G,longStackTraces:!1,cancellation:!1,monitoring:!1};return ee&&p.longStackTraces(),{longStackTraces:function(){return le.longStackTraces},warnings:function(){return le.warnings},cancellation:function(){return le.cancellation},monitoring:function(){return le.monitoring},propagateFromFunction:function(){return ne},boundValueFunction:function(){return c},checkForgottenReturns:function(d,t,e,n,r){if(void 0===d&&null!==t&&X){if(void 0!==r&&r._returnedNonUndefined())return;if(0==(65535&n._bitField))return;e&&(e+=" ");var i="",o="";if(t._trace){for(var s=t._trace.stack.split("\n"),a=b(s),c=a.length-1,l;0<=c;--c)if(l=a[c],!B.test(l)){var u=l.match(U);u&&(i="at "+u[1]+":"+u[2]+":"+u[3]+" ");break}if(0<a.length)for(var p=a[0],c=0;c<s.length;++c)if(s[c]===p){0<c&&(o="\n"+s[c-1]);break}}var g="a promise was created in a "+e+"handler "+i+"but was not returned from it, see http://goo.gl/rRqMUw"+o;n._warn(g,!0,t)}},setBounds:function(d,t){if(x()){for(var e=d.stack.split("\n"),i=t.stack.split("\n"),o=-1,s=-1,a=0,c,p,u;a<e.length;++a)if(u=T(e[a]),u){c=u.fileName,o=u.line;break}for(var a=0,u;a<i.length;++a)if(u=T(i[a]),u){p=u.fileName,s=u.line;break}0>o||0>s||!c||!p||c!==p||o>=s||(re=function(a){if(N.test(a))return!0;var t=T(a);return t&&t.fileName===c&&o<=t.line&&t.line<=s})}},warn:_,deprecated:function(a,t){var e=a+" is deprecated and will be removed in a future version.";return t&&(e+=" Use "+t+" instead."),_(e)},CapturedTrace:P,fireDomEvent:K,fireGlobalEvent:ae}}},{"./errors":12,"./util":36}],10:[function(a,t){"use strict";t.exports=function(a){function t(){return this.value}function o(){throw this.reason}a.prototype["return"]=a.prototype.thenReturn=function(e){return e instanceof a&&e.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:e},void 0)},a.prototype["throw"]=a.prototype.thenThrow=function(e){return this._then(o,void 0,void 0,{reason:e},void 0)},a.prototype.catchThrow=function(a){if(1>=arguments.length)return this._then(void 0,o,void 0,{reason:a},void 0);var n=arguments[1];return this.caught(a,function(){throw n})},a.prototype.catchReturn=function(e){if(1>=arguments.length)return e instanceof a&&e.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:e},void 0);var o=arguments[1];o instanceof a&&o.suppressUnhandledRejections();return this.caught(e,function(){return o})}}},{}],11:[function(a,t){"use strict";t.exports=function(a,s){function e(){return t(this)}var l=a.reduce,t=a.all;a.prototype.each=function(a){return l(this,a,s,0)._then(e,void 0,void 0,this,void 0)},a.prototype.mapSeries=function(e){return l(this,e,s,s)},a.each=function(a,t){return l(a,t,s,0)._then(e,void 0,void 0,a,void 0)},a.mapSeries=function(e,t){return l(e,t,s,s)}}},{}],12:[function(n,t){"use strict";function e(a,t){function e(o){return this instanceof e?(u(this,"message","string"==typeof o?o:t),u(this,"name",a),void(Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this))):new e(o)}return l(e,Error),e}function r(e){return this instanceof r?(u(this,"name","OperationalError"),u(this,"message",e),this.cause=e,this.isOperational=!0,void(e instanceof Error?(u(this,"message",e.message),u(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor))):new r(e)}var T=n("./es5"),a=T.freeze,c=n("./util"),l=c.inherits,u=c.notEnumerableProp,p=e("Warning","warning"),A=e("CancellationError","cancellation error"),S=e("TimeoutError","timeout error"),R=e("AggregateError","aggregate error"),P,C;try{P=TypeError,C=RangeError}catch(t){P=e("TypeError","type error"),C=e("RangeError","range error")}for(var I=["join","pop","push","shift","unshift","slice","filter","forEach","some","every","map","indexOf","lastIndexOf","reduce","reduceRight","sort","reverse"],y=0;y<I.length;++y)"function"==typeof Array.prototype[I[y]]&&(R.prototype[I[y]]=Array.prototype[I[y]]);T.defineProperty(R.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),R.prototype.isOperational=!0;var m=0;R.prototype.toString=function(){var a=Array(4*m+1).join(" "),t="\n"+a+"AggregateError of:\n";m++,a=Array(4*m+1).join(" ");for(var e=0;e<this.length;++e){for(var n=this[e]===this?"[Circular AggregateError]":this[e]+"",r=n.split("\n"),s=0;s<r.length;++s)r[s]=a+r[s];n=r.join("\n"),t+=n+"\n"}return m--,t},l(r,Error);var g=Error.__BluebirdErrorTypes__;g||(g=a({CancellationError:A,TimeoutError:S,OperationalError:r,RejectionError:r,AggregateError:R}),T.defineProperty(Error,"__BluebirdErrorTypes__",{value:g,writable:!1,enumerable:!1,configurable:!1})),t.exports={Error:Error,TypeError:P,RangeError:C,CancellationError:g.CancellationError,OperationalError:g.OperationalError,TimeoutError:g.TimeoutError,AggregateError:g.AggregateError,Warning:p}},{"./es5":13,"./util":36}],13:[function(n,t){var e=function(){"use strict";return void 0===this}();if(e)t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:e,propertyIsWritable:function(a,t){var e=Object.getOwnPropertyDescriptor(a,t);return!e||e.writable||e.set}};else{var d={}.hasOwnProperty,i={}.toString,o={}.constructor.prototype,s=function(a){var t=[];for(var e in a)d.call(a,e)&&t.push(e);return t},g=function(a,t){return{value:a[t]}},m=function(a,t,e){return a[t]=e.value,a},_=function(e){return e},T=function(e){try{return Object(e).constructor.prototype}catch(t){return o}},y=function(e){try{return"[object Array]"===i.call(e)}catch(t){return!1}};t.exports={isArray:y,keys:s,names:s,defineProperty:m,getDescriptor:g,freeze:_,getPrototypeOf:T,isES5:e,propertyIsWritable:function(){return!0}}}},{}],14:[function(a,t){"use strict";t.exports=function(a,o){var e=a.map;a.prototype.filter=function(a,t){return e(this,a,t,o)},a.filter=function(a,t,n){return e(a,t,n,o)}}},{}],15:[function(d,t){"use strict";t.exports=function(t,e,n){function g(a,t,e){this.promise=a,this.type=t,this.handler=e,this.called=!1,this.cancelPromise=null}function r(e){this.finallyHandler=e}function o(a,t){return null!=a.cancelPromise&&(1<arguments.length?a.cancelPromise._reject(t):a.cancelPromise._cancel(),a.cancelPromise=null,!0)}function s(){return c.call(this,this.promise._target()._settledValue())}function a(e){return o(this,e)?void 0:(p.e=e,p)}function c(d){var c=this.promise,i=this.handler;if(!this.called){this.called=!0;var g=this.isFinallyHandler()?i.call(c._boundValue()):i.call(c._boundValue(),d);if(g===n)return g;if(void 0!==g){c._setReturnedNonUndefined();var h=e(g,c);if(h instanceof t){if(null!=this.cancelPromise){if(h._isCancelled()){var m=new u("late cancellation observer");return c._attachExtraTrace(m),p.e=m,p}h.isPending()&&h._attachCancellationCallback(new r(this))}return h._then(s,a,void 0,this,void 0)}}}return c.isRejected()?(o(this),p.e=d,p):(o(this),d)}var l=d("./util"),u=t.CancellationError,p=l.errorObj,h=d("./catch_filter")(n);return g.prototype.isFinallyHandler=function(){return 0===this.type},r.prototype._resultCancelled=function(){o(this.finallyHandler)},t.prototype._passThrough=function(a,o,e,n){return"function"==typeof a?this._then(e,n,void 0,new g(this,o,a),void 0):this.then()},t.prototype.lastly=t.prototype["finally"]=function(e){return this._passThrough(e,0,c,c)},t.prototype.tap=function(e){return this._passThrough(e,1,c)},t.prototype.tapCatch=function(e){var d=arguments.length;if(1===d)return this._passThrough(e,1,void 0,c);var n=Array(d-1),i=0,o;for(o=0;d-1>o;++o){var r=arguments[o];if(!l.isObject(r))return t.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+l.classString(r)));n[i++]=r}n.length=i;var s=arguments[o];return this._passThrough(h(n,s,this),1,void 0,c)},g}},{"./catch_filter":7,"./util":36}],16:[function(d,t){"use strict";t.exports=function(g,e,t,m,n,T){function i(e,t,n){for(var r=0;r<t.length;++r){n._pushContext();var o=u(t[r])(e);if(n._popContext(),o===p){n._pushContext();var s=g.reject(p.e);return n._popContext(),s}var i=m(o,n);if(i instanceof g)return i}return null}function a(e,r,n,d){if(T.cancellation()){var o=new g(t),a=this._finallyPromise=new g(t);this._promise=o.lastly(function(){return a}),o._captureStackTrace(),o._setOnCancel(this)}else{var p=this._promise=new g(t);p._captureStackTrace()}this._stack=d,this._generatorFunction=e,this._receiver=r,this._generator=void 0,this._yieldHandlers="function"==typeof n?[n].concat(s):s,this._yieldedPromise=null,this._cancellationPhase=!1}var o=d("./errors"),l=o.TypeError,r=d("./util"),p=r.errorObj,u=r.tryCatch,s=[];r.inherits(a,n),a.prototype._isResolved=function(){return null===this._promise},a.prototype._cleanup=function(){this._promise=this._generator=null,T.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},a.prototype._promiseCancelled=function(){if(!this._isResolved()){var e="undefined"!=typeof this._generator["return"],a;if(e)this._promise._pushContext(),a=u(this._generator["return"]).call(this._generator,void 0),this._promise._popContext();else{var t=new g.CancellationError("generator .return() sentinel");g.coroutine.returnSentinel=t,this._promise._attachExtraTrace(t),this._promise._pushContext(),a=u(this._generator["throw"]).call(this._generator,t),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(a)}},a.prototype._promiseFulfilled=function(a){this._yieldedPromise=null,this._promise._pushContext();var t=u(this._generator.next).call(this._generator,a);this._promise._popContext(),this._continue(t)},a.prototype._promiseRejected=function(a){this._yieldedPromise=null,this._promise._attachExtraTrace(a),this._promise._pushContext();var t=u(this._generator["throw"]).call(this._generator,a);this._promise._popContext(),this._continue(t)},a.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof g){var e=this._yieldedPromise;this._yieldedPromise=null,e.cancel()}},a.prototype.promise=function(){return this._promise},a.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},a.prototype._continue=function(e){var t=this._promise;if(e===p)return this._cleanup(),this._cancellationPhase?t.cancel():t._rejectCallback(e.e,!1);var a=e.value;if(!0===e.done)return this._cleanup(),this._cancellationPhase?t.cancel():t._resolveCallback(a);var n=m(a,this._promise);if(!(n instanceof g)&&(n=i(n,this._yieldHandlers,this._promise),null===n))return void this._promiseRejected(new l("A value %s was yielded that could not be treated as a promise\n\n    See http://goo.gl/MqrFmX\n\n".replace("%s",a+"")+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));n=n._target();var o=n._bitField;0==(50397184&o)?(this._yieldedPromise=n,n._proxy(this,null)):0==(33554432&o)?0==(16777216&o)?this._promiseCancelled():g._async.invoke(this._promiseRejected,this,n._reason()):g._async.invoke(this._promiseFulfilled,this,n._value())},g.coroutine=function(r,o){if("function"!=typeof r)throw new l("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var d=Object(o).yieldHandler,n=new Error().stack;return function(){var t=r.apply(this,arguments),e=new a(void 0,void 0,d,n),o=e.promise();return e._generator=t,e._promiseFulfilled(void 0),o}},g.coroutine.addYieldHandler=function(e){if("function"!=typeof e)throw new l("expecting a function but got "+r.classString(e));s.push(e)},g.spawn=function(o){if(T.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof o)return e("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var n=new a(o,this),r=n.promise();return n._run(g.spawn),r}}},{"./errors":12,"./util":36}],17:[function(o,t){"use strict";t.exports=function(t,s){var e=o("./util");e.canEvaluate,e.tryCatch,e.errorObj,t.join=function(){var a=arguments.length-1,e;if(0<a&&"function"==typeof arguments[a]){e=arguments[a];var t}var o=[].slice.call(arguments);e&&o.pop();var t=new s(o).promise();return void 0===e?t:t.spread(e)}}},{"./util":36}],18:[function(d,t){"use strict";t.exports=function(g,e,m,T,_,i){function r(a,t,e,n){this.constructor$(a),this._promise._captureStackTrace();var r=o();this._callback=null===r?t:l.domainBind(r,t),this._preservedValues=n===_?Array(this.length()):null,this._limit=e,this._inFlight=0,this._queue=[],c.invoke(this._asyncInit,this,void 0)}function a(e,t,a,d){if("function"!=typeof t)return m("expecting a function but got "+l.classString(t));var o=0;if(void 0!==a){if("object"!=typeof a||null===a)return g.reject(new TypeError("options argument must be an object but it is "+l.classString(a)));if("number"!=typeof a.concurrency)return g.reject(new TypeError("'concurrency' must be a number but it is "+l.classString(a.concurrency)));o=a.concurrency}return o="number"==typeof o&&isFinite(o)&&1<=o?o:0,new r(e,t,o,d).promise()}var o=g._getDomain,l=d("./util"),s=l.tryCatch,p=l.errorObj,c=g._async;l.inherits(r,e),r.prototype._asyncInit=function(){this._init$(void 0,-2)},r.prototype._init=function(){},r.prototype._promiseFulfilled=function(e,t){var n=this._values,r=this.length(),o=this._preservedValues,a=this._limit;if(!(0>t)){if(1<=a&&this._inFlight>=a)return n[t]=e,this._queue.push(t),!1;null!==o&&(o[t]=e);var c=this._promise,l=this._callback,u=c._boundValue();c._pushContext();var h=s(l).call(u,e,t,r),_=c._popContext();if(i.checkForgottenReturns(h,_,null===o?"Promise.map":"Promise.filter",c),h===p)return this._reject(h.e),!0;var d=T(h,this._promise);if(d instanceof g){d=d._target();var A=d._bitField;if(0==(50397184&A))return 1<=a&&this._inFlight++,n[t]=d,d._proxy(this,-1*(t+1)),!1;if(0==(33554432&A))return 0==(16777216&A)?(this._cancel(),!0):(this._reject(d._reason()),!0);h=d._value()}n[t]=h}else if(t=-1*t-1,n[t]=e,1<=a&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0;var y=++this._totalResolved;return!!(y>=r)&&(null===o?this._resolve(n):this._filter(n,o),!0)},r.prototype._drainQueue=function(){for(var a=this._queue,t=this._limit,e=this._values;0<a.length&&this._inFlight<t;){if(this._isResolved())return;var o=a.pop();this._promiseFulfilled(e[o],o)}},r.prototype._filter=function(a,t){for(var e=t.length,n=Array(e),r=0,s=0;e>s;++s)a[s]&&(n[r++]=t[s]);n.length=r,this._resolve(n)},r.prototype.preservedValues=function(){return this._preservedValues},g.prototype.map=function(o,t){return a(this,o,t,null)},g.map=function(o,t,e,n){return a(o,t,e,n)}}},{"./util":36}],19:[function(l,t){"use strict";t.exports=function(d,e,t,n,g){var o=l("./util"),h=o.tryCatch;d.method=function(a){if("function"!=typeof a)throw new d.TypeError("expecting a function but got "+o.classString(a));return function(){var t=new d(e);t._captureStackTrace(),t._pushContext();var o=h(a).apply(this,arguments),n=t._popContext();return g.checkForgottenReturns(o,n,"Promise.method",t),t._resolveFromSyncValue(o),t}},d.attempt=d["try"]=function(a){if("function"!=typeof a)return n("expecting a function but got "+o.classString(a));var s=new d(e);s._captureStackTrace(),s._pushContext();var r;if(1<arguments.length){g.deprecated("calling Promise.try with more than 1 argument");var i=arguments[1],l=arguments[2];r=o.isArray(i)?h(a).apply(l,i):h(a).call(l,i)}else r=h(a)();var c=s._popContext();return g.checkForgottenReturns(r,c,"Promise.try",s),s._resolveFromSyncValue(r),s},d.prototype._resolveFromSyncValue=function(e){e===o.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(o,t){"use strict";function d(e){return e instanceof Error&&l.getPrototypeOf(e)===Error.prototype}function e(a){var t;if(d(a)){t=new c(a),t.name=a.name,t.message=a.message,t.stack=a.stack;for(var e=l.keys(a),n=0,s;n<e.length;++n)s=e[n],u.test(s)||(t[s]=a[s]);return t}return r.markAsOriginatingFromRejection(a),a}var r=o("./util"),s=r.maybeWrapAsError,a=o("./errors"),c=a.OperationalError,l=o("./es5"),u=/^(?:name|message|stack|cause)$/;t.exports=function(a,t){return function(i,n){if(null!==a){if(i){var r=e(s(i));a._attachExtraTrace(r),a._reject(r)}else if(t){var o=[].slice.call(arguments,1);a._fulfill(o)}else a._fulfill(n);a=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(l,t){"use strict";t.exports=function(t){function d(l,t){var e=this;if(!r.isArray(l))return p.call(e,l,t);var d=s(t).apply(e._boundValue(),[null].concat(l));d===a&&o.throwLater(d.e)}function p(l,t){var e=this,n=e._boundValue(),d=void 0===l?s(t).call(n,null):s(t).call(n,null,l);d===a&&o.throwLater(d.e)}function n(l,d){var e=this;if(!l){var n=new Error(l+"");n.cause=l,l=n}var r=s(d).call(e._boundValue(),l);r===a&&o.throwLater(r.e)}var r=l("./util"),o=t._async,s=r.tryCatch,a=r.errorObj;t.prototype.asCallback=t.prototype.nodeify=function(a,r){if("function"==typeof a){var e=p;void 0!==r&&Object(r).spread&&(e=d),this._then(e,n,void 0,this,a)}return this}}},{"./util":36}],22:[function(A,t){"use strict";t.exports=function(){function I(){}function e(a,t){if(null==a||a.constructor!==N)throw new h("the promise constructor cannot be invoked directly\n\n    See http://goo.gl/MqrFmX\n");if("function"!=typeof t)throw new h("expecting a function but got "+D.classString(t))}function N(a){a!==g&&e(this,a),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(a),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function n(e){this.promise._resolveCallback(e)}function r(e){this.promise._rejectCallback(e,!1)}function i(a){var t=new N(g);t._fulfillmentHandler0=a,t._rejectionHandler0=a,t._promise0=a,t._receiver0=a}var L=function(){return new h("circular promise resolution chain\n\n    See http://goo.gl/MqrFmX\n")},l=function(){return new N.PromiseInspection(this._target())},a=function(e){return N.reject(new h(e))},p={},D=A("./util"),f;f=D.isNode?function(){var e=process.domain;return void 0===e&&(e=null),e}:function(){return null},D.notEnumerableProp(N,"_getDomain",f);var c=A("./es5"),u=A("./async"),B=new u;c.defineProperty(N,"_async",{value:B});var d=A("./errors"),h=N.TypeError=d.TypeError;N.RangeError=d.RangeError;var m=N.CancellationError=d.CancellationError;N.TimeoutError=d.TimeoutError,N.OperationalError=d.OperationalError,N.RejectionError=d.OperationalError,N.AggregateError=d.AggregateError;var g=function(){},_={},y={},b=A("./thenables")(N,g),C=A("./promise_array")(N,g,b,a,I),w=A("./context")(N),k=w.create,E=A("./debuggability")(N,w),x=(E.CapturedTrace,A("./finally")(N,b,y)),T=A("./catch_filter")(y),P=A("./nodeback"),R=D.errorObj,S=D.tryCatch;return N.prototype.toString=function(){return"[object Promise]"},N.prototype.caught=N.prototype["catch"]=function(s){var t=arguments.length;if(1<t){var e=Array(t-1),r=0,i;for(i=0;t-1>i;++i){var n=arguments[i];if(!D.isObject(n))return a("Catch statement predicate: expecting an object but got "+D.classString(n));e[r++]=n}return e.length=r,s=arguments[i],this.then(void 0,T(e,s,this))}return this.then(void 0,s)},N.prototype.reflect=function(){return this._then(l,l,void 0,this,void 0)},N.prototype.then=function(a,o){if(E.warnings()&&0<arguments.length&&"function"!=typeof a&&"function"!=typeof o){var r=".then() only accepts functions but was passed: "+D.classString(a);1<arguments.length&&(r+=", "+D.classString(o)),this._warn(r)}return this._then(a,o,void 0,void 0,void 0)},N.prototype.done=function(a,t){var e=this._then(a,t,void 0,void 0,void 0);e._setIsFinal()},N.prototype.spread=function(e){return"function"==typeof e?this.all()._then(e,void 0,void 0,_,void 0):a("expecting a function but got "+D.classString(e))},N.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},N.prototype.all=function(){return 0<arguments.length&&this._warn(".all() was passed arguments but it does not take any"),new C(this).promise()},N.prototype.error=function(e){return this.caught(D.originatesFromRejection,e)},N.getNewLibraryCopy=t.exports,N.is=function(e){return e instanceof N},N.fromNode=N.fromCallback=function(a){var t=new N(g);t._captureStackTrace();var e=!!(1<arguments.length)&&!!Object(arguments[1]).multiArgs,o=S(a)(P(t,e));return o===R&&t._rejectCallback(o.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},N.all=function(e){return new C(e).promise()},N.cast=function(a){var t=b(a);return t instanceof N||(t=new N(g),t._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=a),t},N.resolve=N.fulfilled=N.cast,N.reject=N.rejected=function(a){var t=new N(g);return t._captureStackTrace(),t._rejectCallback(a,!0),t},N.setScheduler=function(e){if("function"!=typeof e)throw new h("expecting a function but got "+D.classString(e));return B.setScheduler(e)},N.prototype._then=function(i,t,e,n,c){var o=void 0!==c,s=o?c:new N(g),T=this._target(),l=T._bitField;o||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===n&&0!=(2097152&this._bitField)&&(n=0==(50397184&l)?T===this?void 0:this._boundTo:this._boundValue()),this._fireEvent("promiseChained",this,s));var u=f();if(0!=(50397184&l)){var p=T._settlePromiseCtx,d,y;0==(33554432&l)?0==(16777216&l)?(p=T._settlePromiseLateCancellationObserver,y=new m("late cancellation observer"),T._attachExtraTrace(y),d=t):(y=T._fulfillmentHandler0,d=t,T._unsetRejectionIsUnhandled()):(y=T._rejectionHandler0,d=i),B.invoke(p,T,{handler:null===u?d:"function"==typeof d&&D.domainBind(u,d),promise:s,receiver:n,value:y})}else T._addCallbacks(i,t,s,n,u);return s},N.prototype._length=function(){return 65535&this._bitField},N.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},N.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},N.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},N.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},N.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},N.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},N.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},N.prototype._isFinal=function(){return 0<(4194304&this._bitField)},N.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},N.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},N.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},N.prototype._setAsyncGuaranteed=function(){B.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},N.prototype._receiverAt=function(a){var t=0===a?this._receiver0:this[4*a-4+3];return t===p?void 0:void 0===t&&this._isBound()?this._boundValue():t},N.prototype._promiseAt=function(e){return this[4*e-4+2]},N.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},N.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},N.prototype._boundValue=function(){},N.prototype._migrateCallback0=function(a){var t=(a._bitField,a._fulfillmentHandler0),e=a._rejectionHandler0,o=a._promise0,n=a._receiverAt(0);void 0===n&&(n=p),this._addCallbacks(t,e,o,n,null)},N.prototype._migrateCallbackAt=function(a,t){var e=a._fulfillmentHandlerAt(t),n=a._rejectionHandlerAt(t),r=a._promiseAt(t),s=a._receiverAt(t);void 0===s&&(s=p),this._addCallbacks(e,n,r,s,null)},N.prototype._addCallbacks=function(a,l,d,n,r){var i=this._length();if(65531<=i&&(i=0,this._setLength(0)),0===i)this._promise0=d,this._receiver0=n,"function"==typeof a&&(this._fulfillmentHandler0=null===r?a:D.domainBind(r,a)),"function"==typeof l&&(this._rejectionHandler0=null===r?l:D.domainBind(r,l));else{var o=4*i-4;this[o+2]=d,this[o+3]=n,"function"==typeof a&&(this[o+0]=null===r?a:D.domainBind(r,a)),"function"==typeof l&&(this[o+1]=null===r?l:D.domainBind(r,l))}return this._setLength(i+1),i},N.prototype._proxy=function(a,t){this._addCallbacks(void 0,void 0,t,a,null)},N.prototype._resolveCallback=function(i,t){if(0==(117506048&this._bitField)){if(i===this)return this._rejectCallback(L(),!1);var e=b(i,this);if(!(e instanceof N))return this._fulfill(i);t&&this._propagateFrom(e,2);var n=e._target();if(n===this)return void this._reject(L());var r=n._bitField;if(0==(50397184&r)){var o=this._length();0<o&&n._migrateCallback0(this);for(var s=1;o>s;++s)n._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(n)}else if(0!=(33554432&r))this._fulfill(n._value());else if(0!=(16777216&r))this._reject(n._reason());else{var a=new m("late cancellation observer");n._attachExtraTrace(a),this._reject(a)}}},N.prototype._rejectCallback=function(a,t,s){var l=D.ensureErrorObject(a),r=l===a;if(!r&&!s&&E.warnings()){var d="a promise was rejected with a non-error: "+D.classString(a);this._warn(d,!0)}this._attachExtraTrace(l,!!t&&r),this._reject(a)},N.prototype._resolveFromExecutor=function(a){if(a!==g){var o=this;this._captureStackTrace(),this._pushContext();var e=!0,t=this._execute(a,function(e){o._resolveCallback(e)},function(a){o._rejectCallback(a,e)});e=!1,this._popContext(),void 0!==t&&o._rejectCallback(t,!0)}},N.prototype._settlePromiseFromHandler=function(a,t,e,n){var r=n._bitField;if(0==(65536&r)){n._pushContext();var i;t===_?e&&"number"==typeof e.length?i=S(a).apply(this._boundValue(),e):(i=R,i.e=new h("cannot .spread() a non-array: "+D.classString(e))):i=S(a).call(t,e);var o=n._popContext();r=n._bitField,0==(65536&r)&&(i===y?n._reject(e):i===R?n._rejectCallback(i.e,!1):(E.checkForgottenReturns(i,o,"",n,this),n._resolveCallback(i)))}},N.prototype._target=function(){for(var e=this;e._isFollowing();)e=e._followee();return e},N.prototype._followee=function(){return this._rejectionHandler0},N.prototype._setFollowee=function(e){this._rejectionHandler0=e},N.prototype._settlePromise=function(n,t,i,r){var o=n instanceof N,s=this._bitField,a=0!=(134217728&s);0==(65536&s)?"function"==typeof t?o?(a&&n._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,i,r,n)):t.call(i,r,n):i instanceof I?i._isResolved()||(0==(33554432&s)?i._promiseRejected(r,n):i._promiseFulfilled(r,n)):o&&(a&&n._setAsyncGuaranteed(),0==(33554432&s)?n._reject(r):n._fulfill(r)):(o&&n._invokeInternalOnCancel(),i instanceof x&&i.isFinallyHandler()?(i.cancelPromise=n,S(t).call(i,r)===R&&n._reject(R.e)):t===l?n._fulfill(l.call(i)):i instanceof I?i._promiseCancelled(n):o||n instanceof C?n._cancel():i.cancel())},N.prototype._settlePromiseLateCancellationObserver=function(a){var t=a.handler,s=a.promise,n=a.receiver,r=a.value;"function"==typeof t?s instanceof N?this._settlePromiseFromHandler(t,n,r,s):t.call(n,r,s):s instanceof N&&s._reject(r)},N.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},N.prototype._settlePromise0=function(a,t){var e=this._promise0,o=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(e,a,o,t)},N.prototype._clearCallbackDataAtIndex=function(a){var t=4*a-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},N.prototype._fulfill=function(a){var t=this._bitField;if(!((117506048&t)>>>16)){if(a===this){var e=L();return this._attachExtraTrace(e),this._reject(e)}this._setFulfilled(),this._rejectionHandler0=a,0<(65535&t)&&(0==(134217728&t)?B.settlePromises(this):this._settlePromises())}},N.prototype._reject=function(a){var t=this._bitField;if(!((117506048&t)>>>16))return this._setRejected(),this._fulfillmentHandler0=a,this._isFinal()?B.fatalError(a,D.isNode):void(0<(65535&t)?B.settlePromises(this):this._ensurePossibleRejectionHandled())},N.prototype._fulfillPromises=function(a,t){for(var e=1;a>e;e++){var n=this._fulfillmentHandlerAt(e),r=this._promiseAt(e),s=this._receiverAt(e);this._clearCallbackDataAtIndex(e),this._settlePromise(r,n,s,t)}},N.prototype._rejectPromises=function(a,t){for(var e=1;a>e;e++){var n=this._rejectionHandlerAt(e),r=this._promiseAt(e),s=this._receiverAt(e);this._clearCallbackDataAtIndex(e),this._settlePromise(r,n,s,t)}},N.prototype._settlePromises=function(){var a=this._bitField,t=65535&a;if(0<t){if(0!=(16842752&a)){var e=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,e,a),this._rejectPromises(t,e)}else{var o=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,o,a),this._fulfillPromises(t,o)}this._setLength(0)}this._clearCancellationData()},N.prototype._settledValue=function(){var e=this._bitField;return 0==(33554432&e)?0==(16777216&e)?void 0:this._fulfillmentHandler0:this._rejectionHandler0},N.defer=N.pending=function(){E.deprecated("Promise.defer","new Promise");var e=new N(g);return{promise:e,resolve:n,reject:r}},D.notEnumerableProp(N,"_makeSelfResolutionError",L),A("./method")(N,g,b,a,E),A("./bind")(N,g,b,E),A("./cancel")(N,C,a,E),A("./direct_resolve")(N),A("./synchronous_inspection")(N),A("./join")(N,C,b,g,B,f),N.Promise=N,N.version="3.5.0",A("./map.js")(N,C,a,b,g,E),A("./call_get.js")(N),A("./using.js")(N,a,b,k,g,E),A("./timers.js")(N,g,E),A("./generators.js")(N,a,g,b,I,E),A("./nodeify.js")(N),A("./promisify.js")(N,g),A("./props.js")(N,C,b,a),A("./race.js")(N,g,b,a),A("./reduce.js")(N,C,a,b,g,E),A("./settle.js")(N,C,E),A("./some.js")(N,C,a),A("./filter.js")(N,g),A("./each.js")(N,g),A("./any.js")(N),D.toFastProperties(N),D.toFastProperties(N.prototype),i({a:1}),i({b:2}),i({c:3}),i(1),i(function(){}),i(void 0),i(!1),i(new N(g)),E.setBounds(u.firstLineError,D.lastLineError),N}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(l,t){"use strict";t.exports=function(d,e,p,t,n){function r(e){return-2===e?[]:-3===e?{}:-6===e?new Map:void 0}function o(a){var t=this._promise=new d(e);a instanceof d&&t._propagateFrom(a,3),t._setOnCancel(this),this._values=a,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var s=l("./util");return s.isArray,s.inherits(o,n),o.prototype.length=function(){return this._length},o.prototype.promise=function(){return this._promise},o.prototype._init=function e(i,l){var n=p(this._values,this._promise);if(n instanceof d){n=n._target();var o=n._bitField;if(this._values=n,0==(50397184&o))return this._promise._setAsyncGuaranteed(),n._then(e,this._reject,void 0,this,l);if(0==(33554432&o))return 0==(16777216&o)?this._cancel():this._reject(n._reason());n=n._value()}if(n=s.asArray(n),null===n){var a=t("expecting an array or an iterable object but got "+s.classString(n)).reason();return void this._promise._rejectCallback(a,!1)}return 0===n.length?void(-5===l?this._resolveEmptyArray():this._resolve(r(l))):void this._iterate(n)},o.prototype._iterate=function(e){var t=this.getActualLength(e.length);this._length=t,this._values=this.shouldCopyValues()?Array(t):this._values;for(var n=this._promise,r=!1,o=null,s=0,a;t>s;++s)a=p(e[s],n),a instanceof d?(a=a._target(),o=a._bitField):o=null,r?null!==o&&a.suppressUnhandledRejections():null===o?r=this._promiseFulfilled(a,s):0==(50397184&o)?(a._proxy(this,s),this._values[s]=a):r=0==(33554432&o)?0==(16777216&o)?this._promiseCancelled(s):this._promiseRejected(a._reason(),s):this._promiseFulfilled(a._value(),s);r||n._setAsyncGuaranteed()},o.prototype._isResolved=function(){return null===this._values},o.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},o.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},o.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},o.prototype._promiseFulfilled=function(a,t){this._values[t]=a;var e=++this._totalResolved;return!!(e>=this._length)&&(this._resolve(this._values),!0)},o.prototype._promiseCancelled=function(){return this._cancel(),!0},o.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},o.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof d)e.cancel();else for(var t=0;t<e.length;++t)e[t]instanceof d&&e[t].cancel()}},o.prototype.shouldCopyValues=function(){return!0},o.prototype.getActualLength=function(e){return e},o}},{"./util":36}],24:[function(g,t){"use strict";t.exports=function(T,e){function A(e){return!c.test(e)}function S(e){try{return!0===e.__isPromisified__}catch(t){return!1}}function n(a,t,e){var o=x.getDataPropertyOrDefault(a,t+e,d);return!!o&&S(o)}function o(a,t,e){for(var n=0,r;n<a.length;n+=2)if(r=a[n],e.test(r))for(var i=r.replace(e,""),o=0;o<a.length;o+=2)if(a[o]===i)throw new l("Cannot promisify an API that has normal methods with '%s'-suffix\n\n    See http://goo.gl/MqrFmX\n".replace("%s",t))}function R(s,t,e,i){for(var r=x.inheritedDataKeys(s),d=[],c=0;c<r.length;++c){var l=r[c],u=s[l],g=!(i!==m)||m(l,u,s);"function"!=typeof u||S(u)||n(s,l,t)||!i(l,u,s,g)||d.push(l,u)}return o(d,t,e),d}function t(n,t,d,i,o,p){function a(){var a=t;t===I&&(a=this);var i=new T(e);i._captureStackTrace();var o="string"==typeof l&&this!==g?this[l]:n,d=h(i,p);try{o.apply(a,r(arguments,d))}catch(e){i._rejectCallback(s(e),!0,!0)}return i._isFateSealed()||i._setAsyncGuaranteed(),i}var g=function(){return this}(),l=n;return"string"==typeof l&&(n=i),x.notEnumerableProp(a,"__isPromisified__",!0),a}function P(a,t,e,n,r){for(var i=new RegExp(y(t)+"$"),o=R(a,t,i,e),s=0,c=o.length;c>s;s+=2){var g=o[s],u=o[s+1],p=g+t;if(n===b)a[p]=b(g,I,g,u,t,r);else{var h=n(u,function(){return b(g,I,g,u,t,r)});x.notEnumerableProp(h,"__isPromisified__",!0),a[p]=h}}return x.toFastProperties(a),a}function a(a,t,e){return b(a,t,void 0,a,null,e)}var I={},x=g("./util"),h=g("./nodeback"),r=x.withAppended,s=x.maybeWrapAsError,i=x.canEvaluate,l=g("./errors").TypeError,d={__isPromisified__:!0},c=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),m=function(e){return x.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e},y=function(e){return e.replace(/([$])/,"\\$")},b=i?u:t,u;T.promisify=function(r,i){if("function"!=typeof r)throw new l("expecting a function but got "+x.classString(r));if(S(r))return r;i=Object(i);var e=void 0===i.context?I:i.context,n=!!i.multiArgs,o=a(r,e,n);return x.copyDescriptors(r,o,A),o},T.promisifyAll=function(d,p){if("function"!=typeof d&&"object"!=typeof d)throw new l("the target of promisifyAll must be an object or a function\n\n    See http://goo.gl/MqrFmX\n");p=Object(p);var e=!!p.multiArgs,n=p.suffix;"string"!=typeof n&&(n="Async");var u=p.filter;"function"!=typeof u&&(u=m);var g=p.promisifier;if("function"!=typeof g&&(g=b),!x.isIdentifier(n))throw new RangeError("suffix must be a valid identifier\n\n    See http://goo.gl/MqrFmX\n");for(var h=x.inheritedDataKeys(d),s=0,a;s<h.length;++s)a=d[h[s]],"constructor"!==h[s]&&x.isClass(a)&&(P(a.prototype,n,u,g,e),P(a,n,u,g,e));return P(d,n,u,g,e)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(d,t){"use strict";t.exports=function(g,e,m,r){function i(d){var t=!1,c;if(void 0!==l&&d instanceof l)c=a(d),t=!0;else{var e=n.keys(d),r=e.length;c=Array(2*r);for(var i=0,p;r>i;++i)p=e[i],c[i]=d[p],c[i+r]=p}this.constructor$(c),this._isMap=t,this._init$(void 0,t?-6:-3)}function o(e){var t=m(e),a;return c(t)?(a=t instanceof g?t._then(g.props,void 0,void 0,void 0,void 0):new i(t).promise(),t instanceof g&&a._propagateFrom(t,2),a):r("cannot await properties of a non-object\n\n    See http://goo.gl/MqrFmX\n")}var t=d("./util"),c=t.isObject,n=d("./es5"),l;"function"==typeof Map&&(l=Map);var a=function(){function a(a,n){this[o]=a,this[o+e]=n,o++}var o=0,e=0;return function(t){e=t.size,o=0;var n=Array(2*t.size);return t.forEach(a,n),n}}(),p=function(a){for(var t=new l,e=0|a.length/2,n=0;e>n;++n){var r=a[e+n],s=a[n];t.set(r,s)}return t};t.inherits(i,e),i.prototype._init=function(){},i.prototype._promiseFulfilled=function(a,t){this._values[t]=a;var e=++this._totalResolved;if(e>=this._length){var n;if(this._isMap)n=p(this._values);else{n={};for(var r=this.length(),i=0,o=this.length();o>i;++i)n[this._values[i+r]]=this._values[i]}return this._resolve(n),!0}return!1},i.prototype.shouldCopyValues=function(){return!1},i.prototype.getActualLength=function(e){return e>>1},g.prototype.props=function(){return o(this)},g.props=function(e){return o(e)}}},{"./es5":13,"./util":36}],26:[function(a,t){"use strict";function o(a,t,e,n,s){for(var i=0;s>i;++i)e[i+n]=a[i+t],a[i+t]=void 0}function e(e){this._capacity=e,this._length=0,this._front=0}e.prototype._willBeOverCapacity=function(e){return this._capacity<e},e.prototype._pushOne=function(a){var t=this.length();this._checkCapacity(t+1);var e=this._front+t&this._capacity-1;this[e]=a,this._length=t+1},e.prototype.push=function(a,t,e){var n=this.length()+3;if(this._willBeOverCapacity(n))return this._pushOne(a),this._pushOne(t),void this._pushOne(e);var r=this._front+n-3;this._checkCapacity(n);var s=this._capacity-1;this[r+0&s]=a,this[r+1&s]=t,this[r+2&s]=e,this._length=n},e.prototype.shift=function(){var a=this._front,t=this[a];return this[a]=void 0,this._front=a+1&this._capacity-1,this._length--,t},e.prototype.length=function(){return this._length},e.prototype._checkCapacity=function(e){this._capacity<e&&this._resizeTo(this._capacity<<1)},e.prototype._resizeTo=function(a){var t=this._capacity;this._capacity=a;var e=this._front,n=this._length;o(this,0,this,t,e+n&t-1)},t.exports=e},{}],27:[function(l,t){"use strict";t.exports=function(d,e,n,r){function i(a,t){var i=n(a);if(i instanceof d)return s(i);if(a=g.asArray(a),null===a)return r("expecting an array or an iterable object but got "+g.classString(a));var c=new d(e);void 0!==t&&c._propagateFrom(t,3);for(var l=c._fulfill,u=c._reject,p=0,h=a.length,m;h>p;++p)m=a[p],(void 0!==m||p in a)&&d.cast(m)._then(l,u,void 0,c,null);return c}var g=l("./util"),s=function(a){return a.then(function(t){return i(t,a)})};d.race=function(e){return i(e,void 0)},d.prototype.race=function(){return i(this,void 0)}}},{"./util":36}],28:[function(d,t){"use strict";t.exports=function(g,e,m,r,T,y){function s(e,t,a,o){this.constructor$(e);var n=c();this._fn=null===n?t:p.domainBind(n,t),void 0!==a&&(a=g.resolve(a),a._attachCancellationCallback(this)),this._initialValue=a,this._currentCancellable=null,this._eachValues=o===T?Array(this._length):0===o?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function a(a,t){this.isFulfilled()?t._resolve(a):t._reject(a)}function o(a,t,r,n){if("function"!=typeof t)return m("expecting a function but got "+p.classString(t));var i=new s(a,t,r,n);return i.promise()}function l(e){this.accum=e,this.array._gotAccum(e);var t=r(this.value,this.array._promise);return t instanceof g?(this.array._currentCancellable=t,t._then(i,void 0,void 0,this,void 0)):i.call(this,t)}function i(e){var t=this.array,n=t._promise,r=u(t._fn);n._pushContext();var s;s=void 0===t._eachValues?r.call(n._boundValue(),this.accum,e,this.index,this.length):r.call(n._boundValue(),e,this.index,this.length),s instanceof g&&(t._currentCancellable=s);var o=n._popContext();return y.checkForgottenReturns(s,o,void 0===t._eachValues?"Promise.reduce":"Promise.each",n),s}var c=g._getDomain,p=d("./util"),u=p.tryCatch;p.inherits(s,e),s.prototype._gotAccum=function(e){void 0!==this._eachValues&&null!==this._eachValues&&e!==T&&this._eachValues.push(e)},s.prototype._eachComplete=function(e){return null!==this._eachValues&&this._eachValues.push(e),this._eachValues},s.prototype._init=function(){},s.prototype._resolveEmptyArray=function(){this._resolve(void 0===this._eachValues?this._initialValue:this._eachValues)},s.prototype.shouldCopyValues=function(){return!1},s.prototype._resolve=function(e){this._promise._resolveCallback(e),this._values=null},s.prototype._resultCancelled=function(e){return e===this._initialValue?this._cancel():void(this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof g&&this._currentCancellable.cancel(),this._initialValue instanceof g&&this._initialValue.cancel()))},s.prototype._iterate=function(e){this._values=e;var t=e.length,s,n;if(void 0===this._initialValue?(s=g.resolve(e[0]),n=1):(s=this._initialValue,n=0),this._currentCancellable=s,!s.isRejected())for(;t>n;++n){var d={accum:null,value:e[n],index:n,length:t,array:this};s=s._then(l,void 0,void 0,d,void 0)}void 0!==this._eachValues&&(s=s._then(this._eachComplete,void 0,void 0,this,void 0)),s._then(a,a,void 0,s,this)},g.prototype.reduce=function(a,t){return o(this,a,t,null)},g.reduce=function(a,t,e,n){return o(a,t,e,n)}}},{"./util":36}],29:[function(o,t){"use strict";var e=o("./util"),n=e.getNativePromise(),i;if(e.isNode&&"undefined"==typeof MutationObserver){var r=global.setImmediate,a=process.nextTick;i=e.isRecentNode?function(e){r.call(global,e)}:function(e){a.call(process,e)}}else if("function"==typeof n&&"function"==typeof n.resolve){var d=n.resolve();i=function(e){d.then(e)}}else i="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)?"undefined"==typeof setImmediate?"undefined"==typeof setTimeout?function(){throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n")}:function(e){setTimeout(e,0)}:function(e){setImmediate(e)}:function(){var a=document.createElement("div"),t={attributes:!0},e=!1,n=document.createElement("div"),r=new MutationObserver(function(){a.classList.toggle("foo"),e=!1});r.observe(n,t);var s=function(){e||(e=!0,n.classList.toggle("foo"))};return function(e){var o=new MutationObserver(function(){o.disconnect(),e()});o.observe(a,t),s()}}();t.exports=i},{"./util":36}],30:[function(a,t){"use strict";t.exports=function(t,e,n){function r(e){this.constructor$(e)}var i=t.PromiseInspection,o=a("./util");o.inherits(r,e),r.prototype._promiseResolved=function(a,t){this._values[a]=t;var e=++this._totalResolved;return!!(e>=this._length)&&(this._resolve(this._values),!0)},r.prototype._promiseFulfilled=function(a,t){var e=new i;return e._bitField=33554432,e._settledValueField=a,this._promiseResolved(t,e)},r.prototype._promiseRejected=function(a,t){var e=new i;return e._bitField=16777216,e._settledValueField=a,this._promiseResolved(t,e)},t.settle=function(e){return n.deprecated(".settle()",".reflect()"),new r(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(d,t){"use strict";t.exports=function(t,e,p){function r(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function n(a,t){if((0|t)!==t||0>t)return p("expecting a positive integer\n\n    See http://goo.gl/MqrFmX\n");var e=new r(a),n=e.promise();return e.setHowMany(t),e.init(),n}var o=d("./util"),s=d("./errors").RangeError,a=d("./errors").AggregateError,i=o.isArray,l={};o.inherits(r,e),r.prototype._init=function(){if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var e=i(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},r.prototype.init=function(){this._initialized=!0,this._init()},r.prototype.setUnwrap=function(){this._unwrap=!0},r.prototype.howMany=function(){return this._howMany},r.prototype.setHowMany=function(e){this._howMany=e},r.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),!(this._fulfilled()!==this.howMany())&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},r.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},r.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(l),this._checkOutcome())},r.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var o=new a,t=this.length();t<this._values.length;++t)this._values[t]!==l&&o.push(this._values[t]);return 0<o.length?this._reject(o):this._cancel(),!0}return!1},r.prototype._fulfilled=function(){return this._totalResolved},r.prototype._rejected=function(){return this._values.length-this.length()},r.prototype._addRejected=function(e){this._values.push(e)},r.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},r.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},r.prototype._getRangeError=function(a){var t="Input array must contain at least "+this._howMany+" items but contains only "+a+" items";return new s(t)},r.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(a,t){return n(a,t)},t.prototype.some=function(e){return n(this,e)},t._SomePromiseArray=r}},{"./errors":12,"./util":36}],32:[function(a,t){"use strict";t.exports=function(l){function t(e){void 0===e?(this._bitField=0,this._settledValueField=void 0):(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0)}t.prototype._settledValue=function(){return this._settledValueField};var e=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n    See http://goo.gl/MqrFmX\n");return this._settledValue()},n=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n    See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},i=t.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},o=t.prototype.isPending=function(){return 0==(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},l.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},l.prototype._isCancelled=function(){return this._target().__isCancelled()},l.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},l.prototype.isPending=function(){return o.call(this._target())},l.prototype.isRejected=function(){return i.call(this._target())},l.prototype.isFulfilled=function(){return r.call(this._target())},l.prototype.isResolved=function(){return s.call(this._target())},l.prototype.value=function(){return e.call(this._target())},l.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),n.call(e)},l.prototype._value=function(){return this._settledValue()},l.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},l.PromiseInspection=t}},{}],33:[function(d,t){"use strict";t.exports=function(g,e){function t(n,t){if(a(n)){if(n instanceof g)return n;var l=h(n);if(l===_){t&&t._pushContext();var d=g.reject(l.e);return t&&t._popContext(),d}if("function"==typeof l){if(o(n)){var d=new g(e);return n._then(d._fulfill,d._reject,void 0,d,null),d}return s(n,l,t)}}return n}function n(e){return e.then}function h(e){try{return n(e)}catch(t){return _.e=t,_}}function o(e){try{return r.call(e,"_promise0")}catch(t){return!1}}function s(o,t,n){var r=new g(e),s=r;n&&n._pushContext(),r._captureStackTrace(),n&&n._popContext();var i=!0,l=m.tryCatch(t).call(o,function(e){r&&(r._resolveCallback(e),r=null)},function(e){r&&(r._rejectCallback(e,i,!0),r=null)});return i=!1,r&&l===_&&(r._rejectCallback(l.e,!0,!0),r=null),s}var m=d("./util"),_=m.errorObj,a=m.isObject,r={}.hasOwnProperty;return t}},{"./util":36}],34:[function(d,t){"use strict";t.exports=function(g,e,h){function r(e){this.handle=e}function i(e){return clearTimeout(this.handle),e}function o(e){throw clearTimeout(this.handle),e}var s=d("./util"),a=g.TimeoutError;r.prototype._resultCancelled=function(){clearTimeout(this.handle)};var n=function(e){return l(+this).thenReturn(e)},l=g.delay=function(i,l){var o,s;return void 0===l?(o=new g(e),s=setTimeout(function(){o._fulfill()},+i),h.cancellation()&&o._setOnCancel(new r(s)),o._captureStackTrace()):(o=g.resolve(l)._then(n,null,null,i,void 0),h.cancellation()&&l instanceof g&&o._setOnCancel(l)),o._setAsyncGuaranteed(),o};g.prototype.delay=function(e){return l(e,this)};var t=function(o,t,i){var n;n="string"==typeof t?new a(t):t instanceof Error?t:new a("operation timed out"),s.markAsOriginatingFromRejection(n),o._attachExtraTrace(n),o._reject(n),null!=i&&i.cancel()};g.prototype.timeout=function(s,l){s=+s;var e=new r(setTimeout(function(){d.isPending()&&t(d,l,n)},s)),d,n;return h.cancellation()?(n=this.then(),d=n._then(i,o,void 0,e,void 0),d._setOnCancel(e)):d=this._then(i,o,void 0,e,void 0),d}}},{"./util":36}],35:[function(T,t){"use strict";t.exports=function(A,e,S,n,r,b){function s(e){setTimeout(function(){throw e},0)}function a(a){var t=S(a);return t!==a&&"function"==typeof a._isDisposable&&"function"==typeof a._getDisposer&&a._isDisposable()&&t._setDisposable(a._getDisposer()),t}function o(e,t){function n(){if(i>=d)return c._fulfill();var r=a(e[i++]);if(r instanceof A&&r._isDisposable()){try{r=S(r._getDisposer().tryDispose(t),e.promise)}catch(e){return s(e)}if(r instanceof A)return r._then(n,s,null,null,null)}n()}var i=0,d=e.length,c=new A(r);return n(),c}function i(a,t,e){this._data=a,this._promise=t,this._context=e}function l(a,t,e){this.constructor$(a,t,e)}function t(e){return i.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function u(e){this.length=e,this.promise=null,this[e-1]=null}var h=T("./util"),c=T("./errors").TypeError,d=T("./util").inherits,p=h.errorObj,_=h.tryCatch,m={};i.prototype.data=function(){return this._data},i.prototype.promise=function(){return this._promise},i.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():m},i.prototype.tryDispose=function(a){var t=this.resource(),e=this._context;void 0!==e&&e._pushContext();var o=t===m?null:this.doDispose(t,a);return void 0!==e&&e._popContext(),this._promise._unsetDisposable(),this._data=null,o},i.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},d(l,i),l.prototype.doDispose=function(a,t){var e=this.data();return e.call(a,a,t)},u.prototype._resultCancelled=function(){for(var e=this.length,t=0,a;e>t;++t)a=this[t],a instanceof A&&a.cancel()},A.using=function(){var n=arguments.length;if(2>n)return e("you must pass at least 2 arguments to Promise.using");var s=arguments[n-1];if("function"!=typeof s)return e("expecting a function but got "+h.classString(s));var l=!0,a;2===n&&Array.isArray(arguments[0])?(a=arguments[0],n=a.length,l=!1):(a=arguments,n--);for(var r=new u(n),m=0,T;n>m;++m){if(T=a[m],i.isDisposer(T)){var d=T;T=T.promise(),T._setDisposable(d)}else{var y=S(T);y instanceof A&&(T=y._then(t,null,null,{resources:r,index:m},void 0))}r[m]=T}for(var g=Array(r.length),m=0;m<g.length;++m)g[m]=A.resolve(r[m]).reflect();var f=A.all(g).then(function(a){for(var t=0,e;t<a.length;++t){if(e=a[t],e.isRejected())return p.e=e.error(),p;if(!e.isFulfilled())return void f.cancel();a[t]=e.value()}R._pushContext(),s=_(s);var n=l?s.apply(void 0,a):s(a),r=R._popContext();return b.checkForgottenReturns(n,r,"Promise.using",R),n}),R=f.lastly(function(){var e=new A.PromiseInspection(f);return o(r,e)});return r.promise=R,R._setOnCancel(r),R},A.prototype._setDisposable=function(e){this._bitField=131072|this._bitField,this._disposer=e},A.prototype._isDisposable=function(){return 0<(131072&this._bitField)},A.prototype._getDisposer=function(){return this._disposer},A.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},A.prototype.disposer=function(e){if("function"==typeof e)return new l(e,this,n());throw new c}}},{"./errors":12,"./util":36}],36:[function(a,t){"use strict";function e(){try{var e=C;return C=null,e.apply(this,arguments)}catch(t){return g.e=t,g}}function r(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function n(a,t,e){if(r(a))return a;return p.defineProperty(a,t,{value:e,configurable:!0,enumerable:!1,writable:!0}),a}function s(e){try{return e+""}catch(t){return"[no string representation]"}}function i(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name}function l(e){return i(e)&&p.propertyIsWritable(e,"stack")}function d(e){return{}.toString.call(e)}var p=a("./es5"),c="undefined"==typeof navigator,g={e:{}},h="undefined"==typeof self?"undefined"==typeof window?"undefined"==typeof global?void 0===this?null:this:global:window:self,m=function(){var a=[Array.prototype,Object.prototype,Function.prototype],d=function(t){for(var e=0;e<a.length;++e)if(a[e]===t)return!0;return!1};if(p.isES5){var e=Object.getOwnPropertyNames;return function(n){for(var t=[],r=Object.create(null);null!=n&&!d(n);){var s;try{s=e(n)}catch(e){return t}for(var o=0,a;o<s.length;++o)if(a=s[o],!r[a]){r[a]=!0;var i=Object.getOwnPropertyDescriptor(n,a);null!=i&&null==i.get&&null==i.set&&t.push(a)}n=p.getPrototypeOf(n)}return t}}var t={}.hasOwnProperty;return function(e){if(d(e))return[];var n=[];t:for(var r in e)if(t.call(e,r))n.push(r);else{for(var o=0;o<a.length;++o)if(t.call(a[o],r))continue t;n.push(r)}return n}}(),_=/this\s*\.\s*\S+\s*=/,A=/^[a-z$_][a-z$_0-9]*$/i,S=function(){return"stack"in new Error?function(e){return l(e)?e:new Error(s(e))}:function(e){if(l(e))return e;try{throw new Error(s(e))}catch(t){return t}}}(),f=function(e){return p.isArray(e)?e:null},C;if("undefined"!=typeof Symbol&&Symbol.iterator){var P="function"==typeof Array.from?function(e){return Array.from(e)}:function(a){for(var t=[],o=a[Symbol.iterator](),n;!(n=o.next()).done;)t.push(n.value);return t};f=function(e){return p.isArray(e)?e:null!=e&&"function"==typeof e[Symbol.iterator]?P(e):null}}var k="undefined"!=typeof process&&"[object process]"===d(process).toLowerCase(),E="undefined"!=typeof process&&"undefined"!=typeof process.env,L={isClass:function(a){try{if("function"==typeof a){var o=p.names(a.prototype),e=p.isES5&&1<o.length,n=0<o.length&&(1!==o.length||"constructor"!==o[0]),r=_.test(a+"")&&0<p.names(a).length;if(e||n||r)return!0}return!1}catch(e){return!1}},isIdentifier:function(e){return A.test(e)},inheritedDataKeys:m,getDataPropertyOrDefault:function(a,t,e){if(!p.isES5)return{}.hasOwnProperty.call(a,t)?a[t]:void 0;var o=Object.getOwnPropertyDescriptor(a,t);return null==o?void 0:null==o.get&&null==o.set?o.value:e},thrower:function(e){throw e},isArray:p.isArray,asArray:f,notEnumerableProp:n,isPrimitive:r,isObject:function(e){return"function"==typeof e||"object"==typeof e&&null!==e},isError:i,canEvaluate:c,errorObj:g,tryCatch:function(a){return C=a,e},inherits:function(a,t){function e(){for(var e in this.constructor=a,this.constructor$=t,t.prototype)o.call(t.prototype,e)&&"$"!==e.charAt(e.length-1)&&(this[e+"$"]=t.prototype[e])}var o={}.hasOwnProperty;return e.prototype=t.prototype,a.prototype=new e,a.prototype},withAppended:function(a,t){var e=a.length,o=Array(e+1),r;for(r=0;e>r;++r)o[r]=a[r];return o[r]=t,o},maybeWrapAsError:function(e){return r(e)?new Error(s(e)):e},toFastProperties:function(a){function t(){}t.prototype=a;for(var e=8;e--;)new t;return a},filledRange:function(a,t,e){for(var o=Array(a),n=0;a>n;++n)o[n]=t+n+e;return o},toString:s,canAttachTrace:l,ensureErrorObject:S,originatesFromRejection:function(e){return null!=e&&(e instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===e.isOperational)},markAsOriginatingFromRejection:function(e){try{n(e,"isOperational",!0)}catch(t){}},classString:d,copyDescriptors:function(a,t,e){for(var n=p.names(a),r=0,s;r<n.length;++r)if(s=n[r],e(s))try{p.defineProperty(t,s,p.getDescriptor(a,s))}catch(e){}},hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:k,hasEnvVariables:E,env:function(e){return E?process.env[e]:void 0},global:h,getNativePromise:function(){if("function"==typeof Promise)try{var e=new Promise(function(){});if("[object Promise]"==={}.toString.call(e))return Promise}catch(t){}},domainBind:function(a,t){return a.bind(t)}};L.isRecentNode=L.isNode&&function(){var e=process.versions.node.split(".").map(Number);return 0===e[0]&&10<e[1]||0<e[0]}(),L.isNode&&L.toFastProperties(process);try{throw new Error}catch(e){L.lastLineError=e}t.exports=L},{"./es5":13}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise),!function(a,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):a.moment=e()}(this,function(){"use strict";function Le(){return ua.apply(null,arguments)}function c(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function u(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function d(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(a,e){var t=[],o;for(o=0;o<a.length;++o)t.push(e(a[o],o));return t}function f(a,e){return Object.prototype.hasOwnProperty.call(a,e)}function m(a,e){for(var t in e)f(e,t)&&(a[t]=e[t]);return f(e,"toString")&&(a.toString=e.toString),f(e,"valueOf")&&(a.valueOf=e.valueOf),a}function _(a,e,t,o){return ct(a,e,t,o,!0).utc()}function y(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function g(a){if(null==a._isValid){var e=y(a),t=ha.call(e.parsedDateParts,function(t){return null!=t}),o=!isNaN(a._d.getTime())&&0>e.overflow&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&t);if(a._strict&&(o=o&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(a))return o;a._isValid=o}return a._isValid}function p(a){var e=_(NaN);return null==a?y(e).userInvalidated=!0:m(y(e),a),e}function v(a,e){var t,o,n;if(u(e._isAMomentObject)||(a._isAMomentObject=e._isAMomentObject),u(e._i)||(a._i=e._i),u(e._f)||(a._f=e._f),u(e._l)||(a._l=e._l),u(e._strict)||(a._strict=e._strict),u(e._tzm)||(a._tzm=e._tzm),u(e._isUTC)||(a._isUTC=e._isUTC),u(e._offset)||(a._offset=e._offset),u(e._pf)||(a._pf=y(e)),u(e._locale)||(a._locale=e._locale),0<ma.length)for(t=0;t<ma.length;t++)u(n=e[o=ma[t]])||(a[o]=n);return a}function w(t){v(this,t),this._d=new Date(null==t._d?NaN:t._d.getTime()),this.isValid()||(this._d=new Date(NaN)),!1==r&&(r=!0,Le.updateOffset(this),r=!1)}function M(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function S(t){return 0>t?da(t)||0:la(t)}function D(a){var o=+a,t=0;return 0!=o&&isFinite(o)&&(t=S(o)),t}function k(o,e,t){var l=ia(o.length,e.length),i=pa(o.length-e.length),r=0,d;for(d=0;d<l;d++)(t&&o[d]!==e[d]||!t&&D(o[d])!==D(e[d]))&&r++;return r+i}function Ue(t){!1===Le.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function a(o,i){var r=!0;return m(function(){if(null!=Le.deprecationHandler&&Le.deprecationHandler(null,o),r){for(var a=[],t=0,n;t<arguments.length;t++){if(n="","object"==typeof arguments[t]){for(var e in n+="\n["+t+"] ",arguments[0])n+=e+": "+arguments[0][e]+", ";n=n.slice(0,-2)}else n=arguments[t];a.push(n)}Ue(o+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+new Error().stack),r=!1}return i.apply(this,arguments)},i)}function Y(a,e){null!=Le.deprecationHandler&&Le.deprecationHandler(a,e),i[a]||(Ue(e),i[a]=!0)}function T(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function x(a,e){var t=m({},a),r;for(r in e)f(e,r)&&(o(a[r])&&o(e[r])?(t[r]={},m(t[r],a[r]),m(t[r],e[r])):null==e[r]?delete t[r]:t[r]=e[r]);for(r in a)f(a,r)&&!f(e,r)&&o(a[r])&&(t[r]=m({},t[r]));return t}function b(t){null!=t&&this.set(t)}function n(a,e){var t=a.toLowerCase();s[t]=s[t+"s"]=s[e]=a}function P(t){return"string"==typeof t?s[t]||s[t.toLowerCase()]:void 0}function R(a){var e={},o,t;for(t in a)f(a,t)&&(o=P(t))&&(e[o]=a[t]);return e}function C(a,e){O[a]=e}function L(a,e,t){var o=""+pa(a),n=e-o.length;return(0<=a?t?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+o}function U(a,e,t,o){var n=o;"string"==typeof o&&(n=function(){return this[o]()}),a&&(G[a]=n),e&&(G[e[0]]=function(){return L(n.apply(this,arguments),e[1],e[2])}),t&&(G[t]=function(){return this.localeData().ordinal(n.apply(this,arguments),a)})}function I(a,e){return a.isValid()?(e=A(e,a.localeData()),N[e]=N[e]||function(a){var o=a.match(F),n,r,e;for(n=0,r=o.length;n<r;n++)o[n]=G[o[n]]?G[o[n]]:(e=o[n]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(s){var e="",n;for(n=0;n<r;n++)e+=T(o[n])?o[n].call(s,a):o[n];return e}}(e),N[e](a)):a.localeData().invalidDate()}function A(a,o){function e(t){return o.longDateFormat(t)||t}var r=5;for(t.lastIndex=0;0<=r&&t.test(a);)a=a.replace(t,e),t.lastIndex=0,r-=1;return a}function H(t,a,o){ae[t]=T(a)?a:function(t){return t&&o?o:a}}function j(a,e){return f(ae,a)?ae[a](e._strict,e._locale):new RegExp(le(a.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,e,t,o,n){return e||t||o||n})))}function le(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function de(a,o){var n=o,r;for("string"==typeof a&&(a=[a]),l(o)&&(n=function(a,e){e[o]=D(a)}),r=0;r<a.length;r++)oe[a[r]]=n}function ce(t,a){de(t,function(o,e,t,n){t._w=t._w||{},a(o,t._w,t,n)})}function ue(t){return fe(t)?366:365}function fe(t){return 0==t%4&&0!=t%100||0==t%400}function ke(a,t){return function(o){return null==o?Te(this,a):(xe(this,a,o),Le.updateOffset(this,t),this)}}function Te(a,e){return a.isValid()?a._d["get"+(a._isUTC?"UTC":"")+e]():NaN}function xe(a,e,t){a.isValid()&&!isNaN(t)&&("FullYear"===e&&fe(a.year())&&1===a.month()&&29===a.date()?a._d["set"+(a._isUTC?"UTC":"")+e](t,a.month(),be(t,a.month())):a._d["set"+(a._isUTC?"UTC":"")+e](t))}function be(a,e){if(isNaN(a)||isNaN(e))return NaN;var t=(e%(o=12)+o)%o,o;return a+=(e-t)/12,1==t?fe(a)?29:28:31-t%7%2}function Pe(a,e){var o;if(!a.isValid())return a;if("string"==typeof e)if(/^\d+$/.test(e))e=D(e);else if(!l(e=a.localeData().monthsParse(e)))return a;return o=ia(a.date(),be(a.year(),e)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](e,o),a}function Ce(t){return null==t?Te(this,"Month"):(Pe(this,t),Le.updateOffset(this,!0),this)}function De(){function a(a,o){return o.length-a.length}var e=[],o=[],s=[],r,t;for(r=0;12>r;r++)t=_([2e3,r]),e.push(this.monthsShort(t,"")),o.push(this.months(t,"")),s.push(this.months(t,"")),s.push(this.monthsShort(t,""));for(e.sort(a),o.sort(a),s.sort(a),r=0;12>r;r++)e[r]=le(e[r]),o[r]=le(o[r]);for(r=0;24>r;r++)s[r]=le(s[r]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Ne(a){var e=new Date(Date.UTC.apply(null,arguments));return 100>a&&0<=a&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(a),e}function Fe(a,e,t){var o=7+e-t;return-((7+Ne(a,0,o).getUTCDay()-e)%7)+o-1}function Ge(l,e,t,n,s){var i=1+7*(e-1)+(7+t-n)%7+Fe(l,n,s),o,d;return 0>=i?d=ue(o=l-1)+i:i>ue(l)?(o=l+1,d=i-ue(l)):(o=l,d=i),{year:o,dayOfYear:d}}function Ee(o,e,t){var n=Fe(o.year(),e,t),r=la((o.dayOfYear()-n-1)/7)+1,a,l;return 1>r?a=r+Ie(l=o.year()-1,e,t):r>Ie(o.year(),e,t)?(a=r-Ie(o.year(),e,t),l=o.year()+1):(l=o.year(),a=r),{week:a,year:l}}function Ie(a,e,t){var o=Fe(a,e,t),n=Fe(a+1,e,t);return(ue(a)-o+n)/7}function Ae(){function d(a,o){return o.length-a.length}var e=[],a=[],o=[],c=[],l,t,n,s,i;for(l=0;7>l;l++)t=_([2000,1]).day(l),n=this.weekdaysMin(t,""),s=this.weekdaysShort(t,""),i=this.weekdays(t,""),e.push(n),a.push(s),o.push(i),c.push(n),c.push(s),c.push(i);for(e.sort(d),a.sort(d),o.sort(d),c.sort(d),l=0;7>l;l++)a[l]=le(a[l]),o[l]=le(o[l]),c[l]=le(c[l]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Be(){return this.hours()%12||12}function Ve(a,e){U(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function ze(a,e){return e._meridiemParse}function He(t){return t?t.toLowerCase().replace("_","-"):t}function je(a){var e=null;if(!nt[a]&&"undefined"!=typeof module&&module&&module.exports)try{e=St._abbr,require("./locale/"+a),qe(e)}catch(t){}return nt[a]}function qe(a,e){var t;return a&&((t=u(e)?Qe(a):Ke(a,e))?St=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+a+" not found. Did you forget to load it?")),St._abbr}function Ke(a,o){if(null!==o){var r=tt,s;if(o.abbr=a,null!=nt[a])Y("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=nt[a]._config;else if(null!=o.parentLocale)if(null!=nt[o.parentLocale])r=nt[o.parentLocale]._config;else{if(null==(s=je(o.parentLocale)))return st[o.parentLocale]||(st[o.parentLocale]=[]),st[o.parentLocale].push({name:a,config:o}),null;r=s._config}return nt[a]=new b(x(r,o)),st[a]&&st[a].forEach(function(t){Ke(t.name,t.config)}),qe(a),nt[a]}return delete nt[a],null}function Qe(a){var o;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return St;if(!c(a)){if(o=je(a))return o;a=[a]}return function(a){for(var e=0,o,t,n,r;e<a.length;){for(o=(r=He(a[e]).split("-")).length,t=(t=He(a[e+1]))?t.split("-"):null;0<o;){if(n=je(r.slice(0,o).join("-")))return n;if(t&&t.length>=o&&k(r,t,!0)>=o-1)break;o--}e++}return St}(a)}function Xe(a){var e=a._a,o;return e&&-2===y(a).overflow&&(o=0>e[ie]||11<e[ie]?ie:1>e[he]||e[he]>be(e[se],e[ie])?he:0>e[me]||24<e[me]||24===e[me]&&(0!==e[ge]||0!==e[pe]||0!==e[_e])?me:0>e[ge]||59<e[ge]?ge:0>e[pe]||59<e[pe]?pe:0>e[_e]||999<e[_e]?_e:-1,y(a)._overflowDayOfYear&&(o<se||he<o)&&(o=he),y(a)._overflowWeeks&&-1===o&&(o=ye),y(a)._overflowWeekday&&-1===o&&(o=ve),y(a).overflow=o),a}function Je(a,e,t){return null==a?null==e?t:e:a}function $e(l){var e=[],a,t,n,s,i;if(!l._d){var r,o;for(r=l,o=new Date(Le.now()),n=r._useUTC?[o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()]:[o.getFullYear(),o.getMonth(),o.getDate()],l._w&&null==l._a[he]&&null==l._a[ie]&&function(d){var e,t,n,s,i,r,a,o;if(null!=(e=d._w).GG||null!=e.W||null!=e.E)i=1,r=4,t=Je(e.GG,d._a[se],Ee(ut(),1,4).year),n=Je(e.W,1),(1>(s=Je(e.E,1))||7<s)&&(o=!0);else{i=d._locale._week.dow,r=d._locale._week.doy;var c=Ee(ut(),i,r);t=Je(e.gg,d._a[se],c.year),n=Je(e.w,c.week),null==e.d?null==e.e?s=i:(s=e.e+i,(0>e.e||6<e.e)&&(o=!0)):(0>(s=e.d)||6<s)&&(o=!0)}1>n||n>Ie(t,i,r)?y(d)._overflowWeeks=!0:null==o?(a=Ge(t,n,s,i,r),d._a[se]=a.year,d._dayOfYear=a.dayOfYear):y(d)._overflowWeekday=!0}(l),null!=l._dayOfYear&&(i=Je(l._a[se],n[se]),(l._dayOfYear>ue(i)||0===l._dayOfYear)&&(y(l)._overflowDayOfYear=!0),t=Ne(i,0,l._dayOfYear),l._a[ie]=t.getUTCMonth(),l._a[he]=t.getUTCDate()),a=0;3>a&&null==l._a[a];++a)l._a[a]=e[a]=n[a];for(;7>a;a++)l._a[a]=e[a]=null==l._a[a]?2===a?1:0:l._a[a];24===l._a[me]&&0===l._a[ge]&&0===l._a[pe]&&0===l._a[_e]&&(l._nextDay=!0,l._a[me]=0),l._d=(l._useUTC?Ne:function(l,e,t,n,s,i,r){var a=new Date(l,e,t,n,s,i,r);return 100>l&&0<=l&&isFinite(a.getFullYear())&&a.setFullYear(l),a}).apply(null,e),s=l._useUTC?l._d.getUTCDay():l._d.getDay(),null!=l._tzm&&l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),l._nextDay&&(l._a[me]=24),l._w&&void 0!==l._w.d&&l._w.d!==s&&(y(l).weekdayMismatch=!0)}}function at(l){var e=l._i,o=it.exec(e)||ft.exec(e),d,t,n,c,i,r;if(o){for(y(l).iso=!0,d=0,t=_t.length;d<t;d++)if(_t[d][1].exec(o[1])){c=_t[d][0],n=!1!==_t[d][2];break}if(null==c)return void(l._isValid=!1);if(o[3]){for(d=0,t=yt.length;d<t;d++)if(yt[d][1].exec(o[3])){i=(o[2]||" ")+yt[d][0];break}if(null==i)return void(l._isValid=!1)}if(!n&&null!=i)return void(l._isValid=!1);if(o[4]){if(!mt.exec(o[4]))return void(l._isValid=!1);r="Z"}l._f=c+(i||"")+(r||""),lt(l)}else l._isValid=!1}function ot(o,e,t,n,s,i){var r=[function(a){var e=parseInt(a,10);{if(49>=e)return 2e3+e;if(999>=e)return 1900+e}return e}(o),Me.indexOf(e),parseInt(t,10),parseInt(n,10),parseInt(s,10)];return i&&r.push(parseInt(i,10)),r}function rt(a){var e=pt.exec(a._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")),o,t,n;if(e){var s=ot(e[4],e[3],e[2],e[5],e[6],e[7]);if(o=e[1],t=s,n=a,o&&Ye.indexOf(o)!==new Date(t[0],t[1],t[2]).getDay()&&(y(n).weekdayMismatch=!0,!(n._isValid=!1)))return;a._a=s,a._tzm=function(a,e,t){if(a)return wt[a];if(e)return 0;var o=parseInt(t,10),n=o%100;return 60*((o-n)/100)+n}(e[8],e[9],e[10]),a._d=Ne.apply(null,a._a),a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),y(a).rfc2822=!0}else a._isValid=!1}function lt(c){if(!(c._f!==Le.ISO_8601))at(c);else if(c._f!==Le.RFC_2822){c._a=[],y(c).empty=!0;var e=""+c._i,l=e.length,d=0,p,t,g,s,i,r,a,o;for(g=A(c._f,c._locale).match(F)||[],p=0;p<g.length;p++)s=g[p],(t=(e.match(j(s,c))||[])[0])&&(0<(i=e.substr(0,e.indexOf(t))).length&&y(c).unusedInput.push(i),e=e.slice(e.indexOf(t)+t.length),d+=t.length),G[s]?(t?y(c).empty=!1:y(c).unusedTokens.push(s),r=s,o=c,null!=(a=t)&&f(oe,r)&&oe[r](a,o._a,o,r)):c._strict&&!t&&y(c).unusedTokens.push(s);y(c).charsLeftOver=l-d,0<e.length&&y(c).unusedInput.push(e),12>=c._a[me]&&!0===y(c).bigHour&&0<c._a[me]&&(y(c).bigHour=void 0),y(c).parsedDateParts=c._a.slice(0),y(c).meridiem=c._meridiem,c._a[me]=function(a,e,t){var o;return null==t?e:null==a.meridiemHour?(null!=a.isPM&&((o=a.isPM(t))&&12>e&&(e+=12),o||12!==e||(e=0)),e):a.meridiemHour(e,t)}(c._locale,c._a[me],c._meridiem),$e(c),Xe(c)}else rt(c)}function dt(_){var e=_._i,T=_._f,a,t,A,s;return _._locale=_._locale||Qe(_._l),null===e||void 0===T&&""===e?p({nullInput:!0}):("string"==typeof e&&(_._i=e=_._locale.preparse(e)),M(e)?new w(Xe(e)):(d(e)?_._d=e:c(T)?function(a){var e,t,o,n,s;if(0===a._f.length)return y(a).invalidFormat=!0,a._d=new Date(NaN);for(n=0;n<a._f.length;n++)s=0,e=v({},a),null!=a._useUTC&&(e._useUTC=a._useUTC),e._f=a._f[n],lt(e),g(e)&&(s+=y(e).charsLeftOver,s+=10*y(e).unusedTokens.length,y(e).score=s,(null==o||s<o)&&(o=s,t=e));m(a,t||e)}(_):T?lt(_):u(t=(a=_)._i)?a._d=new Date(Le.now()):d(t)?a._d=new Date(t.valueOf()):"string"==typeof t?(A=a,null===(s=gt.exec(A._i))?(at(A),!1===A._isValid&&(delete A._isValid,rt(A),!1===A._isValid&&(delete A._isValid,Le.createFromInputFallback(A)))):A._d=new Date(+s[1])):c(t)?(a._a=h(t.slice(0),function(t){return parseInt(t,10)}),$e(a)):o(t)?function(a){if(!a._d){var e=R(a._i);a._a=h([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),$e(a)}}(a):l(t)?a._d=new Date(t):Le.createFromInputFallback(a),g(_)||(_._d=null),_))}function ct(l,e,t,n,s){var i={},a;return!0!==t&&!1!==t||(n=t,t=void 0),(o(l)&&function(a){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(a).length;for(var e in a)if(a.hasOwnProperty(e))return!1;return!0}(l)||c(l)&&0===l.length)&&(l=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=s,i._l=t,i._i=l,i._f=e,i._strict=n,(a=new w(Xe(dt(i))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function ut(a,e,t,o){return ct(a,e,t,o,!1)}function ht(a,e){var t,o;if(1===e.length&&c(e[0])&&(e=e[0]),!e.length)return ut();for(t=e[0],o=1;o<e.length;++o)e[o].isValid()&&!e[o][a](t)||(t=e[o]);return t}function Tt(c){var e=R(c),t=e.year||0,n=e.quarter||0,s=e.month||0,p=e.week||0,r=e.day||0,g=e.hour||0,o=e.minute||0,u=e.second||0,l=e.millisecond||0;this._isValid=function(a){for(var e in a)if(-1===Oe.call(bt,e)||null!=a[e]&&isNaN(a[e]))return!1;for(var t=!1,o=0;o<bt.length;++o)if(a[bt[o]]){if(t)return!1;parseFloat(a[bt[o]])!==D(a[bt[o]])&&(t=!0)}return!0}(e),this._milliseconds=+l+1e3*u+6e4*o+60*(60*(1e3*g)),this._days=+r+7*p,this._months=+s+3*n+12*t,this._data={},this._locale=Qe(),this._bubble()}function Pt(t){return t instanceof Tt}function Rt(t){return 0>t?-1*ca(-1*t):ca(t)}function Ct(t,a){U(t,0,0,function(){var o=this.utcOffset(),n="+";return 0>o&&(o=-o,n="-"),n+L(~~(o/60),2)+a+L(~~o%60,2)})}function vt(a,e){var t=(e||"").match(a);if(null===t)return null;var o=((t[t.length-1]||[])+"").match(Wt)||["-",0,0],n=60*o[1]+D(o[2]);return 0===n?0:"+"===o[0]?n:-n}function Ot(a,e){var t,o;return e._isUTC?(t=e.clone(),o=(M(a)||d(a)?a.valueOf():ut(a).valueOf())-t.valueOf(),t._d.setTime(t._d.valueOf()+o),Le.updateOffset(t,!1),t):ut(a).local()}function kt(t){return 15*-ca(t._d.getTimezoneOffset()/15)}function Nt(){return!!this.isValid()&&this._isUTC&&0===this._offset}function Dt(o,e){var t=o,d=null,a,n,s;return Pt(o)?t={ms:o._milliseconds,d:o._days,M:o._months}:l(o)?(t={},e?t[e]=o:t.milliseconds=o):(d=Lt.exec(o))?(a="-"===d[1]?-1:1,t={y:0,d:D(d[he])*a,h:D(d[me])*a,m:D(d[ge])*a,s:D(d[pe])*a,ms:D(Rt(1e3*d[_e]))*a}):(d=Et.exec(o))?(a="-"===d[1]?-1:(d[1],1),t={y:At(d[2],a),M:At(d[3],a),w:At(d[4],a),d:At(d[5],a),h:At(d[6],a),m:At(d[7],a),s:At(d[8],a)}):null==t?t={}:"object"==typeof t&&("from"in t||"to"in t)&&(s=function(a,e){var t;return a.isValid()&&e.isValid()?(e=Ot(e,a),a.isBefore(e)?t=Ft(a,e):((t=Ft(e,a)).milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}(ut(t.from),ut(t.to)),(t={}).ms=s.milliseconds,t.M=s.months),n=new Tt(t),Pt(o)&&f(o,"_locale")&&(n._locale=o._locale),n}function At(a,e){var t=a&&parseFloat(a.replace(",","."));return(isNaN(t)?0:t)*e}function Ft(a,e){var o={milliseconds:0,months:0};return o.months=e.month()-a.month()+12*(e.year()-a.year()),a.clone().add(o.months,"M").isAfter(e)&&--o.months,o.milliseconds=+e-+a.clone().add(o.months,"M"),o}function Gt(a,o){return function(r,s){var i;return null===s||isNaN(+s)||(Y(o,"moment()."+o+"(period, number) is deprecated. Please use moment()."+o+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=s,s=i),Ut(this,Dt(r="string"==typeof r?+r:r,s),a),this}}function Ut(o,e,t,n){var s=e._milliseconds,i=Rt(e._days),r=Rt(e._months);o.isValid()&&(n=null==n||n,r&&Pe(o,Te(o,"Month")+r*t),i&&xe(o,"Date",Te(o,"Date")+i*t),s&&o._d.setTime(o._d.valueOf()+s*t),n&&Le.updateOffset(o,i||r))}function Vt(a,e){var t=12*(e.year()-a.year())+(e.month()-a.month()),o=a.clone().add(t,"months");return-(t+(0>e-o?(e-o)/(o-a.clone().add(t-1,"months")):(e-o)/(a.clone().add(t+1,"months")-o)))||0}function Bt(a){var e;return void 0===a?this._locale._abbr:(null!=(e=Qe(a))&&(this._locale=e),this)}function zt(){return this._locale}function Ht(a,e){U(0,[a,a.length],0,e)}function Mt(a,e,t,o,n){var s;return null==a?Ee(this,o,n).year:((s=Ie(a,o,n))<e&&(e=s),function(o,e,t,n,s){var i=Ge(o,e,t,n,s),r=Ne(i.year,0,i.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}.call(this,a,e,t,o,n))}function jt(a,e){e[_e]=D(1e3*("0."+a))}function Yt(t){return t}function Kt(a,e,t,o){var n=Qe(),s=_().set(o,e);return n[t](s,a)}function Qt(a,e,t){if(l(a)&&(e=a,a=void 0),a=a||"",null!=e)return Kt(a,e,t,"month");var o=[],n;for(n=0;12>n;n++)o[n]=Kt(a,n,t,"month");return o}function Zt(d,c,t,n){"boolean"==typeof d?l(c)&&(t=c,c=void 0):(c=d,d=!1,l(t=c)&&(t=c,c=void 0)),c=c||"";var s=Qe(),r=d?s._week.dow:0,a;if(null!=t)return Kt(c,(t+r)%7,n,"day");var i=[];for(a=0;7>a;a++)i[a]=Kt(c,(a+r)%7,n,"day");return i}function $t(a,e,t,o){var n=Dt(e,t);return a._milliseconds+=o*n._milliseconds,a._days+=o*n._days,a._months+=o*n._months,a._bubble()}function ea(t){return 0>t?la(t):da(t)}function ta(t){return 4800*t/146097}function aa(t){return 146097*t/4800}function oa(t){return function(){return this.as(t)}}function na(t){return function(){return this.isValid()?this._data[t]:NaN}}function ra(t){return(0<t)-(0>t)||+t}function sa(){if(!this.isValid())return this.localeData().invalidDate();var p=Va(this._milliseconds)/1e3,n=Va(this._days),s=Va(this._months),i,e;e=S((i=S(p/60))/60),p%=60,i%=60;var t=S(s/12),r=s%=12,a=n,o=e,u=i,l=p?p.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var g=0>d?"-":"",c=ra(this._months)===ra(d)?"":"-",T=ra(this._days)===ra(d)?"":"-",m=ra(this._milliseconds)===ra(d)?"":"-";return g+"P"+(t?c+t+"Y":"")+(r?c+r+"M":"")+(a?T+a+"D":"")+(o||u||l?"T":"")+(o?m+o+"H":"")+(u?m+u+"M":"")+(l?m+l+"S":"")}var ia=Math.min,la=Math.floor,da=Math.ceil,ca=Math.round,pa=Math.abs,ua,ha;ha=Array.prototype.some?Array.prototype.some:function(a){for(var e=Object(this),t=e.length>>>0,o=0;o<t;o++)if(o in e&&a.call(this,e[o],o,e))return!0;return!1};var ma=Le.momentProperties=[],r=!1,i={},e;Le.suppressDeprecationWarnings=!1,Le.deprecationHandler=null,e=Object.keys?Object.keys:function(a){var e=[],o;for(o in a)f(a,o)&&e.push(o);return e};var s={},O={},F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,t=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},G={},E=/\d/,V=/\d\d/,z=/\d{3}/,W=/\d{4}/,q=/[+-]?\d{6}/,J=/\d\d?/,B=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,X=/\d{1,3}/,K=/\d{1,4}/,Z=/[+-]?\d{1,6}/,$=/\d+/,ee=/[+-]?\d+/,te=/Z|[+-]\d\d:?\d\d/gi,ne=/Z|[+-]\d\d(?::?\d\d)?/gi,re=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ae={},oe={},se=0,ie=1,he=2,me=3,ge=4,pe=5,_e=6,ye=7,ve=8;U("Y",0,0,function(){var t=this.year();return 9999>=t?""+t:"+"+t}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),n("year","y"),C("year",1),H("Y",ee),H("YY",J,V),H("YYYY",K,W),H("YYYYY",Z,q),H("YYYYYY",Z,q),de(["YYYYY","YYYYYY"],se),de("YYYY",function(a,e){e[se]=2===a.length?Le.parseTwoDigitYear(a):D(a)}),de("YY",function(a,e){e[se]=Le.parseTwoDigitYear(a)}),de("Y",function(a,e){e[se]=parseInt(a,10)}),Le.parseTwoDigitYear=function(t){return D(t)+(68<D(t)?1900:2e3)};var Se=ke("FullYear",!0),Oe;Oe=Array.prototype.indexOf?Array.prototype.indexOf:function(a){var e;for(e=0;e<this.length;++e)if(this[e]===a)return e;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),U("MMMM",0,0,function(t){return this.localeData().months(this,t)}),n("month","M"),C("month",8),H("M",J),H("MM",J,V),H("MMM",function(a,e){return e.monthsShortRegex(a)}),H("MMMM",function(a,e){return e.monthsRegex(a)}),de(["M","MM"],function(a,e){e[ie]=D(a)-1}),de(["MMM","MMMM"],function(a,e,t,o){var n=t._locale.monthsParse(a,o,t._strict);null==n?y(t).invalidMonth=a:e[ie]=n});var we=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Me=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),n("week","w"),n("isoWeek","W"),C("week",5),C("isoWeek",5),H("w",J),H("ww",J,V),H("W",J),H("WW",J,V),ce(["w","ww","W","WW"],function(a,e,t,o){e[o.substr(0,1)]=D(a)}),U("d",0,"do","day"),U("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),U("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),U("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),n("day","d"),n("weekday","e"),n("isoWeekday","E"),C("day",11),C("weekday",11),C("isoWeekday",11),H("d",J),H("e",J),H("E",J),H("dd",function(a,e){return e.weekdaysMinRegex(a)}),H("ddd",function(a,e){return e.weekdaysShortRegex(a)}),H("dddd",function(a,e){return e.weekdaysRegex(a)}),ce(["dd","ddd","dddd"],function(a,e,t,o){var n=t._locale.weekdaysParse(a,o,t._strict);null==n?y(t).invalidWeekday=a:e.d=n}),ce(["d","e","E"],function(a,e,t,o){e[o]=D(a)});var Ye=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Be),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+Be.apply(this)+L(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Be.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+L(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)}),Ve("a",!0),Ve("A",!1),n("hour","h"),C("hour",13),H("a",ze),H("A",ze),H("H",J),H("h",J),H("k",J),H("HH",J,V),H("hh",J,V),H("kk",J,V),H("hmm",B),H("hmmss",Q),H("Hmm",B),H("Hmmss",Q),de(["H","HH"],me),de(["k","kk"],function(a,e){var t=D(a);e[me]=24===t?0:t}),de(["a","A"],function(a,e,t){t._isPm=t._locale.isPM(a),t._meridiem=a}),de(["h","hh"],function(a,e,t){e[me]=D(a),y(t).bigHour=!0}),de("hmm",function(a,e,t){var o=a.length-2;e[me]=D(a.substr(0,o)),e[ge]=D(a.substr(o)),y(t).bigHour=!0}),de("hmmss",function(a,e,t){var o=a.length-4,n=a.length-2;e[me]=D(a.substr(0,o)),e[ge]=D(a.substr(o,2)),e[pe]=D(a.substr(n)),y(t).bigHour=!0}),de("Hmm",function(a,e){var t=a.length-2;e[me]=D(a.substr(0,t)),e[ge]=D(a.substr(t))}),de("Hmmss",function(a,e){var t=a.length-4,o=a.length-2;e[me]=D(a.substr(0,t)),e[ge]=D(a.substr(t,2)),e[pe]=D(a.substr(o))});var We=ke("Hours",!0),tt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:Me,week:{dow:0,doy:6},weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekdaysShort:Ye,meridiemParse:/[ap]\.?m?\.?/i},nt={},st={},it=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,_t=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],yt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],gt=/^\/?Date\((\-?\d+)/i,pt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,wt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},St;Le.createFromInputFallback=a("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),Le.ISO_8601=function(){},Le.RFC_2822=function(){};var et=a("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ut.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:p()}),xt=a("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ut.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:p()}),bt=["year","quarter","month","week","day","hour","minute","second","millisecond"];Ct("Z",":"),Ct("ZZ",""),H("Z",ne),H("ZZ",ne),de(["Z","ZZ"],function(a,e,t){t._useUTC=!0,t._tzm=vt(ne,a)});var Wt=/([\+\-]|\d\d)/gi;Le.updateOffset=function(){};var Lt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Et=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Dt.fn=Tt.prototype,Dt.invalid=function(){return Dt(NaN)};var It=Gt(1,"add"),qt=Gt(-1,"subtract");Le.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",Le.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Jt=a("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ht("gggg","weekYear"),Ht("ggggg","weekYear"),Ht("GGGG","isoWeekYear"),Ht("GGGGG","isoWeekYear"),n("weekYear","gg"),n("isoWeekYear","GG"),C("weekYear",1),C("isoWeekYear",1),H("G",ee),H("g",ee),H("GG",J,V),H("gg",J,V),H("GGGG",K,W),H("gggg",K,W),H("GGGGG",Z,q),H("ggggg",Z,q),ce(["gggg","ggggg","GGGG","GGGGG"],function(a,e,t,o){e[o.substr(0,2)]=D(a)}),ce(["gg","GG"],function(a,e,t,o){e[o]=Le.parseTwoDigitYear(a)}),U("Q",0,"Qo","quarter"),n("quarter","Q"),C("quarter",7),H("Q",E),de("Q",function(a,e){e[ie]=3*(D(a)-1)}),U("D",["DD",2],"Do","date"),n("date","D"),C("date",9),H("D",J),H("DD",J,V),H("Do",function(a,e){return a?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),de(["D","DD"],he),de("Do",function(a,e){e[he]=D(a.match(J)[0])});var Xt=ke("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),n("dayOfYear","DDD"),C("dayOfYear",4),H("DDD",X),H("DDDD",z),de(["DDD","DDDD"],function(a,e,t){t._dayOfYear=D(a)}),U("m",["mm",2],0,"minute"),n("minute","m"),C("minute",14),H("m",J),H("mm",J,V),de(["m","mm"],ge);var _a=ke("Minutes",!1);U("s",["ss",2],0,"second"),n("second","s"),C("second",15),H("s",J),H("ss",J,V),de(["s","ss"],pe);var Ta=ke("Seconds",!1),ya;for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),n("millisecond","ms"),C("millisecond",16),H("S",X,E),H("SS",X,V),H("SSS",X,z),ya="SSSS";9>=ya.length;ya+="S")H(ya,$);for(ya="S";9>=ya.length;ya+="S")de(ya,jt);var Aa=ke("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var Sa=w.prototype;Sa.add=It,Sa.calendar=function(a,e){var t=a||ut(),o=Ot(t,this).startOf("day"),n=Le.calendarFormat(this,o)||"sameElse",s=e&&(T(e[n])?e[n].call(this,t):e[n]);return this.format(s||this.localeData().calendar(n,this,ut(t)))},Sa.clone=function(){return new w(this)},Sa.diff=function(a,e,t){var o,n,s;if(!this.isValid())return NaN;if(!(o=Ot(a,this)).isValid())return NaN;switch(n=6e4*(o.utcOffset()-this.utcOffset()),e=P(e)){case"year":s=Vt(this,o)/12;break;case"month":s=Vt(this,o);break;case"quarter":s=Vt(this,o)/3;break;case"second":s=(this-o)/1e3;break;case"minute":s=(this-o)/6e4;break;case"hour":s=(this-o)/36e5;break;case"day":s=(this-o-n)/864e5;break;case"week":s=(this-o-n)/6048e5;break;default:s=this-o;}return t?s:S(s)},Sa.endOf=function(t){return void 0===(t=P(t))||"millisecond"===t?this:("date"==t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},Sa.format=function(a){a||(a=this.isUtc()?Le.defaultFormatUtc:Le.defaultFormat);var e=I(this,a);return this.localeData().postformat(e)},Sa.from=function(a,o){return this.isValid()&&(M(a)&&a.isValid()||ut(a).isValid())?Dt({to:this,from:a}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()},Sa.fromNow=function(t){return this.from(ut(),t)},Sa.to=function(a,o){return this.isValid()&&(M(a)&&a.isValid()||ut(a).isValid())?Dt({from:this,to:a}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()},Sa.toNow=function(t){return this.to(ut(),t)},Sa.get=function(t){return T(this[t=P(t)])?this[t]():this},Sa.invalidAt=function(){return y(this).overflow},Sa.isAfter=function(a,e){var t=M(a)?a:ut(a);return this.isValid()&&t.isValid()&&("millisecond"===(e=P(u(e)?"millisecond":e))?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf())},Sa.isBefore=function(a,e){var t=M(a)?a:ut(a);return this.isValid()&&t.isValid()&&("millisecond"===(e=P(u(e)?"millisecond":e))?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf())},Sa.isBetween=function(a,e,t,o){return("("===(o=o||"()")[0]?this.isAfter(a,t):!this.isBefore(a,t))&&(")"===o[1]?this.isBefore(e,t):!this.isAfter(e,t))},Sa.isSame=function(a,e){var t=M(a)?a:ut(a),o;return this.isValid()&&t.isValid()&&("millisecond"===(e=P(e||"millisecond"))?this.valueOf()===t.valueOf():(o=t.valueOf(),this.clone().startOf(e).valueOf()<=o&&o<=this.clone().endOf(e).valueOf()))},Sa.isSameOrAfter=function(a,e){return this.isSame(a,e)||this.isAfter(a,e)},Sa.isSameOrBefore=function(a,e){return this.isSame(a,e)||this.isBefore(a,e)},Sa.isValid=function(){return g(this)},Sa.lang=Jt,Sa.locale=Bt,Sa.localeData=zt,Sa.max=xt,Sa.min=et,Sa.parsingFlags=function(){return m({},y(this))},Sa.set=function(a,o){if("object"==typeof a)for(var t=function(a){var e=[];for(var t in a)e.push({unit:t,priority:O[t]});return e.sort(function(a,e){return a.priority-e.priority}),e}(a=R(a)),n=0;n<t.length;n++)this[t[n].unit](a[t[n].unit]);else if(T(this[a=P(a)]))return this[a](o);return this},Sa.startOf=function(t){switch(t=P(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0);}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*la(this.month()/3)),this},Sa.subtract=qt,Sa.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Sa.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Sa.toDate=function(){return new Date(this.valueOf())},Sa.toISOString=function(a){if(!this.isValid())return null;var e=!0!==a,t=e?this.clone().utc():this;return 0>t.year()||9999<t.year()?I(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+1e3*(60*this.utcOffset())).toISOString().replace("Z",I(t,"Z")):I(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Sa.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var a="moment",e="";this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var t="["+a+"(\"]",o=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",n=e+"[\")]";return this.format(t+o+"-MM-DD[T]HH:mm:ss.SSS"+n)},Sa.toJSON=function(){return this.isValid()?this.toISOString():null},Sa.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Sa.unix=function(){return la(this.valueOf()/1e3)},Sa.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Sa.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Sa.year=Se,Sa.isLeapYear=function(){return fe(this.year())},Sa.weekYear=function(t){return Mt.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Sa.isoWeekYear=function(t){return Mt.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Sa.quarter=Sa.quarters=function(t){return null==t?da((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Sa.month=Ce,Sa.daysInMonth=function(){return be(this.year(),this.month())},Sa.week=Sa.weeks=function(a){var e=this.localeData().week(this);return null==a?e:this.add(7*(a-e),"d")},Sa.isoWeek=Sa.isoWeeks=function(a){var e=Ee(this,1,4).week;return null==a?e:this.add(7*(a-e),"d")},Sa.weeksInYear=function(){var t=this.localeData()._week;return Ie(this.year(),t.dow,t.doy)},Sa.isoWeeksInYear=function(){return Ie(this.year(),1,4)},Sa.date=Xt,Sa.day=Sa.days=function(a){if(!this.isValid())return null==a?NaN:this;var e=this._isUTC?this._d.getUTCDay():this._d.getDay(),o,r;return null==a?e:(o=a,r=this.localeData(),a="string"==typeof o?isNaN(o)?"number"==typeof(o=r.weekdaysParse(o))?o:null:parseInt(o,10):o,this.add(a-e,"d"))},Sa.weekday=function(a){if(!this.isValid())return null==a?NaN:this;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==a?e:this.add(a-e,"d")},Sa.isoWeekday=function(a){if(!this.isValid())return null==a?NaN:this;if(null!=a){var e=(t=a,o=this.localeData(),"string"==typeof t?o.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?e:e-7)}return this.day()||7;var t,o},Sa.dayOfYear=function(a){var e=ca((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==a?e:this.add(a-e,"d")},Sa.hour=Sa.hours=We,Sa.minute=Sa.minutes=_a,Sa.second=Sa.seconds=Ta,Sa.millisecond=Sa.milliseconds=Aa,Sa.utcOffset=function(a,o,r){var l=this._offset||0,i;if(!this.isValid())return null==a?NaN:this;if(null!=a){if("string"!=typeof a)16>pa(a)&&!r&&(a*=60);else if(null===(a=vt(ne,a)))return this;return!this._isUTC&&o&&(i=kt(this)),this._offset=a,this._isUTC=!0,null!=i&&this.add(i,"m"),l!==a&&(!o||this._changeInProgress?Ut(this,Dt(a-l,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Le.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?l:kt(this)},Sa.utc=function(t){return this.utcOffset(0,t)},Sa.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(kt(this),"m")),this},Sa.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=vt(te,this._i);null==t?this.utcOffset(0,!0):this.utcOffset(t)}return this},Sa.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?ut(t).utcOffset():0,0==(this.utcOffset()-t)%60)},Sa.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Sa.isLocal=function(){return!!this.isValid()&&!this._isUTC},Sa.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Sa.isUtc=Nt,Sa.isUTC=Nt,Sa.zoneAbbr=function(){return this._isUTC?"UTC":""},Sa.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Sa.dates=a("dates accessor is deprecated. Use date instead.",Xt),Sa.months=a("months accessor is deprecated. Use month instead",Ce),Sa.years=a("years accessor is deprecated. Use year instead",Se),Sa.zone=a("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(a,o){return null==a?-this.utcOffset():("string"!=typeof a&&(a=-a),this.utcOffset(a,o),this)}),Sa.isDSTShifted=a("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var a={};if(v(a,this),(a=dt(a))._a){var e=a._isUTC?_(a._a):ut(a._a);this._isDSTShifted=this.isValid()&&0<k(a._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var ba=b.prototype;ba.calendar=function(a,e,t){var o=this._calendar[a]||this._calendar.sameElse;return T(o)?o.call(e,t):o},ba.longDateFormat=function(a){var e=this._longDateFormat[a],t=this._longDateFormat[a.toUpperCase()];return e||!t?e:(this._longDateFormat[a]=t.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[a])},ba.invalidDate=function(){return this._invalidDate},ba.ordinal=function(t){return this._ordinal.replace("%d",t)},ba.preparse=Yt,ba.postformat=Yt,ba.relativeTime=function(a,e,t,o){var n=this._relativeTime[t];return T(n)?n(a,e,t,o):n.replace(/%d/i,a)},ba.pastFuture=function(a,e){var t=this._relativeTime[0<a?"future":"past"];return T(t)?t(e):t.replace(/%s/i,e)},ba.set=function(a){var e,t;for(t in a)T(e=a[t])?this[t]=e:this["_"+t]=e;this._config=a,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ba.months=function(a,e){return a?c(this._months)?this._months[a.month()]:this._months[(this._months.isFormat||we).test(e)?"format":"standalone"][a.month()]:c(this._months)?this._months:this._months.standalone},ba.monthsShort=function(a,e){return a?c(this._monthsShort)?this._monthsShort[a.month()]:this._monthsShort[we.test(e)?"format":"standalone"][a.month()]:c(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ba.monthsParse=function(a,e,t){var o,s,i;if(this._monthsParseExact)return function(o,e,t){var n=o.toLocaleLowerCase(),a,s,i;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;12>a;++a)i=_([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(i,"").toLocaleLowerCase();return t?"MMM"===e?-1===(s=Oe.call(this._shortMonthsParse,n))?null:s:-1===(s=Oe.call(this._longMonthsParse,n))?null:s:"MMM"===e?-1===(s=Oe.call(this._shortMonthsParse,n))?-1===(s=Oe.call(this._longMonthsParse,n))?null:s:s:-1===(s=Oe.call(this._longMonthsParse,n))?-1===(s=Oe.call(this._shortMonthsParse,n))?null:s:s}.call(this,a,e,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;12>o;o++){if(s=_([2e3,o]),t&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),t||this._monthsParse[o]||(i="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),t&&"MMMM"===e&&this._longMonthsParse[o].test(a))return o;if(t&&"MMM"===e&&this._shortMonthsParse[o].test(a))return o;if(!t&&this._monthsParse[o].test(a))return o}},ba.monthsRegex=function(t){return this._monthsParseExact?(f(this,"_monthsRegex")||De.call(this),t?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=re),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},ba.monthsShortRegex=function(t){return this._monthsParseExact?(f(this,"_monthsRegex")||De.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=re),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},ba.week=function(t){return Ee(t,this._week.dow,this._week.doy).week},ba.firstDayOfYear=function(){return this._week.doy},ba.firstDayOfWeek=function(){return this._week.dow},ba.weekdays=function(a,e){return a?c(this._weekdays)?this._weekdays[a.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][a.day()]:c(this._weekdays)?this._weekdays:this._weekdays.standalone},ba.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},ba.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},ba.weekdaysParse=function(a,e,t){var o,s,i;if(this._weekdaysParseExact)return function(o,e,t){var n=o.toLocaleLowerCase(),a,s,i;if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;7>a;++a)i=_([2000,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(i,"").toLocaleLowerCase();return t?"dddd"===e?-1===(s=Oe.call(this._weekdaysParse,n))?null:s:"ddd"===e?-1===(s=Oe.call(this._shortWeekdaysParse,n))?null:s:-1===(s=Oe.call(this._minWeekdaysParse,n))?null:s:"dddd"===e?-1===(s=Oe.call(this._weekdaysParse,n))?-1===(s=Oe.call(this._shortWeekdaysParse,n))?-1===(s=Oe.call(this._minWeekdaysParse,n))?null:s:s:s:"ddd"===e?-1===(s=Oe.call(this._shortWeekdaysParse,n))?-1===(s=Oe.call(this._weekdaysParse,n))?-1===(s=Oe.call(this._minWeekdaysParse,n))?null:s:s:s:-1===(s=Oe.call(this._minWeekdaysParse,n))?-1===(s=Oe.call(this._weekdaysParse,n))?-1===(s=Oe.call(this._shortWeekdaysParse,n))?null:s:s:s}.call(this,a,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;7>o;o++){if(s=_([2000,1]).day(o),t&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),t&&"dddd"===e&&this._fullWeekdaysParse[o].test(a))return o;if(t&&"ddd"===e&&this._shortWeekdaysParse[o].test(a))return o;if(t&&"dd"===e&&this._minWeekdaysParse[o].test(a))return o;if(!t&&this._weekdaysParse[o].test(a))return o}},ba.weekdaysRegex=function(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ae.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=re),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},ba.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ae.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=re),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ba.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ae.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=re),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ba.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},ba.meridiem=function(a,e,t){return 11<a?t?"pm":"PM":t?"am":"AM"},qe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var e=a%10;return a+(1===D(a%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),Le.lang=a("moment.lang is deprecated. Use moment.locale instead.",qe),Le.langData=a("moment.langData is deprecated. Use moment.localeData instead.",Qe);var fa=pa,Ra=oa("ms"),Pa=oa("s"),Ca=oa("m"),Ia=oa("h"),xa=oa("d"),va=oa("w"),Oa=oa("M"),wa=oa("y"),ka=na("milliseconds"),Na=na("seconds"),Ea=na("minutes"),La=na("hours"),Da=na("days"),Ba=na("months"),Fa=na("years"),Ga=ca,Ua={ss:44,s:45,m:45,h:22,d:26,M:11},Va=pa,za=Tt.prototype;return za.isValid=function(){return this._isValid},za.abs=function(){var t=this._data;return this._milliseconds=fa(this._milliseconds),this._days=fa(this._days),this._months=fa(this._months),t.milliseconds=fa(t.milliseconds),t.seconds=fa(t.seconds),t.minutes=fa(t.minutes),t.hours=fa(t.hours),t.months=fa(t.months),t.years=fa(t.years),this},za.add=function(a,e){return $t(this,a,e,1)},za.subtract=function(a,e){return $t(this,a,e,-1)},za.as=function(a){if(!this.isValid())return NaN;var e=this._milliseconds,o,t;if("month"===(a=P(a))||"year"===a)return o=this._days+e/864e5,t=this._months+ta(o),"month"===a?t:t/12;switch(o=this._days+ca(aa(this._months)),a){case"week":return o/7+e/6048e5;case"day":return o+e/864e5;case"hour":return 24*o+e/36e5;case"minute":return 1440*o+e/6e4;case"second":return 86400*o+e/1e3;case"millisecond":return la(864e5*o)+e;default:throw new Error("Unknown unit "+a);}},za.asMilliseconds=Ra,za.asSeconds=Pa,za.asMinutes=Ca,za.asHours=Ia,za.asDays=xa,za.asWeeks=va,za.asMonths=Oa,za.asYears=wa,za.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+2592e6*(this._months%12)+31536e6*D(this._months/12):NaN},za._bubble=function(){var l=this._milliseconds,r=this._days,a=this._months,o=this._data,d,e,t,n,s;return 0<=l&&0<=r&&0<=a||0>=l&&0>=r&&0>=a||(l+=864e5*ea(aa(a)+r),a=r=0),o.milliseconds=l%1e3,d=S(l/1e3),o.seconds=d%60,e=S(d/60),o.minutes=e%60,t=S(e/60),o.hours=t%24,a+=s=S(ta(r+=S(t/24))),r-=ea(aa(s)),n=S(a/12),a%=12,o.days=r,o.months=a,o.years=n,this},za.clone=function(){return Dt(this)},za.get=function(t){return t=P(t),this.isValid()?this[t+"s"]():NaN},za.milliseconds=ka,za.seconds=Na,za.minutes=Ea,za.hours=La,za.days=Da,za.weeks=function(){return S(this.days()/7)},za.months=Ba,za.years=Fa,za.humanize=function(p){if(!this.isValid())return this.localeData().invalidDate();var g=this.localeData(),c=(_=!p,n=g,s=Dt(m=this).abs(),i=Ga(s.as("s")),r=Ga(s.as("m")),a=Ga(s.as("h")),o=Ga(s.as("d")),u=Ga(s.as("M")),l=Ga(s.as("y")),(d=i<=Ua.ss&&["s",i]||i<Ua.s&&["ss",i]||1>=r&&["m"]||r<Ua.m&&["mm",r]||1>=a&&["h"]||a<Ua.h&&["hh",a]||1>=o&&["d"]||o<Ua.d&&["dd",o]||1>=u&&["M"]||u<Ua.M&&["MM",u]||1>=l&&["y"]||["yy",l])[2]=_,d[3]=0<+m,d[4]=n,function(a,e,t,o,r){return r.relativeTime(e||1,!!t,a,o)}.apply(null,d)),m,_,n,s,i,r,a,o,u,l,d;return p&&(c=g.pastFuture(+this,c)),g.postformat(c)},za.toISOString=sa,za.toString=sa,za.toJSON=sa,za.locale=Bt,za.localeData=zt,za.toIsoString=a("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",sa),za.lang=Jt,U("X",0,0,"unix"),U("x",0,0,"valueOf"),H("x",ee),H("X",/[+-]?\d+(\.\d{1,3})?/),de("X",function(a,e,t){t._d=new Date(1e3*parseFloat(a,10))}),de("x",function(a,e,t){t._d=new Date(D(a))}),Le.version="2.22.2",ua=ut,Le.fn=Sa,Le.min=function(){return ht("isBefore",[].slice.call(arguments,0))},Le.max=function(){return ht("isAfter",[].slice.call(arguments,0))},Le.now=function(){return Date.now?Date.now():+new Date},Le.utc=_,Le.unix=function(t){return ut(1e3*t)},Le.months=function(a,e){return Qt(a,e,"months")},Le.isDate=d,Le.locale=qe,Le.invalid=p,Le.duration=Dt,Le.isMoment=M,Le.weekdays=function(a,e,t){return Zt(a,e,t,"weekdays")},Le.parseZone=function(){return ut.apply(null,arguments).parseZone()},Le.localeData=Qe,Le.isDuration=Pt,Le.monthsShort=function(a,e){return Qt(a,e,"monthsShort")},Le.weekdaysMin=function(a,e,t){return Zt(a,e,t,"weekdaysMin")},Le.defineLocale=Ke,Le.updateLocale=function(a,e){if(null!=e){var t=tt,o,n;null!=(n=je(a))&&(t=n._config),(o=new b(e=x(t,e))).parentLocale=nt[a],nt[a]=o,qe(a)}else null!=nt[a]&&(null==nt[a].parentLocale?null!=nt[a]&&delete nt[a]:nt[a]=nt[a].parentLocale);return nt[a]},Le.locales=function(){return e(nt)},Le.weekdaysShort=function(a,e,t){return Zt(a,e,t,"weekdaysShort")},Le.normalizeUnits=P,Le.relativeTimeRounding=function(t){return void 0===t?Ga:"function"==typeof t&&(Ga=t,!0)},Le.relativeTimeThreshold=function(a,e){return void 0!==Ua[a]&&(void 0===e?Ua[a]:(Ua[a]=e,"s"===a&&(Ua.ss=e-1),!0))},Le.calendarFormat=function(a,e){var t=a.diff(e,"days",!0);return-6>t?"sameElse":-1>t?"lastWeek":0>t?"lastDay":1>t?"sameDay":2>t?"nextDay":7>t?"nextWeek":"sameElse"},Le.prototype=Sa,Le.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},Le}),!function(_,a){function e(n,r,l){var e=[],A=o(function a(n,s){var t=[],o=typeof n,i;if(s&&"object"==o)for(i in n)try{t.push(a(n[i],s-1))}catch(e){}return t.length?t:"string"==o?n:n+"\0"}((r=1==r?{entropy:!0}:r||{}).entropy?[n,y(_)]:null==n?function(){try{var e;return t&&(e=t.randomBytes)?e=e(c):(e=new Uint8Array(c),(s.crypto||s.msCrypto).getRandomValues(e)),y(e)}catch(e){var a=s.navigator,o=a&&a.plugins;return[+new Date,s,o,s.screen,y(_)]}}():n,3),e),S=new T(e),p=function(){for(var e=S.g(6),a=g,o=0;e<h;)e=(e+o)*c,a*=c,o=S.g(1);for(;i<=e;)e/=2,a/=2,o>>>=1;return(e+o)/a};return p.int32=function(){return 0|S.g(4)},p.quick=function(){return S.g(4)/4294967296},p.double=p,o(y(S.S),_),(r.pass||l||function(o,n,r,t){return t&&(t.S&&u(t,S),o.state=function(){return u(S,{})}),r?(a[d]=o,n):o})(p,A,"global"in r?r.global:this==a,r.state)}function T(a){var s=a.length,l=this,t=0,e=l.i=l.j=0,o=l.S=[],i;for(s||(a=[s++]);t<c;)o[t]=t++;for(t=0;t<c;t++)o[t]=o[e=p&e+a[t%s]+(i=o[t])],o[e]=i;(l.g=function(a){for(var n=0,t=l.i,e=l.j,o=l.S,s;a--;)s=o[t=p&t+1],n=n*c+o[p&(o[t]=o[e=p&e+s])+(o[e]=s)];return l.i=t,l.j=e,n})(c)}function u(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function o(a,n){for(var r=a+"",e=0,o;e<r.length;)n[p&e]=p&(o^=19*n[p&e])+r.charCodeAt(e++);return y(n)}function y(e){return String.fromCharCode.apply(0,e)}var s=eval("this"),c=256,d="random",g=a.pow(c,6),h=a.pow(2,52),i=2*h,p=c-1,t;if(a["seed"+d]=e,o(a.random(),_),"object"==typeof module&&module.exports){module.exports=e;try{t=require("crypto")}catch(e){}}else"function"==typeof define&&define.amd&&define(function(){return e})}([],Math),"use strict";function PaddedNumber(e){return 10>e?"0"+e:""+e}function AddOrdinalSuffice(e){var t=e%100;if(!(11<=t&&13>=t))switch(e%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd";}return e+"th"}function MsToText(e){var t=e/1e3;if(60>t)return(0|t)+" seconds ago";var a=t/60;if(60>a)return 1==(0|a)?(0|a)+" minute ago":(0|a)+" minutes ago";var o=a/60;if(24>o)return 1==(0|o)?(0|o)+" hour ago":(0|o)+" hours ago";var n=o/24;if(24>n)return 1==(0|n)?(0|n)+" day ago":(0|n)+" days ago"}function MsToShortText(e){var t=e/1e3;if(60>t)return(0|t)+"\nsecs\nago";var a=t/60;if(60>a)return 1==(0|a)?(0|a)+"\nmin\nago":(0|a)+"\nmins\nago";var o=a/60;if(24>o)return 1==(0|o)?(0|o)+"\nhour\nago":(0|o)+"\nhours\nago";var n=o/24;if(24>n)return 1==(0|n)?(0|n)+"\nday\nago":(0|n)+"\ndays\nago"}function SecondsToString(e){var t=0|e,a=0|t/3600;t%=3600;var o=0|t/60,n=t%60,r="";return 10>a&&(r+="0"),r+=a+":",10>o&&(r+="0"),r+=o+":",10>n&&(r+="0"),r+=n,r}function SecondsToString2(e){var t=0|e;t%=3600;var a=0|t/60,o=t%60,n="";return 10>a&&(n+="0"),n+=a+":",10>o&&(n+="0"),n+=o,n}function RandomExpression(e,t){void 0===e.exptime&&(e.exptime=1,e.exptime2=0);var a=e.exptime;if(e.exptime-=b5.app.dt,a>e.exptime2&&e.exptime<=e.exptime2&&(e._atlas="player"+t),0>e.exptime){e.exptime=1+2*Math.random();var o=0|8*Math.random(),n="";1==o||7==o?(n="_blink",e.exptime=2+2*Math.random(),e.exptime2=e.exptime-0.3):2==o||5==o||6==o?(n="_happy",e.exptime2=e.exptime-1):3==o?(n="_sad",e.exptime2=e.exptime-1):4==o?(n="_shock",e.exptime2=e.exptime-1.5):void 0,e._atlas="player"+n+t}}function UfoTick(e){window.archon.world;e.atimer===void 0&&(e.atimer=1,e.awhich=1),e.atimer-=b5.app.dt,0>=e.atimer&&(!window.archon.muted&&b5.app.findResource("ufo","sound").play(),e.atimer=5+5*Math.random(),e.playTimeline("anim"+e.awhich),e.awhich++,3<=e.awhich&&(e.awhich=1))}function UpdateCookie(e){var t=window.archon.world;e.avy===void 0&&(e.avy=100+100*Math.random(),e.vy=e.avy,e.vy_damping=1.01),500<e.y&&(e.avy=100+100*Math.random(),e.vy=e.avy,e.y-=1e3),-600>e.x&&(e.x+=1200),t.meteor_counter+=b5.app.dt/20,1.1<t.meteor_counter&&(t.meteor_counter=1*Math.random(),!window.archon.muted&&b5.app.findResource("explode","sound").play())}function UpdateStar(e){window.archon.world;e.avx===void 0&&(e.avx=-300-500*Math.random(),e.vx=e.avx,e._scale=0.2+1*Math.random(),e.vr=e.vx/150),-500>e.x&&(e.avx=-300-500*Math.random(),e.vx=e.avx,e.vr=e.vx/150,e.x+=1e3,e._scale=0.2+1*Math.random())}function BubbleController(e){e.exptime===void 0&&(e._scale=0,e.exptime=2+4*Math.random());var t=b5.app.dt;e.exptime-=t,0>e.exptime&&(e.exptime=2+4*Math.random(),e.exptime2=e.exptime,e.playTimeline("puff"))}function BlinkOnOffRandom(e,t,a){e.ontime===void 0&&(e.ontime=1+Math.random()*t,e.offtime=-4-Math.random()*a,e.visible=!0),e.ontime-=b5.app.dt,0>e.ontime&&(e.visible=!1),e.ontime<e.offtime&&(e.visible=!0,e.ontime=4+Math.random()*t,e.offtime=-4-Math.random()*a)}function ResetDrift(e){e.target._x=1200*Math.random()-600,e.target._y=800*Math.random()-400,e.target.vx=200*Math.random()-100,e.target.vy=100*Math.random()-50}var Suits=["clubs","diamonds","spades","hearts"],Numbers=["A","2","3","4","5","6","7","8","9","10","J","Q","K"],Digits=["ace","2","3","4","5","6","7","8","9","10","jack","queen","king"],Blacks=["ba","b2","b3","b4","b5","b6","b7","b8","b9","b10","bj","bq","bk"],Reds=["ra","r2","r3","r4","r5","r6","r7","r8","r9","r10","rj","rq","rk"],CardSpacingX=100,CardSpacingY=50,CardSpacingY2=20;function Card(e){this.deck=e,this.stack=eStack.none,this.suit=0,this.digit=0,this.turned=!1}Card.prototype.GetBack=function(){return"back"+window.archon.current_back},Card.prototype.UpdateBack=function(){this.turned||(this.actor._atlas="back"+window.archon.current_back)},Card.prototype.SetSuitAtlas=function(e,t,a){return window.archon.suitfaces?(e._atlas=Suits[t],e._scale=0.4,void(e._y=18)):void(e._scale=1,e._y=0,e._atlas=0===t||2===t?Blacks[a]:Reds[a])},Card.prototype.SetAtlas=function(e,t,a){var o=this.actor,n=o.findActor("suit"),r=o.findActor("suitsmall"),s=o.findActor("num");a?(o._atlas="card",this.SetSuitAtlas(n,e,t),r._atlas=Suits[e],s._text=Numbers[t],n._av=!0,r._av=!0,s._av=!0,s.fill_style=0===e||2===e?"rgb(0, 0, 0)":"rgb(200, 0, 0)"):(n._av=!1,r._av=!1,s._av=!1,o._atlas=this.GetBack())},Card.prototype.Set=function(e,t){var a=window.archon,o=a.xoml,n=b5.Utils.findObjectFromPath("gamescene.board");this.suit=e,this.digit=t,this.val=13*e+t;var r=b5.Xoml.findResource(b5.data.gamescene,"t_card","icon"),s=o.parseResource(n,r);this.actor=s,this.SetAtlas(e,t,this.turned),s.card=this},Card.prototype.SetPlace=function(e,t){var a=b5.Utils.findObjectFromPath("gamescene.board."+StackNames[e]);if(t!=void 0){var o=this.actor.y;this.MoveToStack(e,t),this.deck.ArrangeStack(e),this.actor._y=o,this.AnimateTo({x:a.x,y:a.y+this.deck.GetPlaceOffsetY(e,this)},!0)}else this.AnimateTo({x:a.x,y:a.y+this.deck.GetPlaceOffsetY(e,this)}),this.MoveToStack(e)},Card.prototype.MoveToStack=function(e,t){this.deck.RemoveFromStack(this),this.deck.AddToStack(this,e,t)},Card.prototype.Turn=function(e,t){this.SetAtlas(this.suit,this.digit,e),this.stack===eStack.deck1?(this.actor.touchable=!0,this.turned=!1):(this.actor.touchable=t,this.turned=e)},Card.prototype.AnimateTo=function(e,t){window.archon.inputok=!1;var a=this.actor,o=0.3;a.timelines.add(new b5.Timeline(a,"_x",[a.x,e.x],[0,o],1,[b5.Ease.quadout,b5.Ease.quadout]));var n=a.timelines.add(new b5.Timeline(a,"_y",[a.y,e.y],[0,o],1,[b5.Ease.quadout,b5.Ease.quadout]));a.timelines.add(new b5.Timeline(a,"_scale_x",[1,1.2,1],[0,o/2,o],1,[b5.Ease.quadout,b5.Ease.quadout,b5.Ease.quadout])),a.timelines.add(new b5.Timeline(a,"_scale_y",[1,1.2,1],[0,o/2,o],1,[b5.Ease.quadout,b5.Ease.quadout,b5.Ease.quadout])),t||a.bringToFront(),b5.Utils.RunafterTime(0.3,function(){window.archon.inputok=!0}.bind(this)),n.anims[0].onEnd=function(){this.deck.FitTab()}.bind(this)},Card.prototype.Pulse=function(){var e=this.actor,t=0.5;e.timelines.add(new b5.Timeline(e,"_scale_x",[1,1.2,1],[0,t/2,t],1,[b5.Ease.quadout,b5.Ease.quadout,b5.Ease.quadout])),e.timelines.add(new b5.Timeline(e,"_scale_y",[1,1.2,1],[0,t/2,t],1,[b5.Ease.quadout,b5.Ease.quadout,b5.Ease.quadout]))},"use strict";var Placements=[1,2,3,4,5,6,7,2,3,4,5,6,7,3,4,5,6,7,4,5,6,7,5,6,7,6,7,7],Turned=[1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,1,0,0,1,0,1],eStack={none:-1,tab1:0,tab2:1,tab3:2,tab4:3,tab5:4,tab6:5,tab7:6,found1:7,found2:8,found3:9,found4:10,deck1:11,deck2:12,max:13},StackNames=["t1","t2","t3","t4","t5","t6","t7","f1","f2","f3","f4","d1","d2"],DropTargetNames=["dt1","dt2","dt3","dt4","dt5","dt6","dt7","f1","f2","f3","f4","d1","d2"];function Move(){this.cards=[],this.stacks=[]}function Deck(){this.relaxed=!1,this.drop_target_actors=[],this.places=[];for(var e=eStack.tab1;e<eStack.max;e++)this.places[e]=b5.Utils.findObjectFromPath("gamescene.board."+StackNames[e]),this.drop_target_actors[e]=b5.Utils.findObjectFromPath("gamescene.board."+DropTargetNames[e]),this.drop_target_actors[e].stack=e}Deck.prototype.Reset=function(){this.cards=[],this.undo=[],this.allow_undo=!0,this.moves=0,this.stacks=[[],[],[],[],[],[],[],[],[],[],[],[],[]];for(var e=0;52>e;e++)this.cards[e]=new Card(this),this.cards[e].Set(0|e/13,0|e%13)},Deck.prototype.Cleanup=function(){b5.Utils.findObjectFromPath("gamescene.board").removeActorsWithTag("card")},Deck.prototype.SetDeckFromRandom=function(){for(var e=0;100>e;e++){var t=0|52*Math.random(),a=0|52*Math.random(),o=this.cards[t];this.cards[t]=this.cards[a],this.cards[a]=o}this.PlaceCards()},Deck.prototype.SetDeckFromString=function(){},Deck.prototype.PlaceCards=function(){for(var e=0,a=b5.Utils.findObjectFromPath("gamescene.board.d1"),o=0;7>o;o++)for(var n=0;4>n;n++)b5.Utils.RunafterTime(0.05*e,function(e){var t=e.data.x,o=e.data.y,n=e.data.card_no,r=this.cards[n];r.actor.setPosition(a.x,a.y),r.SetPlace(eStack.tab1+t),r.Turn(!0,!0),r.actor.bringToFront()}.bind(this),{x:o,y:n,card_no:e,card_no:e}),e++;for(var r=0,t;r<this.cards.length-28;r++)t=this.cards[e],t.actor.setPosition(a.x,a.y),t.SetPlace(eStack.deck1),t.Turn(!1,!1),e++},Deck.prototype.RemoveFromStack=function(e){var a=e.stack;if(a!==eStack.none)for(var o=0;o<this.stacks[a].length;o++)if(this.stacks[a][o]===e)return this.stacks[a].splice(o,1),void(e.stack=eStack.none)},Deck.prototype.AddToStack=function(e,t,a){a===void 0?this.stacks[t].push(e):this.stacks[t].splice(a,0,e),e.stack=t},Deck.prototype.GetStackSize=function(e){return this.stacks[e].length},Deck.prototype.FindEmptyTableauStacks=function(){for(var e=[],a=eStack.tab1;a<=eStack.tab7;a++)0===this.stacks[a].length&&e.push(a);return e},Deck.prototype.GetAllCardsBelowThisCard=function(e){for(var a=[],o=!1,n=e.stack,r=0,t;r<this.stacks[n].length;r++)t=this.stacks[n][r],o?a.push(t):e===t&&(o=!0,a.push(t));return a},Deck.prototype.GetDropTargetActor=function(e){return this.drop_target_actors[e]},Deck.prototype.HideTableauDropTargetActors=function(){for(var e=eStack.tab1;e<=eStack.tab7;e++)this.drop_target_actors[e].visible=!1},Deck.prototype.IsCardFirstCardOnStack=function(e){if(e.stack<eStack.tab1||e.stack>eStack.tab7)return!1;var t=this.stacks[e.stack];return!(t[0]!==e)},Deck.prototype.BuildPossibleDropTargets=function(e){var a=[],o=e.length,n=e[0],r=n.suit,s=n.digit;if(1===o&&0===s&&0===this.stacks[eStack.found1+r].length&&a.push(eStack.found1+r),12===s&&!this.IsCardFirstCardOnStack(n))for(var i=this.FindEmptyTableauStacks(),l=0;l<i.length;l++)a.push(i[l]);if(1===o)for(var t=eStack.found1,d;t<=eStack.found4;t++)if(d=this.stacks[t].length,0<d){var c=this.stacks[t][d-1],p=c.suit,u=c.digit;if(r==p&&u==s-1){a.push(t);break}}for(var t=eStack.tab1,d;t<=eStack.tab7;t++)if(d=this.stacks[t].length,0<d&&t!==n.stack){var c=this.stacks[t][d-1],p=c.suit,u=c.digit;r===p&&u==s+1&&a.push(t)}return a},Deck.prototype.GetLastCardOnTableau=function(e){var t=this.stacks[e].length;return 0===t?null:this.stacks[e][t-1]},Deck.prototype.ResetPack=function(){var e=this.stacks[eStack.deck2].length;if(0!==e){for(var a=[],o=0,t;o<e;o++)t=this.stacks[eStack.deck2][o],a.push({card:t,stack:t.stack,turned:t.turned,touchable:t.actor.touchable});this.AddToUndo(a);for(var o=0,t;o<e;o++)t=this.stacks[eStack.deck2][this.stacks[eStack.deck2].length-1],t.SetPlace(eStack.deck1),t.Turn(!1,!1)}},Deck.prototype.AddToUndo=function(e){this.allow_undo&&this.undo.push(e)},Deck.prototype.Undo=function(){var e=this.undo.length;if(0===e)return!1;this.allow_undo=!1;for(var a=this.undo.pop(),o=0,t;o<a.length;o++)t=a[o].card,t.Turn(a[o].turned,a[o].turned),a[o].stack!==t.stack&&t.SetPlace(a[o].stack,a[o].pos),t.actor.touchable=a[o].touchable;return this.allow_undo=!0,window.archon.world.AddMoves(1),!0},Deck.prototype.GetCardPosInStack=function(e,a){for(var o=0;o<this.stacks[e].length;o++)if(this.stacks[e][o]===a)return o;return-1},Deck.prototype.ArrangeAllStacks=function(){if(this.stacks){for(var e=eStack.tab1;e<=eStack.tab7;e++)for(var a=this.places[e],o=a.y,n=0,t;n<this.stacks[e].length;n++)t=this.stacks[e][n],t.actor._y=o,o+=t.turned?CardSpacingY:CardSpacingY2;for(var e=eStack.found1;e<=eStack.found4;e++)for(var a=this.places[e],o=a.y,n=0,t;n<this.stacks[e].length;n++)t=this.stacks[e][n],t.actor._y=o}},Deck.prototype.ArrangeStack=function(e){for(var a=this.places[e],o=a.y,n=0,t;n<this.stacks[e].length;n++)t=this.stacks[e][n],t.actor._y=o,t.actor.bringToFront(),o+=t.turned?this.GetStackCardSpacingY(e):CardSpacingY2},Deck.prototype.GetPlaceOffsetY=function(e,a){var o=0;if(e>=eStack.tab1&&e<=eStack.tab7)for(var n=0,t;n<this.stacks[e].length;n++){if(t=this.stacks[e][n],t===a)return o;o+=t.turned?this.GetStackCardSpacingY(e):CardSpacingY2}return o},Deck.prototype.CheckAllCardsOnFoundation=function(){for(var e=eStack.found1;e<=eStack.found4;e++)if(13!==this.stacks[e].length)return console.log(">>>> No "+e),!1;return console.log("Yes"),window.archon.world.deck.EndRound(!0),!0},Deck.prototype.CheckAllCardsTurned=function(){if(0===this.stacks[eStack.deck1].length&&2>this.stacks[eStack.deck2].length){for(var e=0,t;e<this.cards.length;e++)if(t=this.cards[e],!t.actor.touchable)return!1;}else return!1;return this.CheckAllCardsOnFoundation(),!0},Deck.prototype.CheckStuck=function(){return!1},Deck.prototype.AutoComplete=function(){var e=this;window.archon.inputok=!1;for(var a=function(a){for(var o=0;o<e.stacks.length;o++)if(o>=eStack.tab1&&o<=eStack.tab7||o===eStack.deck2){var t=e.stacks[o].length;if(0<t&&e.stacks[o][t-1].val===a)return e.stacks[o][t-1]}return null},o=eStack.found1;o<=eStack.found4;o++){var t=-1,n=this.stacks[o].length;if(0<n){var r=this.stacks[o][n-1];t=r.val;var s=r.suit,i=r.digit+1;t=12<i?-1:13*s+i}else t=13*(o-eStack.found1);if(0<=t){var r=a(t);if(null!==r)return r.SetPlace(o),window.archon.world.AddMoves(1),b5.Utils.RunafterTime(0.1,function(){e.AutoComplete()}),!1}}return this.CheckAllCardsOnFoundation(),!0},Deck.prototype.Pulse=function(e){var t=0.5;e.timelines.add(new b5.Timeline(e,"_scale_x",[1,1.2,1],[0,t/2,t],1,[b5.Ease.quadout,b5.Ease.quadout,b5.Ease.quadout])),e.timelines.add(new b5.Timeline(e,"_scale_y",[1,1.2,1],[0,t/2,t],1,[b5.Ease.quadout,b5.Ease.quadout,b5.Ease.quadout]))},Deck.prototype.GetIndexOfFirstCardInRunOnTableau=function(e){var e=this.stacks[e];if(0===e.length)return-1;if(1===e.length)return 0;for(var a=e.length-1;0<a;a--){var t=e[a-1],o=e[a];if(!t.turned||t.suit!==o.suit||o.digit!=t.digit-1)return a}return 0},Deck.prototype.ShowHint=function(){var e=this,a=this.stacks,o=function(a,o){e.Pulse(a);for(var n=0;n<o.length;n++)e.Pulse(o[n])},t=a[eStack.deck2];return 0<a[eStack.deck2].length&&function(t){var n=a[eStack.found1+t.suit];if(0===n.length){if(0!==t.digit)return!1;var r=[e.places[eStack.found1+t.suit]];return o(t.actor,r),!0}var s=n[n.length-1];if(t.digit===s.digit+1){var r=[s.actor];return o(t.actor,r),!0}return!1}(t[t.length-1])||!!function(){for(var n=eStack.tab1,t;n<=eStack.tab7;n++)if(t=a[n],0<t.length){var r=t[t.length-1],s=a[eStack.found1+r.suit];if(0!==s.length){var i=s[s.length-1];if(r.digit===i.digit+1){var l=[i.actor];return o(r.actor,l),!0}}else if(0===r.digit){var l=[e.places[eStack.found1+r.suit]];return o(r.actor,l),!0}}return!1}()||!!function(){for(var n=eStack.tab1;n<=eStack.tab7;n++)for(var t=a[n].length-1,r;0<=t;t--){r=a[n][t];for(var s=eStack.tab1,i;s<=eStack.tab7;s++){if(i=a[s],n!==s&&0===i.length&&12===r.digit&&0!==t){for(var l=[e.places[s]],d=t;d<a[n].length;d++)l.push(a[n][d].actor);return o(r.actor,l),!0}if(n!==s&&0<i.length){var c=i[i.length-1];if(c.digit-1===r.digit&&c.suit===r.suit){for(var l=[],d=t;d<a[n].length;d++)l.push(a[n][d].actor);return o(c.actor,l),!0}}}}return!1}()||0<a[eStack.deck2].length&&function(n){for(var r=eStack.tab1,t;r<=eStack.tab7;r++)if(t=a[r],0!==t.length){var s=t[t.length-1];if(n.digit===s.digit-1&&n.suit===s.suit){var i=[s.actor];return o(n.actor,i),!0}}else if(12===n.digit){var i=[e.places[r]];return o(n.actor,i),!0}return!1}(t[t.length-1])},Deck.prototype.Cheat=function(){for(var e=[],a=eStack.tab1;a<=eStack.tab7;a++)if(1<this.stacks[a].length)for(var t=0;t<this.stacks[a].length-1;t++)this.stacks[a][t].actor.touchable||e.push({card:this.stacks[a][t],pos:t});if(0<e.length){var o=0|Math.random()*e.length,n=[],r=e[o].card,s=r.stack;return n.push({card:r,stack:r.stack,turned:r.turned,touchable:r.actor.touchable,pos:e[o].pos}),this.AddToUndo(n),r.SetPlace(eStack.deck2),r.Turn(!0,!0),this.ArrangeStack(s),window.archon.world.AddMoves(1),this.FixRelaxedCards(),!0}return!1},Deck.prototype.FixRelaxedCards=function(){if(this.relaxed)for(var e=eStack.tab1;e<=eStack.tab7;e++)if(1<this.stacks[e].length)for(var t=this.stacks[e].length-1;0<t;t--){var a=this.stacks[e][t-1],o=this.stacks[e][t];if(a.suit===o.suit&&o.digit==a.digit-1)a.actor.touchable=!0;else break}},Deck.prototype.GetStackCardSpacingY=function(e){var t=CardSpacingY,a=this.stacks[e].length;return 12<a&&(t-=0|a/2,t<CardSpacingY/2&&(t=CardSpacingY<<1)),t},Deck.prototype.FitTab=function(){for(var e=eStack.tab1;e<=eStack.tab7;e++){var t=CardSpacingY,a=this.stacks[e].length;12<a&&(t-=0|a/2,t<CardSpacingY/2&&(t=CardSpacingY<<1));for(var o=this.places[e],n=o.y,r=0;r<a;r++)this.stacks[e][r].actor._y=n,n+=t}},Deck.prototype.UpdateBacks=function(){if(void 0!==this.cards)for(var e=0;e<this.cards.length;e++)this.cards[e].UpdateBack()},Deck.prototype.EndRound=function(e){b5.Utils.findObjectFromPath("gamescene.blocker")._av=!0;for(var a=b5.Utils.findObjectFromPath("gamescene.board.d1"),o=0,n=0;n<this.cards.length;n++)this.cards[n].stack!==eStack.deck1&&(b5.Utils.RunafterTime(0.025*o,function(e){this.cards[e.data.t].SetPlace(eStack.deck1)}.bind(this),{t:n}),o++);b5.Utils.RunafterTime(0.025*o+0.5,function(){b5.Utils.findObjectFromPath("gamescene.blocker")._av=!1,window.archon.EndRound(e)})},"use strict","use strict";var Bot={};Bot.tried=!1,Bot.Strings_EN=["More hands await you.","Don't forget to claim you daily free crowns."],Bot.Strings_ES=["Te esperan m\xE1s manos","No olvides reclamar tus coronas gratis diarias"],Bot.Strings_FR=["Plus de cartes vous attendent.","N'oubliez pas de r\xE9clamer vos couronnes gratuites d\xE8s aujourd'hui."],Bot.Strings_VI=["Nhi\u1EC1u b\xE0n tay \u0111ang ch\u1EDD b\u1EA1n.","\u0110\u1EEBng qu\xEAn nh\u1EADn b\u1EA1n v\u01B0\u01A1ng mi\u1EC7n mi\u1EC5n ph\xED h\xE0ng ng\xE0y."],Bot.Strings_PT=["Mais m\xE3os esperam por voc\xEA.","N\xE3o se esque\xE7a de reivindicar coroas gr\xE1tis hoje."],Bot.Strings_AR=["\u0627\u0644\u0639\u062F\u064A\u062F \u0645\u0646 \u0627\u0644\u0623\u064A\u062F\u064A \u0641\u064A \u0627\u0646\u062A\u0638\u0627\u0631\u0643.","\u0644\u0627 \u062A\u0646\u0633\u0649 \u0627\u0644\u062D\u0635\u0648\u0644 \u0639\u0644\u0649 \u062A\u0627\u062C\u0643 \u0627\u0644\u0645\u062C\u0627\u0646\u064A \u064A\u0648\u0645\u064A\u064B\u0627."],Bot.Strings_ID=["Lebih banyak tangan menunggu Anda.","Jangan lupa untuk mengklaim Anda mahkota gratis setiap hari."],Bot.Strings_TH=["\u0E21\u0E37\u0E2D\u0E2D\u0E37\u0E48\u0E19 \u0E46 \u0E01\u0E33\u0E25\u0E31\u0E07\u0E23\u0E2D\u0E04\u0E38\u0E13\u0E2D\u0E22\u0E39\u0E48","\u0E2D\u0E22\u0E48\u0E32\u0E25\u0E37\u0E21\u0E23\u0E31\u0E1A\u0E21\u0E07\u0E01\u0E38\u0E0E\u0E1F\u0E23\u0E35\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E17\u0E38\u0E01\u0E27\u0E31\u0E19"],Bot.Strings_TR=["Daha fazla el seni bekliyor.","Sana g\xFCnl\xFCk \xFCcretsiz ta\xE7lar almay\u0131 unutma."],Bot.Strings_DE=["Mehr H\xE4nde erwarten dich.","Vergiss nicht, dir jeden Tag kostenlose Kronen zu besorgen."],Bot.Strings_IT=["Ti aspettano pi\xF9 mani.","Non dimenticare di procurarti le corone gratuite quotidiane."],Bot.GetString=function(e){var t=Social.GetLocale();if(t.startsWith("es_"))return Bot.Strings_ES[e];return t.startsWith("fr_")?Bot.Strings_FR[e]:t.startsWith("vi_")?Bot.Strings_VI[e]:t.startsWith("pt_")?Bot.Strings_PT[e]:t.startsWith("ar_")?Bot.Strings_AR[e]:t.startsWith("id_")?Bot.Strings_ID[e]:t.startsWith("th_")?Bot.Strings_TH[e]:t.startsWith("tr_")?Bot.Strings_TR[e]:t.startsWith("de_")?Bot.Strings_DE[e]:t.startsWith("it_")?Bot.Strings_IT[e]:Bot.Strings_EN[e]},Bot.SetMessage=function(){var e=window.archon,t=Bot.GetString(0),a=Bot.GetString(1);Social.SetSessionData({msg:a,s:t,d:"bot"})},Bot.Subscribe=function(){var e=window.archon;e.bot_subscribed||Bot.tried||(Bot.tried=!0,FBInstant.player.canSubscribeBotAsync().then(function(t){console.log(">>>> Can subscribe to bot "+t),t&&FBInstant.player.subscribeBotAsync().then(function(){console.log(">>>> Bot subscribed"),Bot.SetMessage(),e.bot_subscribed=!0,e.SaveGame(),Social.LogEvent("Bot Subscribed",1)}).catch(function(t){console.log(">>>> Bot error:"),console.log(t.message),Social.LogEvent("Bot Subscribed Error",1)})}))},"use strict";var Text={};Text.SCORE=0,Text.DAILYBONUS=1,Text.SUITS=2,Text.FRIENDS=3,Text.NOFRIENDS=4,Text.MATCHHISTORY=5,Text.STATISTICS=6,Text.NORMAL=7,Text.RELAXED=8,Text.TOTAL_SCORE=9,Text.HANDS_PLAYED=10,Text.HANDS_COMPLETED=11,Text.HANDS_FAILED=12,Text.TOTAL_SESSIONS=13,Text.TIME_PLAYED=14,Text.FRIEND_GAMES=15,Text.KINGS_EARNT=16,Text.BOARDS_OWNED=17,Text.DECKS_OWNED=18,Text.QUICKEST_WIN=19,Text.SLOWEST_WIN=20,Text.FEWEST_MOVES=21,Text.MOST_MOVES=22,Text.AVERAGE_GAME_TIME=23,Text.WIN_RATE=24,Text.RANK=25,Text.REPLAY_HAND=26,Text.SHARE_HAND=27,Text.ASK_SOLUTION=28,Text.REPLAY_FASTEST=29,Text.REPLAY_SLOWEST=30,Text.REPLAY_FEWEST=31,Text.REPLAY_MOST=32,Text.FRIEND_REPLAY_FASTEST=33,Text.FRIEND_REPLAY_SLOWEST=34,Text.FRIEND_REPLAY_FEWEST=35,Text.FRIEND_REPLAY_MOST=36,Text.PLAY_FRIEND=37,Text.ADD_FRIEND=38,Text.FRIEND_STATS=39,Text.CAN_YOU_SOLVE=40,Text.PLAY=41,Text.UNLUCKY=42,Text.WELL_DONE=43,Text.BEAT_BEST=44,Text.BEAT_FRIEND_BEST=45,Text.INVITE=46,Text.ACTIVE=47,Text.INACTIVE=48,Text.CHANGE_DECK=49,Text.CHANGE_THEME=50,Text.NO_CROWNS=51,Text.ROUND_OVER=52,Text.QUIT=53,Text.OPTIONS=54,Text.AUDIO=55,Text.TOOLTIPS=56,Text.GLOBAL=57,Text.SELECT_GAME=58,Text.HELP1=59,Text.HELP2=60,Text.HELP3=61,Text.HELP4=62,Text.UNLUCKY2=63,Text.WELLDONE2=64,Text.STEALINFO=65,Text.TAPTOCLOSE=66,Text.HISTORY=67,Text.STATS=68,Text.QUESTS=69,Text.SHOWQUESTS=70,Text.DAILY1=71,Text.DAILY2=72,Text.DAILY3=73,Text.DAILY4=74,Text.DAILY5=75,Text.DAILY6=76,Text.DAILY7=77,Text.DAILY8=78,Text.PLAY_TRIPEAKS2=79,Text.RESTART=80,Text.QUITINFO=81,Text.FOUNDATION=82,Text.TABLEAU=83,Text.DECK=84,Text.TUT1=85,Text.TUT2=86,Text.TUT3=87,Text.TUT4=88,Text.TUT5=89,Text.TUT6=90,Text.NEW_GAME=91,Text.BACK_TO_GAME=92,Text.SHOW_TUTORIAL=93,Text.QUIT_GAME=94,Text.RESTART_GAME=95,Text.ADD_SHORTCUT=96,Text.SHOW_MAIN_MENU=97,Text.UNDO=98,Text.SHOW_HINT=99,Text.STEAL_CARD=100,Text.SETTINGS=101,Text.INVITE_TO_PLAY=102,Text.MORE_STEALS=103,Text.PLAY_GOLF=104,Text.PLAY_TRIPEAKS=105,Text.WON=106,Text.LOST=107,Text.PLAY_REVERSE=108,Text.PLAY_SOLITAIRE2=109,Text.FAILED=110,Text.PLAY_AUSTRALIAN=111,Text.PLAY_SOLITAIREMATCH=112,Text.Text_EN=["SCORE","Daily Bonus","Suits","Friends","Invite friends to play.","Game History","Statistics","Normal","Relaxed","Total Score","Hands Played","Hands Completed","Hands Failed","Total Sessions","Time Played","Friend Games","Crowns Earnt","Themes Owned","Decks Owned","Fastest Win","Slowest Win","Fewest Moves","Most Moves","Average Time","Win Rate","Rank","Replay this hand","Share this hand","Ask for solution","Replay fastest win game","Replay slowest win game","Replay fewest moves game","Replay most moves game","Play friends fastest win game","Play friends slowest win game","Play friends fewest moves game","Play friends most moves game","Play this friend","Invite friends to play","View their statistics","Can you help me solve this game?","Play","Unlucky, why not try another hand?","Well done, why not try another hand?","Well done, you beat your best!","Well done, you beat your friends best!","Want to play?","Active","Inactive","Change Deck","Change Theme","Get Crowns","Round Over","Quit Game?","Options","Audio","Tooltips","World","Normal or Relaxed?","","","","","Unlucky, you didn't beat %1 this time.","Well done, you beat %1.","Use steal button when no moves left.\n\n\nUse hint button when stuck.","Tap to close","History","Stats","Quests","Show Quests","Win a game in less than %1 moves.","Win a game in less than %1 minutes.","Win a game with a score greater than %1.","Win a game without using hints.","Play a relaxed game.","Win at least 3 games in one session.","Beat one of your previous slowest games.","Complete all 7 daily quests.","Play Tri Peaks","Restart?","Tap the menu button to view the main menu.\n\n\nTap the help button to watch the tutorial.","Foundation","Tableau","Deck","Welcome to the tutorial, press the next button to go onto the next stage.","Move cards from the tableau to the foundation, stacking cards from ace upwards.","Any card on the tableau or base can be moved onto another card if its rank is one less and its suit is the same.","Kings can be moved into a free slot on the tableau.","Turn cards on the deck until you find a card that can be placed on the foundation or tableau.","The game is complete when all cards have been stacked onto the foundation.","Start New Game","Back to Game","Show tutorial","Quit game","Restart game","Add shortcut","Show main menu","Undo","Show hint","Steal card","Change settings","%1 invited you to play","Get more steals","Play Golf Solitaire","Play Tri Peaks","Game Won!","Game Lost","Play Solitaire Reverse","Play Solitaire","Out of moves, continue?","Play Australian Patience","Play Solitaire Match"],Text.Text_ES=["PUNTUACI\xD3N","Bonus diario","Trajes","Clube Amigos","Invita amigos a tu club.","Historial de partidos","Estad\xEDstica","Normal","Relajado","Puntaje total","Manos jugadas","Manos completadas","Manos fallidas","Sesiones totales","Tiempo jugado","Juegos de amigos","Coronas ganadas","Temas","Barajas de cartas","victoria m\xE1s r\xE1pida","Victoria m\xE1s lenta","Pocos movimientos","Layor\xEDa de los movimientos","Tiempo promedio","Ratio de victorias","Rango","Repetir mano","Comparte esta mano","Pedir soluci\xF3n","Repetir el juego ganador m\xE1s r\xE1pido","Repetir el juego ganador m\xE1s lento","Repetir el juego con menos movimientos","Repite el juego con la mayor cantidad de movimientos","Repetir el juego ganador m\xE1s r\xE1pido","Repetir el juego ganador m\xE1s lento","Repetir el juego con menos movimientos","Repite el juego con la mayor cantidad de movimientos","Juega con este amigo","Invita a amigos a jugar","Ver sus estad\xEDsticas","\xBFMe pueden ayudar a resolver este juego?","Jugar","Mala suerte, \xBFpor qu\xE9 no probar con otra mano?","Bien hecho, \xBFpor qu\xE9 no pruebas con otra mano?","Bien hecho, superaste lo mejor","\xA1Bien hecho, superaste a tus amigos!","\xBFQuieres jugar?","Activo","Inactivo","Cambiar el mazo de cartas","Cambiar de tema","No hay suficientes coronas","Redondear","\xBFSalir del juego?","Opciones","Audio","Consejos","Global","\xBFNormal o relajado?","El objetivo del juego es mover todas las cartas a las cuatro pilas de bases, apil\xE1ndolas en orden de valor de as a rey. Toca o arrastra cartas para moverlas.","Al mover cartas al cuadro o alrededor del cuadro, solo las tarjetas que tienen un valor m\xE1s bajo y el color opuesto se pueden colocar encima de las tarjetas existentes (por ejemplo, un 8 negro se puede colocar encima de un 9 rojo). Las tarjetas se pueden mover como una secuencia completa (por ejemplo, 8,7,6,5 se pueden mover a un 9) o singularmente.","Cuando ya no puedas moverte sobre el cuadro o la base, toca el mazo para tomar una nueva carta.","Si realiza un movimiento incorrecto, puede usar el bot\xF3n Deshacer para retroceder los movimientos. Si te quedas atascado, puedes usar el bot\xF3n de robar para robar cartas ocultas del cuadro.","Desafortunado, no superaste a %1 esta vez.","Bien hecho, superaste a %1.","Si te quedas atascado, usa el bot\xF3n Robar para robar una carta de la mesa.\n\nUse el bot\xF3n de pista para una pista r\xE1pida.","Toca para cerrar","Historia","Estad\xEDsticas","Misiones","Mostrar Misiones","Gana un juego en menos de %1 movimientos.","Gana un juego en menos de %1 minutos.","Gana un juego con una puntuaci\xF3n superior a %1.","Gana un juego sin usar pistas.","Juega un juego relajado.","Gana al menos 3 juegos en una sesi\xF3n.","Completa uno de tus juegos m\xE1s lentos anteriores.","Completa las 7 misiones diarias.","Jugar Tri Peaks","\xBFReiniciar?","Toque el bot\xF3n de men\xFA para ver el men\xFA principal.\n\n\nToque el bot\xF3n de ayuda para ver el tutorial.","Fundaci\xF3n","Cuadro","Base","Bienvenido al tutorial, presione el bot\xF3n Siguiente para pasar a la siguiente etapa.","Mueve las cartas del cuadro a la base, apilando cartas del as hacia arriba. Las cartas descubiertas ser\xE1n reveladas.","Una carta en el cuadro puede moverse a otra carta si su valor es uno menor y su color es el opuesto.","Los reyes se pueden mover a una ranura libre en el cuadro.","Cuando ya no puedas hacer ning\xFAn movimiento, gira las cartas en la base hasta que encuentres una carta que se pueda colocar en la base o en el cuadro.","El juego se completa cuando todas las cartas se han apilado en la base.","Empieza juego nuevo","Volver al juego","Ver tutorial","Salir del juego","Reinicia el juego","A\xF1adir atajo","Mostrar men\xFA principal","Deshacer","Mostrar pista","Robar tarjeta","Cambiar ajustes","%1 te invit\xF3 a jugar","Consigue m\xE1s robos","Jugar al solitario de golf","Jugar Tri Peaks","\xA1Juego ganado!","Juego perdido","Jugar al Solitario Inverso","Jugar Solitario","No quedan cartas, \xBFcontinuar?","Jugar a la paciencia australiana","Jugar partido solitario"],Text.Text_FR=["SCORE","Bonus quotidien","Costume","Club d'amis","Invitez des amis dans votre club de solitaire.","Historique des matchs","Statistiques","Normal","D\xE9tendu","Score total","Mains jou\xE9es","Mains termin\xE9es","Les mains ont \xE9chou\xE9","Total des sessions","Temps jou\xE9","Jeux d'amis","Couronnes gagn\xE9es","Th\xE8mes","Th\xE8mes des cartes","Victoire plus rapide","Victoire plus lente","Moins de mouvements","Plupart des mouvements","Temps moyen","Taux de r\xE9ussite","Rang","Rejouer cette main","Partager cette main","Demander une solution","Rejouer le jeu de victoire le plus rapide","Rejouer le jeu de victoire le plus lent","Rejouer le jeu avec le moins de mouvements","Rejouer jeu avec le plus de mouvements","Rejouer le jeu de victoire le plus rapide","Rejouer le jeu de victoire le plus lent","Rejouer le jeu avec le moins de mouvements","Rejouer jeu avec le plus de mouvements","Joue \xE0 cet ami","Inviter des amis \xE0 jouer","Voir leurs statistiques","Pouvez-vous m'aider \xE0 r\xE9soudre ce jeu?","Jouer","Malchanceux, pourquoi ne pas essayer une autre main?","Bien jou\xE9, pourquoi ne pas essayer une autre main?","Bravo, vous avez am\xE9lior\xE9 votre record personnel!","Bien jou\xE9, tu as battu ton ami!","Tu veux jouer?","Actif","Inactif","Changer le th\xE8me de la carte","Changer le th\xE8me","Pas assez de couronnes","Jeu termin\xE9","Quitter le jeu?","Options","L'audio","Info-bulles","Global","Normal ou d\xE9tendu?","Le but du jeu est de d\xE9placer toutes les cartes sur les quatre piles de fondation, en les empilant par ordre de valeur de l'as au roi. Appuyez ou faites glisser les cartes pour les d\xE9placer.","Lorsque vous d\xE9placez des cartes vers le tableau ou autour du tableau, seules les cartes dont la valeur est inf\xE9rieure et la couleur oppos\xE9e peuvent \xEAtre plac\xE9es au-dessus des cartes existantes (par exemple, un 8 noir peut \xEAtre plac\xE9 au-dessus d'un 9 rouge). Les cartes peuvent \xEAtre d\xE9plac\xE9es comme une s\xE9quence enti\xE8re (par exemple, 8,7,6,5 peuvent \xEAtre d\xE9plac\xE9es sur un 9) ou individuellement.","Lorsque vous ne pouvez plus vous d\xE9placer sur le tableau ou la fondation, appuyez sur le jeu de cartes pour prendre une nouvelle carte.","Si vous faites un mauvais mouvement, vous pouvez utiliser le bouton Annuler pour revenir en arri\xE8re. Si vous \xEAtes bloqu\xE9, vous pouvez utiliser le bouton de vol pour voler des cartes cach\xE9es du tableau.","Malchanceux, vous n'avez pas battu %1 cette fois.","Bravo, vous avez battu %1.","Si vous \xEAtes coinc\xE9, utilisez le bouton Voler pour prendre une carte du tableau.\n\nUtilisez le bouton de conseil pour un conseil rapide.","Appuyez pour fermer","Histoire","Statistiques","Qu\xEAtes","Afficher les Qu\xEAtes","Gagnez une partie en moins de %1 coups.","Gagnez une partie en moins de %1 minutes.","Gagnez une partie avec un score sup\xE9rieur \xE0 %1.","Gagnez une partie sans utiliser d'indices.","Jouez \xE0 un jeu d\xE9tendu.","Gagnez au moins 3 matchs en une seule session.","Battez l'un de vos pr\xE9c\xE9dents jeux les plus lents.","Terminez les 7 qu\xEAtes quotidiennes.","Jouer Tri Peaks","Recommencer?","Appuyez sur le bouton de menu pour afficher le menu principal.\n\nAppuyez sur le bouton d'aide pour voir le didacticiel.","Fondation","Tableau","Pont","Bienvenue dans le tutoriel, appuyez sur le bouton suivant pour passer \xE0 l'\xE9tape suivante.","D\xE9placez les cartes du tableau vers la fondation, en empilant les cartes de l'as vers le haut. Les cartes non couvertes seront r\xE9v\xE9l\xE9es.","Les cartes du tableau peuvent \xEAtre d\xE9plac\xE9es sur une autre carte si sa valeur est de moins et sa couleur est l'inverse.","Les rois peuvent \xEAtre d\xE9plac\xE9s dans un emplacement libre sur le tableau.","Lorsque vous ne pouvez plus faire de mouvement, retournez les cartes sur le jeu jusqu'\xE0 ce que vous trouviez une carte qui peut \xEAtre plac\xE9e sur la fondation ou le tableau.","Le jeu est termin\xE9 lorsque toutes les cartes ont \xE9t\xE9 empil\xE9es sur la fondation.","Commencer nouvelle partie","Retour au jeu","Afficher le didacticiel","Quitter le jeu","Recommencer le jeu","Ajouter un raccourci","Afficher menu principal","Annuler","D\xE9voiler indice","Voler carte","Modifier param\xE8tres","%1 vous a invit\xE9 \xE0 jouer","Obtenez plus de vols","Jouer au Golf Solitaire","Jouer Tri Peaks","Partie gagn\xE9e!","Jeu perdu","Jouer au Solitaire Invers\xE9","Jouer au Solitaire","Plus de cartes, continuez?","Jouez \xE0la patience australienne","Jouer au match de solitaire"],Text.Text_PT=["PONTO","B\xF4nus di\xE1rio","Terno","Clube Amigos","Convide amigos para o seu clube.","Hist\xF3rico de partidas","Estatisticas","Normal","Relaxado","Pontua\xE7\xE3o total","M\xE3os jogadas","M\xE3os conclu\xEDdas","M\xE3os falhadas","Total de sess\xF5es","Tempo de jogo","Jogos de amigos","Total de coroas","Temas","Temas de cart\xF5es","Vit\xF3ria mais r\xE1pida","Vit\xF3ria mais lenta","Menos movimentos","Maioria movimentos","Tempo m\xE9dio","Taxa de vit\xF3rias","#","Repita esta m\xE3o","Compartilhe esta m\xE3o","Pe\xE7a solu\xE7\xE3o","Repetir o jogo de vit\xF3ria mais r\xE1pida","Repetir o jogo de vit\xF3ria mais lenta","Repetir o jogo com menos movimentos","Repita o jogo com a maioria dos movimentos","Repetir o jogo de vit\xF3ria mais r\xE1pida","Repetir o jogo de vit\xF3ria mais lenta","Repetir o jogo com menos movimentos","Repita o jogo com a maioria dos movimentos","Jogue com esse amigo","Convide amigos para jogar","Ver as estat\xEDsticas","Voc\xEA pode me ajudar a resolver este jogo?","Toque","Azarado, por que n\xE3o tentar outra m\xE3o?","Muito bem, por que n\xE3o tentar outra m\xE3o?","\xD3timo, voc\xEA melhorou o seu melhor!","Muito bem, voc\xEA venceu o seu amigo!","Voc\xEA quer jogar?","Ativo","Inativo","Alterar baralho de cartas","Mudar tema","Coroas insuficientes","Fim da Rodada","Desistir do jogo?","Op\xE7\xF5es","\xC1udio","Dicas","Global","Normal ou relaxado?","O objetivo do jogo \xE9 mover todas as cartas para as quatro pilhas de funda\xE7\xE3o, empilhando-as em ordem de valor de \xE1s para rei. Toque ou arraste os cart\xF5es para mov\xEA-los.","Ao mover cart\xF5es para o quadro ou ao redor do quadro, apenas cart\xF5es com um valor menor e a cor oposta podem ser colocados sobre os cart\xF5es existentes (por exemplo, um 8 preto pode ser colocado sobre um 9 vermelho). Os cart\xF5es podem ser movidos como uma sequ\xEAncia inteira (por exemplo, 8,7,6,5 podem ser movidos para um 9) ou singularmente.","Quando voc\xEA n\xE3o puder mais se mover no quadro ou na funda\xE7\xE3o, toque no baralho para transformar uma nova carta em jogo.","Se voc\xEA fizer um lance errado, poder\xE1 usar o bot\xE3o desfazer para retroceder. Se voc\xEA ficar preso, poder\xE1 usar o bot\xE3o Roubar para roubar cartas ocultas do quadro.","Infelizmente, voc\xEA n\xE3o venceu %1 dessa vez.","Muito bem, voc\xEA venceu %1.","Se voc\xEA ficar preso, use o bot\xE3o Roubar para roubar um cart\xE3o do quadro.\n\nUse o bot\xE3o de dica para obter uma dica r\xE1pida","Toque para fechar","Hist\xF3ria","Estat\xEDsticas","Miss\xF5es","Mostrar Miss\xF5es","Ven\xE7a um jogo em menos de %1 lances.","Ganhe um jogo em menos de %1 minutos.","Ven\xE7a um jogo com uma pontua\xE7\xE3o maior que %1.","Ven\xE7a um jogo sem usar dicas.","Jogue um jogo descontra\xEDdo.","Ven\xE7a pelo menos 3 jogos em uma sess\xE3o.","Ven\xE7a um dos seus jogos mais lentos anteriores.","Complete todas as 7 miss\xF5es di\xE1rias.","Jogar Tri peaks","Reiniciar?","Pressione o bot\xE3o menu para exibir o menu principal.\n\n\nToque no bot\xE3o de ajuda para ver o tutorial.","Funda\xE7\xE3o","Quadro","Conv\xE9s","Bem-vindo ao tutorial, pressione o pr\xF3ximo bot\xE3o para avan\xE7ar para a pr\xF3xima etapa.","Mova as cartas do quadro para a funda\xE7\xE3o, empilhando cartas do \xE1s para cima. Cartas de jogar descobertas ser\xE3o reveladas.","Os cart\xF5es no quadro podem ser movidos para outro cart\xE3o se o valor for um a menos e a cor for o oposto.","Os reis podem ser movidos para um espa\xE7o livre no quadro.","Quando voc\xEA n\xE3o puder mais fazer nenhum movimento, vire as cartas no baralho at\xE9 encontrar uma carta que possa ser colocada na funda\xE7\xE3o ou no quadro.","O jogo termina quando todas as cartas foram empilhadas na funda\xE7\xE3o.","Come\xE7ar novo jogo","De volta ao jogo","Mostrar tutorial","Desistir do jogo","Reiniciar o jogo","Adicionar atalho","Mostrar menu principal","Desfazer","Mostrar dica","Roubar cart\xE3o","Mudar configura\xE7\xF5es","%1 convidou voc\xEA para jogar","Obtenha mais roubadas","Jogue paci\xEAncia de golfe","Jogar Tri peaks","Jogo ganho!","Jogo perdido","Jogue Paci\xEAncia Reversa","Jogue Paci\xEAncia","Sem cart\xF5es, continua?","Jogue paci\xEAncia australiana","Jogar paci\xEAncia combinar"],Text.Text_VI=["GHI B\xC0N","H\xE0ng ng\xE0y","B\u1ED9 qu\u1EA7n \xE1o","B\u1EA1n b\xE8","M\u1EDDi b\u1EA1n b\xE8 \u0111\u1EBFn c\xE2u l\u1EA1c b\u1ED9 c\u1EE7a b\u1EA1n.","L\u1ECBch s\u1EED tr\xF2 ch\u01A1i","S\u1ED1 li\u1EC7u th\u1ED1ng k\xEA","B\xECnh th\u01B0\u1EDDng","Th\u01B0 gi\xE3n","T\u1ED5ng \u0111i\u1EC3m","T\u1ED5ng s\u1ED1 tay ch\u01A1i","T\u1ED5ng s\u1ED1 ho\xE0n th\xE0nh","Th\u1EA5t b\u1EA1i","T\u1ED5ng s\u1ED1 phi\xEAn","Th\u1EDDi gian ch\u01A1i","Tr\xF2 ch\u01A1i b\u1EA1n b\xE8","t\u1ED5ng s\u1ED1 m\xE3o","T\u1ED5ng s\u1ED1 ch\u1EE7 \u0111\u1EC1","B\u1ED9 b\xE0i thu\u1ED9c s\u1EDF h\u1EEFu","Nhanh nh\u1EA5t","Ch\u1EADm nh\u1EA5t","\xCDt nh\u1EA5t","Ph\u1EA7n l\u1EDBn","Th\u1EDDi gian trung b\xECnh","T\u1EC9 l\u1EC7 chi\u1EBFn th\u1EAFng","C\u1EA5p","Ph\xE1t l\u1EA1i b\xE0n tay n\xE0y","Chia s\u1EBB b\xE0n tay n\xE0y","Y\xEAu c\u1EA7u gi\u1EA3i ph\xE1p","Ph\xE1t l\u1EA1i tr\xF2 ch\u01A1i nhanh nh\u1EA5t","Ph\xE1t l\u1EA1i tr\xF2 ch\u01A1i ch\u1EADm nh\u1EA5t","Ch\u01A1i \xEDt di chuy\u1EC3n nh\u1EA5t","Ph\xE1t l\u1EA1i h\u1EA7u h\u1EBFt c\xE1c di chuy\u1EC3n","Ch\u01A1i tr\xF2 ch\u01A1i b\u1EA1n b\xE8 v\u1EDBi nhanh nh\u1EA5t","Ch\u01A1i tr\xF2 ch\u01A1i b\u1EA1n b\xE8 v\u1EDBi ch\u1EADm nh\u1EA5t","Ch\u01A1i tr\xF2 ch\u01A1i b\u1EA1n b\xE8 v\u1EDBi \xEDt \u0111\u1ED9ng t\xE1c nh\u1EA5t","Ch\u01A1i m\u1ED9t tr\xF2 ch\u01A1i b\u1EA1n b\xE8 v\u1EDBi nhi\u1EC1u di chuy\u1EC3n nh\u1EA5t","Ch\u01A1i b\u1EA1n n\xE0y","M\u1EDDi b\u1EA1n b\xE8 ch\u01A1i","Xem s\u1ED1 li\u1EC7u th\u1ED1ng k\xEA c\u1EE7a h\u1ECD","B\u1EA1n c\xF3 th\u1EC3 gi\xFAp t\xF4i gi\u1EA3i quy\u1EBFt tr\xF2 ch\u01A1i n\xE0y?","Ch\u01A1i","Kh\xF4ng may m\u1EAFn, t\u1EA1i sao kh\xF4ng th\u1EED m\u1ED9t b\xE0n tay kh\xE1c?","L\xE0m t\u1ED1t l\u1EAFm, t\u1EA1i sao kh\xF4ng th\u1EED m\u1ED9t b\xE0n tay kh\xE1c?","T\u1ED1t l\u1EAFm, b\u1EA1n \u0111\xE1nh b\u1EA1i t\u1ED1t nh\u1EA5t c\u1EE7a b\u1EA1n!","T\u1ED1t l\u1EAFm, b\u1EA1n \u0111\xE1nh b\u1EA1i b\u1EA1n b\xE8 t\u1ED1t nh\u1EA5t!","Mu\u1ED1n ch\u01A1i?","Ho\u1EA1t \u0111\u1ED9ng","Kh\xF4ng ho\u1EA1t \u0111\u1ED9ng","Thay \u0111\u1ED5i c\u1ED7 b\xE0i","Thay \u0111\u1ED5i ch\u1EE7 \u0111\u1EC1","Nh\u1EADn m\u1ED9t s\u1ED1 v\u01B0\u01A1ng mi\u1EC7n","Tr\xF2 ch\u01A1i k\u1EBFt th\xFAc","Tho\xE1t kh\u1ECFi tr\xF2 ch\u01A1i?","T\xF9y ch\u1ECDn","\xC2m thanh","Ch\xFA gi\u1EA3i c\xF4ng c\u1EE5","Th\u1EBF gi\u1EDBi","B\xECnh th\u01B0\u1EDDng hay th\u01B0 gi\xE3n?","M\u1EE5c \u0111\xEDch c\u1EE7a tr\xF2 ch\u01A1i l\xE0 di chuy\u1EC3n t\u1EA5t c\u1EA3 c\xE1c th\u1EBB l\xEAn b\u1ED1n c\u1ECDc m\xF3ng, x\u1EBFp ch\xFAng theo th\u1EE9 t\u1EF1 gi\xE1 tr\u1ECB t\u1EEB ace \u0111\u1EBFn vua. Ch\u1EA1m ho\u1EB7c k\xE9o th\u1EBB \u0111\u1EC3 di chuy\u1EC3n ch\xFAng xung quanh.","Khi di chuy\u1EC3n th\u1EBB \u0111\u1EBFn tableau ho\u1EB7c xung quanh tableau, ch\u1EC9 nh\u1EEFng th\u1EBB c\xF3 gi\xE1 tr\u1ECB th\u1EA5p h\u01A1n m\u1ED9t m\xE0u v\xE0 m\xE0u \u0111\u1ED1i di\u1EC7n c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c \u0111\u1EB7t l\xEAn tr\xEAn c\xE1c th\u1EBB hi\u1EC7n c\xF3 (v\xED d\u1EE5: 8 m\xE0u \u0111en c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c \u0111\u1EB7t tr\xEAn \u0111\u1EA7u 9 m\xE0u \u0111\u1ECF). di chuy\u1EC3n d\u01B0\u1EDBi d\u1EA1ng to\xE0n b\u1ED9 chu\u1ED7i (v\xED d\u1EE5: 8,7,6,5 c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c chuy\u1EC3n l\xEAn 9) ho\u1EB7c s\u1ED1 \xEDt. ","Khi b\u1EA1n kh\xF4ng c\xF2n c\xF3 th\u1EC3 di chuy\u1EC3n tr\xEAn tableau ho\u1EB7c n\u1EC1n t\u1EA3ng, h\xE3y ch\u1EA1m v\xE0o c\u1ED7 b\xE0i \u0111\u1EC3 b\u1EADt m\u1ED9t th\u1EBB m\u1EDBi \u0111\u1EC3 ch\u01A1i.","N\u1EBFu b\u1EA1n di chuy\u1EC3n sai, b\u1EA1n c\xF3 th\u1EC3 s\u1EED d\u1EE5ng n\xFAt ho\xE0n t\xE1c \u0111\u1EC3 quay l\u1EA1i di chuy\u1EC3n. N\u1EBFu b\u1EA1n b\u1ECB k\u1EB9t th\xEC b\u1EA1n c\xF3 th\u1EC3 s\u1EED d\u1EE5ng n\xFAt \u0111\xE1nh c\u1EAFp \u0111\u1EC3 \u0111\xE1nh c\u1EAFp c\xE1c th\u1EBB \u1EA9n t\u1EEB tableau.","Th\u1EADt kh\xF4ng may, l\u1EA7n n\xE0y b\u1EA1n kh\xF4ng \u0111\xE1nh b\u1EA1i %1.","L\xE0m t\u1ED1t l\u1EAFm, b\u1EA1n \u0111\xE3 \u0111\xE1nh b\u1EA1i %1.","S\u1EED d\u1EE5ng n\xFAt \u0111\xE1nh c\u1EAFp khi kh\xF4ng c\xF2n di chuy\u1EC3n.\n\n\nS\u1EED d\u1EE5ng n\xFAt g\u1EE3i \xFD khi b\u1ECB k\u1EB9t.","Nh\u1EA5n \u0111\u1EC3 \u0111\xF3ng","L\u1ECBch s\u1EED","S\u1ED1 li\u1EC7u th\u1ED1ng k\xEA","Nhi\u1EC7m v\u1EE5","Hi\u1EC3n th\u1ECB nhi\u1EC7m v\u1EE5","Chi\u1EBFn th\u1EAFng m\u1ED9t tr\xF2 ch\u01A1i v\u1EDBi \xEDt h\u01A1n %1 di chuy\u1EC3n.","Chi\u1EBFn th\u1EAFng m\u1ED9t tr\xF2 ch\u01A1i trong \xEDt h\u01A1n %1 ph\xFAt.","Chi\u1EBFn th\u1EAFng m\u1ED9t tr\xF2 ch\u01A1i c\xF3 s\u1ED1 \u0111i\u1EC3m l\u1EDBn h\u01A1n %1.","Chi\u1EBFn th\u1EAFng m\u1ED9t tr\xF2 ch\u01A1i m\xE0 kh\xF4ng c\u1EA7n s\u1EED d\u1EE5ng g\u1EE3i \xFD.","Ch\u01A1i m\u1ED9t tr\xF2 ch\u01A1i tho\u1EA3i m\xE1i.","Chi\u1EBFn th\u1EAFng \xEDt nh\u1EA5t 3 tr\u1EADn trong m\u1ED9t phi\xEAn.","\u0110\xE1nh b\u1EA1i m\u1ED9t trong nh\u1EEFng tr\xF2 ch\u01A1i ch\u1EADm nh\u1EA5t tr\u01B0\u1EDBc \u0111\xE2y c\u1EE7a b\u1EA1n.","Ho\xE0n th\xE0nh t\u1EA5t c\u1EA3 7 nhi\u1EC7m v\u1EE5 h\xE0ng ng\xE0y.","Ch\u01A1i TriPeaks","Kh\u1EDFi \u0111\u1ED9ng l\u1EA1i?","Nh\u1EA5n v\xE0o n\xFAt menu \u0111\u1EC3 xem menu ch\xEDnh.\n\n\nNh\u1EA5n v\xE0o n\xFAt tr\u1EE3 gi\xFAp \u0111\u1EC3 xem h\u01B0\u1EDBng d\u1EABn.","n\u1EC1n t\u1EA3ng","B\u1EA3ng","C\u0103n c\u1EE9","Ch\xE0o m\u1EEBng b\u1EA1n \u0111\u1EBFn v\u1EDBi h\u01B0\u1EDBng d\u1EABn, nh\u1EA5n n\xFAt ti\u1EBFp theo \u0111\u1EC3 chuy\u1EC3n sang giai \u0111o\u1EA1n ti\u1EBFp theo.","Di chuy\u1EC3n th\u1EBB t\u1EEB b\u1EA3ng v\xE0o n\u1EC1n t\u1EA3ng, x\u1EBFp th\u1EBB t\u1EEB ace tr\u1EDF l\xEAn.","B\u1EA5t k\u1EF3 th\u1EBB n\xE0o tr\xEAn b\u1EA3ng ho\u1EB7c c\u01A1 s\u1EDF \u0111\u1EC1u c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c chuy\u1EC3n sang th\u1EBB kh\xE1c n\u1EBFu th\u1EE9 h\u1EA1ng c\u1EE7a n\xF3 l\xE0 \xEDt h\u01A1n v\xE0 ph\xF9 h\u1EE3p v\u1EDBi n\xF3 l\xE0 nh\u01B0 nhau.","C\xE1c v\u1ECB vua c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c chuy\u1EC3n v\xE0o m\u1ED9t khe mi\u1EC5n ph\xED tr\xEAn b\u1EA3ng.","B\u1EADt th\u1EBB tr\xEAn \u0111\u1EBF cho \u0111\u1EBFn khi b\u1EA1n t\xECm th\u1EA5y m\u1ED9t th\u1EBB c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c \u0111\u1EB7t tr\xEAn n\u1EC1n t\u1EA3ng ho\u1EB7c b\u1EA3ng.","Tr\xF2 ch\u01A1i ho\xE0n t\u1EA5t khi t\u1EA5t c\u1EA3 c\xE1c th\u1EBB \u0111\xE3 \u0111\u01B0\u1EE3c x\u1EBFp ch\u1ED3ng l\xEAn n\u1EC1n t\u1EA3ng.","B\u1EAFt \u0111\u1EA7u tr\xF2 ch\u01A1i m\u1EDBi","Quay l\u1EA1i tr\xF2 ch\u01A1i","H\u01B0\u1EDBng d\u1EABn","Tho\xE1t kh\u1ECFi tr\xF2 ch\u01A1i","Kh\u1EDFi \u0111\u1ED9ng l\u1EA1i tr\xF2 ch\u01A1i","Th\xEAm shortcut","Hi\u1EC3n th\u1ECB menu ch\xEDnh","Ho\xE0n t\xE1c","Hi\u1EC3n th\u1ECB g\u1EE3i \xFD","L\u1EA5y th\u1EBB mi\u1EC5n ph\xED","Thay \u0111\u1ED5i c\xE0i \u0111\u1EB7t","%1 m\u1EDDi b\u1EA1n ch\u01A1i","Nh\u1EADn th\xEAm \u0111\xE1nh c\u1EAFp","Ch\u01A1i Golf Solitaire","Ch\u01A1i TriPeaks","Tr\xF2 ch\u01A1i \u0111\xE3 th\u1EAFng!","Tr\xF2 ch\u01A1i b\u1ECB m\u1EA5t","Ch\u01A1i Solitaire ng\u01B0\u1EE3c","Ch\u01A1i Solitaire","H\u1EBFt di chuy\u1EC3n, ti\u1EBFp t\u1EE5c?","Ch\u01A1i ki\xEAn nh\u1EABn \xDAc","Ch\u01A1i tr\u1EADn \u0111\u1EA5u Solitaire"],Text.Text_AR=["\u0623\u062D\u0631\u0632 \u0647\u062F\u0641\u0627","\u0645\u0643\u0627\u0641\u0623\u0629 \u0627\u0644\u064A\u0648\u0645\u064A\u0629","\u0628\u062F\u0644\u0629","\u0627\u0635\u062D\u0627\u0628","\u0627\u062F\u0639 \u0627\u0644\u0623\u0635\u062F\u0642\u0627\u0621 \u0625\u0644\u0649 \u0627\u0644\u0646\u0627\u062F\u064A \u0627\u0644\u062E\u0627\u0635 \u0628\u0643","\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0644\u0639\u0628\u0629","\u0627\u0644\u0625\u062D\u0635\u0627\u0621","\u0639\u0627\u062F\u064A","\u062E\u0641\u0641\u062A","\u0645\u062C\u0645\u0648\u0639 \u0627\u0644\u0646\u0642\u0627\u0637","\u0645\u062C\u0645\u0648\u0639 \u0627\u0644\u0623\u064A\u062F\u064A \u0644\u0639\u0628\u062A","\u0645\u062C\u0645\u0648\u0639 \u0627\u0644\u0623\u064A\u062F\u064A \u0627\u0644\u0645\u0643\u062A\u0645\u0644\u0629","\u0645\u062C\u0645\u0648\u0639 \u0627\u0644\u0623\u064A\u062F\u064A \u0641\u0634\u0644\u062A","\u0645\u062C\u0645\u0648\u0639 \u0627\u0644\u062F\u0648\u0631\u0627\u062A","\u0648\u0642\u062A \u0627\u0644\u0644\u0639\u0628","\u0623\u0644\u0639\u0627\u0628 \u0635\u062F\u064A\u0642","\u0627\u0644\u062A\u064A\u062C\u0627\u0646 \u0631\u0628\u062D","\u0627\u0644\u0645\u0648\u0627\u0636\u064A\u0639 \u0627\u0644\u0645\u0645\u0644\u0648\u0643\u0629","\u0627\u0644\u0637\u0648\u0627\u0628\u0642 \u0628\u0637\u0627\u0642\u0629 \u0627\u0644\u0645\u0645\u0644\u0648\u0643\u0629","\u0623\u0633\u0631\u0639 \u0641\u0648\u0632","\u0623\u0628\u0637\u0623 \u0641\u0648\u0632","\u0623\u0642\u0644 \u0627\u0644\u062A\u062D\u0631\u0643\u0627\u062A","\u0645\u0639\u0638\u0645 \u0627\u0644\u062A\u062D\u0631\u0643\u0627\u062A","\u0645\u062A\u0648\u0633\u0637 \u0627\u0644\u0648\u0642\u062A","\u0645\u0639\u062F\u0644 \u0627\u0644\u0641\u0648\u0632","\u0645\u0631\u062A\u0628\u0629","\u0627\u0639\u0627\u062F\u062A\u0647\u0627 \u0647\u0630\u0647 \u0627\u0644\u064A\u062F","\u0645\u0634\u0627\u0631\u0643\u0629 \u0647\u0630\u0647 \u0627\u0644\u064A\u062F","\u0627\u0637\u0644\u0628 \u0627\u0644\u062D\u0644","\u0625\u0639\u0627\u062F\u0629 \u0623\u0633\u0631\u0639 \u0644\u0639\u0628\u0629","\u0625\u0639\u0627\u062F\u0629 \u0623\u0628\u0637\u0623 \u0627\u0644\u0644\u0639\u0628\u0629","\u0625\u0639\u0627\u062F\u0629 \u0623\u0642\u0644 \u0644\u0639\u0628\u0629 \u0627\u0644\u062A\u062D\u0631\u0643\u0627\u062A","\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0644\u0639\u0628\u0629 \u0645\u0639 \u0645\u0639\u0638\u0645 \u0627\u0644\u062A\u062D\u0631\u0643\u0627\u062A","\u0644\u0639\u0628 \u0623\u0635\u062F\u0642\u0627\u0626\u0643 \u0623\u0633\u0631\u0639 \u0644\u0639\u0628\u0629","\u0644\u0639\u0628 \u0623\u0635\u062F\u0642\u0627\u0626\u0643 \u0623\u0628\u0637\u0623 \u0644\u0639\u0628\u0629","\u0644\u0639\u0628 \u0623\u0635\u062F\u0642\u0627\u0626\u0643 \u0623\u0642\u0644 \u0644\u0639\u0628\u0629 \u0627\u0644\u062A\u062D\u0631\u0643\u0627\u062A","\u0644\u0639\u0628 \u0623\u0635\u062F\u0642\u0627\u0626\u0643 \u0623\u0643\u062B\u0631 \u0627\u0644\u062A\u062D\u0631\u0643\u0627\u062A \u0627\u0644\u0644\u0639\u0628\u0629","\u0644\u0639\u0628 \u0647\u0630\u0627 \u0627\u0644\u0635\u062F\u064A\u0642","\u0627\u062F\u0639 \u0627\u0644\u0623\u0635\u062F\u0642\u0627\u0621 \u0644\u0644\u0639\u0628","\u0639\u0631\u0636 \u0625\u062D\u0635\u0627\u0626\u064A\u0627\u062A\u0647\u0645","\u0647\u0644 \u064A\u0645\u0643\u0646\u0643 \u0645\u0633\u0627\u0639\u062F\u062A\u064A \u0641\u064A \u062D\u0644 \u0647\u0630\u0647 \u0627\u0644\u0644\u0639\u0628\u0629\u061F","\u0644\u0639\u0628","\u0633\u064A\u0626 \u0627\u0644\u062D\u0638 \u060C \u0644\u0645\u0627\u0630\u0627 \u0644\u0627 \u062A\u062C\u0631\u0628 \u064A\u062F \u0623\u062E\u0631\u0649\u061F","\u0623\u062D\u0633\u0646\u062A \u060C \u0644\u0645\u0627\u0630\u0627 \u0644\u0627 \u0646\u062D\u0627\u0648\u0644 \u064A\u062F \u0623\u062E\u0631\u0649\u061F","\u0623\u062D\u0633\u0646\u062A \u060C \u062A\u063A\u0644\u0628 \u0639\u0644\u0649 \u0623\u0641\u0636\u0644 \u0645\u0627 \u0644\u062F\u064A\u0643\u0645!","\u0623\u062D\u0633\u0646\u062A \u060C \u0643\u0646\u062A \u062A\u063A\u0644\u0628 \u0639\u0644\u0649 \u0623\u0635\u062F\u0642\u0627\u0626\u0643 \u0623\u0641\u0636\u0644!","\u062A\u0631\u064A\u062F \u0623\u0646 \u062A\u0644\u0639\u0628\u061F","\u0646\u0634\u064A\u0637","\u063A\u064A\u0631 \u0646\u0634\u0637","\u062A\u063A\u064A\u064A\u0631 \u0633\u0637\u062D \u0627\u0644\u0633\u0641\u064A\u0646\u0629","\u063A\u064A\u0631 \u0627\u0644\u062E\u0644\u0641\u064A\u0629","\u0627\u0644\u062D\u0635\u0648\u0644 \u0639\u0644\u0649 \u0627\u0644\u062A\u064A\u062C\u0627\u0646","\u0627\u0646\u062A\u0647\u062A \u0627\u0644\u0644\u0639\u0628\u0629","\u0625\u0646\u0647\u0627\u0621 \u0627\u0644\u0644\u0639\u0628\u0629\u061F","\u062E\u064A\u0627\u0631\u0627\u062A","\u0633\u0645\u0639\u064A","\u062A\u0644\u0645\u064A\u062D\u0627\u062A","\u0627\u0644\u0639\u0627\u0644\u0645\u064A\u0629","\u0639\u0627\u062F\u064A \u0623\u0645 \u0645\u0631\u062A\u0627\u062D\u061F","","","","","","\u0644\u0645 \u064A\u062D\u0627\u0644\u0641\u0643 \u0627\u0644\u062D\u0638 \u060C \u0644\u0645 \u062A\u0641\u0632 \u0628\u0635\u062F\u064A\u0642\u0643 \u0647\u0630\u0647 \u0627\u0644\u0645\u0631\u0629.","\u0627\u0633\u062A\u062E\u062F\u0645 \u0632\u0631 \u0627\u0644\u0633\u0631\u0642\u0629 \u0639\u0646\u062F \u0639\u062F\u0645 \u0648\u062C\u0648\u062F \u0623\u064A \u062A\u062D\u0631\u0643\u0627\u062A.\n\n\n\u0627\u0633\u062A\u062E\u062F\u0645 \u0632\u0631 \u0627\u0644\u062A\u0644\u0645\u064A\u062D \u0639\u0646\u062F \u0627\u0644\u062A\u0639\u0637\u0644.","\u0627\u0636\u063A\u0637 \u0644\u0644\u0625\u063A\u0644\u0627\u0642","\u0627\u0644\u062A\u0627\u0631\u064A\u062E","\u0627\u062D\u0635\u0627\u0626\u064A\u0627\u062A","\u0627\u0644\u0645\u0647\u0627\u0645","\u0639\u0631\u0636 \u0627\u0644\u0645\u0647\u0627\u0645","\u0627\u0631\u0628\u062D \u0644\u0639\u0628\u0629 \u0641\u064A \u0623\u0642\u0644 \u0645\u0646 %1 \u062A\u062D\u0631\u0643\u0627\u062A","\u0627\u0631\u0628\u062D \u0644\u0639\u0628\u0629 \u0641\u064A \u0623\u0642\u0644 \u0645\u0646 %1 \u062F\u0642\u064A\u0642\u0629","\u0627\u0631\u0628\u062D \u0644\u0639\u0628\u0629 \u0628\u0631\u0635\u064A\u062F \u0623\u0643\u0628\u0631 \u0645\u0646 %1","\u0627\u0631\u0628\u062D \u0644\u0639\u0628\u0629 \u062F\u0648\u0646 \u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u062A\u0644\u0645\u064A\u062D\u0627\u062A","\u0641\u0648\u0632 \u0644\u0639\u0628\u0629 \u0648\u0627\u062D\u062F\u0629 \u0627\u0633\u062A\u0631\u062E\u0627\u0621","\u0627\u0631\u0628\u062D 3 \u0645\u0628\u0627\u0631\u064A\u0627\u062A \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644 \u0641\u064A \u062C\u0644\u0633\u0629 \u0648\u0627\u062D\u062F\u0629","\u062A\u063A\u0644\u0628 \u0639\u0644\u0649 \u0648\u0627\u062D\u062F\u0629 \u0645\u0646 \u0623\u0628\u0637\u0623 \u0627\u0644\u0623\u0644\u0639\u0627\u0628 \u0627\u0644\u0633\u0627\u0628\u0642\u0629","\u0625\u0643\u0645\u0627\u0644 \u062C\u0645\u064A\u0639 \u0627\u0644\u0645\u0647\u0627\u0645 \u0627\u0644\u064A\u0648\u0645\u064A\u0629","\u0644\u0639\u0628 \u062B\u0644\u0627\u062B\u064A \u0642\u0645\u0645","\u0627\u0639\u0627\u062F\u0629 \u0627\u0644\u0628\u062F\u0621\u061F","\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0632\u0631 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0644\u0639\u0631\u0636 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629.\n\n\n\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0632\u0631 \u0627\u0644\u0645\u0633\u0627\u0639\u062F\u0629 \u0644\u0645\u0634\u0627\u0647\u062F\u0629 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062C \u0627\u0644\u062A\u0639\u0644\u064A\u0645\u064A.","\u0645\u0624\u0633\u0633\u0629","\u0627\u0644\u0637\u0627\u0648\u0644\u0629","\u0638\u0647\u0631 \u0627\u0644\u0633\u0641\u064A\u0646\u0629","\u0645\u0631\u062D\u0628\u064B\u0627 \u0628\u0643 \u0641\u064A \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062C \u0627\u0644\u062A\u0639\u0644\u064A\u0645\u064A \u060C \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0627\u0644\u0632\u0631 \u0627\u0644\u062A\u0627\u0644\u064A \u0644\u0644\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0649 \u0627\u0644\u0645\u0631\u062D\u0644\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629","\u0642\u0645 \u0628\u0646\u0642\u0644 \u0627\u0644\u0628\u0637\u0627\u0642\u0627\u062A \u0645\u0646 \u0627\u0644\u062C\u062F\u0648\u0644 \u0625\u0644\u0649 \u0627\u0644\u0623\u0633\u0627\u0633 \u060C \u0645\u0639 \u062A\u062C\u0645\u064A\u0639 \u0627\u0644\u0628\u0637\u0627\u0642\u0627\u062A \u0644\u0623\u0639\u0644\u0649","\u064A\u0645\u0643\u0646 \u0646\u0642\u0644 \u0623\u064A \u0628\u0637\u0627\u0642\u0629 \u0639\u0644\u0649 \u0627\u0644\u0637\u0627\u0648\u0644\u0629 \u0623\u0648 \u0633\u0637\u062D \u0627\u0644\u0633\u0641\u064A\u0646\u0629 \u0625\u0644\u0649 \u0628\u0637\u0627\u0642\u0629 \u0623\u062E\u0631\u0649 \u0625\u0630\u0627 \u0643\u0627\u0646\u062A \u0631\u062A\u0628\u062A\u0647\u0627 \u0623\u0642\u0644 \u0648\u062A\u0646\u0627\u0633\u0628\u0647\u0627","\u064A\u0645\u0643\u0646 \u0646\u0642\u0644 \u0627\u0644\u0645\u0644\u0648\u0643 \u0625\u0644\u0649 \u0641\u062A\u062D\u0629 \u0645\u062C\u0627\u0646\u064A\u0629 \u0639\u0644\u0649 \u0627\u0644\u0637\u0627\u0648\u0644\u0629","\u0627\u0642\u0644\u0628 \u0627\u0644\u0628\u0637\u0627\u0642\u0627\u062A \u0639\u0644\u0649 \u0638\u0647\u0631 \u0627\u0644\u0633\u0641\u064A\u0646\u0629 \u062D\u062A\u0649 \u062A\u062C\u062F \u0628\u0637\u0627\u0642\u0629 \u064A\u0645\u0643\u0646 \u0648\u0636\u0639\u0647\u0627 \u0639\u0644\u0649 \u0627\u0644\u0623\u0633\u0627\u0633 \u0623\u0648 \u0627\u0644\u0637\u0627\u0648\u0644\u0629","\u062A\u0643\u062A\u0645\u0644 \u0627\u0644\u0644\u0639\u0628\u0629 \u0639\u0646\u062F\u0645\u0627 \u064A\u062A\u0645 \u062A\u0643\u062F\u064A\u0633 \u062C\u0645\u064A\u0639 \u0627\u0644\u0628\u0637\u0627\u0642\u0627\u062A \u0639\u0644\u0649 \u0627\u0644\u0623\u0633\u0627\u0633","\u0628\u062F\u0621 \u0644\u0639\u0628\u0629 \u062C\u062F\u064A\u062F\u0629","\u0627\u0644\u0639\u0648\u062F\u0629 \u0627\u0644\u0649 \u0627\u0644\u0644\u0639\u0628\u0629","\u0639\u0631\u0636 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062C \u0627\u0644\u062A\u0639\u0644\u064A\u0645\u064A","\u0625\u0646\u0647\u0627\u0621 \u0627\u0644\u0644\u0639\u0628\u0629","\u0625\u0639\u0627\u062F\u0629 \u062A\u0634\u063A\u064A\u0644 \u0627\u0644\u0644\u0639\u0628\u0629","\u0625\u0636\u0627\u0641\u0629 \u0627\u062E\u062A\u0635\u0627\u0631","\u0639\u0631\u0636 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629","\u062A\u0631\u0627\u062C\u0639","\u0627\u0638\u0647\u0631 \u0627\u0644\u062A\u0644\u0645\u064A\u062D","\u0628\u0637\u0627\u0642\u0629 \u0645\u062C\u0627\u0646\u064A\u0629","\u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u0627\u0639\u062F\u0627\u062F\u0627\u062A","\u0635\u062F\u064A\u0642 \u062F\u0639\u0627\u0643 \u0644\u0644\u0639\u0628","\u0627\u0644\u062D\u0635\u0648\u0644 \u0639\u0644\u0649 \u0627\u0644\u0645\u0632\u064A\u062F \u0645\u0646 \u0627\u0644\u0628\u0637\u0627\u0642\u0627\u062A \u0627\u0644\u0645\u062C\u0627\u0646\u064A\u0629","\u0644\u0639\u0628 \u062C\u0648\u0644\u0641 \u0633\u0648\u0644\u064A\u062A\u064A\u0631","\u0644\u0639\u0628 \u062B\u0644\u0627\u062B\u064A \u0642\u0645\u0645","\u062A\u0645 \u0627\u0644\u0641\u0648\u0632 \u0628\u0627\u0644\u0644\u0639\u0628\u0629!","\u0644\u0639\u0628\u0629 \u0641\u0642\u062F\u062A","\u0644\u0639\u0628 \u0633\u0648\u0644\u064A\u062A\u064A\u0631 \u0639\u0643\u0633","\u0644\u0639\u0628 \u0633\u0648\u0644\u064A\u062A\u064A\u0631","\u0627\u0644\u062A\u062D\u0631\u0643\u0627\u062A \u0627\u0633\u062A\u0646\u0641\u062F\u062A \u060C \u062A\u0648\u0627\u0635\u0644\u061F","\u0627\u0644\u0639\u0628 \u0627\u0644\u0635\u0628\u0631 \u0627\u0644\u0623\u0633\u062A\u0631\u0627\u0644\u064A","\u0644\u0639\u0628 \u0633\u0648\u0644\u064A\u062A\u064A\u0631 \u0627\u0644\u0645\u0628\u0627\u0631\u0627\u0629"],Text.Text_ID=["SKOR","Bonus Harian","Setelan","Teman","Undang teman ke klubmu.","Sejarah permainan","Statistik","Normal","Santai","Skor total","Tangan dimainkan","Tangan selesai","Tangan gagal","Total sesi","Waktu dimainkan","Permainan teman","Mahkota","Tema dimiliki","Kartu yang dimiliki","Tercepat","Paling lambat","Paling sedikit","Paling","Waktu rata-rata","Tingkat kemenangan","Pangkat","Putar ulang tangan ini","Bagikan tangan ini","Minta solusi","Putar ulang kemenangan tercepat","Putar ulang kemenangan paling lambat","Putar ulang gerakan paling sedikit","Putar ulang sebagian besar gerakan","Mainkan teman, game kemenangan tercepat","Mainkan teman, permainan menang paling lambat","Mainkan teman, game bergerak paling sedikit","Mainkan teman paling gim bergerak","Mainkan teman ini","Undang teman untuk bermain","Lihat statistik mereka","Bisakah kamu membantuku menyelesaikan game ini?","Bermain","Sial, kenapa tidak coba yang lain?","Bagus sekali, mengapa tidak mencoba tangan lain?","Bagus sekali, kamu mengalahkan yang terbaik!","Bagus sekali, kamu mengalahkan temanmu yang terbaik!","Ingin bermain?","Aktif","Non-aktif","Ubah dek","Ubah tema","Dapatkan mahkota","Di sekeliling","Keluar dari permainan?","Pilihan","Suara","Tip alat","Dunia","Normal atau santai?","","","","","Sial, kamu tidak mengalahkan %1 kali ini.","Bagus sekali, kamu mengalahkan %1.","Gunakan tombol mencuri ketika tidak ada gerakan ke kiri.\n\n\nGunakan tombol petunjuk saat macet.","Ketuk untuk menutup","Sejarah","Stats","Misi","Tampilkan misi","Menangkan game dalam kurang dari %1 gerakan.","Menangkan game dalam waktu kurang dari %1 menit.","Menangkan game dengan skor lebih besar dari %1.","Menangkan game tanpa menggunakan petunjuk.","Mainkan permainan santai.","Menangkan setidaknya 3 pertandingan dalam satu sesi.","Kalahkan salah satu game paling lambat Anda sebelumnya.","Selesaikan semua pencarian harian.","Mainkan tripeaks","Mengulang kembali?","Ketuk tombol menu untuk melihat menu utama.\n\n\nKetuk tombol bantuan untuk menonton tutorial.","Fondasi","Tablo","Kartu","Selamat datang di tutorial, tekan tombol berikutnya untuk menuju ke tahap berikutnya.","Pindahkan kartu dari tablo ke fondasi, susun kartu dari ace ke atas.","Setiap kartu di tablo atau pangkalan dapat dipindahkan ke kartu lain jika peringkatnya satu kurang dan suitnya sama.","Raja bisa dipindahkan ke slot gratis di tablo.","Balikkan kartu di geladak sampai Anda menemukan kartu yang dapat diletakkan di atas fondasi atau tablo.","Permainan selesai ketika semua kartu telah ditumpuk ke fondasi.","Mulai permainan baru","Kembali ke permainan","Tampilkan tutorial","Keluar dari permainan","Mulai ulang game","Tambahkan pintasan","Tampilkan menu utama","Undo","Tampilkan petunjuk","Curi kartu","Ubah pengaturan","%1 mengundang Anda untuk bermain","Dapatkan lebih banyak mencuri","Mainkan golf solitaire","Mainkan tripeaks","Kamu menang!","Kamu kalah","Mainkan solitaire terbalik","Mainkan solitaire","Keluar bergerak, lanjutkan?","Mainkan kesabaran Australia","Mainkan pertandingan solitaire"],Text.Text_TR=["PUAN","G\xFCnl\xFCk bonus","Tak\u0131m elbise","Arkada\u015Flar","Kul\xFCb\xFCne arkada\u015Flar\u0131n\u0131 davet et.","Oyun ge\xE7mi\u015Fi","\u0130statistik","Normal","Rahat","Toplam puan","Eller oynad\u0131","Eller tamamland\u0131","Eller ba\u015Far\u0131s\u0131z","Toplam oturum","Oynanan zaman","Arkada\u015F oyunlar\u0131","Kronlar kazan\u0131ld\u0131","Sahip olunan temalar","Sahip olunan desteler","En h\u0131zl\u0131","En yava\u015F","Fewest","\xC7o\u011Fu","Ortalama s\xFCre","Kazanma oran\u0131","S\u0131ra","Bu eli tekrar oynat","Bu eli payla\u015F","\xC7\xF6z\xFCm isteyin","En h\u0131zl\u0131 kazanc\u0131 tekrar oynat","En yava\u015F kazanc\u0131 tekrarla","En az hamleyi tekrar oynat","\xC7o\u011Fu hamleyi tekrar oynat","Arkada\u015Flar\u0131n\u0131z\u0131 en h\u0131zl\u0131 kazan\u0131n","Arkada\u015Flar\u0131n\u0131z\u0131 en yava\u015F oynay\u0131n","En iyi hamle oyununu oyna","En k\xF6t\xFC hamle oyununu oyna","Bu arkada\u015F\u0131 oyna","Arkada\u015Flar\u0131n\u0131 oynamaya davet et","\u0130statistiklerini g\xF6r\xFCnt\xFCle","Bu oyunu \xE7\xF6zmeme yard\u0131m edebilir misin?","Oyna","\u015Eanss\u0131z, neden ba\u015Fka bir el denemiyorsun?","Aferin, neden ba\u015Fka bir el denemiyorsun?","Aferin, elinden gelenin en iyisini yapt\u0131n!","Aferin, arkada\u015Flar\u0131n\u0131 en iyi d\xF6v\xFCyorsun!","Oynamak istiyorum?","Aktif","Pasif","Kartlar\u0131 de\u011Fi\u015Ftir","Temay\u0131 de\u011Fi\u015Ftir","Kron al\u0131n","Oyun bitti","Oyundan \xE7\u0131k?","Se\xE7enekler","Ses","Ara\xE7 ipu\xE7lar\u0131","D\xFCnya","Normal mi, rahat m\u0131?","","","","","\u015Eanss\u0131z, bu sefer %1 ge\xE7medin.","Aferin, %1 ge\xE7tin.","Hi\xE7bir hareket kalmad\u0131ysa \xE7alma d\xFC\u011Fmesini kullan\u0131n.\n\n\nS\u0131k\u0131\u015Ft\u0131\u011F\u0131nda ipucu d\xFC\u011Fmesini kullan\u0131n.","Kapatmak i\xE7in hafif\xE7e vurun","Tarih","\u0130statistikleri","G\xF6revler","G\xF6revleri g\xF6ster","%1 den daha az hamlede bir oyun kazan.","%1 dakikadan daha k\u0131sa s\xFCrede bir oyun kazan\u0131n.","%1 den daha y\xFCksek bir puan kazan\u0131n.","\u0130pucu kullanmadan bir oyun kazan.","Rahat bir oyun oyna.","Bir seansta en az 3 oyun kazan\u0131n.","\xD6nceki en yava\u015F oyunlar\u0131ndan birini yen.","T\xFCm g\xFCnl\xFCk g\xF6revleri tamamla.","Tripeaks oyna","Tekrar ba\u015Flat?","Ana men\xFCy\xFC g\xF6r\xFCnt\xFClemek i\xE7in men\xFC d\xFC\u011Fmesine dokunun.\n\n\n\xD6\u011Freticiyi izlemek i\xE7in yard\u0131m d\xFC\u011Fmesine dokunun.","Yap\u0131 temeli","Tableau","G\xFCverte","E\u011Fiticiye ho\u015F geldiniz, bir sonraki a\u015Famaya ge\xE7mek i\xE7in bir sonraki d\xFC\u011Fmeye bas\u0131n.","Bir as ile ba\u015Flayan kartlar\u0131 yukar\u0131 do\u011Fru istifleyerek kartlar\u0131 tablodan temele ta\u015F\u0131y\u0131n.","Tableau ve taban kartlar\u0131, de\u011Feri daha d\xFC\u015F\xFCkse ve her iki kart\u0131n da ayn\u0131 t\xFCrden olmas\u0131 durumunda ba\u015Fka bir karta ta\u015F\u0131nabilir.","Kings, tablodaki bo\u015F bir yuvaya ta\u015F\u0131nabilir.","Temel veya tabloya yerle\u015Ftirilebilecek bir kart bulana kadar destedeki kartlar\u0131 \xE7evirin.","T\xFCm kartlar temele istiflendi\u011Finde oyun tamamland\u0131.","Yeni oyuna Ba\u015Fla","Oyuna d\xF6n","\xD6\u011Freticiyi g\xF6ster","Oyundan \xE7\u0131k","Oyunu yeniden ba\u015Flat","K\u0131sayol ekle","Ana men\xFCy\xFC g\xF6ster","Geri alma","\u0130pucu g\xF6ster","Kart\u0131 \xE7al","Ayarlar\u0131 de\u011Fi\u015Ftir","%1 sizi oynamaya davet etti","Daha fazla \xE7alma al","Golf solitaire oyna","Tripeaks oyna","Oyun kazand\u0131!","Oyun kaybedildi","Solitaire tersini oyna","Solitaire oyna","Hamle bitti mi?","Avustralya sabr\u0131n\u0131 oyna","Solitaire ma\xE7\u0131 oyna"],Text.Text_DE=["ERGEBNIS","T\xE4glicher Bonus","Anz\xFCge","Freunde","Lade Freunde in deinen Club ein.","Spielverlauf","Statistiken","Normal","Entspannt","Gesamtpunktzahl","H\xE4nde gespielt","H\xE4nde vollendet","H\xE4nde gescheitert","Sitzungen insgesamt","Zeit gespielt","Freundschaftsspiele","Kronen verdienen","Themes besessen","Decks besessen","Schnellste","Langsamste","Wenigste","Die meisten","Durchschnittliche Zeit","Gewinnrate","Rang","Diese Hand wiederholen","Teile diese Hand","Nach L\xF6sung fragen","Schnellsten Gewinn wiederholen","Langsamsten Gewinn wiederholen","Die wenigsten Z\xFCge wiederholen","Die meisten Z\xFCge wiederholen","Spiele das schnellste Spiel deiner Freunde","Spiele das langsamste Spiel deiner Freunde","Spiele das beste Moves-Spiel deiner Freunde","Spiele das schlechteste Spiel deiner Freunde","Diesen Freund spielen","Freunde zum Spielen einladen","Statistiken anzeigen","Kannst du mir helfen, dieses Spiel zu l\xF6sen?","Abspielen","Pech, warum nicht eine andere Hand versuchen?","Gut gemacht, warum nicht eine andere Hand versuchen?","Gut gemacht, du hast dein Bestes gegeben!","Gut gemacht, du hast deine Freunde am besten geschlagen!","Willst du spielen?","Aktiv","Inaktiv","Deck wechseln","Thema \xE4ndern","Kronen holen","Runde vorbei","Spiel verlassen?","Optionen","Audio","Tooltips","Welt","Normal oder entspannt?","","","","","Leider haben Sie %1 dieses Mal nicht gewonnen.","Gut gemacht, du hast %1 geschlagen.","Verwenden Sie die kostenlose Kartentaste, wenn keine Z\xFCge mehr \xFCbrig sind.\n\n.Verwenden Sie den Hinweisknopf, wenn Sie nicht weiterkommen.","Zum Schlie\xDFen tippen","Geschichte","Statistiken","Quests","Zeige Quests","Gewinne ein Spiel in weniger als %1 Z\xFCgen.","Gewinne ein Spiel in weniger als %1 Minuten.","Gewinne ein Spiel mit einer Punktzahl von mehr als %1.","Gewinne ein Spiel ohne Hinweise.","Spielen Sie ein entspanntes Spiel.","Gewinnen Sie mindestens 3 Spiele in einer Sitzung.","Schlage eines deiner vorherigen langsamsten Spiele.","Beende alle t\xE4glichen Quests.","Tripeaks spielen","Neustart?","Tippen Sie auf die Men\xFCschaltfl\xE4che, um das Hauptmen\xFC anzuzeigen.\n\nTippen Sie auf die Hilfeschaltfl\xE4che, um das Lernprogramm anzuzeigen.","Stiftung","Tableau","Deck","Willkommen zum Tutorial, dr\xFCcke den n\xE4chsten Knopf, um zur n\xE4chsten Stufe zu gelangen.","Bewegen Sie die Karten vom Tableau auf das Fundament und stapeln Sie die Karten vom Ass aufw\xE4rts.","Tableau- und Basiskarten k\xF6nnen auf eine andere Karte verschoben werden, wenn der Wert eine Karte weniger ist und beide Karten denselben Typ haben.","K\xF6nige k\xF6nnen in einen freien Slot auf dem Tableau verschoben werden.","Drehen Sie die Karten um, bis Sie eine Karte finden, die auf das Fundament oder Tableau gelegt werden kann.","Das Spiel ist beendet, wenn alle Karten auf das Fundament gelegt wurden.","Neues Spiel starten","Zur\xFCck zum Spiel","Tutorial anzeigen","Spiel verlassen","Spiel neustarten","Verkn\xFCpfung hinzuf\xFCgen","Hauptmen\xFC anzeigen","R\xFCckg\xE4ngig machen","Hinweis anzeigen","Karte stehlen","Einstellungen \xE4ndern","%1 hat dich zum Spielen eingeladen","Holen Sie sich mehr stiehlt","Golf Solitaire spielen","Tripeaks spielen","Spiel gewonnen!","Spiel verloren","Solitaire Reverse spielen","Solitaire spielen","Keine weiteren Z\xFCge, weitermachen?","Spielen Sie australische Geduld","Solitaire Match spielen"],Text.Text_IT=["PUNTO","Bonus giornaliero","Suits","Amici","Invita amici nel tuo club.","Cronologia di gioco","Statistica","Normale","Rilassato","Punteggio totale","Mani giocate","Mani completate","Mani fallite","Sessioni totali","Tempo giocato","Giochi amici","Corone guadagnate","Temi di propriet\xE0","Decks posseduti","Pi\xF9 veloce","Pi\xF9 lento","Fewest","Maggior parte","Tempo medio","Percentuale di vittorie","Rango","Rigioca questa mano","Condividi questa mano","Richiedi soluzione","Ripeti vittoria pi\xF9 veloce","Ripeti vittoria pi\xF9 lenta","Riproduci meno mosse","Rigioca la maggior parte delle mosse","Gioca al gioco pi\xF9 veloce dei tuoi amici","Gioca al gioco pi\xF9 lento dei tuoi amici","Gioca al miglior gioco dei tuoi amici","Gioca al peggior gioco dei tuoi amici","Gioca a questo amico","Invita gli amici a giocare","Visualizza le loro statistiche","Puoi aiutarmi a risolvere questo gioco?","Giocare","Sfortunato, perch\xE9 non provare un'altra mano?","Ben fatto, perch\xE9 non provare un'altra mano?","Ben fatto, hai battuto il meglio!","Ben fatto, hai battuto meglio i tuoi amici!","Voglio giocare?","Attivo","Inattivo","Cambia mazzo","Cambia tema","Ottieni corone","Gioco finito","Abbandonare il gioco?","Opzioni","Audio","Tooltip","Mondo","Normale o rilassato?","","","","","Sfortunatamente, questa volta non hai vinto %1.","Ben fatto, hai battuto %1.","Usa il pulsante ruba quando non sono rimaste mosse.\n\n\nUsa il pulsante suggerimento quando bloccato.","Tocca per chiudere","Storia","Statistiche","Missioni","Mostra missioni","Vinci una partita in meno di %1 mosse.","Vinci una partita in meno di %1 minuti.","Vinci una partita con un punteggio maggiore di %1.","Vinci una partita senza usare suggerimenti.","Gioca una partita rilassata.","Vinci almeno 3 partite in una sessione.","Batti uno dei tuoi precedenti giochi pi\xF9 lenti.","Completa tutte le missioni quotidiane.","Riproduci tripeaks","Ricomincia?","Tocca il pulsante menu per visualizzare il menu principale.\n\n\nTocca il pulsante guida per guardare il tutorial.","Base","Tableau","Deck","Benvenuto nel tutorial, premi il pulsante successivo per passare alla fase successiva.","Sposta le carte dal tableau alla base, impilando le carte verso l'alto a partire da un asso.","Le carte del tableau e della base possono essere spostate su un'altra carta se il suo valore \xE8 uno in meno ed entrambe le carte hanno lo stesso seme.","I re possono essere spostati in uno slot libero sul tableau.","Gira le carte sul mazzo finch\xE9 non trovi una carta che pu\xF2 essere piazzata sulla base o sul tableau.","Il gioco \xE8 completo quando tutte le carte sono state impilate sulla base.","Inizia una nuova partita","Ritorno al gioco","Mostra tutorial","Abbandonare il gioco","Riavvia gioco","Aggiungi scorciatoia","Mostra menu principale","Disfare","Mostra suggerimento","Ruba carta","Cambia impostazioni","%1 ti ha invitato a giocare","Ottieni pi\xF9 furti","Gioca a golf solitario","Riproduci tripeaks","Gioco vinto!","Game lost","Riproduci solitario inverso","Gioca al solitario","Fuori dalle mosse, continua?","Gioca alla pazienza australiana","Gioca a solitario"],Text.GetString=function(e,t,a,o,n){var r=Social.GetLocale(),s=Text.Text_EN[e];return r.startsWith("es_")?s=Text.Text_ES[e]:r.startsWith("fr_")?s=Text.Text_FR[e]:r.startsWith("pt_")?s=Text.Text_PT[e]:r.startsWith("vi_")?s=Text.Text_VI[e]:r.startsWith("ar_")?s=Text.Text_AR[e]:r.startsWith("id_")?s=Text.Text_ID[e]:r.startsWith("tr_")?s=Text.Text_TR[e]:r.startsWith("de_")?s=Text.Text_DE[e]:r.startsWith("it_")&&(s=Text.Text_IT[e]),void 0!==t&&s.includes("%1")&&(s=s.replace("%1",t)),void 0!==a&&s.includes("%2")&&(s=s.replace("%2",a)),void 0!==o&&s.includes("%3")&&(s=s.replace("%3",o)),void 0!==n&&s.includes("%4")&&(s=s.replace("%4",n)),s},"use strict";var Ads={};Ads.PreloadAds=function(e){Social.PreloadAds(e,"1761205660680778_1761211870680157","1761205660680778_1761212334013444")},Ads.ShowVideoAd=function(e){FBInstant.ext.gameEvent({type:"gameplayStop"}),Ads.ShowTimer(!0),Ads.ResetCrownTimer(),Social.ShowVideoAd(function(t,a){Ads.PreloadAds(!0),Ads.ShowTimer(!1),t?e!==void 0&&e(!0):(Ads.ShowAdsError(a),e!==void 0&&e(!1,a)),FBInstant.ext.gameEvent({type:"gameplayStart"})})},Ads.ShowInterstitialAd=function(e){Ads.ShowTimer(!0),Social.ShowInterstitialAd(function(t,a){Ads.ShowTimer(!1),Ads.PreloadAds(!1),t?e!==void 0&&e(!0):e!==void 0&&e(!1,a)})},Ads.ShowAdsError=function(){},Ads.ShowAdsUnavailable=function(){};var custom_ad_done=null;Ads.ShowCustomAd=function(e,t){e?(Social.LogEvent("Ad custom shown",1),b5.Utils.findObjectFromPath("gamescene.advert").playTimeline("show"),custom_ad_done=t):(!window.archon.muted&&b5.app.findResource("tap","sound").play(),b5.Utils.findObjectFromPath("gamescene.advert")._av=!1,custom_ad_done&&custom_ad_done(!0),custom_ad_done=null)},Ads.UpdateCrownTimer=function(){void 0===Ads.timer&&(Ads.dialog=b5.Utils.findObjectFromPath("gamescene.buycrowns"),Ads.ResetCrownTimer());var e=0|Ads.timer;return(Ads.timer-=b5.app.dt,0>=Ads.timer)?(Ads.timer=0,Ads.dialog.findActor("video").touchable=!0,void(Ads.dialog.findActor("timer")._text="Collect Now")):void(Ads.dialog.findActor("video").touchable=!1,e!=(0|Ads.timer)&&(Ads.dialog.findActor("timer")._text="In "+(0|Ads.timer)+"s"))},Ads.ResetCrownTimer=function(){Ads.timer=10},Ads.ShowTimer=function(e){b5.Utils.findObjectFromPath("gamescene.adwaiting")._av=e},"use_strict";function Photo(){this.bitmap=void 0}function PhotoCache(){this.photos={}}PhotoCache.prototype.Add=function(e,t,a,o){if(null!==t){if(void 0!==this.photos[e])return void(void 0!==a&&a(this.photos[e].bitmap,o));var n=new Photo;this.photos[e]=n,n.bitmap=new b5.Bitmap("photo"+e,t,!1,function(e,t){void 0!==a&&(!t&&(e=null),a(e,o))}),n.bitmap.image.crossOrigin="anonymous",n.bitmap.load()}},PhotoCache.prototype.Find=function(e){return this.photos[e]},"use strict";function ShowPaused(){}function PlayFriendPressed(e){var t=window.archon;t.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),Social.LogEvent("New challenge game",1),Social.ChooseContext(null,function(e){if(e){var a=Social.GetContext().getID();t.current_context_id=a,t.scores[a]===void 0&&(t.scores[a]=0),Social.LogEvent("New challenge game success",1),t.NewGame()}})}function ToggleAudioPressed(){archon.muted||b5.app.findResource("tap","sound").play(),window.archon.muted=!window.archon.muted,UpdateSettings()}function ToggleTooltipsPressed(){archon.muted||b5.app.findResource("tap","sound").play(),window.archon.tooltips=!window.archon.tooltips,UpdateSettings()}function ToggleSuitsPressed(){archon.muted||b5.app.findResource("tap","sound").play(),window.archon.suitfaces=!window.archon.suitfaces,UpdateSettings()}function UpdateSettings(){b5.Utils.findObjectFromPath("gamescene.settings.dialog.audiobutton")._atlas=window.archon.muted?"off":"on",b5.Utils.findObjectFromPath("gamescene.settings.dialog.tooltipsbutton")._atlas=window.archon.tooltips?"on":"off",b5.Utils.findObjectFromPath("gamescene.settings.dialog.suitsbutton")._atlas=window.archon.suitfaces?"on":"off"}function PlayMatchWithFriend(){}function AskForHelpPressed(e){var t=window.archon;t.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click");var a=e.match,o={action:"challenge",match:a,from_id:Social.GetPlayerID(),from_name:Social.GetPlayerName()};Social.ShareHelpInvite("share_help",a.seed,Text.GetString(Text.CAN_YOU_SOLVE),o),Social.LogEvent("Asked for help",1)}function ShareSolutionPressed(e){var t=window.archon;t.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click");var a=e.match,o={action:"challenge",match:a,from_id:Social.GetPlayerID(),from_name:Social.GetPlayerName()};Social.ShareChallengeInvite("share_generic",a.seed,a.score,a.moves,a.time,o),Social.LogEvent("Shared solution",1)}function SharePressed(e){var t=window.archon;t.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click");var a={action:"invite",stats:t.stats,from_id:Social.GetPlayerID(),from_name:Social.GetPlayerName()};Social.ShareInvite("share",Text.GetString(Text.INVITE),a),Social.LogEvent("Sharing invite",1)}function PlayFriendPressed2(e,t){if(e.choose)return void PlayFriendPressed(e);var a=window.archon;a.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),Social.LogEvent("Play from leaderboard",1);var o=Lbds.GetFriendEntry(t);console.log(o),Social.CreateContext(o.getPlayer().getID(),function(e,t){e&&(a.current_context_id=t,a.scores[t]===void 0&&(a.scores[t]=0),Social.LogEvent("Play from leaderboard success",1),a.NewGame(),a.stats.total_friend_games++,ShowLeaderboard(!1))})}function HomePressed(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),b5.Utils.findObjectFromPath("gamescene.roundover")._av=!1}function LeadersPressed(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),ShowLeaderboard(!0)}function ShowMainMenu(e,t,a){var o=window.archon;o.playing=!1,b5.Utils.findObjectFromPath("gamescene.board")._av=!1,b5.Utils.findObjectFromPath("gamescene.overlay")._av=!1,e&&b5.Utils.findObjectFromPath(mainmenu_path).playTimeline("show"),Lbds.UpdateChallengeEntries(function(){}),o.history.ChangePage(0),o.stats.UpdateUI(),o.UpdateUI(),o.pop_quest&&ShowQuestsPressed(),b5.Utils.findObjectFromPath(mainmenu_path+".back")._av=a}function HideMainMenu(){window.archon.playing=!0,b5.Utils.findObjectFromPath("gamescene.board")._av=!0,b5.Utils.findObjectFromPath("gamescene.overlay")._av=!0,b5.Utils.findObjectFromPath(mainmenu_path)._av=!1,FBInstant.ext.gameEvent({type:"gameplayStart"})}function ChangeHistoryPagePressed(e,t){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),window.archon.history.ChangePage(t)}function NextRoundPressed(){var e=window.archon;e.muted||b5.app.findResource("tap","sound").play(),b5.Utils.findObjectFromPath("gamescene.roundover")._av=!1,window.archon.NewGame()}function StartGamePressed(e){window.archon.muted||b5.app.findResource("tap","sound").play(),window.archon.world.deck.relaxed=e,window.archon.NewGame(),e?Social.LogEvent("New relaxed game",1):Social.LogEvent("New normal game",1)}function ShowNewGamePressed(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),b5.Utils.findObjectFromPath("gamescene.newgame").playTimeline("show"),Social.LogEvent("New game pressed",1)}function ReplayMatchPressed(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click");var t={solo:!0,from_id:Social.GetPlayerID(),from_name:Social.GetPlayerName(),match:e.match,game_type:"replay_match"};window.archon.SetTarget(t),window.archon.NewGame(e.match),Social.LogEvent("Replay match",1)}function ReplayGamePressed(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),Social.LogEvent("ReplayGamePressed",1);var t={solo:!0,from_id:Social.GetPlayerID(),from_name:Social.GetPlayerName(),match:e.match,game_type:e.game_type};window.archon.SetTarget(t),window.archon.NewGame(e.match)}function PlayGameFromFriendStatsPressed(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),Social.LogEvent("PlayGameFromFriendStatsPressed",1),Social.CreateContext(e.from_id,function(t,a){t&&(archon.current_context_id=a,archon.scores[a]===void 0&&(archon.scores[a]=0),window.archon.stats.total_friend_games++,Social.LogEvent("PlayGameFromFriendStatsPressed success",1));var o={from_id:e.from_id,from_name:e.from_name,match:e.match,game_type:e.game_type};window.archon.SetTarget(o),window.archon.NewGame(e.match)})}function ShowFriendStats(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),Social.LogEvent("ShowFriendStats",1),window.archon.stats.ShowFriendStats(e.friend_stats,e.friend_id,e.friend_photo,e.friend_name)}function CloseFriendStats(){window.archon.muted||b5.app.findResource("tap","sound").play(),b5.Utils.findObjectFromPath(mainmenu_path+".friendstats")._av=!1}function ShowRoundOverConfirm(){b5.Utils.findObjectFromPath("gamescene.quit").playTimeline("show")}function HideRoundOver(){archon.muted||b5.app.findResource("tap","sound").play(),ShowMainMenu(!0,void 0,!1),b5.Utils.findObjectFromPath("gamescene.roundover")._av=!1,Social.LogEvent("Mein menu round over",1),window.archon.TryRunAd()}var HideMaimMenu=!1;function ShowBacksScreen(e,t){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),HideMaimMenu=t,HideMaimMenu&&(b5.Utils.findObjectFromPath(mainmenu_path)._av=!1),b5.Utils.findObjectFromPath("gamescene.backs").playTimeline("show"),Skins.UpdateCardBacks(),window.archon.playing&&FBInstant.ext.gameEvent({type:"gameplayStop"})}function HideBacksScreen(){window.archon.muted||b5.app.findResource("tap","sound").play(),HideMaimMenu&&(b5.Utils.findObjectFromPath(mainmenu_path)._av=!0),b5.Utils.findObjectFromPath("gamescene.backs")._av=!1,window.archon.playing&&FBInstant.ext.gameEvent({type:"gameplayStart"})}function ShowThemesScreen(e,t){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),HideMaimMenu=t,HideMaimMenu&&(b5.Utils.findObjectFromPath(mainmenu_path)._av=!1),b5.Utils.findObjectFromPath("gamescene.themes").playTimeline("show"),window.archon.playing&&FBInstant.ext.gameEvent({type:"gameplayStop"})}function HideThemesScreen(){window.archon.muted||b5.app.findResource("tap","sound").play(),HideMaimMenu&&(b5.Utils.findObjectFromPath(mainmenu_path)._av=!0),b5.Utils.findObjectFromPath("gamescene.themes")._av=!1,window.archon.playing&&FBInstant.ext.gameEvent({type:"gameplayStart"})}function QuitGame(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e?(Social.LogEvent("Quit Game Success",1),window.archon.world.deck.EndRound(!1)):Social.LogEvent("Quit Game Cancelled",1),b5.Utils.findObjectFromPath("gamescene.quit")._av=!1}function ShowRestartConfirm(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),b5.Utils.findObjectFromPath("gamescene.restart").playTimeline("show"),FBInstant.ext.gameEvent({type:"gameplayStop"})}function RestartGame(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e?(Social.LogEvent("Restart Game Success",1),window.archon.RestartGame()):FBInstant.ext.gameEvent({type:"gameplayStart"}),b5.Utils.findObjectFromPath("gamescene.restart")._av=!1}function ShowSettingsScreen(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),b5.Utils.findObjectFromPath("gamescene.settings").playTimeline("show"),Social.LogEvent("Shown Settings",1),UpdateSettings()}function HideSettingsScreen(){window.archon.muted||b5.app.findResource("tap","sound").play(),b5.Utils.findObjectFromPath("gamescene.settings")._av=!1,window.archon.SaveGame()}function ChangeCardBack(e,t){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),Social.LogEvent("Card back changed "+t,1),Skins.SetCardBack(t)}function BuyCardBack(e,t){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),Skins.BuyCardBack(t),Social.LogEvent("Card back bought "+t,1)}function ChangeTheme(e,t){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),Skins.SetTheme(t),Social.LogEvent("Theme changed "+t,1)}function BuyTheme(e,t){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),Skins.BuyTheme(t),Social.LogEvent("Theme bought "+t,1)}function BuyCrowns(e,t){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),Ads.ShowVideoAd(function(a){a&&(t&&(e.parent._av=!1),Skins.AddCrowns(),Social.LogEvent("Bought crowns",1),window.archon.ResetAds())})}function BuyCrowns2(e,t){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),window.archon.BuyProduct(function(){t&&(e.parent._av=!1)})}var current_tooltip_actor=null;function ShowToolTip(e,t){var a=window.archon;if(a.tooltips){var o=a.tooltips_actor;current_tooltip_actor==e||(current_tooltip_actor=e,o.playTimeline("show"),a.tooltips_text_actor._text=Text.GetString(t))}}function HideToolTip(){}function ToggleMatchEntrySize(){}function UpdateMatchEntrySize(e){0<e.scale_timer&&(e.scale_timer-=b5.app.dt,0>=e.scale_timer&&(e._scale=1))}function SettingsPressed(e,t){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),t?b5.Utils.findObjectFromPath("gamescene.pausemenu").playTimeline("show"):b5.Utils.findObjectFromPath("gamescene.pausemenu")._av=!1}function PauseResumeAudio(e){var t=window.archon}function ResetGame(){window.archon.RestartRound()}function ShowFriendLeaders(){var e=b5.Utils.findObjectFromPath(mainmenu_path+".leaders.top.friendtab");e.fill_style="rgb(0,0,128,255)",e=b5.Utils.findObjectFromPath(mainmenu_path+".leaders.top.globaltab"),e.fill_style="rgb(255,69,0)";var t=b5.Utils.findObjectFromPath(mainmenu_path+".leaders.top.friends");t.fill_style="rgb(255,255,255)",t.cache=!0,t=b5.Utils.findObjectFromPath(mainmenu_path+".leaders.top.global"),t.fill_style="rgb(230,230,230)",t.cache=!0,Lbds.CurrentLeaderboardScope="friends",Lbds.UpdateChallengeEntries(),Social.LogEvent("Show friend leaders",1)}function ShowGlobalLeaders(){var e=b5.Utils.findObjectFromPath(mainmenu_path+".leaders.top.friendtab");e.fill_style="rgb(255,69,0)",e=b5.Utils.findObjectFromPath(mainmenu_path+".leaders.top.globaltab"),e.fill_style="rgb(0,0,128,255)";var t=b5.Utils.findObjectFromPath(mainmenu_path+".leaders.top.friends");t.fill_style="rgb(230,230,230)",t.cache=!0,t=b5.Utils.findObjectFromPath(mainmenu_path+".leaders.top.global"),t.fill_style="rgb(255,255,255)",t.cache=!0,Lbds.CurrentLeaderboardScope="global",Lbds.UpdateChallengeEntries(),Social.LogEvent("Show global leaders",1)}function ShowHelp(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),Tutorial.Start(),FBInstant.ext.gameEvent({type:"gameplayStop"})}function HideHelp(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),Tutorial.Close(),FBInstant.ext.gameEvent({type:"gameplayStart"})}function Cheat(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),window.archon.world.Cheat()}function AddCheats(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),window.archon.world.AddCheats()}function Hint(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),window.archon.world.ShowHint()}function ShowStatsPressed(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),b5.Utils.findObjectFromPath(mainmenu_path+".stats").playTimeline("show"),Social.LogEvent("Shown Stats",1)}function HideStatsPressed(){window.archon.muted||b5.app.findResource("tap","sound").play(),b5.Utils.findObjectFromPath(mainmenu_path+".stats")._av=!1}function ShowHistoryPressed(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),b5.Utils.findObjectFromPath(mainmenu_path+".history").playTimeline("show")}function HideHistoryPressed(){window.archon.muted||b5.app.findResource("tap","sound").play(),b5.Utils.findObjectFromPath(mainmenu_path+".history")._av=!1}function ShowQuestsPressed(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),b5.Utils.findObjectFromPath(mainmenu_path+".quests").playTimeline("show"),Quests.UpdateUI(),Social.LogEvent("Shown Quests",1)}function HideQuestsPressed(){window.archon.muted||b5.app.findResource("tap","sound").play(),b5.Utils.findObjectFromPath(mainmenu_path+".quests")._av=!1}function PlayOtherGame(e,t){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),0===t?(Social.LogEvent("Play Tri Peaks Presssed",1),Social.SwitchGame("539034396826281",null,function(){Social.LogEvent("Played Tri Peaks",1)})):1===t?(Social.LogEvent("Play Golf Presssed",1),Social.SwitchGame("1527089787439676",null,function(){Social.LogEvent("Played Golf",1)})):2===t?(Social.LogEvent("Play Solitaire Presssed",1),Social.SwitchGame("479253059602265",null,function(){Social.LogEvent("Played Solitaire",1)})):3===t?(Social.LogEvent("Play Solitaire Reverse Presssed",1),Social.SwitchGame("611966129553482",null,function(){Social.LogEvent("Played Reverse",1)})):4===t&&(Social.LogEvent("Play Solitaire Match",1),Social.SwitchGame("545749096020675",null,function(){Social.LogEvent("Played Solitaire Match",1)}))}function MainMenuPressed(){FBInstant.ext.gameEvent({type:"gameplayStop"}),window.archon.muted||b5.app.findResource("tap","sound").play(),ShowMainMenu(!0,this,!0),Social.LogEvent("Mein menu pressed",1),window.archon.TryShortcut()}function AddShortcutPressed(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),window.archon.round=0,window.archon.TryShortcut()}function AddPlayerPressed(e){var t=window.archon;t.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),Social.LogEvent("Add player in-game",1),Social.ChooseContext(null,function(e){if(e){var a=Social.GetContext().getID();t.current_context_id=a,Social.LogEvent("Add player in-game success",1)}})}function ResetPack(e){console.log(">>>> ResetPack");var t=window.archon;t.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),Ads.ShowVideoAd(function(e){console.log(">>>> ResetPack "+e),e&&(window.archon.world.ResetPack(),Social.LogEvent("Pack reset",1),window.archon.ResetAds())})}function PauseAudio(){}function ResumeAudio(){}var Lbds={},last_focus;Lbds.LeaderboardNames=["Kings and Queens"],Lbds.ContextLeaderboardName="Friends",Lbds.CurrentLeaderboard=0,Lbds.CurrentLeaderboardScope="friends",Lbds.LeaderboardEntries={},Lbds.LeaderboardScores={},Lbds.LeaderboardCheckTimes={},Lbds.UILeaderboard=[],Lbds.UpdateGlobalLeaderboardScore=function(e,t,a){window.archon;Social.SetLeaderboardScore(Lbds.LeaderboardNames[0],e,""+t,function(e,t){a!==void 0&&a(e,t)})},Lbds.UpdateSocialLeaderboardScore=function(e,t,a,o){var n=window.archon;"solo"===n.current_context_id||Social.SetLeaderboardScore(Lbds.ContextLeaderboardName+"."+e,t,""+a,function(e,t){o!==void 0&&o(e,t)})},Lbds.GetPlayerRank=function(e){var t=function(e){var t=Lbds.CurrentLeaderboardScope+Lbds.CurrentLeaderboard;if(Lbds.LeaderboardScores[t]=e,e){var a=mainmenu_path+".header";b5.Utils.findObjectFromPath(a+".bestscore")._text=e.getScore(),b5.Utils.findObjectFromPath(a+".rank")._text=Text.GetString(Text.RANK)+":"+e.getRank()}};e===void 0?Social.GetLeaderboardScore(Lbds.LeaderboardNames[Lbds.CurrentLeaderboard],function(e){t(e)}):t(e)},Lbds.CreateTestLeaderboards=function(e,a){function o(o){this.index=o,this.getPlayer=function(){return{index:o,getName:function(){return this.index===a?"player":"name"+this.index},getPhoto:function(){return"http://www.drmop.com/wp-content/uploads/2017/09/Icon_512x512.jpg"}}},this.getRank=function(){return this.index+1},this.getScore=function(){return 10*(e-this.index)}}for(var n=[],r=0;r<e;r++)n[r]=new o(r);return n},Lbds.UpdateChallengeEntries=function(e){for(var a=window.archon,o=0,t;15>o;o++)t=b5.Utils.findObjectFromPath(mainmenu_path+".leaders.listbox.entry"+(o+1)+".play"),t.choose=!0;var n=function(a){a===void 0&&(a=[]);for(var o="global"===Lbds.CurrentLeaderboardScope,n=0,r=0,t;15>r;r++)if(t=b5.Utils.findObjectFromPath(mainmenu_path+".leaders.listbox.entry"+(r+1)),t._av=!0,r<a.length){var s=a[r],i=s.getPlayer().getPhoto();t.visible=!0,t.findActor("name")._text=s.getPlayer().getName(),t.findActor("score")._text=s.getScore();var l=t.findActor("play");l._av=!o&&s.getPlayer().getID()!==Social.GetPlayerID(),l.choose=!1;var d=t.findActor("play1");d._av=!0,d.friend_stats=s.getExtraData(),d.friend_id=s.getPlayer().getID(),d.friend_photo=i,d.friend_name=s.getPlayer().getName();var c=t.findActor("play2");c._av=!1,t.findActor("photo")._av=!0,null!==i&&Social.PhotoCache.Add(s.getPlayer().getID(),i,function(e,t){t._bitmap=e},t.findActor("photo")),n++}else if(r<a.length+1){t.findActor("photo")._av=!1,t.findActor("name")._text=" ",t.findActor("score")._text=" ";var l=t.findActor("play");l._av=!1;var d=t.findActor("play1");d._av=!1;var c=t.findActor("play2");c._av=!0}else t.findActor("name")._text=" ",t.findActor("score")._text=" ",t.findActor("photo")._av=!1,t._av=!1;e!==void 0&&e(a)},r=Lbds.CurrentLeaderboardScope+Lbds.CurrentLeaderboard,s=Lbds.LeaderboardCheckTimes[r];s===void 0&&(s=0);var i=Date.now()-s;return 30000>i?(Lbds.GetPlayerRank(Lbds.LeaderboardScores[r]),n(Lbds.LeaderboardEntries[r]),void(void 0!==e&&e(Lbds.LeaderboardEntries[r]))):void(Lbds.LeaderboardCheckTimes[r]=Date.now(),Lbds.GetPlayerRank(),"global"===Lbds.CurrentLeaderboardScope?(Social.LogEvent("Showing global lbd "+Lbds.CurrentLeaderboard,1),Social.GetLeaderboardEntries(Lbds.LeaderboardNames[Lbds.CurrentLeaderboard],0,15,function(e){e&&(console.log("Global"),console.log(e),Lbds.LeaderboardEntries[r]=e.slice(),n(Lbds.LeaderboardEntries[r]))})):(Social.LogEvent("Showing friend lbd "+Lbds.CurrentLeaderboard,1),Social.GetConnectedLeaderboardEntries(Lbds.LeaderboardNames[Lbds.CurrentLeaderboard],0,15,function(e){e&&(console.log("Friend"),console.log(e),Lbds.LeaderboardEntries[r]=e.slice(),n(Lbds.LeaderboardEntries[r]))})))},Lbds.SetLeaderboardEntries=function(e){if(e){for(var a="friends"===Lbds.CurrentLeaderboardScope,o=0,n=0,t;20>n;n++)if(t=b5.Utils.findObjectFromPath("leaderboard.listbox.entry"+(n+1)),n<e.length){var r=e[n];t.visible=!0,t.findActor("rank")._text=AddOrdinalSuffice(r.getRank()),t.findActor("name")._text=r.getPlayer().getName(),t.findActor("score")._text=r.getScore(),t.findActor("play")._av=!!a&&r.getPlayer().getID()!==Social.GetPlayerID();var s=r.getExtraData(),i=r.getPlayer().getPhoto();null===i?t.findActor("photo")._atlas="round":Social.PhotoCache.Add(r.getPlayer().getID(),i,function(e,t){t._bitmap=e},t.findActor("photo")),o++}else t.visible=!1;var l=b5.Utils.findObjectFromPath("leaderboard.listbox"),d=90*(o+2);l.scroll_range=[0,-d/2,0,d/2]}},Lbds.GetFriendEntry=function(e){var t="friends"+Lbds.CurrentLeaderboard;return Lbds.LeaderboardEntries[t][e]},Lbds.GetLeaderboard=function(){var e=window.archon,t=Lbds.CurrentLeaderboardScope+Lbds.CurrentLeaderboard,a=Lbds.LeaderboardCheckTimes[t];a===void 0&&(a=0);var o=Date.now()-a;return 5000>o?(Lbds.GetPlayerRank(Lbds.LeaderboardScores[t]),void Lbds.SetLeaderboardEntries(Lbds.LeaderboardEntries[t])):void(Lbds.LeaderboardCheckTimes[t]=Date.now(),Lbds.GetPlayerRank(),"global"===Lbds.CurrentLeaderboardScope?(Social.LogEvent("Showing global lbd "+Lbds.CurrentLeaderboard,1),Social.GetLeaderboardEntries(Lbds.LeaderboardNames[Lbds.CurrentLeaderboard],0,20,function(e){null!==e&&(Lbds.LeaderboardEntries[t]=e.slice(),Lbds.SetLeaderboardEntries(Lbds.LeaderboardEntries[t]))})):(Social.LogEvent("Showing friend lbd "+Lbds.CurrentLeaderboard,1),Social.GetConnectedLeaderboardEntries(Lbds.LeaderboardNames[Lbds.CurrentLeaderboard],0,20,function(e){null!==e&&(Lbds.LeaderboardEntries[t]=e.slice(),Lbds.SetLeaderboardEntries(Lbds.LeaderboardEntries[t]))})))},Lbds.HideContextLeaderboard=function(){b5.Utils.findObjectFromPath("gamescene.gameover.leaders")._av=!1;for(var e=0;4>e;e++)b5.Utils.findObjectFromPath("gamescene.gameover.leaders.l"+(e+1))._av=!1},Lbds.GetContextLeaderboard=function(e){var t=null,a=Social.GetContext();if(null===a)return void Lbds.HideContextLeaderboard();if(t=a.getID(),null===t)return void Lbds.HideContextLeaderboard();b5.Utils.findObjectFromPath("gamescene.gameover.leaders")._av=!0;var o=Lbds.ContextLeaderboardName+"."+t,n=Lbds.LeaderboardCheckTimes[o];void 0===n&&(n=0);var r=Date.now()-n;void 0===e&&30000>r||(Lbds.LeaderboardCheckTimes[o]=Date.now(),Social.GetConnectedLeaderboardEntries(o,0,5,function(e){if(null!=e){Lbds.LeaderboardEntries[o]=e.slice(),Lbds.UILeaderboard=[];for(var a=0,t;a<e.length;a++)t=e[a],Lbds.UILeaderboard.push({id:t.getPlayer().getID(),name:t.getPlayer().getName(),score:t.getScore(),photo:t.getPlayer().getPhoto(),extra:t.getExtraData()});Lbds.UpdateLeaderboardUI()}}))},Lbds.IsScoreBestInContext=function(e){var a=Lbds.UILeaderboard;if(0===a.length)return!1;for(var o=0;o<a.length;o++)if(e>a[o].score)return!0;return!1},Lbds.UpdateLeaderboardUI=function(){var e=Lbds.UILeaderboard;if(0===e.length){for(var a=0,t;4>a;a++)t=b5.Utils.findObjectFromPath("gamescene.gameover.leaders.l"+(a+1)),t._av=!1;return}for(var a=0;a<e.length;a++)for(var o=a+1;o<e.length;o++)if(e[a].score<e[o].score){var n=e[a];e[a]=e[o],e[o]=n}for(var a=0,t;4>a;a++)if(t=b5.Utils.findObjectFromPath("gamescene.gameover.leaders.l"+(a+1)),a<e.length){var r=e[a],s=r.extra;null===s&&(s=0),t._av=!0,t.findActor("name")._text=r.name,t.findActor("score")._text=r.score,void 0===r.photo||null===r.photo?actor.findActor("photo")._atlas="round":Social.PhotoCache.Add(r.id,r.photo,function(e,t){t._bitmap=e},t.findActor("photo"))}else t._av=!1};function UpdateLeaderboardBackground(){}function ChangeLeaderboardScope(e){archon.muted||b5.app.findResource("tap","sound").play();var t="leaderboard";Lbds.CurrentLeaderboardScope=e;var a=b5.Utils.findObjectFromPath(t+".global_button"),o=b5.Utils.findObjectFromPath(t+".friends_button");"global"===e?(a._atlas="lbd_tab",o._atlas="lbd_tab2g"):(a._atlas="lbd_tabg",o._atlas="lbd_tab2"),Lbds.GetLeaderboard()}function ChangeLeaderboard(){archon.muted||b5.app.findResource("tap","sound").play(),Lbds.GetLeaderboard()}function ShowLeaderboard(e){var t=window.archon;t.muted||b5.app.findResource("tap","sound").play(),e?(Lbds.GetLeaderboard(),last_focus=b5.app.focus_scene,t.gamescene._av=!1,t.leaderboardscene._av=!0,b5.app.focus_scene=t.leaderboardscene):b5.app.focus_scene===t.leaderboardscene&&(t.gamescene._av=!0,t.leaderboardscene._av=!1,b5.app.focus_scene=last_focus)}var Daily={};Daily.DailyBonus=[0,50,50,50,50,50,50,50],Daily.ShowDaily=function(){var e=window.archon,t=Date.now(),a=t-e.last_collection_time;return!(12>a/3600000)&&(Social.LogEvent("Collected day "+e.days_played,1),e.days_played++,7<e.days_played&&(e.days_played=7),b5.Utils.findObjectFromPath("gamescene.daily").playTimeline("show"),b5.Utils.findObjectFromPath("gamescene.daily.dialog.crowns")._text="x"+Daily.DailyBonus[e.days_played],e.last_collection_time=Date.now(),b5.Utils.RunafterTime(2,function(){e.crowns+=Daily.DailyBonus[e.days_played],e.stats.crowns_earnt+=Daily.DailyBonus[e.days_played],e.SaveGame(),e.UpdateUI(),Skins.UpdateCrownsUI()}),!0)},Daily.UpdateLocales=function(){b5.Utils.findObjectFromPath("gamescene.daily.dialog.title")._text=Text.GetString(Text.DAILYBONUS)},"use_strict";function Player(e,t,a,o){this.id=e,this.name=t,this.photo_url=a,this.last_context=o}function PlayersCache(){this.players={}}PlayersCache.prototype.Add=function(e,t,a,o){this.players[e]=new Player(e,t,a,o)},PlayersCache.prototype.Get=function(e){return this.players[e]},PlayersCache.prototype.Save=function(){var e={players:this.players};Social.SetPlayerData(e)},PlayersCache.prototype.GetCount=function(e){var t=0,a=Social.GetPlayerID();for(var o in this.players)if(e&&o===a);else t++;return t},PlayersCache.prototype.GetPlayers=function(e){var t=[],a=Social.GetPlayerID();for(var o in this.players)if(e&&o===a);else t.push(this.players[o]);return t},PlayersCache.prototype.Load=function(){},"use_strict";var Social={};Social.EntryData=void 0,Social.Instants=void 0,Social.PhotoCache=void 0,Social.PlayersCache=void 0,Social.LastAdPreloadError=null,Social.ConnectedPlayers={},Social.ContextPlayers={},Social.Init=function(e){Social.Instants=b5.Instants.instance,Social.PhotoCache=new PhotoCache,Social.PlayersCache=new PlayersCache;var t=Social.Instants;t.Init(),t.CreateScreenshotCache(800),Social.PhotoCache.Add(t.GetPlayerID(),t.GetPlayerPhotoURL(),function(e){Social.PlayerBitmap=e}),Social.GetConnectedPlayers(function(){null===Social.GetContext()?(Social.PostInit(),e!==void 0&&e()):(Social.GetContextPlayers(),Social.PostInit(),e!==void 0&&e())})},Social.GetLocale=function(){var e=Social.Instants;return e.GetLocale()},Social.PostInit=function(){var e=Social.Instants;e.onPaused=function(){window.archon.paused||ShowPaused===void 0||ShowPaused(!0)}},Social.CreateShortcut=function(e){var t=Social.Instants;t.CreateShortcut(function(a){t.LogEvent("Shortcut Created "+a,1),e!==void 0&&e(a)})},Social.HandleEntryData=function(){var e=window.archon,t=Social.Instants,a=t.GetEntryPointData();return console.log(">>>>>>>> Entry Point Data"),console.log(a),null!==a&&(a=a.myReplayData),Social.EntryData=a,null!==a&&"challenge"===a.action&&(window.archon.stats.total_friend_games++,window.archon.SetTarget(a),window.archon.NewGame(a.match),!0)},Social.CreateLeaderboardScreenshot=function(e){return null;var t=b5.app.findResource("group_msg","bitmap"),a=b5.app.display,o=a.createCacheWithSize(t.image.width,t.image.height),n=o.height/o.height/b5.app.pixel_ratio},Social.CreateDuoResultScreenshot=function(e){return null;var t=b5.app.findResource("duo_msg","bitmap"),a=b5.app.display,o=a.createCacheWithSize(t.image.width,t.image.height),n=o.height/o.height/b5.app.pixel_ratio},Social.CreateChallengerScreenshot=function(){return null;var e=b5.app.findResource("challenge_message","bitmap"),t=b5.app.display,a=t.createCacheWithSize(e.image.width,e.image.height),o=a.height/a.height/b5.app.pixel_ratio},Social.CreateChallengeShareScreenshot=function(e,t,a,o,n){return null;var r=b5.app.findResource(e,"bitmap"),s=b5.app.display,i=s.createCacheWithSize(r.image.width,r.image.height),l=i.height/i.height/b5.app.pixel_ratio},Social.CreateHelpShareScreenshot=function(e,t,a){return null;var o=b5.app.findResource(e,"bitmap"),n=b5.app.display,r=n.createCacheWithSize(o.image.width,o.image.height),s=r.height/r.height/b5.app.pixel_ratio},Social.CreateShareScreenshot=function(e,t){return null;var a=b5.app.findResource(e,"bitmap"),o=b5.app.display,n=o.createCacheWithSize(a.image.width,a.image.height),r=n.height/n.height/b5.app.pixel_ratio},Social.CreateGenericScreenshot=function(){return null;var e=b5.app.findResource("generic","bitmap"),t=b5.app.display,a=t.createCacheWithSize(e.image.width,e.image.height),o=a.height/a.height/b5.app.pixel_ratio},Social.CompressMap=function(e){if(void 0!==e){if("string"==typeof e)return e;for(var a="",o=0;o<e.length;o++)for(var t=0;6>t;t++)a+=String.fromCharCode(97+e[o][t]);return a}},Social.DecompressMap=function(e){if(void 0!==e){if("string"!=typeof e)return e;for(var a=[],o=0|e.length/6,n=0,r=0;r<o;r++){a[r]=[];for(var t=0;6>t;t++)a[r][t]=e.charCodeAt(n)-97,n++}return a}},Social.SendComeBackTomorrow=function(e,t){var a=Social.GetContextType();if("POST"!=a&&"GROUP"!=a){var o=window.archon,n=Social.Instants;Social.PostUpdateToContext(Text.GetString(Text.PLAY),Social.CreateShareScreenshot("share"),Text.GetString(Text.BEST_SCORE,e),"match_won","LAST",null,function(){void 0!==t&&t(!0)})}},Social.SendCurrentScore=function(e,t,a){var o={diff:window.archon.difficulty,bg:window.archon.current_bg},n=window.archon,r=Social.Instants;FBInstant.updateAsync({action:"LEADERBOARD",name:t,text:Text.GetString(Text.SCORED_TITLE,Social.GetPlayerName(),e)}).then(function(){a!==void 0&&a(!0)}).catch(function(){a!==void 0&&a(!1)})},Social.SendMatchUpdate=function(e,t,a,o){var n={action:"challenge",from_id:Social.GetPlayerID(),from_name:Social.GetPlayerName(),match:e};Social.PostUpdateToContext(Text.GetString(Text.PLAY),a,t,"match_won","IMMEDIATE",n,function(){console.log(">>>> Message sent"),o!==void 0&&o(!0)})},Social.ShareChallengeInvite=function(e,t,a,o,n,r,s){var i=Social.Instants},Social.ShareHelpInvite=function(e,t,a,o,n){var r=Social.Instants},Social.ShareInvite=function(e,t,a,o){var n=Social.Instants},Social.CreateScreenshot=function(){return null},Social.ShareScore=function(e,t){var a=Social.Instants},Social.PostUpdateToContext=function(e,t,a,o,n,r,s){console.log(e),console.log(a),console.log(n),console.log(t);var i=Social.Instants;i.PostCustomUpdate(e,t,a,o,n,r,function(){s!==void 0&&s()})},Social.PostLeaderboardUpdateToContext=function(e,t,a){var o=Social.Instants;o.PostLeaderboardUpdate(e,t,function(){a!==void 0&&a()})},Social.GetPlayerName=function(){var e=Social.Instants;return e.GetPlayerName()},Social.GetContext=function(){var e=Social.Instants;return e.GetContext()},Social.GetContextID=function(){var e=Social.Instants,t=e.GetContext();return null===t?null:t.getID()},Social.IsContextSizeBetween=function(e,t){var a=Social.Instants,o=a.GetContext();if(null!==o){var n=o.isSizeBetween(e,t);if(null!==n)return n.answer}return!1},Social.GetContextType=function(){var e=Social.Instants,t=e.GetContext();return null===t?null:t.getType()},Social.ChooseContext=function(e,t){var a=Social.Instants;a.ChooseContextWithOptions(e,function(e,a){a!==void 0&&("SAME_CONTEXT"===a.code||"PENDING_REQUEST"===a.code)&&(e=!0),e?Social.GetContextPlayers(function(){t!==void 0&&t(e)}):t!==void 0&&t(e)})},Social.SwitchContext=function(e,t,a){var o=Social.Instants;o.SwitchContext(e,function(e,t){e?Social.GetContextPlayers(function(){a!==void 0&&a(e,t)}):a!==void 0&&a(e,t)})},Social.CreateContext=function(e,t){var a=Social.Instants;a.CreateContext(e,function(e,a){e?Social.GetContextPlayers(function(){t!==void 0&&t(e,a)}):(a!==void 0&&a.code!==void 0&&("SAME_CONTEXT"===a.code||"PENDING_REQUEST"===a.code)&&(e=!0,a=Social.GetContext()),t!==void 0&&t(e,a))})},Social.GetConnectedPlayersCount=function(){var e=0;for(var t in Social.ConnectedPlayers)e++;return e},Social.GetConnectedPlayers=function(e){var t=Social.Instants;Social.ConnectedPlayers={},t.GetConnectedPlayers(function(a){if(null!=a)for(var o=0,t;o<a.length;o++)t=a[o].getID(),Social.PlayersCache.Add(t,a[o].getName(),a[o].getPhoto()),Social.ConnectedPlayers[t]=a[o];Social.PlayersCache.Save(),e!==void 0&&e()})},Social.GetRandomConnectedPlayer=function(){var e=Social.GetConnectedPlayersCount(),t=0|Math.random()*e,a=0;for(var o in Social.ConnectedPlayers){if(a==t)return Social.ConnectedPlayers[o];a++}return null},Social.GetConnectedPlayer=function(e){return Social.ConnectedPlayers[e]},Social.GetContextPlayersCount=function(){var e=0;for(var t in Social.ContextPlayers)e++;return e},Social.GetContextPlayers=function(e){var t=Social.Instants;return null===t.GetContext()?void(void 0!==e&&e()):void(Social.ContextPlayers={},t.GetContextPlayers(function(a){for(var o=0,t;o<a.length;o++)t=a[o].getID(),Social.PlayersCache.Add(t,a[o].getName(),a[o].getPhoto()),Social.ContextPlayers[t]=a[o];Social.PlayersCache.Save(),e!==void 0&&e()}))},Social.GetOtherContextPlayers=function(){var e=Social.Instants,t=[];for(var a in Social.ContextPlayers)a!==e.GetPlayerID()&&t.push(Social.ContextPlayers[a]);return t},Social.GetContextPlayer=function(e){return Social.ContextPlayers[e]},Social.GetPlayer=function(e){return Social.PlayersCache.Get(e)},Social.GetPlayerID=function(){return Social.Instants.GetPlayerID()},Social.GetPlayerPhoto=function(){return Social.Instants.GetPlayerPhotoURL()},Social.SetLeaderboardScore=function(e,t,a,o){var n=Social.Instants;n.SetLeaderboardScore(e,0|t,a,function(e,t){o!==void 0&&o(e,t)})},Social.SetPlayerData=function(e){Social.Instants.SetPlayerData(e)},Social.GetPlayerData=function(e,t){Social.Instants.GetPlayerData(e,function(e){t===void 0?t():t(e)})},Social.SetSessionData=function(e){Social.Instants.SetSessionData(e)},Social.LogEvent=function(e,t){b5.app.debug||Social.Instants.LogEvent(e,t)},Social.SwitchGame=function(t,e,a){Social.Instants.SwitchGame(t,e,function(o){a!==void 0&&a(o),Social.LogEvent("Switch game "+t,1)})},Social.GetLeaderboardScore=function(e,t){Social.Instants.GetLeaderboardScore(e,function(e){t!==void 0&&t(e)})},Social.GetLeaderboardEntries=function(e,t,a,o){Social.Instants.GetLeaderboardEntries(e,t,a,function(e){o!==void 0&&o(e)})},Social.GetConnectedLeaderboardEntries=function(e,t,a,o){Social.Instants.GetConnectedLeaderboardEntries(e,t,a,function(e){o!==void 0&&o(e)})},Social.InterstitialAdsSupported=function(){return Social.Instants.interstitialAdsSupported},Social.VideoAdsSupported=function(){return Social.Instants.videoAdsSupported},Social.PreloadAds=function(e,t,a){var o=this,n=2;e?(Social.LastAdPreloadError=null,Social.Instants.PreloadVideoAd(function(e,a){var o=function(){n--,0<=n?Social.Instants.ReloadVideoAd(function(e,t){e?(Social.LastAdPreloadError=t.message,Social.LogEvent("Ad preload video",1)):(b5.Utils.RunafterTime(20,o),console.log(">>>> Rewarded Ad load error "+t),t!==void 0&&Social.LogEvent("ADV "+t.message,1))},t):Social.LogEvent("NOVAD",1)};e?Social.LogEvent("Ad preload video",1):(b5.Utils.RunafterTime(20,o),console.log(">>>> Rewarded Ad load error "+a),a!==void 0&&(Social.LastAdPreloadError=a.message,Social.LogEvent("ADV "+a.message,1)))},t)):Social.Instants.PreloadInterstitialAd(function(e){var t=function(){n--,0<=n?Social.Instants.ReloadInterstitialAd(function(e){e?Social.LogEvent("Ad preload inter",1):(b5.Utils.RunafterTime(20,t),console.log(">>>> Ad load error "+err),err!==void 0&&Social.LogEvent("ADI "+err.message,1))},a):Social.LogEvent("NOIAD",1)};e?Social.LogEvent("Ad preload inter",1):(b5.Utils.RunafterTime(20,t),console.log(">>>> Ad load error "+err),err!==void 0&&Social.LogEvent("ADI "+err.message,1))},a)},Social.ShowVideoAd=function(e){Social.Instants.ShowVideoAd(function(t,a){t?Social.LogEvent("Ad show video ok",1):(a!==void 0&&(Social.LogEvent("ADVS "+a.message,1),console.log(">>>> ADVS "+a.message)),Social.LogEvent("Ad show video error",1)),e!==void 0&&e(t,a)})},Social.ShowInterstitialAd=function(e){Social.Instants.ShowInterstitialAd(function(t,a){t?Social.LogEvent("Ad show inter ok",1):(a!==void 0&&(Social.LogEvent("ADIS "+a.message,1),console.log(">>>> ADIS "+a.message)),Social.LogEvent("Ad show inter error",1)),e!==void 0&&e(t,a)})},Social.PurchasingSupported=function(){return Social.Instants.purchasingSupported},Social.GetProducts=function(e){Social.Instants.GetProducts(function(t){e!==void 0&&e(t)})},Social.GetUnconsumedProducts=function(e){Social.Instants.GetUnconsumedProducts(function(t){e!==void 0&&e(t)})},Social.ConsumeProduct=function(e){Social.Instants.ConsumeProduct(e)},Social.BuyProduct=function(e,t,a){Social.Instants.BuyProduct(e,t,function(e){a!==void 0&&a(e)})},Social.SetStats=function(e){FBInstant.player.setStatsAsync(e).then(function(){console.log("Stats were set")})},"use strict";function World(){this.deck=new Deck,this.touching=!1,this.touching_x=0,this.touching_y=0,this.drop_targets=[],this.focus_cards=[],this.drop_target_actor=null,this.cheats_used=0,this.hints_used=0,this.first_card=!0}World.prototype.Init=function(){},World.prototype.Reset=function(e){var t=b5.app,a=window.archon;this.start_time=Date.now(),this.timer=0,this.drop_targets=[],this.focus_cards=[],this.drop_target_actor=null,this.cheats_used=0,this.hints_used=0,this.remaining_cheats=3,this.first_card=!0,a.inputok=!0,window.archon.UpdateCheatsRemainingUI(),a.SetRandomSeed(e),this.deck.Reset(),this.deck.SetDeckFromRandom()},World.prototype.Cleanup=function(){this.deck.Cleanup()},World.prototype.Update=function(){var e=window.archon;if(e.playing){var t=0===this.timer,a=0|this.timer;this.timer+=b5.app.dt,(t||a!=(0|this.timer))&&(b5.Utils.findObjectFromPath("gamescene.overlay.background.time")._text=SecondsToString(0|this.timer))}},World.prototype.SceneEndTouch=function(){0!==this.focus_cards.length&&(!window.archon.muted&&b5.app.findResource("tap","sound").play(),this.DropCards())},World.prototype.SceneMoveTouch=function(e,a){if(0!==this.focus_cards.length){this.deck.HideTableauDropTargetActors();for(var o=0,t;o<this.focus_cards.length;o++)t=this.focus_cards[o].actor,t._x=a.x+t.fdx,t._y=a.y+t.fdy,r=t.fox-t.x,0>r&&(r=-r),16<r&&(t.touching=!1);var n=this.focus_cards[0].actor;this.drop_target_actor=null;for(var r=1e3,s=null,o=0,t;o<this.drop_targets.length;o++)if(t=this.deck.GetDropTargetActor(this.drop_targets[o]),n.overlaps(t)){var i=n.x>t.x?n.x-t.x:t.x-n.x;i<r&&(r=i,s=t)}null!==s&&(s.visible=!0,this.drop_target_actor=s)}},World.prototype.CardTapped=function(e){var a=window.archon;if(a.inputok){if(this.first_card&&(this.first_card=!1,a.ResetAds(),b5.Utils.RunafterTime(1,function(){Daily.ShowDaily()})),!a.seen_quit){a.seen_quit=!0;var o=b5.Utils.findObjectFromPath("gamescene.info.quitinfo");o.bringToFront(),o.playTimeline("show")}var n=e.card;if(n.stack===eStack.deck1){var r=[];r.push({card:n,stack:n.stack,turned:n.turned,touchable:n.actor.touchable}),this.deck.AddToUndo(r),n.SetPlace(eStack.deck2),n.Turn(!0,!0),this.deck.FixRelaxedCards(),this.deck.CheckAllCardsTurned(),this.AddMoves(1),window.archon.muted||b5.app.findResource("tap","sound").play()}else if(this.focus_cards=n.stack>=eStack.tab1&&n.stack<=eStack.tab7?this.deck.GetAllCardsBelowThisCard(n):[n],this.drop_targets=this.deck.BuildPossibleDropTargets(this.focus_cards),0<this.drop_targets.length){this.drop_target_actor=this.deck.GetDropTargetActor(this.drop_targets[0]);for(var s=this.focus_cards[0].stack,i=this.drop_target_actor.stack,l=this.drop_target_actor.y,r=[],d=0,n;d<this.focus_cards.length;d++)n=this.focus_cards[d],r.push({card:n,stack:n.stack,turned:n.turned,touchable:n.actor.touchable}),n.SetPlace(i);if(s>=eStack.tab1&&s<=eStack.tab7){var n=this.deck.GetLastCardOnTableau(s);null!==n&&(r.unshift({card:n,stack:n.stack,turned:n.turned,touchable:n.actor.touchable}),n.Turn(!0,!0))}this.deck.AddToUndo(r),this.deck.FixRelaxedCards(),this.deck.CheckAllCardsTurned(),this.focus_cards=[],this.drop_targets=[],this.drop_target_actor=null,this.AddMoves(1)}else this.focus_cards=[],this.drop_targets=[]}},World.prototype.CardBeginTouch=function(e,t){if(window.archon.inputok){var a=e.card;if(a.stack!==eStack.deck1){var o=[a];a.stack>=eStack.tab1&&a.stack<=eStack.tab7&&(o=this.deck.GetAllCardsBelowThisCard(e.card)),this.PickupCards(o,t)}}},World.prototype.PickupCards=function(e,a){this.focus_cards=e;for(var o=0,t;o<e.length;o++)t=e[o].actor,t.fox=t.x,t.foy=t.y,t.fdx=t.x-a.x,t.fdy=t.y-a.y,t._x=a.x+t.fdx,t._y=a.y+t.fdy,t.bringToFront();this.drop_targets=this.deck.BuildPossibleDropTargets(e)},World.prototype.DropCards=function(){if(0!==this.focus_cards.length){if(null!==this.drop_target_actor){for(var e=this.focus_cards[0].stack,a=this.drop_target_actor.stack,o=this.drop_target_actor.y,n=[],r=0,t;r<this.focus_cards.length;r++)t=this.focus_cards[r],n.push({card:t,stack:t.stack,turned:t.turned,touchable:t.actor.touchable}),t.SetPlace(a);if(e>=eStack.tab1&&e<=eStack.tab7){var t=this.deck.GetLastCardOnTableau(e);null!==t&&(n.unshift({card:t,stack:t.stack,turned:t.turned,touchable:t.actor.touchable}),t.Turn(!0,!0))}this.deck.AddToUndo(n),this.deck.FixRelaxedCards(),this.deck.CheckAllCardsTurned(),this.AddMoves(1)}else for(var r=0,s;r<this.focus_cards.length;r++)s=this.focus_cards[r].actor,s._x=s.fox,s._y=s.foy;this.focus_cards=[],this.drop_targets=[],this.drop_target_actor=null}},World.prototype.ShowCelebration=function(e,a,o,n,r,s,i,l,d){for(var c=window.archon,p=this,u=0,t;u<o;u++)t=new b5.Actor,c.gamescene.addActor(t),t._av=!0,t._atlas=void 0===d?"ball"+((0|8*Math.random())+1):d,t.setPosition(0,0),t.use_parent_opacity=!1,t.touchable=!1,t.round_pixels=!0,t.x=e,t.y=a,0!=s&&(t.x+=s*Math.random()-s/2),0!=i&&(t.y+=i*Math.random()-i/2),t.w=16,t.h=16,t.ow=16,t.oh=16,t.ignore_atlas_size=!0,t.timer1=0,t.vx=n*Math.random()-n/2,t.vy=r*Math.random()-r/2,t.onTick=function(){var e=b5.app.dt;this.vy+=e*l,this.timer1+=e,this.opacity-=e/2,2<this.timer1&&this.destroy()}},World.prototype.ResetPack=function(){var e=window.archon;e.inputok&&(!e.muted&&b5.app.findResource("tap","sound").play(),actor!==void 0&&actor.playTimeline("click"),this.deck.ResetPack())},World.prototype.Undo=function(e){var t=window.archon;t.inputok&&(Social.LogEvent("Undo",1),!t.muted&&b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),this.deck.Undo())},World.prototype.Cheat=function(){if(window.archon.inputok){Social.LogEvent("Used Cheat",1);var e=2;window.archon.crowns>=e?this.deck.Cheat(1)&&(window.archon.crowns-=e,Skins.UpdateCrownsUI(),window.archon.SaveGame(),this.cheats_used++):window.archon.ShowBuyCrowns()}},World.prototype.ShowHint=function(){if(window.archon.inputok){Social.LogEvent("Used Hint",1);var e=1;window.archon.crowns>=e?this.deck.ShowHint()&&(window.archon.crowns-=e,Skins.UpdateCrownsUI(),window.archon.SaveGame(),this.hints_used++):window.archon.ShowBuyCrowns()}},World.prototype.AddMoves=function(e){this.deck.moves+=e;b5.Utils.findObjectFromPath("gamescene.overlay.background.moves")._text=this.deck.moves},"use strict",console.log=function(){};var mainmenu_path="gamescene.mainmenu";function Archon(){window.archon=this;var e=this,t=b5.app;this.history=new History,this.stats=new Stats,this.session_timer=0,this.version=1,this.muted=!1,this.music_muted=!1,this.playing=!1,this.ad_timer=0,this.challenger_data=void 0,this.shortcut=!1,this.scores={solo:0},this.current_context_id="solo",this.best_session_score=0,this.paused=!1,this.days=0,this.days_played=0,this.last_collection_time=0,this.watched_ad=!1,this.played_friend=!1,this.bot_subscribed=!1,this.bot_boost=1,this.xp=0,this.crowns=0,this.current_back=0,this.current_theme=0,this.owned_backs=[1,1,1,1],this.owned_themes=[1,1,1,1],this.best_scores=[],this.firstrounds=0,this.autocomplete=!0,this.inputok=!0,this.rank=1,this.best_score=0,this.tooltips=!0,this.suitfaces=!1,this.target=null,this.round=0,this.seen_steal=!1,this.seen_quit=!1,this.seen_tutorial=!1,this.ProductsRetrieved=!1,this.AD_TIME=120,this.quest=0,this.quest_complete=-1,this.last_quest_time=0,this.quests_weekly=0,this.pop_quest=!1,this.wins=0,this.remaining_cheats=3,this.winnable=[],this.gamescene=b5.app.findScene("gamescene"),this.leaderboardscene=b5.app.findScene("leaderboard"),this.xoml=new b5.Xoml(b5.app),this.xoml.current_scene=this.gamescene,this.world=new World,this.tooltips_actor=b5.Utils.findObjectFromPath("gamescene.tooltip"),this.tooltips_text_actor=b5.Utils.findObjectFromPath("gamescene.tooltip.text"),this.orientation_actor=b5.Utils.findObjectFromPath("gamescene.orientation"),b5.Utils.findObjectFromPath(mainmenu_path).touchable=!1;var e=this;console.log(">>>> Loading"),Social.Init(function(){e.UpdateLocales(),Ads.PreloadAds(!0),Ads.PreloadAds(!1),e.LoadGame(function(t){t?e.Loaded():(console.log(">>>> Error loading game data"),e.LoadGame(function(t){t||Social.LogEvent("GetPlayerData Failed",1),e.Loaded()}))})})}Archon.prototype.Loaded=function(){var e=this;if(!this.music_muted,this.world.Init(),this.IsInContext()){var t=null,a=Social.GetContext();null!==a&&(t=a.getID()),null!==t&&(this.current_context_id=t,void 0===e.scores[t]&&(e.scores[t]=0))}this.days++,30>this.days&&Social.LogEvent("Plays "+this.days,1),this.stats.total_sessions++,this.stats.Save(),Social.SetStats({Plays:this.days}),ShowMainMenu(!1,void 0,!1),this.bot_subscribed&&Bot.SetMessage(),Skins.SetTheme(this.current_theme,!0),b5.Utils.findObjectFromPath(mainmenu_path).touchable=!0,b5.Utils.findObjectFromPath("gamescene.buycrowns.buy100")._av=Social.PurchasingSupported(),b5.Utils.findObjectFromPath("gamescene.buycrowns.video")._av=Social.VideoAdsSupported(),Quests.Update(),StartGamePressed(!1),Social.LogEvent("STs1",1),b5.Utils.RunafterTime(2,function(){Lbds.UpdateGlobalLeaderboardScore(this.stats.total_score,this.stats.GetStatsAsString())}.bind(this))},Archon.prototype.GetDaySeed=function(e){return this.day=moment().date(),this.month=moment().month(),this.year=moment().year(),this.date=moment([this.year,this.month,this.day]),this.seed=this.day+"."+this.month+"."+e,this.seed},Archon.prototype.SetDaySeed=function(){Math.seedrandom(this.GetDaySeed())},Archon.prototype.SetRandomSeed=function(e){e===void 0&&this.firstrounds<this.winnable.length&&(e=this.winnable[this.firstrounds],this.firstrounds++,this.SaveGame()),this.seed=void 0===e?0|Date.now()/1e4:e,Math.seedrandom(this.seed)},Archon.prototype.UpdateLocales=function(){b5.Utils.findObjectFromPath(mainmenu_path+".leaders.top.friends")._text=Text.GetString(Text.FRIENDS),b5.Utils.findObjectFromPath(mainmenu_path+".leaders.top.global")._text=Text.GetString(Text.GLOBAL),b5.Utils.findObjectFromPath(mainmenu_path+".leaders.bottom.friends")._text=Text.GetString(Text.NOFRIENDS),b5.Utils.findObjectFromPath(mainmenu_path+".stats.replay.play1.text")._text=Text.GetString(Text.QUICKEST_WIN),b5.Utils.findObjectFromPath(mainmenu_path+".stats.replay.play2.text")._text=Text.GetString(Text.SLOWEST_WIN),b5.Utils.findObjectFromPath(mainmenu_path+".stats.replay.play3.text")._text=Text.GetString(Text.FEWEST_MOVES),b5.Utils.findObjectFromPath(mainmenu_path+".stats.replay.play4.text")._text=Text.GetString(Text.MOST_MOVES),b5.Utils.findObjectFromPath("gamescene.roundover.dialog.title")._text=Text.GetString(Text.ROUND_OVER),b5.Utils.findObjectFromPath("gamescene.quit.dialog.title")._text=Text.GetString(Text.QUIT),b5.Utils.findObjectFromPath("gamescene.restart.dialog.title")._text=Text.GetString(Text.RESTART),b5.Utils.findObjectFromPath("gamescene.settings.dialog.title")._text=Text.GetString(Text.OPTIONS),b5.Utils.findObjectFromPath("gamescene.settings.dialog.audio")._text=Text.GetString(Text.AUDIO),b5.Utils.findObjectFromPath("gamescene.settings.dialog.tooltips")._text=Text.GetString(Text.TOOLTIPS),b5.Utils.findObjectFromPath("gamescene.settings.dialog.suits")._text=Text.GetString(Text.SUITS),b5.Utils.findObjectFromPath("gamescene.newgame.dialog.title")._text=Text.GetString(Text.SELECT_GAME),b5.Utils.findObjectFromPath("gamescene.help.help1")._text=Text.GetString(Text.HELP1),b5.Utils.findObjectFromPath("gamescene.help.help2")._text=Text.GetString(Text.HELP2),b5.Utils.findObjectFromPath("gamescene.help.help3")._text=Text.GetString(Text.HELP3),b5.Utils.findObjectFromPath("gamescene.help.help4")._text=Text.GetString(Text.HELP4),b5.Utils.findObjectFromPath("gamescene.info.stealinfo.text")._text=Text.GetString(Text.STEALINFO),b5.Utils.findObjectFromPath("gamescene.info.stealinfo.tap")._text=Text.GetString(Text.TAPTOCLOSE),b5.Utils.findObjectFromPath("gamescene.info.quitinfo.text")._text=Text.GetString(Text.QUITINFO),b5.Utils.findObjectFromPath("gamescene.info.quitinfo.tap")._text=Text.GetString(Text.TAPTOCLOSE),b5.Utils.findObjectFromPath(mainmenu_path+".historybutton.text")._text=Text.GetString(Text.HISTORY),b5.Utils.findObjectFromPath(mainmenu_path+".statsbutton.text")._text=Text.GetString(Text.STATS),Skins.UpdateLocales(),Daily.UpdateLocales(),Quests.UpdateLocales(),Tutorial.Localise(),this.history.UpdateLocales(),this.stats.UpdateLocales()},Archon.prototype.UpdateSessionTime=function(){var e=(0|this.session_timer/60)+1;if(1==e){var t=(0|this.session_timer/10)+1;return this.session_timer+=b5.app.dt,void((0|this.session_timer/10)==t&&Social.LogEvent("STs"+(0|this.session_timer),1))}this.session_timer+=b5.app.dt,60>e&&(0|this.session_timer/60)==e&&(10>e||0==e%5)&&Social.LogEvent("STm"+(0|this.session_timer/60),1)},Archon.prototype.UpdateOrientation=function(){b5.app.display_width>b5.app.display_height?this.odwidth!==b5.app.display_width&&(this.orientation_actor._av=!1,b5.Utils.RunafterTime(0.1,function(){this.world.deck.ArrangeAllStacks()}.bind(this))):this.orientation_actor._av=!0,this.odwidth=b5.app.display_width,this.odheight=b5.app.display_height},Archon.prototype.UpdateGame=function(){this.UpdateOrientation(),this.world.Update(b5.app.dt),this.UpdateSessionTime(),Ads.UpdateCrownTimer()},Archon.prototype.UpdateMusicUI=function(){var e=b5.Utils.findObjectFromPath("gamescene.audio");e._atlas=this.muted?"sound_off":"sound_on"},Archon.prototype.SetTarget=function(e){if(this.target=e,null==e)return void(b5.Utils.findObjectFromPath("gamescene.overlay.challenger")._av=!1);if(b5.Utils.findObjectFromPath("gamescene.overlay.challenger.score")._text=e.match.score,b5.Utils.findObjectFromPath("gamescene.overlay.challenger.moves")._text=e.match.moves,b5.Utils.findObjectFromPath("gamescene.overlay.challenger.time")._text=SecondsToString(e.match.time),e.from_id){b5.Utils.findObjectFromPath("gamescene.overlay.challenger.name")._text=e.from_name,console.log("from_id = "+e.from_id);var t=Social.GetPlayer(e.from_id);if(console.log(Social.PlayersCache),t){var a=t.photo_url;a&&Social.PhotoCache.Add(e.from_id,a,function(e,t){t._bitmap=e},b5.Utils.findObjectFromPath("gamescene.overlay.challenger.avatar"))}else e.from_id===Social.GetPlayerID()&&(b5.Utils.findObjectFromPath("gamescene.overlay.challenger.avatar")._bitmap=Social.PlayerBitmap)}b5.Utils.findObjectFromPath("gamescene.overlay.challenger").playTimeline("show")},Archon.prototype.NewGame=function(e){this.TryRunAd(function(){FBInstant.ext.gameEvent({type:"gameplayStart"})}),this.muted||b5.app.findResource("tap","sound").play(),b5.Utils.findObjectFromPath("gamescene.newgame")._av=!1,Social.LogEvent("New game",1),this.Cleanup(),e===void 0?(this.SetTarget(null),this.world.Reset()):(this.world.deck.relaxed=1===e.mode,this.world.Reset(e.seed)),this.playing=!0,window.archon.playing=!0,b5.Utils.findObjectFromPath("gamescene.board")._av=!0,b5.Utils.findObjectFromPath("gamescene.overlay")._av=!0,b5.Utils.findObjectFromPath(mainmenu_path)._av=!1},Archon.prototype.ShowStealInfo=function(){},Archon.prototype.RestartGame=function(){this.world.Cleanup(),this.muted||b5.app.findResource("tap","sound").play(),b5.Utils.findObjectFromPath("gamescene.newgame")._av=!1,Social.LogEvent("Restart game",1),this.world.Reset(this.seed),FBInstant.ext.gameEvent({type:"gameplayStop"}),this.TryRunAd(function(){FBInstant.ext.gameEvent({type:"gameplayStart"})})},Archon.prototype.ResetAds=function(){this.ad_timer=Date.now()},Archon.prototype.TryRunAd=function(e){Ads.ShowInterstitialAd(e)},Archon.prototype.TryShortcut=function(){if(0===this.round){this.round++;var e=this;this.shortcut||Social.CreateShortcut(function(t){t&&(e.shortcut=t,e.SaveGame())})}},Archon.prototype.Cleanup=function(){this.world.Cleanup()},Archon.prototype.EndRound=function(e){FBInstant.ext.gameEvent({type:"gameplayStop"});var t=this,a=this.world,o=a.deck,n=Date.now();this.playing=!1,this.prev_round=this.round,a.Cleanup(),console.log(">>>> EndRound "+e),Social.LogEvent("EndRound "+e,1),this.TryShortcut();var r=a.timer,s=0;if(e){this.wins++;var i=10*(300-o.moves);100>i&&(i=100);var l=0|10*(600-r);0>l&&(l=0),s=i+l,b5.Utils.findObjectFromPath("gamescene.roundover.dialog.title")._text=Text.GetString(Text.WON)}else b5.Utils.findObjectFromPath("gamescene.roundover.dialog.title")._text=Text.GetString(Text.LOST);var d=new Match(this.seed);d.date=a.start_time,d.mode=0,this.world.deck.relaxed&&(d.mode=1),d.moves=o.moves,d.score=s,d.time=r,this.history.Add(d),this.history.Save();var c=0|s/200;e?5>c&&(c=5):c=0,50<c&&(c=50),this.crowns+=c,this.stats.crowns_earnt+=c,this.PostUpdate(d,e),this.stats.hands_played++,this.stats.total_play_time+=a.timer,e?(this.stats.total_score+=s,this.stats.hands_complete++,(null===this.stats.quickest_win||r<this.stats.quickest_win.time)&&(this.stats.quickest_win=d),(null===this.stats.slowest_win||r>this.stats.slowest_win.time)&&(this.stats.slowest_win=d),(null===this.stats.fewest_moves||o.moves<this.stats.fewest_moves.moves)&&(this.stats.fewest_moves=d),(null===this.stats.most_moves||o.moves>this.stats.most_moves.moves)&&(this.stats.most_moves=d)):this.stats.hands_failed++;var p=this.quests_weekly;console.log(">>>> week = "+p);var u=200-5*p;140>u&&(u=140);var g=300-10*p;g<180&&(g=180);var h=3e3+50*p;6e3<h&&(h=6e3),e&&(d.moves<u&&Quests.CompleteQuest(0),d.time<g&&Quests.CompleteQuest(1),d.score>h&&Quests.CompleteQuest(2),0===this.world.hints_used&&Quests.CompleteQuest(3)),this.world.deck.relaxed&&Quests.CompleteQuest(4),3===this.wins&&Quests.CompleteQuest(5),s>this.best_session_score&&(this.best_session_score=s,FBInstant.postSessionScore(this.best_session_score),console.log(">>>> Best session score is "+this.best_session_score)),Lbds.UpdateGlobalLeaderboardScore(this.stats.total_score,this.stats.GetStatsAsString()),this.SaveGame(),b5.Utils.findObjectFromPath("gamescene.roundover.dialog.id")._text=d.seed,b5.Utils.findObjectFromPath("gamescene.roundover.dialog.type")._text=1===d.mode?Text.GetString(Text.RELAXED):Text.GetString(Text.NORMAL),b5.Utils.findObjectFromPath("gamescene.roundover.dialog.moves")._text=d.moves,b5.Utils.findObjectFromPath("gamescene.roundover.dialog.score")._text=d.score,b5.Utils.findObjectFromPath("gamescene.roundover.dialog.time")._text=SecondsToString(d.time),b5.Utils.findObjectFromPath("gamescene.roundover.dialog.crowns")._text=c,b5.Utils.findObjectFromPath("gamescene.roundover.ask")._av=!1,b5.Utils.findObjectFromPath("gamescene.roundover.share")._av=!1,e&&Skins.UpdateCrownsUI(),b5.Utils.findObjectFromPath("gamescene.roundover").playTimeline("show")},Archon.prototype.PostUpdate=function(e,t){var a="";if(null===this.target)a=Text.GetString(Text.INVITE_TO_PLAY,Social.GetPlayerName());else{var o=this.target.game_type;if(!t)a=this.target.solo?Text.GetString(Text.UNLUCKY):Text.GetString(Text.UNLUCKY2,this.target.from_name);else if(a=Text.GetString(Text.WELL_DONE),this.target.solo){var n=this.target.match;"quickest_win"===o?e.time<n.time&&(a=Text.GetString(Text.BEAT_BEST),Quests.CompleteQuest(6)):"slowest_win"===o?e.time<n.time&&(a=Text.GetString(Text.BEAT_BEST),Quests.CompleteQuest(6)):"fewest_moves"===o?e.moves<n.moves&&(a=Text.GetString(Text.BEAT_BEST),Quests.CompleteQuest(6)):"most_moves"===o&&e.moves<n.moves&&(a=Text.GetString(Text.BEAT_BEST),Quests.CompleteQuest(6))}else{var r=this.target.match;console.log(">>>> Won friend"),console.log(e),console.log(r),"quickest_win"===o?e.time<r.time&&(a=Text.GetString(Text.WELLDONE2,this.target.from_name)):"slowest_win"===o?e.time<r.time&&(a=Text.GetString(Text.WELLDONE2,this.target.from_name)):"fewest_moves"===o?e.moves<r.moves&&(a=Text.GetString(Text.WELLDONE2,this.target.from_name)):"most_moves"===o?e.moves<r.moves&&(a=Text.GetString(Text.WELLDONE2,this.target.from_name)):e.score>r.score&&(a=Text.GetString(Text.WELLDONE2,this.target.from_name))}}Social.SendMatchUpdate(e,a,this.screenshot)},Archon.prototype.UpdateUI=function(){var e=mainmenu_path+".header";b5.Utils.findObjectFromPath(e+".date")._text=new Date(Date.now()).toLocaleDateString(),b5.Utils.findObjectFromPath(e+".crowns")._text=this.crowns},Archon.prototype.UpdateCheatsRemainingUI=function(){},Archon.prototype.IsInContext=function(){var e=null,t=Social.GetContext();return null!==t&&(e=t.getID()),null!==e&&"SOLO"!=Social.GetContextType()},Archon.prototype.IsPlayerInContext=function(e){return!!this.IsInContext()&&void 0!==Social.GetContextPlayer(e)},Archon.prototype.GetCurrentScore=function(){for(var e=0,a=0;a<this.max_rounds;a++)void 0!==this.best_scores[a]&&(e+=this.best_scores[a]);return e},Archon.prototype.SaveGame=function(){var e={general:{version:this.version,muted:this.muted,music_muted:this.music_muted,shortcut:this.shortcut,scores:this.scores,days:this.days,days_played:this.days_played,lct:this.last_collection_time,bot_subscribed:this.bot_subscribed,best_scores:this.best_scores,tooltips:this.tooltips,suitfaces:this.suitfaces,crowns:this.crowns,current_back:this.current_back,current_theme:this.current_theme,owned_backs:this.owned_backs,owned_themes:this.owned_themes,seen_steal:this.seen_steal,seen_quit:this.seen_quit,seen_tutorial:this.seen_tutorial,quest:this.quest,quest_complete:this.quest_complete,lqt:this.last_quest_time,weekly:this.quests_weekly,firstrounds:this.firstrounds}};console.log(">>>> SaveGame"),console.log(e),Social.SetPlayerData(e),this.stats.Save()},Archon.prototype.LoadGame=function(e){var t=this;console.log(">>>> LoadGame"),Social.GetPlayerData(["general","players","history","stats"],function(a){if(console.log(a),void 0!==a){if(Social.LogEvent("GetPlayerData Success",1),void 0!==a.general){var o=a.general;void 0!==o.version&&(t.version!==o.version&&(t.new_version=!0),t.version=o.version),void 0!==o.muted&&(t.muted=o.muted),void 0!==o.music_muted&&(t.music_muted=o.music_muted),void 0!==o.shortcut&&(t.shortcut=o.shortcut),void 0!==o.scores&&(t.scores=o.scores),void 0!==o.days&&(t.days=o.days),void 0!==o.days_played&&(t.days_played=o.days_played),void 0!==o.lct&&(t.last_collection_time=o.lct),void 0!==o.best_score&&(t.best_score=o.best_score),void 0!==o.bot_subscribed&&(t.bot_subscribed=o.bot_subscribed),void 0!==o.best_scores&&(t.best_scores=o.best_scores),void 0!==o.tooltips&&(t.tooltips=o.tooltips),void 0!==o.suitfaces&&(t.suitfaces=o.suitfaces),void 0!==o.crowns&&(t.crowns=o.crowns),void 0!==o.current_back&&(t.current_back=o.current_back),void 0!==o.current_theme&&(t.current_theme=o.current_theme),void 0!==o.owned_backs&&(t.owned_backs=o.owned_backs),void 0!==o.owned_themes&&(t.owned_themes=o.owned_themes),void 0!==o.seen_steal&&(t.seen_steal=o.seen_steal),void 0!==o.seen_quit&&(t.seen_quit=o.seen_quit),void 0!==o.seen_tutorial&&(t.seen_tutorial=o.seen_tutorial),void 0!==o.quest&&(t.quest=o.quest),void 0!==o.quest_complete&&(t.quest_complete=o.quest_complete),void 0!==o.lqt&&(t.last_quest_time=o.lqt),void 0!==o.weekly&&(t.quests_weekly=o.weekly),void 0!==o.firstrounds&&(t.firstrounds=o.firstrounds)}void 0!==a.history&&t.history.Load(a),void 0!==a.stats&&t.stats.Load(a),void 0!==a.players&&(Social.PlayersCache.players=a.players),void 0!==e&&e(!0)}else void 0!==e&&e(!1)})},Archon.prototype.SwitchGame=function(e){0===e?Social.SwitchGame("494872740908064",null,function(){}):1===e&&Social.SwitchGame("1937994279863415",null,function(){})},Archon.prototype.GetProducts=function(){if(Social.PurchasingSupported()&&!this.ProductsRetrieved){var e=this;Social.GetProducts(function(a){for(var o=0,t;o<a.length;o++)t=a[o],"crowns100"==t.productID&&(b5.Utils.findObjectFromPath("gamescene.buycrowns.buy100.text")._text=t.price);e.ProductsRetrieved=!0}),this.ConsumeAllProducts()}},Archon.prototype.ShowBuyCrowns=function(){this.GetProducts(),b5.Utils.findObjectFromPath("gamescene.buycrowns").playTimeline("show")},Archon.prototype.ConsumeAllProducts=function(){var e=this;Social.GetUnconsumedProducts(function(a){for(var o=0;o<a.length;o++){var t=a[o],n=0;"crowns100"===t.productID&&(n=100),e.crowns+=n,e.stats.crowns_earnt+=n,Social.ConsumeProduct(t.purchaseToken)}e.SaveGame(),Skins.UpdateCrownsUI()})},Archon.prototype.BuyProduct=function(e){if(!Social.PurchasingSupported())return void this.ShowPurchasesUnavailable();var t=this,a="crowns100",o="ss"+(0|1024*Math.random());Social.LogEvent("Buying product",1),Social.BuyProduct(a,o,function(n){if(null!==n&&o==n.developerPayload){var r=0;n.productID===a&&(Social.LogEvent("Purchased 100 crowns",1),r=100),t.crowns+=r,t.stats.crowns_earnt+=r,t.SaveGame(),Social.ConsumeProduct(n.purchaseToken),Skins.UpdateCrownsUI(),e!=void 0&&e(!0)}else void 0!=e&&e(!1)})};function GameLoaded(){window.archon=new Archon}function Match(e){this.date=Date.now(),this.seed=e,this.mode=0,this.moves=0,this.score=0,this.time=0}function History(){this.matches=[],this.page=0}History.prototype.Add=function(e){this.matches.unshift(e),1e3<this.matches.length&&this.matches.pop()},History.prototype.Save=function(){var e={history:this.matches};Social.SetPlayerData(e)},History.prototype.Load=function(e){e.history!==void 0&&(this.matches=e.history)},History.prototype.ChangePage=function(e){var a=4,o=0|(this.matches.length+(a-1))/a;this.page+=e,0>this.page?this.page=o-1:this.page>o-1&&(this.page=0);var n=mainmenu_path+".history.listbox",r=this.page*a;console.log(">>>>>>>>>>>>> matches"),console.log(this.matches);for(var s=0;s<a;s++){var t=this.matches[r],i=b5.Utils.findObjectFromPath(n+".entry"+(s+1));if(t!==void 0){i._av=!0,i.findActor("seed")._text=t.seed,i.findActor("moves")._text=t.moves,i.findActor("score")._text=t.score,i.findActor("time")._text=SecondsToString(t.time);var l=i.findActor("share"),d=i.findActor("ask"),c=i.findActor("play");l.match=t,d.match=t,c.match=t,l._av=!1,d._av=!1,c._av=!(0!==t.score)||!0,i.findActor("mode")._text=1===t.mode?Text.GetString(Text.RELAXED):Text.GetString(Text.NORMAL),i.findActor("date")._text=new Date(t.date).toLocaleDateString()}else i._av=!1;r++}0==o&&(o=1),b5.Utils.findObjectFromPath(n+".page")._text=this.page+1+" / "+o},History.prototype.UpdateLocales=function(){b5.Utils.findObjectFromPath(mainmenu_path+".history"+".top.title")._text=Text.GetString(Text.MATCHHISTORY)},"use strict";function Stats(){this.total_score=0,this.hands_played=0,this.hands_complete=0,this.hands_failed=0,this.total_sessions=0,this.total_play_time=0,this.total_friend_games=0,this.crowns_earnt=0,this.boards_owned=0,this.decks_owned=0,this.quests=0,this.quickest_win=null,this.slowest_win=null,this.fewest_moves=null,this.most_moves=null}Stats.prototype.Save=function(){var e={stats:{total_score:this.total_score,hands_played:this.hands_played,hands_complete:this.hands_complete,hands_failed:this.hands_failed,total_sessions:this.total_sessions,total_play_time:this.total_play_time,total_friend_games:this.total_friend_games,crowns_earnt:this.crowns_earnt,boards_owned:this.boards_owned,decks_owned:this.decks_owned,quests:this.quests,quickest_win:this.quickest_win,slowest_win:this.slowest_win,fewest_moves:this.fewest_moves,most_moves:this.most_moves}};Social.SetPlayerData(e)},Stats.prototype.Load=function(e){var t=e.stats;t.total_score!==void 0&&(this.total_score=t.total_score),t.hands_played!==void 0&&(this.hands_played=t.hands_played),t.hands_complete!==void 0&&(this.hands_complete=t.hands_complete),t.hands_failed!==void 0&&(this.hands_failed=t.hands_failed),t.total_sessions!==void 0&&(this.total_sessions=t.total_sessions),t.total_play_time!==void 0&&(this.total_play_time=t.total_play_time),t.total_friend_games!==void 0&&(this.total_friend_games=t.total_friend_games),t.crowns_earnt!==void 0&&(this.crowns_earnt=t.crowns_earnt),t.boards_owned!==void 0&&(this.boards_owned=t.boards_owned),t.decks_owned!==void 0&&(this.decks_owned=t.decks_owned),t.quests!==void 0&&(this.quests=t.quests),t.quickest_win!==void 0&&(this.quickest_win=t.quickest_win),t.slowest_win!==void 0&&(this.slowest_win=t.slowest_win),t.fewest_moves!==void 0&&(this.fewest_moves=t.fewest_moves),t.most_moves!==void 0&&(this.most_moves=t.most_moves)},Stats.prototype.BuildStatsString=function(e){void 0===e&&(e=this);var t=Text.GetString(Text.TOTAL_SCORE)+": "+e.total_score+"\n";return t+=Text.GetString(Text.WIN_RATE)+": "+(0|100*(e.hands_complete/e.hands_played))+"%\n",t+=Text.GetString(Text.HANDS_PLAYED)+": "+e.hands_played+"\n",t+=Text.GetString(Text.HANDS_COMPLETED)+": "+e.hands_complete+"\n",t+=Text.GetString(Text.HANDS_FAILED)+": "+e.hands_failed+"\n",t+=Text.GetString(Text.TOTAL_SESSIONS)+": "+e.total_sessions+"\n",t+=Text.GetString(Text.TIME_PLAYED)+": "+SecondsToString(e.total_play_time)+"\n",t+=Text.GetString(Text.AVERAGE_GAME_TIME)+": "+SecondsToString(e.total_play_time/e.total_sessions)+"\n",t+=Text.GetString(Text.FRIEND_GAMES)+": "+e.total_friend_games+"\n",t+=Text.GetString(Text.KINGS_EARNT)+": "+e.crowns_earnt+"\n",t+=Text.GetString(Text.BOARDS_OWNED)+": "+e.boards_owned+"\n",t+=Text.GetString(Text.DECKS_OWNED)+": "+e.decks_owned+"\n",t+=void 0===e.quests?Text.GetString(Text.QUESTS)+": 0\n":Text.GetString(Text.QUESTS)+": "+e.quests+"\n",t+=Text.GetString(Text.QUICKEST_WIN)+": ",t+=null===e.quickest_win?"--\n":SecondsToString(e.quickest_win.time)+"\n",t+=Text.GetString(Text.SLOWEST_WIN)+": ",t+=null===e.slowest_win?"--\n":SecondsToString(e.slowest_win.time)+"\n",t+=Text.GetString(Text.FEWEST_MOVES)+": ",t+=null===e.fewest_moves?"--\n":e.fewest_moves.moves+"\n",t+=Text.GetString(Text.MOST_MOVES)+": ",t+=null===e.most_moves?"--":e.most_moves.moves,t},Stats.prototype.UpdateUI=function(){var e=mainmenu_path+".stats",t=e+".replay";if(0===this.hands_played)b5.Utils.findObjectFromPath(e+".listbox.text")._text="";else{b5.Utils.findObjectFromPath(e+".listbox.text")._text=this.BuildStatsString();var a=b5.Utils.findObjectFromPath(t+".play1");null!==this.quickest_win&&(a.playTimeline("show"),a.game_type="quickest_win",a.match=this.quickest_win);var a=b5.Utils.findObjectFromPath(t+".play2");null!==this.quickest_win&&(a.playTimeline("show"),a.game_type="slowest_win",a.match=this.slowest_win);var a=b5.Utils.findObjectFromPath(t+".play3");null!==this.quickest_win&&(a.playTimeline("show"),a.game_type="fewest_moves",a.match=this.fewest_moves);var a=b5.Utils.findObjectFromPath(t+".play4");null!==this.quickest_win&&(a.playTimeline("show"),a.game_type="most_moves",a.match=this.most_moves)}},Stats.prototype.UpdateLocales=function(){b5.Utils.findObjectFromPath(mainmenu_path+".stats"+".top.title")._text=Text.GetString(Text.STATISTICS)},Stats.prototype.ShowFriendStats=function(e,t,a,o){var n=this.GetStatsAsObject(e),r=mainmenu_path+".friendstats",s=r+".replay",i="global"===Lbds.CurrentLeaderboardScope;b5.Utils.findObjectFromPath(r+".top.title")._text=o,b5.Utils.findObjectFromPath(r+".listbox.text")._text=this.BuildStatsString(n),null!==a&&Social.PhotoCache.Add(t,a,function(e,t){t._bitmap=e},b5.Utils.findObjectFromPath(r+".top.avatar"));var l=b5.Utils.findObjectFromPath(s+".play1");i||null===n.quickest_win?l._av=!1:(l.playTimeline("show"),l.from_id=t,l.from_name=o,l.game_type="quickest_win",l.match=n.quickest_win,l.findActor("text")._text=Text.GetString(Text.QUICKEST_WIN));var l=b5.Utils.findObjectFromPath(s+".play2");i||null===n.slowest_win?l._av=!1:(l.playTimeline("show"),l.from_id=t,l.from_name=o,l.game_type="slowest_win",l.match=n.slowest_win,l.findActor("text")._text=Text.GetString(Text.SLOWEST_WIN));var l=b5.Utils.findObjectFromPath(s+".play3");i||null===n.fewest_moves?l._av=!1:(l.playTimeline("show"),l.from_id=t,l.from_name=o,l.game_type="fewest_moves",l.match=n.fewest_moves,l.findActor("text")._text=Text.GetString(Text.FEWEST_MOVES));var l=b5.Utils.findObjectFromPath(s+".play4");i||null===n.most_moves?l._av=!1:(l.playTimeline("show"),l.from_id=t,l.from_name=o,l.game_type="most_moves",l.match=n.most_moves,l.findActor("text")._text=Text.GetString(Text.MOST_MOVES)),b5.Utils.findObjectFromPath(r).playTimeline("show"),b5.Utils.findObjectFromPath(r+".top.close").playTimeline("show")},Stats.prototype.GetStatsAsString=function(){return JSON.stringify(this)},Stats.prototype.GetStatsAsObject=function(e){return JSON.parse(e)},"use strict";var Skins={};Skins.CardPrices=[50,50,50,50,50,100,100,100,100,150,150,150,200,200,200,200],Skins.ThemePrices=[50,50,50,50,100,100,100,100,150,150,150,150,200,200,200,200,200,200],Skins.UpdateLocales=function(){b5.Utils.findObjectFromPath("gamescene.backs.title.text")._text=Text.GetString(Text.CHANGE_DECK),b5.Utils.findObjectFromPath("gamescene.themes.title.text")._text=Text.GetString(Text.CHANGE_THEME),b5.Utils.findObjectFromPath("gamescene.buycrowns.title.text")._text=Text.GetString(Text.NO_CROWNS)},Skins.UpdateCrownsUI=function(){var e=window.archon.crowns;b5.Utils.findObjectFromPath("gamescene.backs.crowns.text")._text=e,b5.Utils.findObjectFromPath("gamescene.themes.crowns.text")._text=e,b5.Utils.findObjectFromPath("gamescene.overlay.background.crowns")._text=e},Skins.AddCrowns=function(){var e=window.archon;e.crowns+=10,e.stats.crowns_earnt+=10,e.SaveGame(),e.stats.UpdateUI(),Skins.UpdateCrownsUI()},Skins.SetCardBack=function(e){var t=window.archon;t.current_back=e,t.world.deck.UpdateBacks(),Skins.UpdateCardBacks(),t.SaveGame()},Skins.IsCardBackOwned=function(e){return void 0!==window.archon.owned_backs[e]},Skins.BuyCardBack=function(e){var t=window.archon;t.crowns>=Skins.CardPrices[e]?(t.crowns-=Skins.CardPrices[e],window.archon.owned_backs[e]=1,Skins.SetCardBack(e),t.stats.decks_owned++,t.stats.UpdateUI()):window.archon.ShowBuyCrowns()},Skins.UpdateCardBacks=function(){for(var e=window.archon,a=0;16>a;a++){var t=b5.Utils.findObjectFromPath("gamescene.backs.back"+(a+1)+".button"),o=b5.Utils.findObjectFromPath("gamescene.backs.back"+(a+1)+".buybutton");e.owned_backs[a]===void 0?(t._av=!1,o._av=!0,o.findActor("text")._text=Skins.CardPrices[a]):(t._av=!0,o._av=!1,a===e.current_back?(t.findActor("text")._text=Text.GetString(Text.ACTIVE),t._atlas="button4"):(t.findActor("text")._text=Text.GetString(Text.INACTIVE),t._atlas="button5"))}Skins.UpdateCrownsUI()},Skins.SetTheme=function(e,t){var a=window.archon;a.current_theme=e,Skins.UpdateTheme(),t===void 0&&a.SaveGame();new b5.Bitmap("bg"+e,"bg"+e+".jpg",!0,function(e){var t=b5.Utils.findObjectFromPath("gamescene.bg");t.atlas=null,t._bitmap=e})},Skins.IsThemeOwned=function(e){return void 0!==window.archon.owned_themes[e]},Skins.BuyTheme=function(e){var t=window.archon;t.crowns>=Skins.ThemePrices[e]?(t.crowns-=Skins.ThemePrices[e],window.archon.owned_themes[e]=1,Skins.SetTheme(e),t.stats.boards_owned++,t.stats.UpdateUI()):window.archon.ShowBuyCrowns()},Skins.UpdateTheme=function(){for(var e=window.archon,a=0;18>a;a++){var t=b5.Utils.findObjectFromPath("gamescene.themes.theme"+(a+1)+".button"),o=b5.Utils.findObjectFromPath("gamescene.themes.theme"+(a+1)+".buybutton");e.owned_themes[a]===void 0?(t._av=!1,o._av=!0,o.findActor("text")._text=Skins.ThemePrices[a]):(t._av=!0,o._av=!1,a===e.current_theme?(t.findActor("text")._text=Text.GetString(Text.ACTIVE),t._atlas="button4"):(t.findActor("text")._text=Text.GetString(Text.INACTIVE),t._atlas="button5"))}Skins.UpdateCrownsUI()},"use_strict",Quests={},Quests.Update=function(){var e=window.archon,t=Date.now(),a=t-e.last_quest_time;return!(12>a/3600000)&&void(e.last_quest_time=t,Social.LogEvent("Quest day "+e.quest,1),e.quest_complete===e.quest&&(e.quest++,7<=e.quest&&Quests.Reset(),e.SaveGame()))},Quests.Reset=function(){var e=window.archon;e.quest=0,e.quest_complete=-1,e.pop_quest=!1},Quests.GetReward=function(e){return 0===e?30:1===e?35:2===e?40:3===e?40:4===e?45:5===e?45:6===e?50:7===e?100:void 0},Quests.CompleteQuest=function(e){var t=window.archon;if(t.quest===e&&t.quest_complete<e){var a=Quests.GetReward(e);if(t.crowns+=a,t.stats.crowns_earnt+=a,t.quest_complete=t.quest,t.stats.quests++,6===e){t.quests_weekly++,t.quest=7,t.quest_complete=7;var a=Quests.GetReward(7);t.crowns+=a,t.stats.crowns_earnt+=a}Quests.ShowComplete(e),t.pop_quest=!0,t.SaveGame(),Quests.UpdateUI(),Skins.UpdateCrownsUI(),t.stats.UpdateUI(),"poki"===FBInstant.portal&&FBInstant.ext.gameEvent({type:"happyTime",value:0.1})}},Quests.ShowComplete=function(e){var t=window.archon,a=t.quests_weekly,o=200-5*a;140>o&&(o=140);var n=300-10*a;n<180&&(n=180);var r=3e3+50*a;6e3<r&&(r=6e3);var s=b5.Utils.findObjectFromPath("gamescene.questcomplete.text");0===e?s._text=Text.GetString(Text.DAILY1,o):1===e?s._text=Text.GetString(Text.DAILY2,SecondsToString2(n)):2===e?s._text=Text.GetString(Text.DAILY3,r):3===e?s._text=Text.GetString(Text.DAILY4):4===e?s._text=Text.GetString(Text.DAILY5):5===e?s._text=Text.GetString(Text.DAILY6):6===e?s._text=Text.GetString(Text.DAILY7):7===e?s._text=Text.GetString(Text.DAILY8):void 0;b5.Utils.findObjectFromPath("gamescene.questcomplete.num")._text=""+Quests.GetReward(e),b5.Utils.findObjectFromPath("gamescene.questcomplete").playTimeline("show")},Quests.UpdateLocales=function(){var e=window.archon,t=e.quests_weekly,a=200-5*t;140>a&&(a=140);var o=300-10*t;o<180&&(o=180);var n=3e3+50*t;6e3<n&&(n=6e3),b5.Utils.findObjectFromPath(mainmenu_path+".quests.quests.quest1.text")._text=Text.GetString(Text.DAILY1,a),b5.Utils.findObjectFromPath(mainmenu_path+".quests.quests.quest2.text")._text=Text.GetString(Text.DAILY2,SecondsToString2(o)),b5.Utils.findObjectFromPath(mainmenu_path+".quests.quests.quest3.text")._text=Text.GetString(Text.DAILY3,n),b5.Utils.findObjectFromPath(mainmenu_path+".quests.quests.quest4.text")._text=Text.GetString(Text.DAILY4),b5.Utils.findObjectFromPath(mainmenu_path+".quests.quests.quest5.text")._text=Text.GetString(Text.DAILY5),b5.Utils.findObjectFromPath(mainmenu_path+".quests.quests.quest6.text")._text=Text.GetString(Text.DAILY6),b5.Utils.findObjectFromPath(mainmenu_path+".quests.quests.quest7.text")._text=Text.GetString(Text.DAILY7),b5.Utils.findObjectFromPath(mainmenu_path+".quests.quests.quest8.text")._text=Text.GetString(Text.DAILY8),b5.Utils.findObjectFromPath(mainmenu_path+".questsbutton.text")._text=Text.GetString(Text.QUESTS),b5.Utils.findObjectFromPath(mainmenu_path+".quests.top.title")._text=Text.GetString(Text.QUESTS)},Quests.UpdateUI=function(){for(var e=window.archon,a=0,t;8>a;a++)t=b5.Utils.findObjectFromPath(mainmenu_path+".quests.quests.quest"+(a+1)),a<=e.quest?(t._av=!0,t.findActor("mark")._av=!!(a<=e.quest_complete),t.findActor("spin")._av=a===e.quest_complete):t._av=!1},"use_strict",Tutorial={},Tutorial.Stage=-1,Tutorial.Localise=function(){b5.Utils.findObjectFromPath("gamescene.viewtutorial.dialog.title")._text=Text.GetString(Text.SHOW_TUTORIAL)+"?",b5.Utils.findObjectFromPath("gamescene.tutorial.foundtext")._text=Text.GetString(Text.FOUNDATION),b5.Utils.findObjectFromPath("gamescene.tutorial.tabtext")._text=Text.GetString(Text.TABLEAU),b5.Utils.findObjectFromPath("gamescene.tutorial.decktext")._text=Text.GetString(Text.DECK)},Tutorial.Reset=function(){Tutorial.Stage=0,b5.Utils.findObjectFromPath("gamescene.tutorial.board.move1").setPosition(781,-14),b5.Utils.findObjectFromPath("gamescene.tutorial.board.move2").setPosition(-89,-14),b5.Utils.findObjectFromPath("gamescene.tutorial.board.move3").setPosition(0,0),b5.Utils.findObjectFromPath("gamescene.tutorial.board.move4").setPosition(201,-14),b5.Utils.findObjectFromPath("gamescene.tutorial.board.move5").setPosition(-655,148),b5.Utils.findObjectFromPath("gamescene.tutorial.board.move5")._av=!1,b5.Utils.findObjectFromPath("gamescene.tutorial.restart")._av=!1},Tutorial.Start=function(e){window.archon.playing=!1,Tutorial.Restart(),b5.Utils.findObjectFromPath("gamescene.tutorial").playTimeline("show"),Tutorial.done_callback=e,Social.LogEvent("Show tutorial",1)},Tutorial.Close=function(){b5.Utils.findObjectFromPath("gamescene.tutorial")._av=!1,window.archon.playing=!0,Social.LogEvent("Close tutorial",1),Social.LogEvent("Close tutorial "+Tutorial.Stage,1)},Tutorial.Restart=function(){Tutorial.Reset(),Tutorial.Show(),Social.LogEvent("Restart tutorial",1)},Tutorial.Show=function(){var e=Tutorial.Stage;6>e&&(b5.Utils.findObjectFromPath("gamescene.tutorial.text")._text=Text.GetString(Text.TUT1+e)),1===e?(b5.Utils.findObjectFromPath("gamescene.tutorial.next")._av=!1,b5.Utils.findObjectFromPath("gamescene.tutorial.close")._av=!1,b5.Utils.findObjectFromPath("gamescene.tutorial.board.move1").playTimeline("move"),b5.Utils.findObjectFromPath("gamescene.tutorial.board.move1").bringToFront(),b5.Utils.RunafterTime(1,function(){b5.Utils.findObjectFromPath("gamescene.tutorial.board.move2").playTimeline("move"),b5.Utils.findObjectFromPath("gamescene.tutorial.board.move2").bringToFront()}),b5.Utils.RunafterTime(2,function(){b5.Utils.findObjectFromPath("gamescene.tutorial.next")._av=!0,b5.Utils.findObjectFromPath("gamescene.tutorial.close")._av=!0})):2===e?(b5.Utils.findObjectFromPath("gamescene.tutorial.next")._av=!1,b5.Utils.findObjectFromPath("gamescene.tutorial.close")._av=!1,b5.Utils.findObjectFromPath("gamescene.tutorial.board.move3").playTimeline("move"),b5.Utils.RunafterTime(1,function(){b5.Utils.findObjectFromPath("gamescene.tutorial.next")._av=!0,b5.Utils.findObjectFromPath("gamescene.tutorial.close")._av=!0})):3===e?(b5.Utils.findObjectFromPath("gamescene.tutorial.next")._av=!1,b5.Utils.findObjectFromPath("gamescene.tutorial.close")._av=!1,b5.Utils.findObjectFromPath("gamescene.tutorial.board.move4").playTimeline("move"),b5.Utils.RunafterTime(1,function(){b5.Utils.findObjectFromPath("gamescene.tutorial.next")._av=!0,b5.Utils.findObjectFromPath("gamescene.tutorial.close")._av=!0})):4===e?(b5.Utils.findObjectFromPath("gamescene.tutorial.next")._av=!1,b5.Utils.findObjectFromPath("gamescene.tutorial.close")._av=!1,b5.Utils.findObjectFromPath("gamescene.tutorial.board.move5").playTimeline("move"),b5.Utils.RunafterTime(1,function(){b5.Utils.findObjectFromPath("gamescene.tutorial.next")._av=!0,b5.Utils.findObjectFromPath("gamescene.tutorial.close")._av=!0})):5===e?b5.Utils.findObjectFromPath("gamescene.tutorial.restart")._av=!0:6===e&&(Tutorial.Close(),Tutorial.done_callback!==void 0&&Tutorial.done_callback())},Tutorial.Next=function(e){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),Tutorial.Stage++,Tutorial.Show()};function ConfirmViewTutorial(e,t){window.archon.muted||b5.app.findResource("tap","sound").play(),e!==void 0&&e.playTimeline("click"),t?(b5.Utils.findObjectFromPath("gamescene.viewtutorial")._av=!1,Tutorial.Start(),Social.LogEvent("Show tutorial prompted yes",1),window.archon.seen_tutorial=!0,window.archon.SaveGame()):(b5.Utils.findObjectFromPath("gamescene.viewtutorial")._av=!1,Social.LogEvent("Show tutorial prompted no",1),window.archon.seen_tutorial=!0,window.archon.SaveGame())}function ShowConfirmTutorial(){!window.archon.seen_tutorial&&2>window.archon.days&&b5.Utils.findObjectFromPath("gamescene.viewtutorial").playTimeline("show")}b5.data.gamescene={RT:"Scene",Name:"gamescene",Object:"",Position:[0,0],Layer:1,Colour:"rgb(0,0,0",Visible:!0,CanvasSize:[1900,1020],TouchPan:"None",Extents:[-500,-600,1000,1200],Active:!0,Current:!0,ClipChildren:!1,TargetX:"",TargetY:"",FollowSpeed:[1,1],VelocityDamping:[0.8,0.8],Physics:!1,Gravity:[0,6],WorldScale:20,DoSleep:!1,PhysicsTimestep:0.0333333333333333,OnCreate:"b5.app.started = GameLoaded;",OnEndTouch:"if (window.archon) window.archon.world.SceneEndTouch(this, touch_pos)",OnMoveTouch:"if (window.archon) window.archon.world.SceneMoveTouch(this, touch_pos)",OnTick:"window.archon.UpdateGame(this)",Cn:[{RT:"Icon",N:"bg",P:[0,0],SM:4,O:[0,0],Sz:[1900,1020],IAS:!0,To:!0},{RT:"Icon",N:"overlay",P:[0,0],O:[0,0],Sz:[32,32],To:!0,Ht:!1,Cn:[{RT:"Icon",N:"background",P:[0,462],O:[0,0],BG:"bottom",Sz:[1900,95],To:!0,Do:"top",Dse:!0,Cn:[{RT:"Label",N:"crowns",P:[-721,-2],O:[0,0],C:"rgba(0,0,0,1)",Sz:[200,45],Ca:!0,Text:"0",Font:"40px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Label",N:"moves",P:[-388,-2],O:[0,0],C:"rgba(0,0,0,1)",Sz:[200,45],Ca:!0,Text:"0",Font:"40px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Label",N:"time",P:[-37,-2],O:[0,0],C:"rgba(0,0,0,1)",Sz:[200,45],Ca:!0,Text:"00:00",Font:"45px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Icon",N:"quit",P:[799,-2],O:[0,0],BG:"close",Sz:[70,75],IAS:!0,OnT:"ShowRoundOverConfirm()",OnH:"ShowToolTip(this, Text.QUIT_GAME, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"help",P:[892,-2],O:[0,0],BG:"help",Sz:[80,75],IAS:!0,OnT:"ShowHelp(this)",OnH:"ShowToolTip(this, Text.SHOW_TUTORIAL, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"restart",P:[703,-2],O:[0,0],BG:"restart",Sz:[80,75],IAS:!0,OnT:"ShowRestartConfirm(this)",OnH:"ShowToolTip(this, Text.RESTART_GAME, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"shortcut",P:[599,-2],O:[0,0],V:!1,BG:"madd",Sz:[80,75],IAS:!0,Ac:!1,OnT:"SharePressed(this)",OnH:"ShowToolTip(this, Text.ADD_FRIEND, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"backs",P:[194,0],O:[0,0],BG:"backs_button",Sz:[140,70],IAS:!0,OnT:"ShowBacksScreen(this, false)",OnH:"ShowToolTip(this, Text.CHANGE_DECK, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"backgrounds",P:[354,0],O:[0,0],BG:"bg_button",Sz:[140,70],IAS:!0,OnT:"ShowThemesScreen(this, false)",OnH:"ShowToolTip(this, Text.CHANGE_THEME, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"menu",P:[0,0],O:[0,0],Sz:[32,32],M:[40,0,0,0],To:!0,Do:"bottomleft",Dse:!0,Cn:[{RT:"Icon",N:"undo",P:[0,-188],O:[0,0],BG:"undo",Sz:[120,112],IAS:!0,M:[10,0,0,470],OnT:"window.archon.world.Undo(this)",OnH:"ShowToolTip(this, Text.UNDO, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"menu",P:[0,-314],O:[0,0],BG:"menu",Sz:[120,112],IAS:!0,M:[10,0,0,470],OnT:"MainMenuPressed(this)",OnH:"ShowToolTip(this, Text.SHOW_MAIN_MENU, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"cheat",P:[0,66],O:[0,0],V:!1,BG:"steal",Sz:[120,112],IAS:!0,M:[10,0,0,350],Ac:!1,OnT:"Cheat(this)",OnH:"ShowToolTip(this, Text.STEAL_CARD, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}],Cn:[{RT:"Label",N:"remaining",P:[97,0],O:[0,0],C:"rgba(0,0,0,1)",FS:!0,Th:3,V:!1,Sz:[100,45],Ca:!0,Ac:!1,Text:"0",Font:"40px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"hint",P:[0,-61],O:[0,0],BG:"hint",Sz:[120,112],IAS:!0,M:[10,0,0,230],OnT:"Hint(this)",OnH:"ShowToolTip(this, Text.SHOW_HINT, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_x",T:!0,D:!1,TI:[0,0.1,0.2,6],E:[0,0,0,0],V:[1,1.1,1,1]},{P:"_scale_y",T:!0,D:!1,TI:[0,0.1,0.2,6],E:[0,0,0,0],V:[1,1.1,1,1]}]}]}]},{RT:"Icon",N:"challenger",P:[-524,-46],O:[0,-0.5],V:!1,BG:"challenger",Sz:[600,117],Ac:!1,Do:"bottom",TC:[{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[0,0],V:[0,1]}]}],Cn:[{RT:"Icon",N:"avatar",P:[-241,-4],O:[0,0],BG:"crown",Sz:[76,46]},{RT:"Label",N:"name",P:[-79,-26],O:[0,0],C:"rgba(0,0,0,1)",Sz:[200,30],Ca:!0,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Label",N:"moves",P:[172,-26],O:[0,0],C:"rgba(0,0,0,1)",Sz:[160,30],Ca:!0,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Label",N:"time",P:[172,19],O:[0,0],C:"rgba(0,0,0,1)",Sz:[160,30],Ca:!0,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Label",N:"score",P:[-54,20],O:[0,0],C:"rgba(0,0,0,1)",Sz:[160,30],Ca:!0,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]}]},{RT:"Icon",N:"board",P:[0,0],O:[0,0],Sz:[32,32],To:!0,Cn:[{RT:"Icon",N:"dt1",P:[-104,29],O:[0,0],C:"rgba(255,255,255,0.2509804)",Al:"0.250980392156863",CR:10,V:!1,Sz:[150,1000],IAS:!0,RA:2},{RT:"Icon",N:"dt2",P:[52,29],O:[0,0],C:"rgba(255,255,255,0.2509804)",Al:"0.250980392156863",CR:10,V:!1,Sz:[150,1000],IAS:!0,RA:2},{RT:"Icon",N:"dt3",P:[208,29],O:[0,0],C:"rgba(255,255,255,0.2509804)",Al:"0.250980392156863",CR:10,V:!1,Sz:[150,1000],IAS:!0,RA:2},{RT:"Icon",N:"dt4",P:[364,29],O:[0,0],C:"rgba(255,255,255,0.2509804)",Al:"0.250980392156863",CR:10,V:!1,Sz:[150,1000],IAS:!0,RA:2},{RT:"Icon",N:"dt5",P:[520,29],O:[0,0],C:"rgba(255,255,255,0.2509804)",Al:"0.250980392156863",CR:10,V:!1,Sz:[150,1000],IAS:!0,RA:2},{RT:"Icon",N:"dt6",P:[676,29],O:[0,0],C:"rgba(255,255,255,0.2509804)",Al:"0.250980392156863",CR:10,V:!1,Sz:[150,1000],IAS:!0,RA:2},{RT:"Icon",N:"dt7",P:[832,29],O:[0,0],C:"rgba(255,255,255,0.2509804)",Al:"0.250980392156863",CR:10,V:!1,Sz:[150,1000],IAS:!0,RA:2},{RT:"Icon",N:"t1",P:[-104,-340],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0,M:[0,0,100,0],Do:"top",Dse:!0},{RT:"Icon",N:"t2",P:[52,-340],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0,M:[0,0,100,0],Do:"top",Dse:!0},{RT:"Icon",N:"t3",P:[208,-340],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0,M:[0,0,100,0],Do:"top",Dse:!0},{RT:"Icon",N:"t4",P:[364,-340],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0,M:[0,0,100,0],Do:"top",Dse:!0},{RT:"Icon",N:"t5",P:[520,-340],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0,M:[0,0,100,0],Do:"top",Dse:!0},{RT:"Icon",N:"t6",P:[676,-340],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0,M:[0,0,100,0],Do:"top",Dse:!0},{RT:"Icon",N:"t7",P:[832,-340],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0,M:[0,0,100,0],Do:"top",Dse:!0},{RT:"Icon",N:"f1",P:[-777,-342],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0,M:[0,0,100,0],Do:"top",Dse:!0,Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"clubs",Sz:[256,269]}]},{RT:"Icon",N:"f2",P:[-621,-342],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0,M:[0,0,100,0],Do:"top",Dse:!0,Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"diamonds",Sz:[256,290]}]},{RT:"Icon",N:"f3",P:[-465,-342],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0,M:[0,0,100,0],Do:"top",Dse:!0,Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"spades",Sz:[256,305]}]},{RT:"Icon",N:"f4",P:[-309,-342],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0,M:[0,0,100,0],Do:"top",Dse:!0,Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]}]},{RT:"Icon",N:"d1",P:[-622,-4],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0,To:!0,Cn:[{RT:"Icon",N:"reset",P:[0,0],O:[0,0],CR:20,BG:"turnad",Sz:[100,93],UPO:!1,OnT:"ResetPack(this)",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]},{N:"pulse",A:[{P:"_scale_x",T:!0,D:!1,TI:[0,0.3,0.65],E:[0,0,0],V:[1,1.2,1]},{P:"_scale_y",T:!0,D:!1,TI:[0,0.3,0.65],E:[0,0,0],V:[1,1.2,1]}]}]}]},{RT:"Icon",N:"d2",P:[-465,-4],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0}]},{RT:"Icon",N:"info",P:[0,0],O:[0,0],Sz:[32,32],To:!0,Cn:[{RT:"Icon",N:"stealinfo",P:[0,0],O:[0,0],V:!1,BG:"dialog1",Sz:[700,350],IAS:!0,Ac:!1,OnT:"this._av = false;",To:!0,Cn:[{RT:"Icon",N:"icon",P:[-270,-97],O:[0,0],BG:"steal",Sz:[100,93]},{RT:"Icon",N:"icon1",P:[-270,36],O:[0,0],BG:"hint",Sz:[100,93]},{RT:"Label",N:"text",P:[58,-16],O:[0,0],C:"rgba(0,0,0,1)",Sz:[520,260],Ca:!0,Text:" ",Font:"36px Righteous-Regular",AlignH:"left",AlignV:"top",Lh:33,Mw:"520"},{RT:"Label",N:"tap",P:[0,128],O:[0,0],C:"rgba(0,0,0,1)",BG:"turnad",Sz:[600,35],Ca:!0,Text:" ",Font:"32px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:30,Mw:"600"}]},{RT:"Icon",N:"quitinfo",P:[-306,0],O:[0,0],V:!1,BG:"dialog1",Sz:[700,350],IAS:!0,Ac:!1,OnT:"this._av = false;",To:!0,Do:"bottomright",Dse:!0,TC:[{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[0,0],V:[0,1]}]}],Cn:[{RT:"Icon",N:"icon",P:[-270,-97],O:[0,0],BG:"menu",Sz:[100,93],OnT:"MainMenuPressed(this)",To:!0},{RT:"Icon",N:"icon1",P:[-270,36],O:[0,0],BG:"help",Sz:[101,109],IAS:!0,OnT:"ShowHelp(this)",To:!0},{RT:"Label",N:"text",P:[58,-16],O:[0,0],C:"rgba(0,0,0,1)",Sz:[520,260],Ca:!0,Text:" ",Font:"36px Righteous-Regular",AlignH:"left",AlignV:"top",Lh:33,Mw:"520"},{RT:"Label",N:"tap",P:[0,128],O:[0,0],C:"rgba(0,0,0,1)",BG:"turnad",Sz:[600,35],Ca:!0,Text:" ",Font:"32px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:30,Mw:"600"}]}]},{RT:"Icon",N:"mainmenu",P:[0,0],O:[0,0],V:!1,Sz:[32,32],Ac:!1,To:!0,Ht:!1,TC:[{N:"show",A:[{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[-800,0]}]}],Cn:[{RT:"Icon",N:"background",P:[0,0],SM:8,O:[0,0],C:"rgba(218,165,32,1)",V:!1,Sz:[1900,1020],RA:2,Ac:!1},{RT:"Icon",N:"historybutton",P:[-98,-36],O:[0,0],BG:"history",Sz:[256,194],IAS:!0,OnT:"ShowHistoryPressed(this)",OnH:"ShowToolTip(this, Text.MATCHHISTORY, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}],Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:20,Sz:[256,194],RA:2},{RT:"Label",N:"text",P:[0,-54],O:[0,0],C:"rgba(0,0,0,1)",Sz:[240,40],Ca:!0,Ht:!1,Text:"-",Font:"35px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"questsbutton",P:[36,183],O:[0,0],BG:"quests",Sz:[256,194],IAS:!0,OnT:"ShowQuestsPressed(this)",OnH:"ShowToolTip(this, Text.SHOWQUESTS, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}],Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:20,Sz:[256,194],RA:2},{RT:"Label",N:"text",P:[0,-62],O:[0,0],C:"rgba(0,0,0,1)",Sz:[240,40],Ca:!0,Ht:!1,Text:"-",Font:"35px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"statsbutton",P:[180,-36],O:[0,0],BG:"stats",Sz:[256,194],IAS:!0,OnT:"ShowStatsPressed(this)",OnH:"ShowToolTip(this, Text.STATISTICS, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}],Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:20,Sz:[256,194],RA:2},{RT:"Label",N:"text",P:[0,-54],O:[0,0],C:"rgba(0,0,0,1)",Sz:[250,40],Ca:!0,Ht:!1,Text:"-",Font:"35px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"play",P:[41,-232],O:[0,0],BG:"button1",Sz:[400,130],IAS:!0,OnT:"StartGamePressed(false)",OnH:"ShowToolTip(this, Text.NEW_GAME, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,TI:[0,0.5,1],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,TI:[0,0.5,1],E:[0,0,0],V:[1,1.1,1]}]},{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}],Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:20,Sz:[400,130],RA:2}]},{RT:"Icon",N:"back",P:[36,381],O:[0,0],BG:"back",Sz:[250,100],IAS:!0,OnT:"HideMainMenu(this)",OnH:"ShowToolTip(this, Text.BACK_TO_GAME, touch_pos)",OnHE:"HideToolTip()",Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:60,Sz:[250,100],RA:2}]},{RT:"Icon",N:"tripeaks",P:[760,-272],O:[0,0],V:!1,BG:"tripeaks_icon",Sz:[256,194],IAS:!0,Ac:!1,OnT:"PlayOtherGame(this, 0)",OnH:"ShowToolTip(this, Text.PLAY_TRIPEAKS, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}],Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:20,Sz:[256,194],RA:2}]},{RT:"Icon",N:"golf",P:[760,-66],O:[0,0],V:!1,BG:"golf_icon",Sz:[256,194],IAS:!0,Ac:!1,OnT:"PlayOtherGame(this, 1)",OnH:"ShowToolTip(this, Text.PLAY_GOLF, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}],Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:20,Sz:[256,194],RA:2}]},{RT:"Icon",N:"solitaire",P:[760,142],O:[0,0],V:!1,BG:"solitaire_icon",Sz:[256,194],IAS:!0,Ac:!1,OnT:"PlayOtherGame(this, 2)",OnH:"ShowToolTip(this, Text.PLAY_SOLITAIRE2, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}],Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:20,Sz:[256,194],RA:2}]},{RT:"Icon",N:"reverse",P:[760,352],O:[0,0],V:!1,BG:"rev_icon",Sz:[256,194],IAS:!0,Ac:!1,OnT:"PlayOtherGame(this, 3)",OnH:"ShowToolTip(this, Text.PLAY_REVERSE, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}],Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:20,Sz:[256,194],RA:2}]},{RT:"Icon",N:"header",P:[0,-454],O:[0,0],BG:"topbar",Sz:[1900,111],To:!0,Ht:!1,Do:"top",Dse:!0,Cn:[{RT:"Label",N:"date",P:[-744,-7],O:[0,0],C:"rgba(0,0,0,1)",BG:"tooltip",Sz:[220,40],Ca:!0,Ht:!1,Text:"-",Font:"38px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Label",N:"bestscore",P:[-432,-22],O:[0,0],C:"rgba(0,0,0,1)",BG:"tooltip",Sz:[200,35],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Label",N:"crowns",P:[-59,-7],O:[0,0],C:"rgba(0,0,0,1)",BG:"tooltip",Sz:[200,40],Ca:!0,Ht:!1,Text:"-",Font:"38px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Label",N:"rank",P:[-432,8],O:[0,0],C:"rgba(0,0,0,1)",BG:"tooltip",Sz:[200,35],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Label",N:"title",P:[228,-8],O:[0,0],C:"rgba(0,0,0,1)",BG:"tooltip",Sz:[300,80],Ca:!0,Ht:!1,Text:"Australian Patience v1.2",Font:"35px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:32,Mw:"300"},{RT:"Icon",N:"backs",P:[481,-7],O:[0,0],BG:"backs_button",Sz:[159,78],OnT:"ShowBacksScreen(this, true)",OnH:"ShowToolTip(this, Text.CHANGE_DECK, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,TI:[0,0.5,4],E:[14,0,0],V:[1.2,1,1]}]},{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"backgrounds",P:[659,-7],O:[0,0],BG:"bg_button",Sz:[159,78],OnT:"ShowThemesScreen(this, true)",OnH:"ShowToolTip(this, Text.CHANGE_THEME, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_x",T:!0,D:!1,TI:[0,0.5,4],E:[14,0,0],V:[1.2,1,1]}]}]},{RT:"Icon",N:"settings",P:[839,-7],O:[0,0],BG:"settingsbutton",Sz:[159,78],OnT:"ShowSettingsScreen(this, true)",OnH:"ShowToolTip(this, Text.SETTINGS, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.45],E:[14,0],V:[0,1]}]},{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"history",P:[1538,42],O:[0,0],C:"rgba(238,130,238,1)",CR:20,V:!1,Sz:[1080,800],IAS:!0,RA:2,Ac:!1,ClV:!1,To:!0,Ht:!1,TC:[{N:"show",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[0,0],V:[1538,383]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[0,0],V:[42,42]}]}],Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:20,Sz:[1080,800],RA:2},{RT:"Icon",N:"listbox",P:[0,28],S:[1.4,1.4],O:[0,0],C:"rgba(255,248,220,1)",CR:10,Sz:[710,480],M:[0,0,45,0],RA:2,ClV:!1,SR:[0,-1000,0,1000],To:!0,Dse:!0,Cn:[{RT:"Icon",N:"entry1",P:[0,-174],O:[0,0],BG:"match",Sz:[700,100],UPO:!1,OnT:"ToggleMatchEntrySize(this)",OnTi:"UpdateMatchEntrySize(this)",Bu:!0,To:!0,Cn:[{RT:"Label",N:"seed",P:[-198,-22],O:[0,0],C:"rgba(0,0,0,1)",Sz:[200,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"date",P:[-198,13],O:[0,0],C:"rgba(0,0,0,1)",Sz:[200,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"moves",P:[-15,-22],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[109,-22],O:[0,0],C:"rgba(0,0,0,1)",BG:"topbar",Sz:[80,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"time",P:[-15,13],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,28],Ca:!0,Text:"-",Font:"19px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"mode",P:[109,13],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,28],Ca:!0,Text:"-",Font:"20px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[204,-5],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"ReplayMatchPressed(this, 0)",OnH:"ShowToolTip(this, Text.REPLAY_HAND, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"ask",P:[294,-5],O:[0,0],V:!1,BG:"mhelp",Sz:[77,63],IAS:!0,Ac:!1,OnT:"AskForHelpPressed(this, 0)",OnH:"ShowToolTip(this, Text.ASK_SOLUTION, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"share",P:[294,-5],O:[0,0],BG:"mshare",Sz:[77,63],IAS:!0,OnT:"ShareSolutionPressed(this, 0)",OnH:"ShowToolTip(this, Text.SHARE_HAND, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"entry2",P:[0,-74],O:[0,0],BG:"match",Sz:[700,100],UPO:!1,OnT:"ToggleMatchEntrySize(this)",OnTi:"UpdateMatchEntrySize(this)",Bu:!0,To:!0,Cn:[{RT:"Label",N:"seed",P:[-198,-22],O:[0,0],C:"rgba(0,0,0,1)",Sz:[200,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"date",P:[-198,13],O:[0,0],C:"rgba(0,0,0,1)",Sz:[200,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"moves",P:[-15,-22],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[109,-22],O:[0,0],C:"rgba(0,0,0,1)",BG:"topbar",Sz:[80,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"time",P:[-15,13],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,28],Ca:!0,Text:"-",Font:"19px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"mode",P:[109,13],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,28],Ca:!0,Text:"-",Font:"20px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[204,-5],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"ReplayMatchPressed(this, 1)",OnH:"ShowToolTip(this, Text.REPLAY_HAND, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"ask",P:[294,-5],O:[0,0],V:!1,BG:"mhelp",Sz:[77,63],IAS:!0,Ac:!1,OnT:"AskForHelpPressed(this, 0)",OnH:"ShowToolTip(this, Text.ASK_SOLUTION, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"share",P:[294,-5],O:[0,0],BG:"mshare",Sz:[77,63],IAS:!0,OnT:"ShareSolutionPressed(this, 0)",OnH:"ShowToolTip(this, Text.SHARE_HAND, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"entry3",P:[0,26],O:[0,0],BG:"match",Sz:[700,100],UPO:!1,OnT:"ToggleMatchEntrySize(this)",OnTi:"UpdateMatchEntrySize(this)",Bu:!0,To:!0,Cn:[{RT:"Label",N:"seed",P:[-198,-22],O:[0,0],C:"rgba(0,0,0,1)",Sz:[200,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"date",P:[-198,13],O:[0,0],C:"rgba(0,0,0,1)",Sz:[200,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"moves",P:[-15,-22],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[109,-22],O:[0,0],C:"rgba(0,0,0,1)",BG:"topbar",Sz:[80,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"time",P:[-15,13],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,28],Ca:!0,Text:"-",Font:"19px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"mode",P:[109,13],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,28],Ca:!0,Text:"-",Font:"20px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[204,-5],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"ReplayMatchPressed(this, 2)",OnH:"ShowToolTip(this, Text.REPLAY_HAND, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"ask",P:[294,-5],O:[0,0],V:!1,BG:"mhelp",Sz:[77,63],IAS:!0,Ac:!1,OnT:"AskForHelpPressed(this, 0)",OnH:"ShowToolTip(this, Text.ASK_SOLUTION, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"share",P:[294,-5],O:[0,0],BG:"mshare",Sz:[77,63],IAS:!0,OnT:"ShareSolutionPressed(this, 0)",OnH:"ShowToolTip(this, Text.SHARE_HAND, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"entry4",P:[0,126],O:[0,0],BG:"match",Sz:[700,100],UPO:!1,OnT:"ToggleMatchEntrySize(this)",OnTi:"UpdateMatchEntrySize(this)",Bu:!0,To:!0,Cn:[{RT:"Label",N:"seed",P:[-198,-22],O:[0,0],C:"rgba(0,0,0,1)",Sz:[200,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"date",P:[-198,13],O:[0,0],C:"rgba(0,0,0,1)",Sz:[200,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"moves",P:[-15,-22],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[109,-22],O:[0,0],C:"rgba(0,0,0,1)",BG:"topbar",Sz:[80,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"time",P:[-15,13],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,28],Ca:!0,Text:"-",Font:"19px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"mode",P:[109,13],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,28],Ca:!0,Text:"-",Font:"20px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[204,-5],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"ReplayMatchPressed(this, 3)",OnH:"ShowToolTip(this, Text.REPLAY_HAND, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"ask",P:[294,-5],O:[0,0],V:!1,BG:"mhelp",Sz:[77,63],IAS:!0,Ac:!1,OnT:"AskForHelpPressed(this, 0)",OnH:"ShowToolTip(this, Text.ASK_SOLUTION, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"share",P:[294,-5],O:[0,0],BG:"mshare",Sz:[77,63],IAS:!0,OnT:"ShareSolutionPressed(this, 0)",OnH:"ShowToolTip(this, Text.SHARE_HAND, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"left",P:[-288,203],O:[0,0],BG:"left",Sz:[120,65],OnT:"ChangeHistoryPagePressed(this, -1)",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"right",P:[284,203],O:[0,0],BG:"right",Sz:[120,65],OnT:"ChangeHistoryPagePressed(this, 1)",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Label",N:"page",P:[0,208],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[250,40],Ca:!0,Text:"-",Font:"35px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:24}]},{RT:"Icon",N:"top",P:[0,-338],O:[0,0],C:"rgba(0,0,139,1)",Sz:[990,60],RA:2,To:!0,Cn:[{RT:"Label",N:"title",P:[0,0],O:[0,0],C:"rgba(255,250,205,1)",SC:"rgba(0,0,0,1)",Sz:[880,45],Ca:!0,Text:"-",Font:"40px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:24}]},{RT:"Icon",N:"close",P:[-524,-389],O:[0,0],BG:"close",Sz:[65,70],OnT:"HideHistoryPressed()",To:!0}]},{RT:"Icon",N:"friendstats",P:[-661,46],O:[0,0],C:"rgba(238,130,238,1)",CR:20,V:!1,Sz:[460,800],IAS:!0,RA:2,Ac:!1,ClV:!1,To:!0,Ht:!1,TC:[{N:"show",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.45],E:[0,0],V:[-629,-169]}]}],Cn:[{RT:"Icon",N:"listbox",P:[0,-38],O:[0,0],C:"rgba(255,248,220,1)",CR:10,Sz:[410,480],M:[0,0,45,0],RA:2,ClV:!1,SR:[0,-1000,0,1000],To:!0,Dse:!0,Cn:[{RT:"Label",N:"text",P:[0,3],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[400,480],Ca:!0,Text:"-",Font:"28px Righteous-Regular",AlignH:"left",AlignV:"top",Lh:28,Mw:"400"}]},{RT:"Icon",N:"replay",P:[0,285],O:[0,0],C:"rgba(255,248,220,1)",CR:10,Sz:[410,180],M:[0,0,45,0],RA:2,ClV:!1,SR:[0,-1000,0,1000],To:!0,Dse:!0,Cn:[{RT:"Icon",N:"play1",P:[-99,-42],O:[0,0],V:!1,BG:"button2",Sz:[182,73],IAS:!0,Ac:!1,OnT:"PlayGameFromFriendStatsPressed(this)",OnH:"ShowToolTip(this, Text.FRIEND_REPLAY_FASTEST, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,DE:0.5,TI:[0,0.45],E:[14,14],V:[0,1]}]}],Cn:[{RT:"Label",N:"text",P:[30,0],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[110,70],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:25,Mw:"110"}]},{RT:"Icon",N:"play2",P:[100,-42],O:[0,0],V:!1,BG:"button2",Sz:[182,73],IAS:!0,Ac:!1,OnT:"PlayGameFromFriendStatsPressed(this)",OnH:"ShowToolTip(this, Text.FRIEND_REPLAY_SLOWEST, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,DE:0.5,TI:[0,0.45],E:[14,14],V:[0,1]}]}],Cn:[{RT:"Label",N:"text",P:[30,0],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[110,70],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:25,Mw:"110"}]},{RT:"Icon",N:"play3",P:[-99,41],O:[0,0],V:!1,BG:"button2",Sz:[182,73],IAS:!0,Ac:!1,OnT:"PlayGameFromFriendStatsPressed(this)",OnH:"ShowToolTip(this, Text.FRIEND_REPLAY_FEWEST, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,DE:0.5,TI:[0,0.45],E:[14,14],V:[0,1]}]}],Cn:[{RT:"Label",N:"text",P:[30,0],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[110,70],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:25,Mw:"110"}]},{RT:"Icon",N:"play4",P:[100,41],O:[0,0],V:!1,BG:"button2",Sz:[182,73],IAS:!0,Ac:!1,OnT:"PlayGameFromFriendStatsPressed(this)",OnH:"ShowToolTip(this, Text.FRIEND_REPLAY_MOST, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,DE:0.5,TI:[0,0.45],E:[14,14],V:[0,1]}]}],Cn:[{RT:"Label",N:"text",P:[30,0],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[110,70],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:25,Mw:"110"}]}]},{RT:"Icon",N:"top",P:[0,-326],O:[0,0],C:"rgba(0,0,139,1)",Sz:[410,100],RA:2,OnT:"SharePressed(this)",To:!0,Cn:[{RT:"Icon",N:"avatar",P:[-154,0],O:[0,0],Sz:[70,70]},{RT:"Icon",N:"close",P:[157,-1],O:[0,0],BG:"close",Sz:[65,70],OnT:"CloseFriendStats(this)",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,DE:0.5,TI:[0,0.45],E:[14,14],V:[0,1]}]}]},{RT:"Label",N:"title",P:[6,-1],O:[0,0],C:"rgba(255,250,205,1)",SC:"rgba(0,0,0,1)",Sz:[210,80],Ca:!0,Text:"-",Font:"35px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:24}]}]},{RT:"Icon",N:"leaders",P:[-661,46],O:[0,0],C:"rgba(238,130,238,1)",CR:20,V:!1,Sz:[520,800],IAS:!0,RA:2,Ac:!1,To:!0,Ht:!1,Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:20,Sz:[520,800],RA:2},{RT:"Icon",N:"listbox",P:[0,-17],O:[0,0],C:"rgba(255,248,220,1)",CR:10,Sz:[439,580],M:[0,0,45,0],RA:2,Vi:!0,ClV:!1,SR:[0,-1000,0,1000],To:!0,CC:!0,Dse:!0,Cn:[{RT:"Icon",N:"entry1",P:[0,-238],O:[0,0],BG:"leader",Sz:[439,99],UPO:!1,Bu:!0,To:!0,Ht:!1,Cn:[{RT:"Icon",N:"photo",P:[-172,-3],O:[0,0],Sz:[70,70],IAS:!0,Ht:!1},{RT:"Label",N:"name",P:[-52,-19],O:[0,0],C:"rgba(205,133,63,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[-52,16],O:[0,0],C:"rgba(0,0,0,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[70,0],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"PlayFriendPressed2(this, 0)",OnH:"ShowToolTip(this, Text.PLAY_FRIEND, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play1",P:[160,0],O:[0,0],BG:"mstats",Sz:[77,63],IAS:!0,OnT:"ShowFriendStats(this, 0)",OnH:"ShowToolTip(this, Text.FRIEND_STATS, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play2",P:[160,0],O:[0,0],V:!1,BG:"madd",Sz:[77,63],IAS:!0,Ac:!1,OnT:"PlayFriendPressed(this)",OnH:"ShowToolTip(this, Text.ADD_FRIEND, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"entry2",P:[0,-139],O:[0,0],BG:"leader",Sz:[439,99],UPO:!1,Bu:!0,To:!0,Ht:!1,Cn:[{RT:"Icon",N:"photo",P:[-172,-3],O:[0,0],Sz:[70,70],IAS:!0},{RT:"Label",N:"name",P:[-52,-19],O:[0,0],C:"rgba(205,133,63,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[-52,16],O:[0,0],C:"rgba(0,0,0,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[70,0],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"PlayFriendPressed2(this, 1)",OnH:"ShowToolTip(this, Text.PLAY_FRIEND, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play1",P:[160,0],O:[0,0],BG:"mstats",Sz:[77,63],IAS:!0,OnT:"ShowFriendStats(this, 1)",OnH:"ShowToolTip(this, Text.FRIEND_STATS, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play2",P:[160,0],O:[0,0],V:!1,BG:"madd",Sz:[77,63],IAS:!0,Ac:!1,OnT:"PlayFriendPressed(this)",OnH:"ShowToolTip(this, Text.ADD_FRIEND, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"entry3",P:[0,-40],O:[0,0],BG:"leader",Sz:[439,99],UPO:!1,Bu:!0,To:!0,Ht:!1,Cn:[{RT:"Icon",N:"photo",P:[-172,-3],O:[0,0],Sz:[70,70],IAS:!0},{RT:"Label",N:"name",P:[-52,-19],O:[0,0],C:"rgba(205,133,63,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[-52,16],O:[0,0],C:"rgba(0,0,0,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[70,0],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"PlayFriendPressed2(this, 2)",OnH:"ShowToolTip(this, Text.PLAY_FRIEND, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play1",P:[160,0],O:[0,0],BG:"mstats",Sz:[77,63],IAS:!0,OnT:"ShowFriendStats(this, 2)",OnH:"ShowToolTip(this, Text.FRIEND_STATS, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play2",P:[160,0],O:[0,0],V:!1,BG:"madd",Sz:[77,63],IAS:!0,Ac:!1,OnT:"PlayFriendPressed(this)",OnH:"ShowToolTip(this, Text.ADD_FRIEND, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"entry4",P:[0,59],O:[0,0],BG:"leader",Sz:[439,99],UPO:!1,Bu:!0,To:!0,Ht:!1,Cn:[{RT:"Icon",N:"photo",P:[-172,-3],O:[0,0],Sz:[70,70],IAS:!0},{RT:"Label",N:"name",P:[-52,-19],O:[0,0],C:"rgba(205,133,63,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[-52,16],O:[0,0],C:"rgba(0,0,0,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[70,0],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"PlayFriendPressed2(this, 3)",OnH:"ShowToolTip(this, Text.PLAY_FRIEND, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play1",P:[160,0],O:[0,0],BG:"mstats",Sz:[77,63],IAS:!0,OnT:"ShowFriendStats(this, 3)",OnH:"ShowToolTip(this, Text.FRIEND_STATS, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play2",P:[160,0],O:[0,0],V:!1,BG:"madd",Sz:[77,63],IAS:!0,Ac:!1,OnT:"PlayFriendPressed(this)",OnH:"ShowToolTip(this, Text.ADD_FRIEND, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"entry5",P:[0,158],O:[0,0],BG:"leader",Sz:[439,99],UPO:!1,Bu:!0,To:!0,Ht:!1,Cn:[{RT:"Icon",N:"photo",P:[-172,-3],O:[0,0],Sz:[70,70],IAS:!0},{RT:"Label",N:"name",P:[-52,-19],O:[0,0],C:"rgba(205,133,63,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[-52,16],O:[0,0],C:"rgba(0,0,0,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[70,0],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"PlayFriendPressed2(this, 4)",OnH:"ShowToolTip(this, Text.PLAY_FRIEND, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play1",P:[160,0],O:[0,0],BG:"mstats",Sz:[77,63],IAS:!0,OnT:"ShowFriendStats(this, 4)",OnH:"ShowToolTip(this, Text.FRIEND_STATS, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play2",P:[160,0],O:[0,0],V:!1,BG:"madd",Sz:[77,63],IAS:!0,Ac:!1,OnT:"PlayFriendPressed(this)",OnH:"ShowToolTip(this, Text.ADD_FRIEND, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"entry6",P:[0,257],O:[0,0],BG:"leader",Sz:[439,99],UPO:!1,Bu:!0,To:!0,Ht:!1,Cn:[{RT:"Icon",N:"photo",P:[-172,-3],O:[0,0],Sz:[70,70],IAS:!0},{RT:"Label",N:"name",P:[-52,-19],O:[0,0],C:"rgba(205,133,63,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[-52,16],O:[0,0],C:"rgba(0,0,0,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[70,0],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"PlayFriendPressed2(this, 5)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play1",P:[160,0],O:[0,0],BG:"mstats",Sz:[77,63],IAS:!0,OnT:"ShowFriendStats(this, 5)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play2",P:[160,0],O:[0,0],V:!1,BG:"madd",Sz:[77,63],IAS:!0,Ac:!1,OnT:"PlayFriendPressed(this)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"entry7",P:[0,356],O:[0,0],BG:"leader",Sz:[439,99],UPO:!1,Bu:!0,To:!0,Ht:!1,Cn:[{RT:"Icon",N:"photo",P:[-172,-3],O:[0,0],Sz:[70,70],IAS:!0},{RT:"Label",N:"name",P:[-52,-19],O:[0,0],C:"rgba(205,133,63,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[-52,16],O:[0,0],C:"rgba(0,0,0,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[70,0],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"PlayFriendPressed2(this, 6)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play1",P:[160,0],O:[0,0],BG:"mstats",Sz:[77,63],IAS:!0,OnT:"ShowFriendStats(this, 6)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play2",P:[160,0],O:[0,0],V:!1,BG:"madd",Sz:[77,63],IAS:!0,Ac:!1,OnT:"PlayFriendPressed(this)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"entry8",P:[0,455],O:[0,0],BG:"leader",Sz:[439,99],UPO:!1,Bu:!0,To:!0,Ht:!1,Cn:[{RT:"Icon",N:"photo",P:[-172,-3],O:[0,0],Sz:[70,70],IAS:!0},{RT:"Label",N:"name",P:[-52,-19],O:[0,0],C:"rgba(205,133,63,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[-52,16],O:[0,0],C:"rgba(0,0,0,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[70,0],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"PlayFriendPressed2(this, 7)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play1",P:[160,0],O:[0,0],BG:"mstats",Sz:[77,63],IAS:!0,OnT:"ShowFriendStats(this, 7)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play2",P:[160,0],O:[0,0],V:!1,BG:"madd",Sz:[77,63],IAS:!0,Ac:!1,OnT:"PlayFriendPressed(this)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"entry9",P:[0,554],O:[0,0],BG:"leader",Sz:[439,99],UPO:!1,Bu:!0,To:!0,Ht:!1,Cn:[{RT:"Icon",N:"photo",P:[-172,-3],O:[0,0],Sz:[70,70],IAS:!0},{RT:"Label",N:"name",P:[-52,-19],O:[0,0],C:"rgba(205,133,63,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[-52,16],O:[0,0],C:"rgba(0,0,0,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[70,0],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"PlayFriendPressed2(this, 8)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play1",P:[160,0],O:[0,0],BG:"mstats",Sz:[77,63],IAS:!0,OnT:"ShowFriendStats(this, 8)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play2",P:[160,0],O:[0,0],V:!1,BG:"madd",Sz:[77,63],IAS:!0,Ac:!1,OnT:"PlayFriendPressed(this)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"entry10",P:[0,653],O:[0,0],BG:"leader",Sz:[439,99],UPO:!1,Bu:!0,To:!0,Ht:!1,Cn:[{RT:"Icon",N:"photo",P:[-172,-3],O:[0,0],Sz:[70,70],IAS:!0},{RT:"Label",N:"name",P:[-52,-19],O:[0,0],C:"rgba(205,133,63,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[-52,16],O:[0,0],C:"rgba(0,0,0,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[70,0],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"PlayFriendPressed2(this, 9)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play1",P:[160,0],O:[0,0],BG:"mstats",Sz:[77,63],IAS:!0,OnT:"ShowFriendStats(this, 9)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play2",P:[160,0],O:[0,0],V:!1,BG:"madd",Sz:[77,63],IAS:!0,Ac:!1,OnT:"PlayFriendPressed(this)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"entry11",P:[0,752],O:[0,0],BG:"leader",Sz:[439,99],UPO:!1,Bu:!0,To:!0,Ht:!1,Cn:[{RT:"Icon",N:"photo",P:[-172,-3],O:[0,0],Sz:[70,70],IAS:!0},{RT:"Label",N:"name",P:[-52,-19],O:[0,0],C:"rgba(205,133,63,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[-52,16],O:[0,0],C:"rgba(0,0,0,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[70,0],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"PlayFriendPressed2(this, 10)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play1",P:[160,0],O:[0,0],BG:"mstats",Sz:[77,63],IAS:!0,OnT:"ShowFriendStats(this, 10)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play2",P:[160,0],O:[0,0],V:!1,BG:"madd",Sz:[77,63],IAS:!0,Ac:!1,OnT:"PlayFriendPressed(this)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"entry12",P:[0,851],O:[0,0],BG:"leader",Sz:[439,99],UPO:!1,Bu:!0,To:!0,Ht:!1,Cn:[{RT:"Icon",N:"photo",P:[-172,-3],O:[0,0],Sz:[70,70],IAS:!0},{RT:"Label",N:"name",P:[-52,-19],O:[0,0],C:"rgba(205,133,63,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[-52,16],O:[0,0],C:"rgba(0,0,0,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[70,0],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"PlayFriendPressed2(this, 11)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play1",P:[160,0],O:[0,0],BG:"mstats",Sz:[77,63],IAS:!0,OnT:"ShowFriendStats(this, 11)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play2",P:[160,0],O:[0,0],V:!1,BG:"madd",Sz:[77,63],IAS:!0,Ac:!1,OnT:"PlayFriendPressed(this)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"entry13",P:[0,950],O:[0,0],BG:"leader",Sz:[439,99],UPO:!1,Bu:!0,To:!0,Ht:!1,Cn:[{RT:"Icon",N:"photo",P:[-172,-3],O:[0,0],Sz:[70,70],IAS:!0},{RT:"Label",N:"name",P:[-52,-19],O:[0,0],C:"rgba(205,133,63,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[-52,16],O:[0,0],C:"rgba(0,0,0,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[70,0],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"PlayFriendPressed2(this, 12)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play1",P:[160,0],O:[0,0],BG:"mstats",Sz:[77,63],IAS:!0,OnT:"ShowFriendStats(this, 12)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play2",P:[160,0],O:[0,0],V:!1,BG:"madd",Sz:[77,63],IAS:!0,Ac:!1,OnT:"PlayFriendPressed(this)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"entry14",P:[0,1049],O:[0,0],BG:"leader",Sz:[439,99],UPO:!1,Bu:!0,To:!0,Ht:!1,Cn:[{RT:"Icon",N:"photo",P:[-172,-3],O:[0,0],Sz:[70,70],IAS:!0},{RT:"Label",N:"name",P:[-52,-19],O:[0,0],C:"rgba(205,133,63,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[-52,16],O:[0,0],C:"rgba(0,0,0,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[70,0],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"PlayFriendPressed2(this, 13)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play1",P:[160,0],O:[0,0],BG:"mstats",Sz:[77,63],IAS:!0,OnT:"ShowFriendStats(this, 13)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play2",P:[160,0],O:[0,0],V:!1,BG:"madd",Sz:[77,63],IAS:!0,Ac:!1,OnT:"PlayFriendPressed(this)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"entry15",P:[0,1148],O:[0,0],BG:"leader",Sz:[439,99],UPO:!1,Bu:!0,To:!0,Ht:!1,Cn:[{RT:"Icon",N:"photo",P:[-172,-3],O:[0,0],Sz:[70,70],IAS:!0},{RT:"Label",N:"name",P:[-52,-19],O:[0,0],C:"rgba(205,133,63,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[-52,16],O:[0,0],C:"rgba(0,0,0,1)",Sz:[140,28],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"play",P:[70,0],O:[0,0],BG:"mplay",Sz:[77,63],IAS:!0,OnT:"PlayFriendPressed2(this, 14)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play1",P:[160,0],O:[0,0],BG:"mstats",Sz:[77,63],IAS:!0,OnT:"ShowFriendStats(this, 14)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"play2",P:[160,0],O:[0,0],V:!1,BG:"madd",Sz:[77,63],IAS:!0,Ac:!1,OnT:"PlayFriendPressed(this)",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]}]}]},{RT:"Icon",N:"bottom",P:[-1,335],O:[0,0],C:"rgba(255,248,220,1)",CR:10,Sz:[439,100],RA:2,OnT:"SharePressed(this)",To:!0,TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,TI:[0,0.2,0.35,2,2.2,2.35,4],E:[0,0,0,0,0,0,0],V:[1,1.05,1,1,1.05,1,1]},{P:"_scale_y",T:!0,D:!1,TI:[0,0.2,0.35,2,2.2,2.35,4],E:[0,0,0,0,0,0,0],V:[1,1.05,1,1,1.05,1,1]}]},{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}],Cn:[{RT:"Icon",N:"invite",P:[143,0],O:[0,0],BG:"addfriend",Sz:[141,73],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,TI:[0,0.5,1],E:[0,0,0],V:[1,1.2,1]},{P:"_scale_y",T:!0,D:!1,A:!1,TI:[0,0.5,1],E:[0,0,0],V:[1,1.2,1]}]},{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}]},{RT:"Label",N:"friends",P:[-73,0],O:[0,0],C:"rgba(0,0,139,1)",SC:"rgba(0,0,0,1)",Sz:[270,100],Ca:!0,Text:"-",Font:"32px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:32,Mw:"270"}]},{RT:"Icon",N:"top",P:[0,-338],O:[0,0],C:"rgba(0,0,0,0)",Al:"0",Sz:[440,60],RA:2,To:!0,Ht:!1,Cn:[{RT:"Icon",N:"friendtab",P:[-110,0],O:[0,0],C:"rgba(0,0,128,1)",Sz:[220,60],RA:2,OnT:"ShowFriendLeaders(this)",To:!0},{RT:"Icon",N:"globaltab",P:[111,0],O:[0,0],C:"rgba(255,69,0,1)",Sz:[220,60],RA:2,OnT:"ShowGlobalLeaders(this)",To:!0},{RT:"Label",N:"friends",P:[-108,0],O:[0,0],SC:"rgba(0,0,0,1)",Sz:[220,40],Ca:!0,Ht:!1,Text:"-",Font:"35px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:24},{RT:"Label",N:"global",P:[112,0],O:[0,0],C:"rgba(230,230,230,1)",SC:"rgba(0,0,0,1)",Sz:[200,40],Ca:!0,Ht:!1,Text:"-",Font:"35px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:24}]}]},{RT:"Icon",N:"stats",P:[1394,42],O:[0,0],C:"rgba(238,130,238,1)",CR:20,Sz:[800,800],IAS:!0,RA:2,ClV:!1,To:!0,Ht:!1,TC:[{N:"show",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[0,0],V:[1394,521]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[0,0],V:[42,42]}]}],Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:20,Sz:[800,800],RA:2},{RT:"Icon",N:"listbox",P:[117,23],O:[0,0],C:"rgba(255,248,220,1)",CR:10,Sz:[510,660],M:[0,0,45,0],RA:2,ClV:!1,SR:[0,-1000,0,1000],To:!0,Dse:!0,Cn:[{RT:"Label",N:"text",P:[0,3],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[480,640],Ca:!0,Text:"-",Font:"35px Righteous-Regular",AlignH:"left",AlignV:"top",Lh:35,Mw:"480"}]},{RT:"Icon",N:"replay",P:[-264,26],O:[0,0],C:"rgba(255,248,220,1)",CR:10,Sz:[210,660],M:[0,0,45,0],RA:2,ClV:!1,SR:[0,-1000,0,1000],To:!0,Dse:!0,Cn:[{RT:"Icon",N:"play1",P:[-1,-272],O:[0,0],V:!1,BG:"button2",Sz:[182,73],IAS:!0,Ac:!1,OnT:"ReplayGamePressed(this)",OnH:"ShowToolTip(this, Text.REPLAY_FASTEST, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.45],E:[14,14],V:[0,1]}]}],Cn:[{RT:"Label",N:"text",P:[30,0],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[110,70],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:25,Mw:"110"}]},{RT:"Icon",N:"play2",P:[-1,-179],O:[0,0],V:!1,BG:"button2",Sz:[182,73],IAS:!0,Ac:!1,OnT:"ReplayGamePressed(this)",OnH:"ShowToolTip(this, Text.REPLAY_SLOWEST, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.45],E:[14,14],V:[0,1]}]}],Cn:[{RT:"Label",N:"text",P:[30,0],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[110,70],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:25,Mw:"110"}]},{RT:"Icon",N:"play3",P:[0,-86],O:[0,0],V:!1,BG:"button2",Sz:[182,73],IAS:!0,Ac:!1,OnT:"ReplayGamePressed(this)",OnH:"ShowToolTip(this, Text.REPLAY_FEWEST, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.45],E:[14,14],V:[0,1]}]}],Cn:[{RT:"Label",N:"text",P:[30,0],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[110,70],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:25,Mw:"110"}]},{RT:"Icon",N:"play4",P:[0,7],O:[0,0],V:!1,BG:"button2",Sz:[182,73],IAS:!0,Ac:!1,OnT:"ReplayGamePressed(this)",OnH:"ShowToolTip(this, Text.REPLAY_MOST, touch_pos)",OnHE:"HideToolTip()",Bu:!0,To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.45],E:[14,14],V:[0,1]}]}],Cn:[{RT:"Label",N:"text",P:[30,0],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[110,70],Ca:!0,Text:"-",Font:"25px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:25,Mw:"110"}]}]},{RT:"Icon",N:"top",P:[2,-337],O:[0,0],C:"rgba(0,0,139,1)",Sz:[740,60],RA:2,To:!0,Cn:[{RT:"Label",N:"title",P:[0,0],O:[0,0],C:"rgba(255,250,205,1)",SC:"rgba(0,0,0,1)",Sz:[600,45],Ca:!0,Text:"Statistics",Font:"40px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:24}]},{RT:"Icon",N:"close",P:[-391,-390],O:[0,0],BG:"close",Sz:[65,70],OnT:"HideStatsPressed()",To:!0}]},{RT:"Icon",N:"quests",P:[1394,42],O:[0,0],C:"rgba(238,130,238,1)",CR:20,Sz:[670,800],IAS:!0,RA:2,ClV:!1,To:!0,Ht:!1,TC:[{N:"show",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[0,0],V:[1394,587]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[0,0],V:[42,42]}]}],Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:20,Sz:[650,800],RA:2},{RT:"Icon",N:"quests",P:[0,23],O:[0,0],C:"rgba(255,248,220,1)",CR:10,Sz:[600,660],M:[0,0,45,0],RA:2,ClV:!1,SR:[0,-1000,0,1000],To:!0,Dse:!0,Cn:[{RT:"Icon",N:"quest1",P:[0,-288],O:[0,0],BG:"questbg",Sz:[600,83],IAS:!0,Bu:!0,Ht:!1,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.45],E:[14,14],V:[0,1]}]}],Cn:[{RT:"Icon",N:"spin",P:[265,-5],S:[0.6,0.6],O:[0,0],V:!1,BG:"beam",Sz:[216,217],Ac:!1,Ht:!1,AV:1.75},{RT:"Label",N:"text",P:[-2,0],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",BG:"questbg",Sz:[450,60],Ca:!0,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:28,Mw:"450"},{RT:"Label",N:"num",P:[-266,9],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[45,35],Ca:!0,Text:"30",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Icon",N:"mark",P:[262,-2],O:[0,0],V:!1,BG:"yes",Sz:[50,53],IAS:!0,Ac:!1}]},{RT:"Icon",N:"quest2",P:[0,-206],O:[0,0],BG:"questbg",Sz:[600,83],IAS:!0,Bu:!0,Ht:!1,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.45],E:[14,14],V:[0,1]}]}],Cn:[{RT:"Icon",N:"spin",P:[265,-5],S:[0.6,0.6],O:[0,0],V:!1,BG:"beam",Sz:[216,217],Ac:!1,Ht:!1,AV:1.75},{RT:"Label",N:"text",P:[-2,0],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",BG:"questbg",Sz:[450,60],Ca:!0,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:28,Mw:"450"},{RT:"Label",N:"num",P:[-266,9],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[45,35],Ca:!0,Text:"35",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Icon",N:"mark",P:[262,-2],O:[0,0],V:!1,BG:"yes",Sz:[50,53],IAS:!0,Ac:!1}]},{RT:"Icon",N:"quest3",P:[0,-122],O:[0,0],BG:"questbg",Sz:[600,83],IAS:!0,Bu:!0,Ht:!1,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.45],E:[14,14],V:[0,1]}]}],Cn:[{RT:"Icon",N:"spin",P:[265,-5],S:[0.6,0.6],O:[0,0],V:!1,BG:"beam",Sz:[216,217],Ac:!1,Ht:!1,AV:1.75},{RT:"Label",N:"text",P:[-2,0],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",BG:"questbg",Sz:[450,60],Ca:!0,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:28,Mw:"450"},{RT:"Label",N:"num",P:[-266,9],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[45,35],Ca:!0,Text:"40",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Icon",N:"mark",P:[262,-2],O:[0,0],V:!1,BG:"yes",Sz:[50,53],IAS:!0,Ac:!1}]},{RT:"Icon",N:"quest4",P:[0,-40],O:[0,0],BG:"questbg",Sz:[600,83],IAS:!0,Bu:!0,Ht:!1,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.45],E:[14,14],V:[0,1]}]}],Cn:[{RT:"Icon",N:"spin",P:[265,-5],S:[0.6,0.6],O:[0,0],V:!1,BG:"beam",Sz:[216,217],Ac:!1,Ht:!1,AV:1.75},{RT:"Label",N:"text",P:[-2,0],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",BG:"questbg",Sz:[450,60],Ca:!0,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:28,Mw:"450"},{RT:"Label",N:"num",P:[-266,9],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[45,35],Ca:!0,Text:"40",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Icon",N:"mark",P:[262,-2],O:[0,0],V:!1,BG:"yes",Sz:[50,53],IAS:!0,Ac:!1}]},{RT:"Icon",N:"quest5",P:[0,44],O:[0,0],BG:"questbg",Sz:[600,83],IAS:!0,Bu:!0,Ht:!1,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.45],E:[14,14],V:[0,1]}]}],Cn:[{RT:"Icon",N:"spin",P:[265,-5],S:[0.6,0.6],O:[0,0],V:!1,BG:"beam",Sz:[216,217],Ac:!1,Ht:!1,AV:1.75},{RT:"Label",N:"text",P:[-2,0],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",BG:"questbg",Sz:[450,60],Ca:!0,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:28,Mw:"450"},{RT:"Label",N:"num",P:[-266,9],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[45,35],Ca:!0,Text:"45",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Icon",N:"mark",P:[262,-2],O:[0,0],V:!1,BG:"yes",Sz:[50,53],IAS:!0,Ac:!1}]},{RT:"Icon",N:"quest6",P:[0,126],O:[0,0],BG:"questbg",Sz:[600,83],IAS:!0,Bu:!0,Ht:!1,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.45],E:[14,14],V:[0,1]}]}],Cn:[{RT:"Icon",N:"spin",P:[265,-5],S:[0.6,0.6],O:[0,0],V:!1,BG:"beam",Sz:[216,217],Ac:!1,Ht:!1,AV:1.75},{RT:"Label",N:"text",P:[-2,0],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",BG:"questbg",Sz:[450,60],Ca:!0,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:28,Mw:"450"},{RT:"Label",N:"num",P:[-266,9],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[45,35],Ca:!0,Text:"45",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Icon",N:"mark",P:[262,-2],O:[0,0],V:!1,BG:"yes",Sz:[50,53],IAS:!0,Ac:!1}]},{RT:"Icon",N:"quest7",P:[0,210],O:[0,0],BG:"questbg",Sz:[600,83],IAS:!0,Bu:!0,Ht:!1,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.45],E:[14,14],V:[0,1]}]}],Cn:[{RT:"Icon",N:"spin",P:[265,-5],S:[0.6,0.6],O:[0,0],V:!1,BG:"beam",Sz:[216,217],Ac:!1,Ht:!1,AV:1.75},{RT:"Label",N:"text",P:[-2,0],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",BG:"questbg",Sz:[450,60],Ca:!0,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:28,Mw:"450"},{RT:"Label",N:"num",P:[-266,9],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[45,35],Ca:!0,Text:"50",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Icon",N:"mark",P:[262,-2],O:[0,0],V:!1,BG:"yes",Sz:[50,53],IAS:!0,Ac:!1}]},{RT:"Icon",N:"quest8",P:[0,292],O:[0,0],BG:"questbg",Sz:[600,83],IAS:!0,Bu:!0,Ht:!1,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]},{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.45],E:[14,14],V:[0,1]}]}],Cn:[{RT:"Icon",N:"spin",P:[265,-5],S:[0.6,0.6],O:[0,0],V:!1,BG:"beam",Sz:[216,217],Ac:!1,Ht:!1,AV:1.75},{RT:"Label",N:"text",P:[-2,0],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",BG:"questbg",Sz:[450,60],Ca:!0,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:28,Mw:"450"},{RT:"Label",N:"num",P:[-266,9],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[50,35],Ca:!0,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Icon",N:"mark",P:[262,-2],O:[0,0],V:!1,BG:"yes",Sz:[50,53],IAS:!0,Ac:!1}]}]},{RT:"Icon",N:"top",P:[2,-337],O:[0,0],C:"rgba(0,0,139,1)",Sz:[600,60],RA:2,To:!0,Cn:[{RT:"Label",N:"title",P:[0,0],O:[0,0],C:"rgba(255,250,205,1)",SC:"rgba(0,0,0,1)",Sz:[600,45],Ca:!0,Text:"Quests",Font:"40px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:24}]},{RT:"Icon",N:"close",P:[-331,-390],O:[0,0],BG:"close",Sz:[65,70],OnT:"HideQuestsPressed()",To:!0}]}]},{RT:"Icon",N:"viewtutorial",P:[0,0],O:[0,0],V:!1,Sz:[32,32],Ac:!1,To:!0,Ht:!1,TC:[{N:"show",A:[{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[-800,0]}]}],Cn:[{RT:"Icon",N:"background",P:[0,0],SM:8,O:[0,0],C:"rgba(238,130,238,0.8627451)",Al:"0.862745098039216",Sz:[1900,1020],RA:2,To:!0},{RT:"Icon",N:"dialog",P:[0,-40],O:[0,0],CR:20,BG:"dialog1",Sz:[500,250],M:[0,0,20,0],UPO:!1,Dse:!0,Cn:[{RT:"Label",N:"title",P:[1,-67],O:[0,0],C:"rgba(0,0,0,1)",Sz:[440,100],Ca:!0,Ht:!1,Text:"-",Font:"45px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:45,Mw:"440"}]},{RT:"Icon",N:"no",P:[-126,6],O:[0,0],BG:"no",Sz:[101,109],OnT:"ConfirmViewTutorial(this, false)",To:!0},{RT:"Icon",N:"yes",P:[124,6],O:[0,0],BG:"yes",Sz:[101,109],OnT:"ConfirmViewTutorial(this, true)",To:!0}]},{RT:"Icon",N:"backs",P:[0,0],O:[0,0],V:!1,Sz:[32,32],Ac:!1,To:!0,Ht:!1,TC:[{N:"show",A:[{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[-800,0]}]}],Cn:[{RT:"Icon",N:"background",P:[0,0],SM:4,O:[0,0],C:"rgba(255,215,0,1)",BG:"bg0",Sz:[1900,1020]},{RT:"Icon",N:"back1",P:[-723,-231],O:[0,0],BG:"back0",Sz:[145,221],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,150],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeCardBack(this, 0)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,150],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyCardBack(this, 0)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"back2",P:[-518,-231],O:[0,0],BG:"back1",Sz:[145,221],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,150],O:[0,0],BG:"button4",Sz:[184,78],OnT:"ChangeCardBack(this, 1)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,150],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyCardBack(this, 1)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"back3",P:[-313,-231],O:[0,0],BG:"back2",Sz:[145,221],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,150],O:[0,0],BG:"button4",Sz:[184,78],OnT:"ChangeCardBack(this, 2)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,150],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyCardBack(this, 2)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"back4",P:[-108,-231],O:[0,0],BG:"back3",Sz:[145,221],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,150],O:[0,0],BG:"button4",Sz:[184,78],OnT:"ChangeCardBack(this, 3)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,150],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyCardBack(this, 3)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"back5",P:[97,-231],O:[0,0],BG:"back4",Sz:[145,221],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,150],O:[0,0],BG:"button4",Sz:[184,78],OnT:"ChangeCardBack(this, 4)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,150],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyCardBack(this, 4)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"back6",P:[302,-231],O:[0,0],BG:"back5",Sz:[145,221],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,150],O:[0,0],BG:"button4",Sz:[184,78],OnT:"ChangeCardBack(this, 5)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,150],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyCardBack(this, 5)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"back7",P:[507,-231],O:[0,0],BG:"back6",Sz:[145,221],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,150],O:[0,0],BG:"button4",Sz:[184,78],OnT:"ChangeCardBack(this, 6)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,150],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyCardBack(this, 6)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"back8",P:[712,-231],O:[0,0],BG:"back7",Sz:[145,221],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,150],O:[0,0],BG:"button4",Sz:[184,78],OnT:"ChangeCardBack(this, 7)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,150],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyCardBack(this, 7)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"back9",P:[-723,98],O:[0,0],BG:"back8",Sz:[145,221],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,150],O:[0,0],BG:"button4",Sz:[184,78],OnT:"ChangeCardBack(this, 8)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,150],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyCardBack(this, 8)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"back10",P:[-518,98],O:[0,0],BG:"back9",Sz:[145,221],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,150],O:[0,0],BG:"button4",Sz:[184,78],OnT:"ChangeCardBack(this, 9)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,150],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyCardBack(this, 9)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"back11",P:[-313,98],O:[0,0],BG:"back10",Sz:[145,221],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,150],O:[0,0],BG:"button4",Sz:[184,78],OnT:"ChangeCardBack(this, 10)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,150],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyCardBack(this, 10)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"back12",P:[-108,98],O:[0,0],BG:"back11",Sz:[145,221],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,150],O:[0,0],BG:"button4",Sz:[184,78],OnT:"ChangeCardBack(this, 11)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,150],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyCardBack(this, 11)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"back13",P:[97,98],O:[0,0],BG:"back12",Sz:[145,221],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,150],O:[0,0],BG:"button4",Sz:[184,78],OnT:"ChangeCardBack(this, 12)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,150],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyCardBack(this, 12)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"back14",P:[302,98],O:[0,0],BG:"back13",Sz:[145,221],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,150],O:[0,0],BG:"button4",Sz:[184,78],OnT:"ChangeCardBack(this, 13)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,150],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyCardBack(this, 13)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"back15",P:[507,98],O:[0,0],BG:"back14",Sz:[145,221],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,150],O:[0,0],BG:"button4",Sz:[184,78],OnT:"ChangeCardBack(this, 14)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,150],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyCardBack(this, 14)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"back16",P:[712,98],O:[0,0],BG:"back15",Sz:[145,221],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,150],O:[0,0],BG:"button4",Sz:[184,78],OnT:"ChangeCardBack(this, 15)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,150],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyCardBack(this, 15)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"title",P:[0,-432],O:[0,0],C:"rgba(65,105,225,1)",CR:20,Sz:[800,70],M:[0,0,20,0],RA:2,Do:"top",Dse:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(255,250,205,1)",Sz:[700,50],Ca:!0,Ht:!1,Text:"-",Font:"45px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Icon",N:"stitle",P:[5,5],O:[0,0],L:-1,C:"rgba(0,0,0,0.5019608)",Al:"0.501960784313725",CR:20,Sz:[800,70],RA:2}]},{RT:"Icon",N:"crowns",P:[768,-432],O:[0,0],C:"rgba(65,105,225,1)",CR:20,Sz:[300,70],M:[0,0,20,0],RA:2,Do:"top",Dse:!0,Cn:[{RT:"Icon",N:"shad",P:[5,5],O:[0,0],L:-1,C:"rgba(0,0,0,0.5019608)",Al:"0.501960784313725",CR:20,Sz:[300,70],RA:2},{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(255,250,205,1)",Sz:[180,50],Ca:!0,Ht:!1,Text:"0",Font:"45px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-98,0],O:[0,0],BG:"crown",Sz:[76,46]}]},{RT:"Icon",N:"back",P:[0,370],O:[0,0],BG:"back",Sz:[208,78],OnT:"HideBacksScreen()",To:!0},{RT:"Icon",N:"shop",P:[-752,-432],O:[0,0],CR:20,BG:"addcrowns",Sz:[300,107],OnT:"window.archon.ShowBuyCrowns()",To:!0,Do:"top",Dse:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.1,0.15],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.1,0.15],E:[0,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"themes",P:[0,0],O:[0,0],V:!1,Sz:[32,32],Ac:!1,To:!0,Ht:!1,TC:[{N:"show",A:[{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[-800,0]}]}],Cn:[{RT:"Icon",N:"background",P:[0,0],SM:4,O:[0,0],BG:"bg0",Sz:[1900,1020]},{RT:"Icon",N:"theme1",P:[-691,-295],O:[0,0],BG:"pbg0",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 0)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 0)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"theme2",P:[-415,-295],O:[0,0],BG:"pbg1",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 1)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 1)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"theme3",P:[-139,-295],O:[0,0],BG:"pbg2",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 2)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 2)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"theme4",P:[137,-295],O:[0,0],BG:"pbg3",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 3)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 3)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"theme5",P:[413,-295],O:[0,0],BG:"pbg4",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 4)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 4)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"theme6",P:[689,-295],O:[0,0],BG:"pbg5",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 5)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 5)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"theme7",P:[-691,-64],O:[0,0],BG:"pbg6",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 6)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 6)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"theme8",P:[-415,-64],O:[0,0],BG:"pbg7",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 7)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 7)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"theme9",P:[-139,-64],O:[0,0],BG:"pbg8",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 8)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 8)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"theme10",P:[137,-64],O:[0,0],BG:"pbg9",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 9)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 9)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"theme11",P:[413,-64],O:[0,0],BG:"pbg10",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 10)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 10)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"theme12",P:[689,-64],O:[0,0],BG:"pbg11",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 11)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 11)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"theme13",P:[-691,167],O:[0,0],BG:"pbg12",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 12)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 12)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"theme14",P:[-415,167],O:[0,0],BG:"pbg13",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 13)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 13)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"theme15",P:[-139,167],O:[0,0],BG:"pbg14",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 14)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 14)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"theme16",P:[137,167],O:[0,0],BG:"pbg15",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 15)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 15)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"theme17",P:[413,167],O:[0,0],BG:"pbg16",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 16)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 16)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"theme18",P:[689,167],O:[0,0],BG:"pbg17",Sz:[256,137],To:!0,Cn:[{RT:"Icon",N:"button",P:[0,108],O:[0,0],BG:"button3",Sz:[184,78],Ac:!1,OnT:"ChangeTheme(this, 17)",To:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[150,40],Ca:!0,Ht:!1,Text:"100",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"buybutton",P:[0,108],O:[0,0],V:!1,BG:"button3",Sz:[184,78],Ac:!1,OnT:"BuyTheme(this, 17)",To:!0,Cn:[{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[80,40],Ca:!0,Ht:!1,Text:"-",Font:"30px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-42,0],O:[0,0],BG:"crown",Sz:[76,46]}]}]},{RT:"Icon",N:"title",P:[0,-432],O:[0,0],C:"rgba(65,105,225,1)",CR:20,Sz:[800,70],M:[0,0,20,0],RA:2,Do:"top",Dse:!0,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(255,250,205,1)",Sz:[700,50],Ca:!0,Ht:!1,Text:"-",Font:"45px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Icon",N:"stitle",P:[5,5],O:[0,0],L:-1,C:"rgba(0,0,0,0.5019608)",Al:"0.501960784313725",CR:20,Sz:[800,70],RA:2}]},{RT:"Icon",N:"crowns",P:[768,-432],O:[0,0],C:"rgba(65,105,225,1)",CR:20,Sz:[300,70],M:[0,0,20,0],RA:2,Do:"top",Dse:!0,Cn:[{RT:"Icon",N:"shad",P:[5,5],O:[0,0],L:-1,C:"rgba(0,0,0,0.5019608)",Al:"0.501960784313725",CR:20,Sz:[300,70],RA:2},{RT:"Label",N:"text",P:[40,0],O:[0,0],C:"rgba(255,250,205,1)",Sz:[180,50],Ca:!0,Ht:!1,Text:"0",Font:"45px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"crown",P:[-98,0],O:[0,0],BG:"crown",Sz:[76,46]}]},{RT:"Icon",N:"back",P:[0,370],O:[0,0],BG:"back",Sz:[208,78],OnT:"HideThemesScreen()",To:!0},{RT:"Icon",N:"shop",P:[-752,-432],O:[0,0],CR:20,BG:"addcrowns",Sz:[300,107],OnT:"window.archon.ShowBuyCrowns()",To:!0,Do:"top",Dse:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.1,0.15],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.1,0.15],E:[0,0,0],V:[1,1.1,1]}]}]}]},{RT:"Icon",N:"buycrowns",P:[0,-720],O:[0,0],C:"rgba(255,215,0,1)",CR:20,V:!1,Sz:[600,330],RA:2,Ac:!1,To:!0,TC:[{N:"show",A:[{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.5],E:[14,0],V:[-800,-48]}]}],Cn:[{RT:"Icon",N:"shad",P:[10,10],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",Th:5,CR:20,Sz:[600,300],RA:2},{RT:"Icon",N:"edge",P:[0,0],O:[0,0],C:"rgba(240,255,255,1)",F:!1,FS:!0,Th:5,CR:20,Sz:[600,330],RA:2},{RT:"Icon",N:"title",P:[0,-120],O:[0,0],C:"rgba(0,0,139,1)",CR:20,Sz:[500,50],RA:2,Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(255,250,205,1)",Sz:[500,50],Ca:!0,Ht:!1,Text:"-",Font:"40px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"video",P:[0,-32],O:[0,0],CR:20,V:!1,BG:"video",Sz:[300,107],Ac:!1,OnT:"BuyCrowns(this, true)",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.1,0.15],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.1,0.15],E:[0,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"buy100",P:[0,91],O:[0,0],CR:20,BG:"buy",Sz:[300,107],OnT:"BuyCrowns2(this, true)",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.1,0.15],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.1,0.15],E:[0,0,0],V:[1,1.1,1]}]}],Cn:[{RT:"Label",N:"text",P:[74,-2],O:[0,0],C:"rgba(0,0,0,1)",Sz:[120,50],Ca:!0,Ht:!1,Text:"-",Font:"40px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"close",P:[288,-162],O:[0,0],BG:"close",Sz:[65,70],OnT:"this.parent._av = false;",To:!0},{RT:"Label",N:"timer",P:[0,50],O:[0,0],C:"rgba(255,250,205,1)",Sz:[500,50],Ca:!0,Ht:!1,Text:"-",Font:"40px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"roundover",P:[0,0],O:[0,0],V:!1,Sz:[32,32],Ac:!1,To:!0,Ht:!1,TC:[{N:"show",A:[{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[-800,0]}]}],Cn:[{RT:"Icon",N:"background",P:[0,0],SM:8,O:[0,0],C:"rgba(238,130,238,0.8627451)",Al:"0.862745098039216",Sz:[1900,1020],RA:2,To:!0},{RT:"Icon",N:"dialog",P:[0,-40],O:[0,0],CR:20,BG:"roundover",Sz:[500,672],M:[0,0,20,0],UPO:!1,To:!0,Dse:!0,Cn:[{RT:"Label",N:"title",P:[1,-273],O:[0,0],C:"rgba(0,0,0,1)",Sz:[440,50],Ca:!0,Ht:!1,Text:"-",Font:"45px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Label",N:"id",P:[22,-189],O:[0,0],C:"rgba(0,0,0,1)",Sz:[360,50],Ca:!0,Ht:!1,Text:"-",Font:"45px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"type",P:[22,-105],O:[0,0],C:"rgba(0,0,0,1)",Sz:[360,50],Ca:!0,Ht:!1,Text:"-",Font:"45px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"moves",P:[22,-21],O:[0,0],C:"rgba(0,0,0,1)",Sz:[360,50],Ca:!0,Ht:!1,Text:"-",Font:"45px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"time",P:[22,63],O:[0,0],C:"rgba(0,0,0,1)",Sz:[360,50],Ca:!0,Ht:!1,Text:"-",Font:"45px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"score",P:[22,149],O:[0,0],C:"rgba(0,0,0,1)",Sz:[360,50],Ca:!0,Ht:!1,Text:"-",Font:"45px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"crowns",P:[22,236],O:[0,0],C:"rgba(0,0,0,1)",Sz:[360,50],Ca:!0,Ht:!1,Text:"-",Font:"45px Righteous-Regular",AlignH:"left",AlignV:"middle"}]},{RT:"Icon",N:"ask",P:[359,-5],O:[0,0],V:!1,BG:"mhelp",Sz:[154,126],IAS:!0,Ac:!1,OnT:"AskForHelpPressed(this, 0)",OnH:"ShowToolTip(this, Text.ASK_SOLUTION, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"share",P:[359,-5],O:[0,0],BG:"mshare",Sz:[154,126],IAS:!0,OnT:"ShareSolutionPressed(this, 0)",OnH:"ShowToolTip(this, Text.SHARE_HAND, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.35,0.5],E:[14,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"back",P:[-120,370],O:[0,0],BG:"back",Sz:[208,78],OnT:"HideRoundOver()",To:!0},{RT:"Icon",N:"next",P:[120,370],O:[0,0],BG:"next",Sz:[208,78],OnT:"NextRoundPressed(this)",To:!0,TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,TI:[0,0.2,0.4],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,TI:[0,0.2,0.4],E:[0,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"tripeaks1",P:[768,-316],O:[0,0],V:!1,BG:"tripeaks_icon",Sz:[256,194],IAS:!0,Ac:!1,OnT:"PlayOtherGame(this, 0)",OnH:"ShowToolTip(this, Text.PLAY_TRIPEAKS, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}],Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:20,Sz:[256,194],RA:2}]},{RT:"Icon",N:"solitairematch",P:[-562,-40],O:[0,0],V:!1,BG:"solmatch_icon",Sz:[256,194],IAS:!0,Ac:!1,OnT:"PlayOtherGame(this, 4)",OnH:"ShowToolTip(this, Text.PLAY_SOLITAIREMATCH, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}],Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:20,Sz:[256,194],RA:2}]},{RT:"Icon",N:"golf1",P:[768,-110],O:[0,0],V:!1,BG:"golf_icon",Sz:[256,194],IAS:!0,Ac:!1,OnT:"PlayOtherGame(this, 1)",OnH:"ShowToolTip(this, Text.PLAY_GOLF, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}],Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:20,Sz:[256,194],RA:2}]},{RT:"Icon",N:"reverse1",P:[768,308],O:[0,0],V:!1,BG:"rev_icon",Sz:[256,194],IAS:!0,Ac:!1,OnT:"PlayOtherGame(this, 3)",OnH:"ShowToolTip(this, Text.PLAY_REVERSE, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}],Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:20,Sz:[256,194],RA:2}]},{RT:"Icon",N:"solitaire1",P:[768,98],O:[0,0],V:!1,BG:"solitaire_icon",Sz:[256,194],IAS:!0,Ac:!1,OnT:"PlayOtherGame(this, 2)",OnH:"ShowToolTip(this, Text.PLAY_SOLITAIRE2, touch_pos)",OnHE:"HideToolTip()",To:!0,TC:[{N:"click",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.15,0.25],E:[0,0,0],V:[1,1.1,1]}]}],Cn:[{RT:"Icon",N:"shad",P:[16,16],O:[0,0],L:-1,C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",CR:20,Sz:[256,194],RA:2}]}]},{RT:"Icon",N:"quit",P:[0,0],O:[0,0],V:!1,Sz:[32,32],Ac:!1,To:!0,Ht:!1,TC:[{N:"show",A:[{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[-800,0]}]}],Cn:[{RT:"Icon",N:"background",P:[0,0],SM:8,O:[0,0],C:"rgba(238,130,238,0.8627451)",Al:"0.862745098039216",Sz:[1900,1020],RA:2,To:!0},{RT:"Icon",N:"dialog",P:[0,-40],O:[0,0],CR:20,BG:"dialog1",Sz:[500,250],M:[0,0,20,0],UPO:!1,Dse:!0,Cn:[{RT:"Label",N:"title",P:[1,-75],O:[0,0],C:"rgba(0,0,0,1)",Sz:[480,90],Ca:!0,Ht:!1,Text:"-",Font:"45px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:43,Mw:"480"}]},{RT:"Icon",N:"no",P:[-126,6],O:[0,0],BG:"no",Sz:[101,109],OnT:"QuitGame(false)",To:!0},{RT:"Icon",N:"yes",P:[124,6],O:[0,0],BG:"yes",Sz:[101,109],OnT:"QuitGame(true)",To:!0}]},{RT:"Icon",N:"restart",P:[0,0],O:[0,0],V:!1,Sz:[32,32],Ac:!1,To:!0,Ht:!1,TC:[{N:"show",A:[{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[-800,0]}]}],Cn:[{RT:"Icon",N:"background",P:[0,0],SM:8,O:[0,0],C:"rgba(238,130,238,0.8627451)",Al:"0.862745098039216",Sz:[1900,1020],RA:2,To:!0},{RT:"Icon",N:"dialog",P:[0,-40],O:[0,0],CR:20,BG:"dialog1",Sz:[500,250],M:[0,0,20,0],UPO:!1,Dse:!0,Cn:[{RT:"Label",N:"title",P:[1,-83],O:[0,0],C:"rgba(0,0,0,1)",Sz:[440,50],Ca:!0,Ht:!1,Text:"-",Font:"45px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"no",P:[-126,6],O:[0,0],BG:"no",Sz:[101,109],OnT:"RestartGame(false)",To:!0},{RT:"Icon",N:"yes",P:[124,6],O:[0,0],BG:"yes",Sz:[101,109],OnT:"RestartGame(true)",To:!0}]},{RT:"Icon",N:"newgame",P:[0,0],O:[0,0],V:!1,Sz:[32,32],Ac:!1,To:!0,Ht:!1,TC:[{N:"show",A:[{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[-800,0]}]}],Cn:[{RT:"Icon",N:"background",P:[0,0],SM:8,O:[0,0],C:"rgba(238,130,238,0.8627451)",Al:"0.862745098039216",Sz:[1900,1020],RA:2,To:!0},{RT:"Icon",N:"dialog",P:[0,-40],O:[0,0],CR:20,BG:"dialog1",Sz:[625,312],IAS:!0,M:[0,0,20,0],UPO:!1,To:!0,Dse:!0,Cn:[{RT:"Icon",N:"bg1",P:[0,-114],O:[0,0],C:"rgba(0,0,139,1)",CR:20,Sz:[600,50],RA:2},{RT:"Label",N:"title",P:[1,-114],O:[0,0],C:"rgba(255,250,205,1)",Sz:[600,50],Ca:!0,Ht:!1,Text:"-",Font:"45px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Icon",N:"normal",P:[-132,21],O:[0,0],BG:"button6",Sz:[200,186],OnT:"StartGamePressed(false)",To:!0,Cn:[{RT:"Icon",N:"b1",P:[-21,-40],S:[0.25,0.25],O:[0,0],BG:"back0",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}]},{RT:"Icon",N:"b2",P:[16,-40],S:[0.25,0.25],O:[0,0],BG:"back0",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}]},{RT:"Icon",N:"b3",P:[52,-40],S:[0.25,0.25],O:[0,0],BG:"back0",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}]},{RT:"Icon",N:"b4",P:[52,-12],S:[0.25,0.25],O:[0,0],BG:"back0",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,DE:0.1,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,DE:0.1,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}]},{RT:"Icon",N:"b13",P:[52,15],S:[0.25,0.25],O:[0,0],BG:"back0",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,DE:0.2,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,DE:0.2,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}]},{RT:"Icon",N:"b5",P:[16,-12],S:[0.25,0.25],O:[0,0],BG:"back0",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,DE:0.1,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,DE:0.1,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}]},{RT:"Icon",N:"b9",P:[-57,-40],S:[0.25,0.25],O:[0,0],BG:"card",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"clubs",Sz:[256,269]}]},{RT:"Icon",N:"b10",P:[-21,-12],S:[0.25,0.25],O:[0,0],BG:"card",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,DE:0.1,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,DE:0.1,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"diamonds",Sz:[256,290]}]},{RT:"Icon",N:"b11",P:[16,15],S:[0.25,0.25],O:[0,0],BG:"card",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,DE:0.2,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,DE:0.2,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]}]},{RT:"Icon",N:"b12",P:[52,44],S:[0.25,0.25],O:[0,0],BG:"card",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,DE:0.3,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,DE:0.3,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"spades",Sz:[256,305]}]}]},{RT:"Icon",N:"relaxed",P:[132,21],O:[0,0],BG:"button6",Sz:[200,186],OnT:"StartGamePressed(true)",To:!0,Cn:[{RT:"Icon",N:"b1",P:[-21,-40],S:[0.25,0.25],O:[0,0],BG:"card",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"clubs",Sz:[256,269]}]},{RT:"Icon",N:"b2",P:[16,-40],S:[0.25,0.25],O:[0,0],BG:"card",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"diamonds",Sz:[256,290]}]},{RT:"Icon",N:"b3",P:[52,-40],S:[0.25,0.25],O:[0,0],BG:"card",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"spades",Sz:[256,305]}]},{RT:"Icon",N:"b4",P:[52,-12],S:[0.25,0.25],O:[0,0],BG:"card",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,DE:0.1,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,DE:0.1,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]}]},{RT:"Icon",N:"b13",P:[52,15],S:[0.25,0.25],O:[0,0],BG:"card",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,DE:0.2,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,DE:0.2,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"spades",Sz:[256,305]}]},{RT:"Icon",N:"b5",P:[16,-12],S:[0.25,0.25],O:[0,0],BG:"card",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,DE:0.1,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,DE:0.1,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"spades",Sz:[256,305]}]},{RT:"Icon",N:"b9",P:[-57,-40],S:[0.25,0.25],O:[0,0],BG:"card",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"clubs",Sz:[256,269]}]},{RT:"Icon",N:"b10",P:[-21,-12],S:[0.25,0.25],O:[0,0],BG:"card",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,DE:0.1,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,DE:0.1,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"diamonds",Sz:[256,290]}]},{RT:"Icon",N:"b11",P:[16,15],S:[0.25,0.25],O:[0,0],BG:"card",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,DE:0.2,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,DE:0.2,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]}]},{RT:"Icon",N:"b12",P:[52,44],S:[0.25,0.25],O:[0,0],BG:"card",Sz:[145,221],TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,DE:0.3,TI:[0,0.4],E:[14,0],V:[0,0.25]},{P:"_scale_y",T:!0,D:!1,A:!1,R:1,DE:0.3,TI:[0,0.4],E:[14,0],V:[0,0.25]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"diamonds",Sz:[256,290]}]}]}]},{RT:"Icon",N:"back",P:[0,370],O:[0,0],BG:"back",Sz:[208,78],OnT:"this.parent._av = false",To:!0}]},{RT:"Icon",N:"settings",P:[0,0],O:[0,0],V:!1,Sz:[32,32],Ac:!1,To:!0,Ht:!1,TC:[{N:"show",A:[{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[-800,0]}]}],Cn:[{RT:"Icon",N:"background",P:[0,0],SM:8,O:[0,0],C:"rgba(238,130,238,0.8627451)",Al:"0.862745098039216",Sz:[1900,1020],RA:2,To:!0},{RT:"Icon",N:"dialog",P:[0,-40],O:[0,0],CR:20,BG:"dialog1",Sz:[625,312],IAS:!0,M:[0,0,20,0],UPO:!1,To:!0,Dse:!0,Cn:[{RT:"Icon",N:"bg1",P:[0,-112],O:[0,0],C:"rgba(255,255,255,0.5882353)",Al:"0.588235294117647",CR:20,Sz:[450,50],RA:2},{RT:"Icon",N:"bg2",P:[0,28],O:[0,0],C:"rgba(255,255,255,0.5882353)",Al:"0.588235294117647",CR:20,Sz:[550,200],RA:2},{RT:"Label",N:"title",P:[1,-112],O:[0,0],C:"rgba(0,0,0,1)",Sz:[440,50],Ca:!0,Ht:!1,Text:"-",Font:"45px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Label",N:"audio",P:[-94,-37],O:[0,0],C:"rgba(0,0,0,1)",Sz:[240,40],Ca:!0,Ht:!1,Text:"-",Font:"32px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"tooltips",P:[-94,25],O:[0,0],C:"rgba(0,0,0,1)",Sz:[240,40],Ca:!0,Ht:!1,Text:"-",Font:"32px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Label",N:"suits",P:[-94,88],O:[0,0],C:"rgba(0,0,0,1)",Sz:[240,40],Ca:!0,Ht:!1,Text:"-",Font:"32px Righteous-Regular",AlignH:"left",AlignV:"middle"},{RT:"Icon",N:"audiobutton",P:[105,-37],O:[0,0],BG:"on",Sz:[160,57],OnT:"ToggleAudioPressed()",To:!0},{RT:"Icon",N:"tooltipsbutton",P:[105,25],O:[0,0],BG:"on",Sz:[160,57],OnT:"ToggleTooltipsPressed()",To:!0},{RT:"Icon",N:"suitsbutton",P:[105,88],O:[0,0],BG:"on",Sz:[160,57],OnT:"ToggleSuitsPressed()",To:!0}]},{RT:"Icon",N:"back",P:[0,370],O:[0,0],BG:"back",Sz:[208,78],OnT:"HideSettingsScreen()",To:!0}]},{RT:"Icon",N:"help",P:[0,0],O:[0,0],V:!1,Sz:[32,32],Ac:!1,To:!0,Ht:!1,TC:[{N:"show",A:[{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[-800,0]}]}],Cn:[{RT:"Icon",N:"background",P:[0,0],SM:8,O:[0,0],C:"rgba(220,20,60,1)",Sz:[1900,1020],RA:2,To:!0},{RT:"Icon",N:"back",P:[0,370],O:[0,0],BG:"back",Sz:[208,78],OnT:"HideHelp()",To:!0},{RT:"Label",N:"help1",P:[1,-364],O:[0,0],C:"rgba(255,248,220,1)",Sz:[1500,105],Ca:!0,Ht:!1,Text:"-",Font:"35px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:35,Mw:"1500"},{RT:"Label",N:"help2",P:[1,-160],O:[0,0],C:"rgba(255,248,220,1)",Sz:[1500,170],Ca:!0,Ht:!1,Text:"-",Font:"35px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:35,Mw:"1500"},{RT:"Label",N:"help3",P:[1,22],O:[0,0],C:"rgba(255,248,220,1)",Sz:[1500,105],Ca:!0,Ht:!1,Text:"-",Font:"35px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:35,Mw:"1500"},{RT:"Label",N:"help4",P:[1,212],O:[0,0],C:"rgba(255,248,220,1)",Sz:[1500,105],Ca:!0,Ht:!1,Text:"-",Font:"35px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:35,Mw:"1500"}]},{RT:"Icon",N:"daily",P:[0,0],O:[0,0],V:!1,Sz:[32,32],Ac:!1,Ht:!1,TC:[{N:"show",A:[{P:"_x",T:!0,D:!1,A:!1,DA:!0,R:1,TI:[0.05,0.4,2,2.45],E:[6,0,5,0],V:[-1400,0,0,1400]}]}],Cn:[{RT:"Icon",N:"dialog",P:[0,-40],O:[0,0],CR:20,BG:"dialog1",Sz:[500,250],M:[0,0,20,0],UPO:!1,To:!0,Dse:!0,Cn:[{RT:"Icon",N:"bg1",P:[0,-70],O:[0,0],C:"rgba(255,255,255,0.5882353)",Al:"0.588235294117647",CR:20,Sz:[350,80],RA:2},{RT:"Icon",N:"bg2",P:[0,33],O:[0,0],C:"rgba(255,255,255,0.5882353)",Al:"0.588235294117647",CR:20,Sz:[350,80],RA:2},{RT:"Icon",N:"crown",P:[-65,33],O:[0,0],BG:"crown",Sz:[76,46]},{RT:"Label",N:"title",P:[1,-70],O:[0,0],C:"rgba(0,0,0,1)",Sz:[400,80],Ca:!0,RA:2,Ht:!1,Text:"-",Font:"45px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Label",N:"crowns",P:[57,34],O:[0,0],C:"rgba(0,0,0,1)",Sz:[140,50],Ca:!0,Ht:!1,Text:"-",Font:"50px Righteous-Regular",AlignH:"left",AlignV:"middle"}]}]},{RT:"Icon",N:"t_card",T:"card",P:[-1297,-363],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"clubs",Sz:[256,269]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"clubs",Sz:[256,269],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(0,0,0,1)",Sz:[50,50],Ca:!0,Text:" Q",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"tooltip",P:[6,-961],O:[0,0],CR:20,V:!1,BG:"tooltip",Sz:[400,91],M:[0,0,10,0],Ac:!1,Ht:!1,Do:"top",Dse:!0,TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.05,1.45,1.55],E:[0,0,0,0],V:[0,1,1,0]}]}],Cn:[{RT:"Label",N:"text",P:[0,0],O:[0,0],C:"rgba(0,0,0,1)",Sz:[400,80],Ca:!0,Text:"-",Font:"32px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:32,Mw:"400"}]},{RT:"Icon",N:"tutorial",P:[0,0],O:[0,0],V:!1,Sz:[32,32],Ac:!1,To:!0,Ht:!1,TC:[{N:"show",A:[{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.4],E:[14,0],V:[-800,0]}]}],Cn:[{RT:"Icon",N:"background",P:[0,0],SM:8,O:[0,0],C:"rgba(0,100,0,1)",Sz:[1900,1020],RA:2,To:!0},{RT:"Icon",N:"next",P:[0,370],O:[0,0],BG:"next",Sz:[208,78],M:[0,0,0,20],OnT:"Tutorial.Next(this)",To:!0,Do:"bottom",Dse:!0,TC:[{N:"show",A:[{P:"_scale_x",T:!0,D:!1,TI:[0,0.4,0.8],E:[0,0,0],V:[1,1.1,1]},{P:"_scale_y",T:!0,D:!1,TI:[0,0.4,0.8],E:[0,0,0],V:[1,1.1,1]}]}]},{RT:"Icon",N:"restart",P:[362,370],O:[0,0],V:!1,BG:"restart",Sz:[101,94],M:[0,0,0,20],Ac:!1,OnT:"Tutorial.Restart();",To:!0,Do:"bottom",Dse:!0},{RT:"Icon",N:"close",P:[867,209],O:[0,0],BG:"no",Sz:[101,109],M:[0,0,0,20],OnT:"HideHelp(this)",To:!0,Do:"bottom",Dse:!0},{RT:"Icon",N:"board",P:[0,28],O:[0,0],Sz:[32,32],Cn:[{RT:"Icon",N:"f1",P:[-831,-198],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0,Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"clubs",Sz:[256,269]}]},{RT:"Icon",N:"f2",P:[-675,-198],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0,Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"diamonds",Sz:[256,290]}]},{RT:"Icon",N:"f3",P:[-519,-198],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0,Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"spades",Sz:[256,305]}]},{RT:"Icon",N:"d2",P:[-491,148],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0},{RT:"Icon",N:"f4",P:[-363,-198],O:[0,0],C:"rgba(255,255,255,0.5019608)",Al:"0.501960784313725",BG:"place",Sz:[145,220],IAS:!0,Cn:[{RT:"Icon",N:"suit",P:[0,0],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]}]},{RT:"Icon",N:"t1",T:"card",P:[-89,-199],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-89.0000000000013,200.999999999999]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-198.9,-39.8999999999997]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"clubs",Sz:[256,269]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"clubs",Sz:[256,269],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(0,0,0,1)",Sz:[50,50],Ca:!0,Text:"4",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t3",T:"card",P:[201,-198],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"spades",Sz:[256,305]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"spades",Sz:[256,305],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(0,0,0,1)",Sz:[50,50],Ca:!0,Text:"6",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t4",T:"card",P:[346,-198],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"diamonds",Sz:[256,290]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],V:!1,BG:"diamonds",Sz:[256,290],IAS:!0,Ac:!1},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(255,0,0,1)",Sz:[50,50],Ca:!0,Text:"8",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t5",T:"card",P:[491,-199],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],V:!1,BG:"spades",Sz:[256,305],IAS:!0,Ac:!1},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(0,0,0,1)",Sz:[50,50],Ca:!0,Text:"K",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t6",T:"card",P:[636,-199],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"clubs",Sz:[256,269]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"clubs",Sz:[256,269],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(0,0,0,1)",Sz:[50,50],Ca:!0,Text:"5",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t7",T:"card",P:[781,-199],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"clubs",Sz:[256,269]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"clubs",Sz:[256,269],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(0,0,0,1)",Sz:[50,50],Ca:!0,Text:"6",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t8",T:"card",P:[-89,-137],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[55.9999999999987,-362.799999999998]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-159.9,-197.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"diamonds",Sz:[256,290],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(255,0,0,1)",Sz:[50,50],Ca:!0,Text:"6",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t10",T:"card",P:[201,-137],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[490.999999999999,-89.0000000000013]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-39.8999999999997,-198.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"spades",Sz:[256,305]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"spades",Sz:[256,305],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(0,0,0,1)",Sz:[50,50],Ca:!0,Text:"Q",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t11",T:"card",P:[346,-137],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[635.999999999999,-362.799999999998]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-1.89999999999972,-197.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"hearts",Sz:[256,257],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(255,0,0,1)",Sz:[50,50],Ca:!0,Text:"2",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t12",T:"card",P:[491,-137],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[635.999999999999,-362.799999999998]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-1.89999999999972,-197.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"clubs",Sz:[256,269],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(0,0,0,1)",Sz:[50,50],Ca:!0,Text:"3",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t13",T:"card",P:[636,-137],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[635.999999999999,-362.799999999998]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-1.89999999999972,-197.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"diamonds",Sz:[256,290],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(255,0,0,1)",Sz:[50,50],Ca:!0,Text:"3",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t14",T:"card",P:[781,-137],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[635.999999999999,-362.799999999998]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-1.89999999999972,-197.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"hearts",Sz:[256,257],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(255,0,0,1)",Sz:[50,50],Ca:!0,Text:"7",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t15",T:"card",P:[-88,-76],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[55.9999999999987,-362.799999999998]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-159.9,-197.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"clubs",Sz:[256,269],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(0,0,0,1)",Sz:[50,50],Ca:!0,Text:"8",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t17",T:"card",P:[202,-76],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[55.9999999999987,-362.799999999998]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-159.9,-197.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"hearts",Sz:[256,257],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(255,0,0,1)",Sz:[50,50],Ca:!0,Text:"3",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t18",T:"card",P:[346,-76],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[55.9999999999987,-362.799999999998]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-159.9,-197.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"clubs",Sz:[256,269],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(0,0,0,1)",Sz:[50,50],Ca:!0,Text:"7",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t19",T:"card",P:[492,-76],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[55.9999999999987,-362.799999999998]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-159.9,-197.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"hearts",Sz:[256,257],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(255,0,0,1)",Sz:[50,50],Ca:!0,Text:"A",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t20",T:"card",P:[636,-76],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[55.9999999999987,-362.799999999998]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-159.9,-197.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"spades",Sz:[256,305],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(0,0,0,1)",Sz:[50,50],Ca:!0,Text:"9",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t21",T:"card",P:[782,-76],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[55.9999999999987,-362.799999999998]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-159.9,-197.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"diamonds",Sz:[256,290],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(255,0,0,1)",Sz:[50,50],Ca:!0,Text:"5",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"move2",T:"card",P:[-89,-14],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-88.5,-830.799999999998]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-14.3000000000002,-198.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"clubs",Sz:[256,269]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"clubs",Sz:[256,269],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(0,0,0,1)",Sz:[50,50],Ca:!0,Text:"2",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"move4",T:"card",P:[201,-14],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[200.999999999999,55.9999999999987]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-14.3000000000002,-198.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"clubs",Sz:[256,269]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"clubs",Sz:[256,269],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(0,0,0,1)",Sz:[50,50],Ca:!0,Text:"K",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t25",T:"card",P:[346,-14],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[55.9999999999987,-362.799999999998]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-159.9,-197.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"hearts",Sz:[256,257],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(255,0,0,1)",Sz:[50,50],Ca:!0,Text:"K",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t26",T:"card",P:[491,-14],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[55.9999999999987,-362.799999999998]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-159.9,-197.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"diamonds",Sz:[256,290]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"diamonds",Sz:[256,290],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(255,0,0,1)",Sz:[50,50],Ca:!0,Text:"2",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"t27",T:"card",P:[636,-14],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[55.9999999999987,-362.799999999998]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-159.9,-197.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"hearts",Sz:[256,257],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(255,0,0,1)",Sz:[50,50],Ca:!0,Text:"Q",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"move1",T:"card",P:[781,-14],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[780.999999999999,-830.799999999998]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[-14.3000000000002,-198.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"clubs",Sz:[256,269]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"clubs",Sz:[256,269],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(0,0,0,1)",Sz:[50,50],Ca:!0,Text:"A",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"b22",P:[-655,148],O:[0,0],BG:"back0",Sz:[145,221]},{RT:"Icon",N:"move5",T:"card",P:[-655,148],O:[0,0],V:!1,BG:"card",Sz:[145,220],IAS:!0,Ac:!1,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,0.45,1,2],E:[0,0,0,0],V:[-655.000000000002,-490.799999999998,-490.799999999998,56.5]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,0.45,1,2],E:[0,0,0,0],V:[147.7,148.2,148.7,-133.9]}]}],Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"clubs",Sz:[256,269]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"clubs",Sz:[256,269],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(0,0,0,1)",Sz:[50,50],Ca:!0,Text:"Q",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"move3",P:[0,0],O:[0,0],Sz:[100,100],TC:[{N:"move",A:[{P:"_x",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[0,579.6]},{P:"_y",T:!0,D:!1,A:!1,R:1,TI:[0,1],E:[0,0],V:[0,238.000000000001]}]}],Cn:[{RT:"Icon",N:"move3a",T:"card",P:[56,-198],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"hearts",Sz:[256,257],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(255,0,0,1)",Sz:[50,50],Ca:!0,Text:"J",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"move3b",T:"card",P:[56,-137],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"diamonds",Sz:[256,290]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"spades",Sz:[256,305],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(0,0,0,1)",Sz:[50,50],Ca:!0,Text:"5",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"move3c",T:"card",P:[56,-76],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"hearts",Sz:[256,257]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"hearts",Sz:[256,257],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(255,0,0,1)",Sz:[50,50],Ca:!0,Text:"9",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]},{RT:"Icon",N:"move3d",T:"card",P:[56,-14],O:[0,0],BG:"card",Sz:[145,220],IAS:!0,OnT:"window.archon.world.CardTapped(this, touch_pos)",OnB:"window.archon.world.CardBeginTouch(this, touch_pos)",To:!0,Cn:[{RT:"Icon",N:"suit",P:[0,18],S:[0.4,0.4],O:[0,0],BG:"spades",Sz:[256,305]},{RT:"Icon",N:"suitsmall",P:[47,-84],S:[0.15,0.15],O:[0,0],BG:"spades",Sz:[256,305],IAS:!0},{RT:"Label",N:"num",P:[-42,-80],O:[0,0],C:"rgba(0,0,0,1)",Sz:[50,50],Ca:!0,Text:"J",Font:" bold 50px Righteous-Regular",AlignH:"center",AlignV:"middle"}]}]}]},{RT:"Label",N:"text",P:[1,-396],O:[0,0],C:"rgba(255,248,220,1)",Sz:[1500,105],Ca:!0,Ht:!1,Text:"-",Font:"35px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:35,Mw:"1500"},{RT:"Label",N:"foundtext",P:[-596,-304],O:[0,0],C:"rgba(255,248,220,1)",Sz:[300,40],Ca:!0,Ht:!1,Text:"-",Font:"35px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:35,Mw:"1500"},{RT:"Label",N:"tabtext",P:[354,-304],O:[0,0],C:"rgba(255,248,220,1)",Sz:[300,40],Ca:!0,Ht:!1,Text:"-",Font:"35px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:35,Mw:"1500"},{RT:"Label",N:"decktext",P:[-572,44],O:[0,0],C:"rgba(255,248,220,1)",Sz:[300,40],Ca:!0,Ht:!1,Text:"-",Font:"35px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:35,Mw:"1500"}]},{RT:"Icon",N:"questcomplete",P:[0,-408],O:[0,0],V:!1,BG:"questbg",Sz:[600,83],IAS:!0,Ac:!1,Bu:!0,Ht:!1,TC:[{N:"show",A:[{P:"_scale_y",T:!0,D:!1,A:!1,DA:!0,R:1,TI:[0,0.45,2,2.2],E:[14,14,0,0],V:[0,1,1,0]}]}],Cn:[{RT:"Icon",N:"spin",P:[265,-5],S:[0.6,0.6],O:[0,0],BG:"beam",Sz:[216,217],Ht:!1,AV:1.75},{RT:"Label",N:"text",P:[-2,0],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",BG:"questbg",Sz:[450,60],Ca:!0,Text:"-",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle",Lh:28,Mw:"450"},{RT:"Label",N:"num",P:[-266,9],O:[0,0],C:"rgba(0,0,0,1)",SC:"rgba(0,0,0,1)",Sz:[45,35],Ca:!0,Text:"30",Font:"30px Righteous-Regular",AlignH:"center",AlignV:"middle"},{RT:"Icon",N:"mark",P:[262,-2],O:[0,0],BG:"yes",Sz:[50,53],IAS:!0,Ht:!1}]},{RT:"Icon",N:"blocker",P:[0,0],SM:8,O:[0,0],C:"rgba(255,255,255,0)",Al:"0",V:!1,Sz:[1900,1020],Ac:!1,To:!0},{RT:"Icon",N:"adwaiting",P:[0,0],O:[0,0],V:!1,Sz:[32,32],Ac:!1,To:!0,Cn:[{RT:"Icon",N:"bg",P:[0,0],SM:8,O:[0,0],C:"rgba(0,0,0,0.3921569)",Al:"0.392156862745098",BG:"loading",Sz:[1900,1020],RA:2,To:!0,TC:[{N:"anim1",A:[{P:"opacity",T:!0,D:!1,A:!1,R:1,TI:[0],E:[0],V:[0.392156862745098]},{P:"visible",T:!1,D:!1,A:!1,R:1,TI:[0],E:[0],V:[!0]}]}]},{RT:"Icon",N:"spinner",P:[0,0],O:[0,0],BG:"loading",Sz:[80,79],AV:0.87}]},{RT:"Icon",N:"orientation",P:[0,0],O:[0,0],V:!1,Sz:[32,32],Ac:!1,To:!0,Cn:[{RT:"Icon",N:"bg",P:[0,0],SM:8,O:[0,0],C:"rgba(0,0,0,1)",BG:"loading",Sz:[1900,1020],RA:2,To:!0,TC:[{N:"anim1",A:[{P:"opacity",T:!0,D:!1,A:!1,R:1,TI:[0],E:[0],V:[0.392156862745098]},{P:"visible",T:!1,D:!1,A:!1,R:1,TI:[0],E:[0],V:[!0]}]}]},{RT:"Icon",N:"icon",P:[0,0],O:[0,0],BG:"to_landscape",Sz:[400,400]}]}]};