From 0f63dd0931ffc2773a9a6dfc2d1a225a56abfc37 Mon Sep 17 00:00:00 2001 From: Ivan Lysov Date: Fri, 27 Jun 2025 14:40:18 +0500 Subject: [PATCH 1/2] PlaygamaBridge v1.23.0 --- extensions/reviewed/PlaygamaBridge.json | 636 +++++++++++------------- 1 file changed, 283 insertions(+), 353 deletions(-) diff --git a/extensions/reviewed/PlaygamaBridge.json b/extensions/reviewed/PlaygamaBridge.json index c950ce13d..cc822670d 100644 --- a/extensions/reviewed/PlaygamaBridge.json +++ b/extensions/reviewed/PlaygamaBridge.json @@ -4,16 +4,20 @@ "extensionNamespace": "", "fullName": "Playgama Bridge", "gdevelopVersion": "", - "helpPath": "/extensions/playgama-bridge/details", + "helpPath": "https://wiki.playgama.com/playgama/sdk/engines/gdevelop", "iconUrl": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiBmaWxsPSIjOTc0N0ZGIi8+CjxwYXRoIGQ9Ik0xMTcgMTU0LjM2MlY5Ni4wMDAxSDIyMy4xMjlWNDE2SDExN1YzNTkuMjU0SDE1OC40NFYxNTQuMzYySDExN1oiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0zOTUgMTU0LjM2MlY5NkgyODguODcxVjQxNkgzOTVWMzU5LjI1NEgzNTMuNTZWMTU0LjM2MkgzOTVaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K", "name": "PlaygamaBridge", "previewIconUrl": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMTcgMTU0LjM2MlY5Ni4wMDAxSDIyMy4xMjlWNDE2SDExN1YzNTkuMjU0SDE1OC40NFYxNTQuMzYySDExN1oiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGQ9Ik0zOTUgMTU0LjM2MlY5NkgyODguODcxVjQxNkgzOTVWMzU5LjI1NEgzNTMuNTZWMTU0LjM2MkgzOTVaIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K", "shortDescription": "One SDK for cross-platform publishing HTML5 games.", - "version": "1.21.0", + "version": "1.23.0", "description": [ "One SDK for cross-platform publishing HTML5 games. ", "Please refer to [Playgama documentation](https://wiki.playgama.com/playgama/sdk/engines/gdevelop) for detailed guidance." ], + "origin": { + "identifier": "PlaygamaBridge", + "name": "gdevelop-extension-store" + }, "tags": [ "playgama", "bridge", @@ -55,37 +59,29 @@ " \"devId\": \"\",", " \"publisherId\": \"\"", " },", - " \"facebook\": {", - " \"bannerPlacementId\": \"\",", - " \"interstitialPlacements\": [],", - " \"rewardedPlacements\": []", + " \"msn\": {", + " \"gameId\": \"\"", + " },", + " \"discord\" : {", + " \"appId\": \"\"", + " },", + " \"gamepush\": {", + " \"projectId\": \"\",", + " \"publicToken\": \"\"", " }", " },", - " \"payments\": [", - " {", - " \"commonId\": \"test_product\",", - " \"yandex\": {", - " \"id\": \"test_product\"", - " },", - " \"facebook\": {", - " \"productID\": \"test_product\"", - " },", - " \"msn\": {", - " \"productId\": \"test_product\"", - " },", - " \"playgama\": {", - " \"amount\": 1", - " },", - " \"qa_tool\": {", - " \"id\": \"test_product\",", - " \"amount\": 1", - " },", - " \"playdeck\": {", - " \"amount\": 1,", - " \"description\": \"TEST PRODUCT\"", - " }", - " }", - " ]", + " \"advertisement\": {", + " \"interstitial\": {", + " \"preloadOnStart\": true", + " },", + " \"rewarded\": {", + " \"preloadOnStart\": true", + " },", + " \"useBuiltInErrorPopup\": true,", + " \"backfillId\": \"\"", + " },", + " \"payments\": [],", + " \"leaderboards\": []", "}", "" ], @@ -95,7 +91,7 @@ }, { "type": "BuiltinCommonInstructions::JsCode", - "inlineCode": "(()=>{var e={258:e=>{!function(t){e.exports=t;var r=\"listeners\",n={on:function(e,t){return a(this,e).push(t),this},once:function(e,t){var r=this;return n.originalListener=t,a(r,e).push(n),r;function n(){i.call(r,e,n),t.apply(this,arguments)}},off:i,emit:function(e,t){var r=this,n=a(r,e,!0);if(!n)return!1;var o=arguments.length;if(1===o)n.forEach((function(e){e.call(r)}));else if(2===o)n.forEach((function(e){e.call(r,t)}));else{var i=Array.prototype.slice.call(arguments,1);n.forEach((function(e){e.apply(r,i)}))}return!!n.length}};function o(e){for(var t in n)e[t]=n[t];return e}function i(e,t){var n,o=this;if(arguments.length){if(t){if(n=a(o,e,!0)){if(!(n=n.filter((function(e){return e!==t&&e.originalListener!==t}))).length)return i.call(o,e);o[r][e]=n}}else if((n=o[r])&&(delete n[e],!Object.keys(n).length))return i.call(o)}else delete o[r];return o}function a(e,t,n){if(!n||e[r]){var o=e[r]||(e[r]={});return o[t]||(o[t]=[])}}o(t.prototype),t.mixin=o}((function e(){if(!(this instanceof e))return new e}))}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{\"use strict\";var e={VK:\"vk\",OK:\"ok\",YANDEX:\"yandex\",CRAZY_GAMES:\"crazy_games\",ABSOLUTE_GAMES:\"absolute_games\",GAME_DISTRIBUTION:\"game_distribution\",PLAYGAMA:\"playgama\",WORTAL:\"wortal\",PLAYDECK:\"playdeck\",TELEGRAM:\"telegram\",Y8:\"y8\",LAGGED:\"lagged\",FACEBOOK:\"facebook\",POKI:\"poki\",MOCK:\"mock\",QA_TOOL:\"qa_tool\",MSN:\"msn\"},t={PLATFORM:\"platform\",PLAYER:\"player\",GAME:\"game\",STORAGE:\"storage\",ADVERTISEMENT:\"advertisement\",SOCIAL:\"social\",DEVICE:\"device\",LEADERBOARD:\"leaderboard\",PAYMENTS:\"payments\",REMOTE_CONFIG:\"remote_config\",CLIPBOARD:\"clipboard\",ACHIEVEMENTS:\"achievements\"},n={INTERSTITIAL_STATE_CHANGED:\"interstitial_state_changed\",REWARDED_STATE_CHANGED:\"rewarded_state_changed\",BANNER_STATE_CHANGED:\"banner_state_changed\",VISIBILITY_STATE_CHANGED:\"visibility_state_changed\"},o={VISIBLE:\"visible\",HIDDEN:\"hidden\"},i={LOADING:\"loading\",OPENED:\"opened\",CLOSED:\"closed\",FAILED:\"failed\"},a={LOADING:\"loading\",OPENED:\"opened\",CLOSED:\"closed\",FAILED:\"failed\",REWARDED:\"rewarded\"},s={LOADING:\"loading\",SHOWN:\"shown\",HIDDEN:\"hidden\",FAILED:\"failed\"},u={LOCAL_STORAGE:\"local_storage\",PLATFORM_INTERNAL:\"platform_internal\"},c={DESKTOP:\"desktop\",MOBILE:\"mobile\",TABLET:\"tablet\",TV:\"tv\"},l={GAME_READY:\"game_ready\",IN_GAME_LOADING_STARTED:\"in_game_loading_started\",IN_GAME_LOADING_STOPPED:\"in_game_loading_stopped\",GAMEPLAY_STARTED:\"gameplay_started\",GAMEPLAY_STOPPED:\"gameplay_stopped\",PLAYER_GOT_ACHIEVEMENT:\"player_got_achievement\",GAME_OVER:\"game_over\"},f={INITIALIZE:\"initialize\",AUTHORIZE_PLAYER:\"authorize_player\",SHARE:\"share\",INVITE_FRIENDS:\"invite_friends\",JOIN_COMMUNITY:\"join_community\",CREATE_POST:\"create_post\",ADD_TO_HOME_SCREEN:\"add_to_home_screen\",ADD_TO_FAVORITES:\"add_to_favorites\",RATE:\"rate\",SET_LEADERBOARD_SCORE:\"set_leaderboard_score\",GET_LEADERBOARD_SCORE:\"get_leaderboard_score\",GET_LEADERBOARD_ENTRIES:\"get_leaderboard_entries\",GET_PURCHASES:\"get_purchases\",GET_CATALOG:\"get_catalog\",PURCHASE:\"purchase\",CONSUME_PURCHASE:\"consume_purchase\",GET_REMOTE_CONFIG:\"get_remote_config\",GET_STORAGE_DATA:\"get_storage_data\",SHOW_LEADERBOARD_NATIVE_POPUP:\"show_leaderboard_native_popup\",CLIPBOARD_WRITE:\"clipboard_write\",ADBLOCK_DETECT:\"adblock_detect\"},p={message:\"Before using the SDK you must initialize it\"},d={message:\"Storage not supported\"},y={message:\"Storage not available\"},h={message:\"GameDistribution Game ID is undefined\"},m={message:\"Y8 Game params are not found\"},v={message:\"OK Game params are not found\"},_={message:\"Lagged Game params are not found\"},g={message:\"Message is too long\"};function S(e){return S=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},S(e)}function b(e,t){for(var r=0;r2&&void 0!==arguments[2])||arguments[2];if(t){var n=t[this._platformBridge.platformId];if(n)return this.get(e,n,r)}var o=t;return o||(o=this.defaultType),this._platformBridge.isStorageAvailable(o)?this._platformBridge.getDataFromStorage(e,o,r):Promise.reject()}},{key:\"set\",value:function(e,t,r){if(r){var n=r[this._platformBridge.platformId];if(n)return this.set(e,t,n)}var o=r;return o||(o=this.defaultType),this._platformBridge.isStorageAvailable(o)?this._platformBridge.setDataToStorage(e,t,o):Promise.reject()}},{key:\"delete\",value:function(e,t){if(t){var r=t[this._platformBridge.platformId];if(r)return this.delete(e,r)}var n=t;return n||(n=this.defaultType),this._platformBridge.isStorageAvailable(n)?this._platformBridge.deleteDataFromStorage(e,n):Promise.reject()}}],r&&ae(t.prototype,r),Object.defineProperty(t,\"prototype\",{writable:!1}),a}(N);function fe(e){return fe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},fe(e)}function pe(e,t){for(var r=0;r0&&xe(Ge(t),Ke,Xe).call(Ge(t)),t.emit(n.INTERSTITIAL_STATE_CHANGED,e)})),t._platformBridge.on(n.REWARDED_STATE_CHANGED,(function(e){return t.emit(n.REWARDED_STATE_CHANGED,e)})),t._platformBridge.on(n.BANNER_STATE_CHANGED,(function(e){return t.emit(n.BANNER_STATE_CHANGED,e)})),t}return t=l,(r=[{key:\"isBannerSupported\",get:function(){return this._platformBridge.isBannerSupported}},{key:\"bannerState\",get:function(){return this._platformBridge.bannerState}},{key:\"interstitialState\",get:function(){return this._platformBridge.interstitialState}},{key:\"rewardedState\",get:function(){return this._platformBridge.rewardedState}},{key:\"minimumDelayBetweenInterstitial\",get:function(){return We(this,Ze)}},{key:\"setMinimumDelayBetweenInterstitial\",value:function(e){if(e){var t=e[this._platformBridge.platformId];if(void 0!==t)return void this.setMinimumDelayBetweenInterstitial(t)}var r=je(e),n=We(this,Ze);switch(r){case\"number\":n=e;break;case\"string\":if(n=parseInt(e,10),Number.isNaN(n))return;break;default:return}ze(this,Ze,n),We(this,Ye)&&(We(this,Ye).stop(),xe(this,Ke,Xe).call(this))}},{key:\"showBanner\",value:function(e){if(e){var t=e[this._platformBridge.platformId];if(t)return void this.showBanner(t)}this.bannerState!==s.LOADING&&this.bannerState!==s.SHOWN&&(this._platformBridge._setBannerState(s.LOADING),this.isBannerSupported?this._platformBridge.showBanner(e):this._platformBridge._setBannerState(s.FAILED))}},{key:\"hideBanner\",value:function(){this.bannerState!==s.LOADING&&this.bannerState!==s.HIDDEN&&this.isBannerSupported&&this._platformBridge.hideBanner()}},{key:\"showInterstitial\",value:function(e){if(!xe(this,Je,Qe).call(this)){if(e){var t=e[this._platformBridge.platformId];if(t)return void this.showInterstitial(t)}var r=!1;e&&\"boolean\"==typeof e.ignoreDelay&&(r=e.ignoreDelay),this._platformBridge._setInterstitialState(i.LOADING),!We(this,Ye)||We(this,Ye).state===Pe||r?this._platformBridge.showInterstitial(e):this._platformBridge._setInterstitialState(i.FAILED)}}},{key:\"showRewarded\",value:function(e){if(!xe(this,Je,Qe).call(this)){if(e){var t=e[this._platformBridge.platformId];if(t)return void this.showRewarded(t)}this._platformBridge._setRewardedState(a.LOADING),this._platformBridge.showRewarded(e)}}},{key:\"checkAdBlock\",value:function(){return this._platformBridge.checkAdBlock()}}])&&Ne(t.prototype,r),Object.defineProperty(t,\"prototype\",{writable:!1}),l}(N);function Xe(){ze(this,Ye,new Le(We(this,Ze))),We(this,Ye).start()}function Qe(){return this.interstitialState===i.LOADING||this.interstitialState===i.OPENED||!![a.LOADING,a.OPENED,a.REWARDED].includes(this.rewardedState)}X().mixin(qe.prototype);const $e=qe;function et(e){return et=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},et(e)}function tt(e,t){for(var r=0;r2&&void 0!==arguments[2]&&arguments[2];return Array.isArray(e)?e.reduce((function(e,n,o){if(e[o]=tr(t,n),r)try{e[o]=JSON.parse(e[o])}catch(e){console.error(e)}return e}),new Array(e.length)):tr(t,e)}function nr(e){return nr=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},nr(e)}function or(e,t){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"result\",i=this._getPromiseDecorator(e);return i||(i=this._createPromiseDecorator(e),this._platformSdk.send(t,n).then((function(t){t[o]?r._resolvePromiseDecorator(e):r._rejectPromiseDecorator(e)})).catch((function(t){r._rejectPromiseDecorator(e,t)}))),i.promise}const vr=function(t){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&sr(e,t)}(d,t);var r,n,o,l,p=(o=d,l=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=cr(o);if(l){var r=cr(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&(\"object\"===nr(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return ur(e)}(this,e)});function d(){var e,t,r;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,d);for(var n=arguments.length,o=new Array(n),i=0;i0&&(r=e.entries.map((function(e){return{id:e.player.uniqueID,score:e.score,rank:e.rank,name:e.player.publicName,photo:e.player.getAvatarSrc(\"large\")}}))),t._resolvePromiseDecorator(f.GET_LEADERBOARD_ENTRIES,r)})).catch((function(e){t._rejectPromiseDecorator(f.GET_LEADERBOARD_ENTRIES,e)}))}return r.promise}},{key:\"paymentsPurchase\",value:function(e){var t=this,r=this._paymentsGetProductPlatformData(e);if(!Tr(this,Br)||!r)return Promise.reject();var n=this._getPromiseDecorator(f.PURCHASE);return n||(n=this._createPromiseDecorator(f.PURCHASE),Tr(this,Br).purchase(r).then((function(r){var n=Sr({commonId:e},r.purchaseData);t._paymentsPurchases.push(n),t._resolvePromiseDecorator(f.PURCHASE,n)})).catch((function(e){t._rejectPromiseDecorator(f.PURCHASE,e)}))),n.promise}},{key:\"paymentsConsumePurchase\",value:function(e){var t=this;if(!Tr(this,Br))return Promise.reject();var r=this._paymentsPurchases.findIndex((function(t){return t.commonId===e}));if(r<0)return Promise.reject();var n=this._getPromiseDecorator(f.CONSUME_PURCHASE);return n||(n=this._createPromiseDecorator(f.CONSUME_PURCHASE),Tr(this,Br).consumePurchase(this._paymentsPurchases[r].purchaseToken).then((function(e){t._paymentsPurchases.splice(r,1),t._resolvePromiseDecorator(f.CONSUME_PURCHASE,e)})).catch((function(e){t._rejectPromiseDecorator(f.CONSUME_PURCHASE,e)}))),n.promise}},{key:\"paymentsGetCatalog\",value:function(){var e=this;if(!Tr(this,Br))return Promise.reject();var t=this._paymentsGetProductsPlatformData(),r=this._getPromiseDecorator(f.GET_CATALOG);return r||(r=this._createPromiseDecorator(f.GET_CATALOG),Tr(this,Br).getCatalog().then((function(r){var n=t.map((function(e){var t,n=r.find((function(t){return t.id===e.id}));return{commonId:e.commonId,id:n.id,title:n.title,description:n.description,imageURI:n.imageURI,price:n.price,priceCurrencyCode:n.priceCurrencyCode,priceValue:n.priceValue,priceCurrencyImage:null===(t=n.getPriceCurrencyImage)||void 0===t?void 0:t.call(n,\"medium\")}}));e._resolvePromiseDecorator(f.GET_CATALOG,n)})).catch((function(t){e._rejectPromiseDecorator(f.GET_CATALOG,t)}))),r.promise}},{key:\"paymentsGetPurchases\",value:function(){var e=this;if(!Tr(this,Br))return Promise.reject();var t=this._getPromiseDecorator(f.GET_PURCHASES);return t||(t=this._createPromiseDecorator(f.GET_PURCHASES),Tr(this,Br).getPurchases().then((function(t){var r=e._paymentsGetProductsPlatformData();e._paymentsPurchases=t.map((function(e){return Sr({commonId:r.find((function(t){return t.id===e.productID})).commonId},e.purchaseData)})),e._resolvePromiseDecorator(f.GET_PURCHASES,e._paymentsPurchases)})).catch((function(t){e._rejectPromiseDecorator(f.GET_PURCHASES,t)}))),t.promise}},{key:\"getRemoteConfig\",value:function(e){var t=this;if(!this._platformSdk)return Promise.reject();var r=e;r||(r={}),r.clientFeatures||(r.clientFeatures=[]);var n=this._getPromiseDecorator(f.GET_REMOTE_CONFIG);return n||(n=this._createPromiseDecorator(f.GET_REMOTE_CONFIG),this._platformSdk.getFlags(r).then((function(e){t._resolvePromiseDecorator(f.GET_REMOTE_CONFIG,e)})).catch((function(e){t._rejectPromiseDecorator(f.GET_REMOTE_CONFIG,e)}))),n.promise}},{key:\"clipboardWrite\",value:function(e){var t=this,r=this._getPromiseDecorator(f.CLIPBOARD_WRITE);return r||(r=this._createPromiseDecorator(f.CLIPBOARD_WRITE),this._platformSdk.clipboard.writeText(e).then((function(){t._resolvePromiseDecorator(f.CLIPBOARD_WRITE,!0)})).catch((function(e){t._rejectPromiseDecorator(f.CLIPBOARD_WRITE,e)}))),r.promise}}])&&br(r.prototype,n),Object.defineProperty(r,\"prototype\",{writable:!1}),y}(Xt);function Hr(e){return Hr=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Hr(e)}function Ur(e,t){for(var r=0;r120?this._rejectPromiseDecorator(f.INVITE_FRIENDS,g):this._platformSdk.UI.showInvite(t)),r.promise}},{key:\"rate\",value:function(){var e=this._getPromiseDecorator(f.RATE);return e||(e=this._createPromiseDecorator(f.RATE),this._platformSdk.UI.showRatingDialog()),e.promise}},{key:\"createPost\",value:function(e){if(!e||null==e||!e.media)return Promise.reject();var t,r=this._getPromiseDecorator(f.CREATE_POST);return r||(r=this._createPromiseDecorator(f.CREATE_POST),this._platformSdk.UI.postMediatopic(e,null!==(t=e.status)&&void 0!==t&&t)),r.promise}},{key:\"joinCommunity\",value:function(e){if(!e||null==e||!e.groupId)return Promise.reject();var t,r=this._getPromiseDecorator(f.JOIN_COMMUNITY);return r||(r=this._createPromiseDecorator(f.JOIN_COMMUNITY),this._platformSdk.UI.joinGroup(e.groupId,null!==(t=e.enableMessages)&&void 0!==t&&t)),r.promise}}])&&Nn(r.prototype,n),Object.defineProperty(r,\"prototype\",{writable:!1}),l}(Xt);function No(e){return No=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},No(e)}function Co(){Co=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i=\"function\"==typeof Symbol?Symbol:{},a=i.iterator||\"@@iterator\",s=i.asyncIterator||\"@@asyncIterator\",u=i.toStringTag||\"@@toStringTag\";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},\"\")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new R(n||[]);return o(a,\"_invoke\",{value:O(e,r,s)}),a}function f(e,t,r){try{return{type:\"normal\",arg:e.call(t,r)}}catch(e){return{type:\"throw\",arg:e}}}t.wrap=l;var p=\"suspendedStart\",d=\"suspendedYield\",y=\"executing\",h=\"completed\",m={};function v(){}function _(){}function g(){}var S={};c(S,a,(function(){return this}));var b=Object.getPrototypeOf,P=b&&b(b(T([])));P&&P!==r&&n.call(P,a)&&(S=P);var E=g.prototype=v.prototype=Object.create(S);function A(e){[\"next\",\"throw\",\"return\"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(o,i,a,s){var u=f(e[o],e,i);if(\"throw\"!==u.type){var c=u.arg,l=c.value;return l&&\"object\"==No(l)&&n.call(l,\"__await\")?t.resolve(l.__await).then((function(e){r(\"next\",e,a,s)}),(function(e){r(\"throw\",e,a,s)})):t.resolve(l).then((function(e){c.value=e,a(c)}),(function(e){return r(\"throw\",e,a,s)}))}s(u.arg)}var i;o(this,\"_invoke\",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=p;return function(i,a){if(o===y)throw new Error(\"Generator is already running\");if(o===h){if(\"throw\"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=D(s,n);if(u){if(u===m)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=y;var c=f(t,r,n);if(\"normal\"===c.type){if(o=n.done?h:d,c.arg===m)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=h,n.method=\"throw\",n.arg=c.arg)}}}function D(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,\"throw\"===n&&t.iterator.return&&(r.method=\"return\",r.arg=e,D(t,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),m;var i=f(o,t.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=e),r.delegate=null,m):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,m)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type=\"normal\",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:\"root\"}],e.forEach(k,this),this.reset(!0)}function T(t){if(t||\"\"===t){var r=t[a];if(r)return r.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;I(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=e),m}},t}function Bo(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function Go(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mo(e){for(var t=1;t1&&void 0!==n[1]&&n[1],this._platformStorageCachedData){e.next=5;break}return e.next=4,this.platformSdk.cloudSaveApi.getState();case 4:this._platformStorageCachedData=e.sent;case 5:return e.abrupt(\"return\",rr(t,this._platformStorageCachedData,r));case 6:case\"end\":return e.stop()}}),e,this)})),Xo=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Bo(i,n,o,a,s,\"next\",e)}function s(e){Bo(i,n,o,a,s,\"throw\",e)}a(void 0)}))},Xo.apply(this,arguments)}const Qo=function(t){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&zo(e,t)}(l,t);var r,n,o,s,c=(o=l,s=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Wo(o);if(s){var r=Wo(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&(\"object\"===No(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return xo(e)}(this,e)});function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,l);for(var t=arguments.length,r=new Array(t),n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Ki)),{},{playerid:t.playerid,playername:t.playername,lastupdated:t.lastupdated,date:t.date,rdate:t.rdate})}))):n(new Error(e.errorcode))}))}))}},{key:\"showAchievementsNativePopup\",value:function(e){return this._platformSdk.GameAPI.Achievements.list(e),Promise.resolve()}}])&&Qi(r.prototype,n),Object.defineProperty(r,\"prototype\",{writable:!1}),l}(Xt);function da(e){return da=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},da(e)}function ya(e,t){for(var r=0;r0&&(e._playerId=o,e._playerName=i,e._playerPhotos.push(a),e._isPlayerAuthorized=!0),e._isInitialized=!0,e._resolvePromiseDecorator(f.INITIALIZE)}))}))})):this._rejectPromiseDecorator(f.INITIALIZE,_)),t.promise}},{key:\"isStorageSupported\",value:function(e){return e!==u.PLATFORM_INTERNAL&&ma(_a(l.prototype),\"isStorageSupported\",this).call(this,e)}},{key:\"isStorageAvailable\",value:function(e){return e!==u.PLATFORM_INTERNAL&&ma(_a(l.prototype),\"isStorageAvailable\",this).call(this,e)}},{key:\"showInterstitial\",value:function(){var e=this;this._setInterstitialState(i.OPENED),this._platformSdk.APIAds.show((function(){e._setInterstitialState(i.CLOSED)}))}},{key:\"showRewarded\",value:function(){var e=this;this._setRewardedState(a.OPENED),this._platformSdk.GEvents.reward((function(t,r){t?r():e._setRewardedState(a.FAILED)}),(function(t){t?(e._setRewardedState(a.REWARDED),e._setRewardedState(a.CLOSED)):e._setRewardedState(a.FAILED)}))}},{key:\"setLeaderboardScore\",value:function(e){var t=this;if(!this._isPlayerAuthorized)return Promise.reject();if(void 0===(null==e?void 0:e.score)||null==e||!e.boardId)return Promise.reject();var r=this._getPromiseDecorator(f.SET_LEADERBOARD_SCORE);if(!r){r=this._createPromiseDecorator(f.SET_LEADERBOARD_SCORE);var n={score:\"string\"==typeof e.score?parseInt(e.score,10):e.score,board:e.boardId};this._platformSdk.Scores.save(n,(function(e){e.success?t._resolvePromiseDecorator(f.SET_LEADERBOARD_SCORE):t._rejectPromiseDecorator(f.SET_LEADERBOARD_SCORE,e.errormsg)}))}return r.promise}},{key:\"unlockAchievement\",value:function(e){var t=this;return e.achievement?new Promise((function(r,n){t._platformSdk.Achievements.save(Array.isArray(e.achievement)?e.achievement:[e.achievement],(function(e){e.success?r(e):n(e.errormsg)}))})):Promise.reject()}}])&&ya(r.prototype,n),Object.defineProperty(r,\"prototype\",{writable:!1}),l}(Xt);function Sa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ba(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1])&&this._preloadedInterstitialPromises[e])return this._preloadedInterstitialPromises[e];var r=null;return this._preloadedInterstitialPromises[e]=this._platformSdk.getInterstitialAdAsync(e).then((function(e){return r=e,e.loadAsync()})).then((function(){return r})).catch((function(){return t._preloadedInterstitialPromises[e]=null,Promise.reject()})),this._preloadedInterstitialPromises[e]}function Ca(e){var t=this;if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&this._preloadedRewardedPromises[e])return this._preloadedRewardedPromises[e];var r=null;return this._preloadedRewardedPromises[e]=this._platformSdk.getRewardedVideoAsync(e).then((function(e){return r=e,e.loadAsync()})).then((function(){return r})).catch((function(){return t._preloadedRewardedPromises[e]=null,Promise.reject()})),this._preloadedRewardedPromises[e]}const Ba=function(t){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&wa(e,t)}(y,t);var r,n,o,p,d=(o=y,p=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Da(o);if(p){var r=Da(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&(\"object\"===Pa(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return Oa(e)}(this,e)});function y(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,y);for(var t=arguments.length,r=new Array(t),n=0;n2&&(e._platformLanguage=t.substring(0,2).toLowerCase()),e._supportedApis=e._platformSdk.getSupportedAPIs(),e._isInitialized=!0;for(var r=0;r0&&(r=e.entries.map((function(e){return{rank:e.rank,score:e.score,format_score:e.format_score,ts:e.ts,extra_data:e.extra_data,playerId:e.player.player_id,playerName:e.player.name,playerPhoto:e.player.photo}}))),t._resolvePromiseDecorator(f.GET_LEADERBOARD_ENTRIES,r)})).catch((function(e){t._rejectPromiseDecorator(f.GET_LEADERBOARD_ENTRIES,e)}))}return r.promise}},{key:\"paymentsPurchase\",value:function(e){var t=this,r=this._paymentsGetProductPlatformData(e);if(!r)return Promise.reject();var n=this._getPromiseDecorator(f.PURCHASE);return n||(n=this._createPromiseDecorator(f.PURCHASE),this._platformSdk.payments.purchaseAsync(r).then((function(r){var n=ba({commonId:e},r);t._paymentsPurchases.push(n),t._resolvePromiseDecorator(f.PURCHASE,r)})).catch((function(e){t._rejectPromiseDecorator(f.PURCHASE,e)}))),n.promise}},{key:\"paymentsConsumePurchase\",value:function(e){var t=this,r=this._paymentsPurchases.findIndex((function(t){return t.commonId===e}));if(r<0)return Promise.reject();var n=this._getPromiseDecorator(f.CONSUME_PURCHASE);return n||(n=this._createPromiseDecorator(f.CONSUME_PURCHASE),this._platformSdk.payments.consumePurchaseAsync(this._paymentsPurchases[r].purchaseToken).then((function(e){t._paymentsPurchases.splice(r,1),t._resolvePromiseDecorator(f.CONSUME_PURCHASE,e)})).catch((function(e){t._rejectPromiseDecorator(f.CONSUME_PURCHASE,e)}))),n.promise}},{key:\"paymentsGetCatalog\",value:function(){var e=this,t=this._paymentsGetProductsPlatformData();if(!t)return Promise.reject();var r=this._getPromiseDecorator(f.GET_CATALOG);return r||(r=this._createPromiseDecorator(f.GET_CATALOG),this._platformSdk.payments.getCatalogAsync().then((function(r){var n=t.map((function(e){var t=r.find((function(t){return t.productID===e.productID}));return{commonId:e.commonId,productID:t.productID,description:t.description,imageURI:t.imageURI,price:t.price,priceCurrencyCode:t.priceCurrencyCode,priceValue:t.priceAmount,title:t.title}}));e._resolvePromiseDecorator(f.GET_CATALOG,n)})).catch((function(t){e._rejectPromiseDecorator(f.GET_CATALOG,t)}))),r.promise}},{key:\"paymentsGetPurchases\",value:function(){var e=this,t=this._getPromiseDecorator(f.GET_PURCHASES);return t||(t=this._createPromiseDecorator(f.GET_PURCHASES),this._platformSdk.payments.getPurchasesAsync().then((function(t){var r=e._paymentsGetProductsPlatformData();e._paymentsPurchases=t.map((function(e){return ba({commonId:r.find((function(t){return t.id===e.productID})).commonId},e)})),e._resolvePromiseDecorator(f.GET_PURCHASES,e._paymentsPurchases)})).catch((function(t){e._rejectPromiseDecorator(f.GET_PURCHASES,t)}))),t.promise}},{key:\"inviteFriends\",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t.image||!t.text)return Promise.reject();if(!er(t.image))return Promise.reject(new Error(\"Image is not base64\"));var r=this._getPromiseDecorator(f.INVITE_FRIENDS);return r||(r=this._createPromiseDecorator(f.INVITE_FRIENDS),this._platformSdk.inviteAsync(t).then((function(){e._resolvePromiseDecorator(f.INVITE_FRIENDS)})).catch((function(t){e._rejectPromiseDecorator(f.INVITE_FRIENDS,t)}))),r.promise}},{key:\"share\",value:function(e){var t=this;if(!e.image||!e.text)return Promise.reject();if(!er(e.image))return Promise.reject(new Error(\"Image is not base64\"));var r=this._getPromiseDecorator(f.SHARE);return r||(r=this._createPromiseDecorator(f.SHARE),this._platformSdk.shareAsync(e).then((function(){t._resolvePromiseDecorator(f.SHARE)})).catch((function(e){t._rejectPromiseDecorator(f.SHARE,e)}))),r.promise}}],n&&Ea(r.prototype,n),Object.defineProperty(r,\"prototype\",{writable:!1}),y}(Xt);function Ga(e){return Ga=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Ga(e)}function Ma(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:\"*\";window.parent&&window.parent.postMessage(e,t)}},{key:\"addListener\",value:function(e){window.addEventListener(\"message\",e)}},{key:\"removeListener\",value:function(e){window.removeEventListener(\"message\",e)}},{key:\"generateMessageId\",value:function(){return\"\".concat(Date.now(),\"-\").concat(Math.random())}}],r&&Ma(t.prototype,r),Object.defineProperty(t,\"prototype\",{writable:!1}),e}();function za(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xa(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],n=Array.isArray(r)?r:[],o=performance.getEntriesByType(\"resource\")||[],i=n.length>0?n:[\"name\",\"initiatorType\"],a=o.map((function(e){var t={};return i.forEach((function(r){r in e&&(t[r]=e[r])})),t}));return ts(this,ds).send({type:t.PLATFORM,action:cs,id:e,options:{resources:a}}),Promise.resolve(o)}Ha=ms;const Ss=ms;function bs(e){return bs=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},bs(e)}function Ps(e,t){for(var r=0;r0&&void 0!==arguments[0]&&arguments[0]||!this._preloadedRewardedPromise?(this._preloadedRewardedPromise=Ms(this,Us,Vs).call(this,!0).catch((function(){e._preloadedRewardedPromise=null})),this._preloadedRewardedPromise):this._preloadedRewardedPromise}function Ws(){var e=this;return arguments.length>0&&void 0!==arguments[0]&&arguments[0]||!this._preloadedInterstitialPromise?(this._preloadedInterstitialPromise=Ms(this,Us,Vs).call(this).catch((function(){e._preloadedInterstitialPromise=null})),this._preloadedInterstitialPromise):this._preloadedInterstitialPromise}function Vs(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(r,n){var o=3;!function i(){o-=1,e._platformSdk.loadAdsAsync(t).then(r).catch((function(e){\"LOAD_ADS_FAILURE\"!==e.code||o<1?n(e):i()}))}()}))}function Ys(e){e.playerId&&(this._playerId=e.playerId,this._playerName=e.playerDisplayName,this._isPlayerAuthorized=!0)}const Zs=function(t){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&Ls(e,t)}(l,t);var r,n,o,u,c=(o=l,u=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ns(o);if(u){var r=Ns(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&(\"object\"===ks(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return js(e)}(this,e)});function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,l);for(var t=arguments.length,r=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:{}).position||\"top:728x90\";this._platformSdk.showDisplayAdsAsync(Array.isArray(t)?t:[t]).then((function(){e._setBannerState(s.SHOWN)})).catch((function(){e._setBannerState(s.FAILED)}))}},{key:\"hideBanner\",value:function(){var e=this;this._bannerState===s.SHOWN&&this._platformSdk.hideDisplayAdsAsync().then((function(){e._setBannerState(s.HIDDEN)}))}},{key:\"showInterstitial\",value:function(){var e=this;Ms(this,Hs,Ws).call(this).then((function(t){return e._platformSdk.showAdsAsync(t.instanceId)})).then((function(t){return e._setInterstitialState(i.OPENED),t.showAdsCompletedAsync})).then((function(){return e._setInterstitialState(i.CLOSED)})).catch((function(){e._setInterstitialState(i.FAILED)})).finally((function(){Ms(e,Hs,Ws).call(e,!0)}))}},{key:\"showRewarded\",value:function(){var e=this;Ms(this,Fs,xs).call(this).then((function(t){return e._platformSdk.showAdsAsync(t.instanceId)})).then((function(t){return e._setRewardedState(a.OPENED),t.showAdsCompletedAsync})).then((function(){e._setRewardedState(a.REWARDED),e._setRewardedState(a.CLOSED)})).catch((function(){e._setRewardedState(a.FAILED)})).finally((function(){Ms(e,Fs,xs).call(e,!0)}))}},{key:\"paymentsPurchase\",value:function(e){var t=this,r=this._paymentsGetProductPlatformData(e);if(!r)return Promise.reject();var n=this._getPromiseDecorator(f.PURCHASE);return n||(n=this._createPromiseDecorator(f.PURCHASE),this._platformSdk.iap.purchaseAsync(r).then((function(r){if(\"IAP_PURCHASE_FAILURE\"!==r.code){var n=Rs(Rs({commonId:e},r.receipt),{},{receiptSignature:r.receiptSignature});t._paymentsPurchases.push(n),t._resolvePromiseDecorator(f.PURCHASE,n)}else t._rejectPromiseDecorator(f.PURCHASE,r.description)})).catch((function(e){t._rejectPromiseDecorator(f.PURCHASE,e)}))),n.promise}},{key:\"paymentsConsumePurchase\",value:function(e){var t=this,r=this._paymentsPurchases.findIndex((function(t){return t.commonId===e}));if(r<0)return Promise.reject();var n=this._getPromiseDecorator(f.CONSUME_PURCHASE);return n||(n=this._createPromiseDecorator(f.CONSUME_PURCHASE),this._platformSdk.iap.consumeAsync(this._paymentsPurchases[r].productId).then((function(e){\"IAP_CONSUME_FAILURE\"!==e.code?(t._paymentsPurchases.splice(r,1),t._resolvePromiseDecorator(f.CONSUME_PURCHASE,Rs(Rs({},e.consumptionReceipt),{},{consumptionSignature:e.consumptionSignature}))):t._rejectPromiseDecorator(f.CONSUME_PURCHASE,e.description)})).catch((function(e){t._rejectPromiseDecorator(f.CONSUME_PURCHASE,e)}))),n.promise}},{key:\"paymentsGetCatalog\",value:function(){var e=this,t=this._paymentsGetProductsPlatformData();if(!t)return Promise.reject();var r=this._getPromiseDecorator(f.GET_CATALOG);return r||(r=this._createPromiseDecorator(f.GET_CATALOG),this._platformSdk.iap.getAllAddOnsAsync().then((function(r){if(\"IAP_GET_ALL_ADD_ONS_FAILURE\"!==r.code){var n=t.map((function(e){var t=r.find((function(t){return t.productId===e.productId}));return{commonId:e.commonId,productId:t.productId,title:t.title,description:t.description,publisherName:t.publisherName,inAppOfferToken:t.inAppOfferToken,isConsumable:t.isConsumable,price:\"\".concat(t.price.listPrice,\" \").concat(t.price.currencyCode,\" \"),priceCurrencyCode:t.price.currencyCode,priceValue:t.price.listPrice}}));e._resolvePromiseDecorator(f.GET_CATALOG,n)}else e._rejectPromiseDecorator(f.GET_CATALOG,r.description)})).catch((function(t){e._rejectPromiseDecorator(f.GET_CATALOG,t)}))),r.promise}},{key:\"paymentsGetPurchases\",value:function(){var e=this,t=this._getPromiseDecorator(f.GET_PURCHASES);return t||(t=this._createPromiseDecorator(f.GET_PURCHASES),this._platformSdk.iap.getPurchasesAsync().then((function(t){if(\"IAP_GET_PURCHASES_FAILURE\"!==t.code){var r=e._paymentsGetProductsPlatformData();e._paymentsPurchases=t.map((function(e){return Rs(Rs({commonId:r.find((function(t){return t.id===e.productID})).commonId},e.receipt),{},{receiptSignature:e.receiptSignature})})),e._resolvePromiseDecorator(f.GET_PURCHASES,e._paymentsPurchases)}else e._rejectPromiseDecorator(f.GET_PURCHASES,t.description)})).catch((function(t){e._rejectPromiseDecorator(f.GET_PURCHASES,t)}))),t.promise}}],n&&Ts(r.prototype,n),Object.defineProperty(r,\"prototype\",{writable:!1}),l}(Xt);function Ks(e){return Ks=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Ks(e)}function Js(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qs(e){for(var t=1;t{var e={258:e=>{!function(t){e.exports=t;var r=\"listeners\",n={on:function(e,t){return a(this,e).push(t),this},once:function(e,t){var r=this;return n.originalListener=t,a(r,e).push(n),r;function n(){i.call(r,e,n),t.apply(this,arguments)}},off:i,emit:function(e,t){var r=this,n=a(r,e,!0);if(!n)return!1;var o=arguments.length;if(1===o)n.forEach((function(e){e.call(r)}));else if(2===o)n.forEach((function(e){e.call(r,t)}));else{var i=Array.prototype.slice.call(arguments,1);n.forEach((function(e){e.apply(r,i)}))}return!!n.length}};function o(e){for(var t in n)e[t]=n[t];return e}function i(e,t){var n,o=this;if(arguments.length){if(t){if(n=a(o,e,!0)){if(!(n=n.filter((function(e){return e!==t&&e.originalListener!==t}))).length)return i.call(o,e);o[r][e]=n}}else if((n=o[r])&&(delete n[e],!Object.keys(n).length))return i.call(o)}else delete o[r];return o}function a(e,t,n){if(!n||e[r]){var o=e[r]||(e[r]={});return o[t]||(o[t]=[])}}o(t.prototype),t.mixin=o}((function e(){if(!(this instanceof e))return new e}))}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{\"use strict\";var e={VK:\"vk\",OK:\"ok\",YANDEX:\"yandex\",CRAZY_GAMES:\"crazy_games\",ABSOLUTE_GAMES:\"absolute_games\",GAME_DISTRIBUTION:\"game_distribution\",PLAYGAMA:\"playgama\",PLAYDECK:\"playdeck\",TELEGRAM:\"telegram\",Y8:\"y8\",LAGGED:\"lagged\",FACEBOOK:\"facebook\",POKI:\"poki\",MOCK:\"mock\",QA_TOOL:\"qa_tool\",MSN:\"msn\",GAMEPUSH:\"gamepush\",DISCORD:\"discord\"},t={PLATFORM:\"platform\",PLAYER:\"player\",GAME:\"game\",STORAGE:\"storage\",ADVERTISEMENT:\"advertisement\",SOCIAL:\"social\",DEVICE:\"device\",LEADERBOARDS:\"leaderboards\",PAYMENTS:\"payments\",REMOTE_CONFIG:\"remote_config\",CLIPBOARD:\"clipboard\",ACHIEVEMENTS:\"achievements\"},n={INTERSTITIAL_STATE_CHANGED:\"interstitial_state_changed\",REWARDED_STATE_CHANGED:\"rewarded_state_changed\",BANNER_STATE_CHANGED:\"banner_state_changed\",VISIBILITY_STATE_CHANGED:\"visibility_state_changed\"},o={VISIBLE:\"visible\",HIDDEN:\"hidden\"},i={LOADING:\"loading\",OPENED:\"opened\",CLOSED:\"closed\",FAILED:\"failed\"},a={LOADING:\"loading\",OPENED:\"opened\",CLOSED:\"closed\",FAILED:\"failed\",REWARDED:\"rewarded\"},s={LOADING:\"loading\",SHOWN:\"shown\",HIDDEN:\"hidden\",FAILED:\"failed\"},u=\"banner-container\",c={LOCAL_STORAGE:\"local_storage\",PLATFORM_INTERNAL:\"platform_internal\"},l={DESKTOP:\"desktop\",MOBILE:\"mobile\",TABLET:\"tablet\",TV:\"tv\"},f={GAME_READY:\"game_ready\",IN_GAME_LOADING_STARTED:\"in_game_loading_started\",IN_GAME_LOADING_STOPPED:\"in_game_loading_stopped\",GAMEPLAY_STARTED:\"gameplay_started\",GAMEPLAY_STOPPED:\"gameplay_stopped\",PLAYER_GOT_ACHIEVEMENT:\"player_got_achievement\",GAME_OVER:\"game_over\"},p=\"in_game\",d=\"native\",h={INITIALIZE:\"initialize\",AUTHORIZE_PLAYER:\"authorize_player\",SHARE:\"share\",INVITE_FRIENDS:\"invite_friends\",JOIN_COMMUNITY:\"join_community\",CREATE_POST:\"create_post\",ADD_TO_HOME_SCREEN:\"add_to_home_screen\",ADD_TO_FAVORITES:\"add_to_favorites\",RATE:\"rate\",LEADERBOARDS_SET_SCORE:\"leaderboards_set_score\",LEADERBOARDS_GET_ENTRIES:\"leaderboards_get_entries\",GET_PURCHASES:\"get_purchases\",GET_CATALOG:\"get_catalog\",PURCHASE:\"purchase\",CONSUME_PURCHASE:\"consume_purchase\",GET_REMOTE_CONFIG:\"get_remote_config\",GET_STORAGE_DATA:\"get_storage_data\",SHOW_LEADERBOARD_NATIVE_POPUP:\"show_leaderboard_native_popup\",CLIPBOARD_WRITE:\"clipboard_write\",ADBLOCK_DETECT:\"adblock_detect\"},y={message:\"Before using the SDK you must initialize it\"},m={message:\"Storage not supported\"},v={message:\"Storage not available\"},_={message:\"GameDistribution Game ID is undefined\"},g={message:\"Y8 Game params are not found\"},S={message:\"OK Game params are not found\"},b={message:\"Lagged Game params are not found\"},P={message:\"GamePush Game params are not found\"},E={message:\"Message is too long\"},w={message:\"Discord Game params are not found\"};function A(e){return A=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},A(e)}function O(e,t){for(var r=0;r2&&void 0!==arguments[2]&&arguments[2];return Array.isArray(e)?e.reduce((function(e,n,o){if(e[o]=fe(t,n),r)try{e[o]=JSON.parse(e[o])}catch(e){console.error(e)}return e}),new Array(e.length)):fe(t,e)}function de(e,t){for(var r=function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];if(!(this._loadingProcessCompleted||t&&null!==this._currentLoadingProgress)){var r=document.getElementById(\"fillRect\"),n=document.getElementById(\"gradientMover\"),o=document.getElementById(\"logo\"),i=document.getElementById(\"loading-overlay\");if(r&&n&&o&&i){this._currentLoadingProgress=e;var a=Math.max(0,Math.min(100,e)),s=100-a;r.style.transform=\"translateY(\".concat(s,\"%)\"),100===a?(this._loadingProcessCompleted=!0,setTimeout((function(){r.style.display=\"none\",n.style.display=\"block\",n.classList.add(\"gradient-mover\")}),400),setTimeout((function(){return o.classList.add(\"logo-fade-out\")}),900),setTimeout((function(){return i.remove()}),1400)):n.classList.remove(\"gradient-mover\")}}}}],r&&ye(t.prototype,r),Object.defineProperty(t,\"prototype\",{writable:!1}),s}(H);ne().mixin(be.prototype);const Pe=be;function Ee(e){return Ee=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Ee(e)}function we(e,t){for(var r=0;r2&&void 0!==arguments[2])||arguments[2];if(t){var n=t[this._platformBridge.platformId];if(n)return this.get(e,n,r)}var o=t;return o||(o=this.defaultType),this._platformBridge.isStorageAvailable(o)?this._platformBridge.getDataFromStorage(e,o,r):Promise.reject()}},{key:\"set\",value:function(e,t,r){if(r){var n=r[this._platformBridge.platformId];if(n)return this.set(e,t,n)}var o=r;return o||(o=this.defaultType),this._platformBridge.isStorageAvailable(o)?this._platformBridge.setDataToStorage(e,t,o):Promise.reject()}},{key:\"delete\",value:function(e,t){if(t){var r=t[this._platformBridge.platformId];if(r)return this.delete(e,r)}var n=t;return n||(n=this.defaultType),this._platformBridge.isStorageAvailable(n)?this._platformBridge.deleteDataFromStorage(e,n):Promise.reject()}}],r&&we(t.prototype,r),Object.defineProperty(t,\"prototype\",{writable:!1}),a}(H);function Ie(e){return Ie=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Ie(e)}function Re(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:\"bottom\",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.bannerState!==s.LOADING&&this.bannerState!==s.SHOWN)if(at(this,vt,wt).call(this,s.LOADING),this.isBannerSupported){var n,o=r;o||null!==(n=this._platformBridge.options)&&void 0!==n&&null!==(n=n.advertisement)&&void 0!==n&&null!==(n=n.banner)&&void 0!==n&&n.placementFallback&&(o=this._platformBridge.options.advertisement.banner.placementFallback);var i=null===(e=this._platformBridge.options)||void 0===e||null===(e=e.advertisement)||void 0===e||null===(e=e.banner)||void 0===e?void 0:e.placements,a=at(this,St,kt).call(this,o,i);this._platformBridge.showBanner(t,a)}else at(this,vt,wt).call(this,s.FAILED)}},{key:\"hideBanner\",value:function(){this.bannerState!==s.LOADING&&this.bannerState!==s.HIDDEN&&this.isBannerSupported&&this._platformBridge.hideBanner()}},{key:\"preloadInterstitial\",value:function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;r&&\"string\"==typeof r||null!==(t=this._platformBridge.options)&&void 0!==t&&null!==(t=t.advertisement)&&void 0!==t&&null!==(t=t.interstitial)&&void 0!==t&&t.placementFallback&&(r=this._platformBridge.options.advertisement.interstitial.placementFallback);var n=null===(e=this._platformBridge.options)||void 0===e||null===(e=e.advertisement)||void 0===e||null===(e=e.interstitial)||void 0===e?void 0:e.placements,o=at(this,St,kt).call(this,r,n);this._platformBridge.preloadInterstitial(o)}},{key:\"showInterstitial\",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!at(this,mt,Et).call(this))if(at(this,_t,At).call(this,i.LOADING),this._platformBridge.isMinimumDelayBetweenInterstitialEnabled&&st(this,ft)&&st(this,ft).state===Fe)at(this,_t,At).call(this,i.FAILED);else{var r,n=t;n||null!==(r=this._platformBridge.options)&&void 0!==r&&null!==(r=r.advertisement)&&void 0!==r&&null!==(r=r.interstitial)&&void 0!==r&&r.placementFallback&&(n=this._platformBridge.options.advertisement.interstitial.placementFallback);var o=null===(e=this._platformBridge.options)||void 0===e||null===(e=e.advertisement)||void 0===e||null===(e=e.interstitial)||void 0===e?void 0:e.placements,a=at(this,St,kt).call(this,n,o);this._platformBridge.showInterstitial(a)}}},{key:\"preloadRewarded\",value:function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;r&&\"string\"==typeof r||null!==(t=this._platformBridge.options)&&void 0!==t&&null!==(t=t.advertisement)&&void 0!==t&&null!==(t=t.rewarded)&&void 0!==t&&t.placementFallback&&(r=this._platformBridge.options.advertisement.rewarded.placementFallback);var n=null===(e=this._platformBridge.options)||void 0===e||null===(e=e.advertisement)||void 0===e||null===(e=e.rewarded)||void 0===e?void 0:e.placements,o=at(this,St,kt).call(this,r,n);this._platformBridge.preloadRewarded(o)}},{key:\"showRewarded\",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!at(this,mt,Et).call(this)){var r;it(this,ht,t),st(this,ht)||null!==(r=this._platformBridge.options)&&void 0!==r&&null!==(r=r.advertisement)&&void 0!==r&&null!==(r=r.rewarded)&&void 0!==r&&r.placementFallback&&it(this,ht,this._platformBridge.options.advertisement.rewarded.placementFallback);var n=null===(e=this._platformBridge.options)||void 0===e||null===(e=e.advertisement)||void 0===e||null===(e=e.rewarded)||void 0===e?void 0:e.placements,o=at(this,St,kt).call(this,st(this,ht),n);at(this,gt,Ot).call(this,a.LOADING),this._platformBridge.showRewarded(o)}}},{key:\"checkAdBlock\",value:function(){return this._platformBridge.checkAdBlock()}}],r&&Xe(t.prototype,r),Object.defineProperty(t,\"prototype\",{writable:!1}),l}(H);function Pt(){st(this,pt)>0&&this._platformBridge.isMinimumDelayBetweenInterstitialEnabled&&(it(this,ft,new Je(st(this,pt))),st(this,ft).start())}function Et(){var e=[i.LOADING,i.OPENED].includes(st(this,lt)),t=[a.LOADING,a.OPENED,a.REWARDED].includes(st(this,dt));return e||t}function wt(e){st(this,ct)!==e&&(it(this,ct,e),this.emit(n.BANNER_STATE_CHANGED,st(this,ct)))}function At(e){st(this,lt)!==e&&(it(this,lt,e),this.emit(n.INTERSTITIAL_STATE_CHANGED,st(this,lt)))}function Ot(e){st(this,dt)!==e&&(it(this,dt,e),this.emit(n.REWARDED_STATE_CHANGED,st(this,dt)))}function kt(e,t){if(!e)return e;if(!t)return e;var r=t.find((function(t){return t.id===e}));return r&&r[this._platformBridge.platformId]?r[this._platformBridge.platformId]:e}ne().mixin(bt.prototype);const Dt=bt;function It(e){return It=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},It(e)}function Rt(e,t){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"result\",i=this._getPromiseDecorator(e);return i||(i=this._createPromiseDecorator(e),this._platformSdk.send(t,n).then((function(t){t[o]?r._resolvePromiseDecorator(e):r._rejectPromiseDecorator(e)})).catch((function(t){r._rejectPromiseDecorator(e,t)}))),i.promise}const Wr=function(t){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&Nr(e,t)}(p,t);var r,n,o,u,f=(o=p,u=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Mr(o);if(u){var r=Mr(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&(\"object\"===Tr(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return Br(e)}(this,e)});function p(){var e,t,r;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,p);for(var n=arguments.length,o=new Array(n),i=0;i0?e.entries.map((function(e){return{id:e.player.uniqueID,name:e.player.publicName,score:e.score,rank:e.rank,photo:e.player.getAvatarSrc(\"large\")}})):[],t._resolvePromiseDecorator(h.LEADERBOARDS_GET_ENTRIES,r)})).catch((function(e){t._rejectPromiseDecorator(h.LEADERBOARDS_GET_ENTRIES,e)}))}return r.promise}},{key:\"paymentsPurchase\",value:function(e){var t=this;if(!an(this,ln))return Promise.reject();var r=this._paymentsGetProductPlatformData(e);r||(r={id:e});var n=this._getPromiseDecorator(h.PURCHASE);return n||(n=this._createPromiseDecorator(h.PURCHASE),an(this,ln).purchase(r).then((function(r){var n=Kr({id:e},r.purchaseData);delete n.productID,t._paymentsPurchases.push(n),t._resolvePromiseDecorator(h.PURCHASE,n)})).catch((function(e){t._rejectPromiseDecorator(h.PURCHASE,e)}))),n.promise}},{key:\"paymentsConsumePurchase\",value:function(e){var t=this;if(!an(this,ln))return Promise.reject();var r=this._paymentsPurchases.findIndex((function(t){return t.id===e}));if(r<0)return Promise.reject();var n=this._getPromiseDecorator(h.CONSUME_PURCHASE);return n||(n=this._createPromiseDecorator(h.CONSUME_PURCHASE),an(this,ln).consumePurchase(this._paymentsPurchases[r].purchaseToken).then((function(){t._paymentsPurchases.splice(r,1),t._resolvePromiseDecorator(h.CONSUME_PURCHASE,{id:e})})).catch((function(e){t._rejectPromiseDecorator(h.CONSUME_PURCHASE,e)}))),n.promise}},{key:\"paymentsGetCatalog\",value:function(){var e=this;if(!an(this,ln))return Promise.reject();var t=this._paymentsGetProductsPlatformData(),r=this._getPromiseDecorator(h.GET_CATALOG);return r||(r=this._createPromiseDecorator(h.GET_CATALOG),an(this,ln).getCatalog().then((function(r){var n=t.map((function(e){var t,n=r.find((function(t){return t.id===e.id}));return{id:e.id,title:n.title,description:n.description,imageURI:n.imageURI,price:n.price,priceCurrencyCode:n.priceCurrencyCode,priceValue:n.priceValue,priceCurrencyImage:null===(t=n.getPriceCurrencyImage)||void 0===t?void 0:t.call(n,\"medium\")}}));e._resolvePromiseDecorator(h.GET_CATALOG,n)})).catch((function(t){e._rejectPromiseDecorator(h.GET_CATALOG,t)}))),r.promise}},{key:\"paymentsGetPurchases\",value:function(){var e=this;if(!an(this,ln))return Promise.reject();var t=this._getPromiseDecorator(h.GET_PURCHASES);return t||(t=this._createPromiseDecorator(h.GET_PURCHASES),an(this,ln).getPurchases().then((function(t){var r=e._paymentsGetProductsPlatformData();e._paymentsPurchases=t.map((function(e){var t=Kr({id:r.find((function(t){return t.id===e.productID})).id},e.purchaseData);return delete t.productID,t})),e._resolvePromiseDecorator(h.GET_PURCHASES,e._paymentsPurchases)})).catch((function(t){e._rejectPromiseDecorator(h.GET_PURCHASES,t)}))),t.promise}},{key:\"getRemoteConfig\",value:function(e){var t=this;if(!this._platformSdk)return Promise.reject();var r=e;r||(r={}),r.clientFeatures||(r.clientFeatures=[]);var n=this._getPromiseDecorator(h.GET_REMOTE_CONFIG);return n||(n=this._createPromiseDecorator(h.GET_REMOTE_CONFIG),this._platformSdk.getFlags(r).then((function(e){t._resolvePromiseDecorator(h.GET_REMOTE_CONFIG,e)})).catch((function(e){t._rejectPromiseDecorator(h.GET_REMOTE_CONFIG,e)}))),n.promise}},{key:\"clipboardWrite\",value:function(e){var t=this,r=this._getPromiseDecorator(h.CLIPBOARD_WRITE);return r||(r=this._createPromiseDecorator(h.CLIPBOARD_WRITE),this._platformSdk.clipboard.writeText(e).then((function(){t._resolvePromiseDecorator(h.CLIPBOARD_WRITE,!0)})).catch((function(e){t._rejectPromiseDecorator(h.CLIPBOARD_WRITE,e)}))),r.promise}}])&&Jr(r.prototype,n),Object.defineProperty(r,\"prototype\",{writable:!1}),y}(Rr);function yn(e){return yn=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},yn(e)}function mn(e,t){for(var r=0;r120?this._rejectPromiseDecorator(h.INVITE_FRIENDS,E):this._platformSdk.UI.showInvite(t)),r.promise}},{key:\"rate\",value:function(){var e=this._getPromiseDecorator(h.RATE);return e||(e=this._createPromiseDecorator(h.RATE),this._platformSdk.UI.showRatingDialog()),e.promise}},{key:\"createPost\",value:function(e){if(!e||null==e||!e.media)return Promise.reject();var t,r=this._getPromiseDecorator(h.CREATE_POST);return r||(r=this._createPromiseDecorator(h.CREATE_POST),this._platformSdk.UI.postMediatopic(e,null!==(t=e.status)&&void 0!==t&&t)),r.promise}},{key:\"joinCommunity\",value:function(e){if(!e||null==e||!e.groupId)return Promise.reject();var t,r=this._getPromiseDecorator(h.JOIN_COMMUNITY);return r||(r=this._createPromiseDecorator(h.JOIN_COMMUNITY),this._platformSdk.UI.joinGroup(e.groupId,null!==(t=e.enableMessages)&&void 0!==t&&t)),r.promise}}])&&oo(r.prototype,n),Object.defineProperty(r,\"prototype\",{writable:!1}),l}(Rr);function ai(e){return ai=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ai(e)}function si(){si=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i=\"function\"==typeof Symbol?Symbol:{},a=i.iterator||\"@@iterator\",s=i.asyncIterator||\"@@asyncIterator\",u=i.toStringTag||\"@@toStringTag\";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},\"\")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new R(n||[]);return o(a,\"_invoke\",{value:O(e,r,s)}),a}function f(e,t,r){try{return{type:\"normal\",arg:e.call(t,r)}}catch(e){return{type:\"throw\",arg:e}}}t.wrap=l;var p=\"suspendedStart\",d=\"suspendedYield\",h=\"executing\",y=\"completed\",m={};function v(){}function _(){}function g(){}var S={};c(S,a,(function(){return this}));var b=Object.getPrototypeOf,P=b&&b(b(T([])));P&&P!==r&&n.call(P,a)&&(S=P);var E=g.prototype=v.prototype=Object.create(S);function w(e){[\"next\",\"throw\",\"return\"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function r(o,i,a,s){var u=f(e[o],e,i);if(\"throw\"!==u.type){var c=u.arg,l=c.value;return l&&\"object\"==ai(l)&&n.call(l,\"__await\")?t.resolve(l.__await).then((function(e){r(\"next\",e,a,s)}),(function(e){r(\"throw\",e,a,s)})):t.resolve(l).then((function(e){c.value=e,a(c)}),(function(e){return r(\"throw\",e,a,s)}))}s(u.arg)}var i;o(this,\"_invoke\",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=p;return function(i,a){if(o===h)throw new Error(\"Generator is already running\");if(o===y){if(\"throw\"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=k(s,n);if(u){if(u===m)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=h;var c=f(t,r,n);if(\"normal\"===c.type){if(o=n.done?y:d,c.arg===m)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=y,n.method=\"throw\",n.arg=c.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,\"throw\"===n&&t.iterator.return&&(r.method=\"return\",r.arg=e,k(t,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),m;var i=f(o,t.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=e),r.delegate=null,m):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,m)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type=\"normal\",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:\"root\"}],e.forEach(D,this),this.reset(!0)}function T(t){if(t||\"\"===t){var r=t[a];if(r)return r.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;I(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=e),m}},t}function ui(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function ci(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function li(e){for(var t=1;t1&&void 0!==n[1]&&n[1],this._platformStorageCachedData){e.next=5;break}return e.next=4,this.platformSdk.cloudSaveApi.getState();case 4:this._platformStorageCachedData=e.sent;case 5:return e.abrupt(\"return\",pe(t,this._platformStorageCachedData,r));case 6:case\"end\":return e.stop()}}),e,this)})),Ei=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ui(i,n,o,a,s,\"next\",e)}function s(e){ui(i,n,o,a,s,\"throw\",e)}a(void 0)}))},Ei.apply(this,arguments)}const wi=function(t){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&hi(e,t)}(l,t);var r,n,o,s,u=(o=l,s=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=mi(o);if(s){var r=mi(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&(\"object\"===ai(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return yi(e)}(this,e)});function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,l);for(var t=arguments.length,r=new Array(t),n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,oa)),{},{playerid:t.playerid,playername:t.playername,lastupdated:t.lastupdated,date:t.date,rdate:t.rdate})}))):n(new Error(e.errorcode))}))}))}},{key:\"showAchievementsNativePopup\",value:function(e){return this._platformSdk.GameAPI.Achievements.list(e),Promise.resolve()}}])&&ua(r.prototype,n),Object.defineProperty(r,\"prototype\",{writable:!1}),l}(Rr);function Ea(e){return Ea=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Ea(e)}function wa(e,t){for(var r=0;r0&&(e._playerId=o,e._playerName=i,e._playerPhotos.push(a),e._isPlayerAuthorized=!0),e._isInitialized=!0,e._resolvePromiseDecorator(h.INITIALIZE)}))}))})):this._rejectPromiseDecorator(h.INITIALIZE,b)),t.promise}},{key:\"isStorageSupported\",value:function(e){return e!==c.PLATFORM_INTERNAL&&Oa(Da(l.prototype),\"isStorageSupported\",this).call(this,e)}},{key:\"isStorageAvailable\",value:function(e){return e!==c.PLATFORM_INTERNAL&&Oa(Da(l.prototype),\"isStorageAvailable\",this).call(this,e)}},{key:\"showInterstitial\",value:function(){var e=this;this._setInterstitialState(i.OPENED),this._platformSdk.APIAds.show((function(){e._setInterstitialState(i.CLOSED)}))}},{key:\"showRewarded\",value:function(){var e=this;this._setRewardedState(a.OPENED),this._platformSdk.GEvents.reward((function(t,r){t?r():e._setRewardedState(a.FAILED)}),(function(t){t?(e._setRewardedState(a.REWARDED),e._setRewardedState(a.CLOSED)):e._setRewardedState(a.FAILED)}))}},{key:\"leaderboardsSetScore\",value:function(e,t){var r=this,n=this._getPromiseDecorator(h.LEADERBOARDS_SET_SCORE);if(!n){n=this._createPromiseDecorator(h.LEADERBOARDS_SET_SCORE);var o={score:t,board:e};this._platformSdk.Scores.save(o,(function(e){e.success?r._resolvePromiseDecorator(h.LEADERBOARDS_SET_SCORE):r._rejectPromiseDecorator(h.LEADERBOARDS_SET_SCORE,e.errormsg)}))}return n.promise}},{key:\"unlockAchievement\",value:function(e){var t=this;return e.achievement?new Promise((function(r,n){t._platformSdk.Achievements.save(Array.isArray(e.achievement)?e.achievement:[e.achievement],(function(e){e.success?r(e):n(e.errormsg)}))})):Promise.reject()}}])&&wa(r.prototype,n),Object.defineProperty(r,\"prototype\",{writable:!1}),l}(Rr);function Ra(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ta(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1])&&this._preloadedInterstitialPromises[e])return this._preloadedInterstitialPromises[e];var r=null;return this._preloadedInterstitialPromises[e]=this._platformSdk.getInterstitialAdAsync(e).then((function(e){return r=e,e.loadAsync()})).then((function(){return r})).catch((function(){return t._preloadedInterstitialPromises[e]=null,Promise.reject()})),this._preloadedInterstitialPromises[e]}function Wa(e){var t=this;if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&this._preloadedRewardedPromises[e])return this._preloadedRewardedPromises[e];var r=null;return this._preloadedRewardedPromises[e]=this._platformSdk.getRewardedVideoAsync(e).then((function(e){return r=e,e.loadAsync()})).then((function(){return r})).catch((function(){return t._preloadedRewardedPromises[e]=null,Promise.reject()})),this._preloadedRewardedPromises[e]}const Ya=function(t){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&Na(e,t)}(y,t);var r,n,o,u,d=(o=y,u=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ma(o);if(u){var r=Ma(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&(\"object\"===La(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return Ba(e)}(this,e)});function y(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,y);for(var t=arguments.length,r=new Array(t),n=0;n2&&(e._platformLanguage=t.substring(0,2).toLowerCase()),e._supportedApis=e._platformSdk.getSupportedAPIs(),e._isInitialized=!0,e._resolvePromiseDecorator(h.INITIALIZE)})).catch((function(t){return e._rejectPromiseDecorator(h.INITIALIZE,t)}))),t.promise}},{key:\"sendMessage\",value:function(e){var t=this;return e===f.GAME_READY?(this._platformSdk.setLoadingProgress(100),new Promise((function(e){t._platformSdk.startGameAsync().then(e)}))):Ca(Ma(y.prototype),\"sendMessage\",this).call(this,e)}},{key:\"authorizePlayer\",value:function(){return Promise.resolve()}},{key:\"isStorageSupported\",value:function(e){return e===c.PLATFORM_INTERNAL?this._supportedApis.includes(\"player.getDataAsync\"):Ca(Ma(y.prototype),\"isStorageSupported\",this).call(this,e)}},{key:\"isStorageAvailable\",value:function(e){return e===c.PLATFORM_INTERNAL?this._isPlayerAuthorized:Ca(Ma(y.prototype),\"isStorageAvailable\",this).call(this,e)}},{key:\"getDataFromStorage\",value:function(e,t,r){var n=this;return t===c.PLATFORM_INTERNAL?new Promise((function(t,o){var i=Array.isArray(e)?e:[e];n._platformSdk.player.getDataAsync(i).then((function(e){var n=i.map((function(t){var n=e[t];return r||\"object\"!==La(n)||null===n?null!=n?n:null:JSON.stringify(n)}));t(n)})).catch(o)})):Ca(Ma(y.prototype),\"getDataFromStorage\",this).call(this,e,t,r)}},{key:\"setDataToStorage\",value:function(e,t,r){var n=this;return r===c.PLATFORM_INTERNAL?new Promise((function(r,o){var i={};if(Array.isArray(e))for(var a=0;a0&&(r=e.entries.map((function(e){var t=e.getPlayer(),r=n;return n+=1,{rank:r,score:e.getScore(),id:t.getID(),name:t.getName(),photo:t.getPhoto()}}))),t._resolvePromiseDecorator(h.LEADERBOARDS_GET_ENTRIES,r)})).catch((function(e){t._rejectPromiseDecorator(h.LEADERBOARDS_GET_ENTRIES,e)}))),r.promise}},{key:\"paymentsPurchase\",value:function(e){var t=this,r=this._paymentsGetProductPlatformData(e);r||(r={id:e});var n=this._getPromiseDecorator(h.PURCHASE);return n||(n=this._createPromiseDecorator(h.PURCHASE),this._platformSdk.payments.purchaseAsync({productID:r.id}).then((function(r){var n=Ta({id:e},r);delete n.productID,t._paymentsPurchases.push(n),t._resolvePromiseDecorator(h.PURCHASE,r)})).catch((function(e){t._rejectPromiseDecorator(h.PURCHASE,e)}))),n.promise}},{key:\"paymentsConsumePurchase\",value:function(e){var t=this,r=this._paymentsPurchases.findIndex((function(t){return t.id===e}));if(r<0)return Promise.reject();var n=this._getPromiseDecorator(h.CONSUME_PURCHASE);return n||(n=this._createPromiseDecorator(h.CONSUME_PURCHASE),this._platformSdk.payments.consumePurchaseAsync(this._paymentsPurchases[r].purchaseToken).then((function(){t._paymentsPurchases.splice(r,1),t._resolvePromiseDecorator(h.CONSUME_PURCHASE,{id:e})})).catch((function(e){t._rejectPromiseDecorator(h.CONSUME_PURCHASE,e)}))),n.promise}},{key:\"paymentsGetCatalog\",value:function(){var e=this,t=this._paymentsGetProductsPlatformData();if(!t)return Promise.reject();var r=this._getPromiseDecorator(h.GET_CATALOG);return r||(r=this._createPromiseDecorator(h.GET_CATALOG),this._platformSdk.payments.getCatalogAsync().then((function(r){var n=t.map((function(e){var t=r.find((function(t){return t.productID===e.id}));return{id:e.id,title:t.title,description:t.description,imageURI:t.imageURI,price:t.price,priceCurrencyCode:t.priceCurrencyCode,priceValue:t.priceAmount}}));e._resolvePromiseDecorator(h.GET_CATALOG,n)})).catch((function(t){e._rejectPromiseDecorator(h.GET_CATALOG,t)}))),r.promise}},{key:\"paymentsGetPurchases\",value:function(){var e=this,t=this._getPromiseDecorator(h.GET_PURCHASES);return t||(t=this._createPromiseDecorator(h.GET_PURCHASES),this._platformSdk.payments.getPurchasesAsync().then((function(t){var r=e._paymentsGetProductsPlatformData();e._paymentsPurchases=t.map((function(e){var t=Ta({id:r.find((function(t){return t.id===e.productID})).id},e);return delete t.productID,t})),e._resolvePromiseDecorator(h.GET_PURCHASES,e._paymentsPurchases)})).catch((function(t){e._rejectPromiseDecorator(h.GET_PURCHASES,t)}))),t.promise}},{key:\"inviteFriends\",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t.image||!t.text)return Promise.reject();if(!le(t.image))return Promise.reject(new Error(\"Image is not base64\"));var r=this._getPromiseDecorator(h.INVITE_FRIENDS);return r||(r=this._createPromiseDecorator(h.INVITE_FRIENDS),this._platformSdk.inviteAsync(t).then((function(){e._resolvePromiseDecorator(h.INVITE_FRIENDS)})).catch((function(t){e._rejectPromiseDecorator(h.INVITE_FRIENDS,t)}))),r.promise}},{key:\"share\",value:function(e){var t=this;if(!e.image||!e.text)return Promise.reject();if(!le(e.image))return Promise.reject(new Error(\"Image is not base64\"));var r=this._getPromiseDecorator(h.SHARE);return r||(r=this._createPromiseDecorator(h.SHARE),this._platformSdk.shareAsync(Ta({intent:\"REQUEST\"},e)).then((function(){t._resolvePromiseDecorator(h.SHARE)})).catch((function(e){t._rejectPromiseDecorator(h.SHARE,e)}))),r.promise}}],n&&ja(r.prototype,n),Object.defineProperty(r,\"prototype\",{writable:!1}),y}(Rr);function Za(e){return Za=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Za(e)}function Ka(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:\"*\";window.parent&&window.parent.postMessage(e,t)}},{key:\"addListener\",value:function(e){window.addEventListener(\"message\",e)}},{key:\"removeListener\",value:function(e){window.removeEventListener(\"message\",e)}},{key:\"generateMessageId\",value:function(){return\"\".concat(Date.now(),\"-\").concat(Math.random())}}],r&&Ka(t.prototype,r),Object.defineProperty(t,\"prototype\",{writable:!1}),e}();function Qa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],n=Array.isArray(r)?r:[],o=performance.getEntriesByType(\"resource\")||[],i=n.length>0?n:[\"name\",\"initiatorType\"],a=o.map((function(e){var t={};return i.forEach((function(r){r in e&&(t[r]=e[r])})),t}));return fs(this,Es).send({type:t.PLATFORM,action:gs,id:e,options:{resources:a}}),Promise.resolve(o)}qa=Os;const Rs=Os;function Ts(e){return Ts=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Ts(e)}function Ls(e,t){for(var r=0;r {", - " bridge.leaderboard.setScore(gdjs._playgamaBridgeExtension.actionParametersContainer)", + " const id = eventsFunctionContext.getArgument('Id');", + " const score = eventsFunctionContext.getArgument('Score');", + " bridge.leaderboards.setScore(id, score)", " .then(() => {", " gdjs._playgamaBridgeExtension.isLastActionCompletedSuccessfully = true;", " })", " .catch(error => console.log(error))", " .finally(() => {", - " gdjs._playgamaBridgeExtension.actionParametersContainer = {};", - " gdjs._playgamaBridgeExtension.nextIsLeaderboardSetScoreCompleted = true;", + " gdjs._playgamaBridgeExtension.nextIsLeaderboardsSetScoreCompleted = true;", " resolve();", " });", "});", @@ -3630,53 +3641,27 @@ "eventsSheetExpanded": true } ], - "parameters": [], - "objectGroups": [] - }, - { - "description": "Leaderboard Get Score.", - "fullName": "Leaderboard Get Score", - "functionType": "Action", - "group": "Leaderboard", - "name": "LeaderboardGetScore", - "sentence": "Leaderboard Get Score", - "events": [ + "parameters": [ { - "type": "BuiltinCommonInstructions::JsCode", - "inlineCode": [ - "gdjs._playgamaBridgeExtension.isLastActionCompletedSuccessfully = false;", - "gdjs._playgamaBridgeExtension.leaderboardPlayerScore = 0;", - "", - "return new Promise(resolve => {", - " bridge.leaderboard.getScore(gdjs._playgamaBridgeExtension.actionParametersContainer)", - " .then(score => {", - " gdjs._playgamaBridgeExtension.leaderboardPlayerScore = score;", - " gdjs._playgamaBridgeExtension.isLastActionCompletedSuccessfully = true;", - " })", - " .catch(error => console.log(error))", - " .finally(() => {", - " gdjs._playgamaBridgeExtension.actionParametersContainer = {};", - " gdjs._playgamaBridgeExtension.nextIsLeaderboardGetScoreCompleted = true;", - " resolve();", - " });", - "});", - "" - ], - "parameterObjects": "", - "useStrict": true, - "eventsSheetExpanded": false + "description": "Id", + "name": "Id", + "type": "string" + }, + { + "description": "Score", + "name": "Score", + "type": "expression" } ], - "parameters": [], "objectGroups": [] }, { - "description": "Leaderboard Get Entries.", - "fullName": "Leaderboard Get Entries", + "description": "Leaderboards Get Entries.", + "fullName": "Leaderboards Get Entries", "functionType": "Action", - "group": "Leaderboard", - "name": "LeaderboardGetEntries", - "sentence": "Leaderboard Get Entries", + "group": "Leaderboards", + "name": "LeaderboardsGetEntries", + "sentence": "Leaderboards Get Entries - Id: _PARAM1_", "events": [ { "type": "BuiltinCommonInstructions::JsCode", @@ -3685,49 +3670,15 @@ "gdjs._playgamaBridgeExtension.leaderboardEntries = [];", "", "return new Promise(resolve => {", - " bridge.leaderboard.getEntries(gdjs._playgamaBridgeExtension.actionParametersContainer)", + " const id = eventsFunctionContext.getArgument('Id');", + " bridge.leaderboards.getEntries(id)", " .then(entries => {", " gdjs._playgamaBridgeExtension.leaderboardEntries = entries || [];", " gdjs._playgamaBridgeExtension.isLastActionCompletedSuccessfully = true;", " })", " .catch(error => console.log(error))", " .finally(() => {", - " gdjs._playgamaBridgeExtension.actionParametersContainer = {};", - " gdjs._playgamaBridgeExtension.nextIsLeaderboardGetEntriesCompleted = true;", - " resolve();", - " });", - "});" - ], - "parameterObjects": "", - "useStrict": true, - "eventsSheetExpanded": false - } - ], - "parameters": [], - "objectGroups": [] - }, - { - "description": "Leaderboard Show Native Popup.", - "fullName": "Leaderboard Show Native Popup", - "functionType": "Action", - "group": "Leaderboard", - "name": "LeaderboardShowNativePopup", - "sentence": "Leaderboard Show Native Popup", - "events": [ - { - "type": "BuiltinCommonInstructions::JsCode", - "inlineCode": [ - "gdjs._playgamaBridgeExtension.isLastActionCompletedSuccessfully = false;", - "", - "return new Promise(resolve => {", - " bridge.leaderboard.showNativePopup(gdjs._playgamaBridgeExtension.actionParametersContainer)", - " .then(() => {", - " gdjs._playgamaBridgeExtension.isLastActionCompletedSuccessfully = true;", - " })", - " .catch(error => console.log(error))", - " .finally(() => {", - " gdjs._playgamaBridgeExtension.actionParametersContainer = {};", - " gdjs._playgamaBridgeExtension.nextIsLeaderboardShowNativePopupCompleted = true;", + " gdjs._playgamaBridgeExtension.nextIsLeaderboardsGetEntriesCompleted = true;", " resolve();", " });", "});" @@ -3737,43 +3688,27 @@ "eventsSheetExpanded": true } ], - "parameters": [], - "objectGroups": [] - }, - { - "description": "Is Leaderboard Supported.", - "fullName": "Is Leaderboard Supported", - "functionType": "Condition", - "group": "Leaderboard", - "name": "IsLeaderboardSupported", - "sentence": "Is Leaderboard Supported", - "events": [ + "parameters": [ { - "type": "BuiltinCommonInstructions::JsCode", - "inlineCode": [ - "eventsFunctionContext.returnValue = bridge.leaderboard.isSupported;", - "" - ], - "parameterObjects": "", - "useStrict": true, - "eventsSheetExpanded": false + "description": "Id", + "name": "Id", + "type": "string" } ], - "parameters": [], "objectGroups": [] }, { - "description": "Is Leaderboard Native Popup Supported.", - "fullName": "Is Leaderboard Native Popup Supported", - "functionType": "Condition", - "group": "Leaderboard", - "name": "IsLeaderboardNativePopupSupported", - "sentence": "Is Leaderboard Native Popup Supported", + "description": "Leaderboards Type", + "fullName": "Leaderboards Type", + "functionType": "StringExpression", + "group": "Leaderboards", + "name": "LeaderboardsType", + "sentence": "Is Leaderboard Supported", "events": [ { "type": "BuiltinCommonInstructions::JsCode", "inlineCode": [ - "eventsFunctionContext.returnValue = bridge.leaderboard.isNativePopupSupported;", + "eventsFunctionContext.returnValue = bridge.leaderboards.type;", "" ], "parameterObjects": "", @@ -3781,21 +3716,25 @@ "eventsSheetExpanded": false } ], + "expressionType": { + "supplementaryInformation": "[\"not_available\",\"in_game\",\"native\"]", + "type": "string" + }, "parameters": [], "objectGroups": [] }, { - "description": "Is Leaderboard Multiple Boards Supported.", - "fullName": "Is Leaderboard Multiple Boards Supported", + "description": "Leaderboards Type = Not Available", + "fullName": "Leaderboards Type = Not Available", "functionType": "Condition", - "group": "Leaderboard", - "name": "IsLeaderboardMultipleBoardsSupported", - "sentence": "Is Leaderboard Multiple Boards Supported", + "group": "Leaderboards", + "name": "LeaderboardsTypeNotAvailable", + "sentence": "Leaderboards Type = Not Available", "events": [ { "type": "BuiltinCommonInstructions::JsCode", "inlineCode": [ - "eventsFunctionContext.returnValue = bridge.leaderboard.isMultipleBoardsSupported;", + "eventsFunctionContext.returnValue = bridge.leaderboards.type === 'not_available';", "" ], "parameterObjects": "", @@ -3807,17 +3746,17 @@ "objectGroups": [] }, { - "description": "Is Leaderboard Set Score Supported.", - "fullName": "Is Leaderboard Set Score Supported", + "description": "Leaderboards Type = In Game", + "fullName": "Leaderboards Type = In Game", "functionType": "Condition", - "group": "Leaderboard", - "name": "IsLeaderboardSetScoreSupported", - "sentence": "Is Leaderboard Set Score Supported", + "group": "Leaderboards", + "name": "LeaderboardsTypeInGame", + "sentence": "Leaderboards Type = In Game", "events": [ { "type": "BuiltinCommonInstructions::JsCode", "inlineCode": [ - "eventsFunctionContext.returnValue = bridge.leaderboard.isSetScoreSupported;", + "eventsFunctionContext.returnValue = bridge.leaderboards.type === 'in_game';", "" ], "parameterObjects": "", @@ -3829,17 +3768,17 @@ "objectGroups": [] }, { - "description": "Is Leaderboard Get Score Supported.", - "fullName": "Is Leaderboard Get Score Supported", + "description": "Leaderboards Type = Native", + "fullName": "Leaderboards Type = Native", "functionType": "Condition", - "group": "Leaderboard", - "name": "IsLeaderboardGetScoreSupported", - "sentence": "Is Leaderboard Get Score Supported", + "group": "Leaderboards", + "name": "LeaderboardsTypeNative", + "sentence": "Leaderboards Type = Native", "events": [ { "type": "BuiltinCommonInstructions::JsCode", "inlineCode": [ - "eventsFunctionContext.returnValue = bridge.leaderboard.isGetScoreSupported;", + "eventsFunctionContext.returnValue = bridge.leaderboards.type === 'native';", "" ], "parameterObjects": "", @@ -3851,17 +3790,17 @@ "objectGroups": [] }, { - "description": "Is Leaderboard Get Entries Supported.", - "fullName": "Is Leaderboard Get Entries Supported", + "description": "On Leaderboards Set Score Completed.", + "fullName": "On Leaderboards Set Score Completed", "functionType": "Condition", - "group": "Leaderboard", - "name": "IsLeaderboardGetEntriesSupported", - "sentence": "Is Leaderboard Get Entries Supported", + "group": "Leaderboards", + "name": "OnLeaderboardsSetScoreCompleted", + "sentence": "On Leaderboards Set Score Completed", "events": [ { "type": "BuiltinCommonInstructions::JsCode", "inlineCode": [ - "eventsFunctionContext.returnValue = bridge.leaderboard.isGetEntriesSupported;", + "eventsFunctionContext.returnValue = gdjs._playgamaBridgeExtension.isLeaderboardsSetScoreCompleted;", "" ], "parameterObjects": "", @@ -3873,17 +3812,17 @@ "objectGroups": [] }, { - "description": "On Leaderboard Set Score Completed.", - "fullName": "On Leaderboard Set Score Completed", + "description": "On Leaderboards Get Entries Completed.", + "fullName": "On Leaderboards Get Entries Completed", "functionType": "Condition", - "group": "Leaderboard", - "name": "OnLeaderboardSetScoreCompleted", - "sentence": "On Leaderboard Set Score Completed", + "group": "Leaderboards", + "name": "OnLeaderboardsGetEntriesCompleted", + "sentence": "On Leaderboards Get Entries Completed", "events": [ { "type": "BuiltinCommonInstructions::JsCode", "inlineCode": [ - "eventsFunctionContext.returnValue = gdjs._playgamaBridgeExtension.isLeaderboardSetScoreCompleted;", + "eventsFunctionContext.returnValue = gdjs._playgamaBridgeExtension.isLeaderboardsGetEntriesCompleted;", "" ], "parameterObjects": "", @@ -3895,17 +3834,17 @@ "objectGroups": [] }, { - "description": "On Leaderboard Get Score Completed.", - "fullName": "On Leaderboard Get Score Completed", - "functionType": "Condition", - "group": "Leaderboard", - "name": "OnLeaderboardGetScoreCompleted", - "sentence": "On Leaderboard Get Score Completed", + "description": "Leaderboard Entries Count.", + "fullName": "Leaderboard Entries Count", + "functionType": "Expression", + "group": "Leaderboards", + "name": "LeaderboardEntriesCount", + "sentence": "", "events": [ { "type": "BuiltinCommonInstructions::JsCode", "inlineCode": [ - "eventsFunctionContext.returnValue = gdjs._playgamaBridgeExtension.isLeaderboardGetScoreCompleted;", + "eventsFunctionContext.returnValue = gdjs._playgamaBridgeExtension.leaderboardEntries.length;", "" ], "parameterObjects": "", @@ -3913,151 +3852,150 @@ "eventsSheetExpanded": false } ], + "expressionType": { + "type": "expression" + }, "parameters": [], "objectGroups": [] }, { - "description": "On Leaderboard Get Entries Completed.", - "fullName": "On Leaderboard Get Entries Completed", - "functionType": "Condition", - "group": "Leaderboard", - "name": "OnLeaderboardGetEntriesCompleted", - "sentence": "On Leaderboard Get Entries Completed", + "description": "Leaderboard Entry Id", + "fullName": "Leaderboard Entry Id", + "functionType": "StringExpression", + "group": "Leaderboards", + "name": "LeaderboardEntryId", + "sentence": "", "events": [ { "type": "BuiltinCommonInstructions::JsCode", "inlineCode": [ - "eventsFunctionContext.returnValue = gdjs._playgamaBridgeExtension.isLeaderboardGetEntriesCompleted;", + "const entryIndex = eventsFunctionContext.getArgument('EntryIndex');", + "", + "if (gdjs._playgamaBridgeExtension.leaderboardEntries.length > 0) {", + " const entry = gdjs._playgamaBridgeExtension.leaderboardEntries[entryIndex];", + " eventsFunctionContext.returnValue = entry['id'];", + "} else {", + " eventsFunctionContext.returnValue = '';", + "}", "" ], "parameterObjects": "", "useStrict": true, - "eventsSheetExpanded": false + "eventsSheetExpanded": true } ], - "parameters": [], - "objectGroups": [] - }, - { - "description": "On Leaderboard Show Native Popup Completed.", - "fullName": "On Leaderboard Show Native Popup Completed", - "functionType": "Condition", - "group": "Leaderboard", - "name": "OnLeaderboardShowNativePopupCompleted", - "sentence": "On Leaderboard Show Native Popup Completed", - "events": [ + "expressionType": { + "type": "string" + }, + "parameters": [ { - "type": "BuiltinCommonInstructions::JsCode", - "inlineCode": [ - "eventsFunctionContext.returnValue = gdjs._playgamaBridgeExtension.isLeaderboardShowNativePopupCompleted;", - "" - ], - "parameterObjects": "", - "useStrict": true, - "eventsSheetExpanded": false + "description": "Entry Index", + "name": "EntryIndex", + "type": "expression" } ], - "parameters": [], "objectGroups": [] }, { - "description": "Leaderboard Player Score.", - "fullName": "Leaderboard Player Score", - "functionType": "Expression", - "group": "Leaderboard", - "name": "LeaderboardPlayerScore", + "description": "Leaderboard Entry Name", + "fullName": "Leaderboard Entry Name", + "functionType": "StringExpression", + "group": "Leaderboards", + "name": "LeaderboardEntryName", "sentence": "", "events": [ { "type": "BuiltinCommonInstructions::JsCode", "inlineCode": [ - "eventsFunctionContext.returnValue = gdjs._playgamaBridgeExtension.leaderboardPlayerScore;", + "const entryIndex = eventsFunctionContext.getArgument('EntryIndex');", + "", + "if (gdjs._playgamaBridgeExtension.leaderboardEntries.length > 0) {", + " const entry = gdjs._playgamaBridgeExtension.leaderboardEntries[entryIndex];", + " eventsFunctionContext.returnValue = entry['name'];", + "} else {", + " eventsFunctionContext.returnValue = '';", + "}", "" ], "parameterObjects": "", "useStrict": true, - "eventsSheetExpanded": false + "eventsSheetExpanded": true } ], "expressionType": { - "type": "expression" + "type": "string" }, - "parameters": [], - "objectGroups": [] - }, - { - "description": "Leaderboard Entries Count.", - "fullName": "Leaderboard Entries Count", - "functionType": "Expression", - "group": "Leaderboard", - "name": "LeaderboardEntriesCount", - "sentence": "", - "events": [ + "parameters": [ { - "type": "BuiltinCommonInstructions::JsCode", - "inlineCode": [ - "eventsFunctionContext.returnValue = gdjs._playgamaBridgeExtension.leaderboardEntries.length;", - "" - ], - "parameterObjects": "", - "useStrict": true, - "eventsSheetExpanded": false + "description": "Entry Index", + "name": "EntryIndex", + "type": "expression" } ], - "expressionType": { - "type": "expression" - }, - "parameters": [], "objectGroups": [] }, { - "description": "Leaderboard Entry Properties Count.", - "fullName": "Leaderboard Entry Properties Count", - "functionType": "Expression", - "group": "Leaderboard", - "name": "LeaderboardEntryPropertiesCount", + "description": "Leaderboard Entry Photo", + "fullName": "Leaderboard Entry Photo", + "functionType": "StringExpression", + "group": "Leaderboards", + "name": "LeaderboardEntryPhoto", "sentence": "", "events": [ { "type": "BuiltinCommonInstructions::JsCode", "inlineCode": [ - "eventsFunctionContext.returnValue = gdjs._playgamaBridgeExtension.leaderboardEntries.length > 0 ", - " ? Object.keys(gdjs._playgamaBridgeExtension.leaderboardEntries[0] || {}).length", - " : 0", + "const entryIndex = eventsFunctionContext.getArgument('EntryIndex');", + "", + "if (gdjs._playgamaBridgeExtension.leaderboardEntries.length > 0) {", + " const entry = gdjs._playgamaBridgeExtension.leaderboardEntries[entryIndex];", + " eventsFunctionContext.returnValue = entry['photo'];", + "} else {", + " eventsFunctionContext.returnValue = '';", + "}", "" ], "parameterObjects": "", "useStrict": true, - "eventsSheetExpanded": false + "eventsSheetExpanded": true } ], "expressionType": { - "type": "expression" + "type": "string" }, - "parameters": [], + "parameters": [ + { + "description": "Entry Index", + "name": "EntryIndex", + "type": "expression" + } + ], "objectGroups": [] }, { - "description": "Leaderboard Entry Property Name.", - "fullName": "Leaderboard Entry Property Name", + "description": "Leaderboard Entry Rank", + "fullName": "Leaderboard Entry Rank", "functionType": "StringExpression", - "group": "Leaderboard", - "name": "LeaderboardEntryPropertyName", + "group": "Leaderboards", + "name": "LeaderboardEntryRank", "sentence": "", "events": [ { "type": "BuiltinCommonInstructions::JsCode", "inlineCode": [ - "const propertyIndex = eventsFunctionContext.getArgument(\"PropertyIndex\");", + "const entryIndex = eventsFunctionContext.getArgument('EntryIndex');", "", - "eventsFunctionContext.returnValue = gdjs._playgamaBridgeExtension.leaderboardEntries.length > 0 ", - " ? Object.keys(gdjs._playgamaBridgeExtension.leaderboardEntries[0] || {})[propertyIndex]", - " : ''", + "if (gdjs._playgamaBridgeExtension.leaderboardEntries.length > 0) {", + " const entry = gdjs._playgamaBridgeExtension.leaderboardEntries[entryIndex];", + " eventsFunctionContext.returnValue = entry['rank'];", + "} else {", + " eventsFunctionContext.returnValue = '';", + "}", "" ], "parameterObjects": "", "useStrict": true, - "eventsSheetExpanded": false + "eventsSheetExpanded": true } ], "expressionType": { @@ -4065,33 +4003,29 @@ }, "parameters": [ { - "description": "Property Index", - "name": "PropertyIndex", + "description": "Entry Index", + "name": "EntryIndex", "type": "expression" } ], "objectGroups": [] }, { - "description": "Leaderboard Entry Property Value.", - "fullName": "Leaderboard Entry Property Value", + "description": "Leaderboard Entry Score", + "fullName": "Leaderboard Entry Score", "functionType": "StringExpression", - "group": "Leaderboard", - "name": "LeaderboardEntryPropertyValue", + "group": "Leaderboards", + "name": "LeaderboardEntryScore", "sentence": "", "events": [ { "type": "BuiltinCommonInstructions::JsCode", "inlineCode": [ - "const entryIndex = eventsFunctionContext.getArgument(\"EntryIndex\");", - "const property = eventsFunctionContext.getArgument(\"Property\");", + "const entryIndex = eventsFunctionContext.getArgument('EntryIndex');", "", "if (gdjs._playgamaBridgeExtension.leaderboardEntries.length > 0) {", " const entry = gdjs._playgamaBridgeExtension.leaderboardEntries[entryIndex];", - "", - " eventsFunctionContext.returnValue = isNaN(+property) ", - " ? entry[property]", - " : entry[Object.keys(entry || {})[+property]]", + " eventsFunctionContext.returnValue = entry['score'];", "} else {", " eventsFunctionContext.returnValue = '';", "}", @@ -4099,7 +4033,7 @@ ], "parameterObjects": "", "useStrict": true, - "eventsSheetExpanded": false + "eventsSheetExpanded": true } ], "expressionType": { @@ -4110,11 +4044,6 @@ "description": "Entry Index", "name": "EntryIndex", "type": "expression" - }, - { - "description": "Property", - "name": "Property", - "type": "string" } ], "objectGroups": [] @@ -4125,7 +4054,7 @@ "functionType": "Action", "group": "Payments", "name": "PaymentsPurchase", - "sentence": "Payments Purchase - Common Id: _PARAM1_", + "sentence": "Payments Purchase - Id: _PARAM1_", "events": [ { "type": "BuiltinCommonInstructions::JsCode", @@ -4133,8 +4062,8 @@ "gdjs._playgamaBridgeExtension.isLastActionCompletedSuccessfully = false;", "", "return new Promise(resolve => {", - " const commonId = eventsFunctionContext.getArgument(\"CommonId\");", - " bridge.payments.purchase(commonId)", + " const id = eventsFunctionContext.getArgument(\"Id\");", + " bridge.payments.purchase(id)", " .then(data => {", " gdjs._playgamaBridgeExtension.isLastActionCompletedSuccessfully = true;", " gdjs._playgamaBridgeExtension.paymentsPurchase = data;", @@ -4154,8 +4083,8 @@ ], "parameters": [ { - "description": "CommonId", - "name": "CommonId", + "description": "Id", + "name": "Id", "type": "string" } ], @@ -4237,7 +4166,7 @@ "functionType": "Action", "group": "Payments", "name": "PaymentsConsumePurchase", - "sentence": "Payments Consume Purchase - Common Id: _PARAM1_", + "sentence": "Payments Consume Purchase - Id: _PARAM1_", "events": [ { "type": "BuiltinCommonInstructions::JsCode", @@ -4245,10 +4174,11 @@ "gdjs._playgamaBridgeExtension.isLastActionCompletedSuccessfully = false;", "", "return new Promise(resolve => {", - " const commonId = eventsFunctionContext.getArgument(\"CommonId\");", - " bridge.payments.consumePurchase(commonId)", - " .then(() => {", + " const id = eventsFunctionContext.getArgument(\"Id\");", + " bridge.payments.consumePurchase(id)", + " .then((data) => {", " gdjs._playgamaBridgeExtension.isLastActionCompletedSuccessfully = true;", + " gdjs._playgamaBridgeExtension.paymentsPurchase = data;", " })", " .catch(error => console.log(error))", " .finally(() => {", @@ -4265,8 +4195,8 @@ ], "parameters": [ { - "description": "CommonId", - "name": "CommonId", + "description": "Id", + "name": "Id", "type": "string" } ], @@ -5368,4 +5298,4 @@ ], "eventsBasedBehaviors": [], "eventsBasedObjects": [] -} +} \ No newline at end of file From b329bc0967bb43193d308518aaa559e8037a97c1 Mon Sep 17 00:00:00 2001 From: Ivan Lysov Date: Fri, 27 Jun 2025 14:51:58 +0500 Subject: [PATCH 2/2] Dots in sentences --- extensions/reviewed/PlaygamaBridge.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/extensions/reviewed/PlaygamaBridge.json b/extensions/reviewed/PlaygamaBridge.json index cc822670d..48853476c 100644 --- a/extensions/reviewed/PlaygamaBridge.json +++ b/extensions/reviewed/PlaygamaBridge.json @@ -3698,7 +3698,7 @@ "objectGroups": [] }, { - "description": "Leaderboards Type", + "description": "Leaderboards Type.", "fullName": "Leaderboards Type", "functionType": "StringExpression", "group": "Leaderboards", @@ -3724,7 +3724,7 @@ "objectGroups": [] }, { - "description": "Leaderboards Type = Not Available", + "description": "Leaderboards Type = Not Available.", "fullName": "Leaderboards Type = Not Available", "functionType": "Condition", "group": "Leaderboards", @@ -3746,7 +3746,7 @@ "objectGroups": [] }, { - "description": "Leaderboards Type = In Game", + "description": "Leaderboards Type = In Game.", "fullName": "Leaderboards Type = In Game", "functionType": "Condition", "group": "Leaderboards", @@ -3768,7 +3768,7 @@ "objectGroups": [] }, { - "description": "Leaderboards Type = Native", + "description": "Leaderboards Type = Native.", "fullName": "Leaderboards Type = Native", "functionType": "Condition", "group": "Leaderboards", @@ -3859,7 +3859,7 @@ "objectGroups": [] }, { - "description": "Leaderboard Entry Id", + "description": "Leaderboard Entry Id.", "fullName": "Leaderboard Entry Id", "functionType": "StringExpression", "group": "Leaderboards", @@ -3897,7 +3897,7 @@ "objectGroups": [] }, { - "description": "Leaderboard Entry Name", + "description": "Leaderboard Entry Name.", "fullName": "Leaderboard Entry Name", "functionType": "StringExpression", "group": "Leaderboards", @@ -3935,7 +3935,7 @@ "objectGroups": [] }, { - "description": "Leaderboard Entry Photo", + "description": "Leaderboard Entry Photo.", "fullName": "Leaderboard Entry Photo", "functionType": "StringExpression", "group": "Leaderboards", @@ -3973,7 +3973,7 @@ "objectGroups": [] }, { - "description": "Leaderboard Entry Rank", + "description": "Leaderboard Entry Rank.", "fullName": "Leaderboard Entry Rank", "functionType": "StringExpression", "group": "Leaderboards", @@ -4011,7 +4011,7 @@ "objectGroups": [] }, { - "description": "Leaderboard Entry Score", + "description": "Leaderboard Entry Score.", "fullName": "Leaderboard Entry Score", "functionType": "StringExpression", "group": "Leaderboards",