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,QAAU,UACrBR,EAAWY,UAAY,UACvBZ,EAAW1S,OAAS,UACpB0S,EAAWoB,aAAe,UAC1BpB,EAAWwB,UAAY,UACvBxB,EAAWtN,MAAQ,UACnBsN,EAAW+B,QAAU,SACtB,C","sources":["webpack://ch.enlightware.gamecreator/./src/apps/common/counters.ts","webpack://ch.enlightware.gamecreator/./src/apps/runtime/runtime-app.ts","webpack://ch.enlightware.gamecreator/./src/error/error-screen.ts","webpack://ch.enlightware.gamecreator/./src/imgui/imgui-platform.ts","webpack://ch.enlightware.gamecreator/./src/loading/loading-screen.ts","webpack://ch.enlightware.gamecreator/./src/mdcext/input-box/input-box.ts","webpack://ch.enlightware.gamecreator/./src/mdcext/message-box/message-box.ts","webpack://ch.enlightware.gamecreator/./src/mdcext/share/share-dialog.ts","webpack://ch.enlightware.gamecreator/./src/mdcext/snackbar/snackbar.ts","webpack://ch.enlightware.gamecreator/./src/network/api.ts","webpack://ch.enlightware.gamecreator/./src/runtime/runtime-pila.ts","webpack://ch.enlightware.gamecreator/./src/runtime/runtime-ui.ts","webpack://ch.enlightware.gamecreator/./src/translator/common-texts.ts","webpack://ch.enlightware.gamecreator/./src/utils/html.ts","webpack://ch.enlightware.gamecreator/./src/utils/share.ts","webpack://ch.enlightware.gamecreator/./src/vpl/color-theme.ts"],"sourcesContent":["/**\n * @module utils\n */\n/** comment to work-around limitation of typedoc module plugin */\n\n// Copyright 2018-2024 Enlightware GmbH, Switzerland\n\nimport { Storage } from 'storage/storage';\n\nexport class Counters {\n\tstatic getGamePlayedCounter(storage: Storage, gameId: string) {\n\t\treturn storage.getCounter('game-played-' + gameId);\n\t}\n}\n","/**\n * Runtime only application\n * @module runtime-app\n * @preferred\n */\n/** comment to work-around limitation of typedoc module plugin */\n\n// Copyright 2018-2024 Enlightware GmbH, Switzerland\n\n\nimport { showCustomError, showError } from 'error/error-screen';\nimport { screenManager } from 'screen/screen-manager';\nimport { showVersion } from 'apps/common/version';\nimport { connectAndCreateRustDbReadOnlyStorage, getRequestedGameId } from 'apps/common/browser-app';\nimport { Counters } from 'apps/common/counters';\nimport { RuntimeScreenWithUI } from 'runtime/runtime-ui';\nimport { checkBrowserAndWarnUser } from 'apps/common/browser-check-ui';\nimport { LoadingScreen } from 'loading/loading-screen';\nimport { nonnull, downcast, toStr, dynamicCast } from 'utils/types';\nimport { domEvent } from 'utils/async';\nimport { isFullScreenSupported, toggleFullScreen } from 'utils/html';\nimport { qsT } from 'translator/translator';\nimport { setLightTheme } from 'vpl/color-theme';\n\nimport * as Platform from 'imgui/imgui-platform';\nimport { Game } from 'game/game';\nimport { InputBlock } from 'blocks/conditions/input/input-block';\nimport { TouchBlock } from 'blocks/conditions/touch/touch-block';\nimport { Features } from 'apps/common/parameters';\nimport { getAudioContext } from 'runtime/runtime-audio';\nimport { loadGameFromBinary } from 'game/game-loader';\nimport { SpacedOr } from 'translator/common-texts';\nimport { Analytics } from 'apps/common/analytics';\nimport { ApiError } from 'network/api-types';\nimport { uiTextureFontLoadPromise } from 'runtime/runtime';\n\nAnalytics.appName = 'runtime';\n\n// setup mouse presence detection\nif (Features.assumeMousePresent) {\n\tPlatform.mouseInputSeen();\n} else {\n\tconst mouseEvents = [\n\t\t'mousedown',\n\t\t'mousemove',\n\t\t'mouseup',\n\t\t'mouseleave',\n\t\t'wheel',\n\t] as const;\n\tfor (const mouseEvent of mouseEvents) {\n\t\tdocument.documentElement.addEventListener(mouseEvent, () => Platform.mouseInputSeen() );\n\t}\n}\n\nexport class WelcomeScreen extends LoadingScreen {\n\tprivate readonly loadingText = downcast(HTMLElement, document.getElementById('loading-text'));\n\n\tconstructor() {\n\t\tsuper();\n\t\tif (Features.barePlayIntro) {\n\t\t\tfor (const element of ['loading-info', 'loading-miniature', 'loading-createOwn']) {\n\t\t\t\tdowncast(HTMLElement, document.getElementById(element)).style.display = 'none';\n\t\t\t}\n\t\t}\n\t}\n\n\tscrollToBottomWhenImageLoaded() {\n\t\tthis.miniatureElement.onload = () => this.element.scrollTo(0, this.element.scrollHeight - this.element.offsetHeight - 8);\n\t}\n\n\tsetLoaded() {\n\t\tthis.loadingText.innerHTML = 'play_arrow' + qsT('Play the game');\n\t\tnonnull(document.getElementById('loading-createOwn')).onclick =\n\t\t\t() => window.open('https://cand.li', '_blank');\n\t\tnonnull(document.getElementById('loading-title')).onclick =\n\t\t\t() => window.open('https://cand.li', '_blank');\n\t}\n\n\tasync clickEvent() {\n\t\tif (Features.barePlayIntro) {\n\t\t\treturn domEvent('onclick', nonnull(document.getElementById('loading')));\n\t\t} else {\n\t\t\treturn domEvent('onclick', this.loadingText);\n\t\t}\n\t}\n}\n\nfunction updateGameDescription(game: Game) {\n\tlet text = '';\n\tconst toPlayText = qsT('To play, ');\n\tconst mouseInput = Platform.hasMouseInput();\n\tif (game.hasAnyBlockOfType(InputBlock)) {\n\t\tconst inputMethods = [];\n\t\tif (screen.width > screen.height) {\n\t\t\tinputMethods.push('tablet');\n\t\t} else {\n\t\t\tinputMethods.push('smartphone');\n\t\t}\n\t\tif (mouseInput) {\n\t\t\tinputMethods.push('keyboard');\n\t\t\tinputMethods.push('mouse');\n\t\t}\n\t\tinputMethods.push('videogame_asset');\n\t\tif (inputMethods.length > 0) {\n\t\t\ttext = toPlayText + qsT('use ') + inputMethods.join(SpacedOr);\n\t\t}\n\t}\n\tif (game.hasAnyBlockOfType(TouchBlock)) {\n\t\tconst separatorText = qsT(', and ');\n\t\ttext += text.length === 0 ? toPlayText : separatorText;\n\t\ttext += qsT('press objects');\n\t}\n\tif (text.length > 0) {\n\t\ttext += qsT('.');\n\t\tnonnull(document.getElementById('loading-info__gameDescription')).innerHTML = text;\n\t}\n}\n\n\nasync function initAsync() {\n\tawait checkBrowserAndWarnUser(false);\n\n\tif (!isFullScreenSupported()) {\n\t\tnonnull(document.getElementById('loading-fullscreenText')).style.display = 'none';\n\t}\n\tconst loadingScreen = new WelcomeScreen();\n\tscreenManager.push(loadingScreen);\n\tloadingScreen.scrollToBottomWhenImageLoaded();\n\n\tconst requestedGameId = getRequestedGameId();\n\tif (requestedGameId !== null) {\n\t\tconst fontPromise = uiTextureFontLoadPromise();\n\t\tconst storage = await connectAndCreateRustDbReadOnlyStorage();\n\n\t\tconsole.debug(`Loading metadata for initially requested '${requestedGameId}'.`);\n\t\tconst miniatureURI = await storage.miniatureReadURI(requestedGameId);\n\t\tloadingScreen.setMiniature(miniatureURI);\n\n\t\tconsole.debug(`Loading initially requested game '${requestedGameId}'.`);\n\t\tconst game = (await loadGameFromBinary(requestedGameId, storage))[0];\n\t\tupdateGameDescription(game);\n\t\tvoid Counters.getGamePlayedCounter(storage, requestedGameId).inc();\n\t\tloadingScreen.setLoaded();\n\n\t\tawait loadingScreen.clickEvent();\n\t\t// to force the creation of the audio context following a user interaction\n\t\tgetAudioContext();\n\t\tawait toggleFullScreen();\n\t\tawait fontPromise;\n\t\tconst runtime = new RuntimeScreenWithUI(game);\n\t\tscreenManager.replaceWith(runtime);\n\t} else {\n\t\tshowCustomError(\n\t\t\tqsT('No game id provided!'),\n\t\t\tqsT('Please append ?GAME_ID to the URL, where GAME_ID is the identifier of your game.'),\n\t\t\ttrue,\n\t\t\tfalse\n\t\t);\n\t}\n}\n\nshowVersion();\n\n// hide font loading hack\nnonnull(document.getElementById('font-loading-hack')).style.display = 'none';\n\n// setup color theme\nsetLightTheme();\n\nvoid (async () => {\n\ttry {\n\t\tawait initAsync();\n\t} catch (e: any) {\n\t\tconst apiError = dynamicCast(ApiError, e);\n\t\tif (apiError !== null && apiError.url.includes('api/v0/games/') && apiError.method === 'GET' && apiError.statusCode === 410) {\n\t\t\tshowCustomError(qsT('Cannot load game'), qsT('This game has been deleted by its author.'), true, false);\n\t\t} else {\n\t\t\tshowError(toStr(e));\n\t\t}\n\t\tthrow e;\n\t}\n})();\n","/**\n * Error screen.\n * @module error\n * @preferred\n */\n/** comment to work-around limitation of typedoc module plugin */\n\n// Copyright 2018-2024 Enlightware GmbH, Switzerland\n\nimport { nonnull } from 'utils/types';\nimport { Screen } from 'screen/screen';\nimport { screenManager } from 'screen/screen-manager';\nimport { reportError } from 'apps/common/analytics';\n\nclass ErrorScreen extends Screen {\n\tconstructor() {\n\t\tsuper(nonnull(document.getElementById('error')));\n\t\tnonnull(document.getElementById('error-reload')).onclick = location.reload.bind(location);\n\t}\n\n\tsetError(errorText: string) {\n\t\tnonnull(document.getElementById('error-text')).innerText = errorText;\n\t}\n\n\tsetIntro(introText: string) {\n\t\tnonnull(document.getElementById('error-intro')).innerText = introText;\n\t}\n\n\tdisableReloadButton() {\n\t\tnonnull(document.getElementById('error-reload')).style.display = 'none';\n\t}\n}\n\nconst errorScreen = new ErrorScreen();\n\nexport function showError(errorText: string) {\n\treportError('showError', errorText);\n\tif (!errorScreen.visible) {\n\t\terrorScreen.setError(errorText);\n\t\tscreenManager.push(errorScreen);\n\t}\n}\n\nexport function showCustomError(introText: string, errorText: string, disableReload: boolean, report: boolean) {\n\tif (report) {\n\t\treportError('showCustomError', errorText);\n\t}\n\tif (!errorScreen.visible) {\n\t\terrorScreen.setIntro(introText);\n\t\terrorScreen.setError(errorText);\n\t\tif (disableReload) {\n\t\t\terrorScreen.disableReloadButton();\n\t\t}\n\t\tscreenManager.push(errorScreen);\n\t}\n\n}\n\nexport function hideError() {\n\tif (screenManager.peek() === errorScreen) {\n\t\tscreenManager.popEvenIfLast();\n\t}\n}\n\nexport function notifyErrorToUser