{"version":3,"file":"index.ff723b66.js","sources":["webpack:///../zebomba-app/assets/js/SplashScreen.js","webpack:///../zebomba-app/assets/js/GameMessage.js","webpack:///../zebomba-app/assets/js/TechnicalWorks.js","webpack:///../zebomba-app/assets/js/FirstLoading.js","webpack:///../zebomba-app/assets/js/index.js"],"sourceRoot":"","sourcesContent":["class SplashScreen {\r\n\t#item = null\r\n\t#logo = null\r\n\t#isNewVersion = false\r\n\t#onWindowResize = null\r\n\r\n\tconstructor() {\r\n\t\tthis.#item = document.body.querySelector('#splashScreen')\r\n\r\n\t\tif (this.#item) {\r\n\t\t\tconst zebombaLogo = this.#item.querySelector('#splashScreenLogo')\r\n\t\t\tconst ganzaLogo = this.#item.querySelector('#splashScreenGanzaLogo')\r\n\r\n\t\t\tif (zebombaLogo && ganzaLogo) {\r\n\t\t\t\tif (Social.isCG || Social.isGP || Social.isTG) {\r\n\t\t\t\t\tzebombaLogo.remove()\r\n\t\t\t\t\tthis.#logo = ganzaLogo\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tganzaLogo.remove()\r\n\t\t\t\t\tthis.#logo = zebombaLogo\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthis.#logo = ganzaLogo || zebombaLogo\r\n\t\t\t}\r\n\r\n\t\t\tif (IS_WORDSLIKE && this.#logo == ganzaLogo) {\r\n\t\t\t\tSplashScreen.#WIDTH = 650\r\n\t\t\t}\r\n\r\n\t\t\tthis.#isNewVersion = true\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.#item = document.body.querySelector('#loadingCont.loadingCont1')\r\n\t\t\tthis.#logo = this.#item.querySelector('#loadingFirstStepBox')\r\n\t\t}\r\n\r\n\t\tthis.#onWindowResize = () => this.resize()\r\n\t\twindow.addEventListener('resize', this.#onWindowResize)\r\n\t\twindow.addEventListener('orientationchange', this.#onWindowResize)\r\n\r\n\t\tthis.show()\r\n\t}\r\n\r\n\tshow() {\r\n\t\tif (this.#isNewVersion) {\r\n\t\t\tthis.#item.classList.add('show')\r\n\r\n\t\t\tthis.resize()\r\n\t\t}\r\n\t}\r\n\r\n\tresize() {\r\n\t\tif (this.#isNewVersion) {\r\n\t\t\tlet scale = SplashScreen.#DEFAULT_SCALE\r\n\r\n\t\t\tif (window.innerWidth < window.innerHeight) {\r\n\t\t\t\tif (window.innerWidth < SplashScreen.#WIDTH) {\r\n\t\t\t\t\tscale = window.innerWidth / SplashScreen.#WIDTH\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (window.innerHeight < SplashScreen.#HEIGHT) {\r\n\t\t\t\t\tscale = window.innerHeight / SplashScreen.#HEIGHT\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tthis.#logo.style.transform = `scale(${scale < SplashScreen.#DEFAULT_SCALE ? scale : SplashScreen.#DEFAULT_SCALE })`\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.#item.style = ''\r\n\t\t}\r\n\t}\r\n\r\n\tdispose() {\r\n\t\tif (this.#onWindowResize) {\r\n\t\t\twindow.removeEventListener('resize', this.#onWindowResize)\r\n\t\t\twindow.removeEventListener('orientationchange', this.#onWindowResize)\r\n\t\t}\r\n\t}\r\n\r\n\tstatic #DEFAULT_SCALE = 0.7\r\n\tstatic #WIDTH = 600\r\n\tstatic #HEIGHT = 700\r\n}\r\n\r\nexport default SplashScreen","class GameMessage {\r\n\t#container\r\n\t#item\r\n\t#isRussianLang = false\r\n\r\n\t#logs = []\r\n\t#trackLogs = []\r\n\t#trackingLogs = {}\r\n\r\n\tconstructor() {\r\n\t\tconst root = document.querySelector('#root')\r\n\r\n\t\tthis.#container = document.createElement('div')\r\n\t\tthis.#container.setAttribute('id', 'gameMessage')\r\n\r\n\t\troot.appendChild(this.#container)\r\n\r\n\t\tif (globalThis.navigator && typeof globalThis.navigator.language == 'string') {\r\n\t\t\tif (/^ru$|^ru-|^uk$|^uk-|^be$|^be-/.test(globalThis.navigator.language)) {\r\n\t\t\t\tthis.#isRussianLang = true\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\terror(...args) {\r\n\t\tthis.message(...args)\r\n\t}\r\n\r\n\tmessage( text, config = {} ) {\r\n\t\tthis.#logs.push(text)\r\n\r\n\t\tconst item = document.createElement('div')\r\n\t\titem.classList.add('message')\r\n\r\n\t\tconst clickHandler = () => {\r\n\t\t\titem.removeEventListener('click', clickHandler)\r\n\t\t\titem.remove()\r\n\t\t}\r\n\r\n\t\titem.addEventListener('click', clickHandler)\r\n\r\n\t\tconst inner = document.createElement('div')\r\n\t\tinner.classList.add('inner')\r\n\r\n\t\tconst textItem = document.createElement('div')\r\n\t\ttextItem.classList.add('text')\r\n\r\n\t\tinner.appendChild(textItem)\r\n\t\titem.appendChild(inner)\r\n\r\n\t\titem.querySelector('.text').textContent = text\r\n\r\n\t\tthis.#container.appendChild(item)\r\n\r\n\t\titem.offsetHeight\r\n\t\titem.classList.add('show')\r\n\r\n\t\tif (config.reloadBtn) {\r\n\t\t\tconst reloadBtn = document.createElement('div')\r\n\t\t\treloadBtn.classList.add('reloadBtn', 'button')\r\n\t\t\treloadBtn.textContent = this.#isRussianLang ? 'Перезагрузить' : 'Reload'\r\n\r\n\t\t\treloadBtn.addEventListener('click', () => window.location.reload())\r\n\r\n\t\t\titem\r\n\t\t\t\t.querySelector('.inner')\r\n\t\t\t\t.appendChild(reloadBtn)\r\n\t\t}\r\n\t}\r\n\r\n\tlog(text, ...args) {\r\n\t\tthis.#logs.push(text)\r\n\t}\r\n\r\n\ttrack(name, data) {\r\n\t\tif (name && !this.#trackingLogs[name]) {\r\n\t\t\tthis.#trackingLogs[name] = Date.now()\r\n\r\n\t\t\tthis.#logs.push(`${name} tracking... ${typeof data === 'string' ? `| ${data}` : ''}`)\r\n\t\t}\r\n\t}\r\n\r\n\ttrackStop(name, data) {\r\n\t\tif (name && this.#trackingLogs[name]) {\r\n\t\t\tconst time = Date.now() - this.#trackingLogs[name]\r\n\r\n\t\t\tthis.#trackLogs.push({\r\n\t\t\t\tname,\r\n\t\t\t\ttime\r\n\t\t\t})\r\n\r\n\t\t\tthis.#logs.push(`${name} | ${time}ms ${typeof data === 'string' ? `| ${data}` : ''}`)\r\n\r\n\t\t\tdelete this.#trackingLogs[name]\r\n\t\t}\r\n\t}\r\n\r\n\ttrackAdd(name, time) {\r\n\t\tthis.#trackLogs.push({\r\n\t\t\tname,\r\n\t\t\ttime\r\n\t\t})\r\n\t}\r\n\r\n\tget logs() {\r\n\t\treturn this.#logs\r\n\t}\r\n\r\n\tget trackLogs() {\r\n\t\treturn this.#trackLogs\r\n\t}\r\n}\r\n\r\nexport default GameMessage","class TechnicalWorks {\r\n\t#container\r\n\t#content\r\n\r\n\tconstructor(settings) {\r\n\t\tconst createElement = (data, children) => {\r\n\t\t\tconst item = document.createElement('div')\r\n\r\n\t\t\tif (data) {\r\n\t\t\t\tif (data.id) {\r\n\t\t\t\t\titem.id = data.id\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (data.class) {\r\n\t\t\t\t\titem.className = data.class\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (children) {\r\n\t\t\t\tif (typeof children === \"string\") {\r\n\t\t\t\t\titem.textContent = children\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (Array.isArray(children)) {\r\n\t\t\t\t\t\tfor (const child of children) {\r\n\t\t\t\t\t\t\titem.appendChild(child)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\titem.appendChild(children)\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn item\r\n\t\t} \r\n\r\n\t\tthis.#container = createElement({ id: 'technicalWorks' }, [\r\n\t\t\tthis.#content = createElement({ class: 'technicalWorks__decor' }, [\r\n\t\t\t\tcreateElement({ class: 'technicalWorks__title' }, settings.title),\r\n\t\t\t\tcreateElement({ class: 'technicalWorks__description' }, settings.description)\r\n\t\t\t])\r\n\t\t])\r\n\r\n\t\tdocument.body.appendChild(this.#container)\r\n\r\n\t\tif (IS_WG) {\r\n\t\t\twindow.addEventListener('resize', () => this.__resize(), false)\r\n\t\t\twindow.addEventListener('orientationchange', () => this.__resize(), false)\r\n\t\r\n\t\t\tthis.__resize()\r\n\t\t}\r\n\t}\r\n\r\n\t__resize() {\r\n\t\tconst scale = Math.min(1, window.innerWidth / GAME_CONFIG.viewport.minWidth, window.innerHeight / GAME_CONFIG.viewport.minHeight)\r\n\r\n\t\tthis.#content.style.transform = `translate(-50%, -50%) scale(${scale < 1 ? scale : 1 })`\r\n\r\n\t\tdocument.body.setAttribute('style', [\r\n\t\t\t`width: ${window.innerWidth}px`,\r\n\t\t\t`height: ${window.innerHeight}px`\r\n\t\t].join(';'))\r\n\t}\r\n}\r\n\r\nexport default TechnicalWorks","import SplashScreen from './SplashScreen.js'\r\nimport GameMessage from './GameMessage.js'\r\nimport Loader from './loader/Loader.js'\r\nimport TechnicalWorks from './TechnicalWorks.js'\r\n\r\nconst getGlobalThis = () => {\r\n\tif (typeof globalThis !== 'undefined') { return globalThis }\r\n\tif (typeof self !== 'undefined') { return self }\r\n\tif (typeof window !== 'undefined') { return window }\r\n\tif (typeof global !== 'undefined') { return global }\r\n\tif (typeof this !== 'undefined') { return this }\r\n}\r\n\r\nwindow.globalThis = getGlobalThis()\r\nglobalThis.startTime1 = performance.now()\r\n\r\n/**\r\n * @typedef SOCIAL_NAMES_TYPE\r\n * @property { string } name Название соц сети\r\n * @property { boolean } isVK\r\n * @property { boolean } isOK\r\n * @property { boolean } isYA\r\n * @property { boolean } isGP\r\n * @property { boolean } isDEV\r\n * @property { boolean } isFB\r\n * @property { boolean } isFS\r\n * @property { boolean } isMM\r\n * @property { boolean } isVKPLAY\r\n * @property { boolean } isCG\r\n * @property { boolean } isTG\r\n * @property { boolean } isMobileAPI\r\n */\r\n\r\n/** @type { SOCIAL_NAMES_TYPE & import(\"@zebomba/social/__social__\").Social } */\r\nglobalThis.Social = {\r\n\tname: 'DEV'\r\n}\r\n\r\nclass FirstLoading {\r\n\t#applicationBackendEndpoint = location.origin\r\n\t#applicationResourcesEndpoint = '.'\r\n\t#applicationStaticResourcesEndpoint = '.'\r\n\t#clientVersion = Date.now()\r\n\t#startGameTime = 0\r\n\t#startServerTime = 0\r\n\t#gmt = 0\r\n\t#isDev = false\r\n\t#isAndroidTV = false\r\n\t#isMobile = false\r\n\t#isMobileDevice = false\r\n\t#applicationId = 0\r\n\t#versionCode = 0\r\n\t#timerLog = false\r\n\t#isRunningByLink = false\r\n\t#qParams = {}\r\n\t#languageID = '1'\r\n\t#technicalWorks = false\r\n\t#technicalWorksConfig = {}\r\n\r\n\t/** @type { HTMLElement } */\r\n\t#rootItem = null\r\n\t#splashScreen = null\r\n\r\n\t#gameMessage = null\r\n\r\n\tconstructor() {\r\n\t\tthis.#gameMessage = new GameMessage()\r\n\t}\r\n\r\n\tasync init() {\r\n\t\tthis.#isDev = globalThis.ZEBOMBA_IS_DEV || false\r\n\r\n\t\tif (TEST_RELEASE) {\r\n\t\t\tthis.#isDev = false\r\n\t\t}\r\n\r\n\t\tthis.#rootItem = document.querySelector('#root')\r\n\r\n\t\tthis._parseQueryParams()\r\n\t\tawait this._detectSocialName()\r\n\t\tthis._detectMobileDevice()\r\n\t\tthis._detectLanguageId()\r\n\r\n\t\tthis.#splashScreen = new SplashScreen()\r\n\r\n\t\tthis._loadLogoAndFonts()\r\n\r\n\t\tawait this._retrieveSettings()\r\n\r\n\t\tconst loader = new Loader()\r\n\r\n\t\tawait loader.initialize(this.#isDev, this.isWebpSupported, this.#clientVersion)\r\n\r\n\t\tloader.resourcesEndpoint = this.#applicationResourcesEndpoint\r\n\r\n\t\tif (Social.isGP) {\r\n\t\t\tawait this._checkAPKResources(loader)\r\n\t\t}\r\n\r\n\t\tawait loader.loadManifest('preload')\r\n\r\n\t\tif (Social.isVK) {\r\n\t\t\tconst { default: vkBridge } = await import('@vkontakte/vk-bridge')\r\n\r\n\t\t\twindow.vkBridge = vkBridge.default\r\n\t\t\twindow.vkBridge.send('VKWebAppInit')\r\n\t\t}\r\n\t\telse if (Social.isVKPLAY) {\r\n\t\t\tconst { default: VkPlayApi } = await import('@zebomba/VKPlayApi.js')\r\n\r\n\t\t\twindow.vkPlayApi = new VkPlayApi(GAME_CONFIG.appIdVKPLAY)\r\n\t\t}\r\n\r\n\t\tif (!this.#isDev) {\r\n\t\t\tif (!Social.isCG) {\r\n\t\t\t\twindow.console.clear()\r\n\t\t\t}\r\n\r\n\t\t\tif (this.isWebpSupported) {\r\n\t\t\t\tloader\r\n\t\t\t\t\t.findByName(/\\/img\\/.*\\.(?!webp$|svg$)/)\r\n\t\t\t\t\t.reduce()\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tloader\r\n\t\t\t\t\t.findByName(/\\/img\\/.*\\.(webp$)/)\r\n\t\t\t\t\t.reduce()\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif(this.#technicalWorks) {\r\n\t\t\tnew TechnicalWorks(this.#technicalWorksConfig)\r\n\t\t}\r\n\t\telse {\r\n\t\t\tawait this._initApp(loader)\r\n\r\n\t\t\treturn Promise.resolve('FirstLoading init success!')\r\n\t\t}\r\n\t}\r\n\r\n\tasync _initApp(loader) {\r\n\t\tthis.#gameMessage.track('initApp')\r\n\r\n\t\tlet branchName = 'main'\r\n\r\n\t\tif (Social.isGP) {\r\n\t\t\ttry {\r\n\t\t\t\tconst data = JSON.parse(globalThis.localStorage.getItem('branch'))\r\n\r\n\t\t\t\tbranchName = data?.value || 'main'\r\n\t\t\t}\r\n\t\t\tcatch {}\r\n\t\t}\r\n\r\n\t\tif (Social.isGP && this.#isDev) {\r\n\t\t\t__webpack_public_path__ = `${ this.#applicationResourcesEndpoint }/views/${ branchName }/js/`\r\n\t\t}\r\n\t\telse {\r\n\t\t\t__webpack_public_path__ = `${ this.#applicationResourcesEndpoint }/js/`\r\n\t\t}\r\n\r\n\t\tif (TEST_RELEASE) {\r\n\t\t\tif (Social.isGP) {\r\n\t\t\t\t__webpack_public_path__ = `${ this.#applicationResourcesEndpoint }/views/${ branchName }/js/`\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t__webpack_public_path__ = `${ __webpack_public_path__ }modern/`\r\n\r\n\t\tawait import('js/app.js')\r\n\r\n\t\tconst app = globalThis.app\r\n\r\n\t\tif (app) {\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\tapp.init({\r\n\t\t\t\t\tloader,\r\n\t\t\t\t\tgameMessage: this.#gameMessage,\r\n\t\t\t\t\tisDev: this.#isDev,\r\n\t\t\t\t\tisMobile: this.#isMobile,\r\n\t\t\t\t\tisMobileDevice: this.#isMobileDevice,\r\n\t\t\t\t\tisRunningByLink: this.#isRunningByLink,\r\n\t\t\t\t\tisAndroidTV: this.#isAndroidTV,\r\n\t\t\t\t\tisWebpSupported: this.isWebpSupported,\r\n\t\t\t\t\tlanguageID: this.#languageID,\r\n\t\t\t\t\tapplicationBackendEndpoint: this.#applicationBackendEndpoint,\r\n\t\t\t\t\tapplicationResourcesEndpoint: this.#applicationResourcesEndpoint,\r\n\t\t\t\t\tstartGameTime: this.#startGameTime,\r\n\t\t\t\t\tstartServerTime: this.#startServerTime,\r\n\t\t\t\t\tgmt: this.#gmt,\r\n\t\t\t\t\tapplicationId: this.#applicationId,\r\n\t\t\t\t\tclientVersion: this.#clientVersion,\r\n\t\t\t\t\trootItem: this.#rootItem,\r\n\t\t\t\t\ttimerLog: this.#timerLog,\r\n\t\t\t\t\tqParams: this.#qParams,\r\n\t\t\t\t\tversionCode: this.#versionCode\r\n\t\t\t\t})\r\n\t\t\t}, 0)\r\n\r\n\t\t\tthis.#gameMessage.trackStop('initApp')\r\n\r\n\t\t\treturn Promise.resolve()\r\n\t\t}\r\n\r\n\t\treturn Promise.reject('Application launch was forbidden')\r\n\t}\r\n\r\n\t_parseQueryParams() {\r\n\t\tthis.#gameMessage.log('parseQueryParams')\r\n\r\n\t\tconst qParamsArray1 = document.URL.match(/^[^?]*\\??(.*)/)[1].split('&')\r\n\r\n\t\tfor (let i = 0; i < qParamsArray1.length; i ++) {\r\n\t\t\tconst qParam = qParamsArray1[i].split('=')\r\n\r\n\t\t\tconst key = decodeURIComponent(qParam[0])\r\n\t\t\tlet value = ''\r\n\r\n\t\t\tif (qParam.length > 1) {\r\n\t\t\t\tvalue = decodeURIComponent(qParam[1])\r\n\t\t\t}\r\n\r\n\t\t\tthis.#qParams[key] = value\r\n\t\t}\r\n\t}\r\n\r\n\tasync _detectSocialName() {\r\n\t\tthis.#gameMessage.log('detectSocialName')\r\n\r\n\t\tconst socialNameMatch = document.URL.match(/((?:vk|ok|mm|fb|fs|mobile|yandex|vkplay|cg|tg))(?:-dev)?\\.((?:zebomba\\.ru|zebombagames\\.com))/)\r\n\r\n\t\tif (IS_LOCALHOST) {\r\n\t\t\tSocial.name = 'DEV'\r\n\r\n\t\t\tthis.#applicationBackendEndpoint = GAME_CONFIG.links.app.domain\r\n\t\t}\r\n\t\telse if (socialNameMatch) {\r\n\t\t\tSocial.name = socialNameMatch[1].toUpperCase()\r\n\r\n\t\t\tif (Social.name == 'YANDEX') {\r\n\t\t\t\tSocial.name = 'YA'\r\n\t\t\t}\r\n\r\n\t\t\tif (!window.name && Social.name == 'YA') {\r\n\t\t\t\tSocial.name = 'DEV'\r\n\r\n\t\t\t\tif (!IS_WORDSLIKE) {\r\n\t\t\t\t\tthis.#isMobile = true\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.#isRunningByLink = true\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (this.#qParams.api_url == GAME_CONFIG.links.API.VK || this.#qParams.api_url == GAME_CONFIG.links.API.VKRU || this.#qParams.vk_app_id) {\r\n\t\t\t\tSocial.name = 'VK'\r\n\t\t\t}\r\n\t\t\telse if (this.#qParams.api_server == GAME_CONFIG.links.API.OK) {\r\n\t\t\t\tSocial.name = 'OK'\r\n\t\t\t}\r\n\t\t\telse if (this.#qParams.vid && this.#qParams.vid == this.#qParams.oid) {\r\n\t\t\t\tSocial.name = 'MM'\r\n\t\t\t}\r\n\t\t\telse if (this.#qParams.apiUrl == GAME_CONFIG.links.API.FS || this.#qParams.apiUrl == GAME_CONFIG.links.API.FS_MOB) {\r\n\t\t\t\tSocial.name = 'FS'\r\n\t\t\t}\r\n\t\t\telse if (document.referrer) {\r\n\t\t\t\tif (document.referrer.match(/facebook/)) {\r\n\t\t\t\t\tSocial.name = 'FB'\r\n\t\t\t\t}\r\n\t\t\t\telse if (document.referrer.match(/yandex/)) {\r\n\t\t\t\t\tSocial.name = 'YA'\r\n\t\t\t\t}\r\n\t\t\t\telse if (document.referrer.match(/vkplay/)) {\r\n\t\t\t\t\tSocial.name = 'VKPLAY'\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthrow new Error('Failed to detect social network.')\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (globalThis.cordova || globalThis.parent.cordova) {\r\n\t\t\t\tSocial.name = 'GP'\r\n\r\n\t\t\t\tconst { default: ConnectionError } = await import('@zebomba/modules/ConnectionError.js')\r\n\r\n\t\t\t\tlet applicationBackendEndpoint\r\n\r\n\t\t\t\tif (IS_FIND) {\r\n\t\t\t\t\tif (!globalThis.cordova) {\r\n\t\t\t\t\t\tglobalThis.cordova = globalThis.parent.cordova\r\n\t\t\t\t\t\tglobalThis.plugins = globalThis.parent.plugins\r\n\t\t\t\t\t\tglobalThis.CdvPurchase = globalThis.parent.CdvPurchase\r\n\t\t\t\t\t\tglobalThis.store = globalThis.parent.store\r\n\t\t\t\t\t\tglobalThis.applovinAds = globalThis.parent.applovinAds\r\n\t\t\t\t\t\tglobalThis.facebookConnectPlugin = globalThis.parent.facebookConnectPlugin\r\n\t\t\t\t\t\tglobalThis.ZebombaBridgeAPI = globalThis.parent.ZebombaBridgeAPI || {}\r\n\t\t\t\t\t\tglobalThis.ZebombaBridge = globalThis.parent.ZebombaBridge || {}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tglobalThis.CordovaBridge = globalThis.CordovaBridge || Object.assign(globalThis.ZebombaBridge, globalThis.ZebombaBridgeAPI)\r\n\t\t\t\t\tglobalThis.CordovaBridge.version = await globalThis.CordovaBridge.getVersionCode()\r\n\r\n\t\t\t\t\tif (cordova.platformId === 'ios') {\r\n\t\t\t\t\t\tconst versionValues = globalThis.CordovaBridge.version.split('.')\r\n\t\t\t\t\t\tglobalThis.CordovaBridge.version = +versionValues[0] * 1e4 + +versionValues[1] * 1e2 + +versionValues[2]\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// для старых пользователей APK\r\n\t\t\t\t\tif (globalThis.parent.APPLICATION_BACKEND_ENDPOINT) {\r\n\t\t\t\t\t\tapplicationBackendEndpoint = globalThis.parent.APPLICATION_BACKEND_ENDPOINT\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tapplicationBackendEndpoint = this.#isDev || TEST_RELEASE ? GAME_CONFIG.links.app.mobile.dev : GAME_CONFIG.links.app.mobile.release\r\n\r\n\t\t\t\t\t\tif (cordova.platformId !== 'ios') {\r\n\t\t\t\t\t\t\tconst version = globalThis.CordovaBridge.version\r\n\t\r\n\t\t\t\t\t\t\tif (version <= 40100 && !globalThis.IS_COM_CONNECTED) {\r\n\t\t\t\t\t\t\t\tapplicationBackendEndpoint = applicationBackendEndpoint.replace(/zebombagames\\.com/, 'zebomba.ru')\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tapplicationBackendEndpoint = this.#isDev || TEST_RELEASE ? GAME_CONFIG.links.app.mobile.dev : GAME_CONFIG.links.app.mobile.release\r\n\t\t\t\t}\r\n\r\n\t\t\t\tglobalThis.appsFlyer = globalThis.plugins.appsFlyer\r\n\t\t\t\tglobalThis.OneSignal = globalThis.plugins.OneSignal\r\n\r\n\t\t\t\t/** @type { ConnectionError } */\r\n\t\t\t\tglobalThis.connectionError = new ConnectionError(applicationBackendEndpoint)\r\n\r\n\t\t\t\tthis.#applicationBackendEndpoint = applicationBackendEndpoint\r\n\t\t\t\tthis.#applicationResourcesEndpoint = globalThis.parent.APPLICATION_RESOURCES_ENDPOINT || applicationBackendEndpoint\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthrow new Error('Failed to detect social network.')\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSocial[`is${Social.name}`] = true\r\n\r\n\t\tif (Social.isVK && (typeof this.#qParams.platform == 'string' && this.#qParams.platform != 'web' || typeof this.#qParams.vk_platform == 'string' && this.#qParams.vk_platform != 'desktop_web')) {\r\n\t\t\tSocial.isMobileAPI = true\r\n\t\t}\r\n\t\telse if (Social.isOK && typeof this.#qParams.mob == 'string' && this.#qParams.mob == 'true') {\r\n\t\t\tSocial.isMobileAPI = true\r\n\t\t}\r\n\r\n\t\tif (GAME_CONFIG.yandexMetrikaId && (Social.isYA || this.#isRunningByLink)) {\r\n\t\t\t/* eslint-disable */\r\n\t\t\t(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};\r\n\t\t\tm[i].l=1*new Date();\r\n\t\t\tfor (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}\r\n\t\t\tk=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})\r\n\t\t\t(window, document, \"script\", \"https://mc.yandex.ru/metrika/tag.js\", \"ym\");\r\n\r\n\t\t\tym(GAME_CONFIG.yandexMetrikaId, \"init\", { clickmap: false });\r\n\t\t\t/* eslint-enable */\r\n\t\t}\r\n\t}\r\n\r\n\t_detectMobileDevice() {\r\n\t\tthis.#gameMessage.log('detectMobileDevice')\r\n\r\n\t\tconst iPadOS13Up = navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1\r\n\t\tthis.#isMobileDevice = navigator && navigator.userAgent && /Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent) || iPadOS13Up\r\n\r\n\t\tthis.#isAndroidTV = navigator && navigator.userAgent && /AndroidTV/i.test(navigator.userAgent)\r\n\r\n\t\tif (Social.isMobileAPI) {\r\n\t\t\tthis.#isMobile = true\r\n\t\t}\r\n\t\telse if (Social.isGP || Social.isYA || Social.isVKPLAY || Social.isCG || Social.isTG) {\r\n\t\t\tthis.#isMobile = true\r\n\t\t}\r\n\t\telse if (Social.isFS && this.#qParams.apiUrl == GAME_CONFIG.links.API.FS_MOB) {\r\n\t\t\tthis.#isMobile = true\r\n\t\t}\r\n\t\telse if (this.#isMobileDevice) {\r\n\t\t\tthis.#isMobile = true\r\n\r\n\t\t\ttry { screen.orientation.lock(IS_WORDSLIKE ? \"portrait\" : \"landscape\") }\r\n\t\t\tcatch {}\r\n\t\t}\r\n\t\telse if (IS_CAT) {\r\n\t\t\tthis.#isMobile = Social.isVK || Social.isOK\r\n\t\t}\r\n\r\n\t\tif (this.#isMobile) {\r\n\t\t\tthis.#rootItem.classList.add('mobile')\r\n\r\n\t\t\tif (this.#isMobileDevice) {\r\n\t\t\t\tthis.#rootItem.classList.add('isMobileDevice')\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t_detectLanguageId() {\r\n\t\tthis.#gameMessage.log('detectLanguageId')\r\n\r\n\t\tif (Social.isYA || Social.isVKPLAY || Social.isFB || Social.isGP || Social.isCG || Social.isTG) {\r\n\t\t\tthis.#languageID = '2'\r\n\r\n\t\t\tif (globalThis.navigator && typeof globalThis.navigator.language == 'string') {\r\n\t\t\t\tif (/^ru$|^ru-|^uk$|^uk-|^be$|^be-/.test(globalThis.navigator.language)) {\r\n\t\t\t\t\tthis.#languageID = '1'\r\n\t\t\t\t}\r\n\t\t\t\telse if (/^de$|^de-/.test(globalThis.navigator.language)) {\r\n\t\t\t\t\tthis.#languageID = '3'\r\n\t\t\t\t}\r\n\t\t\t\telse if (/^fr$|^fr-/.test(globalThis.navigator.language)) {\r\n\t\t\t\t\tthis.#languageID = '4'\r\n\t\t\t\t}\r\n\t\t\t\telse if (/^pt$|^pt-/.test(globalThis.navigator.language)) {\r\n\t\t\t\t\tthis.#languageID = '5'\r\n\t\t\t\t}\r\n\t\t\t\telse if (/^it$|^it-/.test(globalThis.navigator.language)) {\r\n\t\t\t\t\tthis.#languageID = '6'\r\n\t\t\t\t}\r\n\t\t\t\telse if (/^ja$|^ja-/.test(globalThis.navigator.language)) {\r\n\t\t\t\t\tthis.#languageID = '7'\r\n\t\t\t\t}\r\n\t\t\t\telse if (/^es$|^es-/.test(globalThis.navigator.language)) {\r\n\t\t\t\t\tthis.#languageID = \"8\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.#languageID = '1'\r\n\t\t}\r\n\t}\r\n\r\n\t_loadLogoAndFonts() {\r\n\t\tthis.#gameMessage.log('loadLogoAndFonts')\r\n\r\n\t\tconst styleTag = document.createElement('style')\r\n\t\tconst fonts = GAME_CONFIG.fonts\r\n\r\n\t\tlet styleTagContent = ''\r\n\r\n\t\tfor (let i = 0; i < fonts.length; i ++) {\r\n\t\t\tconst [ fontFileName, fontName ] = fonts[i]\r\n\r\n\t\t\tconst unicodes = IS_FIND\r\n\t\t\t\t&& fontName == 'Rotonda Bold'\r\n\t\t\t\t&& this.#languageID == 7 // японский\r\n\t\t\t\t&& 'unicode-range: U+0400-04FF, U+0500-052F, U+2DE0-2DFF, U+A640-A69F, U+0041-007A, U+00C0-00FF, U+0030-0039, U+002B, U+0021, U+0025;'\r\n\t\t\t\t|| ''\r\n\r\n\t\t\tstyleTagContent += `\r\n\t\t\t\t@font-face {\r\n\t\t\t\t\tfont-family: \"${ fontName }\";\r\n\t\t\t\t\tfont-weight: normal;\r\n\t\t\t\t\tfont-style: normal;\r\n\t\t\t\t\tsrc: url(${ this.#applicationStaticResourcesEndpoint }/fonts/${ fontFileName }.woff) format('woff');\r\n\t\t\t\t\t${ unicodes }\r\n\t\t\t\t}`\r\n\t\t}\r\n\r\n\t\tstyleTag.textContent = styleTagContent\r\n\r\n\t\tdocument.head.appendChild(styleTag)\r\n\t}\r\n\r\n\tasync _checkAPKResources(loader) {\r\n\t\tthis.#gameMessage.log('checkAPKResources')\r\n\r\n\t\treturn new Promise(resolve => {\r\n\t\t\tloader.checkAPKResources()\r\n\t\t\t\t.then(() => {\r\n\t\t\t\t\tglobalThis.connectionError.show()\r\n\r\n\t\t\t\t\tresolve()\r\n\t\t\t\t})\r\n\t\t\t\t.catch(resolve)\r\n\t\t})\r\n\t}\r\n\r\n\tasync _retrieveSettings() {\r\n\t\tthis.#gameMessage.track('retrieveSettings')\r\n\r\n\t\treturn new Promise(resolve => {\r\n\t\t\tconst src = this.#applicationBackendEndpoint + '/index.php/settings'\r\n\t\t\tconst request = new XMLHttpRequest()\r\n\r\n\t\t\trequest.open('GET', src, true)\r\n\t\t\trequest.onload = async () => {\r\n\t\t\t\tif (request.status == 200) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tawait this._onSettingsRetrieved(JSON.parse(request.response))\r\n\t\t\t\t\t\tresolve()\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (exception) {\r\n\t\t\t\t\t\tthis.#gameMessage.trackStop('retrieveSettings', `request exception ${exception.message}`)\r\n\r\n\t\t\t\t\t\tsetTimeout(() => resolve(() => this._retrieveSettings()), 200)\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.#gameMessage.trackStop('retrieveSettings', `request status ${request.status}`)\r\n\r\n\t\t\t\t\tsetTimeout(() => resolve(() => this._retrieveSettings()), 200)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\trequest.onerror = () => {\r\n\t\t\t\tthis.#gameMessage.trackStop('retrieveSettings', 'request onerror')\r\n\r\n\t\t\t\tsetTimeout(() => resolve(() => this._retrieveSettings()), 200)\r\n\t\t\t}\r\n\t\t\trequest.send()\r\n\t\t})\r\n\t}\r\n\r\n\tasync _onSettingsRetrieved(settings) {\r\n\t\tthis.#gameMessage.log('onSettingsRetrieved')\r\n\r\n\t\tglobalThis.connectionError && globalThis.connectionError.show()\r\n\r\n\t\ttry {\r\n\t\t\tif (settings) {\r\n\t\t\t\tlet settingsSocName = String(settings.soc_name)\r\n\t\t\t\t\t.toUpperCase()\r\n\r\n\t\t\t\tif (settingsSocName == 'YANDEX') {\r\n\t\t\t\t\tsettingsSocName = 'YA'\r\n\t\t\t\t}\r\n\t\t\t\telse if (settingsSocName == 'MOBILE') {\r\n\t\t\t\t\tsettingsSocName = 'GP'\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (Social.name !== settingsSocName && !IS_LOCALHOST && window.name) {\r\n\t\t\t\t\tthrow new Error('Server side social name does not match the one on client.')\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!settings.is_dev) {\r\n\t\t\t\t\tif (settings.cdn_link && settings.cdn_link != '.') {\r\n\t\t\t\t\t\tconst cdnLink = settings.cdn_link\r\n\r\n\t\t\t\t\t\tif (Social.isGP) {\r\n\t\t\t\t\t\t\tif (IS_FIND) {\r\n\t\t\t\t\t\t\t\tif (cordova.platformId === 'ios') {\r\n\t\t\t\t\t\t\t\t\tthis.#applicationResourcesEndpoint = cdnLink\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tconst version = globalThis.CordovaBridge.version\r\n\t\r\n\t\t\t\t\t\t\t\t\tif (version <= 40001) {\r\n\t\t\t\t\t\t\t\t\t\tthis.#applicationResourcesEndpoint = GAME_CONFIG.links.app.mobile.oldCdn\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse if (version <= 40005) {\r\n\t\t\t\t\t\t\t\t\t\tthis.#applicationResourcesEndpoint = GAME_CONFIG.links.app.mobile.oldCdn2\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\tthis.#applicationResourcesEndpoint = cdnLink\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tthis.#applicationResourcesEndpoint = cdnLink\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tthis.#applicationResourcesEndpoint = cdnLink\r\n\t\t\t\t\t\t\tthis.#applicationStaticResourcesEndpoint = cdnLink\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.#clientVersion = settings.client_version\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.#startGameTime = Date.now()\r\n\t\t\t\tthis.#startServerTime = settings.time * 1e3\r\n\t\t\t\tthis.#gmt = settings.gmt * 1e3\r\n\r\n\t\t\t\tthis.#isDev = !!settings.is_dev\r\n\r\n\t\t\t\tthis.#applicationId = settings.application_id\r\n\t\t\t\tthis.#clientVersion = settings.client_version\r\n\t\t\t\tthis.#versionCode = parseInt(settings.version_code) || 0\r\n\r\n\t\t\t\tif (Social.isGP) {\r\n\t\t\t\t\tif (cordova.platformId === 'ios') {\r\n\t\t\t\t\t\tthis.#versionCode = parseInt(settings.version_code_ios) || this.#versionCode\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (TEST_RELEASE) {\r\n\t\t\t\t\tthis.#isDev = false\r\n\t\t\t\t\tthis.#clientVersion = APP_VERSION\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (typeof settings.timer_log != 'undefined') {\r\n\t\t\t\t\tthis.#timerLog = !!settings.timer_log\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (settings.app_stop) {\r\n\t\t\t\t\tthis.#technicalWorks = true\r\n\t\t\t\t\tthis.#technicalWorksConfig = settings.app_stop_settings\r\n\t\t\t\t\tthrow new Error('Application launch was forbidden by server.')\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.#gameMessage.trackStop('retrieveSettings', 'success')\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthrow new Error('Failed to retrieve settings.')\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (exception) {\r\n\t\t\tthrow new Error(exception)\r\n\t\t}\r\n\t}\r\n\r\n\tget isWebpSupported() {\r\n\t\tif (TEST_RELEASE) {\r\n\t\t\treturn true\r\n\t\t}\r\n\r\n\t\tif (!this.#isDev) {\r\n\t\t\tconst elem = document.createElement('canvas')\r\n\r\n\t\t\tif (elem.getContext && elem.getContext('2d')) {\r\n\t\t\t\treturn elem\r\n\t\t\t\t\t.toDataURL('image/webp')\r\n\t\t\t\t\t.indexOf('data:image/webp') == 0\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn false\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false\r\n\t}\r\n\r\n\tget qParams() {\r\n\t\treturn this.#qParams\r\n\t}\r\n\r\n\tget rootItem() {\r\n\t\treturn this.#rootItem\r\n\t}\r\n\r\n\tget isMobile() {\r\n\t\treturn this.#isMobile\r\n\t}\r\n\r\n\tset isMobile(value) {\r\n\t\tthis.#isMobile = value\r\n\t}\r\n}\r\n\r\nexport default FirstLoading","import FirstLoading from './FirstLoading.js'\r\n\r\nnew FirstLoading()\r\n\t.init()\r\n\t.then(console.log)\r\n\t.catch(console.error)"],"names":["SplashScreen","constructor","this","document","body","querySelector","zebombaLogo","ganzaLogo","Social","isCG","isGP","isTG","remove","resize","window","addEventListener","show","classList","add","scale","innerWidth","innerHeight","style","transform","concat","dispose","removeEventListener","static","root","createElement","setAttribute","appendChild","globalThis","navigator","language","test","error","args","message","text","config","push","item","clickHandler","inner","textItem","textContent","offsetHeight","reloadBtn","location","reload","log","track","name","data","Date","now","trackStop","time","trackAdd","logs","trackLogs","settings","children","id","class","className","Array","isArray","child","title","description","__resize","Math","min","GAME_CONFIG","join","self","global","startTime1","performance","origin","GameMessage","init","ZEBOMBA_IS_DEV","_parseQueryParams","_detectSocialName","_detectMobileDevice","_detectLanguageId","_loadLogoAndFonts","_retrieveSettings","loader","Loader","initialize","isWebpSupported","resourcesEndpoint","_checkAPKResources","loadManifest","isVK","vkBridge","default","send","isVKPLAY","VkPlayApi","vkPlayApi","console","clear","findByName","reduce","_initApp","Promise","resolve","TechnicalWorks","branchName","JSON","parse","localStorage","getItem","value","__webpack_public_path__","app","setTimeout","gameMessage","isDev","isMobile","isMobileDevice","isRunningByLink","isAndroidTV","languageID","applicationBackendEndpoint","applicationResourcesEndpoint","startGameTime","startServerTime","gmt","applicationId","clientVersion","rootItem","timerLog","qParams","versionCode","reject","qParamsArray1","URL","match","split","i","length","qParam","key","decodeURIComponent","socialNameMatch","toUpperCase","api_url","vk_app_id","api_server","vid","oid","apiUrl","referrer","Error","cordova","parent","ConnectionError","plugins","CdvPurchase","store","applovinAds","facebookConnectPlugin","ZebombaBridgeAPI","ZebombaBridge","CordovaBridge","Object","assign","version","getVersionCode","platformId","versionValues","APPLICATION_BACKEND_ENDPOINT","IS_COM_CONNECTED","replace","appsFlyer","OneSignal","connectionError","APPLICATION_RESOURCES_ENDPOINT","platform","vk_platform","isOK","mob","isMobileAPI","isYA","m","e","t","r","k","a","arguments","l","j","scripts","src","getElementsByTagName","async","parentNode","insertBefore","ym","clickmap","iPadOS13Up","maxTouchPoints","userAgent","isFS","screen","orientation","lock","isFB","styleTag","fonts","styleTagContent","_fonts$i","fontFileName","fontName","unicodes","head","checkAPKResources","then","catch","request","XMLHttpRequest","open","onload","status","_onSettingsRetrieved","response","exception","onerror","settingsSocName","String","soc_name","is_dev","cdn_link","cdnLink","client_version","application_id","parseInt","version_code","version_code_ios","timer_log","app_stop","app_stop_settings","elem","getContext","toDataURL","indexOf"],"mappings":";;uH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