{#if $location.path[0] === workbenchId || $location.path[0] === workbenchRes.component.WorkbenchApp} {#if $deviceOptionsStore.isMobile && mobileAllowed !== true}

{:else} {#key $location.path[1]} {#await connect(getMetadata(workbenchRes.metadata.PlatformTitle) ?? 'Platform')} {#if ($workspaceCreating ?? -1) > 0}
{/if} {#if $versionError}
{$versionError}
{/if} {#if $upgradeDownloadProgress > 0}
{/if}
{:then client} {#if $versionError}
{#if isNeedUpgrade}

{:else}

{/if} {$versionError} {#if $upgradeDownloadProgress > 0}
{/if}
{:else if client} {/if} {:catch error}
{error} -- {error.stack}
{/await} {/key} {/if} {/if}