diff --git a/.env b/.env
index 227ea10676..65fb54cb04 100644
--- a/.env
+++ b/.env
@@ -56,7 +56,7 @@ _APP_SMTP_PORT=1025
_APP_SMTP_SECURE=
_APP_SMTP_USERNAME=
_APP_SMTP_PASSWORD=
-_APP_SMS_PROVIDER=sms://mock
+_APP_SMS_PROVIDER=sms://username:password@mock
_APP_SMS_FROM=+123456789
_APP_STORAGE_LIMIT=30000000
_APP_STORAGE_PREVIEW_LIMIT=20000000
diff --git a/.gitattributes b/.gitattributes
index beb791f5f3..6d7eedfcb5 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -22,3 +22,7 @@ tests/*/*/* linguist-detectable=false
tests/*/*/*/* linguist-detectable=false
tests/*/*/*/*/* linguist-detectable=false
tests/*/*/*/*/*/* linguist-detectable=false
+public/scripts/* linguist-detectable=false
+public/scripts/*/*/* linguist-detectable=false
+public/scripts/*/*/*/* linguist-detectable=false
+public/dist/scripts/* linguist-detectable=false
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index faa18b5ab9..8522022bdb 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -21,6 +21,11 @@ Happy contributing!
(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)
+### Have you added your change to the [Changelog](https://github.com/appwrite/appwrite/blob/master/CHANGES.md)?
+
+(The CHANGES.md file tracks all the changes that make it to the `main` branch. Add your change to this file in the following format)
+- One line description of your PR [#pr_number](Link to your PR)
+
### Have you read the [Contributing Guidelines on issues](https://github.com/appwrite/appwrite/blob/master/CONTRIBUTING.md)?
(Write your answer here.)
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 2ed2b65ff7..1d1d10c8a1 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -4,7 +4,7 @@ on: [pull_request]
jobs:
tests:
name: Unit & E2E
- runs-on: self-hosted
+ runs-on: ubuntu-latest
steps:
- name: Checkout repository
@@ -23,12 +23,14 @@ jobs:
# Upstream bug causes buildkit pulls to fail so prefetch base images
# https://github.com/moby/moby/issues/41864
run: |
- echo "_APP_FUNCTIONS_RUNTIMES=php-8.0" >> .env
+ export COMPOSE_INTERACTIVE_NO_CLI
+ export DOCKER_BUILDKIT=1
+ export COMPOSE_DOCKER_CLI_BUILD=1
+ export BUILDKIT_PROGRESS=plain
docker pull composer:2.0
- docker pull php:8.0-cli-alpine
- docker compose build --progress=plain
+ docker compose build appwrite
docker compose up -d
- sleep 10
+ sleep 30
- name: Doctor
run: docker compose exec -T appwrite doctor
@@ -37,10 +39,3 @@ jobs:
- name: Run Tests
run: docker compose exec -T appwrite test --debug
-
- - name: Teardown
- if: always()
- run: |
- docker ps -aq | xargs docker rm --force || true
- docker volume prune --force || true
- docker network prune --force || true
\ No newline at end of file
diff --git a/CHANGES.md b/CHANGES.md
index 68ca4abd17..340aec16d4 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,6 +1,28 @@
+# Version 1.1.0
+
+## Bugs
+- Fix license detection for Flutter and Dart SDKs [#4435](https://github.com/appwrite/appwrite/pull/4435)
+
+# Version 1.0.3
+## Bugs
+- Fix document audit deletion [#4429](https://github.com/appwrite/appwrite/pull/4429)
+- Fix attribute and index deletion when deleting a collection [#4429](https://github.com/appwrite/appwrite/pull/4429)
+
+# Version 1.0.2
+## Bugs
+- Fixed nullable values in functions variables [#3885](https://github.com/appwrite/appwrite/pull/3885)
+- Fixed migration for audit by migrating the `time` attribute [#4038](https://github.com/appwrite/appwrite/pull/4038)
+- Fixed default value for creating Boolean Attribute [#4040](https://github.com/appwrite/appwrite/pull/4040)
+- Fixed phone authentication code to be hashed in the internal database [#3906](https://github.com/appwrite/appwrite/pull/3906)
+- Fixed `/v1/teams/:teamId/memberships/:membershipId` response [#3883](https://github.com/appwrite/appwrite/pull/3883)
+- Fixed removing variables when function is deleted [#3884](https://github.com/appwrite/appwrite/pull/3884)
+- Fixed scheduled function not being triggered [#3908](https://github.com/appwrite/appwrite/pull/3908)
+- Fixed Phone Provider configuration [#3862](https://github.com/appwrite/appwrite/pull/3883)
+- Fixed Queries with `0` values [utopia-php/database#194](https://github.com/utopia-php/database/pull/194)
+
# Version 1.0.1
## Bugs
-- Fixed migration for abuse by migrating the `time` attribute [3839](https://github.com/appwrite/appwrite/pull/3839)
+- Fixed migration for abuse by migrating the `time` attribute [#3839](https://github.com/appwrite/appwrite/pull/3839)
# Version 1.0.0
## BREAKING CHANGES
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 4e550c464b..5757b1c6ce 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -93,6 +93,7 @@ git clone git@github.com:[YOUR_FORK_HERE]/appwrite.git
cd appwrite
+docker compose build
docker compose up -d
```
@@ -338,7 +339,7 @@ Things to remember when releasing SDKs
Appwrite uses [yasd](https://github.com/swoole/yasd) debugger, which can be made available during build of Appwrite. You can connect to the debugger using VS Code [PHP Debug](https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug) extension or if you are in PHP Storm you don't need any plugin. Below are the settings required for remote debugger connection.
-First, you need to create an init file. Duplicate **dev/yasd_init.php.stub** file and name it **dev/yasd_init.php** and there change the IP address to your development machine's IP. Without the proper IP address debugger wont connect. And you also need to set **DEBUG** build arg in **appwrite** service in **docker-compose.yml** file.
+First, you need to create an init file. Duplicate **dev/yasd_init.php.stub** file and name it **dev/yasd_init.php** and there change the IP address to your development machine's IP. Without the proper IP address debugger won't connect. And you also need to set **DEBUG** build arg in **appwrite** service in **docker-compose.yml** file.
### VS Code Launch Configuration
@@ -378,7 +379,7 @@ To run end-2-end tests use:
docker compose exec appwrite test /usr/src/code/tests/e2e
```
-To run end-2-end tests for a spcific service use:
+To run end-2-end tests for a specific service use:
```bash
docker compose exec appwrite test /usr/src/code/tests/e2e/Services/[ServiceName]
diff --git a/README-CN.md b/README-CN.md
index 82908f1425..eaada5a34b 100644
--- a/README-CN.md
+++ b/README-CN.md
@@ -8,13 +8,16 @@
-
+
+
+[](https://hacktoberfest.appwrite.io)
[](https://appwrite.io/discord?r=Github)
-[](https://hub.docker.com/r/appwrite/appwrite)
-[](https://travis-ci.com/appwrite/appwrite)
+[](https://github.com/appwrite/appwrite/actions)
[](https://twitter.com/appwrite)
-[](docs/tutorials/add-translations.md)
-[](https://store.appwrite.io)
+
+
+
+
[English](README.md) | 简体中文
@@ -59,7 +62,7 @@ docker run -it --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
- appwrite/appwrite:1.0.1
+ appwrite/appwrite:1.0.3
```
### Windows
@@ -71,7 +74,7 @@ docker run -it --rm ^
--volume //var/run/docker.sock:/var/run/docker.sock ^
--volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^
--entrypoint="install" ^
- appwrite/appwrite:1.0.1
+ appwrite/appwrite:1.0.3
```
#### PowerShell
@@ -81,7 +84,7 @@ docker run -it --rm ,
--volume /var/run/docker.sock:/var/run/docker.sock ,
--volume ${pwd}/appwrite:/usr/src/code/appwrite:rw ,
--entrypoint="install" ,
- appwrite/appwrite:1.0.1
+ appwrite/appwrite:1.0.3
```
运行后,可以在浏览器上访问 http://localhost 找到 Appwrite 控制台。在非 Linux 的本机主机上完成安装后,服务器可能需要几分钟才能启动。
@@ -128,7 +131,7 @@ docker run -it --rm ,
#### 服务器
* ✅ [NodeJS](https://github.com/appwrite/sdk-for-node) (由 Appwrite 团队维护)
-* ✅ [PHP](https://github.com/appwrite/sdk-for-php) (由 Appwr实验 团队维护)
+* ✅ [PHP](https://github.com/appwrite/sdk-for-php) (由 Appwrite 团队维护)
* ✅ [Dart](https://github.com/appwrite/sdk-for-dart) - (由 Appwrite 团队维护)
* ✅ [Deno](https://github.com/appwrite/sdk-for-deno) - **公测** (由 Appwrite 团队维护)
* ✅ [Ruby](https://github.com/appwrite/sdk-for-ruby) (由 Appwrite 团队维护)
diff --git a/README.md b/README.md
index b9a895bc6e..0a56c48073 100644
--- a/README.md
+++ b/README.md
@@ -11,14 +11,17 @@
-
+
+
+[](https://hacktoberfest.appwrite.io)
[](https://appwrite.io/discord?r=Github)
-[](https://hub.docker.com/r/appwrite/appwrite)
[](https://github.com/appwrite/appwrite/actions)
[](https://twitter.com/appwrite)
-[](docs/tutorials/add-translations.md)
-[](https://store.appwrite.io)
+
+
+
+
English | [简体中文](README-CN.md)
@@ -28,6 +31,13 @@ Appwrite is an end-to-end backend server for Web, Mobile, Native, or Backend app
Using Appwrite, you can easily integrate your app with user authentication & multiple sign-in methods, a database for storing and querying users and team data, storage and file management, image manipulation, Cloud Functions, and [more services](https://appwrite.io/docs).
+
+
+
+
+
+
+

Find out more at: [https://appwrite.io](https://appwrite.io)
@@ -65,7 +75,7 @@ docker run -it --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
- appwrite/appwrite:1.0.1
+ appwrite/appwrite:1.0.3
```
### Windows
@@ -77,29 +87,27 @@ docker run -it --rm ^
--volume //var/run/docker.sock:/var/run/docker.sock ^
--volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^
--entrypoint="install" ^
- appwrite/appwrite:1.0.1
+ appwrite/appwrite:1.0.3
```
#### PowerShell
```powershell
-docker run -it --rm ,
- --volume /var/run/docker.sock:/var/run/docker.sock ,
- --volume ${pwd}/appwrite:/usr/src/code/appwrite:rw ,
- --entrypoint="install" ,
- appwrite/appwrite:1.0.1
+docker run -it --rm `
+ --volume /var/run/docker.sock:/var/run/docker.sock `
+ --volume ${pwd}/appwrite:/usr/src/code/appwrite:rw `
+ --entrypoint="install" `
+ appwrite/appwrite:1.0.3
```
Once the Docker installation completes, go to http://localhost to access the Appwrite console from your browser. Please note that on non-Linux native hosts, the server might take a few minutes to start after installation completes.
-
For advanced production and custom installation, check out our Docker [environment variables](https://appwrite.io/docs/environment-variables) docs. You can also use our public [docker-compose.yml](https://appwrite.io/install/compose) and [.env](https://appwrite.io/install/env) files to manually set up an environment.
### Upgrade from an Older Version
If you are upgrading your Appwrite server from an older version, you should use the Appwrite migration tool once your setup is completed. For more information regarding this, check out the [Installation Docs](https://appwrite.io/docs/installation).
-
## One-Click Setups
In addition to running Appwrite locally, you can also launch Appwrite using a pre-configured setup. This allows you to get up and running with Appwrite quickly without installing Docker on your local machine.
@@ -127,24 +135,24 @@ Choose from one of the providers below:
Getting started with Appwrite is as easy as creating a new project, choosing your platform, and integrating its SDK into your code. You can easily get started with your platform of choice by reading one of our Getting Started tutorials.
-* [Getting Started for Web](https://appwrite.io/docs/getting-started-for-web)
-* [Getting Started for Flutter](https://appwrite.io/docs/getting-started-for-flutter)
-* [Getting Started for Apple](https://appwrite.io/docs/getting-started-for-apple)
-* [Getting Started for Android](https://appwrite.io/docs/getting-started-for-android)
-* [Getting Started for Server](https://appwrite.io/docs/getting-started-for-server)
-* [Getting Started for CLI](https://appwrite.io/docs/command-line)
+- [Getting Started for Web](https://appwrite.io/docs/getting-started-for-web)
+- [Getting Started for Flutter](https://appwrite.io/docs/getting-started-for-flutter)
+- [Getting Started for Apple](https://appwrite.io/docs/getting-started-for-apple)
+- [Getting Started for Android](https://appwrite.io/docs/getting-started-for-android)
+- [Getting Started for Server](https://appwrite.io/docs/getting-started-for-server)
+- [Getting Started for CLI](https://appwrite.io/docs/command-line)
### Services
-* [**Account**](https://appwrite.io/docs/client/account) - Manage current user authentication and account. Track and manage the user sessions, devices, sign-in methods, and security logs.
-* [**Users**](https://appwrite.io/docs/server/users) - Manage and list all project users when in admin mode.
-* [**Teams**](https://appwrite.io/docs/client/teams) - Manage and group users in teams. Manage memberships, invites, and user roles within a team.
-* [**Databases**](https://appwrite.io/docs/client/databases) - Manage databases, collections and documents. Read, create, update, and delete documents and filter lists of document collections using advanced filters.
-* [**Storage**](https://appwrite.io/docs/client/storage) - Manage storage files. Read, create, delete, and preview files. Manipulate the preview of your files to fit your app perfectly. All files are scanned by ClamAV and stored in a secure and encrypted way.
-* [**Functions**](https://appwrite.io/docs/server/functions) - Customize your Appwrite server by executing your custom code in a secure, isolated environment. You can trigger your code on any Appwrite system event, manually or using a CRON schedule.
-* [**Realtime**](https://appwrite.io/docs/realtime) - Listen to real-time events for any of your Appwrite services including users, storage, functions, databases and more.
-* [**Locale**](https://appwrite.io/docs/client/locale) - Track your user's location, and manage your app locale-based data.
-* [**Avatars**](https://appwrite.io/docs/client/avatars) - Manage your users' avatars, countries' flags, browser icons, credit card symbols, and generate QR codes.
+- [**Account**](https://appwrite.io/docs/client/account) - Manage current user authentication and account. Track and manage the user sessions, devices, sign-in methods, and security logs.
+- [**Users**](https://appwrite.io/docs/server/users) - Manage and list all project users when in admin mode.
+- [**Teams**](https://appwrite.io/docs/client/teams) - Manage and group users in teams. Manage memberships, invites, and user roles within a team.
+- [**Databases**](https://appwrite.io/docs/client/databases) - Manage databases, collections and documents. Read, create, update, and delete documents and filter lists of document collections using advanced filters.
+- [**Storage**](https://appwrite.io/docs/client/storage) - Manage storage files. Read, create, delete, and preview files. Manipulate the preview of your files to fit your app perfectly. All files are scanned by ClamAV and stored in a secure and encrypted way.
+- [**Functions**](https://appwrite.io/docs/server/functions) - Customize your Appwrite server by executing your custom code in a secure, isolated environment. You can trigger your code on any Appwrite system event, manually or using a CRON schedule.
+- [**Realtime**](https://appwrite.io/docs/realtime) - Listen to real-time events for any of your Appwrite services including users, storage, functions, databases and more.
+- [**Locale**](https://appwrite.io/docs/client/locale) - Track your user's location, and manage your app locale-based data.
+- [**Avatars**](https://appwrite.io/docs/client/avatars) - Manage your users' avatars, countries' flags, browser icons, credit card symbols, and generate QR codes.
For the complete API documentation, visit [https://appwrite.io/docs](https://appwrite.io/docs). For more tutorials, news and announcements check out our [blog](https://medium.com/appwrite-io) and [Discord Server](https://discord.gg/GSeTUeA).
@@ -153,34 +161,36 @@ For the complete API documentation, visit [https://appwrite.io/docs](https://app
Below is a list of currently supported platforms and languages. If you wish to help us add support to your platform of choice, you can go over to our [SDK Generator](https://github.com/appwrite/sdk-generator) project and view our [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md).
#### Client
-* ✅ [Web](https://github.com/appwrite/sdk-for-web) (Maintained by the Appwrite Team)
-* ✅ [Flutter](https://github.com/appwrite/sdk-for-flutter) (Maintained by the Appwrite Team)
-* ✅ [Apple](https://github.com/appwrite/sdk-for-apple) - **Beta** (Maintained by the Appwrite Team)
-* ✅ [Android](https://github.com/appwrite/sdk-for-android) (Maintained by the Appwrite Team)
+
+- ✅ [Web](https://github.com/appwrite/sdk-for-web) (Maintained by the Appwrite Team)
+- ✅ [Flutter](https://github.com/appwrite/sdk-for-flutter) (Maintained by the Appwrite Team)
+- ✅ [Apple](https://github.com/appwrite/sdk-for-apple) - **Beta** (Maintained by the Appwrite Team)
+- ✅ [Android](https://github.com/appwrite/sdk-for-android) (Maintained by the Appwrite Team)
#### Server
-* ✅ [NodeJS](https://github.com/appwrite/sdk-for-node) (Maintained by the Appwrite Team)
-* ✅ [PHP](https://github.com/appwrite/sdk-for-php) (Maintained by the Appwrite Team)
-* ✅ [Dart](https://github.com/appwrite/sdk-for-dart) - (Maintained by the Appwrite Team)
-* ✅ [Deno](https://github.com/appwrite/sdk-for-deno) - **Beta** (Maintained by the Appwrite Team)
-* ✅ [Ruby](https://github.com/appwrite/sdk-for-ruby) (Maintained by the Appwrite Team)
-* ✅ [Python](https://github.com/appwrite/sdk-for-python) (Maintained by the Appwrite Team)
-* ✅ [Kotlin](https://github.com/appwrite/sdk-for-kotlin) - **Beta** (Maintained by the Appwrite Team)
-* ✅ [Apple](https://github.com/appwrite/sdk-for-apple) - **Beta** (Maintained by the Appwrite Team)
-* ✅ [.NET](https://github.com/appwrite/sdk-for-dotnet) - **Experimental** (Maintained by the Appwrite Team)
+
+- ✅ [NodeJS](https://github.com/appwrite/sdk-for-node) (Maintained by the Appwrite Team)
+- ✅ [PHP](https://github.com/appwrite/sdk-for-php) (Maintained by the Appwrite Team)
+- ✅ [Dart](https://github.com/appwrite/sdk-for-dart) - (Maintained by the Appwrite Team)
+- ✅ [Deno](https://github.com/appwrite/sdk-for-deno) - **Beta** (Maintained by the Appwrite Team)
+- ✅ [Ruby](https://github.com/appwrite/sdk-for-ruby) (Maintained by the Appwrite Team)
+- ✅ [Python](https://github.com/appwrite/sdk-for-python) (Maintained by the Appwrite Team)
+- ✅ [Kotlin](https://github.com/appwrite/sdk-for-kotlin) - **Beta** (Maintained by the Appwrite Team)
+- ✅ [Apple](https://github.com/appwrite/sdk-for-apple) - **Beta** (Maintained by the Appwrite Team)
+- ✅ [.NET](https://github.com/appwrite/sdk-for-dotnet) - **Experimental** (Maintained by the Appwrite Team)
#### Community
-* ✅ [Appcelerator Titanium](https://github.com/m1ga/ti.appwrite) (Maintained by [Michael Gangolf](https://github.com/m1ga/))
-* ✅ [Godot Engine](https://github.com/GodotNuts/appwrite-sdk) (Maintained by [fenix-hub @GodotNuts](https://github.com/fenix-hub))
+
+- ✅ [Appcelerator Titanium](https://github.com/m1ga/ti.appwrite) (Maintained by [Michael Gangolf](https://github.com/m1ga/))
+- ✅ [Godot Engine](https://github.com/GodotNuts/appwrite-sdk) (Maintained by [fenix-hub @GodotNuts](https://github.com/fenix-hub))
Looking for more SDKs? - Help us by contributing a pull request to our [SDK Generator](https://github.com/appwrite/sdk-generator)!
-
## Architecture

-Appwrite uses a microservices architecture that was designed for easy scaling and delegation of responsibilities. In addition, Appwrite supports multiple APIs (REST, WebSocket, and GraphQL-soon) to allow you to interact with your resources leveraging your existing knowledge and protocols of choice.
+Appwrite uses a microservices architecture that was designed for easy scaling and delegation of responsibilities. In addition, Appwrite supports multiple APIs (REST, WebSocket, and GraphQL-soon) to allow you to interact with your resources by leveraging your existing knowledge and protocols of choice.
The Appwrite API layer was designed to be extremely fast by leveraging in-memory caching and delegating any heavy-lifting tasks to the Appwrite background workers. The background workers also allow you to precisely control your compute capacity and costs using a message queue to handle the load. You can learn more about our architecture in the [contribution guide](CONTRIBUTING.md#architecture-1).
diff --git a/app/config/events.php b/app/config/events.php
index 0a7d819142..6fe030d4bf 100644
--- a/app/config/events.php
+++ b/app/config/events.php
@@ -1,7 +1,7 @@
'web',
'name' => 'Web',
- 'version' => '10.0.0',
+ 'version' => '10.1.0',
'url' => 'https://github.com/appwrite/sdk-for-web',
'package' => 'https://www.npmjs.com/package/appwrite',
'enabled' => true,
@@ -63,7 +63,7 @@ return [
[
'key' => 'flutter',
'name' => 'Flutter',
- 'version' => '8.0.0',
+ 'version' => '8.1.0',
'url' => 'https://github.com/appwrite/sdk-for-flutter',
'package' => 'https://pub.dev/packages/appwrite',
'enabled' => true,
@@ -81,7 +81,7 @@ return [
[
'key' => 'apple',
'name' => 'Apple',
- 'version' => '1.0.0',
+ 'version' => '1.1.0',
'url' => 'https://github.com/appwrite/sdk-for-apple',
'package' => 'https://github.com/appwrite/sdk-for-apple',
'enabled' => true,
@@ -116,7 +116,7 @@ return [
[
'key' => 'android',
'name' => 'Android',
- 'version' => '1.0.0',
+ 'version' => '1.1.0',
'url' => 'https://github.com/appwrite/sdk-for-android',
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android',
'enabled' => true,
@@ -162,7 +162,7 @@ return [
[
'key' => 'web',
'name' => 'Console',
- 'version' => '7.0.0',
+ 'version' => '7.1.0',
'url' => 'https://github.com/appwrite/sdk-for-console',
'package' => '',
'enabled' => true,
@@ -180,7 +180,7 @@ return [
[
'key' => 'cli',
'name' => 'Command Line',
- 'version' => '1.0.0',
+ 'version' => '1.1.1',
'url' => 'https://github.com/appwrite/sdk-for-cli',
'package' => 'https://www.npmjs.com/package/appwrite-cli',
'enabled' => true,
@@ -208,7 +208,7 @@ return [
[
'key' => 'nodejs',
'name' => 'Node.js',
- 'version' => '8.0.0',
+ 'version' => '8.1.0',
'url' => 'https://github.com/appwrite/sdk-for-node',
'package' => 'https://www.npmjs.com/package/node-appwrite',
'enabled' => true,
@@ -226,7 +226,7 @@ return [
[
'key' => 'deno',
'name' => 'Deno',
- 'version' => '6.0.0',
+ 'version' => '6.1.0',
'url' => 'https://github.com/appwrite/sdk-for-deno',
'package' => 'https://deno.land/x/appwrite',
'enabled' => true,
@@ -244,7 +244,7 @@ return [
[
'key' => 'php',
'name' => 'PHP',
- 'version' => '7.0.0',
+ 'version' => '7.1.0',
'url' => 'https://github.com/appwrite/sdk-for-php',
'package' => 'https://packagist.org/packages/appwrite/appwrite',
'enabled' => true,
@@ -262,7 +262,7 @@ return [
[
'key' => 'python',
'name' => 'Python',
- 'version' => '1.0.0',
+ 'version' => '1.1.0',
'url' => 'https://github.com/appwrite/sdk-for-python',
'package' => 'https://pypi.org/project/appwrite/',
'enabled' => true,
@@ -280,7 +280,7 @@ return [
[
'key' => 'ruby',
'name' => 'Ruby',
- 'version' => '7.0.0',
+ 'version' => '7.1.0',
'url' => 'https://github.com/appwrite/sdk-for-ruby',
'package' => 'https://rubygems.org/gems/appwrite',
'enabled' => true,
@@ -298,7 +298,7 @@ return [
[
'key' => 'go',
'name' => 'Go',
- 'version' => '1.0.0',
+ 'version' => '1.1.0',
'url' => 'https://github.com/appwrite/sdk-for-go',
'package' => '',
'enabled' => false,
@@ -316,7 +316,7 @@ return [
[
'key' => 'java',
'name' => 'Java',
- 'version' => '1.0.0',
+ 'version' => '1.1.0',
'url' => 'https://github.com/appwrite/sdk-for-java',
'package' => '',
'enabled' => false,
@@ -334,7 +334,7 @@ return [
[
'key' => 'dotnet',
'name' => '.NET',
- 'version' => '1.0.0',
+ 'version' => '1.1.0',
'url' => 'https://github.com/appwrite/sdk-for-dotnet',
'package' => 'https://www.nuget.org/packages/Appwrite',
'enabled' => false,
@@ -352,7 +352,7 @@ return [
[
'key' => 'dart',
'name' => 'Dart',
- 'version' => '7.0.0',
+ 'version' => '7.1.0',
'url' => 'https://github.com/appwrite/sdk-for-dart',
'package' => 'https://pub.dev/packages/dart_appwrite',
'enabled' => true,
@@ -370,7 +370,7 @@ return [
[
'key' => 'kotlin',
'name' => 'Kotlin',
- 'version' => '1.0.0',
+ 'version' => '1.1.0',
'url' => 'https://github.com/appwrite/sdk-for-kotlin',
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin',
'enabled' => true,
@@ -392,7 +392,7 @@ return [
[
'key' => 'swift',
'name' => 'Swift',
- 'version' => '1.0.0',
+ 'version' => '1.1.0',
'url' => 'https://github.com/appwrite/sdk-for-swift',
'package' => 'https://github.com/appwrite/sdk-for-swift',
'enabled' => true,
diff --git a/app/config/providers.php b/app/config/providers.php
index 98ad93b30c..62430faae1 100644
--- a/app/config/providers.php
+++ b/app/config/providers.php
@@ -17,7 +17,7 @@ return [ // Ordered by ABC.
'icon' => 'icon-apple',
'enabled' => true,
'sandbox' => false,
- 'form' => 'apple.phtml', // Perperation for adding ability to customized OAuth UI forms, currently handled hardcoded.
+ 'form' => 'apple.phtml', // Preparation for adding ability to customized OAuth UI forms, currently handled hardcoded.
'beta' => true,
'mock' => false,
],
diff --git a/app/config/variables.php b/app/config/variables.php
index 3eb11ad620..9f3bc018e8 100644
--- a/app/config/variables.php
+++ b/app/config/variables.php
@@ -413,7 +413,7 @@ return [
'variables' => [
[
'name' => '_APP_SMS_PROVIDER',
- 'description' => "Provider used for delivering SMS for Phone authentication. Use the following format: 'sms://[USER]:[SECRET]@[PROVIDER]'. \n\nAvailable providers are twilio, text-magic and telesign.",
+ 'description' => "Provider used for delivering SMS for Phone authentication. Use the following format: 'sms://[USER]:[SECRET]@[PROVIDER]'. \n\nAvailable providers are twilio, text-magic, telesign, msg91, and vonage.",
'introduction' => '0.15.0',
'default' => '',
'required' => false,
diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php
index ef94b251c8..fb91a4517d 100644
--- a/app/controllers/api/account.php
+++ b/app/controllers/api/account.php
@@ -2,7 +2,6 @@
use Ahc\Jwt\JWT;
use Appwrite\Auth\Auth;
-use Appwrite\SMS\Adapter\Mock;
use Appwrite\Auth\Validator\Password;
use Appwrite\Auth\Validator\Phone;
use Appwrite\Detector\Detector;
@@ -930,7 +929,7 @@ App::post('/v1/account/sessions/phone')
])));
}
- $secret = (App::getEnv('_APP_SMS_PROVIDER') === 'sms://mock') ? Mock::$digits : Auth::codeGenerator();
+ $secret = Auth::codeGenerator();
$expire = DateTime::addSeconds(new \DateTime(), Auth::TOKEN_EXPIRATION_PHONE);
$token = new Document([
@@ -938,7 +937,7 @@ App::post('/v1/account/sessions/phone')
'userId' => $user->getId(),
'userInternalId' => $user->getInternalId(),
'type' => Auth::TOKEN_TYPE_PHONE,
- 'secret' => $secret,
+ 'secret' => Auth::hash($secret),
'expire' => $expire,
'userAgent' => $request->getUserAgent('UNKNOWN'),
'ip' => $request->getIP(),
@@ -1418,7 +1417,7 @@ App::get('/v1/account/sessions/:sessionId')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_SESSION)
- ->param('sessionId', null, new UID(), 'Session ID. Use the string \'current\' to get the current device session.')
+ ->param('sessionId', '', new UID(), 'Session ID. Use the string \'current\' to get the current device session.')
->inject('response')
->inject('user')
->inject('locale')
@@ -1696,7 +1695,7 @@ App::delete('/v1/account/sessions/:sessionId')
->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT)
->label('sdk.response.model', Response::MODEL_NONE)
->label('abuse-limit', 100)
- ->param('sessionId', null, new UID(), 'Session ID. Use the string \'current\' to delete the current device session.')
+ ->param('sessionId', '', new UID(), 'Session ID. Use the string \'current\' to delete the current device session.')
->inject('request')
->inject('response')
->inject('user')
@@ -1769,7 +1768,7 @@ App::patch('/v1/account/sessions/:sessionId')
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_SESSION)
->label('abuse-limit', 10)
- ->param('sessionId', null, new UID(), 'Session ID. Use the string \'current\' to update the current device session.')
+ ->param('sessionId', '', new UID(), 'Session ID. Use the string \'current\' to update the current device session.')
->inject('request')
->inject('response')
->inject('user')
@@ -2258,7 +2257,7 @@ App::post('/v1/account/verification/phone')
$isPrivilegedUser = Auth::isPrivilegedUser($roles);
$isAppUser = Auth::isAppUser($roles);
$verificationSecret = Auth::tokenGenerator();
- $secret = (App::getEnv('_APP_SMS_PROVIDER') === 'sms://mock') ? Mock::$digits : Auth::codeGenerator();
+ $secret = Auth::codeGenerator();
$expire = DateTime::addSeconds(new \DateTime(), Auth::TOKEN_EXPIRATION_CONFIRM);
$verification = new Document([
@@ -2266,7 +2265,7 @@ App::post('/v1/account/verification/phone')
'userId' => $user->getId(),
'userInternalId' => $user->getInternalId(),
'type' => Auth::TOKEN_TYPE_PHONE,
- 'secret' => $secret,
+ 'secret' => Auth::hash($secret),
'expire' => $expire,
'userAgent' => $request->getUserAgent('UNKNOWN'),
'ip' => $request->getIP(),
diff --git a/app/controllers/api/databases.php b/app/controllers/api/databases.php
index e2acb30772..5278abae3e 100644
--- a/app/controllers/api/databases.php
+++ b/app/controllers/api/databases.php
@@ -89,11 +89,11 @@ function createAttribute(string $databaseId, string $collectionId, Document $att
}
// Must throw here since dbForProject->createAttribute is performed by db worker
- if ($required && $default) {
+ if ($required && isset($default)) {
throw new Exception(Exception::ATTRIBUTE_DEFAULT_UNSUPPORTED, 'Cannot set default value for required attribute');
}
- if ($array && $default) {
+ if ($array && isset($default)) {
throw new Exception(Exception::ATTRIBUTE_DEFAULT_UNSUPPORTED, 'Cannot set default value for array attributes');
}
@@ -1783,7 +1783,7 @@ App::delete('/v1/databases/:databaseId/collections/:collectionId/indexes/:key')
->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT)
->label('sdk.response.model', Response::MODEL_NONE)
->param('databaseId', '', new UID(), 'Database ID.')
- ->param('collectionId', null, new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
+ ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
->param('key', '', new Key(), 'Index Key.')
->inject('response')
->inject('dbForProject')
@@ -1856,7 +1856,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/documents')
->label('sdk.response.model', Response::MODEL_DOCUMENT)
->param('databaseId', '', new UID(), 'Database ID.')
->param('documentId', '', new CustomId(), 'Document ID. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.')
- ->param('collectionId', null, new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents.')
+ ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents.')
->param('data', [], new JSON(), 'Document data as JSON object.')
->param('permissions', null, new Permissions(APP_LIMIT_ARRAY_PARAMS_SIZE, [Database::PERMISSION_READ, Database::PERMISSION_UPDATE, Database::PERMISSION_DELETE, Database::PERMISSION_WRITE]), 'An array of permissions strings. By default the current user is granted with all permissions. [Learn more about permissions](/docs/permissions).', true)
->inject('response')
@@ -2074,8 +2074,8 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/documents/:documen
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_DOCUMENT)
->param('databaseId', '', new UID(), 'Database ID.')
- ->param('collectionId', null, new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
- ->param('documentId', null, new UID(), 'Document ID.')
+ ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
+ ->param('documentId', '', new UID(), 'Document ID.')
->inject('response')
->inject('dbForProject')
->inject('mode')
@@ -2137,7 +2137,7 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/documents/:documen
->label('sdk.response.model', Response::MODEL_LOG_LIST)
->param('databaseId', '', new UID(), 'Database ID.')
->param('collectionId', '', new UID(), 'Collection ID.')
- ->param('documentId', null, new UID(), 'Document ID.')
+ ->param('documentId', '', new UID(), 'Document ID.')
->param('queries', [], new Queries(new Limit(), new Offset()), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Only supported methods are limit and offset', true)
->inject('response')
->inject('dbForProject')
@@ -2243,8 +2243,8 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/documents/:docum
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_DOCUMENT)
->param('databaseId', '', new UID(), 'Database ID.')
- ->param('collectionId', null, new UID(), 'Collection ID.')
- ->param('documentId', null, new UID(), 'Document ID.')
+ ->param('collectionId', '', new UID(), 'Collection ID.')
+ ->param('documentId', '', new UID(), 'Document ID.')
->param('data', [], new JSON(), 'Document data as JSON object. Include only attribute and value pairs to be updated.', true)
->param('permissions', null, new Permissions(APP_LIMIT_ARRAY_PARAMS_SIZE, [Database::PERMISSION_READ, Database::PERMISSION_UPDATE, Database::PERMISSION_DELETE, Database::PERMISSION_WRITE]), 'An array of permissions strings. By default the current permissions are inherited. [Learn more about permissions](/docs/permissions).', true)
->inject('response')
@@ -2376,8 +2376,8 @@ App::delete('/v1/databases/:databaseId/collections/:collectionId/documents/:docu
->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT)
->label('sdk.response.model', Response::MODEL_NONE)
->param('databaseId', '', new UID(), 'Database ID.')
- ->param('collectionId', null, new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
- ->param('documentId', null, new UID(), 'Document ID.')
+ ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
+ ->param('documentId', '', new UID(), 'Document ID.')
->inject('response')
->inject('dbForProject')
->inject('events')
@@ -2534,7 +2534,7 @@ App::get('/v1/databases/usage')
};
$stats[$metric][] = [
'value' => 0,
- 'date' => DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff),
+ 'date' => DateTime::formatTz(DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff)),
];
$backfill--;
}
@@ -2648,7 +2648,7 @@ App::get('/v1/databases/:databaseId/usage')
};
$stats[$metric][] = [
'value' => 0,
- 'date' => DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff),
+ 'date' => DateTime::formatTz(DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff)),
];
$backfill--;
}
@@ -2763,7 +2763,7 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/usage')
};
$stats[$metric][] = [
'value' => 0,
- 'date' => DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff),
+ 'date' => DateTime::formatTz(DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff)),
];
$backfill--;
}
diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php
index f42d1059e0..d3a26b414e 100644
--- a/app/controllers/api/functions.php
+++ b/app/controllers/api/functions.php
@@ -71,8 +71,13 @@ App::post('/v1/functions')
->param('enabled', true, new Boolean(), 'Is function enabled?', true)
->inject('response')
->inject('dbForProject')
+ ->inject('project')
+ ->inject('user')
->inject('events')
- ->action(function (string $functionId, string $name, array $execute, string $runtime, array $events, string $schedule, int $timeout, bool $enabled, Response $response, Database $dbForProject, Event $eventsInstance) {
+ ->action(function (string $functionId, string $name, array $execute, string $runtime, array $events, string $schedule, int $timeout, bool $enabled, Response $response, Database $dbForProject, Document $project, Document $user, Event $eventsInstance) {
+
+ $cron = !empty($schedule) ? new CronExpression($schedule) : null;
+ $next = !empty($schedule) ? DateTime::format($cron->getNextRunDate()) : null;
$functionId = ($functionId == 'unique()') ? ID::unique() : $functionId;
$function = $dbForProject->createDocument('functions', new Document([
@@ -86,11 +91,22 @@ App::post('/v1/functions')
'schedule' => $schedule,
'scheduleUpdatedAt' => DateTime::now(),
'schedulePrevious' => null,
- 'scheduleNext' => null,
+ 'scheduleNext' => $next,
'timeout' => $timeout,
'search' => implode(' ', [$functionId, $name, $runtime])
]));
+ if ($next) {
+ // Async task reschedule
+ $functionEvent = new Func();
+ $functionEvent
+ ->setFunction($function)
+ ->setType('schedule')
+ ->setUser($user)
+ ->setProject($project)
+ ->schedule(new \DateTime($next));
+ }
+
$eventsInstance->setParam('functionId', $function->getId());
$response
@@ -281,7 +297,7 @@ App::get('/v1/functions/:functionId/usage')
};
$stats[$metric][] = [
'value' => 0,
- 'date' => DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff),
+ 'date' => DateTime::formatTz(DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff)),
];
$backfill--;
}
@@ -384,7 +400,7 @@ App::get('/v1/functions/usage')
};
$stats[$metric][] = [
'value' => 0,
- 'date' => DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff),
+ 'date' => DateTime::formatTz(DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff)),
];
$backfill--;
}
@@ -442,11 +458,9 @@ App::put('/v1/functions/:functionId')
throw new Exception(Exception::FUNCTION_NOT_FOUND);
}
- $original = $function->getAttribute('schedule', '');
- $cron = (!empty($function->getAttribute('deployment')) && !empty($schedule)) ? new CronExpression($schedule) : null;
- $next = (!empty($function->getAttribute('deployment')) && !empty($schedule)) ? DateTime::format($cron->getNextRunDate()) : null;
+ $cron = !empty($schedule) ? new CronExpression($schedule) : null;
+ $next = !empty($schedule) ? DateTime::format($cron->getNextRunDate()) : null;
- $scheduleUpdatedAt = $schedule !== $original ? DateTime::now() : $function->getAttribute('scheduleUpdatedAt');
$enabled ??= $function->getAttribute('enabled', true);
$function = $dbForProject->updateDocument('functions', $function->getId(), new Document(array_merge($function->getArrayCopy(), [
@@ -454,14 +468,14 @@ App::put('/v1/functions/:functionId')
'name' => $name,
'events' => $events,
'schedule' => $schedule,
- 'scheduleUpdatedAt' => $scheduleUpdatedAt,
+ 'scheduleUpdatedAt' => DateTime::now(),
'scheduleNext' => $next,
'timeout' => $timeout,
'enabled' => $enabled,
'search' => implode(' ', [$functionId, $name, $function->getAttribute('runtime')]),
])));
- if ($next && $schedule !== $original) {
+ if ($next) {
// Async task reschedule
$functionEvent = new Func();
$functionEvent
@@ -519,24 +533,10 @@ App::patch('/v1/functions/:functionId/deployments/:deploymentId')
throw new Exception(Exception::BUILD_NOT_READY);
}
- $schedule = $function->getAttribute('schedule', '');
- $cron = (empty($function->getAttribute('deployment')) && !empty($schedule)) ? new CronExpression($schedule) : null;
- $next = (empty($function->getAttribute('deployment')) && !empty($schedule)) ? DateTime::format($cron->getNextRunDate()) : null;
-
$function = $dbForProject->updateDocument('functions', $function->getId(), new Document(array_merge($function->getArrayCopy(), [
- 'deployment' => $deployment->getId(),
- 'scheduleNext' => $next,
+ 'deployment' => $deployment->getId()
])));
- if ($next) { // Init first schedule
- $functionEvent = new Func();
- $functionEvent
- ->setType('schedule')
- ->setFunction($function)
- ->setProject($project)
- ->schedule(new \DateTime($next));
- }
-
$events
->setParam('functionId', $function->getId())
->setParam('deploymentId', $deployment->getId());
@@ -935,6 +935,67 @@ App::delete('/v1/functions/:functionId/deployments/:deploymentId')
$response->noContent();
});
+App::post('/v1/functions/:functionId/deployments/:deploymentId/builds/:buildId')
+ ->groups(['api', 'functions'])
+ ->desc('Create Build')
+ ->label('scope', 'functions.write')
+ ->label('event', 'functions.[functionId].deployments.[deploymentId].update')
+ ->label('audits.event', 'deployment.update')
+ ->label('audits.resource', 'function/{request.functionId}')
+ ->label('sdk.auth', [APP_AUTH_TYPE_KEY])
+ ->label('sdk.namespace', 'functions')
+ ->label('sdk.method', 'createBuild')
+ ->label('sdk.description', '/docs/references/functions/create-build.md')
+ ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT)
+ ->label('sdk.response.model', Response::MODEL_NONE)
+ ->param('functionId', '', new UID(), 'Function ID.')
+ ->param('deploymentId', '', new UID(), 'Deployment ID.')
+ ->param('buildId', '', new UID(), 'Build unique ID.')
+ ->inject('response')
+ ->inject('dbForProject')
+ ->inject('project')
+ ->inject('events')
+ ->action(function (string $functionId, string $deploymentId, string $buildId, Response $response, Database $dbForProject, Document $project, Event $events) {
+
+ $function = $dbForProject->getDocument('functions', $functionId);
+ $deployment = $dbForProject->getDocument('deployments', $deploymentId);
+
+ if ($function->isEmpty()) {
+ throw new Exception(Exception::FUNCTION_NOT_FOUND);
+ }
+
+ if ($deployment->isEmpty()) {
+ throw new Exception(Exception::DEPLOYMENT_NOT_FOUND);
+ }
+
+ $build = Authorization::skip(fn () => $dbForProject->getDocument('builds', $buildId));
+
+ if ($build->isEmpty()) {
+ throw new Exception(Exception::BUILD_NOT_FOUND);
+ }
+
+ if ($build->getAttribute('status') !== 'failed') {
+ throw new Exception(Exception::BUILD_IN_PROGRESS, 'Build not failed');
+ }
+
+ $events
+ ->setParam('functionId', $function->getId())
+ ->setParam('deploymentId', $deployment->getId());
+
+ // Retry the build
+ $buildEvent = new Build();
+ $buildEvent
+ ->setType(BUILD_TYPE_RETRY)
+ ->setResource($function)
+ ->setDeployment($deployment)
+ ->setProject($project)
+ ->trigger();
+
+ $response->noContent();
+ });
+
+
+
App::post('/v1/functions/:functionId/executions')
->groups(['api', 'functions'])
->desc('Create Execution')
@@ -1066,21 +1127,21 @@ App::post('/v1/functions/:functionId/executions')
}
$vars = array_reduce($function['vars'] ?? [], function (array $carry, Document $var) {
- $carry[$var->getAttribute('key')] = $var->getAttribute('value');
+ $carry[$var->getAttribute('key')] = $var->getAttribute('value') ?? '';
return $carry;
}, []);
$vars = \array_merge($vars, [
'APPWRITE_FUNCTION_ID' => $function->getId(),
- 'APPWRITE_FUNCTION_NAME' => $function->getAttribute('name', ''),
+ 'APPWRITE_FUNCTION_NAME' => $function->getAttribute('name'),
'APPWRITE_FUNCTION_DEPLOYMENT' => $deployment->getId(),
- 'APPWRITE_FUNCTION_TRIGGER' => 'http',
- 'APPWRITE_FUNCTION_RUNTIME_NAME' => $runtime['name'],
- 'APPWRITE_FUNCTION_RUNTIME_VERSION' => $runtime['version'],
- 'APPWRITE_FUNCTION_DATA' => $data,
'APPWRITE_FUNCTION_PROJECT_ID' => $project->getId(),
- 'APPWRITE_FUNCTION_USER_ID' => $user->getId(),
- 'APPWRITE_FUNCTION_JWT' => $jwt,
+ 'APPWRITE_FUNCTION_TRIGGER' => 'http',
+ 'APPWRITE_FUNCTION_RUNTIME_NAME' => $runtime['name'] ?? '',
+ 'APPWRITE_FUNCTION_RUNTIME_VERSION' => $runtime['version'] ?? '',
+ 'APPWRITE_FUNCTION_DATA' => $data ?? '',
+ 'APPWRITE_FUNCTION_USER_ID' => $user->getId() ?? '',
+ 'APPWRITE_FUNCTION_JWT' => $jwt ?? '',
]);
/** Execute function */
@@ -1258,65 +1319,6 @@ App::get('/v1/functions/:functionId/executions/:executionId')
$response->dynamic($execution, Response::MODEL_EXECUTION);
});
-App::post('/v1/functions/:functionId/deployments/:deploymentId/builds/:buildId')
- ->groups(['api', 'functions'])
- ->desc('Retry Build')
- ->label('scope', 'functions.write')
- ->label('event', 'functions.[functionId].deployments.[deploymentId].update')
- ->label('audits.event', 'deployment.update')
- ->label('audits.resource', 'function/{request.functionId}')
- ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT])
- ->label('sdk.namespace', 'functions')
- ->label('sdk.method', 'retryBuild')
- ->label('sdk.description', '/docs/references/functions/retry-build.md')
- ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT)
- ->label('sdk.response.model', Response::MODEL_NONE)
- ->param('functionId', '', new UID(), 'Function ID.')
- ->param('deploymentId', '', new UID(), 'Deployment ID.')
- ->param('buildId', '', new UID(), 'Build unique ID.')
- ->inject('response')
- ->inject('dbForProject')
- ->inject('project')
- ->inject('events')
- ->action(function (string $functionId, string $deploymentId, string $buildId, Response $response, Database $dbForProject, Document $project, Event $events) {
-
- $function = $dbForProject->getDocument('functions', $functionId);
- $deployment = $dbForProject->getDocument('deployments', $deploymentId);
-
- if ($function->isEmpty()) {
- throw new Exception(Exception::FUNCTION_NOT_FOUND);
- }
-
- if ($deployment->isEmpty()) {
- throw new Exception(Exception::DEPLOYMENT_NOT_FOUND);
- }
-
- $build = Authorization::skip(fn () => $dbForProject->getDocument('builds', $buildId));
-
- if ($build->isEmpty()) {
- throw new Exception(Exception::BUILD_NOT_FOUND);
- }
-
- if ($build->getAttribute('status') !== 'failed') {
- throw new Exception(Exception::BUILD_IN_PROGRESS, 'Build not failed');
- }
-
- $events
- ->setParam('functionId', $function->getId())
- ->setParam('deploymentId', $deployment->getId());
-
- // Retry the build
- $buildEvent = new Build();
- $buildEvent
- ->setType(BUILD_TYPE_RETRY)
- ->setResource($function)
- ->setDeployment($deployment)
- ->setProject($project)
- ->trigger();
-
- $response->noContent();
- });
-
// Variables
App::post('/v1/functions/:functionId/variables')
@@ -1332,7 +1334,7 @@ App::post('/v1/functions/:functionId/variables')
->label('sdk.response.code', Response::STATUS_CODE_CREATED)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_VARIABLE)
- ->param('functionId', null, new UID(), 'Function unique ID.', false)
+ ->param('functionId', '', new UID(), 'Function unique ID.', false)
->param('key', null, new Text(Database::LENGTH_KEY), 'Variable key. Max length: ' . Database::LENGTH_KEY . ' chars.', false)
->param('value', null, new Text(8192), 'Variable value. Max length: 8192 chars.', false)
->inject('response')
@@ -1384,7 +1386,7 @@ App::get('/v1/functions/:functionId/variables')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_VARIABLE_LIST)
- ->param('functionId', null, new UID(), 'Function unique ID.', false)
+ ->param('functionId', '', new UID(), 'Function unique ID.', false)
->inject('response')
->inject('dbForProject')
->action(function (string $functionId, Response $response, Database $dbForProject) {
@@ -1411,8 +1413,8 @@ App::get('/v1/functions/:functionId/variables/:variableId')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_VARIABLE)
- ->param('functionId', null, new UID(), 'Function unique ID.', false)
- ->param('variableId', null, new UID(), 'Variable unique ID.', false)
+ ->param('functionId', '', new UID(), 'Function unique ID.', false)
+ ->param('variableId', '', new UID(), 'Variable unique ID.', false)
->inject('response')
->inject('dbForProject')
->action(function (string $functionId, string $variableId, Response $response, Database $dbForProject) {
@@ -1447,8 +1449,8 @@ App::put('/v1/functions/:functionId/variables/:variableId')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_VARIABLE)
- ->param('functionId', null, new UID(), 'Function unique ID.', false)
- ->param('variableId', null, new UID(), 'Variable unique ID.', false)
+ ->param('functionId', '', new UID(), 'Function unique ID.', false)
+ ->param('variableId', '', new UID(), 'Variable unique ID.', false)
->param('key', null, new Text(255), 'Variable key. Max length: 255 chars.', false)
->param('value', null, new Text(8192), 'Variable value. Max length: 8192 chars.', true)
->inject('response')
@@ -1499,8 +1501,8 @@ App::delete('/v1/functions/:functionId/variables/:variableId')
->label('sdk.description', '/docs/references/functions/delete-variable.md')
->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT)
->label('sdk.response.model', Response::MODEL_NONE)
- ->param('functionId', null, new UID(), 'Function unique ID.', false)
- ->param('variableId', null, new UID(), 'Variable unique ID.', false)
+ ->param('functionId', '', new UID(), 'Function unique ID.', false)
+ ->param('variableId', '', new UID(), 'Variable unique ID.', false)
->inject('response')
->inject('dbForProject')
->action(function (string $functionId, string $variableId, Response $response, Database $dbForProject) {
diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php
index 5c8ba8a268..bfea863d29 100644
--- a/app/controllers/api/projects.php
+++ b/app/controllers/api/projects.php
@@ -330,7 +330,7 @@ App::get('/v1/projects/:projectId/usage')
};
$stats[$metric][] = [
'value' => 0,
- 'date' => DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff),
+ 'date' => DateTime::formatTz(DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff)),
];
$backfill--;
}
@@ -584,7 +584,7 @@ App::post('/v1/projects/:projectId/webhooks')
->label('sdk.response.code', Response::STATUS_CODE_CREATED)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_WEBHOOK)
- ->param('projectId', null, new UID(), 'Project unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
->param('name', null, new Text(128), 'Webhook name. Max length: 128 chars.')
->param('events', null, new ArrayList(new Event(), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Events list. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' events are allowed.')
->param('url', null, new URL(['http', 'https']), 'Webhook URL.')
@@ -672,8 +672,8 @@ App::get('/v1/projects/:projectId/webhooks/:webhookId')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_WEBHOOK)
- ->param('projectId', null, new UID(), 'Project unique ID.')
- ->param('webhookId', null, new UID(), 'Webhook unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
+ ->param('webhookId', '', new UID(), 'Webhook unique ID.')
->inject('response')
->inject('dbForConsole')
->action(function (string $projectId, string $webhookId, Response $response, Database $dbForConsole) {
@@ -706,8 +706,8 @@ App::put('/v1/projects/:projectId/webhooks/:webhookId')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_WEBHOOK)
- ->param('projectId', null, new UID(), 'Project unique ID.')
- ->param('webhookId', null, new UID(), 'Webhook unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
+ ->param('webhookId', '', new UID(), 'Webhook unique ID.')
->param('name', null, new Text(128), 'Webhook name. Max length: 128 chars.')
->param('events', null, new ArrayList(new Event(), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Events list. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' events are allowed.')
->param('url', null, new URL(['http', 'https']), 'Webhook URL.')
@@ -760,8 +760,8 @@ App::patch('/v1/projects/:projectId/webhooks/:webhookId/signature')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_WEBHOOK)
- ->param('projectId', null, new UID(), 'Project unique ID.')
- ->param('webhookId', null, new UID(), 'Webhook unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
+ ->param('webhookId', '', new UID(), 'Webhook unique ID.')
->inject('response')
->inject('dbForConsole')
->action(function (string $projectId, string $webhookId, Response $response, Database $dbForConsole) {
@@ -798,8 +798,8 @@ App::delete('/v1/projects/:projectId/webhooks/:webhookId')
->label('sdk.method', 'deleteWebhook')
->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT)
->label('sdk.response.model', Response::MODEL_NONE)
- ->param('projectId', null, new UID(), 'Project unique ID.')
- ->param('webhookId', null, new UID(), 'Webhook unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
+ ->param('webhookId', '', new UID(), 'Webhook unique ID.')
->inject('response')
->inject('dbForConsole')
->action(function (string $projectId, string $webhookId, Response $response, Database $dbForConsole) {
@@ -838,7 +838,7 @@ App::post('/v1/projects/:projectId/keys')
->label('sdk.response.code', Response::STATUS_CODE_CREATED)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_KEY)
- ->param('projectId', null, new UID(), 'Project unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
->param('name', null, new Text(128), 'Key name. Max length: 128 chars.')
->param('scopes', null, new ArrayList(new WhiteList(array_keys(Config::getParam('scopes')), true), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Key scopes list. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' scopes are allowed.')
->param('expire', null, new DatetimeValidator(), 'Expiration time in ISO 8601 format. Use null for unlimited expiration.', true)
@@ -888,7 +888,7 @@ App::get('/v1/projects/:projectId/keys')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_KEY_LIST)
- ->param('projectId', null, new UID(), 'Project unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
->inject('response')
->inject('dbForConsole')
->action(function (string $projectId, Response $response, Database $dbForConsole) {
@@ -920,8 +920,8 @@ App::get('/v1/projects/:projectId/keys/:keyId')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_KEY)
- ->param('projectId', null, new UID(), 'Project unique ID.')
- ->param('keyId', null, new UID(), 'Key unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
+ ->param('keyId', '', new UID(), 'Key unique ID.')
->inject('response')
->inject('dbForConsole')
->action(function (string $projectId, string $keyId, Response $response, Database $dbForConsole) {
@@ -954,8 +954,8 @@ App::put('/v1/projects/:projectId/keys/:keyId')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_KEY)
- ->param('projectId', null, new UID(), 'Project unique ID.')
- ->param('keyId', null, new UID(), 'Key unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
+ ->param('keyId', '', new UID(), 'Key unique ID.')
->param('name', null, new Text(128), 'Key name. Max length: 128 chars.')
->param('scopes', null, new ArrayList(new WhiteList(array_keys(Config::getParam('scopes')), true), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Key scopes list. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' events are allowed.')
->param('expire', null, new DatetimeValidator(), 'Expiration time in ISO 8601 format. Use null for unlimited expiration.', true)
@@ -1000,8 +1000,8 @@ App::delete('/v1/projects/:projectId/keys/:keyId')
->label('sdk.method', 'deleteKey')
->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT)
->label('sdk.response.model', Response::MODEL_NONE)
- ->param('projectId', null, new UID(), 'Project unique ID.')
- ->param('keyId', null, new UID(), 'Key unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
+ ->param('keyId', '', new UID(), 'Key unique ID.')
->inject('response')
->inject('dbForConsole')
->action(function (string $projectId, string $keyId, Response $response, Database $dbForConsole) {
@@ -1040,7 +1040,7 @@ App::post('/v1/projects/:projectId/platforms')
->label('sdk.response.code', Response::STATUS_CODE_CREATED)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_PLATFORM)
- ->param('projectId', null, new UID(), 'Project unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
->param('type', null, new WhiteList([Origin::CLIENT_TYPE_WEB, Origin::CLIENT_TYPE_FLUTTER_IOS, Origin::CLIENT_TYPE_FLUTTER_ANDROID, Origin::CLIENT_TYPE_FLUTTER_LINUX, Origin::CLIENT_TYPE_FLUTTER_MACOS, Origin::CLIENT_TYPE_FLUTTER_WINDOWS, Origin::CLIENT_TYPE_APPLE_IOS, Origin::CLIENT_TYPE_APPLE_MACOS, Origin::CLIENT_TYPE_APPLE_WATCHOS, Origin::CLIENT_TYPE_APPLE_TVOS, Origin::CLIENT_TYPE_ANDROID, Origin::CLIENT_TYPE_UNITY], true), 'Platform type.')
->param('name', null, new Text(128), 'Platform name. Max length: 128 chars.')
->param('key', '', new Text(256), 'Package name for Android or bundle ID for iOS or macOS. Max length: 256 chars.', true)
@@ -1122,8 +1122,8 @@ App::get('/v1/projects/:projectId/platforms/:platformId')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_PLATFORM)
- ->param('projectId', null, new UID(), 'Project unique ID.')
- ->param('platformId', null, new UID(), 'Platform unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
+ ->param('platformId', '', new UID(), 'Platform unique ID.')
->inject('response')
->inject('dbForConsole')
->action(function (string $projectId, string $platformId, Response $response, Database $dbForConsole) {
@@ -1156,8 +1156,8 @@ App::put('/v1/projects/:projectId/platforms/:platformId')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_PLATFORM)
- ->param('projectId', null, new UID(), 'Project unique ID.')
- ->param('platformId', null, new UID(), 'Platform unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
+ ->param('platformId', '', new UID(), 'Platform unique ID.')
->param('name', null, new Text(128), 'Platform name. Max length: 128 chars.')
->param('key', '', new Text(256), 'Package name for android or bundle ID for iOS. Max length: 256 chars.', true)
->param('store', '', new Text(256), 'App store or Google Play store ID. Max length: 256 chars.', true)
@@ -1203,8 +1203,8 @@ App::delete('/v1/projects/:projectId/platforms/:platformId')
->label('sdk.method', 'deletePlatform')
->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT)
->label('sdk.response.model', Response::MODEL_NONE)
- ->param('projectId', null, new UID(), 'Project unique ID.')
- ->param('platformId', null, new UID(), 'Platform unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
+ ->param('platformId', '', new UID(), 'Platform unique ID.')
->inject('response')
->inject('dbForConsole')
->action(function (string $projectId, string $platformId, Response $response, Database $dbForConsole) {
@@ -1243,7 +1243,7 @@ App::post('/v1/projects/:projectId/domains')
->label('sdk.response.code', Response::STATUS_CODE_CREATED)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_DOMAIN)
- ->param('projectId', null, new UID(), 'Project unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
->param('domain', null, new DomainValidator(), 'Domain name.')
->inject('response')
->inject('dbForConsole')
@@ -1340,8 +1340,8 @@ App::get('/v1/projects/:projectId/domains/:domainId')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_DOMAIN)
- ->param('projectId', null, new UID(), 'Project unique ID.')
- ->param('domainId', null, new UID(), 'Domain unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
+ ->param('domainId', '', new UID(), 'Domain unique ID.')
->inject('response')
->inject('dbForConsole')
->action(function (string $projectId, string $domainId, Response $response, Database $dbForConsole) {
@@ -1374,8 +1374,8 @@ App::patch('/v1/projects/:projectId/domains/:domainId/verification')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_DOMAIN)
- ->param('projectId', null, new UID(), 'Project unique ID.')
- ->param('domainId', null, new UID(), 'Domain unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
+ ->param('domainId', '', new UID(), 'Domain unique ID.')
->inject('response')
->inject('dbForConsole')
->action(function (string $projectId, string $domainId, Response $response, Database $dbForConsole) {
@@ -1433,8 +1433,8 @@ App::delete('/v1/projects/:projectId/domains/:domainId')
->label('sdk.method', 'deleteDomain')
->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT)
->label('sdk.response.model', Response::MODEL_NONE)
- ->param('projectId', null, new UID(), 'Project unique ID.')
- ->param('domainId', null, new UID(), 'Domain unique ID.')
+ ->param('projectId', '', new UID(), 'Project unique ID.')
+ ->param('domainId', '', new UID(), 'Domain unique ID.')
->inject('response')
->inject('dbForConsole')
->inject('deletes')
diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php
index 1134887fb6..f236285749 100644
--- a/app/controllers/api/storage.php
+++ b/app/controllers/api/storage.php
@@ -346,7 +346,7 @@ App::post('/v1/storage/buckets/:bucketId/files')
->label('sdk.response.code', Response::STATUS_CODE_CREATED)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_FILE)
- ->param('bucketId', null, new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket).')
+ ->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket).')
->param('fileId', '', new CustomId(), 'File ID. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.')
->param('file', [], new File(), 'Binary file.', false)
->param('permissions', null, new Permissions(APP_LIMIT_ARRAY_PARAMS_SIZE, [Database::PERMISSION_READ, Database::PERMISSION_UPDATE, Database::PERMISSION_DELETE, Database::PERMISSION_WRITE]), 'An array of permission strings. By default the current user is granted with all permissions. [Learn more about permissions](/docs/permissions).', true)
@@ -667,7 +667,7 @@ App::get('/v1/storage/buckets/:bucketId/files')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_FILE_LIST)
- ->param('bucketId', null, new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket).')
+ ->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket).')
->param('queries', [], new Files(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Files::ALLOWED_ATTRIBUTES), true)
->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true)
->inject('response')
@@ -744,7 +744,7 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_FILE)
- ->param('bucketId', null, new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket).')
+ ->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket).')
->param('fileId', '', new UID(), 'File ID.')
->inject('response')
->inject('dbForProject')
@@ -793,7 +793,7 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId/preview')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_IMAGE)
->label('sdk.methodType', 'location')
- ->param('bucketId', null, new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket).')
+ ->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket).')
->param('fileId', '', new UID(), 'File ID')
->param('width', 0, new Range(0, 4000), 'Resize preview image width, Pass an integer between 0 to 4000.', true)
->param('height', 0, new Range(0, 4000), 'Resize preview image height, Pass an integer between 0 to 4000.', true)
@@ -959,7 +959,7 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId/download')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', '*/*')
->label('sdk.methodType', 'location')
- ->param('bucketId', null, new UID(), 'Storage bucket ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket).')
+ ->param('bucketId', '', new UID(), 'Storage bucket ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket).')
->param('fileId', '', new UID(), 'File ID.')
->inject('request')
->inject('response')
@@ -1099,7 +1099,7 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId/view')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', '*/*')
->label('sdk.methodType', 'location')
- ->param('bucketId', null, new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket).')
+ ->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket).')
->param('fileId', '', new UID(), 'File ID.')
->inject('response')
->inject('request')
@@ -1256,7 +1256,7 @@ App::put('/v1/storage/buckets/:bucketId/files/:fileId')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_FILE)
- ->param('bucketId', null, new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket).')
+ ->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket).')
->param('fileId', '', new UID(), 'File unique ID.')
->param('permissions', null, new Permissions(APP_LIMIT_ARRAY_PARAMS_SIZE, [Database::PERMISSION_READ, Database::PERMISSION_UPDATE, Database::PERMISSION_DELETE, Database::PERMISSION_WRITE]), 'An array of permission string. By default the current permissions are inherited. [Learn more about permissions](/docs/permissions).', true)
->inject('response')
@@ -1358,7 +1358,7 @@ App::delete('/v1/storage/buckets/:bucketId/files/:fileId')
->label('sdk.description', '/docs/references/storage/delete-file.md')
->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT)
->label('sdk.response.model', Response::MODEL_NONE)
- ->param('bucketId', null, new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket).')
+ ->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](/docs/server/storage#createBucket).')
->param('fileId', '', new UID(), 'File ID.')
->inject('response')
->inject('dbForProject')
@@ -1518,7 +1518,7 @@ App::get('/v1/storage/usage')
};
$stats[$metric][] = [
'value' => 0,
- 'date' => DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff),
+ 'date' => DateTime::formatTz(DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff)),
];
$backfill--;
}
@@ -1629,7 +1629,7 @@ App::get('/v1/storage/:bucketId/usage')
};
$stats[$metric][] = [
'value' => 0,
- 'date' => DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff),
+ 'date' => DateTime::formatTz(DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff)),
];
$backfill--;
}
diff --git a/app/controllers/api/teams.php b/app/controllers/api/teams.php
index c975370223..a42b9d317e 100644
--- a/app/controllers/api/teams.php
+++ b/app/controllers/api/teams.php
@@ -553,7 +553,7 @@ App::get('/v1/teams/:teamId/memberships/:membershipId')
->label('sdk.description', '/docs/references/teams/get-team-member.md')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
- ->label('sdk.response.model', Response::MODEL_MEMBERSHIP_LIST)
+ ->label('sdk.response.model', Response::MODEL_MEMBERSHIP)
->param('teamId', '', new UID(), 'Team ID.')
->param('membershipId', '', new UID(), 'Membership ID.')
->inject('response')
@@ -865,7 +865,7 @@ App::get('/v1/teams/:teamId/logs')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_LOG_LIST)
- ->param('teamId', null, new UID(), 'Team ID.')
+ ->param('teamId', '', new UID(), 'Team ID.')
->param('queries', [], new Queries(new Limit(), new Offset()), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Only supported methods are limit and offset', true)
->inject('response')
->inject('dbForProject')
diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php
index c83f03d96e..407bc1eaab 100644
--- a/app/controllers/api/users.php
+++ b/app/controllers/api/users.php
@@ -290,10 +290,10 @@ App::post('/v1/users/scrypt')
->param('email', '', new Email(), 'User email.')
->param('password', '', new Password(), 'User password hashed using Scrypt.')
->param('passwordSalt', '', new Text(128), 'Optional salt used to hash password.')
- ->param('passwordCpu', '', new Integer(), 'Optional CPU cost used to hash password.')
- ->param('passwordMemory', '', new Integer(), 'Optional memory cost used to hash password.')
- ->param('passwordParallel', '', new Integer(), 'Optional parallelization cost used to hash password.')
- ->param('passwordLength', '', new Integer(), 'Optional hash length used to hash password.')
+ ->param('passwordCpu', 8, new Integer(), 'Optional CPU cost used to hash password.')
+ ->param('passwordMemory', 14, new Integer(), 'Optional memory cost used to hash password.')
+ ->param('passwordParallel', 1, new Integer(), 'Optional parallelization cost used to hash password.')
+ ->param('passwordLength', 64, new Integer(), 'Optional hash length used to hash password.')
->param('name', '', new Text(128), 'User name. Max length: 128 chars.', true)
->inject('response')
->inject('dbForProject')
@@ -981,7 +981,7 @@ App::delete('/v1/users/:userId/sessions/:sessionId')
->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT)
->label('sdk.response.model', Response::MODEL_NONE)
->param('userId', '', new UID(), 'User ID.')
- ->param('sessionId', null, new UID(), 'Session ID.')
+ ->param('sessionId', '', new UID(), 'Session ID.')
->inject('response')
->inject('dbForProject')
->inject('events')
@@ -1176,7 +1176,7 @@ App::get('/v1/users/usage')
};
$stats[$metric][] = [
'value' => 0,
- 'date' => DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff),
+ 'date' => DateTime::formatTz(DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff)),
];
$backfill--;
}
diff --git a/app/init.php b/app/init.php
index 3c9f785f9d..a19492394b 100644
--- a/app/init.php
+++ b/app/init.php
@@ -94,8 +94,8 @@ const APP_LIMIT_WRITE_RATE_DEFAULT = 60; // Default maximum write rate per rate
const APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT = 60; // Default maximum write rate period in seconds
const APP_KEY_ACCCESS = 24 * 60 * 60; // 24 hours
const APP_CACHE_UPDATE = 24 * 60 * 60; // 24 hours
-const APP_CACHE_BUSTER = 500;
-const APP_VERSION_STABLE = '1.0.1';
+const APP_CACHE_BUSTER = 501;
+const APP_VERSION_STABLE = '1.0.3';
const APP_DATABASE_ATTRIBUTE_EMAIL = 'email';
const APP_DATABASE_ATTRIBUTE_ENUM = 'enum';
const APP_DATABASE_ATTRIBUTE_IP = 'ip';
@@ -1028,7 +1028,7 @@ App::setResource('sms', function () {
$secret = $dsn->getPassword();
return match ($dsn->getHost()) {
- 'mock' => new Mock('', ''), // used for tests
+ 'mock' => new Mock($user, $secret), // used for tests
'twilio' => new Twilio($user, $secret),
'text-magic' => new TextMagic($user, $secret),
'telesign' => new Telesign($user, $secret),
diff --git a/app/views/console/comps/permissions-matrix.phtml b/app/views/console/comps/permissions-matrix.phtml
index 836b0843ad..e912f26629 100644
--- a/app/views/console/comps/permissions-matrix.phtml
+++ b/app/views/console/comps/permissions-matrix.phtml
@@ -81,6 +81,8 @@ $escapedPermissions = \array_map(function ($perm) {
list="types"
type="text"
x-model="permission.role"
+ @keydown.enter="prevent($event)"
+ @keydown="clearPermission(index)"
@keyup="updatePermission(index)"/>
diff --git a/app/views/console/functions/function.phtml b/app/views/console/functions/function.phtml
index 80806fed56..c98e092a0e 100644
--- a/app/views/console/functions/function.phtml
+++ b/app/views/console/functions/function.phtml
@@ -391,9 +391,9 @@ sort($patterns);
Created
-
Status
-
Trigger
-
Runtime
+
Status
+
Trigger
+
Runtime
@@ -422,11 +422,11 @@ sort($patterns);
-
+
-
+
@@ -841,6 +841,8 @@ sort($patterns);
data-failure-param-alert-text="Failed to execute function"
data-failure-param-alert-classname="error">
+
+
diff --git a/app/workers/builds.php b/app/workers/builds.php
index 3d78aeb654..bf780c6464 100644
--- a/app/workers/builds.php
+++ b/app/workers/builds.php
@@ -109,6 +109,7 @@ class BuildsV1 extends Worker
/** Trigger Webhook */
$deploymentModel = new Deployment();
+
$deploymentUpdate = new Event(Event::WEBHOOK_QUEUE_NAME, Event::WEBHOOK_CLASS_NAME);
$deploymentUpdate
->setProject($project)
diff --git a/app/workers/certificates.php b/app/workers/certificates.php
index f932ba4bc3..e7885bc669 100644
--- a/app/workers/certificates.php
+++ b/app/workers/certificates.php
@@ -1,6 +1,7 @@
'console',
- 'project' => 'console',
- 'name' => 'Appwrite Administrator',
- 'recipient' => App::getEnv('_APP_SYSTEM_SECURITY_EMAIL_ADDRESS'),
- 'url' => 'https://' . $domain,
- 'locale' => App::getEnv('_APP_LOCALE', 'en'),
- 'type' => MAIL_TYPE_CERTIFICATE,
-
- 'domain' => $domain,
- 'error' => $errorMessage,
- 'attempt' => $attempt
- ]);
+ $mail = new Mail();
+ $mail
+ ->setType(MAIL_TYPE_CERTIFICATE)
+ ->setRecipient(App::getEnv('_APP_SYSTEM_SECURITY_EMAIL_ADDRESS'))
+ ->setUrl('https://' . $domain)
+ ->setLocale(App::getEnv('_APP_LOCALE', 'en'))
+ ->setName('Appwrite Administrator')
+ ->setPayload([
+ 'domain' => $domain,
+ 'error' => $errorMessage,
+ 'attempt' => $attempt
+ ])
+ ->trigger();
}
/**
diff --git a/app/workers/deletes.php b/app/workers/deletes.php
index 2ec8199404..b015043b1d 100644
--- a/app/workers/deletes.php
+++ b/app/workers/deletes.php
@@ -193,21 +193,24 @@ class DeletesV1 extends Worker
protected function deleteCollection(Document $document, string $projectId): void
{
$collectionId = $document->getId();
- $databaseId = str_replace('database_', '', $document->getCollection());
+ $databaseId = $document->getAttribute('databaseId');
+ $databaseInternalId = $document->getAttribute('databaseInternalId');
$dbForProject = $this->getProjectDB($projectId);
- $dbForProject->deleteCollection('database_' . $databaseId . '_collection_' . $document->getInternalId());
+ $dbForProject->deleteCollection('database_' . $databaseInternalId . '_collection_' . $document->getInternalId());
$this->deleteByGroup('attributes', [
+ Query::equal('databaseId', [$databaseId]),
Query::equal('collectionId', [$collectionId])
], $dbForProject);
$this->deleteByGroup('indexes', [
+ Query::equal('databaseId', [$databaseId]),
Query::equal('collectionId', [$collectionId])
], $dbForProject);
- $this->deleteAuditLogsByResource('collection/' . $collectionId, $projectId);
+ $this->deleteAuditLogsByResource('database/' . $databaseId . '/collection/' . $collectionId, $projectId);
}
/**
@@ -410,6 +413,14 @@ class DeletesV1 extends Worker
$dbForProject = $this->getProjectDB($projectId);
$functionId = $document->getId();
+ /**
+ * Delete Variables
+ */
+ Console::info("Deleting variables for function " . $functionId);
+ $this->deleteByGroup('variables', [
+ Query::equal('functionId', [$functionId])
+ ], $dbForProject);
+
/**
* Delete Deployments
*/
diff --git a/app/workers/functions.php b/app/workers/functions.php
index 31b74a11ca..1df776383f 100644
--- a/app/workers/functions.php
+++ b/app/workers/functions.php
@@ -271,17 +271,17 @@ class FunctionsV1 extends Worker
/** Collect environment variables */
$vars = \array_merge($vars, [
'APPWRITE_FUNCTION_ID' => $functionId,
- 'APPWRITE_FUNCTION_NAME' => $function->getAttribute('name', ''),
+ 'APPWRITE_FUNCTION_NAME' => $function->getAttribute('name'),
'APPWRITE_FUNCTION_DEPLOYMENT' => $deploymentId,
- 'APPWRITE_FUNCTION_RUNTIME_NAME' => $runtime['name'],
- 'APPWRITE_FUNCTION_RUNTIME_VERSION' => $runtime['version'],
'APPWRITE_FUNCTION_TRIGGER' => $trigger,
- 'APPWRITE_FUNCTION_EVENT' => $event,
- 'APPWRITE_FUNCTION_EVENT_DATA' => $eventData,
- 'APPWRITE_FUNCTION_DATA' => $data,
'APPWRITE_FUNCTION_PROJECT_ID' => $project->getId(),
- 'APPWRITE_FUNCTION_USER_ID' => $user->getId(),
- 'APPWRITE_FUNCTION_JWT' => $jwt,
+ 'APPWRITE_FUNCTION_RUNTIME_NAME' => $runtime['name'] ?? '',
+ 'APPWRITE_FUNCTION_RUNTIME_VERSION' => $runtime['version'] ?? '',
+ 'APPWRITE_FUNCTION_EVENT' => $event ?? '',
+ 'APPWRITE_FUNCTION_EVENT_DATA' => $eventData ?? '',
+ 'APPWRITE_FUNCTION_DATA' => $data ?? '',
+ 'APPWRITE_FUNCTION_USER_ID' => $user->getId() ?? '',
+ 'APPWRITE_FUNCTION_JWT' => $jwt ?? '',
]);
/** Execute function */
diff --git a/app/workers/mails.php b/app/workers/mails.php
index 9b81353f05..90e9e9a660 100644
--- a/app/workers/mails.php
+++ b/app/workers/mails.php
@@ -32,9 +32,10 @@ class MailsV1 extends Worker
return;
}
- $project = new Document($this->args['project']);
+ $project = new Document($this->args['project'] ?? []);
$user = new Document($this->args['user'] ?? []);
$team = new Document($this->args['team'] ?? []);
+ $payload = $this->args['payload'] ?? [];
$recipient = $this->args['recipient'];
$url = $this->args['url'];
@@ -42,20 +43,20 @@ class MailsV1 extends Worker
$type = $this->args['type'];
$prefix = $this->getPrefix($type);
$locale = new Locale($this->args['locale']);
- $projectName = $project->getAttribute('name', '[APP-NAME]');
+ $projectName = $project->isEmpty() ? 'Console' : $project->getAttribute('name', '[APP-NAME]');
if (!$this->doesLocaleExist($locale, $prefix)) {
$locale->setDefault('en');
}
- $from = $project->getId() === 'console' ? '' : \sprintf($locale->getText('emails.sender'), $projectName);
+ $from = $project->isEmpty() || $project->getId() === 'console' ? '' : \sprintf($locale->getText('emails.sender'), $projectName);
$body = Template::fromFile(__DIR__ . '/../config/locale/templates/email-base.tpl');
$subject = '';
switch ($type) {
case MAIL_TYPE_CERTIFICATE:
- $domain = $this->args['domain'];
- $error = $this->args['error'];
- $attempt = $this->args['attempt'];
+ $domain = $payload['domain'];
+ $error = $payload['error'];
+ $attempt = $payload['attempt'];
$subject = \sprintf($locale->getText("$prefix.subject"), $domain);
$body->setParam('{{domain}}', $domain);
diff --git a/app/workers/messaging.php b/app/workers/messaging.php
index 1fc5deaf44..8d13919f2e 100644
--- a/app/workers/messaging.php
+++ b/app/workers/messaging.php
@@ -1,6 +1,5 @@
getPassword();
$this->sms = match ($dsn->getHost()) {
- 'mock' => new Mock('', ''), // used for tests
+ 'mock' => new Mock($user, $secret), // used for tests
'twilio' => new Twilio($user, $secret),
'text-magic' => new TextMagic($user, $secret),
'telesign' => new Telesign($user, $secret),
diff --git a/composer.json b/composer.json
index 2bebd992b2..3dc7fae747 100644
--- a/composer.json
+++ b/composer.json
@@ -82,7 +82,7 @@
}
],
"require-dev": {
- "appwrite/sdk-generator": "0.26.0",
+ "appwrite/sdk-generator": "0.28.*",
"ext-fileinfo": "*",
"phpunit/phpunit": "9.5.20",
"squizlabs/php_codesniffer": "^3.6",
diff --git a/composer.lock b/composer.lock
index 43043a2d5b..cd38d1180f 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "78f080ed8fc791fd632e9a02db593bc4",
+ "content-hash": "b55f1a94691129653bc6ff0ac5f66e13",
"packages": [
{
"name": "adhocore/jwt",
@@ -2060,16 +2060,16 @@
},
{
"name": "utopia-php/database",
- "version": "0.25.4",
+ "version": "0.25.5",
"source": {
"type": "git",
"url": "https://github.com/utopia-php/database.git",
- "reference": "2883de82eee99e5744bf6e4123095a530c48a194"
+ "reference": "6d1c1d46d66553154975a3e8e72d30b5bd2413d9"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/utopia-php/database/zipball/2883de82eee99e5744bf6e4123095a530c48a194",
- "reference": "2883de82eee99e5744bf6e4123095a530c48a194",
+ "url": "https://api.github.com/repos/utopia-php/database/zipball/6d1c1d46d66553154975a3e8e72d30b5bd2413d9",
+ "reference": "6d1c1d46d66553154975a3e8e72d30b5bd2413d9",
"shasum": ""
},
"require": {
@@ -2118,9 +2118,9 @@
],
"support": {
"issues": "https://github.com/utopia-php/database/issues",
- "source": "https://github.com/utopia-php/database/tree/0.25.4"
+ "source": "https://github.com/utopia-php/database/tree/0.25.5"
},
- "time": "2022-09-14T06:22:33+00:00"
+ "time": "2022-09-30T15:01:32+00:00"
},
{
"name": "utopia-php/domains",
@@ -2900,16 +2900,16 @@
"packages-dev": [
{
"name": "appwrite/sdk-generator",
- "version": "0.26.0",
+ "version": "0.28.1",
"source": {
"type": "git",
"url": "https://github.com/appwrite/sdk-generator.git",
- "reference": "b356ccc0f0188422741fb79f2a52da087809ca26"
+ "reference": "ed8d3daa66589733b49b11c053d524cdf576ffee"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/b356ccc0f0188422741fb79f2a52da087809ca26",
- "reference": "b356ccc0f0188422741fb79f2a52da087809ca26",
+ "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/ed8d3daa66589733b49b11c053d524cdf576ffee",
+ "reference": "ed8d3daa66589733b49b11c053d524cdf576ffee",
"shasum": ""
},
"require": {
@@ -2944,9 +2944,9 @@
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
"support": {
"issues": "https://github.com/appwrite/sdk-generator/issues",
- "source": "https://github.com/appwrite/sdk-generator/tree/0.26.0"
+ "source": "https://github.com/appwrite/sdk-generator/tree/0.28.1"
},
- "time": "2022-09-13T18:39:36+00:00"
+ "time": "2022-09-22T09:15:54+00:00"
},
{
"name": "doctrine/instantiator",
@@ -5343,16 +5343,16 @@
},
{
"name": "twig/twig",
- "version": "v3.4.2",
+ "version": "v3.4.3",
"source": {
"type": "git",
"url": "https://github.com/twigphp/Twig.git",
- "reference": "e07cdd3d430cd7e453c31b36eb5ad6c0c5e43077"
+ "reference": "c38fd6b0b7f370c198db91ffd02e23b517426b58"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/twigphp/Twig/zipball/e07cdd3d430cd7e453c31b36eb5ad6c0c5e43077",
- "reference": "e07cdd3d430cd7e453c31b36eb5ad6c0c5e43077",
+ "url": "https://api.github.com/repos/twigphp/Twig/zipball/c38fd6b0b7f370c198db91ffd02e23b517426b58",
+ "reference": "c38fd6b0b7f370c198db91ffd02e23b517426b58",
"shasum": ""
},
"require": {
@@ -5403,7 +5403,7 @@
],
"support": {
"issues": "https://github.com/twigphp/Twig/issues",
- "source": "https://github.com/twigphp/Twig/tree/v3.4.2"
+ "source": "https://github.com/twigphp/Twig/tree/v3.4.3"
},
"funding": [
{
@@ -5415,7 +5415,7 @@
"type": "tidelift"
}
],
- "time": "2022-08-12T06:47:24+00:00"
+ "time": "2022-09-28T08:42:51+00:00"
}
],
"aliases": [],
diff --git a/docker-compose.yml b/docker-compose.yml
index 9dd5b8721f..e69c142823 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -70,12 +70,13 @@ services:
appwrite:
container_name: appwrite
<<: *x-logging
+ image: appwrite-dev
build:
context: .
args:
- - DEBUG=false
- - TESTING=true
- - VERSION=dev
+ DEBUG: false
+ TESTING: true
+ VERSION: dev
ports:
- 9501:80
networks:
@@ -181,8 +182,7 @@ services:
entrypoint: realtime
<<: *x-logging
container_name: appwrite-realtime
- build:
- context: .
+ image: appwrite-dev
restart: unless-stopped
ports:
- 9505:80
@@ -229,8 +229,7 @@ services:
entrypoint: worker-audits
<<: *x-logging
container_name: appwrite-worker-audits
- build:
- context: .
+ image: appwrite-dev
networks:
- appwrite
volumes:
@@ -258,8 +257,7 @@ services:
entrypoint: worker-webhooks
<<: *x-logging
container_name: appwrite-worker-webhooks
- build:
- context: .
+ image: appwrite-dev
networks:
- appwrite
volumes:
@@ -284,8 +282,7 @@ services:
entrypoint: worker-deletes
<<: *x-logging
container_name: appwrite-worker-deletes
- build:
- context: .
+ image: appwrite-dev
networks:
- appwrite
depends_on:
@@ -321,8 +318,7 @@ services:
entrypoint: worker-databases
<<: *x-logging
container_name: appwrite-worker-databases
- build:
- context: .
+ image: appwrite-dev
networks:
- appwrite
volumes:
@@ -351,8 +347,7 @@ services:
entrypoint: worker-builds
<<: *x-logging
container_name: appwrite-worker-builds
- build:
- context: .
+ image: appwrite-dev
networks:
- appwrite
volumes:
@@ -382,8 +377,7 @@ services:
entrypoint: worker-certificates
<<: *x-logging
container_name: appwrite-worker-certificates
- build:
- context: .
+ image: appwrite-dev
networks:
- appwrite
depends_on:
@@ -416,8 +410,7 @@ services:
entrypoint: worker-functions
<<: *x-logging
container_name: appwrite-worker-functions
- build:
- context: .
+ image: appwrite-dev
networks:
- appwrite
volumes:
@@ -451,12 +444,7 @@ services:
<<: *x-logging
entrypoint: executor
stop_signal: SIGINT
- build:
- context: .
- args:
- - DEBUG=false
- - TESTING=true
- - VERSION=dev
+ image: appwrite-dev
networks:
appwrite:
runtimes:
@@ -496,8 +484,7 @@ services:
entrypoint: worker-mails
<<: *x-logging
container_name: appwrite-worker-mails
- build:
- context: .
+ image: appwrite-dev
networks:
- appwrite
volumes:
@@ -528,8 +515,7 @@ services:
entrypoint: worker-messaging
<<: *x-logging
container_name: appwrite-worker-messaging
- build:
- context: .
+ image: appwrite-dev
networks:
- appwrite
volumes:
@@ -552,8 +538,7 @@ services:
entrypoint: maintenance
<<: *x-logging
container_name: appwrite-maintenance
- build:
- context: .
+ image: appwrite-dev
networks:
- appwrite
volumes:
@@ -588,10 +573,7 @@ services:
- --type=timeseries
<<: *x-logging
container_name: appwrite-usage-timeseries
- build:
- context: .
- args:
- - DEBUG=false
+ image: appwrite-dev
networks:
- appwrite
volumes:
@@ -626,10 +608,7 @@ services:
- --type=database
<<: *x-logging
container_name: appwrite-usage-database
- build:
- context: .
- args:
- - DEBUG=false
+ image: appwrite-dev
networks:
- appwrite
volumes:
@@ -662,8 +641,7 @@ services:
entrypoint: schedule
<<: *x-logging
container_name: appwrite-schedule
- build:
- context: .
+ image: appwrite-dev
networks:
- appwrite
volumes:
@@ -760,7 +738,7 @@ services:
# MailCatcher - An SMTP server. Catches all system emails and displays them in a nice UI.
# RequestCatcher - An HTTP server. Catches all system https calls and displays them using a simple HTTP API. Used to debug & tests webhooks and HTTP tasks
# RedisCommander - A nice UI for exploring Redis data
- # Resque - A nice UI for exploring Reddis pub/sub, view the different queues workloads, pending and failed tasks
+ # Resque - A nice UI for exploring Redis pub/sub, view the different queues workloads, pending and failed tasks
# Chronograf - A nice UI for exploring InfluxDB data
# Webgrind - A nice UI for exploring and debugging code-level stuff
diff --git a/docs/sdks/dart/CHANGELOG.md b/docs/sdks/dart/CHANGELOG.md
index 39f44c1d91..a17fb5bba6 100644
--- a/docs/sdks/dart/CHANGELOG.md
+++ b/docs/sdks/dart/CHANGELOG.md
@@ -1,6 +1,11 @@
-## 7.0.0-dev.2
+## 7.1.0
+
+* Role helper update
+
+## 7.0.0
+
### NEW
-* Support for Appwrite 1.0.0-RC1
+* Support for Appwrite 1.0.0
* More verbose headers have been included in the Clients - `x-sdk-name`, `x-sdk-platform`, `x-sdk-language`, `x-sdk-version`
* Helper classes and methods for Permissions, Roles and IDs
* Helper methods to suport new queries
@@ -26,7 +31,7 @@
3. `greater` renamed to `greaterThan`
4. `greaterEqual` renamed to `greaterThanEqual`
-**Full Changelog for Appwrite 1.0.0-RC1 can be found here**: https://github.com/appwrite/appwrite/blob/master/CHANGES.md
+**Full Changelog for Appwrite 1.0.0 can be found here**: https://github.com/appwrite/appwrite/blob/master/CHANGES.md
## 6.0.1
* Dependency upgrades
diff --git a/docs/sdks/flutter/CHANGELOG.md b/docs/sdks/flutter/CHANGELOG.md
index 3424e8d19f..0338da8331 100644
--- a/docs/sdks/flutter/CHANGELOG.md
+++ b/docs/sdks/flutter/CHANGELOG.md
@@ -1,7 +1,11 @@
-## 8.0.0-dev.2 Latest
+## 8.1.0
+
+* Role helper update
+
+## 8.0.0
### NEW
-* Support for Appwrite 1.0.0-RC1
+* Support for Appwrite 1.0.0
* More verbose headers have been included in the Clients - `x-sdk-name`, `x-sdk-platform`, `x-sdk-language`, `x-sdk-version`
* Helper classes and methods for Permissions, Roles and IDs
* Helper methods to suport new queries
@@ -21,7 +25,7 @@
4. `greaterEqual` renamed to `greaterThanEqual`
* `User` response model is now renamed to `Account`
-**Full Changelog for Appwrite 1.0.0-RC1 can be found here**:
+**Full Changelog for Appwrite 1.0.0 can be found here**:
https://github.com/appwrite/appwrite/blob/master/CHANGES.md
## 7.0.0
diff --git a/docs/sdks/flutter/GETTING_STARTED.md b/docs/sdks/flutter/GETTING_STARTED.md
index 78a334e9f7..cd06c8c169 100644
--- a/docs/sdks/flutter/GETTING_STARTED.md
+++ b/docs/sdks/flutter/GETTING_STARTED.md
@@ -58,7 +58,7 @@ For web in order to capture the OAuth2 callback URL and send it to the applicati
close the window.
diff --git a/docs/tutorials/add-translations.md b/docs/tutorials/add-translations.md
index a1d34cba2c..26fe65c948 100644
--- a/docs/tutorials/add-translations.md
+++ b/docs/tutorials/add-translations.md
@@ -62,7 +62,7 @@ We maintain a [`locale branch`](https://github.com/appwrite/appwrite/tree/locale
2. **en.json**
- [en.json]((https://github.com/appwrite/appwrite/blob/locale/app/config/locale/translations/en.json)) contains the English translation for all the terms that are present in **terms.json**. You can use this file as a reference when making a contribution for your language.
+ [en.json](https://github.com/appwrite/appwrite/blob/locale/app/config/locale/translations/en.json) contains the English translation for all the terms that are present in **terms.json**. You can use this file as a reference when making a contribution for your language.
```json
{
diff --git a/phpunit.xml b/phpunit.xml
index 4074fe0f1c..4012c8c276 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -6,7 +6,7 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
- stopOnFailure="true"
+ stopOnFailure="false"
>
diff --git a/public/dist/scripts/app-all.js b/public/dist/scripts/app-all.js
index 11b2bcdfdf..4ebaa92ba3 100644
--- a/public/dist/scripts/app-all.js
+++ b/public/dist/scripts/app-all.js
@@ -4013,7 +4013,7 @@ this.rawPermissions=permissions;permissions.map(p=>{let{type,role}=this.parsePer
if(existing===undefined){let newPermission={role,create:false,read:false,update:false,xdelete:false,};newPermission[type]=true;this.permissions.push(newPermission);}
if(index!==-1){existing[type]=true;this.permissions[index]=existing;}});},addPermission(formId){if(this.permissions.length>0&&!this.validate(formId,this.permissions.length-1)){return;}
this.permissions.push({role:'',create:false,read:false,update:false,xdelete:false,});},updatePermission(index){setTimeout(()=>{const permission=this.permissions[index];Object.keys(permission).forEach(key=>{if(key==='role'){return;}
-const parsedKey=this.parseOutputPermission(key);const permissionString=this.buildPermission(parsedKey,permission.role);if(permission[key]){if(!this.rawPermissions.includes(permissionString)){this.rawPermissions.push(permissionString);}}else{this.rawPermissions=this.rawPermissions.filter(p=>{return!p.includes(permissionString);});}});});},removePermission(index){let row=this.permissions.splice(index,1);if(row.length===1){this.rawPermissions=this.rawPermissions.filter(p=>!p.includes(row[0].role));}},parsePermission(permission){let parts=permission.split('(');let type=parts[0];let role=parts[1].replace(')','').replace(' ','').replaceAll('"','');return{type,role};},buildPermission(type,role){return`${type}("${role}")`},parseInputPermission(key){if(key==='delete'){return'xdelete';}
+const parsedKey=this.parseOutputPermission(key);const permissionString=this.buildPermission(parsedKey,permission.role);if(permission[key]){if(!this.rawPermissions.includes(permissionString)){this.rawPermissions.push(permissionString);}}else{this.rawPermissions=this.rawPermissions.filter(p=>{return!p.includes(permissionString);});}});});},clearPermission(index){let currentRole=this.permissions[index].role;this.rawPermissions=this.rawPermissions.filter(p=>{let{type,role}=this.parsePermission(p);return role!==currentRole;});},removePermission(index){let row=this.permissions.splice(index,1);if(row.length===1){this.rawPermissions=this.rawPermissions.filter(p=>!p.includes(row[0].role));}},parsePermission(permission){let parts=permission.split('(');let type=parts[0];let role=parts[1].replace(')','').replace(' ','').replaceAll('"','');return{type,role};},buildPermission(type,role){return`${type}("${role}")`},parseInputPermission(key){if(key==='delete'){return'xdelete';}
return key;},parseOutputPermission(key){if(key==='xdelete'){return'delete';}
return key;},validate(formId,index){const form=document.getElementById(formId);const input=document.getElementById(`${formId}Input${index}`);const permission=this.permissions[index];input.setCustomValidity('');if(permission.role===''){input.setCustomValidity('Role is required');}else if(!Object.entries(permission).some(([k,v])=>!k.includes('role')&&v)){input.setCustomValidity('No permissions selected');}else if(this.permissions.some(p=>p.role===permission.role&&p!==permission)){input.setCustomValidity('Role entry already exists');}
return form.reportValidity();},prevent(event){event.preventDefault();event.stopPropagation();}}));});})(window);(function(window){"use strict";window.ls.view.add({selector:"data-service",controller:function(element,view,container,form,alerts,expression,window){let action=element.dataset["service"];let service=element.dataset["name"]||null;let event=expression.parse(element.dataset["event"]);let confirm=element.dataset["confirm"]||"";let loading=element.dataset["loading"]||"";let loaderId=null;let scope=element.dataset["scope"]||"sdk";let success=element.dataset["success"]||"";let failure=element.dataset["failure"]||"";let running=false;let callbacks={hide:function(){return function(){return element.style.opacity='0';};},reset:function(){return function(){if("FORM"===element.tagName){return element.reset();}
diff --git a/public/dist/scripts/app.js b/public/dist/scripts/app.js
index 40edce16e7..bbdda3c914 100644
--- a/public/dist/scripts/app.js
+++ b/public/dist/scripts/app.js
@@ -607,7 +607,7 @@ this.rawPermissions=permissions;permissions.map(p=>{let{type,role}=this.parsePer
if(existing===undefined){let newPermission={role,create:false,read:false,update:false,xdelete:false,};newPermission[type]=true;this.permissions.push(newPermission);}
if(index!==-1){existing[type]=true;this.permissions[index]=existing;}});},addPermission(formId){if(this.permissions.length>0&&!this.validate(formId,this.permissions.length-1)){return;}
this.permissions.push({role:'',create:false,read:false,update:false,xdelete:false,});},updatePermission(index){setTimeout(()=>{const permission=this.permissions[index];Object.keys(permission).forEach(key=>{if(key==='role'){return;}
-const parsedKey=this.parseOutputPermission(key);const permissionString=this.buildPermission(parsedKey,permission.role);if(permission[key]){if(!this.rawPermissions.includes(permissionString)){this.rawPermissions.push(permissionString);}}else{this.rawPermissions=this.rawPermissions.filter(p=>{return!p.includes(permissionString);});}});});},removePermission(index){let row=this.permissions.splice(index,1);if(row.length===1){this.rawPermissions=this.rawPermissions.filter(p=>!p.includes(row[0].role));}},parsePermission(permission){let parts=permission.split('(');let type=parts[0];let role=parts[1].replace(')','').replace(' ','').replaceAll('"','');return{type,role};},buildPermission(type,role){return`${type}("${role}")`},parseInputPermission(key){if(key==='delete'){return'xdelete';}
+const parsedKey=this.parseOutputPermission(key);const permissionString=this.buildPermission(parsedKey,permission.role);if(permission[key]){if(!this.rawPermissions.includes(permissionString)){this.rawPermissions.push(permissionString);}}else{this.rawPermissions=this.rawPermissions.filter(p=>{return!p.includes(permissionString);});}});});},clearPermission(index){let currentRole=this.permissions[index].role;this.rawPermissions=this.rawPermissions.filter(p=>{let{type,role}=this.parsePermission(p);return role!==currentRole;});},removePermission(index){let row=this.permissions.splice(index,1);if(row.length===1){this.rawPermissions=this.rawPermissions.filter(p=>!p.includes(row[0].role));}},parsePermission(permission){let parts=permission.split('(');let type=parts[0];let role=parts[1].replace(')','').replace(' ','').replaceAll('"','');return{type,role};},buildPermission(type,role){return`${type}("${role}")`},parseInputPermission(key){if(key==='delete'){return'xdelete';}
return key;},parseOutputPermission(key){if(key==='xdelete'){return'delete';}
return key;},validate(formId,index){const form=document.getElementById(formId);const input=document.getElementById(`${formId}Input${index}`);const permission=this.permissions[index];input.setCustomValidity('');if(permission.role===''){input.setCustomValidity('Role is required');}else if(!Object.entries(permission).some(([k,v])=>!k.includes('role')&&v)){input.setCustomValidity('No permissions selected');}else if(this.permissions.some(p=>p.role===permission.role&&p!==permission)){input.setCustomValidity('Role entry already exists');}
return form.reportValidity();},prevent(event){event.preventDefault();event.stopPropagation();}}));});})(window);(function(window){"use strict";window.ls.view.add({selector:"data-service",controller:function(element,view,container,form,alerts,expression,window){let action=element.dataset["service"];let service=element.dataset["name"]||null;let event=expression.parse(element.dataset["event"]);let confirm=element.dataset["confirm"]||"";let loading=element.dataset["loading"]||"";let loaderId=null;let scope=element.dataset["scope"]||"sdk";let success=element.dataset["success"]||"";let failure=element.dataset["failure"]||"";let running=false;let callbacks={hide:function(){return function(){return element.style.opacity='0';};},reset:function(){return function(){if("FORM"===element.tagName){return element.reset();}
diff --git a/public/dist/styles/default-ltr.css b/public/dist/styles/default-ltr.css
index 0ce3ada467..584d640748 100644
--- a/public/dist/styles/default-ltr.css
+++ b/public/dist/styles/default-ltr.css
@@ -1 +1 @@
-.pull-start{float:left}.pull-end{float:right}img[src=""]{visibility:hidden;display:inline-block}:root{--config-width:910px;--config-width-xxl:1000px;--config-width-xl:910px;--config-width-large:700px;--config-width-medium:550px;--config-width-small:320px;--config-color-primary:#f02e65;--config-color-link:#1e849e;--config-color-background:#eceff1;--config-color-background-dark:#dfe2e4;--config-color-background-fade:#ffffff;--config-color-background-fade-super:#fdfdfd;--config-color-background-focus:#f5f5f5;--config-color-background-input:#ffffff;--config-color-placeholder:#868686;--config-color-tooltip-text:#dce8f5;--config-color-tooltip-background:#333333;--config-color-focus:#f02e65;--config-color-focus-fade:#fef8fa;--config-color-focus-hover:#ff729b;--config-color-focus-glow:#fce5ec;--config-color-focus-dark:#c52653;--config-color-normal:#40404c;--config-color-dark:#313131;--config-color-fade:#8f8f8f;--config-color-fade-dark:#6e6e6e;--config-color-fade-light:#e2e2e2;--config-color-fade-super:#f1f3f5;--config-color-danger:#f53d3d;--config-color-success:#1bbf61;--config-color-warning:#fffbdd;--config-color-info:#386fd2;--config-color-chart:#29b5d9;--config-color-chart-fade:#d4f0f7;--config-border-color:#f3f3f3;--config-border-fade:#e0e3e4;--config-border-fade-super:#f7f7f7;--config-border-radius:10px;--config-prism-background:#373738;--config-prism-numbers:#39393c;--config-note-background:#f1fbff;--config-note-border:#5bceff;--config-warning-background:#fdf7d9;--config-warning-border:#f8e380;--config-social-twitter:#1da1f2;--config-social-github:#000000;--config-social-discord:#7189dc;--config-social-facebook:#4070b4;--config-language-bash:#2b2626;--config-language-bash-contrast:#fff;--config-language-javascript:#fff054;--config-language-javascript-contrast:#333232;--config-language-web:#fff054;--config-language-web-contrast:#333232;--config-language-html:#ff895b;--config-language-html-contrast:#ffffff;--config-language-yaml:#ca3333;--config-language-yaml-contrast:#ffffff;--config-language-php:#6182bb;--config-language-php-contrast:#ffffff;--config-language-nodejs:#8cc500;--config-language-nodejs-contrast:#ffffff;--config-language-ruby:#fc3f48;--config-language-ruby-contrast:#ffffff;--config-language-python:#3873a2;--config-language-python-contrast:#ffffff;--config-language-go:#00add8;--config-language-go-contrast:#ffffff;--config-language-dart:#035698;--config-language-dart-contrast:#ffffff;--config-language-flutter:#035698;--config-language-flutter-contrast:#ffffff;--config-language-android:#a4c439;--config-language-android-contrast:#ffffff;--config-language-kotlin:#766DB2;--config-language-kotlin-contrast:#ffffff;--config-language-swift:#f2624c;--config-language-swift-contrast:#ffffff;--config-language-java:#0074bd;--config-language-java-contrast:#ffffff;--config-modal-note-background:#f5fbff;--config-modal-note-border:#eaf2f7;--config-modal-note-color:#3b5d73;--config-switch-background:#e2e2e2;--config-console-background:#eceff1;--config-console-nav-start:#143650;--config-console-nav-end:#302839;--config-console-nav-border:#2a253a;--config-console-nav-switch-background:#ececec;--config-console-nav-switch-color:#868686;--config-console-nav-switch-arrow:url("data:image/svg+xml;utf8,");--config-defalut-color-hsl:0 0% 62%;--config-disabled-color-hsl:0 0% 62%;--config-pending-color-hsl:36 100% 47%;--config-failed-color-hsl:0 74% 42%}:root .theme-dark{--config-color-primary:#f02e65;--config-color-background:#061F2F;--config-color-background-dark:#262d50;--config-color-background-fade:#1c223a;--config-color-background-fade-super:#1a1f35;--config-color-background-focus:#1a1f35;--config-color-background-input:#dce8f5;--config-color-tooltip-text:#061F2F;--config-color-tooltip-background:#dce8f5;--config-color-link:#4caedb;--config-color-placeholder:#9ea1af;--config-color-focus:#c7d8eb;--config-color-focus-fade:#1e233e;--config-color-focus-hover:#d3deea;--config-color-focus-glow:#d3deea;--config-color-focus-dark:#657586;--config-color-normal:#c7d8eb;--config-color-dark:#c7d8eb;--config-color-fade:#bec3e0;--config-color-fade-dark:#81859b;--config-color-fade-light:#181818;--config-color-fade-super:#262D50;--config-color-danger:#d84a4a;--config-color-success:#34b86d;--config-color-warning:#e0d56d;--config-color-info:#386fd2;--config-color-chart:#29b5d9;--config-color-chart-fade:#c7d8eb;--config-border-color:#262D50;--config-border-fade:#19203a;--config-border-fade-super:#262D50;--config-prism-background:#1F253F;--config-prism-numbers:#1F253F;--config-note-background:#171e33;--config-note-border:#262D50;--config-warning-background:#1F253F;--config-warning-border:#262D50;--config-social-twitter:var(--config-color-normal);--config-social-github:var(--config-color-normal);--config-social-discord:var(--config-color-normal);--config-social-facebook:var(--config-color-normal);--config-language-bash:var(--config-color-normal);--config-language-bash-contrast:var(--config-color-background);--config-language-javascript:var(--config-color-normal);--config-language-javascript-contrast:var(--config-color-background);--config-language-web:var(--config-color-normal);--config-language-web-contrast:var(--config-color-background);--config-language-yaml:var(--config-color-normal);--config-language-yaml-contrast:var(--config-color-background);--config-language-html:var(--config-color-normal);--config-language-html-contrast:var(--config-color-background);--config-language-php:var(--config-color-normal);--config-language-php-contrast:var(--config-color-background);--config-language-nodejs:var(--config-color-normal);--config-language-nodejs-contrast:var(--config-color-background);--config-language-ruby:var(--config-color-normal);--config-language-ruby-contrast:var(--config-color-background);--config-language-python:var(--config-color-normal);--config-language-python-contrast:var(--config-color-background);--config-language-go:var(--config-color-normal);--config-language-go-contrast:var(--config-color-background);--config-language-dart:var(--config-color-normal);--config-language-dart-contrast:var(--config-color-background);--config-language-flutter:var(--config-color-normal);--config-language-flutter-contrast:var(--config-color-background);--config-language-android:var(--config-color-normal);--config-language-android-contrast:var(--config-color-background);--config-language-kotlin:var(--config-color-normal);--config-language-kotlin-contrast:var(--config-color-background);--config-language-swift:var(--config-color-normal);--config-language-swift-contrast:var(--config-color-background);--config-language-java:var(--config-color-normal);--config-language-java-contrast:var(--config-color-background);--config-modal-note-background:#15192b;--config-modal-note-border:#161b31;--config-modal-note-color:var(--config-color-normal);--config-switch-background:var(--config-color-normal);--config-console-background:#20263f;--config-console-nav-start:#1c2139;--config-console-nav-end:#151929;--config-console-nav-border:#171b30;--config-console-nav-switch-background:var(--config-color-focus);--config-console-nav-switch-color:var(--config-color-background);--config-console-nav-switch-arrow:url("data:image/svg+xml;utf8,")}.theme-light .force-light{display:block!important}.theme-dark .force-dark{display:block!important}.force-dark{display:none!important}.force-light{display:none!important}@font-face{font-family:Poppins;font-style:normal;font-weight:100;src:url(/fonts/poppins-v9-latin-100.eot);src:local('Poppins Thin'),local('Poppins-Thin'),url(/fonts/poppins-v9-latin-100.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-100.woff2) format('woff2'),url(/fonts/poppins-v9-latin-100.woff) format('woff'),url(/fonts/poppins-v9-latin-100.ttf) format('truetype'),url(/fonts/poppins-v9-latin-100.svg#Poppins) format('svg')}@font-face{font-family:Poppins;font-style:normal;font-weight:300;src:url(/fonts/poppins-v9-latin-300.eot);src:local('Poppins Light'),local('Poppins-Light'),url(/fonts/poppins-v9-latin-300.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-300.woff2) format('woff2'),url(/fonts/poppins-v9-latin-300.woff) format('woff'),url(/fonts/poppins-v9-latin-300.ttf) format('truetype'),url(/fonts/poppins-v9-latin-300.svg#Poppins) format('svg')}@font-face{font-family:Poppins;font-style:normal;font-weight:400;src:url(/fonts/poppins-v9-latin-regular.eot);src:local('Poppins Regular'),local('Poppins-Regular'),url(/fonts/poppins-v9-latin-regular.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-regular.woff2) format('woff2'),url(/fonts/poppins-v9-latin-regular.woff) format('woff'),url(/fonts/poppins-v9-latin-regular.ttf) format('truetype'),url(/fonts/poppins-v9-latin-regular.svg#Poppins) format('svg')}@font-face{font-family:Poppins;font-style:normal;font-weight:500;src:url(/fonts/poppins-v9-latin-500.eot);src:local('Poppins Medium'),local('Poppins-Medium'),url(/fonts/poppins-v9-latin-500.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-500.woff2) format('woff2'),url(/fonts/poppins-v9-latin-500.woff) format('woff'),url(/fonts/poppins-v9-latin-500.ttf) format('truetype'),url(/fonts/poppins-v9-latin-500.svg#Poppins) format('svg')}@font-face{font-family:Poppins;font-style:normal;font-weight:600;src:url(/fonts/poppins-v9-latin-600.eot);src:local('Poppins SemiBold'),local('Poppins-SemiBold'),url(/fonts/poppins-v9-latin-600.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-600.woff2) format('woff2'),url(/fonts/poppins-v9-latin-600.woff) format('woff'),url(/fonts/poppins-v9-latin-600.ttf) format('truetype'),url(/fonts/poppins-v9-latin-600.svg#Poppins) format('svg')}@font-face{font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url(/fonts/source-code-pro-v11-latin-regular.eot);src:local('Source Code Pro Regular'),local('SourceCodePro-Regular'),url(/fonts/source-code-pro-v11-latin-regular.eot?#iefix) format('embedded-opentype'),url(/fonts/source-code-pro-v11-latin-regular.woff2) format('woff2'),url(/fonts/source-code-pro-v11-latin-regular.woff) format('woff'),url(/fonts/source-code-pro-v11-latin-regular.ttf) format('truetype'),url(/fonts/source-code-pro-v11-latin-regular.svg#SourceCodePro) format('svg')}.padding{padding:30px}.padding-top{padding-top:30px!important}.padding-top-large{padding-top:50px!important}.padding-top-xl{padding-top:80px!important}.padding-bottom{padding-bottom:30px!important}.padding-bottom-large{padding-bottom:50px!important}.padding-bottom-xl{padding-bottom:80px!important}.margin-end{margin-right:20px!important}.margin-start{margin-left:20px!important}.margin-end-small{margin-right:10px!important}.margin-start-small{margin-left:10px!important}.margin-end-large{margin-right:50px!important}.margin-start-large{margin-left:50px!important}.margin-end-no{margin-right:0!important}.margin-start-no{margin-left:0!important}.margin-end-negative{margin-right:-30px!important}.margin-start-negative{margin-left:-30px!important}.margin-end-negative-small{margin-right:-15px!important}.margin-start-negative-small{margin-left:-15px!important}.margin-end-negative-tiny{margin-right:-5px!important}.margin-start-negative-tiny{margin-left:-5px!important}.margin-top{margin-top:30px!important}.margin-bottom{margin-bottom:30px!important}.margin-top-no{margin-top:0!important}.margin-bottom-no{margin-bottom:0!important}.margin-top-xxl{margin-top:140px!important}.margin-top-xl{margin-top:80px!important}.margin-top-large{margin-top:50px!important}.margin-top-small{margin-top:15px!important}.margin-top-tiny{margin-top:5px!important}.margin-top-negative{margin-top:-30px!important}.margin-top-negative-tiny{margin-top:-5px!important}.margin-top-negative-small{margin-top:-15px!important}.margin-top-negative-large{margin-top:-50px!important}.margin-top-negative-xl{margin-top:-80px!important}.margin-top-negative-xxl{margin-top:-100px!important}.margin-top-negative-xxxl{margin-top:-150px!important}.margin-bottom-xxl{margin-bottom:140px!important}.margin-bottom-xl{margin-bottom:80px!important}.margin-bottom-large{margin-bottom:50px!important}.margin-bottom-small{margin-bottom:15px!important}.margin-bottom-tiny{margin-bottom:5px!important}.margin-bottom-negative{margin-bottom:-30px!important}.margin-bottom-negative-tiny{margin-bottom:-5px!important}.margin-bottom-negative-small{margin-bottom:-15px!important}.margin-bottom-negative-large{margin-bottom:-50px!important}.margin-bottom-negative-xl{margin-bottom:-80px!important}.margin-bottom-negative-xl{margin-bottom:-100px!important}.force-left,.ide{direction:ltr;text-align:left}.force-right{direction:rtl;text-align:right}.pull-left{float:left}.pull-right{float:right}.ratio-wide{height:0;overflow:hidden;padding-top:56%;position:relative;width:100%}.ratio-wide>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-square{height:0;overflow:hidden;padding-top:56%;position:relative;width:100%}.ratio-square>*{position:absolute;top:0;left:0;width:100%;height:100%}.clear:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.phones-only{display:none}@media only screen and (max-width:550px){.phones-only{display:inherit!important}}.tablets-only{display:none}@media only screen and (min-width:551px) and (max-width:1198px){.tablets-only{display:inherit!important}}.desktops-only{display:none}@media only screen and (min-width:1199px){.desktops-only{display:inherit!important}}.phones-only-inline{display:none}@media only screen and (max-width:550px){.phones-only-inline{display:inline-block!important}}.tablets-only-inline{display:none}@media only screen and (min-width:551px) and (max-width:1198px){.tablets-only-inline{display:inline-block!important}}.desktops-only-inline{display:none}@media only screen and (min-width:1199px){.desktops-only-inline{display:inline-block!important}}*{font-family:Poppins,sans-serif;-webkit-font-smoothing:antialiased;font-weight:300}h1,h2,h3,h4,h5,h6{margin:0}h4,h5,h6{font-weight:400}.link,a{color:var(--config-color-link);text-decoration:none;border-left:2px solid transparent;border-right:2px solid transparent;transition:.2s;cursor:pointer}.link.disabled,a.disabled{opacity:.5}.link.tag:hover,a.tag:hover{opacity:.9}.link.danger,a.danger{color:var(--config-color-danger)}.link.link-animation-enabled,a.link-animation-enabled{display:inline-flex}.link.link-animation-enabled:hover,a.link-animation-enabled:hover{transform:translateY(-2px)}.link-return-animation--start>i{display:inline-block;transition:.2s}.link-return-animation--start:hover>i{transform:translateX(-2px)}.link-return-animation--end>i{display:inline-block;transition:.2s}.link-return-animation--end:hover>i{transform:translateX(2px)}b,strong{font-weight:500}p{margin:0 0 20px 0;line-height:26px}small{font-size:16px;color:var(--config-color-fade)}.text-size-small{font-size:13px}.text-size-smaller{font-size:11.5px}.text-size-xs{font-size:10px}.text-size-normal{font-size:16px}.text-height-large{height:30px;line-height:30px}.text-height-small{line-height:13px}.text-one-liner{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text-bold{font-weight:400!important}.text-bold-large{font-weight:500!important}.text-bold-xl{font-weight:600!important}.text-danger{color:var(--config-color-danger)!important}.text-success{color:var(--config-color-success)!important}.text-upper{text-transform:uppercase}.text-warning{color:var(--config-color-warning)}.text-focus{color:var(--config-color-focus)}.text-fade{color:var(--config-color-fade)}.text-fade-dark{color:var(--config-color-fade-dark)}.text-green{color:var(--config-color-success)}.text-red{color:var(--config-color-danger)}.text-info{color:var(--config-color-info)}.text-yellow{color:#ffe28b}.text-disclaimer{font-size:11px;color:var(--config-color-fade)}.text-fade-extra{color:var(--config-color-fade);opacity:.5}.text-line-high-large{line-height:30px}.text-line-high-xl{line-height:40px}.text-sign{margin:5px 0;font-size:25px;width:25px;height:25px;line-height:25px;display:inline-block}.text-align-center{text-align:center}.text-align-start{text-align:left}.text-align-end{text-align:right}.text-align-left{text-align:left}.text-align-right{text-align:right}.text-dir-ltr{direction:ltr;display:inline-block}.text-dir-rtl{direction:rtl;display:inline-block}i[class*=' icon-']:before,i[class^=icon-]:before{display:inline;line-height:unset}table{width:calc(100% + 60px);border-collapse:collapse;margin:-30px;border-radius:10px;overflow:hidden;position:relative;table-layout:fixed}table.y-scroll{overflow-y:auto}table.multi-line tbody td,table.multi-line thead th{line-height:inherit;text-overflow:inherit;white-space:inherit}table.borders td,table.borders th{border-right:solid 1px var(--config-border-fade-super)}table.borders td:last-child,table.borders th:last-child{border:none}table thead{border-bottom:solid 1px var(--config-color-fade-super);font-size:14px}table.small{font-size:14px}table.open-end tbody tr:last-child{border-bottom:none;font-weight:700;background:#f7fbf7}table.full tbody td,table.full tbody th{vertical-align:top;white-space:normal;overflow:auto;line-height:24px;padding-top:20px;padding-bottom:20px;height:auto}table .avatar{width:30px;height:30px}table tr{border-bottom:solid 1px var(--config-color-fade-super)}table tr:last-child{border-bottom:none}table tr:last-child td:first-child{border-bottom-left-radius:6px}table tr:last-child td:last-child{border-bottom-right-radius:6px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){table tr:nth-child(even){background:var(--config-color-background-fade-super)}}@media only screen and (min-width:1199px){table tr:nth-child(even) td{background:var(--config-color-background-fade-super)}}table tr.selected{background:var(--config-note-background)}table tr.selected td,table tr.selected td span{font-weight:500}table th{text-align:left;font-weight:400}table th i{color:var(--config-color-fade);font-size:10px;display:inline-block;vertical-align:top;line-height:16px;padding:0 3px}table td,table th{height:65px;padding:0 15px;line-height:50px}table td:first-child,table th:first-child{padding-left:30px}table td,table th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){table.vertical{border-top:solid 1px var(--config-color-fade-super);display:block;overflow:hidden;padding-top:12px}table.vertical .hide{display:none}table.vertical tbody,table.vertical td,table.vertical th,table.vertical thead,table.vertical tr{width:100%;display:block}table.vertical tr{position:relative}table.vertical th,table.vertical tr{padding-top:12px;padding-bottom:12px}table.vertical th:first-child,table.vertical tr:first-child{padding-top:0}table.vertical td,table.vertical th{padding:5px 20px!important;text-overflow:ellipsis;white-space:normal;height:40px;line-height:40px;width:calc(100% - 40px)}table.vertical td.col-name,table.vertical th.col-name{width:calc(100% - 110px)}table.vertical td:first-child,table.vertical td:last-child,table.vertical th:first-child,table.vertical th:last-child{padding:0 10px}table.vertical td:last-child,table.vertical th:last-child{padding-bottom:0}table.vertical td p,table.vertical th p{display:inline-block;width:calc(100% - 40px)}table.vertical td:not([data-title=""]):before{content:attr(data-title);margin-right:4px;font-weight:400}table.vertical thead{display:none}table.vertical .cell-options-more{position:absolute;inset-block-start:0;inset-inline-end:0;width:auto}}table .trim-inner-text{display:inline-flex;align-items:center;gap:8px}@media only screen and (min-width:1199px){table .trim-inner-text{width:100%}}table .cell-options-more button{padding:0 12px;background-color:transparent;color:var(--config-color-fade)}table .cell-options-more button:focus-visible{outline:solid 1px var(--config-color-focus)}.zone{max-width:var(--config-width-xl);margin:0 auto 40px auto}.zone.xxxl{max-width:calc(1400px - 100px)}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.zone.xxxl{max-width:100%}}.zone.xxl{max-width:var(--config-width-xxl)}.zone.xl{max-width:var(--config-width-xl)}.zone.large{max-width:var(--config-width-large)}.zone.medium{max-width:var(--config-width-medium)}.zone.small{max-width:var(--config-width-small)}.row{position:relative;margin:0 -50px;padding-left:50px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.row{margin:0 -30px;padding-left:30px}}.row.force-ltr>.col{float:left}.row.force-rtl>.col{float:right}.row.force-reverse>.col{float:right}.row.wide{margin:0 -100px;padding-left:100px}.row.wide>.span-1{width:calc(8.33333333% * 1 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-2{width:calc(8.33333333% * 2 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-3{width:calc(8.33333333% * 3 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-4{width:calc(8.33333333% * 4 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-5{width:calc(8.33333333% * 5 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-6{width:calc(8.33333333% * 6 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-7{width:calc(8.33333333% * 7 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-8{width:calc(8.33333333% * 8 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-9{width:calc(8.33333333% * 9 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-10{width:calc(8.33333333% * 10 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-11{width:calc(8.33333333% * 11 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-12{width:calc(8.33333333% * 12 - 100px);box-sizing:content-box;padding-right:100px}.row.thin{margin:0 -20px;padding-left:20px}.row.thin>.span-1{width:calc(8.33333333% * 1 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-2{width:calc(8.33333333% * 2 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-3{width:calc(8.33333333% * 3 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-4{width:calc(8.33333333% * 4 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-5{width:calc(8.33333333% * 5 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-6{width:calc(8.33333333% * 6 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-7{width:calc(8.33333333% * 7 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-8{width:calc(8.33333333% * 8 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-9{width:calc(8.33333333% * 9 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-10{width:calc(8.33333333% * 10 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-11{width:calc(8.33333333% * 11 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-12{width:calc(8.33333333% * 12 - 20px);box-sizing:content-box;padding-right:20px}.row.modalize{margin:0 -30px;padding-left:30px}.row.modalize>.span-1{width:calc(8.33333333% * 1 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-2{width:calc(8.33333333% * 2 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-3{width:calc(8.33333333% * 3 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-4{width:calc(8.33333333% * 4 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-5{width:calc(8.33333333% * 5 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-6{width:calc(8.33333333% * 6 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-7{width:calc(8.33333333% * 7 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-8{width:calc(8.33333333% * 8 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-9{width:calc(8.33333333% * 9 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-10{width:calc(8.33333333% * 10 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-11{width:calc(8.33333333% * 11 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-12{width:calc(8.33333333% * 12 - 30px);box-sizing:content-box;padding-right:30px}.row:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.row .col{float:left;box-sizing:border-box}.row .col.sticky-top{position:sticky;top:90px}.row .col.sticky-bottom{position:sticky;bottom:0}.row .span-1{width:calc(8.33333333% * 1 - 40px);box-sizing:content-box;padding-right:40px}.row .span-2{width:calc(8.33333333% * 2 - 40px);box-sizing:content-box;padding-right:40px}.row .span-3{width:calc(8.33333333% * 3 - 40px);box-sizing:content-box;padding-right:40px}.row .span-4{width:calc(8.33333333% * 4 - 40px);box-sizing:content-box;padding-right:40px}.row .span-5{width:calc(8.33333333% * 5 - 40px);box-sizing:content-box;padding-right:40px}.row .span-6{width:calc(8.33333333% * 6 - 40px);box-sizing:content-box;padding-right:40px}.row .span-7{width:calc(8.33333333% * 7 - 40px);box-sizing:content-box;padding-right:40px}.row .span-8{width:calc(8.33333333% * 8 - 40px);box-sizing:content-box;padding-right:40px}.row .span-9{width:calc(8.33333333% * 9 - 40px);box-sizing:content-box;padding-right:40px}.row .span-10{width:calc(8.33333333% * 10 - 40px);box-sizing:content-box;padding-right:40px}.row .span-11{width:calc(8.33333333% * 11 - 40px);box-sizing:content-box;padding-right:40px}.row .span-12{width:calc(8.33333333% * 12 - 40px);box-sizing:content-box;padding-right:40px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.row.responsive{width:100%;padding:0;margin:0}.row.responsive>.span-1,.row.responsive>.span-10,.row.responsive>.span-11,.row.responsive>.span-12,.row.responsive>.span-2,.row.responsive>.span-3,.row.responsive>.span-4,.row.responsive>.span-5,.row.responsive>.span-6,.row.responsive>.span-7,.row.responsive>.span-8,.row.responsive>.span-9{width:calc(8.33333333% * 12 - 0px)!important;box-sizing:content-box!important;padding-right:0!important;width:100%!important}}.tiles{position:relative}.tiles:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.tiles .box hr{margin:15px -15px}.tiles>*{margin-right:50px!important;float:left;width:calc(33.3333% - 33.3333px)}.tiles>* .photo-title{width:calc(100% + 30px);height:15px;margin:-15px -15px 10px -15px;border-radius:10px 10px 0 0;background:var(--config-color-fade-super);border-bottom:solid 1px var(--config-color-fade-super)}.tiles>:nth-child(3n){margin-right:0!important}@media only screen and (min-width:551px) and (max-width:1198px){.tiles>li{width:calc(50% - 25px)}.tiles>li:nth-child(3n){margin-right:50px!important}.tiles>li:nth-child(2n){margin-right:0!important}}@media only screen and (max-width:550px){.tiles>li{width:100%;margin-right:0!important}}@font-face{font-family:icon;src:url(/fonts/icon.eot?t=1650537780691);src:url(/fonts/icon.eot?t=1650537780691#iefix) format('embedded-opentype'),url(/fonts/icon.woff2?t=1650537780691) format("woff2"),url(/fonts/icon.woff?t=1650537780691) format("woff"),url(/fonts/icon.ttf?t=1650537780691) format('truetype'),url(/fonts/icon.svg?t=1650537780691#icon) format('svg');font-weight:400;font-style:normal}[class*=" icon-"]:before,[class^=icon-]:before{font-family:icon!important;font-style:normal;font-weight:400;speak:never;vertical-align:middle;display:inline-block;text-decoration:inherit;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-angle-circled-left:before{content:"\ea01"}.icon-angle-circled-right:before{content:"\ea02"}.icon-archive:before{content:"\ea03"}.icon-article:before{content:"\ea04"}.icon-asterisk:before{content:"\ea05"}.icon-bank:before{content:"\ea06"}.icon-bell:before{content:"\ea07"}.icon-binoculars:before{content:"\ea08"}.icon-bitbucket:before{content:"\ea09"}.icon-bold:before{content:"\ea0a"}.icon-book-open:before{content:"\ea0b"}.icon-boolean:before{content:"\ea0c"}.icon-briefcase:before{content:"\ea0d"}.icon-building-filled:before{content:"\ea0e"}.icon-datetime:before{content:"\ea0f"}.icon-calendar:before{content:"\ea0f"}.icon-cancel-circled:before{content:"\ea10"}.icon-cancel:before{content:"\ea11"}.icon-chart-area:before{content:"\ea12"}.icon-chat-alt:before{content:"\ea13"}.icon-check:before{content:"\ea14"}.icon-chevron-down:before{content:"\ea15"}.icon-clock:before{content:"\ea16"}.icon-code:before{content:"\ea17"}.icon-cog:before{content:"\ea18"}.icon-comment:before{content:"\ea19"}.icon-database:before{content:"\ea1a"}.icon-dev:before{content:"\ea1b"}.icon-discord:before{content:"\ea1c"}.icon-docs:before{content:"\ea1d"}.icon-dot-3:before{content:"\ea1e"}.icon-dot-circled:before{content:"\ea1f"}.icon-double:before{content:"\ea20"}.icon-down-dir:before{content:"\ea21"}.icon-down-open:before{content:"\ea22"}.icon-download:before{content:"\ea23"}.icon-edit:before{content:"\ea24"}.icon-email:before{content:"\ea25"}.icon-enum:before{content:"\ea26"}.icon-export:before{content:"\ea27"}.icon-eye:before{content:"\ea28"}.icon-facebook:before{content:"\ea29"}.icon-file:before{content:"\ea2a"}.icon-film:before{content:"\ea2b"}.icon-filter:before{content:"\ea2c"}.icon-fire:before{content:"\ea2d"}.icon-float:before{content:"\ea2e"}.icon-folder:before{content:"\ea2f"}.icon-github:before{content:"\ea30"}.icon-gitlab:before{content:"\ea31"}.icon-glasses:before{content:"\ea32"}.icon-google:before{content:"\ea33"}.icon-hackernews:before{content:"\ea34"}.icon-header:before{content:"\ea35"}.icon-heart:before{content:"\ea36"}.icon-home:before{content:"\ea37"}.icon-image:before{content:"\ea38"}.icon-inbox:before{content:"\ea39"}.icon-info-circled:before{content:"\ea3a"}.icon-instagram:before{content:"\ea3b"}.icon-integer:before{content:"\ea3c"}.icon-ip:before{content:"\ea3d"}.icon-italic:before{content:"\ea3e"}.icon-key-inv:before{content:"\ea3f"}.icon-key:before{content:"\ea40"}.icon-keyboard:before{content:"\ea41"}.icon-lamp:before{content:"\ea42"}.icon-left-dir:before{content:"\ea43"}.icon-left-open:before{content:"\ea44"}.icon-lifebuoy:before{content:"\ea45"}.icon-lightning:before{content:"\ea46"}.icon-link-ext:before{content:"\ea47"}.icon-link:before{content:"\ea48"}.icon-linkedin:before{content:"\ea49"}.icon-list-bullet:before{content:"\ea4a"}.icon-list-numbered:before{content:"\ea4b"}.icon-list:before{content:"\ea4c"}.icon-location:before{content:"\ea4d"}.icon-lock:before{content:"\ea4e"}.icon-login:before{content:"\ea4f"}.icon-mail:before{content:"\ea50"}.icon-medium:before{content:"\ea51"}.icon-menu:before{content:"\ea52"}.icon-minus:before{content:"\ea53"}.icon-moon-inv:before{content:"\ea54"}.icon-moon:before{content:"\ea55"}.icon-more:before{content:"\ea56"}.icon-network:before{content:"\ea57"}.icon-ok-circled:before{content:"\ea58"}.icon-ok:before{content:"\ea59"}.icon-palette:before{content:"\ea5a"}.icon-pause:before{content:"\ea5b"}.icon-phone:before{content:"\ea5c"}.icon-photograph:before{content:"\ea5d"}.icon-picture:before{content:"\ea5e"}.icon-pinterest:before{content:"\ea5f"}.icon-play:before{content:"\ea60"}.icon-plus:before{content:"\ea61"}.icon-qrcode:before{content:"\ea62"}.icon-question:before{content:"\ea63"}.icon-quote-right:before{content:"\ea64"}.icon-random:before{content:"\ea65"}.icon-reddit:before{content:"\ea66"}.icon-refresh:before{content:"\ea67"}.icon-right-dir:before{content:"\ea68"}.icon-right-open:before{content:"\ea69"}.icon-rocket:before{content:"\ea6a"}.icon-search:before{content:"\ea6b"}.icon-shield:before{content:"\ea6c"}.icon-shuffle:before{content:"\ea6d"}.icon-smile-o:before{content:"\ea6e"}.icon-sort:before{content:"\ea6f"}.icon-stackoverflow:before{content:"\ea70"}.icon-stopwatch:before{content:"\ea71"}.icon-string:before{content:"\ea72"}.icon-sun-inv:before{content:"\ea73"}.icon-telegram:before{content:"\ea74"}.icon-trash-2:before{content:"\ea75"}.icon-trash:before{content:"\ea76"}.icon-twitter:before{content:"\ea77"}.icon-underline:before{content:"\ea78"}.icon-up-dir:before{content:"\ea79"}.icon-up-open:before{content:"\ea7a"}.icon-upload:before{content:"\ea7b"}.icon-url:before{content:"\ea7c"}.icon-user:before{content:"\ea7d"}.icon-users:before{content:"\ea7e"}.icon-videocam:before{content:"\ea7f"}.icon-warning:before{content:"\ea80"}.icon-whatsapp:before{content:"\ea81"}.icon-wheelchair:before{content:"\ea82"}.icon-windows:before{content:"\ea83"}.icon-wrench:before{content:"\ea84"}.icon-x:before{content:"\ea85"}.icon-youtube-play:before{content:"\ea86"}.datalist-polyfill{list-style:none;display:none;background:#fff;box-shadow:0 2px 2px #999;position:absolute;left:0;top:0;margin:0;padding:0;max-height:300px;overflow-y:auto}.datalist-polyfill:empty{display:none!important}.datalist-polyfill>li{padding:3px;font:13px "Lucida Grande",Sans-Serif}.datalist-polyfill__active{background:#3875d7;color:#fff}date-input-polyfill{z-index:1000!important;max-width:320px!important;width:320px!important}date-input-polyfill .monthSelect-wrapper,date-input-polyfill .yearSelect-wrapper{height:50px;line-height:50px;padding:0;width:40%!important;margin-bottom:10px!important}date-input-polyfill .monthSelect-wrapper select,date-input-polyfill .yearSelect-wrapper select{padding:0 12px;height:50px;line-height:50px;box-sizing:border-box}date-input-polyfill .yearSelect-wrapper{width:35%!important}date-input-polyfill table{width:100%!important;max-width:100%!important;padding:0 12px 12px 12px!important;box-sizing:border-box;margin:0}date-input-polyfill table td:first-child,date-input-polyfill table td:last-child,date-input-polyfill table th:first-child,date-input-polyfill table th:last-child{width:32px!important;padding:4px!important}date-input-polyfill select{margin-bottom:10px}date-input-polyfill button{width:25%!important;height:50px!important;line-height:50px!important;margin-bottom:10px!important;background:inherit;position:relative;color:inherit;padding:inherit;box-sizing:inherit;border-radius:inherit;font-size:inherit;box-shadow:none;border:none;border-bottom:none!important}::placeholder{color:var(--config-color-placeholder);text-align:left}::-webkit-input-placeholder{text-align:left}input:-moz-placeholder{text-align:left}form.inline{display:inline-block}input,textarea{background:var(--config-color-background-input)}input[type=file],input[type=file]::-webkit-file-upload-button{cursor:pointer}.button,button{display:inline-block;background:var(--config-color-focus);border-radius:26px;border:none;color:var(--config-color-background-fade);height:52px;line-height:52px;padding:0 25px;cursor:pointer;font-size:16px;box-sizing:border-box;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.button:focus,.button:hover,button:focus,button:hover{background:var(--config-color-focus-hover)}.button.fly,button.fly{position:fixed;z-index:2;bottom:30px;right:30px}@media only screen and (max-width:550px){.button.fly,button.fly{right:15px}}.button.fill,button.fill{display:block;width:100%;text-align:center;padding:0 10px!important}.button.fill-aligned,button.fill-aligned{display:block;width:100%;text-align:left;padding:0 20px!important}.button.icon,button.icon{padding-right:30px!important}.button.icon-reduce,button.icon-reduce{padding-left:15px!important}.button.reverse,button.reverse{background:0 0;height:50px;line-height:48px;padding:0 23px;color:var(--config-color-focus);border:solid 2px var(--config-color-focus)}.button.reverse:focus,.button.reverse:hover,button.reverse:focus,button.reverse:hover{color:var(--config-color-focus-hover);border-color:var(--config-color-focus-hover)}.button.small,button.small{padding:0 15px;height:40px;line-height:36px;font-size:13px}.button.tick,button.tick{background:var(--config-color-fade-light);color:var(--config-color-dark);border-radius:20px;padding:0 10px;line-height:30px;height:30px;font-size:12px;display:inline-block}.button.tick.selected,button.tick.selected{background:var(--config-color-dark);color:var(--config-color-fade)}.button.round,button.round{width:52px;padding:0}.button.round.small,button.round.small{font-size:12px;width:30px;height:30px;line-height:30px}.button.white,button.white{background:#fff;color:var(--config-color-focus)}.button.white.reverse,button.white.reverse{color:#fff;background:0 0;border:solid 2px #fff}.button.trans,button.trans{background:0 0!important}.button.trans.reverse,button.trans.reverse{background:0 0!important}.button.success,button.success{background:var(--config-color-success)}.button.success.reverse,button.success.reverse{color:var(--config-color-success);background:#fff;border:solid 2px var(--config-color-success)}.button.danger,button.danger{background:var(--config-color-danger);color:#fff}.button.danger.reverse,button.danger.reverse{color:var(--config-color-danger);background:var(--config-color-background-fade);border:solid 2px var(--config-color-danger)}.button.dark,button.dark{background:var(--config-color-dark);color:var(--config-color-background-fade)}.button.dark.reverse,button.dark.reverse{color:var(--config-color-dark);background:var(--config-color-background-fade);border:solid 2px var(--config-color-dark)}.button .disabled,.button.disabled,.button:disabled,button .disabled,button.disabled,button:disabled{color:var(--config-color-normal);background:var(--config-color-background-dark);opacity:.6;cursor:default}.button.link,button.link{background:0 0;border-radius:0;color:var(--config-color-link);height:auto;line-height:normal;padding:0;padding-right:0!important}.button.link:focus,button.link:focus{box-shadow:inherit}.button.strip,button.strip{background:0 0;height:auto;line-height:16px;color:inherit;padding:0 5px}.button.facebook,button.facebook{color:#fff!important;background:#4070b4!important}.button.twitter,button.twitter{color:#fff!important;background:#56c2ea!important}.button.linkedin,button.linkedin{color:#fff!important;background:#0076b5!important}.button.github,button.github{color:#fff!important;background:#7e7c7c!important}.button:focus,button:focus{outline:0}button.close{width:30px;height:30px;line-height:30px;padding:0;margin:0;background:var(--config-color-normal);color:var(--config-color-background-fade);border-radius:50%}button.close .icon-cancel::before{line-height:1}button.close.is-margin-top-10{margin-top:10px}label{margin-bottom:15px;display:block;line-height:normal}label.inline{display:inline}.input,input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=url],select,textarea{-webkit-appearance:none;-moz-appearance:none;-webkit-transform:translateZ(0);box-sizing:content-box;color:#313131;height:40px;line-height:40px;border:solid 1px var(--config-color-fade-light);border-radius:10px;padding:5px 15px;font-size:16px;display:block;width:calc(100% - 32px);margin-bottom:30px}.input[type=file],input[type=date][type=file],input[type=datetime-local][type=file],input[type=email][type=file],input[type=file][type=file],input[type=number][type=file],input[type=password][type=file],input[type=search][type=file],input[type=tel][type=file],input[type=text][type=file],input[type=url][type=file],select[type=file],textarea[type=file]{line-height:0;padding:15px;height:auto}.input:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=email]:focus,input[type=file]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=url]:focus,select:focus,textarea:focus{outline:0;border-color:#b3d7fd}.input:disabled,input[type=date]:disabled,input[type=datetime-local]:disabled,input[type=email]:disabled,input[type=file]:disabled,input[type=number]:disabled,input[type=password]:disabled,input[type=search]:disabled,input[type=tel]:disabled,input[type=text]:disabled,input[type=url]:disabled,select:disabled,textarea:disabled{color:var(--config-color-normal);background:var(--config-color-fade-super);opacity:1!important}.input.strip,input[type=date].strip,input[type=datetime-local].strip,input[type=email].strip,input[type=file].strip,input[type=number].strip,input[type=password].strip,input[type=search].strip,input[type=tel].strip,input[type=text].strip,input[type=url].strip,select.strip,textarea.strip{border:none;border-radius:0;padding:5px 0;width:100%;background-color:transparent;background-position:right 2px top 50%;border-bottom:solid 1px var(--config-color-fade-light);color:var(--config-color-placeholder)}.input.strip:focus,input[type=date].strip:focus,input[type=datetime-local].strip:focus,input[type=email].strip:focus,input[type=file].strip:focus,input[type=number].strip:focus,input[type=password].strip:focus,input[type=search].strip:focus,input[type=tel].strip:focus,input[type=text].strip:focus,input[type=url].strip:focus,select.strip:focus,textarea.strip:focus{border-color:#b3d7fd}.input:-webkit-autofill::first-line,input[type=date]:-webkit-autofill::first-line,input[type=datetime-local]:-webkit-autofill::first-line,input[type=email]:-webkit-autofill::first-line,input[type=file]:-webkit-autofill::first-line,input[type=number]:-webkit-autofill::first-line,input[type=password]:-webkit-autofill::first-line,input[type=search]:-webkit-autofill::first-line,input[type=tel]:-webkit-autofill::first-line,input[type=text]:-webkit-autofill::first-line,input[type=url]:-webkit-autofill::first-line,select:-webkit-autofill::first-line,textarea:-webkit-autofill::first-line{font-weight:300;font-size:16px}input[type=email],input[type=url]{direction:ltr}input[type=email]::placeholder,input[type=url]::placeholder{text-align:left;direction:ltr}select{background:0 0;-webkit-appearance:none;background-image:var(--config-console-nav-switch-arrow);background-position:right 15px top 50%;background-repeat:no-repeat;background-color:var(--config-color-background-input);width:calc(100% - 62px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:45px}select:-webkit-autofill{background-image:url("data:image/svg+xml;utf8,")!important;background-position:100% 50%!important;background-repeat:no-repeat!important}input[type=search],input[type=search].strip{background:0 0;-webkit-appearance:none;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAdZJREFUWIXt1s2LjWEYBvDfnDMzFpNIamZIFrMiJYMyFmKhZKfOwoiFr2LFn2BByG6WVrKwMcjWxgoLIlKIUk6RrzAjZWZ8LO731FlwvB+PUbjq6X0X7/VeV/d9P9fz8IdRL8Hpw3x8w0xaOz9GNxq4gJeZcGs1cRab0fU7xLfgMSYzoT3YgNXYhIO4iM+4iTWphGs4jikcFSXvhEGczr4/UFW8C2N4jXUFudvwCYeqGNgnSr6yJH8rpkWLCqMfE9hdUryFE3iC3qLEk7ij+kT34Q32FiHV8Qr7K4q3cArXihCGxd5elMjARnzBvE4f1dreV+AtnicycC/7/7K8BhaIvqXCO3zFwrwGZtCT0EAtW9N5DTSxWGR/CizNns/yEgbFEK5NZGCnaEPHE7e9Ai9wA6OJDIzistgJubFdxHB/RfFVYgCHixJruI5x5dNwDm6J47sUhkTvjpUw0Y1zeOrXR3hHjOA9zmBuTs4Arog4/yhuUZWwHPdFMh7280BZgiP4ILJ/UuymqRQmejPxphiquzgvKnMJDzOxB9glZqiRiecykbfHdawX98EhcdxO4BGu4nYm2EJDzEKPSMIdYrBnFYUq8d/EP2di1gey3cS4ErflvxffASbhcakIINaMAAAAAElFTkSuQmCC);background-color:var(--config-color-background-input);background-position:left 15px top 50%;background-repeat:no-repeat;background-size:20px 20px;width:calc(100% - 60px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:45px}select[multiple]{min-height:75px;padding:5px 10px!important;padding-right:50px!important}select[multiple] option{padding:10px 4px;border-bottom:solid 1px #f1f1f1}select[multiple] option:last-child{border-bottom:none}textarea{min-height:75px;resize:vertical;line-height:32px;padding:5px 15px}textarea.tall{min-height:180px}fieldset{border:none;margin:0;padding:0}.counter{font-size:13px;text-align:right;color:var(--config-color-fade);margin-top:-20px;margin-bottom:20px}.file-preview{background:var(--config-color-background-input) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAIElEQVQoU2NkYGAwZsAEZ9GFGIeIQix+wfQgyDODXSEAcUwGCrDSHgkAAAAASUVORK5CYII=)!important;box-shadow:inset 0 0 3px #a0a0a0;border-radius:8px;width:calc(100% - 2px);max-height:180px;visibility:visible!important;object-fit:cover}.video-preview{padding-top:56%;position:relative;border-radius:10px;background:#e7e7e7;overflow:hidden;margin:0}.video-preview iframe{position:absolute;top:0;width:100%;height:100%;border:none}.map-preview{padding-top:50%;position:relative;margin-bottom:10px;border-radius:10px;background:#e7e7e7;overflow:hidden;box-shadow:0 0 30px rgba(218,218,218,.5)}.map-preview iframe{position:absolute;top:0;width:100%;height:100%;border:none}.tooltip{position:relative}.tooltip.large:hover:after{white-space:normal;width:280px}.tooltip.small:hover:after{white-space:normal;width:180px}.tooltip:hover:after{white-space:nowrap;background:var(--config-color-tooltip-background);border-radius:5px;bottom:calc(100% + 6px);color:var(--config-color-tooltip-text);content:attr(data-tooltip);padding:5px 15px;position:absolute;font-size:13px;line-height:20px;z-index:98;left:20%;margin-left:-30px;word-break:break-word}.tooltip:hover:before{border:solid;border-color:var(--config-color-tooltip-background) transparent;border-width:6px 6px 0 6px;bottom:100%;content:"";position:absolute;z-index:99;left:3px}.tooltip.down:hover:after{top:calc(100% + 6px);bottom:inherit}.tooltip.down:hover:before{top:100%;border-width:0 6px 6px 6px;bottom:inherit}.tag{display:inline-block;background:var(--config-color-fade-light);color:var(--config-color-fade);border-radius:12px;line-height:24px;padding:0 8px;font-size:12px;box-shadow:none!important;border:none;height:auto;width:auto;white-space:nowrap;text-overflow:ellipsis}.tag:hover{border:none}.tag.green{background:var(--config-color-success);color:#fff}.tag.red{background:var(--config-color-danger);color:#fff}.tag.yellow{background:#ffe28b;color:#494949}.tag.focus{background:var(--config-color-focus);color:#fff}.tag.dark{background:var(--config-color-dark);color:#e7e7e7}.tag.blue{background:var(--config-color-info);color:#fff}.tag.link{background:var(--config-color-link);color:#fff}input[type=checkbox],input[type=radio]{width:26px;height:16px;position:relative;-webkit-appearance:none;border-radius:0;border:none;background:0 0;vertical-align:middle;margin:0}input[type=checkbox]:after,input[type=radio]:after{content:"";display:block;width:20px;height:20px;background:var(--config-color-background-fade);top:-5px;border-radius:50%;position:absolute;border:solid 3px var(--config-color-focus);vertical-align:middle}input[type=checkbox]:checked:after,input[type=radio]:checked:after{text-align:center;font-family:icon;content:'\ea14';font-size:16px;line-height:20px;color:var(--config-color-background-fade);background:var(--config-color-focus)}input[type=checkbox][type=radio]:checked:after,input[type=radio][type=radio]:checked:after{content:'';display:block;width:10px;height:10px;border-radius:50%;background:var(--config-color-background-fade);border:solid 8px var(--config-color-focus)}input[type=checkbox]:focus,input[type=radio]:focus{outline:0}input[type=checkbox]:focus:after,input[type=checkbox]:hover:after,input[type=radio]:focus:after,input[type=radio]:hover:after{outline:0;border-color:#000}input[type=checkbox]:checked:focus:after,input[type=checkbox]:checked:hover:after,input[type=radio]:checked:focus:after,input[type=radio]:checked:hover:after{border-color:var(--config-color-focus)}input[type=checkbox]:after{border-radius:4px}.input-copy{position:relative}.input-copy::before{content:'';display:block;position:absolute;height:50px;background:var(--config-color-fade-light);width:50px;right:0;border-radius:8px;z-index:1;margin:1px}.input-copy input,.input-copy textarea{padding-right:65px;width:calc(100% - 82px);resize:none}.input-copy .copy{position:absolute;z-index:2;top:0;right:0;border-left:solid 1px var(--config-color-fade-light);height:calc(100% - 2px);width:50px;line-height:50px;text-align:center;background:var(--config-color-background-focus);margin:1px;border-radius:0 9px 9px 0}.paging{color:var(--config-color-fade);padding:0;font-size:12px}.paging form{display:inline-block}.paging button:disabled{color:var(--config-color-background-fade);opacity:.6}.blue-snap iframe{-webkit-appearance:none;-moz-appearance:none;-webkit-transform:translateZ(0);box-sizing:content-box;color:#313131;height:40px;line-height:40px;border:solid 1px var(--config-color-fade-light);border-radius:10px;padding:5px 15px;font-size:16px;display:block;width:calc(100% - 32px);margin-bottom:30px;float:none!important;height:40px!important;width:calc(100% - 32px)!important;border:solid 1px #e2e2e2!important;background:0 0!important;position:static!important}.blue-snap iframe[type=file]{line-height:0;padding:15px;height:auto}.blue-snap iframe:focus{outline:0;border-color:#b3d7fd}.blue-snap iframe:disabled{color:var(--config-color-normal);background:var(--config-color-fade-super);opacity:1!important}.blue-snap iframe.strip{border:none;border-radius:0;padding:5px 0;width:100%;background-color:transparent;background-position:right 2px top 50%;border-bottom:solid 1px var(--config-color-fade-light);color:var(--config-color-placeholder)}.blue-snap iframe.strip:focus{border-color:#b3d7fd}.blue-snap iframe:-webkit-autofill::first-line{font-weight:300;font-size:16px}.blue-snap .error{font-size:12px;margin-top:-25px;color:var(--config-color-danger);height:40px;padding-left:2px}.pell{height:auto;padding-bottom:0;margin-bottom:0;padding-top:0;background:var(--config-color-background-input);line-height:normal!important;position:relative}.pell.hide{padding:0!important;height:1px;min-height:1px;max-height:1px;border:none;box-shadow:none;margin-bottom:20px;opacity:0}.pell [contenteditable=true]:empty:before{content:attr(placeholder);display:block;color:var(--config-color-placeholder)}.pell .pell-actionbar{border-bottom:solid 1px var(--config-color-fade-light);margin:0 -15px 15px -15px;padding:10px 15px;position:sticky;top:70px;background:var(--config-color-background-input);border-radius:10px 10px 0 0}.pell .pell-content{min-height:100px;display:block;padding:10px;margin:-10px;cursor:text}.pell .pell-content:focus{outline:0}.pell button{background:inherit;color:inherit;margin:0;padding:0;padding-right:15px;height:40px;line-height:40px;box-shadow:none;cursor:pointer;font-size:13px;border-radius:0}.pell button.pell-button-selected,.pell button:focus,.pell button:hover{color:var(--config-color-link)}.pell h1,.pell h2,.pell h3,.pell h4,.pell h5,.pell h6{text-align:inherit;margin-bottom:30px}.pell b,.pell strong{font-weight:700}.pell ol,.pell ul{margin:0 0 20px 0}.pell ol li,.pell ul li{display:list-item!important;list-style:inherit;list-style-position:inside!important;margin:0 20px 2px 20px}.pell ol li p,.pell ul li p{margin:0;display:inline}.pell ol li{list-style:decimal}.pell ol li::before{content:'';display:none}label.switch{line-height:42px}.switch,input[type=checkbox].button.switch,input[type=checkbox].switch{width:52px;height:32px;line-height:32px;border-radius:21px;background:var(--config-color-fade);display:inline-block;margin:0;padding:5px;padding-left:5px;padding-right:30px}.switch.on,.switch:checked,input[type=checkbox].button.switch.on,input[type=checkbox].button.switch:checked,input[type=checkbox].switch.on,input[type=checkbox].switch:checked{background-color:var(--config-color-success);padding-left:25px;padding-right:5px}.switch.on:focus,.switch.on:hover,.switch:checked:focus,.switch:checked:hover,input[type=checkbox].button.switch.on:focus,input[type=checkbox].button.switch.on:hover,input[type=checkbox].button.switch:checked:focus,input[type=checkbox].button.switch:checked:hover,input[type=checkbox].switch.on:focus,input[type=checkbox].switch.on:hover,input[type=checkbox].switch:checked:focus,input[type=checkbox].switch:checked:hover{background:var(--config-color-success)}.switch:focus,.switch:hover,input[type=checkbox].button.switch:focus,input[type=checkbox].button.switch:hover,input[type=checkbox].switch:focus,input[type=checkbox].switch:hover{background:var(--config-color-fade)}.switch:focus:after,.switch:hover:after,input[type=checkbox].button.switch:focus:after,input[type=checkbox].button.switch:hover:after,input[type=checkbox].switch:focus:after,input[type=checkbox].switch:hover:after{background:#fff}.switch:after,input[type=checkbox].button.switch:after,input[type=checkbox].switch:after{content:"";display:block;width:22px;height:22px;background:#fff;border-radius:50%;border:none;position:static;top:0}.password-meter{margin:-41px 10px 30px 10px;height:2px;background:0 0;max-width:100%;z-index:2;position:relative}.password-meter.weak{background:var(--config-color-danger)}.password-meter.medium{background:var(--config-color-success)}.password-meter.strong{background:var(--config-color-success)}.color-input:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.color-input .color-preview{width:53px;height:53px;float:left;margin-right:10px;background:#000;border-radius:10px;box-shadow:inset 0 0 3px #a0a0a0;position:relative}.color-input .color-preview input{opacity:0;position:absolute;top:0;bottom:0;left:0;right:0;width:100%;height:100%;cursor:pointer}.color-input input{text-transform:uppercase;float:left;width:calc(100% - 95px)}.grecaptcha-badge{box-shadow:none!important;border-radius:10px!important;overflow:hidden!important;background:#4d92df!important;bottom:25px}.grecaptcha-badge:hover{width:256px!important}.back{font-size:15px;line-height:24px;height:24px;margin-left:-15px;margin-top:-25px;margin-bottom:20px}.back span{font-weight:inherit!important}@media only screen and (max-width:550px){.back{margin-left:-5px}}hr{height:1px;background:var(--config-border-color)!important;border:none}hr.fade{opacity:.7}.upload{position:relative}.upload:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.upload input{position:absolute;top:0;left:0;opacity:0;cursor:pointer}.upload.single .preview{height:0;position:relative;padding-top:100%;width:100%;margin-bottom:15px!important}.upload.single .preview li{position:absolute;top:0;width:calc(100% - 20px);height:calc(100% - 20px);margin-right:0!important;margin-bottom:0!important}.upload .button{float:left;margin-right:10px!important}.upload .button.disabled,.upload .button.disabled:hover{background:0 0;color:inherit;border-color:inherit}.upload .count{float:left;line-height:52px}.upload .progress{background:var(--config-color-success);height:6px;border-radius:3px;margin-bottom:15px!important}.upload .preview:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.upload .preview li{float:left;margin-right:20px!important;margin-bottom:15px!important;background:var(--config-color-background-fade-super);width:150px;height:150px;line-height:148px;text-align:center;border-radius:20px;overflow:hidden;position:relative;cursor:pointer;border:solid 1px var(--config-color-background-dark)}.upload .preview li:hover:before{background:var(--config-color-focus)}.upload .preview li:before{content:'\ea11';font-family:icon;font-size:12px;position:absolute;width:20px;height:20px;display:block;top:8px;right:8px;text-align:center;line-height:20px;vertical-align:middle;border-radius:50%;background:#484848;color:#fff;z-index:1}.upload .preview li img{vertical-align:middle;max-height:150px;max-width:150px;-webkit-filter:drop-shadow(0 0 6px rgba(0, 0, 0, .3));filter:drop-shadow(0 0 1px rgba(0, 0, 0, .3))}.upload.wide .preview li{height:0;width:100%;position:relative;padding-top:30.547%;background:#e7e7e7;border-radius:10px;overflow:hidden;border:solid 1px #f9f9f9;margin:0}.upload.wide .preview li img{border-radius:10px;position:absolute;top:0;width:100%;display:block;opacity:1;max-width:inherit;max-height:inherit}ol{list-style:none;counter-reset:x-counter;padding:0}ol li{counter-increment:x-counter;line-height:30px;margin-bottom:30px;margin-left:45px}ol li::before{display:inline-block;content:counter(x-counter);color:var(--config-color-background-fade);background:var(--config-color-focus);border:solid 2px var(--config-color-focus);margin-right:15px;margin-left:-45px;width:26px;height:26px;border-radius:50%;text-align:center;line-height:26px}.required{color:var(--config-color-danger);font-size:8px;position:relative;top:-8px}.drop-list{position:relative;outline:0}.drop-list.open ul{display:block}.drop-list ul{position:relative;background:var(--config-color-background-fade);border-radius:10px;border-bottom:none;box-shadow:0 0 3px rgba(0,0,0,.05);display:block;padding:30px;border-radius:4px;box-shadow:0 0 6px rgba(0,0,0,.1);display:none;position:absolute;bottom:calc(100% + 10px);z-index:2;padding:0;left:-10px;max-width:280px;min-width:240px}.drop-list ul.padding-tiny{padding:5px}.drop-list ul.padding-xs{padding:10px}.drop-list ul.padding-small{padding:15px}.drop-list ul.y-scroll{overflow-y:auto}.drop-list ul.danger{background:var(--config-color-danger);color:#fff}.drop-list ul.danger .box{color:var(--config-color-normal);background:var(--config-color-background-fade)}.drop-list ul.danger>.button,.drop-list ul.danger>button{background:#fff;color:var(--config-color-danger)}.drop-list ul.note{background:var(--config-note-background)}.drop-list ul.focus{background:var(--config-color-focus);color:var(--config-color-background-fade)}.drop-list ul.focus .button,.drop-list ul.focus button{background:var(--config-color-background-fade);color:var(--config-color-focus)}.drop-list ul.line{background:0 0;border:solid 1px var(--config-color-background-dark);box-shadow:none}.drop-list ul.warning{background:var(--config-color-warning);color:#2d2d2d}.drop-list ul.warning .button,.drop-list ul.warning button{background:rgba(45,45,45,.8);color:var(--config-color-success)}.drop-list ul .tabs{border-bottom:solid 1px var(--config-border-color);margin:0 -30px;padding:0 30px!important}.drop-list ul>footer{margin:0 -30px -30px -30px;padding:15px 30px;background:var(--config-color-background-fade);border:solid 1px var(--config-border-color);border-radius:0 0 10px 10px}.drop-list ul hr{height:1px;background:var(--config-console-background);border:none;margin:30px -30px}.drop-list ul .label{position:absolute;top:10px;z-index:2;right:10px}.drop-list ul.fade-bottom{position:relative;overflow:hidden}.drop-list ul.fade-bottom:after{content:"";position:absolute;display:block;bottom:15px;width:100%;background:#000;background:linear-gradient(180deg,rgba(0,0,0,0) 0,var(--config-color-background-fade) 80%);height:100px;margin:0 -15px}.drop-list ul .header{position:static;height:40px;padding:20px 30px 20px 30px;margin-bottom:30px;margin:-30px -30px 20px -30px;background:var(--config-color-background-fade);border-bottom:solid 1px #efefef}.drop-list ul ul.numbers>li{position:relative;margin-left:30px;margin-right:50px}.drop-list ul ul.numbers>li hr{margin-left:-60px;margin-right:-80px}.drop-list ul ul.numbers>li .settings{position:absolute;top:3px;right:-50px}.drop-list ul ul.numbers>li::after{display:block;width:25px;height:25px;line-height:25px;font-size:13px;font-weight:500;border-radius:50%;background:var(--config-color-focus);color:var(--config-color-background);counter-increment:section;content:counter(section);text-align:center;position:absolute;top:3px;left:-45px}.drop-list ul .scroll{margin:0 -30px;overflow-y:scroll}.drop-list ul .scroll table{width:100%;margin:0}.drop-list ul ul.sortable{counter-reset:section}.drop-list ul ul.sortable>li [data-move-down].round,.drop-list ul ul.sortable>li [data-move-up].round,.drop-list ul ul.sortable>li [data-remove].round{background:var(--config-color-focus);color:var(--config-color-background-fade);width:25px;height:25px;line-height:25px;display:inline-block;text-align:center;padding:0;margin-right:5px}.drop-list ul ul.sortable>li [data-move-down].round:disabled,.drop-list ul ul.sortable>li [data-move-up].round:disabled,.drop-list ul ul.sortable>li [data-remove].round:disabled{display:none}.drop-list ul ul.sortable>li:first-child [data-move-up]{display:none}.drop-list ul ul.sortable>li:first-child [data-move-up]:disabled{display:inline-block;background:var(--config-color-background)}.drop-list ul ul.sortable>li:last-child [data-move-down]{display:none}.drop-list ul ul.sortable>li:last-child [data-move-down]:disabled{display:inline-block;background:var(--config-color-background)}.drop-list ul .toggle{position:relative;border-top:1px solid var(--config-console-background);border-bottom:1px solid var(--config-console-background);margin:0 -30px;padding:30px 30px 0 30px;height:65px;overflow:hidden}.drop-list ul .toggle.list{border-bottom:none}.drop-list ul .toggle.sorts button.ls-ui-open{width:calc(100% - 100px)}.drop-list ul .toggle button.ls-ui-open{right:0;position:absolute;top:0;width:100%;height:95px;background:0 0;opacity:.5;border-radius:0}.drop-list ul .toggle .icon-minus,.drop-list ul .toggle .icon-up-open{display:none}.drop-list ul .toggle .content{display:none}.drop-list ul .toggle.open{height:auto}.drop-list ul .toggle.open .icon-minus,.drop-list ul .toggle.open .icon-up-open{display:block}.drop-list ul .toggle.open .icon-down-open,.drop-list ul .toggle.open .icon-plus{display:none}.drop-list ul .toggle.open .content{display:block}.drop-list ul .list li{border-bottom:solid 2px var(--config-border-color);margin:0 -30px 30px -30px;padding:0 30px 30px 30px}.drop-list ul .list li:last-child{padding-bottom:0;margin-bottom:0;border-bottom:none}@media only screen and (max-width:550px){.drop-list ul .list li .actions{float:none}}.drop-list ul .list li .avatar{display:block}.drop-list ul .list li .avatar.inline{display:inline-block}.drop-list ul.new{text-align:center}.drop-list ul.new i{font-size:80px;line-height:80px;font-family:Poppins,sans-serif;font-style:normal;font-weight:300}.drop-list ul.new b{margin-top:20px;display:block}.drop-list ul .info{margin:0 -30px;padding:20px 30px;background:var(--config-modal-note-background);color:var(--config-modal-note-color);border-top:solid 1px var(--config-modal-note-border);border-bottom:solid 1px var(--config-modal-note-border)}.drop-list ul .info hr{background:var(--config-modal-note-border)!important}.drop-list ul .table-wrap{margin:0 -30px;overflow-y:scroll}.drop-list ul .table-wrap table{margin:0}.drop-list ul:before{border:solid;border-color:var(--config-color-background-fade) transparent;border-width:8px 8px 0 8px;bottom:-8px;content:"";position:absolute;z-index:99;left:30px}.drop-list ul.arrow-end:before{right:30px;left:unset}.drop-list ul.no-arrow::before{display:none}.drop-list ul li{border-bottom:solid 1px var(--config-color-fade-super);margin:0;padding:0}.drop-list ul li:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.drop-list ul li:first-child{border-radius:4px 4px 0 0}.drop-list ul li:last-child{border-radius:0 0 4px 4px}.drop-list ul li:hover{background:var(--config-color-fade-super)}.drop-list ul li:first-child:hover,.drop-list ul li:last-child:hover{border-color:transparent}.drop-list ul li .link,.drop-list ul li a,.drop-list ul li button.link{display:block;vertical-align:middle;height:auto;line-height:30px;display:inline-block;padding:10px 15px!important;color:inherit;font-size:14px;border:none;cursor:pointer;width:calc(100% - 30px);text-align:left;box-sizing:content-box}.drop-list ul li.disabled .link:hover,.drop-list ul li.disabled a:hover{background:0 0}.drop-list ul li .avatar{width:30px;height:30px;margin-right:10px;float:left}.drop-list ul li i.avatar{text-align:center;background:var(--config-color-dark);color:var(--config-color-background-fade)}.drop-list ul li:last-child{border-bottom:none}.drop-list.bottom ul{bottom:auto;margin-top:-2px}.drop-list.bottom ul:before{bottom:auto;top:-8px;border-width:0 8px 8px 8px}.drop-list.end ul{right:-10px;left:auto}.disabled{opacity:.2;cursor:default}.disabled .button,.disabled .link,.disabled a,.disabled button{cursor:default!important}.disabled .button:hover,.disabled .link:hover,.disabled a:hover,.disabled button:hover{background:0 0}.tags{-webkit-appearance:none;-moz-appearance:none;-webkit-transform:translateZ(0);box-sizing:content-box;color:#313131;height:40px;line-height:40px;border:solid 1px var(--config-color-fade-light);border-radius:10px;padding:5px 15px;font-size:16px;display:block;width:calc(100% - 32px);margin-bottom:30px;background:var(--config-color-background-input);min-height:42px;height:auto;cursor:text}.tags[type=file]{line-height:0;padding:15px;height:auto}.tags:focus{outline:0;border-color:#b3d7fd}.tags:disabled{color:var(--config-color-normal);background:var(--config-color-fade-super);opacity:1!important}.tags.strip{border:none;border-radius:0;padding:5px 0;width:100%;background-color:transparent;background-position:right 2px top 50%;border-bottom:solid 1px var(--config-color-fade-light);color:var(--config-color-placeholder)}.tags.strip:focus{border-color:#b3d7fd}.tags:-webkit-autofill::first-line{font-weight:300;font-size:16px}.tags .add{display:inline-block!important;border:none;padding:0;width:auto;margin:0;max-width:100%;min-width:200px}.tags ul.tags-list{display:inline;white-space:pre-line}.tags ul.tags-list li{display:inline-block!important;margin-right:10px;font-size:16px;padding:5px 10px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tags ul.tags-list li::before{float:right;content:'\ea11';font-family:icon;font-style:normal;display:inline-block;text-align:center;line-height:16px;width:16px;height:16px;font-size:12px;background:#000;color:#fff;border-radius:50%;margin-top:4px;margin-bottom:4px;margin-left:6px;margin-right:0}.switch-theme{background:var(--config-switch-background);border-radius:19px;height:26px;width:44px;margin:9px 0}.switch-theme button{padding:3px;display:block;background:0 0;height:26px;width:100%}.switch-theme i{background:var(--config-color-background-fade);border-radius:50%;height:18px;width:18px;line-height:18px;font-size:10px;padding:0;margin:0;color:var(--config-color-fade)}.switch-theme i.force-light{float:right}.switch-theme i.force-dark{float:left}.dot{width:20px;height:20px;background:var(--config-color-fade);border-radius:50%;display:inline-block;vertical-align:middle;margin:0!important;padding:0!important}.dot.danger{background:var(--config-color-danger)!important}.dot.success{background:var(--config-color-success)!important}.dot.warning{background:var(--config-color-warning)!important}.dot.info{background:var(--config-color-info)!important}.ide{background-color:var(--config-prism-background);overflow:hidden;position:relative;z-index:1;box-shadow:0 2px 4px 0 rgba(50,50,93,.3);border-radius:10px;margin-bottom:30px}.ide *{font-family:"Source Code Pro",monospace}.ide[data-lang]::after{content:attr(data-lang-label);display:inline-block;background:#fff;color:#000;position:absolute;top:15px;padding:5px 10px;border-radius:15px;font-size:10px;right:10px;opacity:.95}.ide[data-lang=bash]::after{background:var(--config-language-bash);color:var(--config-language-bash-contrast)}.ide[data-lang=javascript]::after{background:var(--config-language-javascript);color:var(--config-language-javascript-contrast)}.ide[data-lang=web]::after{background:var(--config-language-web);color:var(--config-language-web-contrast)}.ide[data-lang=html]::after{background:var(--config-language-html);color:var(--config-language-html-contrast)}.ide[data-lang=php]::after{background:var(--config-language-php);color:var(--config-language-php-contrast)}.ide[data-lang=nodejs]::after{background:var(--config-language-nodejs);color:var(--config-language-nodejs-contrast)}.ide[data-lang=ruby]::after{background:var(--config-language-ruby);color:var(--config-language-ruby-contrast)}.ide[data-lang=python]::after{background:var(--config-language-python);color:var(--config-language-python-contrast)}.ide[data-lang=go]::after{background:var(--config-language-go);color:var(--config-language-go-contrast)}.ide[data-lang=dart]::after{background:var(--config-language-dart);color:var(--config-language-dart-contrast)}.ide[data-lang=flutter]::after{background:var(--config-language-flutter);color:var(--config-language-flutter-contrast)}.ide[data-lang=android]::after{background:var(--config-language-android);color:var(--config-language-android-contrast)}.ide[data-lang=swift]::after{background:var(--config-language-swift);color:var(--config-language-swift-contrast)}.ide[data-lang=kotlin]::after{background:var(--config-language-kotlin);color:var(--config-language-kotlin-contrast)}.ide[data-lang=java]::after{background:var(--config-language-java);color:var(--config-language-java-contrast)}.ide[data-lang=yaml]::after{background:var(--config-language-yaml);color:var(--config-language-yaml-contrast)}.ide .tag{color:inherit!important;background:0 0!important;padding:inherit!important;font-size:inherit!important;line-height:14px}.ide .copy{cursor:pointer;content:attr(data-lang);display:inline-block;background:#fff;color:#000;position:absolute;transform:translateX(-50%);bottom:-20px;padding:5px 10px;border-radius:15px;font-size:10px;font-style:normal;left:50%;opacity:0;transition:bottom .3s,opacity .3s;line-height:normal;font-family:Poppins,sans-serif}.ide .copy::before{padding-right:5px}.ide:hover .copy{transition:bottom .3s,opacity .3s;opacity:.9;bottom:16px}.ide pre{-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none;color:#e6ebf1;font-weight:400;line-height:20px;font-size:13px;margin:0;padding:20px;padding-left:60px}.ide.light{box-shadow:0 2px 4px 0 rgba(50,50,93,.1);background-color:#fff}.ide.light pre{color:#414770}.ide.light .token.cdata,.ide.light .token.comment,.ide.light .token.doctype,.ide.light .token.prolog{color:#91a2b0}.ide.light .token.attr-name,.ide.light .token.builtin,.ide.light .token.char,.ide.light .token.inserted,.ide.light .token.selector,.ide.light .token.string{color:#149570}.ide.light .token.punctuation{color:#414770}.ide.light .language-css .token.string,.ide.light .style .token.string,.ide.light .token.entity,.ide.light .token.operator,.ide.light .token.url,.ide.light .token.variable{color:#414770}.ide.light .line-numbers .line-numbers-rows{background:#f2feef}.ide.light .line-numbers-rows>span:before{color:#5dc79e}.ide.light .token.keyword{color:#6772e4;font-weight:500}code[class*=language-],pre[class*=language-]{text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4}pre[class*=language-]{overflow:auto}:not(pre)>code[class*=language-]{padding:.1em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#6b7c93}.token.punctuation{color:#f8f8f2}.namespace{opacity:.7}.token.constant,.token.deleted,.token.property,.token.symbol,.token.tag{color:#f92672}.token.boolean,.token.number{color:#f79a59}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#3ecf8e}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url,.token.variable{color:#f8f8f2}.token.atrule,.token.attr-value,.token.class-name,.token.function{color:#45b2e8}.token.keyword{color:#7795f8}.token.important,.token.regex{color:#fd971f}.token.italic{font-style:italic}.token.entity{cursor:help}pre[class*=language-].line-numbers{position:relative;padding-left:60px;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{background:var(--config-prism-numbers);position:absolute;pointer-events:none;top:-20px;bottom:-21px;padding:20px 0;font-size:100%;left:-60px;width:40px;letter-spacing:-1px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{padding-right:5px;pointer-events:none;display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#636365;display:block;padding-right:.8em;text-align:right}.u-table-layout-normal{table-layout:revert!important}.u-margin-inline-end-16{margin-inline-end:16px!important}.console{width:100%;padding:0;overscroll-behavior:none}.console body{position:relative;width:calc(100% - 320px);padding-top:70px;padding-bottom:0;padding-right:50px;padding-left:270px;margin:0;color:var(--config-color-normal);background:var(--config-console-background)}.console body .project-only{display:none!important}.console body.show-nav .project-only{display:inline-block!important}.console body.hide-nav{padding-left:50px;width:calc(100% - 100px)}.console body.hide-nav header{width:calc(100% - 50px)}.console body.hide-nav header .logo{display:inline-block}.console body.hide-nav .console-back{display:block}.console body.hide-nav .console-index{display:none}.console body.hide-nav .account{display:none}.console body.index .console-back{display:none}.console body.index .console-index{display:block}.console body.index .account{display:block}.console body .console-index{display:block}.console body .console-back{display:none}.console main{min-height:480px}.console header{position:fixed;top:0;width:calc(100% - 280px);height:40px;line-height:40px;padding:15px 30px;background:var(--config-color-background-fade);box-shadow:0 0 2px rgba(0,0,0,.1);margin:0 -50px;z-index:2;font-size:14px}.console header .logo{display:none;border:none}.console header .logo:hover{border:none;opacity:.8}.console header .logo img{height:26px;margin:7px 0}.console header .setup-new{width:40px;height:40px;line-height:40px}.console header .list{width:240px}.console header .list select{height:40px;line-height:40px;padding-top:0;padding-bottom:0;border:none;border-radius:26px;background-color:var(--config-console-nav-switch-background);color:var(--config-console-nav-switch-color)}.console header .account{margin-left:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.console header .switch-theme{margin:2px 0}.console header .avatar{height:40px;width:40px}.console header .account-button{background:0 0;position:absolute;width:100%;height:40px;border-radius:0;z-index:1}.console header .notifications{position:relative;font-size:20px}.console header .notifications a{color:#1b3445}.console header .notifications:after{position:absolute;content:"";display:block;background:var(--config-color-danger);width:8px;height:8px;border-radius:50%;top:3px;right:3px}.console header nav{background:#1b3445;background:linear-gradient(var(--config-console-nav-start),var(--config-console-nav-end));color:#788c99;position:fixed;height:100%;width:220px;top:0;left:0}.console header nav .logo{height:39px;padding:15px 20px;display:block}.console header nav .logo img{display:inline-block;margin-top:7px;margin-bottom:14px}.console header nav .logo svg g{fill:var(--config-color-focus)}.console header nav .icon{display:block;border:none;margin:18px 10px 50px 10px}.console header nav .icon img{display:block}.console header nav .icon:hover{border-bottom:none}.console header nav .icon:hover svg g{fill:var(--config-color-focus)}.console header nav .container{overflow:auto;height:calc(100% - 133px);width:100%}.console header nav .project-box{padding:20px;text-align:center;display:block;border:none;line-height:100px;height:100px}.console header nav .project-box img{max-height:80px;max-width:80%;display:inline-block;vertical-align:middle}.console header nav .project{display:block;padding:85px 25px 20px 25px;color:#788c99;position:relative;border:none;height:20px}.console header nav .project:hover{border-bottom:none}.console header nav .project .name{height:20px;line-height:20px;margin:0;padding:0;display:inline-block;max-width:100%}.console header nav .project .arrow{display:block;position:absolute;right:5px;top:10px;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #788c99;transform:rotate(225deg)}.console header nav .project img{position:absolute;bottom:40px;display:block;margin-bottom:10px;max-height:35px;max-width:40%}.console header nav .subtitle{padding:0 30px;display:block;font-size:12px;font-weight:300}.console header nav .links{margin-bottom:15px!important}.console header nav .links.top{border:none;padding-bottom:0;margin-bottom:5px!important}.console header nav .links.bottom{position:absolute;bottom:0;left:0;right:0;padding-bottom:0;border:none;margin-bottom:0!important;box-shadow:0 0 10px rgba(0,0,0,.1)}.console header nav .links.bottom a{border-top:solid 1px var(--config-console-nav-border);border-bottom:none}.console header nav .links .sub{display:inline-block;border:none;width:25px;height:25px;line-height:25px;border-radius:50%;padding:0;background:var(--config-color-focus);color:#fff;text-align:center;font-size:12px;margin:18px}.console header nav .links .sub i{width:auto;margin:0}.console header nav .links .sub:hover{border:none}.console header nav .links a{padding:8px 20px;border:none;display:flex;color:#87a5b9;font-weight:400;border-left:solid 5px transparent;font-size:13px}.console header nav .links a i{margin-right:8px;width:22px;display:inline-block}.console header nav .links a.selected,.console header nav .links a:hover{color:#e4e4e4}.console header nav:after{content:'';display:block;position:absolute;background:#302839;height:100px;width:100%;bottom:-100px}.console>footer{width:calc(100% + 100px);margin:0 -50px;box-sizing:border-box;background:0 0;padding-right:30px;padding-left:30px}.console>footer ul{float:none;text-align:center}.console>footer ul li{float:none;display:inline-block}.console .projects{position:relative}.console .projects:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.console .projects li{float:left;margin-right:50px;margin-bottom:50px;width:270px}.console .projects li:nth-child(3n){margin-right:0}.console .dashboard{padding:20px;overflow:visible;position:relative;z-index:1;margin-bottom:2px}.console .dashboard .chart{width:80%}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.console .dashboard .chart{width:100%}}.console .dashboard hr{margin:20px -25px;height:2px;background:var(--config-console-background)}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.console .dashboard hr{height:3px}}.console .dashboard footer{margin:-20px;padding:20px;background:#fcfeff;border:none;color:var(--config-color-link)}.console .dashboard .col{position:relative}.console .dashboard .col:last-child:after{display:none}.console .dashboard .col:after{content:"";display:block;width:2px;background:var(--config-console-background);position:absolute;top:-20px;bottom:-20px;right:24px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.console .dashboard .col:after{width:calc(100% + 40px);height:3px;position:static;margin:20px -20px}}.console .dashboard .value{color:var(--config-color-focus);vertical-align:bottom;line-height:45px}.console .dashboard .value.small{line-height:35px}.console .dashboard .value .sum{font-size:45px;line-height:45px;font-weight:700;vertical-align:bottom}.console .dashboard .value .sum.small{font-size:25px;line-height:25px}.console .dashboard .unit{font-weight:500;line-height:20px;vertical-align:bottom;font-size:16px;display:inline-block;margin-bottom:5px;margin-left:5px;color:var(--config-color-focus)}.console .dashboard .metric{color:var(--config-color-focus);font-weight:400;font-size:13px;line-height:16px}.console .dashboard .range{color:var(--config-color-fade);font-weight:400;font-size:14px;line-height:16px}.console .dashboard a{display:block;font-weight:400;font-size:14px;line-height:16px;padding:0;border:none}.console .dashboard .chart-bar{height:4rem;width:auto;display:flex;align-items:flex-end}@media only screen and (min-width:1199px){.console .dashboard .chart-bar{padding-right:15px}}.console .dashboard .chart-bar .bar{width:12.5%;background-color:var(--config-color-chart-fade);margin:0 2px;border-top:2px solid var(--config-color-chart)}.console .dashboard .chart-bar .bar:hover{background-color:var(--config-color-chart)}.console .dashboard .chart-bar .bar.bar-100{height:100%}.console .dashboard .chart-bar .bar.bar-90{height:90%}.console .dashboard .chart-bar .bar.bar-80{height:80%}.console .dashboard .chart-bar .bar.bar-70{height:70%}.console .dashboard .chart-bar .bar.bar-60{height:60%}.console .dashboard .chart-bar .bar.bar-50{height:50%}.console .dashboard .chart-bar .bar.bar-40{height:40%}.console .dashboard .chart-bar .bar.bar-30{height:30%}.console .dashboard .chart-bar .bar.bar-20{height:20%}.console .dashboard .chart-bar .bar.bar-10{height:10%}.console .dashboard .chart-bar .bar.bar-0{height:0%}.console .dashboard .chart-bar .bar.bar-0{border-top:1px solid var(--config-color-chart)}.console .dashboard .chart-bar .bar.bar-5{height:5%}.console .chart-metric{width:19%}@media only screen and (min-width:551px) and (max-width:1198px),only screen and (max-width:550px){.console .chart-metric{width:100%}}.console .chart{width:100%;position:relative;height:0;padding-top:20px;padding-bottom:26%;margin-right:-2px;overflow:hidden;background-color:var(--config-color-background-fade);background-image:linear-gradient(transparent 1px,transparent 1px),linear-gradient(90deg,transparent 1px,transparent 1px),linear-gradient(var(--config-border-color) 1px,transparent 1px),linear-gradient(90deg,var(--config-border-color) 1px,transparent 1px);background-size:100px 100px,100px 100px,20px 20px,20px 20px;background-position:-2px -2px,-2px -2px,-1px -1px,-1px -1px;background-repeat:round;border:solid 1px var(--config-border-color);border-right:solid 1px transparent;border-bottom:solid 1px transparent}.console .chart.background-image-no{background-image:none}.console .chart.border-no{border:none}@media only screen and (min-width:551px) and (max-width:1198px),only screen and (max-width:550px){.console .chart{width:100%;padding-bottom:32%;float:none;margin-bottom:20px}}.console .chart canvas{position:absolute;bottom:0;display:block;height:100%;width:100%}.console .chart-notes{font-size:12px}.console .chart-notes.crud li.create,.console .chart-notes.crud li:nth-child(1){color:#00b680}.console .chart-notes.crud li.create::before,.console .chart-notes.crud li:nth-child(1)::before{background:#00b680}.console .chart-notes.crud li.read,.console .chart-notes.crud li:nth-child(2){color:#009cde}.console .chart-notes.crud li.read::before,.console .chart-notes.crud li:nth-child(2)::before{background:#009cde}.console .chart-notes.crud li.update,.console .chart-notes.crud li:nth-child(3){color:#696fd7}.console .chart-notes.crud li.update::before,.console .chart-notes.crud li:nth-child(3)::before{background:#696fd7}.console .chart-notes.crud li.delete,.console .chart-notes.crud li:nth-child(4){color:#da5d95}.console .chart-notes.crud li.delete::before,.console .chart-notes.crud li:nth-child(4)::before{background:#da5d95}.console .chart-notes li{line-height:20px;display:inline-block;margin-right:15px}.console .chart-notes li::before{display:inline-block;content:'';width:14px;height:14px;background:var(--config-color-normal);border-radius:50%;margin-right:8px;vertical-align:middle}.console .chart-notes li.blue,.console .chart-notes li:nth-child(1){color:var(--config-color-chart)}.console .chart-notes li.blue::before,.console .chart-notes li:nth-child(1)::before{background:var(--config-color-chart)}.console .chart-notes li.green,.console .chart-notes li:nth-child(2){color:#4eb55b}.console .chart-notes li.green::before,.console .chart-notes li:nth-child(2)::before{background:#4eb55b}.console .chart-notes li.orange,.console .chart-notes li:nth-child(3){color:#ec9323}.console .chart-notes li.orange::before,.console .chart-notes li:nth-child(3)::before{background:#ec9323}.console .chart-notes li.red,.console .chart-notes li:nth-child(4){color:#dc3232}.console .chart-notes li.red::before,.console .chart-notes li:nth-child(4)::before{background:#dc3232}.console .community a{padding:0 10px;display:inline-block}.console .link-list li{margin-bottom:15px}.console .link-list i{display:inline-block;width:30px;height:30px;line-height:30px;text-align:center;background:var(--config-color-fade);color:var(--config-color-fade-super);border-radius:50%;margin-right:15px}.console .link-list i.fade{background:0 0;color:var(--config-color-fade)}.console .provider{width:50px;height:50px;background:var(--config-color-background-focus);color:#868686;line-height:50px;text-align:center;font-size:25px;border-radius:50%}.console .provider.facebook{color:#fff;background:#3b5998}.console .provider.twitter{color:#fff;background:#55beff}.console .provider.telegram{color:#fff;background:#3ba9e1}.console .provider.github{color:#fff;background:#24292e}.console .provider.whatsapp{color:#fff;background:#25d366}.console .provider.linkedin{color:#fff;background:#1074af}.console .provider.microsoft{color:#fff;background:#137ad4}.console .provider.google{color:#fff;background:#4489f1}.console .provider.bitbucket{color:#fff;background:#2a88fb}.console .provider.gitlab{color:#faa238;background:#30353e}.console .provider.instagram{color:#fff;background:radial-gradient(circle at 30% 107%,#fdf497 0,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285aeb 90%)}.console .premium{z-index:3;margin-top:320px}.console .premium .message{height:190px;overflow:hidden;position:absolute;top:-280px}.console .premium:after{content:'';position:absolute;top:0;left:-20px;right:-20px;bottom:-20px;background:var(--config-color-background);opacity:.7;z-index:300}.console .app-section{height:90px}.console .confirm{background:var(--config-color-link);color:#fff;border-radius:25px;padding:12px;line-height:28px;text-align:center}.console .confirm .action{font-weight:500;cursor:pointer}.console .platforms{overflow:hidden}.console .platforms .box{overflow:hidden}.console .platforms .box img{width:50px;margin:0 auto;margin-bottom:20px}.console .platforms .box .cover{margin:-30px -30px 30px -30px;padding:30px}.console .platforms .box .cover.android{background:#a4ca24}.console .platforms .box .cover.android h1{color:#fff;font-size:18px;margin-top:20px}.console .platforms .col{text-align:center;line-height:30px}.console .platforms a{display:block;margin:-20px;padding:20px}.console .platforms a:hover{background:#fbfeff}.console .platforms img{display:block;margin:0 30px;width:calc(100% - 60px);border-radius:50%;margin-bottom:20px}.console .document-nav{display:none;position:sticky;top:90px}@media only screen and (min-width:1380px){.console .document-nav{display:block}}.console .document-nav ul{position:absolute;width:200px;left:-260px}.console .document-nav ul li{margin-bottom:20px}.console .document-nav ul li .selected{font-weight:500}@media only screen and (min-width:1199px){.console .logo .top{display:none!important}}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.console>header{width:calc(100% - 30px)!important;margin:0 -30px;padding:15px}.console>header nav{width:100%;height:70px;overflow:hidden}.console>header nav.close{background:0 0}.console>header nav.close .logo .nav{display:none!important}.console>header nav.open{height:100%}.console>header nav.open .logo .top{display:none!important}.console>header nav.open .bottom{display:block!important}.console>header nav.open button{color:#87a5b9}.console>header nav button{margin:9px;background:0 0;color:var(--config-color-normal)}.console>header nav button:focus,.console>header nav button:hover{background:0 0}.console>header nav .logo{display:block!important;position:absolute;top:0;left:50%;margin:auto;transform:translateX(-50%)}.console>header nav .bottom{display:none!important}.console>footer{width:auto;margin:50px -30px 0 -30px!important;padding:0 30px 30px 30px}.console body{height:"calc(100% - 70px)"!important;width:calc(100% - 60px)!important;padding:70px 30px 0 30px!important}.console .cover{padding:25px 30px;margin:0 -30px}}@media only screen and (max-width:550px){.console body{height:"calc(100% - 70px)"!important;width:calc(100% - 40px)!important;padding:70px 20px 0 20px!important}.console .cover{padding:20px 20px;margin:0 -20px}.console>header{margin:0 -20px}.console>header .list{width:175px;font-size:14px}.console>footer{margin:50px -20px 0 -20px!important;padding:0 20px 20px 20px}}.dev-feature{display:none}.prod-feature{display:none}.development .dev-feature{display:block;opacity:.6!important;outline:solid #ff0 3px;outline-offset:3px}.development .dev-feature.dev-inline{display:inline-block}.development .prod-feature{display:none}.production .dev-feature{display:none}.production .prod-feature{display:block}.search{opacity:1!important}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.search button{margin-top:20px}}html.home body{padding:0 50px;color:var(--config-color-normal)}html.home .logo a{display:block}html.home .logo a:hover{opacity:.8}html.home .logo img{max-height:35px;width:198px;margin:45px auto 25px auto}html.home footer{background:0 0;text-align:center}html.home main{min-height:400px}.alerts ul{width:100%;visibility:hidden;position:fixed;padding:0;right:0;left:0;color:var(--config-color-normal);z-index:1001;margin:0 auto;bottom:15px;max-width:560px}.alerts ul li{margin:10px 0 0 0;padding:0}.alerts ul li div.message{position:relative;padding:12px 35px;margin:0 auto;list-style:none;background:var(--config-color-background-dark);text-align:center;font-size:14px;border-radius:10px;line-height:16px;min-height:16px;box-shadow:0 0 10px rgba(0,0,0,.05);opacity:.95}.alerts ul li div.message a,.alerts ul li div.message span{font-weight:600}.alerts ul li div.message a{border-bottom:dotted 1px var(--config-color-normal)}.alerts ul li div.message i{cursor:pointer;position:absolute;font-size:12px;line-height:24px;top:8px;left:8px;color:var(--config-color-background-dark);background:var(--config-color-normal);width:24px;height:24px;border-radius:50%}.alerts ul li div.message.error{color:#fff!important;background:var(--config-color-danger)!important}.alerts ul li div.message.error a{color:#fff!important;border-bottom:dotted 1px #fff!important}.alerts ul li div.message.error i{color:var(--config-color-danger);background:#fff}.alerts ul li div.message.success{color:#fff!important;background:var(--config-color-success)!important}.alerts ul li div.message.success a{color:#fff;border-bottom:dotted 1px #fff}.alerts ul li div.message.success i{color:var(--config-color-success);background:#fff}.alerts ul li div.message.warning{color:var(--config-color-normal)!important;background:var(--config-color-warning)!important}.alerts ul li div.message.warning a{color:var(--config-color-normal)!important;border-bottom:dotted 1px var(--config-color-normal)!important}.alerts ul li div.message.warning i{color:#fff;background:var(--config-color-normal)!important}.alerts ul li div.message.open{display:block}.alerts ul li div.message.close{display:none}.alerts .cookie-alert{background:var(--config-color-focus-fade)!important;color:var(--config-color-focus)}.alerts .cookie-alert a{color:var(--config-color-focus);font-weight:400;border-bottom:dotted 1px var(--config-color-focus)!important}.alerts .cookie-alert i{color:var(--config-color-focus-fade)!important;background:var(--config-color-focus)!important}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.alerts ul{top:auto;bottom:0;max-width:100%;left:0}.alerts ul li{margin:5px 0 0 0}.alerts ul li div.message{border-radius:0}}.show-nav .alerts ul{left:220px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.show-nav .alerts ul{left:0}}article{overflow-wrap:break-word;word-wrap:break-word}article h1{font-size:36px}article h2{font-size:24px}article h3{font-size:20px}article h4{font-size:20px}article h5{font-size:18px}article h6{font-size:16px}article h1,article h2,article h3,article h4,article h5,article h6{margin-top:30px!important;margin-bottom:30px!important}article p{line-height:32px;font-size:16px}article .update{display:block;margin-top:50px!important}article table{width:100%;margin:0;margin-bottom:30px!important;border-radius:0;border-bottom:solid 1px var(--config-border-color)}article table thead td{font-weight:500;padding:5px 15px}article table td,article table th{padding:15px;height:auto}article table td:first-child,article table th:first-child{padding-left:10px}article table td:last-child,article table th:last-child{padding-right:10px}article table td p,article table th p{font-size:inherit;line-height:inherit}article table td p:last-child,article table th p:last-child{margin:0}.avatar-container{position:relative}.avatar-container .corner{position:absolute;bottom:-3px;right:-3px}.avatar{width:60px;height:60px;border-radius:50%;background:var(--config-color-background-focus);display:inline-block;overflow:hidden;box-shadow:0 0 6px rgba(0,0,0,.09);position:relative;z-index:1;opacity:1!important}.avatar.hide{display:none}.avatar:before{width:100%;height:100%;z-index:0}.avatar.inline{display:inline-block;vertical-align:middle}.avatar.trans{background:0 0}.avatar .no-shadow{box-shadow:none}.avatar.xs{width:30px;height:30px}.avatar.xxs{width:20px;height:20px}.avatar.small{width:50px;height:50px}.avatar.big{width:100px;height:100px}.avatar.huge{width:150px;height:150px}.box{position:relative;background:var(--config-color-background-fade);border-radius:10px;border-bottom:none;box-shadow:0 0 3px rgba(0,0,0,.05);display:block;padding:30px}.box.padding-tiny{padding:5px}.box.padding-xs{padding:10px}.box.padding-small{padding:15px}.box.y-scroll{overflow-y:auto}.box.danger{background:var(--config-color-danger);color:#fff}.box.danger .box{color:var(--config-color-normal);background:var(--config-color-background-fade)}.box.danger>.button,.box.danger>button{background:#fff;color:var(--config-color-danger)}.box.note{background:var(--config-note-background)}.box.focus{background:var(--config-color-focus);color:var(--config-color-background-fade)}.box.focus .button,.box.focus button{background:var(--config-color-background-fade);color:var(--config-color-focus)}.box.line{background:0 0;border:solid 1px var(--config-color-background-dark);box-shadow:none}.box.warning{background:var(--config-color-warning);color:#2d2d2d}.box.warning .button,.box.warning button{background:rgba(45,45,45,.8);color:var(--config-color-success)}.box .tabs{border-bottom:solid 1px var(--config-border-color);margin:0 -30px;padding:0 30px!important}.box>footer{margin:0 -30px -30px -30px;padding:15px 30px;background:var(--config-color-background-fade);border:solid 1px var(--config-border-color);border-radius:0 0 10px 10px}.box hr{height:1px;background:var(--config-console-background);border:none;margin:30px -30px}.box .label{position:absolute;top:10px;z-index:2;right:10px}.box.fade-bottom{position:relative;overflow:hidden}.box.fade-bottom:after{content:"";position:absolute;display:block;bottom:15px;width:100%;background:#000;background:linear-gradient(180deg,rgba(0,0,0,0) 0,var(--config-color-background-fade) 80%);height:100px;margin:0 -15px}.box .header{position:static;height:40px;padding:20px 30px 20px 30px;margin-bottom:30px;margin:-30px -30px 20px -30px;background:var(--config-color-background-fade);border-bottom:solid 1px #efefef}.box ul.numbers>li{position:relative;margin-left:30px;margin-right:50px}.box ul.numbers>li hr{margin-left:-60px;margin-right:-80px}.box ul.numbers>li .settings{position:absolute;top:3px;right:-50px}.box ul.numbers>li::after{display:block;width:25px;height:25px;line-height:25px;font-size:13px;font-weight:500;border-radius:50%;background:var(--config-color-focus);color:var(--config-color-background);counter-increment:section;content:counter(section);text-align:center;position:absolute;top:3px;left:-45px}.box .scroll{margin:0 -30px;overflow-y:scroll}.box .scroll table{width:100%;margin:0}.box ul.sortable{counter-reset:section}.box ul.sortable>li [data-move-down].round,.box ul.sortable>li [data-move-up].round,.box ul.sortable>li [data-remove].round{background:var(--config-color-focus);color:var(--config-color-background-fade);width:25px;height:25px;line-height:25px;display:inline-block;text-align:center;padding:0;margin-right:5px}.box ul.sortable>li [data-move-down].round:disabled,.box ul.sortable>li [data-move-up].round:disabled,.box ul.sortable>li [data-remove].round:disabled{display:none}.box ul.sortable>li:first-child [data-move-up]{display:none}.box ul.sortable>li:first-child [data-move-up]:disabled{display:inline-block;background:var(--config-color-background)}.box ul.sortable>li:last-child [data-move-down]{display:none}.box ul.sortable>li:last-child [data-move-down]:disabled{display:inline-block;background:var(--config-color-background)}.box .toggle{position:relative;border-top:1px solid var(--config-console-background);border-bottom:1px solid var(--config-console-background);margin:0 -30px;padding:30px 30px 0 30px;height:65px;overflow:hidden}.box .toggle.list{border-bottom:none}.box .toggle.sorts button.ls-ui-open{width:calc(100% - 100px)}.box .toggle button.ls-ui-open{right:0;position:absolute;top:0;width:100%;height:95px;background:0 0;opacity:.5;border-radius:0}.box .toggle .icon-minus,.box .toggle .icon-up-open{display:none}.box .toggle .content{display:none}.box .toggle.open{height:auto}.box .toggle.open .icon-minus,.box .toggle.open .icon-up-open{display:block}.box .toggle.open .icon-down-open,.box .toggle.open .icon-plus{display:none}.box .toggle.open .content{display:block}.box .list li{border-bottom:solid 2px var(--config-border-color);margin:0 -30px 30px -30px;padding:0 30px 30px 30px}.box .list li:last-child{padding-bottom:0;margin-bottom:0;border-bottom:none}@media only screen and (max-width:550px){.box .list li .actions{float:none}}.box .list li .avatar{display:block}.box .list li .avatar.inline{display:inline-block}.box.new{text-align:center}.box.new i{font-size:80px;line-height:80px;font-family:Poppins,sans-serif;font-style:normal;font-weight:300}.box.new b{margin-top:20px;display:block}.box .info{margin:0 -30px;padding:20px 30px;background:var(--config-modal-note-background);color:var(--config-modal-note-color);border-top:solid 1px var(--config-modal-note-border);border-bottom:solid 1px var(--config-modal-note-border)}.box .info hr{background:var(--config-modal-note-border)!important}.box .table-wrap{margin:0 -30px;overflow-y:scroll}.box .table-wrap table{margin:0}a.box{border-right:none;border-left:none}a.box:hover{box-shadow:0 0 1px rgba(0,0,0,.2);opacity:.7}.box-asidex{padding-right:25px!important;padding-left:70px;right:0;background:#f9f9f9;border-radius:0 10px 10px 0;height:calc(100% - 30px);position:absolute;padding-top:30px}.box-asidex:after{content:"";display:block;position:absolute;height:100%;width:51px;background:#fff;top:0;bottom:0;left:-6px}.cover{background:var(--config-color-focus-fade);padding:30px 50px;margin:0 -50px;position:relative;border-bottom:solid 1px var(--config-border-fade)}.cover .title,.cover h1,.cover h2,.cover h3,.cover h4{color:var(--config-color-focus);font-weight:600;margin-bottom:50px!important;font-size:28px;line-height:42px}.cover .title span,.cover h1 span,.cover h2 span,.cover h3 span,.cover h4 span{font-weight:600}.cover i:before{margin:0!important}.cover p{color:var(--config-color-fade)}.cover .button{color:#fff}.cover .link,.cover a{display:inline-flex;color:var(--config-color-focus);border-left:none;border-right:none;cursor:pointer}.cover .link:hover,.cover a:hover{border-bottom-color:var(--config-color-focus)}.cover .link i,.cover a i{margin-right:.2rem}.console .database .row .col{height:452px}.console .database .row .col:after{width:2px;right:20px}.console .database hr{margin:0 -20px;background:var(--config-color-background);height:1px}.console .database h3{font-size:13px;line-height:20px;height:20px;background-color:var(--config-color-fade-super);margin:-20px -20px 0 -20px;padding:10px 20px;border-bottom:solid 1px var(--config-color-background);font-weight:600}.console .database .empty{height:162px;font-size:12px;text-align:center;margin:50px 0}.console .database .empty h4{font-size:13px;font-weight:600;line-height:120px}.console .database .search{background-color:var(--config-color-fade-super);margin:0 -20px 0 -20px;padding:10px 15px}.console .database .search input{height:40px;background-color:#fff;border-radius:25px;padding-top:0;padding-bottom:0}.console .database .code{height:411px;background:var(--config-color-fade-super);margin:0 -20px -20px -20px;padding:20px;width:calc(100% - 10px)}.console .database .code .ide{overflow:scroll;height:451px;margin:-20px;box-shadow:none;border-radius:0}.console .database .paging{background:var(--config-color-fade-super);margin:0 -20px -20px -20px;padding:20px}.console .database .button{margin:0 -20px;padding:0 20px!important;text-align:inherit;color:var(--config-color-focus);width:100%;font-size:15px;line-height:55px;box-sizing:content-box}.console .database .button i{margin-right:8px}.console .database .button:hover{border:none;background:var(--config-color-focus-fade)}.console .database .items{margin:0 -20px;height:262px;overflow-x:hidden;overflow-y:scroll}.console .database .items form{opacity:0;position:relative}.console .database .items form button{position:absolute;top:0;bottom:0;left:0;right:0;width:100%;height:45px;border-radius:0;cursor:pointer}.console .database .items li{padding:0;margin:0 0;line-height:45px;font-size:15px;padding-left:50px;padding-right:30px;position:relative}.console .database .items li i{position:absolute;display:none;right:10px}.console .database .items li .name{display:inline-block;width:100%;height:28px}.console .database .items li.selected,.console .database .items li:hover{background:#f5f5f5}.console .database .items li.selected i,.console .database .items li:hover i{display:block}.console .database .items li:last-child{border-bottom:none}.events.row{border-bottom:solid 1px var(--config-color-fade-super)}.events.row .col span.text{display:inline-block;width:calc(100% - 28px);word-break:break-all}.events.row .col span.action{float:right;cursor:pointer}.events.row:last-child{border-bottom:none}body>footer{color:var(--config-color-fade);line-height:40px;margin:0 -50px;padding:12px 50px;font-size:13px;width:100%;background:#f1f1f1;position:relative;margin-top:80px!important}body>footer:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}body>footer .logo img{height:22px;padding-top:12px}body>footer a{display:inline-flex;color:var(--config-color-fade);font-size:13px}body>footer a:hover{border-bottom-color:var(--config-color-fade)}body>footer a i{margin-right:.2rem}body>footer ul{display:flex;justify-content:center}body>footer ul:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}body>footer ul li{font-size:13px;float:left;margin-right:20px!important}body>footer .copyright{padding-left:2px}.loader{height:0;direction:ltr;position:fixed;top:0;width:0;margin:0 auto;left:0;opacity:0;z-index:4}.load-start~.loader{width:100%;background:var(--config-color-focus);height:3px;opacity:1;transition:width .3s ease-out,opacity .5s ease-out;-moz-transition:width .3s ease-out,opacity .5s ease-out;-webkit-transition:width .3s ease-out,opacity .5s ease-out;-o-transition:width .3s ease-out,opacity .5s ease-out}.www .load-start~.loader{background:#fff}.load-start>*{opacity:0}.load-end>*{opacity:1;transition:opacity .3s ease-out;-moz-transition:opacity .3s ease-out;-webkit-transition:opacity .3s ease-out;-o-transition:opacity .3s ease-out}[data-ls-if]{display:none}[data-service]{opacity:0}.load-service-start{opacity:0}.load-service-end{opacity:1;transition:opacity .5s ease-out;-moz-transition:opacity .5s ease-out;-webkit-transition:opacity .5s ease-out;-o-transition:opacity .5s ease-out}.load-screen{z-index:100000;position:fixed;height:100%;width:100%;background-color:var(--config-color-background-focus);top:0;left:0}.load-screen.loaded{transition:opacity 1s ease-in-out,top 1s .7s;opacity:0;top:-100%}.load-screen .animation{position:absolute;top:45%;left:50%;transform:translate(-50%,-50%) translateZ(1px);width:140px;height:140px}.load-screen .animation div{box-sizing:border-box;display:block;position:absolute;width:124px;height:124px;margin:10px;border:10px solid var(--config-color-focus);border-radius:50%;animation:animation 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:var(--config-color-focus) transparent transparent transparent}.load-screen .animation div:nth-child(1){animation-delay:-.45s}.load-screen .animation div:nth-child(2){animation-delay:-.3s}.load-screen .animation div:nth-child(3){animation-delay:-.15s}@keyframes animation{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.load-screen img{position:absolute;height:20px;bottom:60px;left:50%;transform:translate(-50%,-50%)}.modal-open .modal-bg,.modal-open body .modal-bg{position:fixed;content:'';display:block;width:100%;height:100%;left:0;right:0;top:0;bottom:0;background:#0c0c0c;opacity:.75;z-index:5}.modal{overflow:auto;display:none;position:fixed;transform:translate3d(0,0,0);width:100%;max-height:90%;max-width:640px;background:var(--config-color-background-fade);z-index:1000;box-shadow:0 0 4px rgba(0,0,0,.25);padding:30px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;box-sizing:border-box;text-align:left;white-space:initial;line-height:normal}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.modal{width:calc(100% - 20px)}}.modal.full{max-width:none;max-height:none;height:100%;border-radius:0;padding:80px 120px}.modal.full h1{font-weight:700}.modal.padding-tiny{padding:5px}.modal.padding-xs{padding:10px}.modal.padding-small{padding:15px}.modal.height-tiny>form{height:100px}.modal.height-small>form{height:220px}.modal.width-small{max-width:400px}.modal.width-medium{max-width:500px}.modal.width-large{max-width:800px}.modal.width-xlarge{max-width:950px}.modal.open{display:block}.modalbutton.close{display:none}.modal.fill{height:95%;max-height:95%;max-width:75%}.modal h1,.modal h2{margin-bottom:25px;margin-top:0;font-size:20px;text-align:left}.modal h1,.modal h2,.modal h3,.modal h4,.modal h5,.modal h6{color:inherit!important;line-height:35px}.modal .main,.modal>form{position:relative;border-top:solid 1px var(--config-border-color);padding:30px 30px 0 30px;margin:0 -30px}.modal .main.strip,.modal>form.strip{border:none;padding:0;margin:0}.modal .separator{margin:20px -30px}.modal .bullets{padding-left:40px}.modal .bullets li{margin-bottom:30px!important}.modal .bullets li:before{position:absolute}.modal .info{margin:0 -30px;padding:20px 30px;background:var(--config-modal-note-background);color:var(--config-modal-note-color);border-top:solid 1px var(--config-modal-note-border);border-bottom:solid 1px var(--config-modal-note-border)}.modal .ide.strech{box-shadow:none;border-radius:0;margin:0 -30px}.modal .ide pre{overflow:auto}.modal .paging form{padding:0;margin:0;border-top:none}.modal.sticky-footer form footer{margin:-30px}.modal.sticky-footer footer{position:sticky;bottom:-30px;background:var(--config-color-background-fade-super);height:50px;z-index:1;padding:30px;box-shadow:0 0 1px rgba(0,0,0,.15)}.modal.sticky-footer footer form{display:inline-block}[data-views-current="0"] .scroll-to,[data-views-current="1"] .scroll-to{opacity:0!important;pointer-events:none}.scroll-to-bottom .scroll-to,.scroll-to-top .scroll-to{opacity:1}.scroll-to{opacity:0;display:block;width:40px;height:40px;line-height:40px;border-radius:50%;position:fixed;transform:translateZ(0);margin:30px;padding:0;bottom:0;font-size:18px;z-index:100000;transition:opacity .15s ease-in-out;right:0}.phases{list-style:none;margin:0;padding:0;position:relative}.phases li{display:none}.phases li .badge{display:none}.phases li li{display:block}.phases li.selected{display:block}.phases .number{display:none}.phases h2,.phases h3,.phases h4,.phases h5,.phases h6{margin:0 0 30px 0;text-align:inherit}.container{position:relative}.container .tabs{height:55px;line-height:55px;list-style:none;padding:0;margin-bottom:50px!important;margin-top:-55px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.container .tabs:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.container .tabs li{position:relative}.container .tabs .badge{background:var(--config-color-focus);color:var(--config-color-background-fade);display:inline-block;border-radius:15px;width:15px;height:15px;margin:10px;line-height:15px;padding:3px;text-align:center;font-weight:500!important;position:absolute;top:-5px;right:-35px;font-size:12px}.container .tabs .selected{font-weight:400;color:var(--config-color-focus);opacity:1}.container .tabs .selected:after{content:"";display:block;height:2px;background:var(--config-color-focus);width:calc(100% + 6px);margin:0 -3px;position:absolute;bottom:0;border-radius:2px}.container .tabs .number{display:none}.container .tabs li{float:left;margin-right:50px;color:var(--config-color-focus);opacity:.9;cursor:pointer}.container .tabs li:focus{outline:0}@media only screen and (max-width:550px){.container .tabs li{margin-right:25px}}.container .icon{display:none}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.container .tabs{width:auto;overflow-x:scroll;overflow-y:hidden;white-space:nowrap}.container .tabs li{display:inline-block;float:none}}.preview-box{display:grid;place-content:center;padding:40px;background:var(--config-color-background-fade);border:1px dashed var(--config-color-background-dark);border-radius:8px}.preview-box-image{display:grid;place-content:center;width:40px;height:40px;margin-inline:auto;background-color:var(--config-color-background-focus);border-radius:50%}.preview-box-text{margin-top:16px;color:var(--config-color-fade)}.upload-box{--p-header-text-color:var(--config-color-background-fade);--p-header-bg-color:var(--config-color-normal);--p-content-text-color:var(--config-color-normal);--p-content-bg-color:var(--config-color-background-fade);--p-border-color:var(--config-modal-note-border);--box-shadow:0 10px 10px rgba(0, 0, 0, 0.05);--border-radius:6px;--transition:0.2s;position:fixed;z-index:1;overflow:hidden;min-width:285px;box-shadow:var(--box-shadow);border-radius:var(--border-radius);font-size:14px;line-height:1}.upload-box *{all:unset;display:revert}.upload-box-header{display:flex;padding:16px;padding-inline-end:21px;color:var(--p-header-text-color);background-color:var(--p-header-bg-color)}.upload-box-header .icon-button{margin-inline-start:16px}.upload-box-title{align-self:center;margin-inline-end:auto;margin-block-end:0}.upload-box-title .amount::before{content:"("}.upload-box-title .amount::after{content:")"}.upload-box-content{background-color:var(--p-content-bg-color);color:var(--p-content-text-color);height:0;overflow:auto;transition:var(--transition)}.upload-box-content.is-open{height:200px}.upload-box-item{display:flex;align-items:center;padding:13px 20px}.upload-box-item .file-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;margin-inline-end:auto;line-height:normal}.upload-box-item .icon-button{align-self:center;margin-inline-start:16px}.upload-box-item .pill{margin-inline-start:8px}.upload-box-item:not(:last-child){border-bottom:solid 1px var(--p-border-color)}@media only screen and (max-width:550px){.upload-box{inset-inline:16px;inset-block-end:20px}}@media only screen and (min-width:551px) and (max-width:1198px),only screen and (min-width:1199px){.upload-box{max-width:285px;inset-inline-end:24px;inset-block-end:24px}}:root .theme-dark .upload-box{--p-header-text-color:#fff;--p-header-bg-color:var(--config-color-background-dark)}.upload-image{--p-upload-image-size:var(--upload-image-size, 40px);--p-upload-bg-color:var(--config-color-fade-super);--p-upload-icon-color:var(--config-color-fade);position:relative;display:grid;place-content:center;flex-shrink:0;width:var(--p-upload-image-size);height:var(--p-upload-image-size);background-color:var(--p-upload-bg-color);color:var(--p-upload-icon-color);border-radius:50%}.upload-image .icon{position:relative;z-index:20}.upload-image .progress{--progress:var(--progress-value, 0);--zero-value:0 0% 0%/0%;position:absolute;z-index:10;inset:0;border-radius:50%;background:radial-gradient(var(--p-upload-bg-color) 0,var(--p-upload-bg-color) 64%,transparent 64.01%,transparent 100%),conic-gradient(hsl(194 66% 50%) 0,hsl(97 66% 50%) calc(var(--progress) * 1%),hsl(var(--zero-value)) calc(var(--progress) * 1%),hsl(var(--zero-value)) 100%)}.upload-image.is-finished .progress{display:none}:root .theme-dark .upload-image{--p-upload-bg-color:var(--config-color-background-dark);--p-upload-icon-color:var(--config-color-focus)}[data-views-current]:not([data-views-current="0"]):not([data-views-current="1"]) .upload-box{margin-right:4rem}.icon-button{--p-icon-button-size:var(--icon-button-size, 20px);width:var(--p-icon-button-size);height:var(--p-icon-button-size);font-size:var(--p-icon-button-size);transition:.2s;line-height:1;text-align:center;flex-shrink:0;cursor:pointer}.icon-button>::before{margin:0}.icon-button.is-open{transform:rotate(180deg)}.icon-button.is-success{color:var(--config-color-success)}.icon-button:focus,.icon-button:hover{background-color:unset}.icon-button:focus-visible{outline:dashed 1px var(--config-color-primary)}.pill{--p-pill-text-color:var(--config-defalut-color-hsl, var(--pill-text-color));color:hsl(var(--p-pill-text-color));background-color:hsl(var(--p-pill-text-color) / .2);display:inline-grid;place-content:center;padding-inline:12px;height:30px;border-radius:15px;font-size:14px;font-weight:500}.pill.is-disabled{--p-pill-text-color:var(--config-disabled-color-hsl)}.pill.is-pending{--p-pill-text-color:var(--config-pending-color-hsl)}.pill.is-failed{--p-pill-text-color:var(--config-failed-color-hsl)}:root .theme-dark .pill.is-failed{color:#ffcfcf;background-color:#b91c1c}.permissions-matrix td:first-child,.permissions-matrix th:first-child{width:35%}.permissions-matrix td:not(:first-child):not(:last-child),.permissions-matrix th:not(:first-child):not(:last-child){text-align:center}.permissions-matrix td:last-child,.permissions-matrix th:last-child{width:10%}.permissions-matrix td{vertical-align:middle}.permissions-matrix input,.permissions-matrix p{margin-bottom:0}.permissions-matrix p{margin-left:15px}.permissions-matrix i{cursor:pointer}html{padding:0;margin:0;direction:ltr}body{margin:0;background:var(--config-console-background) no-repeat fixed;min-width:300px}ul{padding:0;margin:0}ul li{margin:0;list-style:none}
\ No newline at end of file
+.pull-start{float:left}.pull-end{float:right}img[src=""]{visibility:hidden;display:inline-block}:root{--config-width:910px;--config-width-xxl:1000px;--config-width-xl:910px;--config-width-large:700px;--config-width-medium:550px;--config-width-small:320px;--config-color-primary:#f02e65;--config-color-link:#1e849e;--config-color-background:#eceff1;--config-color-background-dark:#dfe2e4;--config-color-background-fade:#ffffff;--config-color-background-fade-super:#fdfdfd;--config-color-background-focus:#f5f5f5;--config-color-background-input:#ffffff;--config-color-placeholder:#868686;--config-color-tooltip-text:#dce8f5;--config-color-tooltip-background:#333333;--config-color-focus:#f02e65;--config-color-focus-fade:#fef8fa;--config-color-focus-hover:#ff729b;--config-color-focus-glow:#fce5ec;--config-color-focus-dark:#c52653;--config-color-normal:#40404c;--config-color-dark:#313131;--config-color-fade:#8f8f8f;--config-color-fade-dark:#6e6e6e;--config-color-fade-light:#e2e2e2;--config-color-fade-super:#f1f3f5;--config-color-danger:#f53d3d;--config-color-success:#1bbf61;--config-color-warning:#fffbdd;--config-color-info:#386fd2;--config-color-chart:#29b5d9;--config-color-chart-fade:#d4f0f7;--config-border-color:#f3f3f3;--config-border-fade:#e0e3e4;--config-border-fade-super:#f7f7f7;--config-border-radius:10px;--config-prism-background:#373738;--config-prism-numbers:#39393c;--config-note-background:#f1fbff;--config-note-border:#5bceff;--config-warning-background:#fdf7d9;--config-warning-border:#f8e380;--config-social-twitter:#1da1f2;--config-social-github:#000000;--config-social-discord:#7189dc;--config-social-facebook:#4070b4;--config-language-bash:#2b2626;--config-language-bash-contrast:#fff;--config-language-javascript:#fff054;--config-language-javascript-contrast:#333232;--config-language-web:#fff054;--config-language-web-contrast:#333232;--config-language-html:#ff895b;--config-language-html-contrast:#ffffff;--config-language-yaml:#ca3333;--config-language-yaml-contrast:#ffffff;--config-language-php:#6182bb;--config-language-php-contrast:#ffffff;--config-language-nodejs:#8cc500;--config-language-nodejs-contrast:#ffffff;--config-language-ruby:#fc3f48;--config-language-ruby-contrast:#ffffff;--config-language-python:#3873a2;--config-language-python-contrast:#ffffff;--config-language-go:#00add8;--config-language-go-contrast:#ffffff;--config-language-dart:#035698;--config-language-dart-contrast:#ffffff;--config-language-flutter:#035698;--config-language-flutter-contrast:#ffffff;--config-language-android:#a4c439;--config-language-android-contrast:#ffffff;--config-language-kotlin:#766DB2;--config-language-kotlin-contrast:#ffffff;--config-language-swift:#f2624c;--config-language-swift-contrast:#ffffff;--config-language-java:#0074bd;--config-language-java-contrast:#ffffff;--config-modal-note-background:#f5fbff;--config-modal-note-border:#eaf2f7;--config-modal-note-color:#3b5d73;--config-switch-background:#e2e2e2;--config-console-background:#eceff1;--config-console-nav-start:#143650;--config-console-nav-end:#302839;--config-console-nav-border:#2a253a;--config-console-nav-switch-background:#ececec;--config-console-nav-switch-color:#868686;--config-console-nav-switch-arrow:url("data:image/svg+xml;utf8,");--config-defalut-color-hsl:0 0% 62%;--config-disabled-color-hsl:0 0% 62%;--config-pending-color-hsl:36 100% 47%;--config-failed-color-hsl:0 74% 42%}:root .theme-dark{--config-color-primary:#f02e65;--config-color-background:#061F2F;--config-color-background-dark:#262d50;--config-color-background-fade:#1c223a;--config-color-background-fade-super:#1a1f35;--config-color-background-focus:#1a1f35;--config-color-background-input:#dce8f5;--config-color-tooltip-text:#061F2F;--config-color-tooltip-background:#dce8f5;--config-color-link:#4caedb;--config-color-placeholder:#9ea1af;--config-color-focus:#c7d8eb;--config-color-focus-fade:#1e233e;--config-color-focus-hover:#d3deea;--config-color-focus-glow:#d3deea;--config-color-focus-dark:#657586;--config-color-normal:#c7d8eb;--config-color-dark:#c7d8eb;--config-color-fade:#bec3e0;--config-color-fade-dark:#81859b;--config-color-fade-light:#181818;--config-color-fade-super:#262D50;--config-color-danger:#d84a4a;--config-color-success:#34b86d;--config-color-warning:#e0d56d;--config-color-info:#386fd2;--config-color-chart:#29b5d9;--config-color-chart-fade:#c7d8eb;--config-border-color:#262D50;--config-border-fade:#19203a;--config-border-fade-super:#262D50;--config-prism-background:#1F253F;--config-prism-numbers:#1F253F;--config-note-background:#171e33;--config-note-border:#262D50;--config-warning-background:#1F253F;--config-warning-border:#262D50;--config-social-twitter:var(--config-color-normal);--config-social-github:var(--config-color-normal);--config-social-discord:var(--config-color-normal);--config-social-facebook:var(--config-color-normal);--config-language-bash:var(--config-color-normal);--config-language-bash-contrast:var(--config-color-background);--config-language-javascript:var(--config-color-normal);--config-language-javascript-contrast:var(--config-color-background);--config-language-web:var(--config-color-normal);--config-language-web-contrast:var(--config-color-background);--config-language-yaml:var(--config-color-normal);--config-language-yaml-contrast:var(--config-color-background);--config-language-html:var(--config-color-normal);--config-language-html-contrast:var(--config-color-background);--config-language-php:var(--config-color-normal);--config-language-php-contrast:var(--config-color-background);--config-language-nodejs:var(--config-color-normal);--config-language-nodejs-contrast:var(--config-color-background);--config-language-ruby:var(--config-color-normal);--config-language-ruby-contrast:var(--config-color-background);--config-language-python:var(--config-color-normal);--config-language-python-contrast:var(--config-color-background);--config-language-go:var(--config-color-normal);--config-language-go-contrast:var(--config-color-background);--config-language-dart:var(--config-color-normal);--config-language-dart-contrast:var(--config-color-background);--config-language-flutter:var(--config-color-normal);--config-language-flutter-contrast:var(--config-color-background);--config-language-android:var(--config-color-normal);--config-language-android-contrast:var(--config-color-background);--config-language-kotlin:var(--config-color-normal);--config-language-kotlin-contrast:var(--config-color-background);--config-language-swift:var(--config-color-normal);--config-language-swift-contrast:var(--config-color-background);--config-language-java:var(--config-color-normal);--config-language-java-contrast:var(--config-color-background);--config-modal-note-background:#15192b;--config-modal-note-border:#161b31;--config-modal-note-color:var(--config-color-normal);--config-switch-background:var(--config-color-normal);--config-console-background:#20263f;--config-console-nav-start:#1c2139;--config-console-nav-end:#151929;--config-console-nav-border:#171b30;--config-console-nav-switch-background:var(--config-color-focus);--config-console-nav-switch-color:var(--config-color-background);--config-console-nav-switch-arrow:url("data:image/svg+xml;utf8,")}.theme-light .force-light{display:block!important}.theme-dark .force-dark{display:block!important}.force-dark{display:none!important}.force-light{display:none!important}@font-face{font-family:Poppins;font-style:normal;font-weight:100;src:url(/fonts/poppins-v9-latin-100.eot);src:local('Poppins Thin'),local('Poppins-Thin'),url(/fonts/poppins-v9-latin-100.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-100.woff2) format('woff2'),url(/fonts/poppins-v9-latin-100.woff) format('woff'),url(/fonts/poppins-v9-latin-100.ttf) format('truetype'),url(/fonts/poppins-v9-latin-100.svg#Poppins) format('svg')}@font-face{font-family:Poppins;font-style:normal;font-weight:300;src:url(/fonts/poppins-v9-latin-300.eot);src:local('Poppins Light'),local('Poppins-Light'),url(/fonts/poppins-v9-latin-300.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-300.woff2) format('woff2'),url(/fonts/poppins-v9-latin-300.woff) format('woff'),url(/fonts/poppins-v9-latin-300.ttf) format('truetype'),url(/fonts/poppins-v9-latin-300.svg#Poppins) format('svg')}@font-face{font-family:Poppins;font-style:normal;font-weight:400;src:url(/fonts/poppins-v9-latin-regular.eot);src:local('Poppins Regular'),local('Poppins-Regular'),url(/fonts/poppins-v9-latin-regular.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-regular.woff2) format('woff2'),url(/fonts/poppins-v9-latin-regular.woff) format('woff'),url(/fonts/poppins-v9-latin-regular.ttf) format('truetype'),url(/fonts/poppins-v9-latin-regular.svg#Poppins) format('svg')}@font-face{font-family:Poppins;font-style:normal;font-weight:500;src:url(/fonts/poppins-v9-latin-500.eot);src:local('Poppins Medium'),local('Poppins-Medium'),url(/fonts/poppins-v9-latin-500.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-500.woff2) format('woff2'),url(/fonts/poppins-v9-latin-500.woff) format('woff'),url(/fonts/poppins-v9-latin-500.ttf) format('truetype'),url(/fonts/poppins-v9-latin-500.svg#Poppins) format('svg')}@font-face{font-family:Poppins;font-style:normal;font-weight:600;src:url(/fonts/poppins-v9-latin-600.eot);src:local('Poppins SemiBold'),local('Poppins-SemiBold'),url(/fonts/poppins-v9-latin-600.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-600.woff2) format('woff2'),url(/fonts/poppins-v9-latin-600.woff) format('woff'),url(/fonts/poppins-v9-latin-600.ttf) format('truetype'),url(/fonts/poppins-v9-latin-600.svg#Poppins) format('svg')}@font-face{font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url(/fonts/source-code-pro-v11-latin-regular.eot);src:local('Source Code Pro Regular'),local('SourceCodePro-Regular'),url(/fonts/source-code-pro-v11-latin-regular.eot?#iefix) format('embedded-opentype'),url(/fonts/source-code-pro-v11-latin-regular.woff2) format('woff2'),url(/fonts/source-code-pro-v11-latin-regular.woff) format('woff'),url(/fonts/source-code-pro-v11-latin-regular.ttf) format('truetype'),url(/fonts/source-code-pro-v11-latin-regular.svg#SourceCodePro) format('svg')}.padding{padding:30px}.padding-top{padding-top:30px!important}.padding-top-large{padding-top:50px!important}.padding-top-xl{padding-top:80px!important}.padding-bottom{padding-bottom:30px!important}.padding-bottom-large{padding-bottom:50px!important}.padding-bottom-xl{padding-bottom:80px!important}.margin-end{margin-right:20px!important}.margin-start{margin-left:20px!important}.margin-end-small{margin-right:10px!important}.margin-start-small{margin-left:10px!important}.margin-end-large{margin-right:50px!important}.margin-start-large{margin-left:50px!important}.margin-end-no{margin-right:0!important}.margin-start-no{margin-left:0!important}.margin-end-negative{margin-right:-30px!important}.margin-start-negative{margin-left:-30px!important}.margin-end-negative-small{margin-right:-15px!important}.margin-start-negative-small{margin-left:-15px!important}.margin-end-negative-tiny{margin-right:-5px!important}.margin-start-negative-tiny{margin-left:-5px!important}.margin-top{margin-top:30px!important}.margin-bottom{margin-bottom:30px!important}.margin-top-no{margin-top:0!important}.margin-bottom-no{margin-bottom:0!important}.margin-top-xxl{margin-top:140px!important}.margin-top-xl{margin-top:80px!important}.margin-top-large{margin-top:50px!important}.margin-top-small{margin-top:15px!important}.margin-top-tiny{margin-top:5px!important}.margin-top-negative{margin-top:-30px!important}.margin-top-negative-tiny{margin-top:-5px!important}.margin-top-negative-small{margin-top:-15px!important}.margin-top-negative-large{margin-top:-50px!important}.margin-top-negative-xl{margin-top:-80px!important}.margin-top-negative-xxl{margin-top:-100px!important}.margin-top-negative-xxxl{margin-top:-150px!important}.margin-bottom-xxl{margin-bottom:140px!important}.margin-bottom-xl{margin-bottom:80px!important}.margin-bottom-large{margin-bottom:50px!important}.margin-bottom-small{margin-bottom:15px!important}.margin-bottom-tiny{margin-bottom:5px!important}.margin-bottom-negative{margin-bottom:-30px!important}.margin-bottom-negative-tiny{margin-bottom:-5px!important}.margin-bottom-negative-small{margin-bottom:-15px!important}.margin-bottom-negative-large{margin-bottom:-50px!important}.margin-bottom-negative-xl{margin-bottom:-80px!important}.margin-bottom-negative-xl{margin-bottom:-100px!important}.force-left,.ide{direction:ltr;text-align:left}.force-right{direction:rtl;text-align:right}.pull-left{float:left}.pull-right{float:right}.ratio-wide{height:0;overflow:hidden;padding-top:56%;position:relative;width:100%}.ratio-wide>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-square{height:0;overflow:hidden;padding-top:56%;position:relative;width:100%}.ratio-square>*{position:absolute;top:0;left:0;width:100%;height:100%}.clear:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.phones-only{display:none}@media only screen and (max-width:550px){.phones-only{display:inherit!important}}.tablets-only{display:none}@media only screen and (min-width:551px) and (max-width:1198px){.tablets-only{display:inherit!important}}.desktops-only{display:none}@media only screen and (min-width:1199px){.desktops-only{display:inherit!important}}.phones-only-inline{display:none}@media only screen and (max-width:550px){.phones-only-inline{display:inline-block!important}}.tablets-only-inline{display:none}@media only screen and (min-width:551px) and (max-width:1198px){.tablets-only-inline{display:inline-block!important}}.desktops-only-inline{display:none}@media only screen and (min-width:1199px){.desktops-only-inline{display:inline-block!important}}*{font-family:Poppins,sans-serif;-webkit-font-smoothing:antialiased;font-weight:300}h1,h2,h3,h4,h5,h6{margin:0}h4,h5,h6{font-weight:400}.link,a{color:var(--config-color-link);text-decoration:none;border-left:2px solid transparent;border-right:2px solid transparent;transition:.2s;cursor:pointer}.link.disabled,a.disabled{opacity:.5}.link.tag:hover,a.tag:hover{opacity:.9}.link.danger,a.danger{color:var(--config-color-danger)}.link.link-animation-enabled,a.link-animation-enabled{display:inline-flex}.link.link-animation-enabled:hover,a.link-animation-enabled:hover{transform:translateY(-2px)}.link-return-animation--start>i{display:inline-block;transition:.2s}.link-return-animation--start:hover>i{transform:translateX(-2px)}.link-return-animation--end>i{display:inline-block;transition:.2s}.link-return-animation--end:hover>i{transform:translateX(2px)}b,strong{font-weight:500}p{margin:0 0 20px 0;line-height:26px}small{font-size:16px;color:var(--config-color-fade)}.text-size-small{font-size:13px}.text-size-smaller{font-size:11.5px}.text-size-xs{font-size:10px}.text-size-normal{font-size:16px}.text-height-large{height:30px;line-height:30px}.text-height-small{line-height:13px}.text-one-liner{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text-bold{font-weight:400!important}.text-bold-large{font-weight:500!important}.text-bold-xl{font-weight:600!important}.text-danger{color:var(--config-color-danger)!important}.text-success{color:var(--config-color-success)!important}.text-upper{text-transform:uppercase}.text-warning{color:var(--config-color-warning)}.text-focus{color:var(--config-color-focus)}.text-fade{color:var(--config-color-fade)}.text-fade-dark{color:var(--config-color-fade-dark)}.text-green{color:var(--config-color-success)}.text-red{color:var(--config-color-danger)}.text-info{color:var(--config-color-info)}.text-yellow{color:#ffe28b}.text-disclaimer{font-size:11px;color:var(--config-color-fade)}.text-fade-extra{color:var(--config-color-fade);opacity:.5}.text-line-high-large{line-height:30px}.text-line-high-xl{line-height:40px}.text-sign{margin:5px 0;font-size:25px;width:25px;height:25px;line-height:25px;display:inline-block}.text-align-center{text-align:center}.text-align-start{text-align:left}.text-align-end{text-align:right}.text-align-left{text-align:left}.text-align-right{text-align:right}.text-dir-ltr{direction:ltr;display:inline-block}.text-dir-rtl{direction:rtl;display:inline-block}i[class*=' icon-']:before,i[class^=icon-]:before{display:inline;line-height:unset}table{width:calc(100% + 60px);border-collapse:collapse;margin:-30px;border-radius:10px;overflow:hidden;position:relative;table-layout:fixed}table.y-scroll{overflow-y:auto}table.multi-line tbody td,table.multi-line thead th{line-height:inherit;text-overflow:inherit;white-space:inherit}table.borders td,table.borders th{border-right:solid 1px var(--config-border-fade-super)}table.borders td:last-child,table.borders th:last-child{border:none}table thead{border-bottom:solid 1px var(--config-color-fade-super);font-size:14px}table.small{font-size:14px}table.open-end tbody tr:last-child{border-bottom:none;font-weight:700;background:#f7fbf7}table.full tbody td,table.full tbody th{vertical-align:top;white-space:normal;overflow:auto;line-height:24px;padding-top:20px;padding-bottom:20px;height:auto}table .avatar{width:30px;height:30px}table tr{border-bottom:solid 1px var(--config-color-fade-super)}table tr:last-child{border-bottom:none}table tr:last-child td:first-child{border-bottom-left-radius:6px}table tr:last-child td:last-child{border-bottom-right-radius:6px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){table tr:nth-child(even){background:var(--config-color-background-fade-super)}}@media only screen and (min-width:1199px){table tr:nth-child(even) td{background:var(--config-color-background-fade-super)}}table tr.selected{background:var(--config-note-background)}table tr.selected td,table tr.selected td span{font-weight:500}table th{text-align:left;font-weight:400}table th i{color:var(--config-color-fade);font-size:10px;display:inline-block;vertical-align:top;line-height:16px;padding:0 3px}table td,table th{height:65px;padding:0 15px;line-height:50px}table td:first-child,table th:first-child{padding-left:30px}table td,table th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){table.vertical{border-top:solid 1px var(--config-color-fade-super);display:block;overflow:hidden;padding-top:12px}table.vertical .hide{display:none}table.vertical tbody,table.vertical td,table.vertical th,table.vertical thead,table.vertical tr{width:100%;display:block}table.vertical tr{position:relative}table.vertical th,table.vertical tr{padding-top:12px;padding-bottom:12px}table.vertical th:first-child,table.vertical tr:first-child{padding-top:0}table.vertical td,table.vertical th{padding:5px 20px!important;text-overflow:ellipsis;white-space:normal;height:40px;line-height:40px;width:calc(100% - 40px)}table.vertical td.col-name,table.vertical th.col-name{width:calc(100% - 110px)}table.vertical td:first-child,table.vertical td:last-child,table.vertical th:first-child,table.vertical th:last-child{padding:0 10px}table.vertical td:last-child,table.vertical th:last-child{padding-bottom:0}table.vertical td p,table.vertical th p{display:inline-block;width:calc(100% - 40px)}table.vertical td:not([data-title=""]):before{content:attr(data-title);margin-right:4px;font-weight:400}table.vertical thead{display:none}table.vertical .cell-options-more{position:absolute;inset-block-start:0;inset-inline-end:0;width:auto}}table .trim-inner-text{display:inline-flex;align-items:center;gap:8px}@media only screen and (min-width:1199px){table .trim-inner-text{width:100%}}table .cell-options-more button{padding:0 12px;background-color:transparent;color:var(--config-color-fade)}table .cell-options-more button:focus-visible{outline:solid 1px var(--config-color-focus)}.zone{max-width:var(--config-width-xl);margin:0 auto 40px auto}.zone.xxxl{max-width:calc(1400px - 100px)}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.zone.xxxl{max-width:100%}}.zone.xxl{max-width:var(--config-width-xxl)}.zone.xl{max-width:var(--config-width-xl)}.zone.large{max-width:var(--config-width-large)}.zone.medium{max-width:var(--config-width-medium)}.zone.small{max-width:var(--config-width-small)}.row{position:relative;margin:0 -50px;padding-left:50px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.row{margin:0 -30px;padding-left:30px}}.row.force-ltr>.col{float:left}.row.force-rtl>.col{float:right}.row.force-reverse>.col{float:right}.row.wide{margin:0 -100px;padding-left:100px}.row.wide>.span-1{width:calc(8.33333333% * 1 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-2{width:calc(8.33333333% * 2 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-3{width:calc(8.33333333% * 3 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-4{width:calc(8.33333333% * 4 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-5{width:calc(8.33333333% * 5 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-6{width:calc(8.33333333% * 6 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-7{width:calc(8.33333333% * 7 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-8{width:calc(8.33333333% * 8 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-9{width:calc(8.33333333% * 9 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-10{width:calc(8.33333333% * 10 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-11{width:calc(8.33333333% * 11 - 100px);box-sizing:content-box;padding-right:100px}.row.wide>.span-12{width:calc(8.33333333% * 12 - 100px);box-sizing:content-box;padding-right:100px}.row.thin{margin:0 -20px;padding-left:20px}.row.thin>.span-1{width:calc(8.33333333% * 1 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-2{width:calc(8.33333333% * 2 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-3{width:calc(8.33333333% * 3 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-4{width:calc(8.33333333% * 4 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-5{width:calc(8.33333333% * 5 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-6{width:calc(8.33333333% * 6 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-7{width:calc(8.33333333% * 7 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-8{width:calc(8.33333333% * 8 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-9{width:calc(8.33333333% * 9 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-10{width:calc(8.33333333% * 10 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-11{width:calc(8.33333333% * 11 - 20px);box-sizing:content-box;padding-right:20px}.row.thin>.span-12{width:calc(8.33333333% * 12 - 20px);box-sizing:content-box;padding-right:20px}.row.modalize{margin:0 -30px;padding-left:30px}.row.modalize>.span-1{width:calc(8.33333333% * 1 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-2{width:calc(8.33333333% * 2 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-3{width:calc(8.33333333% * 3 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-4{width:calc(8.33333333% * 4 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-5{width:calc(8.33333333% * 5 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-6{width:calc(8.33333333% * 6 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-7{width:calc(8.33333333% * 7 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-8{width:calc(8.33333333% * 8 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-9{width:calc(8.33333333% * 9 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-10{width:calc(8.33333333% * 10 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-11{width:calc(8.33333333% * 11 - 30px);box-sizing:content-box;padding-right:30px}.row.modalize>.span-12{width:calc(8.33333333% * 12 - 30px);box-sizing:content-box;padding-right:30px}.row:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.row .col{float:left;box-sizing:border-box}.row .col.sticky-top{position:sticky;top:90px}.row .col.sticky-bottom{position:sticky;bottom:0}.row .span-1{width:calc(8.33333333% * 1 - 40px);box-sizing:content-box;padding-right:40px}.row .span-2{width:calc(8.33333333% * 2 - 40px);box-sizing:content-box;padding-right:40px}.row .span-3{width:calc(8.33333333% * 3 - 40px);box-sizing:content-box;padding-right:40px}.row .span-4{width:calc(8.33333333% * 4 - 40px);box-sizing:content-box;padding-right:40px}.row .span-5{width:calc(8.33333333% * 5 - 40px);box-sizing:content-box;padding-right:40px}.row .span-6{width:calc(8.33333333% * 6 - 40px);box-sizing:content-box;padding-right:40px}.row .span-7{width:calc(8.33333333% * 7 - 40px);box-sizing:content-box;padding-right:40px}.row .span-8{width:calc(8.33333333% * 8 - 40px);box-sizing:content-box;padding-right:40px}.row .span-9{width:calc(8.33333333% * 9 - 40px);box-sizing:content-box;padding-right:40px}.row .span-10{width:calc(8.33333333% * 10 - 40px);box-sizing:content-box;padding-right:40px}.row .span-11{width:calc(8.33333333% * 11 - 40px);box-sizing:content-box;padding-right:40px}.row .span-12{width:calc(8.33333333% * 12 - 40px);box-sizing:content-box;padding-right:40px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.row.responsive{width:100%;padding:0;margin:0}.row.responsive>.span-1,.row.responsive>.span-10,.row.responsive>.span-11,.row.responsive>.span-12,.row.responsive>.span-2,.row.responsive>.span-3,.row.responsive>.span-4,.row.responsive>.span-5,.row.responsive>.span-6,.row.responsive>.span-7,.row.responsive>.span-8,.row.responsive>.span-9{width:calc(8.33333333% * 12 - 0px)!important;box-sizing:content-box!important;padding-right:0!important;width:100%!important}}.tiles{position:relative}.tiles:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.tiles .box hr{margin:15px -15px}.tiles>*{margin-right:50px!important;float:left;width:calc(33.3333% - 33.3333px)}.tiles>* .photo-title{width:calc(100% + 30px);height:15px;margin:-15px -15px 10px -15px;border-radius:10px 10px 0 0;background:var(--config-color-fade-super);border-bottom:solid 1px var(--config-color-fade-super)}.tiles>:nth-child(3n){margin-right:0!important}@media only screen and (min-width:551px) and (max-width:1198px){.tiles>li{width:calc(50% - 25px)}.tiles>li:nth-child(3n){margin-right:50px!important}.tiles>li:nth-child(2n){margin-right:0!important}}@media only screen and (max-width:550px){.tiles>li{width:100%;margin-right:0!important}}@font-face{font-family:icon;src:url(/fonts/icon.eot?t=1650537780691);src:url(/fonts/icon.eot?t=1650537780691#iefix) format('embedded-opentype'),url(/fonts/icon.woff2?t=1650537780691) format("woff2"),url(/fonts/icon.woff?t=1650537780691) format("woff"),url(/fonts/icon.ttf?t=1650537780691) format('truetype'),url(/fonts/icon.svg?t=1650537780691#icon) format('svg');font-weight:400;font-style:normal}[class*=" icon-"]:before,[class^=icon-]:before{font-family:icon!important;font-style:normal;font-weight:400;speak:never;vertical-align:middle;display:inline-block;text-decoration:inherit;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-angle-circled-left:before{content:"\ea01"}.icon-angle-circled-right:before{content:"\ea02"}.icon-archive:before{content:"\ea03"}.icon-article:before{content:"\ea04"}.icon-asterisk:before{content:"\ea05"}.icon-bank:before{content:"\ea06"}.icon-bell:before{content:"\ea07"}.icon-binoculars:before{content:"\ea08"}.icon-bitbucket:before{content:"\ea09"}.icon-bold:before{content:"\ea0a"}.icon-book-open:before{content:"\ea0b"}.icon-boolean:before{content:"\ea0c"}.icon-briefcase:before{content:"\ea0d"}.icon-building-filled:before{content:"\ea0e"}.icon-datetime:before{content:"\ea0f"}.icon-calendar:before{content:"\ea0f"}.icon-cancel-circled:before{content:"\ea10"}.icon-cancel:before{content:"\ea11"}.icon-chart-area:before{content:"\ea12"}.icon-chat-alt:before{content:"\ea13"}.icon-check:before{content:"\ea14"}.icon-chevron-down:before{content:"\ea15"}.icon-clock:before{content:"\ea16"}.icon-code:before{content:"\ea17"}.icon-cog:before{content:"\ea18"}.icon-comment:before{content:"\ea19"}.icon-database:before{content:"\ea1a"}.icon-dev:before{content:"\ea1b"}.icon-discord:before{content:"\ea1c"}.icon-docs:before{content:"\ea1d"}.icon-dot-3:before{content:"\ea1e"}.icon-dot-circled:before{content:"\ea1f"}.icon-double:before{content:"\ea20"}.icon-down-dir:before{content:"\ea21"}.icon-down-open:before{content:"\ea22"}.icon-download:before{content:"\ea23"}.icon-edit:before{content:"\ea24"}.icon-email:before{content:"\ea25"}.icon-enum:before{content:"\ea26"}.icon-export:before{content:"\ea27"}.icon-eye:before{content:"\ea28"}.icon-facebook:before{content:"\ea29"}.icon-file:before{content:"\ea2a"}.icon-film:before{content:"\ea2b"}.icon-filter:before{content:"\ea2c"}.icon-fire:before{content:"\ea2d"}.icon-float:before{content:"\ea2e"}.icon-folder:before{content:"\ea2f"}.icon-github:before{content:"\ea30"}.icon-gitlab:before{content:"\ea31"}.icon-glasses:before{content:"\ea32"}.icon-google:before{content:"\ea33"}.icon-hackernews:before{content:"\ea34"}.icon-header:before{content:"\ea35"}.icon-heart:before{content:"\ea36"}.icon-home:before{content:"\ea37"}.icon-image:before{content:"\ea38"}.icon-inbox:before{content:"\ea39"}.icon-info-circled:before{content:"\ea3a"}.icon-instagram:before{content:"\ea3b"}.icon-integer:before{content:"\ea3c"}.icon-ip:before{content:"\ea3d"}.icon-italic:before{content:"\ea3e"}.icon-key-inv:before{content:"\ea3f"}.icon-key:before{content:"\ea40"}.icon-keyboard:before{content:"\ea41"}.icon-lamp:before{content:"\ea42"}.icon-left-dir:before{content:"\ea43"}.icon-left-open:before{content:"\ea44"}.icon-lifebuoy:before{content:"\ea45"}.icon-lightning:before{content:"\ea46"}.icon-link-ext:before{content:"\ea47"}.icon-link:before{content:"\ea48"}.icon-linkedin:before{content:"\ea49"}.icon-list-bullet:before{content:"\ea4a"}.icon-list-numbered:before{content:"\ea4b"}.icon-list:before{content:"\ea4c"}.icon-location:before{content:"\ea4d"}.icon-lock:before{content:"\ea4e"}.icon-login:before{content:"\ea4f"}.icon-mail:before{content:"\ea50"}.icon-medium:before{content:"\ea51"}.icon-menu:before{content:"\ea52"}.icon-minus:before{content:"\ea53"}.icon-moon-inv:before{content:"\ea54"}.icon-moon:before{content:"\ea55"}.icon-more:before{content:"\ea56"}.icon-network:before{content:"\ea57"}.icon-ok-circled:before{content:"\ea58"}.icon-ok:before{content:"\ea59"}.icon-palette:before{content:"\ea5a"}.icon-pause:before{content:"\ea5b"}.icon-phone:before{content:"\ea5c"}.icon-photograph:before{content:"\ea5d"}.icon-picture:before{content:"\ea5e"}.icon-pinterest:before{content:"\ea5f"}.icon-play:before{content:"\ea60"}.icon-plus:before{content:"\ea61"}.icon-qrcode:before{content:"\ea62"}.icon-question:before{content:"\ea63"}.icon-quote-right:before{content:"\ea64"}.icon-random:before{content:"\ea65"}.icon-reddit:before{content:"\ea66"}.icon-refresh:before{content:"\ea67"}.icon-right-dir:before{content:"\ea68"}.icon-right-open:before{content:"\ea69"}.icon-rocket:before{content:"\ea6a"}.icon-search:before{content:"\ea6b"}.icon-shield:before{content:"\ea6c"}.icon-shuffle:before{content:"\ea6d"}.icon-smile-o:before{content:"\ea6e"}.icon-sort:before{content:"\ea6f"}.icon-stackoverflow:before{content:"\ea70"}.icon-stopwatch:before{content:"\ea71"}.icon-string:before{content:"\ea72"}.icon-sun-inv:before{content:"\ea73"}.icon-telegram:before{content:"\ea74"}.icon-trash-2:before{content:"\ea75"}.icon-trash:before{content:"\ea76"}.icon-twitter:before{content:"\ea77"}.icon-underline:before{content:"\ea78"}.icon-up-dir:before{content:"\ea79"}.icon-up-open:before{content:"\ea7a"}.icon-upload:before{content:"\ea7b"}.icon-url:before{content:"\ea7c"}.icon-user:before{content:"\ea7d"}.icon-users:before{content:"\ea7e"}.icon-videocam:before{content:"\ea7f"}.icon-warning:before{content:"\ea80"}.icon-whatsapp:before{content:"\ea81"}.icon-wheelchair:before{content:"\ea82"}.icon-windows:before{content:"\ea83"}.icon-wrench:before{content:"\ea84"}.icon-x:before{content:"\ea85"}.icon-youtube-play:before{content:"\ea86"}.datalist-polyfill{list-style:none;display:none;background:#fff;box-shadow:0 2px 2px #999;position:absolute;left:0;top:0;margin:0;padding:0;max-height:300px;overflow-y:auto}.datalist-polyfill:empty{display:none!important}.datalist-polyfill>li{padding:3px;font:13px "Lucida Grande",Sans-Serif}.datalist-polyfill__active{background:#3875d7;color:#fff}date-input-polyfill{z-index:1000!important;max-width:320px!important;width:320px!important}date-input-polyfill .monthSelect-wrapper,date-input-polyfill .yearSelect-wrapper{height:50px;line-height:50px;padding:0;width:40%!important;margin-bottom:10px!important}date-input-polyfill .monthSelect-wrapper select,date-input-polyfill .yearSelect-wrapper select{padding:0 12px;height:50px;line-height:50px;box-sizing:border-box}date-input-polyfill .yearSelect-wrapper{width:35%!important}date-input-polyfill table{width:100%!important;max-width:100%!important;padding:0 12px 12px 12px!important;box-sizing:border-box;margin:0}date-input-polyfill table td:first-child,date-input-polyfill table td:last-child,date-input-polyfill table th:first-child,date-input-polyfill table th:last-child{width:32px!important;padding:4px!important}date-input-polyfill select{margin-bottom:10px}date-input-polyfill button{width:25%!important;height:50px!important;line-height:50px!important;margin-bottom:10px!important;background:inherit;position:relative;color:inherit;padding:inherit;box-sizing:inherit;border-radius:inherit;font-size:inherit;box-shadow:none;border:none;border-bottom:none!important}::placeholder{color:var(--config-color-placeholder);text-align:left}::-webkit-input-placeholder{text-align:left}input:-moz-placeholder{text-align:left}form.inline{display:inline-block}input,textarea{background:var(--config-color-background-input)}input[type=file],input[type=file]::-webkit-file-upload-button{cursor:pointer}.button,button{display:inline-block;background:var(--config-color-focus);border-radius:26px;border:none;color:var(--config-color-background-fade);height:52px;line-height:52px;padding:0 25px;cursor:pointer;font-size:16px;box-sizing:border-box;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.button:focus,.button:hover,button:focus,button:hover{background:var(--config-color-focus-hover)}.button.fly,button.fly{position:fixed;z-index:2;bottom:30px;right:30px}@media only screen and (max-width:550px){.button.fly,button.fly{right:15px}}.button.fill,button.fill{display:block;width:100%;text-align:center;padding:0 10px!important}.button.fill-aligned,button.fill-aligned{display:block;width:100%;text-align:left;padding:0 20px!important}.button.icon,button.icon{padding-right:30px!important}.button.icon-reduce,button.icon-reduce{padding-left:15px!important}.button.reverse,button.reverse{background:0 0;height:50px;line-height:48px;padding:0 23px;color:var(--config-color-focus);border:solid 2px var(--config-color-focus)}.button.reverse:focus,.button.reverse:hover,button.reverse:focus,button.reverse:hover{color:var(--config-color-focus-hover);border-color:var(--config-color-focus-hover)}.button.small,button.small{padding:0 15px;height:40px;line-height:36px;font-size:13px}.button.tick,button.tick{background:var(--config-color-fade-light);color:var(--config-color-dark);border-radius:20px;padding:0 10px;line-height:30px;height:30px;font-size:12px;display:inline-block}.button.tick.selected,button.tick.selected{background:var(--config-color-dark);color:var(--config-color-fade)}.button.round,button.round{width:52px;padding:0}.button.round.small,button.round.small{font-size:12px;width:30px;height:30px;line-height:30px}.button.white,button.white{background:#fff;color:var(--config-color-focus)}.button.white.reverse,button.white.reverse{color:#fff;background:0 0;border:solid 2px #fff}.button.trans,button.trans{background:0 0!important}.button.trans.reverse,button.trans.reverse{background:0 0!important}.button.success,button.success{background:var(--config-color-success)}.button.success.reverse,button.success.reverse{color:var(--config-color-success);background:#fff;border:solid 2px var(--config-color-success)}.button.danger,button.danger{background:var(--config-color-danger);color:#fff}.button.danger.reverse,button.danger.reverse{color:var(--config-color-danger);background:var(--config-color-background-fade);border:solid 2px var(--config-color-danger)}.button.dark,button.dark{background:var(--config-color-dark);color:var(--config-color-background-fade)}.button.dark.reverse,button.dark.reverse{color:var(--config-color-dark);background:var(--config-color-background-fade);border:solid 2px var(--config-color-dark)}.button .disabled,.button.disabled,.button:disabled,button .disabled,button.disabled,button:disabled{color:var(--config-color-normal);background:var(--config-color-background-dark);opacity:.6;cursor:default}.button.link,button.link{background:0 0;border-radius:0;color:var(--config-color-link);height:auto;line-height:normal;padding:0;padding-right:0!important}.button.link:focus,button.link:focus{box-shadow:inherit}.button.strip,button.strip{background:0 0;height:auto;line-height:16px;color:inherit;padding:0 5px}.button.facebook,button.facebook{color:#fff!important;background:#4070b4!important}.button.twitter,button.twitter{color:#fff!important;background:#56c2ea!important}.button.linkedin,button.linkedin{color:#fff!important;background:#0076b5!important}.button.github,button.github{color:#fff!important;background:#7e7c7c!important}.button:focus,button:focus{outline:0}button.close{width:30px;height:30px;line-height:30px;padding:0;margin:0;background:var(--config-color-normal);color:var(--config-color-background-fade);border-radius:50%}button.close .icon-cancel::before{line-height:1}button.close.is-margin-top-10{margin-top:10px}label{margin-bottom:15px;display:block;line-height:normal}label.inline{display:inline}.input,input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=url],select,textarea{-webkit-appearance:none;-moz-appearance:none;-webkit-transform:translateZ(0);box-sizing:content-box;color:#313131;height:40px;line-height:40px;border:solid 1px var(--config-color-fade-light);border-radius:10px;padding:5px 15px;font-size:16px;display:block;width:calc(100% - 32px);margin-bottom:30px}.input[type=file],input[type=date][type=file],input[type=datetime-local][type=file],input[type=email][type=file],input[type=file][type=file],input[type=number][type=file],input[type=password][type=file],input[type=search][type=file],input[type=tel][type=file],input[type=text][type=file],input[type=url][type=file],select[type=file],textarea[type=file]{line-height:0;padding:15px;height:auto}.input:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=email]:focus,input[type=file]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=url]:focus,select:focus,textarea:focus{outline:0;border-color:#b3d7fd}.input:disabled,input[type=date]:disabled,input[type=datetime-local]:disabled,input[type=email]:disabled,input[type=file]:disabled,input[type=number]:disabled,input[type=password]:disabled,input[type=search]:disabled,input[type=tel]:disabled,input[type=text]:disabled,input[type=url]:disabled,select:disabled,textarea:disabled{color:var(--config-color-normal);background:var(--config-color-fade-super);opacity:1!important}.input.strip,input[type=date].strip,input[type=datetime-local].strip,input[type=email].strip,input[type=file].strip,input[type=number].strip,input[type=password].strip,input[type=search].strip,input[type=tel].strip,input[type=text].strip,input[type=url].strip,select.strip,textarea.strip{border:none;border-radius:0;padding:5px 0;width:100%;background-color:transparent;background-position:right 2px top 50%;border-bottom:solid 1px var(--config-color-fade-light);color:var(--config-color-placeholder)}.input.strip:focus,input[type=date].strip:focus,input[type=datetime-local].strip:focus,input[type=email].strip:focus,input[type=file].strip:focus,input[type=number].strip:focus,input[type=password].strip:focus,input[type=search].strip:focus,input[type=tel].strip:focus,input[type=text].strip:focus,input[type=url].strip:focus,select.strip:focus,textarea.strip:focus{border-color:#b3d7fd}.input:-webkit-autofill::first-line,input[type=date]:-webkit-autofill::first-line,input[type=datetime-local]:-webkit-autofill::first-line,input[type=email]:-webkit-autofill::first-line,input[type=file]:-webkit-autofill::first-line,input[type=number]:-webkit-autofill::first-line,input[type=password]:-webkit-autofill::first-line,input[type=search]:-webkit-autofill::first-line,input[type=tel]:-webkit-autofill::first-line,input[type=text]:-webkit-autofill::first-line,input[type=url]:-webkit-autofill::first-line,select:-webkit-autofill::first-line,textarea:-webkit-autofill::first-line{font-weight:300;font-size:16px}input[type=email],input[type=url]{direction:ltr}input[type=email]::placeholder,input[type=url]::placeholder{text-align:left;direction:ltr}select{background:0 0;-webkit-appearance:none;background-image:var(--config-console-nav-switch-arrow);background-position:right 15px top 50%;background-repeat:no-repeat;background-color:var(--config-color-background-input);width:calc(100% - 62px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:45px}select:-webkit-autofill{background-image:url("data:image/svg+xml;utf8,")!important;background-position:100% 50%!important;background-repeat:no-repeat!important}input[type=search],input[type=search].strip{background:0 0;-webkit-appearance:none;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAdZJREFUWIXt1s2LjWEYBvDfnDMzFpNIamZIFrMiJYMyFmKhZKfOwoiFr2LFn2BByG6WVrKwMcjWxgoLIlKIUk6RrzAjZWZ8LO731FlwvB+PUbjq6X0X7/VeV/d9P9fz8IdRL8Hpw3x8w0xaOz9GNxq4gJeZcGs1cRab0fU7xLfgMSYzoT3YgNXYhIO4iM+4iTWphGs4jikcFSXvhEGczr4/UFW8C2N4jXUFudvwCYeqGNgnSr6yJH8rpkWLCqMfE9hdUryFE3iC3qLEk7ij+kT34Q32FiHV8Qr7K4q3cArXihCGxd5elMjARnzBvE4f1dreV+AtnicycC/7/7K8BhaIvqXCO3zFwrwGZtCT0EAtW9N5DTSxWGR/CizNns/yEgbFEK5NZGCnaEPHE7e9Ai9wA6OJDIzistgJubFdxHB/RfFVYgCHixJruI5x5dNwDm6J47sUhkTvjpUw0Y1zeOrXR3hHjOA9zmBuTs4Arog4/yhuUZWwHPdFMh7280BZgiP4ILJ/UuymqRQmejPxphiquzgvKnMJDzOxB9glZqiRiecykbfHdawX98EhcdxO4BGu4nYm2EJDzEKPSMIdYrBnFYUq8d/EP2di1gey3cS4ErflvxffASbhcakIINaMAAAAAElFTkSuQmCC);background-color:var(--config-color-background-input);background-position:left 15px top 50%;background-repeat:no-repeat;background-size:20px 20px;width:calc(100% - 60px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:45px}select[multiple]{min-height:75px;padding:5px 10px!important;padding-right:50px!important}select[multiple] option{padding:10px 4px;border-bottom:solid 1px #f1f1f1}select[multiple] option:last-child{border-bottom:none}textarea{min-height:75px;resize:vertical;line-height:32px;padding:5px 15px}textarea.tall{min-height:180px}fieldset{border:none;margin:0;padding:0}.counter{font-size:13px;text-align:right;color:var(--config-color-fade);margin-top:-20px;margin-bottom:20px}.file-preview{background:var(--config-color-background-input) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAIElEQVQoU2NkYGAwZsAEZ9GFGIeIQix+wfQgyDODXSEAcUwGCrDSHgkAAAAASUVORK5CYII=)!important;box-shadow:inset 0 0 3px #a0a0a0;border-radius:8px;width:calc(100% - 2px);max-height:180px;visibility:visible!important;object-fit:cover}.video-preview{padding-top:56%;position:relative;border-radius:10px;background:#e7e7e7;overflow:hidden;margin:0}.video-preview iframe{position:absolute;top:0;width:100%;height:100%;border:none}.map-preview{padding-top:50%;position:relative;margin-bottom:10px;border-radius:10px;background:#e7e7e7;overflow:hidden;box-shadow:0 0 30px rgba(218,218,218,.5)}.map-preview iframe{position:absolute;top:0;width:100%;height:100%;border:none}.tooltip{position:relative}.tooltip.large:hover:after{white-space:normal;width:280px}.tooltip.small:hover:after{white-space:normal;width:180px}.tooltip:hover:after{white-space:nowrap;background:var(--config-color-tooltip-background);border-radius:5px;bottom:calc(100% + 6px);color:var(--config-color-tooltip-text);content:attr(data-tooltip);padding:5px 15px;position:absolute;font-size:13px;line-height:20px;z-index:98;left:20%;margin-left:-30px;word-break:break-word}.tooltip:hover:before{border:solid;border-color:var(--config-color-tooltip-background) transparent;border-width:6px 6px 0 6px;bottom:100%;content:"";position:absolute;z-index:99;left:3px}.tooltip.down:hover:after{top:calc(100% + 6px);bottom:inherit}.tooltip.down:hover:before{top:100%;border-width:0 6px 6px 6px;bottom:inherit}.tag{display:inline-block;background:var(--config-color-fade-light);color:var(--config-color-fade);border-radius:12px;line-height:24px;padding:0 8px;font-size:12px;box-shadow:none!important;border:none;height:auto;width:auto;white-space:nowrap;text-overflow:ellipsis}.tag:hover{border:none}.tag.green{background:var(--config-color-success);color:#fff}.tag.red{background:var(--config-color-danger);color:#fff}.tag.yellow{background:#ffe28b;color:#494949}.tag.focus{background:var(--config-color-focus);color:#fff}.tag.dark{background:var(--config-color-dark);color:#e7e7e7}.tag.blue{background:var(--config-color-info);color:#fff}.tag.link{background:var(--config-color-link);color:#fff}input[type=checkbox],input[type=radio]{width:26px;height:16px;position:relative;-webkit-appearance:none;border-radius:0;border:none;background:0 0;vertical-align:middle;margin:0}input[type=checkbox]:after,input[type=radio]:after{content:"";display:block;width:20px;height:20px;background:var(--config-color-background-fade);top:-5px;border-radius:50%;position:absolute;border:solid 3px var(--config-color-focus);vertical-align:middle}input[type=checkbox]:checked:after,input[type=radio]:checked:after{text-align:center;font-family:icon;content:'\ea14';font-size:16px;line-height:20px;color:var(--config-color-background-fade);background:var(--config-color-focus)}input[type=checkbox][type=radio]:checked:after,input[type=radio][type=radio]:checked:after{content:'';display:block;width:10px;height:10px;border-radius:50%;background:var(--config-color-background-fade);border:solid 8px var(--config-color-focus)}input[type=checkbox]:focus,input[type=radio]:focus{outline:0}input[type=checkbox]:focus:after,input[type=checkbox]:hover:after,input[type=radio]:focus:after,input[type=radio]:hover:after{outline:0;border-color:#000}input[type=checkbox]:checked:focus:after,input[type=checkbox]:checked:hover:after,input[type=radio]:checked:focus:after,input[type=radio]:checked:hover:after{border-color:var(--config-color-focus)}input[type=checkbox]:after{border-radius:4px}.input-copy{position:relative}.input-copy::before{content:'';display:block;position:absolute;height:50px;background:var(--config-color-fade-light);width:50px;right:0;border-radius:8px;z-index:1;margin:1px}.input-copy input,.input-copy textarea{padding-right:65px;width:calc(100% - 82px);resize:none}.input-copy .copy{position:absolute;z-index:2;top:0;right:0;border-left:solid 1px var(--config-color-fade-light);height:calc(100% - 2px);width:50px;line-height:50px;text-align:center;background:var(--config-color-background-focus);margin:1px;border-radius:0 9px 9px 0}.paging{color:var(--config-color-fade);padding:0;font-size:12px}.paging form{display:inline-block}.paging button:disabled{color:var(--config-color-background-fade);opacity:.6}.blue-snap iframe{-webkit-appearance:none;-moz-appearance:none;-webkit-transform:translateZ(0);box-sizing:content-box;color:#313131;height:40px;line-height:40px;border:solid 1px var(--config-color-fade-light);border-radius:10px;padding:5px 15px;font-size:16px;display:block;width:calc(100% - 32px);margin-bottom:30px;float:none!important;height:40px!important;width:calc(100% - 32px)!important;border:solid 1px #e2e2e2!important;background:0 0!important;position:static!important}.blue-snap iframe[type=file]{line-height:0;padding:15px;height:auto}.blue-snap iframe:focus{outline:0;border-color:#b3d7fd}.blue-snap iframe:disabled{color:var(--config-color-normal);background:var(--config-color-fade-super);opacity:1!important}.blue-snap iframe.strip{border:none;border-radius:0;padding:5px 0;width:100%;background-color:transparent;background-position:right 2px top 50%;border-bottom:solid 1px var(--config-color-fade-light);color:var(--config-color-placeholder)}.blue-snap iframe.strip:focus{border-color:#b3d7fd}.blue-snap iframe:-webkit-autofill::first-line{font-weight:300;font-size:16px}.blue-snap .error{font-size:12px;margin-top:-25px;color:var(--config-color-danger);height:40px;padding-left:2px}.pell{height:auto;padding-bottom:0;margin-bottom:0;padding-top:0;background:var(--config-color-background-input);line-height:normal!important;position:relative}.pell.hide{padding:0!important;height:1px;min-height:1px;max-height:1px;border:none;box-shadow:none;margin-bottom:20px;opacity:0}.pell [contenteditable=true]:empty:before{content:attr(placeholder);display:block;color:var(--config-color-placeholder)}.pell .pell-actionbar{border-bottom:solid 1px var(--config-color-fade-light);margin:0 -15px 15px -15px;padding:10px 15px;position:sticky;top:70px;background:var(--config-color-background-input);border-radius:10px 10px 0 0}.pell .pell-content{min-height:100px;display:block;padding:10px;margin:-10px;cursor:text}.pell .pell-content:focus{outline:0}.pell button{background:inherit;color:inherit;margin:0;padding:0;padding-right:15px;height:40px;line-height:40px;box-shadow:none;cursor:pointer;font-size:13px;border-radius:0}.pell button.pell-button-selected,.pell button:focus,.pell button:hover{color:var(--config-color-link)}.pell h1,.pell h2,.pell h3,.pell h4,.pell h5,.pell h6{text-align:inherit;margin-bottom:30px}.pell b,.pell strong{font-weight:700}.pell ol,.pell ul{margin:0 0 20px 0}.pell ol li,.pell ul li{display:list-item!important;list-style:inherit;list-style-position:inside!important;margin:0 20px 2px 20px}.pell ol li p,.pell ul li p{margin:0;display:inline}.pell ol li{list-style:decimal}.pell ol li::before{content:'';display:none}label.switch{line-height:42px}.switch,input[type=checkbox].button.switch,input[type=checkbox].switch{width:52px;height:32px;line-height:32px;border-radius:21px;background:var(--config-color-fade);display:inline-block;overflow:visible;margin:0;padding:5px;padding-left:5px;padding-right:30px}.switch.on,.switch:checked,input[type=checkbox].button.switch.on,input[type=checkbox].button.switch:checked,input[type=checkbox].switch.on,input[type=checkbox].switch:checked{background-color:var(--config-color-success);padding-left:25px;padding-right:5px}.switch.on:focus,.switch.on:hover,.switch:checked:focus,.switch:checked:hover,input[type=checkbox].button.switch.on:focus,input[type=checkbox].button.switch.on:hover,input[type=checkbox].button.switch:checked:focus,input[type=checkbox].button.switch:checked:hover,input[type=checkbox].switch.on:focus,input[type=checkbox].switch.on:hover,input[type=checkbox].switch:checked:focus,input[type=checkbox].switch:checked:hover{background:var(--config-color-success)}.switch:focus,.switch:hover,input[type=checkbox].button.switch:focus,input[type=checkbox].button.switch:hover,input[type=checkbox].switch:focus,input[type=checkbox].switch:hover{background:var(--config-color-fade)}.switch:focus:after,.switch:hover:after,input[type=checkbox].button.switch:focus:after,input[type=checkbox].button.switch:hover:after,input[type=checkbox].switch:focus:after,input[type=checkbox].switch:hover:after{background:#fff}.switch:after,input[type=checkbox].button.switch:after,input[type=checkbox].switch:after{content:"";display:block;width:22px;height:22px;background:#fff;border-radius:50%;border:none;position:static;top:0}.password-meter{margin:-41px 10px 30px 10px;height:2px;background:0 0;max-width:100%;z-index:2;position:relative}.password-meter.weak{background:var(--config-color-danger)}.password-meter.medium{background:var(--config-color-success)}.password-meter.strong{background:var(--config-color-success)}.color-input:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.color-input .color-preview{width:53px;height:53px;float:left;margin-right:10px;background:#000;border-radius:10px;box-shadow:inset 0 0 3px #a0a0a0;position:relative}.color-input .color-preview input{opacity:0;position:absolute;top:0;bottom:0;left:0;right:0;width:100%;height:100%;cursor:pointer}.color-input input{text-transform:uppercase;float:left;width:calc(100% - 95px)}.grecaptcha-badge{box-shadow:none!important;border-radius:10px!important;overflow:hidden!important;background:#4d92df!important;bottom:25px}.grecaptcha-badge:hover{width:256px!important}.back{font-size:15px;line-height:24px;height:24px;margin-left:-15px;margin-top:-25px;margin-bottom:20px}.back span{font-weight:inherit!important}@media only screen and (max-width:550px){.back{margin-left:-5px}}hr{height:1px;background:var(--config-border-color)!important;border:none}hr.fade{opacity:.7}.upload{position:relative}.upload:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.upload input{position:absolute;top:0;left:0;opacity:0;cursor:pointer}.upload.single .preview{height:0;position:relative;padding-top:100%;width:100%;margin-bottom:15px!important}.upload.single .preview li{position:absolute;top:0;width:calc(100% - 20px);height:calc(100% - 20px);margin-right:0!important;margin-bottom:0!important}.upload .button{float:left;margin-right:10px!important}.upload .button.disabled,.upload .button.disabled:hover{background:0 0;color:inherit;border-color:inherit}.upload .count{float:left;line-height:52px}.upload .progress{background:var(--config-color-success);height:6px;border-radius:3px;margin-bottom:15px!important}.upload .preview:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.upload .preview li{float:left;margin-right:20px!important;margin-bottom:15px!important;background:var(--config-color-background-fade-super);width:150px;height:150px;line-height:148px;text-align:center;border-radius:20px;overflow:hidden;position:relative;cursor:pointer;border:solid 1px var(--config-color-background-dark)}.upload .preview li:hover:before{background:var(--config-color-focus)}.upload .preview li:before{content:'\ea11';font-family:icon;font-size:12px;position:absolute;width:20px;height:20px;display:block;top:8px;right:8px;text-align:center;line-height:20px;vertical-align:middle;border-radius:50%;background:#484848;color:#fff;z-index:1}.upload .preview li img{vertical-align:middle;max-height:150px;max-width:150px;-webkit-filter:drop-shadow(0 0 6px rgba(0, 0, 0, .3));filter:drop-shadow(0 0 1px rgba(0, 0, 0, .3))}.upload.wide .preview li{height:0;width:100%;position:relative;padding-top:30.547%;background:#e7e7e7;border-radius:10px;overflow:hidden;border:solid 1px #f9f9f9;margin:0}.upload.wide .preview li img{border-radius:10px;position:absolute;top:0;width:100%;display:block;opacity:1;max-width:inherit;max-height:inherit}ol{list-style:none;counter-reset:x-counter;padding:0}ol li{counter-increment:x-counter;line-height:30px;margin-bottom:30px;margin-left:45px}ol li::before{display:inline-block;content:counter(x-counter);color:var(--config-color-background-fade);background:var(--config-color-focus);border:solid 2px var(--config-color-focus);margin-right:15px;margin-left:-45px;width:26px;height:26px;border-radius:50%;text-align:center;line-height:26px}.required{color:var(--config-color-danger);font-size:8px;position:relative;top:-8px}.drop-list{position:relative;outline:0}.drop-list.open ul{display:block}.drop-list ul{position:relative;background:var(--config-color-background-fade);border-radius:10px;border-bottom:none;box-shadow:0 0 3px rgba(0,0,0,.05);display:block;padding:30px;border-radius:4px;box-shadow:0 0 6px rgba(0,0,0,.1);display:none;position:absolute;bottom:calc(100% + 10px);z-index:2;padding:0;left:-10px;max-width:280px;min-width:240px}.drop-list ul.padding-tiny{padding:5px}.drop-list ul.padding-xs{padding:10px}.drop-list ul.padding-small{padding:15px}.drop-list ul.y-scroll{overflow-y:auto}.drop-list ul.danger{background:var(--config-color-danger);color:#fff}.drop-list ul.danger .box{color:var(--config-color-normal);background:var(--config-color-background-fade)}.drop-list ul.danger>.button,.drop-list ul.danger>button{background:#fff;color:var(--config-color-danger)}.drop-list ul.note{background:var(--config-note-background)}.drop-list ul.focus{background:var(--config-color-focus);color:var(--config-color-background-fade)}.drop-list ul.focus .button,.drop-list ul.focus button{background:var(--config-color-background-fade);color:var(--config-color-focus)}.drop-list ul.line{background:0 0;border:solid 1px var(--config-color-background-dark);box-shadow:none}.drop-list ul.warning{background:var(--config-color-warning);color:#2d2d2d}.drop-list ul.warning .button,.drop-list ul.warning button{background:rgba(45,45,45,.8);color:var(--config-color-success)}.drop-list ul .tabs{border-bottom:solid 1px var(--config-border-color);margin:0 -30px;padding:0 30px!important}.drop-list ul>footer{margin:0 -30px -30px -30px;padding:15px 30px;background:var(--config-color-background-fade);border:solid 1px var(--config-border-color);border-radius:0 0 10px 10px}.drop-list ul hr{height:1px;background:var(--config-console-background);border:none;margin:30px -30px}.drop-list ul .label{position:absolute;top:10px;z-index:2;right:10px}.drop-list ul.fade-bottom{position:relative;overflow:hidden}.drop-list ul.fade-bottom:after{content:"";position:absolute;display:block;bottom:15px;width:100%;background:#000;background:linear-gradient(180deg,rgba(0,0,0,0) 0,var(--config-color-background-fade) 80%);height:100px;margin:0 -15px}.drop-list ul .header{position:static;height:40px;padding:20px 30px 20px 30px;margin-bottom:30px;margin:-30px -30px 20px -30px;background:var(--config-color-background-fade);border-bottom:solid 1px #efefef}.drop-list ul ul.numbers>li{position:relative;margin-left:30px;margin-right:50px}.drop-list ul ul.numbers>li hr{margin-left:-60px;margin-right:-80px}.drop-list ul ul.numbers>li .settings{position:absolute;top:3px;right:-50px}.drop-list ul ul.numbers>li::after{display:block;width:25px;height:25px;line-height:25px;font-size:13px;font-weight:500;border-radius:50%;background:var(--config-color-focus);color:var(--config-color-background);counter-increment:section;content:counter(section);text-align:center;position:absolute;top:3px;left:-45px}.drop-list ul .scroll{margin:0 -30px;overflow-y:scroll}.drop-list ul .scroll table{width:100%;margin:0}.drop-list ul ul.sortable{counter-reset:section}.drop-list ul ul.sortable>li [data-move-down].round,.drop-list ul ul.sortable>li [data-move-up].round,.drop-list ul ul.sortable>li [data-remove].round{background:var(--config-color-focus);color:var(--config-color-background-fade);width:25px;height:25px;line-height:25px;display:inline-block;text-align:center;padding:0;margin-right:5px}.drop-list ul ul.sortable>li [data-move-down].round:disabled,.drop-list ul ul.sortable>li [data-move-up].round:disabled,.drop-list ul ul.sortable>li [data-remove].round:disabled{display:none}.drop-list ul ul.sortable>li:first-child [data-move-up]{display:none}.drop-list ul ul.sortable>li:first-child [data-move-up]:disabled{display:inline-block;background:var(--config-color-background)}.drop-list ul ul.sortable>li:last-child [data-move-down]{display:none}.drop-list ul ul.sortable>li:last-child [data-move-down]:disabled{display:inline-block;background:var(--config-color-background)}.drop-list ul .toggle{position:relative;border-top:1px solid var(--config-console-background);border-bottom:1px solid var(--config-console-background);margin:0 -30px;padding:30px 30px 0 30px;height:65px;overflow:hidden}.drop-list ul .toggle.list{border-bottom:none}.drop-list ul .toggle.sorts button.ls-ui-open{width:calc(100% - 100px)}.drop-list ul .toggle button.ls-ui-open{right:0;position:absolute;top:0;width:100%;height:95px;background:0 0;opacity:.5;border-radius:0}.drop-list ul .toggle .icon-minus,.drop-list ul .toggle .icon-up-open{display:none}.drop-list ul .toggle .content{display:none}.drop-list ul .toggle.open{height:auto}.drop-list ul .toggle.open .icon-minus,.drop-list ul .toggle.open .icon-up-open{display:block}.drop-list ul .toggle.open .icon-down-open,.drop-list ul .toggle.open .icon-plus{display:none}.drop-list ul .toggle.open .content{display:block}.drop-list ul .list li{border-bottom:solid 2px var(--config-border-color);margin:0 -30px 30px -30px;padding:0 30px 30px 30px}.drop-list ul .list li:last-child{padding-bottom:0;margin-bottom:0;border-bottom:none}@media only screen and (max-width:550px){.drop-list ul .list li .actions{float:none}}.drop-list ul .list li .avatar{display:block}.drop-list ul .list li .avatar.inline{display:inline-block}.drop-list ul.new{text-align:center}.drop-list ul.new i{font-size:80px;line-height:80px;font-family:Poppins,sans-serif;font-style:normal;font-weight:300}.drop-list ul.new b{margin-top:20px;display:block}.drop-list ul .info{margin:0 -30px;padding:20px 30px;background:var(--config-modal-note-background);color:var(--config-modal-note-color);border-top:solid 1px var(--config-modal-note-border);border-bottom:solid 1px var(--config-modal-note-border)}.drop-list ul .info hr{background:var(--config-modal-note-border)!important}.drop-list ul .table-wrap{margin:0 -30px;overflow-y:scroll}.drop-list ul .table-wrap table{margin:0}.drop-list ul:before{border:solid;border-color:var(--config-color-background-fade) transparent;border-width:8px 8px 0 8px;bottom:-8px;content:"";position:absolute;z-index:99;left:30px}.drop-list ul.arrow-end:before{right:30px;left:unset}.drop-list ul.no-arrow::before{display:none}.drop-list ul li{border-bottom:solid 1px var(--config-color-fade-super);margin:0;padding:0}.drop-list ul li:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.drop-list ul li:first-child{border-radius:4px 4px 0 0}.drop-list ul li:last-child{border-radius:0 0 4px 4px}.drop-list ul li:hover{background:var(--config-color-fade-super)}.drop-list ul li:first-child:hover,.drop-list ul li:last-child:hover{border-color:transparent}.drop-list ul li .link,.drop-list ul li a,.drop-list ul li button.link{display:block;vertical-align:middle;height:auto;line-height:30px;display:inline-block;padding:10px 15px!important;color:inherit;font-size:14px;border:none;cursor:pointer;width:calc(100% - 30px);text-align:left;box-sizing:content-box}.drop-list ul li.disabled .link:hover,.drop-list ul li.disabled a:hover{background:0 0}.drop-list ul li .avatar{width:30px;height:30px;margin-right:10px;float:left}.drop-list ul li i.avatar{text-align:center;background:var(--config-color-dark);color:var(--config-color-background-fade)}.drop-list ul li:last-child{border-bottom:none}.drop-list.bottom ul{bottom:auto;margin-top:-2px}.drop-list.bottom ul:before{bottom:auto;top:-8px;border-width:0 8px 8px 8px}.drop-list.end ul{right:-10px;left:auto}.disabled{opacity:.2;cursor:default}.disabled .button,.disabled .link,.disabled a,.disabled button{cursor:default!important}.disabled .button:hover,.disabled .link:hover,.disabled a:hover,.disabled button:hover{background:0 0}.tags{-webkit-appearance:none;-moz-appearance:none;-webkit-transform:translateZ(0);box-sizing:content-box;color:#313131;height:40px;line-height:40px;border:solid 1px var(--config-color-fade-light);border-radius:10px;padding:5px 15px;font-size:16px;display:block;width:calc(100% - 32px);margin-bottom:30px;background:var(--config-color-background-input);min-height:42px;height:auto;cursor:text}.tags[type=file]{line-height:0;padding:15px;height:auto}.tags:focus{outline:0;border-color:#b3d7fd}.tags:disabled{color:var(--config-color-normal);background:var(--config-color-fade-super);opacity:1!important}.tags.strip{border:none;border-radius:0;padding:5px 0;width:100%;background-color:transparent;background-position:right 2px top 50%;border-bottom:solid 1px var(--config-color-fade-light);color:var(--config-color-placeholder)}.tags.strip:focus{border-color:#b3d7fd}.tags:-webkit-autofill::first-line{font-weight:300;font-size:16px}.tags .add{display:inline-block!important;border:none;padding:0;width:auto;margin:0;max-width:100%;min-width:200px}.tags ul.tags-list{display:inline;white-space:pre-line}.tags ul.tags-list li{display:inline-block!important;margin-right:10px;font-size:16px;padding:5px 10px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tags ul.tags-list li::before{float:right;content:'\ea11';font-family:icon;font-style:normal;display:inline-block;text-align:center;line-height:16px;width:16px;height:16px;font-size:12px;background:#000;color:#fff;border-radius:50%;margin-top:4px;margin-bottom:4px;margin-left:6px;margin-right:0}.switch-theme{background:var(--config-switch-background);border-radius:19px;height:26px;width:44px;margin:9px 0}.switch-theme button{padding:3px;display:block;background:0 0;height:26px;width:100%}.switch-theme i{background:var(--config-color-background-fade);border-radius:50%;height:18px;width:18px;line-height:18px;font-size:10px;padding:0;margin:0;color:var(--config-color-fade)}.switch-theme i.force-light{float:right}.switch-theme i.force-dark{float:left}.dot{width:20px;height:20px;background:var(--config-color-fade);border-radius:50%;display:inline-block;vertical-align:middle;margin:0!important;padding:0!important}.dot.danger{background:var(--config-color-danger)!important}.dot.success{background:var(--config-color-success)!important}.dot.warning{background:var(--config-color-warning)!important}.dot.info{background:var(--config-color-info)!important}.ide{background-color:var(--config-prism-background);overflow:hidden;position:relative;z-index:1;box-shadow:0 2px 4px 0 rgba(50,50,93,.3);border-radius:10px;margin-bottom:30px}.ide *{font-family:"Source Code Pro",monospace}.ide[data-lang]::after{content:attr(data-lang-label);display:inline-block;background:#fff;color:#000;position:absolute;top:15px;padding:5px 10px;border-radius:15px;font-size:10px;right:10px;opacity:.95}.ide[data-lang=bash]::after{background:var(--config-language-bash);color:var(--config-language-bash-contrast)}.ide[data-lang=javascript]::after{background:var(--config-language-javascript);color:var(--config-language-javascript-contrast)}.ide[data-lang=web]::after{background:var(--config-language-web);color:var(--config-language-web-contrast)}.ide[data-lang=html]::after{background:var(--config-language-html);color:var(--config-language-html-contrast)}.ide[data-lang=php]::after{background:var(--config-language-php);color:var(--config-language-php-contrast)}.ide[data-lang=nodejs]::after{background:var(--config-language-nodejs);color:var(--config-language-nodejs-contrast)}.ide[data-lang=ruby]::after{background:var(--config-language-ruby);color:var(--config-language-ruby-contrast)}.ide[data-lang=python]::after{background:var(--config-language-python);color:var(--config-language-python-contrast)}.ide[data-lang=go]::after{background:var(--config-language-go);color:var(--config-language-go-contrast)}.ide[data-lang=dart]::after{background:var(--config-language-dart);color:var(--config-language-dart-contrast)}.ide[data-lang=flutter]::after{background:var(--config-language-flutter);color:var(--config-language-flutter-contrast)}.ide[data-lang=android]::after{background:var(--config-language-android);color:var(--config-language-android-contrast)}.ide[data-lang=swift]::after{background:var(--config-language-swift);color:var(--config-language-swift-contrast)}.ide[data-lang=kotlin]::after{background:var(--config-language-kotlin);color:var(--config-language-kotlin-contrast)}.ide[data-lang=java]::after{background:var(--config-language-java);color:var(--config-language-java-contrast)}.ide[data-lang=yaml]::after{background:var(--config-language-yaml);color:var(--config-language-yaml-contrast)}.ide .tag{color:inherit!important;background:0 0!important;padding:inherit!important;font-size:inherit!important;line-height:14px}.ide .copy{cursor:pointer;content:attr(data-lang);display:inline-block;background:#fff;color:#000;position:absolute;transform:translateX(-50%);bottom:-20px;padding:5px 10px;border-radius:15px;font-size:10px;font-style:normal;left:50%;opacity:0;transition:bottom .3s,opacity .3s;line-height:normal;font-family:Poppins,sans-serif}.ide .copy::before{padding-right:5px}.ide:hover .copy{transition:bottom .3s,opacity .3s;opacity:.9;bottom:16px}.ide pre{-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none;color:#e6ebf1;font-weight:400;line-height:20px;font-size:13px;margin:0;padding:20px;padding-left:60px}.ide.light{box-shadow:0 2px 4px 0 rgba(50,50,93,.1);background-color:#fff}.ide.light pre{color:#414770}.ide.light .token.cdata,.ide.light .token.comment,.ide.light .token.doctype,.ide.light .token.prolog{color:#91a2b0}.ide.light .token.attr-name,.ide.light .token.builtin,.ide.light .token.char,.ide.light .token.inserted,.ide.light .token.selector,.ide.light .token.string{color:#149570}.ide.light .token.punctuation{color:#414770}.ide.light .language-css .token.string,.ide.light .style .token.string,.ide.light .token.entity,.ide.light .token.operator,.ide.light .token.url,.ide.light .token.variable{color:#414770}.ide.light .line-numbers .line-numbers-rows{background:#f2feef}.ide.light .line-numbers-rows>span:before{color:#5dc79e}.ide.light .token.keyword{color:#6772e4;font-weight:500}code[class*=language-],pre[class*=language-]{text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4}pre[class*=language-]{overflow:auto}:not(pre)>code[class*=language-]{padding:.1em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#6b7c93}.token.punctuation{color:#f8f8f2}.namespace{opacity:.7}.token.constant,.token.deleted,.token.property,.token.symbol,.token.tag{color:#f92672}.token.boolean,.token.number{color:#f79a59}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#3ecf8e}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url,.token.variable{color:#f8f8f2}.token.atrule,.token.attr-value,.token.class-name,.token.function{color:#45b2e8}.token.keyword{color:#7795f8}.token.important,.token.regex{color:#fd971f}.token.italic{font-style:italic}.token.entity{cursor:help}pre[class*=language-].line-numbers{position:relative;padding-left:60px;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{background:var(--config-prism-numbers);position:absolute;pointer-events:none;top:-20px;bottom:-21px;padding:20px 0;font-size:100%;left:-60px;width:40px;letter-spacing:-1px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{padding-right:5px;pointer-events:none;display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#636365;display:block;padding-right:.8em;text-align:right}.u-table-layout-normal{table-layout:revert!important}.u-margin-inline-end-16{margin-inline-end:16px!important}.console{width:100%;padding:0;overscroll-behavior:none}.console body{position:relative;width:calc(100% - 320px);padding-top:70px;padding-bottom:0;padding-right:50px;padding-left:270px;margin:0;color:var(--config-color-normal);background:var(--config-console-background)}.console body .project-only{display:none!important}.console body.show-nav .project-only{display:inline-block!important}.console body.hide-nav{padding-left:50px;width:calc(100% - 100px)}.console body.hide-nav header{width:calc(100% - 50px)}.console body.hide-nav header .logo{display:inline-block}.console body.hide-nav .console-back{display:block}.console body.hide-nav .console-index{display:none}.console body.hide-nav .account{display:none}.console body.index .console-back{display:none}.console body.index .console-index{display:block}.console body.index .account{display:block}.console body .console-index{display:block}.console body .console-back{display:none}.console main{min-height:480px}.console header{position:fixed;top:0;width:calc(100% - 280px);height:40px;line-height:40px;padding:15px 30px;background:var(--config-color-background-fade);box-shadow:0 0 2px rgba(0,0,0,.1);margin:0 -50px;z-index:2;font-size:14px}.console header .logo{display:none;border:none}.console header .logo:hover{border:none;opacity:.8}.console header .logo img{height:26px;margin:7px 0}.console header .setup-new{width:40px;height:40px;line-height:40px}.console header .list{width:240px}.console header .list select{height:40px;line-height:40px;padding-top:0;padding-bottom:0;border:none;border-radius:26px;background-color:var(--config-console-nav-switch-background);color:var(--config-console-nav-switch-color)}.console header .account{margin-left:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.console header .switch-theme{margin:2px 0}.console header .avatar{height:40px;width:40px}.console header .account-button{background:0 0;position:absolute;width:100%;height:40px;border-radius:0;z-index:1}.console header .notifications{position:relative;font-size:20px}.console header .notifications a{color:#1b3445}.console header .notifications:after{position:absolute;content:"";display:block;background:var(--config-color-danger);width:8px;height:8px;border-radius:50%;top:3px;right:3px}.console header nav{background:#1b3445;background:linear-gradient(var(--config-console-nav-start),var(--config-console-nav-end));color:#788c99;position:fixed;height:100%;width:220px;top:0;left:0}.console header nav .logo{height:39px;padding:15px 20px;display:block}.console header nav .logo img{display:inline-block;margin-top:7px;margin-bottom:14px}.console header nav .logo svg g{fill:var(--config-color-focus)}.console header nav .icon{display:block;border:none;margin:18px 10px 50px 10px}.console header nav .icon img{display:block}.console header nav .icon:hover{border-bottom:none}.console header nav .icon:hover svg g{fill:var(--config-color-focus)}.console header nav .container{overflow:auto;height:calc(100% - 133px);width:100%}.console header nav .project-box{padding:20px;text-align:center;display:block;border:none;line-height:100px;height:100px}.console header nav .project-box img{max-height:80px;max-width:80%;display:inline-block;vertical-align:middle}.console header nav .project{display:block;padding:85px 25px 20px 25px;color:#788c99;position:relative;border:none;height:20px}.console header nav .project:hover{border-bottom:none}.console header nav .project .name{height:20px;line-height:20px;margin:0;padding:0;display:inline-block;max-width:100%}.console header nav .project .arrow{display:block;position:absolute;right:5px;top:10px;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #788c99;transform:rotate(225deg)}.console header nav .project img{position:absolute;bottom:40px;display:block;margin-bottom:10px;max-height:35px;max-width:40%}.console header nav .subtitle{padding:0 30px;display:block;font-size:12px;font-weight:300}.console header nav .links{margin-bottom:15px!important}.console header nav .links.top{border:none;padding-bottom:0;margin-bottom:5px!important}.console header nav .links.bottom{position:absolute;bottom:0;left:0;right:0;padding-bottom:0;border:none;margin-bottom:0!important;box-shadow:0 0 10px rgba(0,0,0,.1)}.console header nav .links.bottom a{border-top:solid 1px var(--config-console-nav-border);border-bottom:none}.console header nav .links .sub{display:inline-block;border:none;width:25px;height:25px;line-height:25px;border-radius:50%;padding:0;background:var(--config-color-focus);color:#fff;text-align:center;font-size:12px;margin:18px}.console header nav .links .sub i{width:auto;margin:0}.console header nav .links .sub:hover{border:none}.console header nav .links a{padding:8px 20px;border:none;display:flex;color:#87a5b9;font-weight:400;border-left:solid 5px transparent;font-size:13px}.console header nav .links a i{margin-right:8px;width:22px;display:inline-block}.console header nav .links a.selected,.console header nav .links a:hover{color:#e4e4e4}.console header nav:after{content:'';display:block;position:absolute;background:#302839;height:100px;width:100%;bottom:-100px}.console>footer{width:calc(100% + 100px);margin:0 -50px;box-sizing:border-box;background:0 0;padding-right:30px;padding-left:30px}.console>footer ul{float:none;text-align:center}.console>footer ul li{float:none;display:inline-block}.console .projects{position:relative}.console .projects:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.console .projects li{float:left;margin-right:50px;margin-bottom:50px;width:270px}.console .projects li:nth-child(3n){margin-right:0}.console .dashboard{padding:20px;overflow:visible;position:relative;z-index:1;margin-bottom:2px}.console .dashboard .chart{width:80%}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.console .dashboard .chart{width:100%}}.console .dashboard hr{margin:20px -25px;height:2px;background:var(--config-console-background)}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.console .dashboard hr{height:3px}}.console .dashboard footer{margin:-20px;padding:20px;background:#fcfeff;border:none;color:var(--config-color-link)}.console .dashboard .col{position:relative}.console .dashboard .col:last-child:after{display:none}.console .dashboard .col:after{content:"";display:block;width:2px;background:var(--config-console-background);position:absolute;top:-20px;bottom:-20px;right:24px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.console .dashboard .col:after{width:calc(100% + 40px);height:3px;position:static;margin:20px -20px}}.console .dashboard .value{color:var(--config-color-focus);vertical-align:bottom;line-height:45px}.console .dashboard .value.small{line-height:35px}.console .dashboard .value .sum{font-size:45px;line-height:45px;font-weight:700;vertical-align:bottom}.console .dashboard .value .sum.small{font-size:25px;line-height:25px}.console .dashboard .unit{font-weight:500;line-height:20px;vertical-align:bottom;font-size:16px;display:inline-block;margin-bottom:5px;margin-left:5px;color:var(--config-color-focus)}.console .dashboard .metric{color:var(--config-color-focus);font-weight:400;font-size:13px;line-height:16px}.console .dashboard .range{color:var(--config-color-fade);font-weight:400;font-size:14px;line-height:16px}.console .dashboard a{display:block;font-weight:400;font-size:14px;line-height:16px;padding:0;border:none}.console .dashboard .chart-bar{height:4rem;width:auto;display:flex;align-items:flex-end}@media only screen and (min-width:1199px){.console .dashboard .chart-bar{padding-right:15px}}.console .dashboard .chart-bar .bar{width:12.5%;background-color:var(--config-color-chart-fade);margin:0 2px;border-top:2px solid var(--config-color-chart)}.console .dashboard .chart-bar .bar:hover{background-color:var(--config-color-chart)}.console .dashboard .chart-bar .bar.bar-100{height:100%}.console .dashboard .chart-bar .bar.bar-90{height:90%}.console .dashboard .chart-bar .bar.bar-80{height:80%}.console .dashboard .chart-bar .bar.bar-70{height:70%}.console .dashboard .chart-bar .bar.bar-60{height:60%}.console .dashboard .chart-bar .bar.bar-50{height:50%}.console .dashboard .chart-bar .bar.bar-40{height:40%}.console .dashboard .chart-bar .bar.bar-30{height:30%}.console .dashboard .chart-bar .bar.bar-20{height:20%}.console .dashboard .chart-bar .bar.bar-10{height:10%}.console .dashboard .chart-bar .bar.bar-0{height:0%}.console .dashboard .chart-bar .bar.bar-0{border-top:1px solid var(--config-color-chart)}.console .dashboard .chart-bar .bar.bar-5{height:5%}.console .chart-metric{width:19%}@media only screen and (min-width:551px) and (max-width:1198px),only screen and (max-width:550px){.console .chart-metric{width:100%}}.console .chart{width:100%;position:relative;height:0;padding-top:20px;padding-bottom:26%;margin-right:-2px;overflow:hidden;background-color:var(--config-color-background-fade);background-image:linear-gradient(transparent 1px,transparent 1px),linear-gradient(90deg,transparent 1px,transparent 1px),linear-gradient(var(--config-border-color) 1px,transparent 1px),linear-gradient(90deg,var(--config-border-color) 1px,transparent 1px);background-size:100px 100px,100px 100px,20px 20px,20px 20px;background-position:-2px -2px,-2px -2px,-1px -1px,-1px -1px;background-repeat:round;border:solid 1px var(--config-border-color);border-right:solid 1px transparent;border-bottom:solid 1px transparent}.console .chart.background-image-no{background-image:none}.console .chart.border-no{border:none}@media only screen and (min-width:551px) and (max-width:1198px),only screen and (max-width:550px){.console .chart{width:100%;padding-bottom:32%;float:none;margin-bottom:20px}}.console .chart canvas{position:absolute;bottom:0;display:block;height:100%;width:100%}.console .chart-notes{font-size:12px}.console .chart-notes.crud li.create,.console .chart-notes.crud li:nth-child(1){color:#00b680}.console .chart-notes.crud li.create::before,.console .chart-notes.crud li:nth-child(1)::before{background:#00b680}.console .chart-notes.crud li.read,.console .chart-notes.crud li:nth-child(2){color:#009cde}.console .chart-notes.crud li.read::before,.console .chart-notes.crud li:nth-child(2)::before{background:#009cde}.console .chart-notes.crud li.update,.console .chart-notes.crud li:nth-child(3){color:#696fd7}.console .chart-notes.crud li.update::before,.console .chart-notes.crud li:nth-child(3)::before{background:#696fd7}.console .chart-notes.crud li.delete,.console .chart-notes.crud li:nth-child(4){color:#da5d95}.console .chart-notes.crud li.delete::before,.console .chart-notes.crud li:nth-child(4)::before{background:#da5d95}.console .chart-notes li{line-height:20px;display:inline-block;margin-right:15px}.console .chart-notes li::before{display:inline-block;content:'';width:14px;height:14px;background:var(--config-color-normal);border-radius:50%;margin-right:8px;vertical-align:middle}.console .chart-notes li.blue,.console .chart-notes li:nth-child(1){color:var(--config-color-chart)}.console .chart-notes li.blue::before,.console .chart-notes li:nth-child(1)::before{background:var(--config-color-chart)}.console .chart-notes li.green,.console .chart-notes li:nth-child(2){color:#4eb55b}.console .chart-notes li.green::before,.console .chart-notes li:nth-child(2)::before{background:#4eb55b}.console .chart-notes li.orange,.console .chart-notes li:nth-child(3){color:#ec9323}.console .chart-notes li.orange::before,.console .chart-notes li:nth-child(3)::before{background:#ec9323}.console .chart-notes li.red,.console .chart-notes li:nth-child(4){color:#dc3232}.console .chart-notes li.red::before,.console .chart-notes li:nth-child(4)::before{background:#dc3232}.console .community a{padding:0 10px;display:inline-block}.console .link-list li{margin-bottom:15px}.console .link-list i{display:inline-block;width:30px;height:30px;line-height:30px;text-align:center;background:var(--config-color-fade);color:var(--config-color-fade-super);border-radius:50%;margin-right:15px}.console .link-list i.fade{background:0 0;color:var(--config-color-fade)}.console .provider{width:50px;height:50px;background:var(--config-color-background-focus);color:#868686;line-height:50px;text-align:center;font-size:25px;border-radius:50%}.console .provider.facebook{color:#fff;background:#3b5998}.console .provider.twitter{color:#fff;background:#55beff}.console .provider.telegram{color:#fff;background:#3ba9e1}.console .provider.github{color:#fff;background:#24292e}.console .provider.whatsapp{color:#fff;background:#25d366}.console .provider.linkedin{color:#fff;background:#1074af}.console .provider.microsoft{color:#fff;background:#137ad4}.console .provider.google{color:#fff;background:#4489f1}.console .provider.bitbucket{color:#fff;background:#2a88fb}.console .provider.gitlab{color:#faa238;background:#30353e}.console .provider.instagram{color:#fff;background:radial-gradient(circle at 30% 107%,#fdf497 0,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285aeb 90%)}.console .premium{z-index:3;margin-top:320px}.console .premium .message{height:190px;overflow:hidden;position:absolute;top:-280px}.console .premium:after{content:'';position:absolute;top:0;left:-20px;right:-20px;bottom:-20px;background:var(--config-color-background);opacity:.7;z-index:300}.console .app-section{height:90px}.console .confirm{background:var(--config-color-link);color:#fff;border-radius:25px;padding:12px;line-height:28px;text-align:center}.console .confirm .action{font-weight:500;cursor:pointer}.console .platforms{overflow:hidden}.console .platforms .box{overflow:hidden}.console .platforms .box img{width:50px;margin:0 auto;margin-bottom:20px}.console .platforms .box .cover{margin:-30px -30px 30px -30px;padding:30px}.console .platforms .box .cover.android{background:#a4ca24}.console .platforms .box .cover.android h1{color:#fff;font-size:18px;margin-top:20px}.console .platforms .col{text-align:center;line-height:30px}.console .platforms a{display:block;margin:-20px;padding:20px}.console .platforms a:hover{background:#fbfeff}.console .platforms img{display:block;margin:0 30px;width:calc(100% - 60px);border-radius:50%;margin-bottom:20px}.console .document-nav{display:none;position:sticky;top:90px}@media only screen and (min-width:1380px){.console .document-nav{display:block}}.console .document-nav ul{position:absolute;width:200px;left:-260px}.console .document-nav ul li{margin-bottom:20px}.console .document-nav ul li .selected{font-weight:500}@media only screen and (min-width:1199px){.console .logo .top{display:none!important}}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.console>header{width:calc(100% - 30px)!important;margin:0 -30px;padding:15px}.console>header nav{width:100%;height:70px;overflow:hidden}.console>header nav.close{background:0 0}.console>header nav.close .logo .nav{display:none!important}.console>header nav.open{height:100%}.console>header nav.open .logo .top{display:none!important}.console>header nav.open .bottom{display:block!important}.console>header nav.open button{color:#87a5b9}.console>header nav button{margin:9px;background:0 0;color:var(--config-color-normal)}.console>header nav button:focus,.console>header nav button:hover{background:0 0}.console>header nav .logo{display:block!important;position:absolute;top:0;left:50%;margin:auto;transform:translateX(-50%)}.console>header nav .bottom{display:none!important}.console>footer{width:auto;margin:50px -30px 0 -30px!important;padding:0 30px 30px 30px}.console body{height:"calc(100% - 70px)"!important;width:calc(100% - 60px)!important;padding:70px 30px 0 30px!important}.console .cover{padding:25px 30px;margin:0 -30px}}@media only screen and (max-width:550px){.console body{height:"calc(100% - 70px)"!important;width:calc(100% - 40px)!important;padding:70px 20px 0 20px!important}.console .cover{padding:20px 20px;margin:0 -20px}.console>header{margin:0 -20px}.console>header .list{width:175px;font-size:14px}.console>footer{margin:50px -20px 0 -20px!important;padding:0 20px 20px 20px}}.dev-feature{display:none}.prod-feature{display:none}.development .dev-feature{display:block;opacity:.6!important;outline:solid #ff0 3px;outline-offset:3px}.development .dev-feature.dev-inline{display:inline-block}.development .prod-feature{display:none}.production .dev-feature{display:none}.production .prod-feature{display:block}.search{opacity:1!important}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.search button{margin-top:20px}}html.home body{padding:0 50px;color:var(--config-color-normal)}html.home .logo a{display:block}html.home .logo a:hover{opacity:.8}html.home .logo img{max-height:35px;width:198px;margin:45px auto 25px auto}html.home footer{background:0 0;text-align:center}html.home main{min-height:400px}.alerts ul{width:100%;visibility:hidden;position:fixed;padding:0;right:0;left:0;color:var(--config-color-normal);z-index:1001;margin:0 auto;bottom:15px;max-width:560px}.alerts ul li{margin:10px 0 0 0;padding:0}.alerts ul li div.message{position:relative;padding:12px 35px;margin:0 auto;list-style:none;background:var(--config-color-background-dark);text-align:center;font-size:14px;border-radius:10px;line-height:16px;min-height:16px;box-shadow:0 0 10px rgba(0,0,0,.05);opacity:.95}.alerts ul li div.message a,.alerts ul li div.message span{font-weight:600}.alerts ul li div.message a{border-bottom:dotted 1px var(--config-color-normal)}.alerts ul li div.message i{cursor:pointer;position:absolute;font-size:12px;line-height:24px;top:8px;left:8px;color:var(--config-color-background-dark);background:var(--config-color-normal);width:24px;height:24px;border-radius:50%}.alerts ul li div.message.error{color:#fff!important;background:var(--config-color-danger)!important}.alerts ul li div.message.error a{color:#fff!important;border-bottom:dotted 1px #fff!important}.alerts ul li div.message.error i{color:var(--config-color-danger);background:#fff}.alerts ul li div.message.success{color:#fff!important;background:var(--config-color-success)!important}.alerts ul li div.message.success a{color:#fff;border-bottom:dotted 1px #fff}.alerts ul li div.message.success i{color:var(--config-color-success);background:#fff}.alerts ul li div.message.warning{color:var(--config-color-normal)!important;background:var(--config-color-warning)!important}.alerts ul li div.message.warning a{color:var(--config-color-normal)!important;border-bottom:dotted 1px var(--config-color-normal)!important}.alerts ul li div.message.warning i{color:#fff;background:var(--config-color-normal)!important}.alerts ul li div.message.open{display:block}.alerts ul li div.message.close{display:none}.alerts .cookie-alert{background:var(--config-color-focus-fade)!important;color:var(--config-color-focus)}.alerts .cookie-alert a{color:var(--config-color-focus);font-weight:400;border-bottom:dotted 1px var(--config-color-focus)!important}.alerts .cookie-alert i{color:var(--config-color-focus-fade)!important;background:var(--config-color-focus)!important}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.alerts ul{top:auto;bottom:0;max-width:100%;left:0}.alerts ul li{margin:5px 0 0 0}.alerts ul li div.message{border-radius:0}}.show-nav .alerts ul{left:220px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.show-nav .alerts ul{left:0}}article{overflow-wrap:break-word;word-wrap:break-word}article h1{font-size:36px}article h2{font-size:24px}article h3{font-size:20px}article h4{font-size:20px}article h5{font-size:18px}article h6{font-size:16px}article h1,article h2,article h3,article h4,article h5,article h6{margin-top:30px!important;margin-bottom:30px!important}article p{line-height:32px;font-size:16px}article .update{display:block;margin-top:50px!important}article table{width:100%;margin:0;margin-bottom:30px!important;border-radius:0;border-bottom:solid 1px var(--config-border-color)}article table thead td{font-weight:500;padding:5px 15px}article table td,article table th{padding:15px;height:auto}article table td:first-child,article table th:first-child{padding-left:10px}article table td:last-child,article table th:last-child{padding-right:10px}article table td p,article table th p{font-size:inherit;line-height:inherit}article table td p:last-child,article table th p:last-child{margin:0}.avatar-container{position:relative}.avatar-container .corner{position:absolute;bottom:-3px;right:-3px}.avatar{width:60px;height:60px;border-radius:50%;background:var(--config-color-background-focus);display:inline-block;overflow:hidden;box-shadow:0 0 6px rgba(0,0,0,.09);position:relative;z-index:1;opacity:1!important}.avatar.hide{display:none}.avatar:before{width:100%;height:100%;z-index:0}.avatar.inline{display:inline-block;vertical-align:middle}.avatar.trans{background:0 0}.avatar .no-shadow{box-shadow:none}.avatar.xs{width:30px;height:30px}.avatar.xxs{width:20px;height:20px}.avatar.small{width:50px;height:50px}.avatar.big{width:100px;height:100px}.avatar.huge{width:150px;height:150px}.box{position:relative;background:var(--config-color-background-fade);border-radius:10px;border-bottom:none;box-shadow:0 0 3px rgba(0,0,0,.05);display:block;padding:30px}.box.padding-tiny{padding:5px}.box.padding-xs{padding:10px}.box.padding-small{padding:15px}.box.y-scroll{overflow-y:auto}.box.danger{background:var(--config-color-danger);color:#fff}.box.danger .box{color:var(--config-color-normal);background:var(--config-color-background-fade)}.box.danger>.button,.box.danger>button{background:#fff;color:var(--config-color-danger)}.box.note{background:var(--config-note-background)}.box.focus{background:var(--config-color-focus);color:var(--config-color-background-fade)}.box.focus .button,.box.focus button{background:var(--config-color-background-fade);color:var(--config-color-focus)}.box.line{background:0 0;border:solid 1px var(--config-color-background-dark);box-shadow:none}.box.warning{background:var(--config-color-warning);color:#2d2d2d}.box.warning .button,.box.warning button{background:rgba(45,45,45,.8);color:var(--config-color-success)}.box .tabs{border-bottom:solid 1px var(--config-border-color);margin:0 -30px;padding:0 30px!important}.box>footer{margin:0 -30px -30px -30px;padding:15px 30px;background:var(--config-color-background-fade);border:solid 1px var(--config-border-color);border-radius:0 0 10px 10px}.box hr{height:1px;background:var(--config-console-background);border:none;margin:30px -30px}.box .label{position:absolute;top:10px;z-index:2;right:10px}.box.fade-bottom{position:relative;overflow:hidden}.box.fade-bottom:after{content:"";position:absolute;display:block;bottom:15px;width:100%;background:#000;background:linear-gradient(180deg,rgba(0,0,0,0) 0,var(--config-color-background-fade) 80%);height:100px;margin:0 -15px}.box .header{position:static;height:40px;padding:20px 30px 20px 30px;margin-bottom:30px;margin:-30px -30px 20px -30px;background:var(--config-color-background-fade);border-bottom:solid 1px #efefef}.box ul.numbers>li{position:relative;margin-left:30px;margin-right:50px}.box ul.numbers>li hr{margin-left:-60px;margin-right:-80px}.box ul.numbers>li .settings{position:absolute;top:3px;right:-50px}.box ul.numbers>li::after{display:block;width:25px;height:25px;line-height:25px;font-size:13px;font-weight:500;border-radius:50%;background:var(--config-color-focus);color:var(--config-color-background);counter-increment:section;content:counter(section);text-align:center;position:absolute;top:3px;left:-45px}.box .scroll{margin:0 -30px;overflow-y:scroll}.box .scroll table{width:100%;margin:0}.box ul.sortable{counter-reset:section}.box ul.sortable>li [data-move-down].round,.box ul.sortable>li [data-move-up].round,.box ul.sortable>li [data-remove].round{background:var(--config-color-focus);color:var(--config-color-background-fade);width:25px;height:25px;line-height:25px;display:inline-block;text-align:center;padding:0;margin-right:5px}.box ul.sortable>li [data-move-down].round:disabled,.box ul.sortable>li [data-move-up].round:disabled,.box ul.sortable>li [data-remove].round:disabled{display:none}.box ul.sortable>li:first-child [data-move-up]{display:none}.box ul.sortable>li:first-child [data-move-up]:disabled{display:inline-block;background:var(--config-color-background)}.box ul.sortable>li:last-child [data-move-down]{display:none}.box ul.sortable>li:last-child [data-move-down]:disabled{display:inline-block;background:var(--config-color-background)}.box .toggle{position:relative;border-top:1px solid var(--config-console-background);border-bottom:1px solid var(--config-console-background);margin:0 -30px;padding:30px 30px 0 30px;height:65px;overflow:hidden}.box .toggle.list{border-bottom:none}.box .toggle.sorts button.ls-ui-open{width:calc(100% - 100px)}.box .toggle button.ls-ui-open{right:0;position:absolute;top:0;width:100%;height:95px;background:0 0;opacity:.5;border-radius:0}.box .toggle .icon-minus,.box .toggle .icon-up-open{display:none}.box .toggle .content{display:none}.box .toggle.open{height:auto}.box .toggle.open .icon-minus,.box .toggle.open .icon-up-open{display:block}.box .toggle.open .icon-down-open,.box .toggle.open .icon-plus{display:none}.box .toggle.open .content{display:block}.box .list li{border-bottom:solid 2px var(--config-border-color);margin:0 -30px 30px -30px;padding:0 30px 30px 30px}.box .list li:last-child{padding-bottom:0;margin-bottom:0;border-bottom:none}@media only screen and (max-width:550px){.box .list li .actions{float:none}}.box .list li .avatar{display:block}.box .list li .avatar.inline{display:inline-block}.box.new{text-align:center}.box.new i{font-size:80px;line-height:80px;font-family:Poppins,sans-serif;font-style:normal;font-weight:300}.box.new b{margin-top:20px;display:block}.box .info{margin:0 -30px;padding:20px 30px;background:var(--config-modal-note-background);color:var(--config-modal-note-color);border-top:solid 1px var(--config-modal-note-border);border-bottom:solid 1px var(--config-modal-note-border)}.box .info hr{background:var(--config-modal-note-border)!important}.box .table-wrap{margin:0 -30px;overflow-y:scroll}.box .table-wrap table{margin:0}a.box{border-right:none;border-left:none}a.box:hover{box-shadow:0 0 1px rgba(0,0,0,.2);opacity:.7}.box-asidex{padding-right:25px!important;padding-left:70px;right:0;background:#f9f9f9;border-radius:0 10px 10px 0;height:calc(100% - 30px);position:absolute;padding-top:30px}.box-asidex:after{content:"";display:block;position:absolute;height:100%;width:51px;background:#fff;top:0;bottom:0;left:-6px}.cover{background:var(--config-color-focus-fade);padding:30px 50px;margin:0 -50px;position:relative;border-bottom:solid 1px var(--config-border-fade)}.cover .title,.cover h1,.cover h2,.cover h3,.cover h4{color:var(--config-color-focus);font-weight:600;margin-bottom:50px!important;font-size:28px;line-height:42px}.cover .title span,.cover h1 span,.cover h2 span,.cover h3 span,.cover h4 span{font-weight:600}.cover i:before{margin:0!important}.cover p{color:var(--config-color-fade)}.cover .button{color:#fff}.cover .link,.cover a{display:inline-flex;color:var(--config-color-focus);border-left:none;border-right:none;cursor:pointer}.cover .link:hover,.cover a:hover{border-bottom-color:var(--config-color-focus)}.cover .link i,.cover a i{margin-right:.2rem}.console .database .row .col{height:452px}.console .database .row .col:after{width:2px;right:20px}.console .database hr{margin:0 -20px;background:var(--config-color-background);height:1px}.console .database h3{font-size:13px;line-height:20px;height:20px;background-color:var(--config-color-fade-super);margin:-20px -20px 0 -20px;padding:10px 20px;border-bottom:solid 1px var(--config-color-background);font-weight:600}.console .database .empty{height:162px;font-size:12px;text-align:center;margin:50px 0}.console .database .empty h4{font-size:13px;font-weight:600;line-height:120px}.console .database .search{background-color:var(--config-color-fade-super);margin:0 -20px 0 -20px;padding:10px 15px}.console .database .search input{height:40px;background-color:#fff;border-radius:25px;padding-top:0;padding-bottom:0}.console .database .code{height:411px;background:var(--config-color-fade-super);margin:0 -20px -20px -20px;padding:20px;width:calc(100% - 10px)}.console .database .code .ide{overflow:scroll;height:451px;margin:-20px;box-shadow:none;border-radius:0}.console .database .paging{background:var(--config-color-fade-super);margin:0 -20px -20px -20px;padding:20px}.console .database .button{margin:0 -20px;padding:0 20px!important;text-align:inherit;color:var(--config-color-focus);width:100%;font-size:15px;line-height:55px;box-sizing:content-box}.console .database .button i{margin-right:8px}.console .database .button:hover{border:none;background:var(--config-color-focus-fade)}.console .database .items{margin:0 -20px;height:262px;overflow-x:hidden;overflow-y:scroll}.console .database .items form{opacity:0;position:relative}.console .database .items form button{position:absolute;top:0;bottom:0;left:0;right:0;width:100%;height:45px;border-radius:0;cursor:pointer}.console .database .items li{padding:0;margin:0 0;line-height:45px;font-size:15px;padding-left:50px;padding-right:30px;position:relative}.console .database .items li i{position:absolute;display:none;right:10px}.console .database .items li .name{display:inline-block;width:100%;height:28px}.console .database .items li.selected,.console .database .items li:hover{background:#f5f5f5}.console .database .items li.selected i,.console .database .items li:hover i{display:block}.console .database .items li:last-child{border-bottom:none}.events.row{border-bottom:solid 1px var(--config-color-fade-super)}.events.row .col span.text{display:inline-block;width:calc(100% - 28px);word-break:break-all}.events.row .col span.action{float:right;cursor:pointer}.events.row:last-child{border-bottom:none}body>footer{color:var(--config-color-fade);line-height:40px;margin:0 -50px;padding:12px 50px;font-size:13px;width:100%;background:#f1f1f1;position:relative;margin-top:80px!important}body>footer:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}body>footer .logo img{height:22px;padding-top:12px}body>footer a{display:inline-flex;color:var(--config-color-fade);font-size:13px}body>footer a:hover{border-bottom-color:var(--config-color-fade)}body>footer a i{margin-right:.2rem}body>footer ul{display:flex;justify-content:center}body>footer ul:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}body>footer ul li{font-size:13px;float:left;margin-right:20px!important}body>footer .copyright{padding-left:2px}.loader{height:0;direction:ltr;position:fixed;top:0;width:0;margin:0 auto;left:0;opacity:0;z-index:4}.load-start~.loader{width:100%;background:var(--config-color-focus);height:3px;opacity:1;transition:width .3s ease-out,opacity .5s ease-out;-moz-transition:width .3s ease-out,opacity .5s ease-out;-webkit-transition:width .3s ease-out,opacity .5s ease-out;-o-transition:width .3s ease-out,opacity .5s ease-out}.www .load-start~.loader{background:#fff}.load-start>*{opacity:0}.load-end>*{opacity:1;transition:opacity .3s ease-out;-moz-transition:opacity .3s ease-out;-webkit-transition:opacity .3s ease-out;-o-transition:opacity .3s ease-out}[data-ls-if]{display:none}[data-service]{opacity:0}.load-service-start{opacity:0}.load-service-end{opacity:1;transition:opacity .5s ease-out;-moz-transition:opacity .5s ease-out;-webkit-transition:opacity .5s ease-out;-o-transition:opacity .5s ease-out}.load-screen{z-index:100000;position:fixed;height:100%;width:100%;background-color:var(--config-color-background-focus);top:0;left:0}.load-screen.loaded{transition:opacity 1s ease-in-out,top 1s .7s;opacity:0;top:-100%}.load-screen .animation{position:absolute;top:45%;left:50%;transform:translate(-50%,-50%) translateZ(1px);width:140px;height:140px}.load-screen .animation div{box-sizing:border-box;display:block;position:absolute;width:124px;height:124px;margin:10px;border:10px solid var(--config-color-focus);border-radius:50%;animation:animation 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:var(--config-color-focus) transparent transparent transparent}.load-screen .animation div:nth-child(1){animation-delay:-.45s}.load-screen .animation div:nth-child(2){animation-delay:-.3s}.load-screen .animation div:nth-child(3){animation-delay:-.15s}@keyframes animation{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.load-screen img{position:absolute;height:20px;bottom:60px;left:50%;transform:translate(-50%,-50%)}.modal-open .modal-bg,.modal-open body .modal-bg{position:fixed;content:'';display:block;width:100%;height:100%;left:0;right:0;top:0;bottom:0;background:#0c0c0c;opacity:.75;z-index:5}.modal{overflow:auto;display:none;position:fixed;transform:translate3d(0,0,0);width:100%;max-height:90%;max-width:640px;background:var(--config-color-background-fade);z-index:1000;box-shadow:0 0 4px rgba(0,0,0,.25);padding:30px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;box-sizing:border-box;text-align:left;white-space:initial;line-height:normal}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.modal{width:calc(100% - 20px)}}.modal.full{max-width:none;max-height:none;height:100%;border-radius:0;padding:80px 120px}.modal.full h1{font-weight:700}.modal.padding-tiny{padding:5px}.modal.padding-xs{padding:10px}.modal.padding-small{padding:15px}.modal.height-tiny>form{height:100px}.modal.height-small>form{height:220px}.modal.width-small{max-width:400px}.modal.width-medium{max-width:500px}.modal.width-large{max-width:800px}.modal.width-xlarge{max-width:950px}.modal.open{display:block}.modalbutton.close{display:none}.modal.fill{height:95%;max-height:95%;max-width:75%}.modal h1,.modal h2{margin-bottom:25px;margin-top:0;font-size:20px;text-align:left}.modal h1,.modal h2,.modal h3,.modal h4,.modal h5,.modal h6{color:inherit!important;line-height:35px}.modal .main,.modal>form{position:relative;border-top:solid 1px var(--config-border-color);padding:30px 30px 0 30px;margin:0 -30px}.modal .main.strip,.modal>form.strip{border:none;padding:0;margin:0}.modal .separator{margin:20px -30px}.modal .bullets{padding-left:40px}.modal .bullets li{margin-bottom:30px!important}.modal .bullets li:before{position:absolute}.modal .info{margin:0 -30px;padding:20px 30px;background:var(--config-modal-note-background);color:var(--config-modal-note-color);border-top:solid 1px var(--config-modal-note-border);border-bottom:solid 1px var(--config-modal-note-border)}.modal .ide.strech{box-shadow:none;border-radius:0;margin:0 -30px}.modal .ide pre{overflow:auto}.modal .paging form{padding:0;margin:0;border-top:none}.modal.sticky-footer form footer{margin:-30px}.modal.sticky-footer footer{position:sticky;bottom:-30px;background:var(--config-color-background-fade-super);height:50px;z-index:1;padding:30px;box-shadow:0 0 1px rgba(0,0,0,.15)}.modal.sticky-footer footer form{display:inline-block}[data-views-current="0"] .scroll-to,[data-views-current="1"] .scroll-to{opacity:0!important;pointer-events:none}.scroll-to-bottom .scroll-to,.scroll-to-top .scroll-to{opacity:1}.scroll-to{opacity:0;display:block;width:40px;height:40px;line-height:40px;border-radius:50%;position:fixed;transform:translateZ(0);margin:30px;padding:0;bottom:0;font-size:18px;z-index:100000;transition:opacity .15s ease-in-out;right:0}.phases{list-style:none;margin:0;padding:0;position:relative}.phases li{display:none}.phases li .badge{display:none}.phases li li{display:block}.phases li.selected{display:block}.phases .number{display:none}.phases h2,.phases h3,.phases h4,.phases h5,.phases h6{margin:0 0 30px 0;text-align:inherit}.container{position:relative}.container .tabs{height:55px;line-height:55px;list-style:none;padding:0;margin-bottom:50px!important;margin-top:-55px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.container .tabs:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.container .tabs li{position:relative}.container .tabs .badge{background:var(--config-color-focus);color:var(--config-color-background-fade);display:inline-block;border-radius:15px;width:15px;height:15px;margin:10px;line-height:15px;padding:3px;text-align:center;font-weight:500!important;position:absolute;top:-5px;right:-35px;font-size:12px}.container .tabs .selected{font-weight:400;color:var(--config-color-focus);opacity:1}.container .tabs .selected:after{content:"";display:block;height:2px;background:var(--config-color-focus);width:calc(100% + 6px);margin:0 -3px;position:absolute;bottom:0;border-radius:2px}.container .tabs .number{display:none}.container .tabs li{float:left;margin-right:50px;color:var(--config-color-focus);opacity:.9;cursor:pointer}.container .tabs li:focus{outline:0}@media only screen and (max-width:550px){.container .tabs li{margin-right:25px}}.container .icon{display:none}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.container .tabs{width:auto;overflow-x:scroll;overflow-y:hidden;white-space:nowrap}.container .tabs li{display:inline-block;float:none}}.preview-box{display:grid;place-content:center;padding:40px;background:var(--config-color-background-fade);border:1px dashed var(--config-color-background-dark);border-radius:8px}.preview-box-image{display:grid;place-content:center;width:40px;height:40px;margin-inline:auto;background-color:var(--config-color-background-focus);border-radius:50%}.preview-box-text{margin-top:16px;color:var(--config-color-fade)}.upload-box{--p-header-text-color:var(--config-color-background-fade);--p-header-bg-color:var(--config-color-normal);--p-content-text-color:var(--config-color-normal);--p-content-bg-color:var(--config-color-background-fade);--p-border-color:var(--config-modal-note-border);--box-shadow:0 10px 10px rgba(0, 0, 0, 0.05);--border-radius:6px;--transition:0.2s;position:fixed;z-index:1;overflow:hidden;min-width:285px;box-shadow:var(--box-shadow);border-radius:var(--border-radius);font-size:14px;line-height:1}.upload-box *{all:unset;display:revert}.upload-box-header{display:flex;padding:16px;padding-inline-end:21px;color:var(--p-header-text-color);background-color:var(--p-header-bg-color)}.upload-box-header .icon-button{margin-inline-start:16px}.upload-box-title{align-self:center;margin-inline-end:auto;margin-block-end:0}.upload-box-title .amount::before{content:"("}.upload-box-title .amount::after{content:")"}.upload-box-content{background-color:var(--p-content-bg-color);color:var(--p-content-text-color);height:0;overflow:auto;transition:var(--transition)}.upload-box-content.is-open{height:200px}.upload-box-item{display:flex;align-items:center;padding:13px 20px}.upload-box-item .file-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;margin-inline-end:auto;line-height:normal}.upload-box-item .icon-button{align-self:center;margin-inline-start:16px}.upload-box-item .pill{margin-inline-start:8px}.upload-box-item:not(:last-child){border-bottom:solid 1px var(--p-border-color)}@media only screen and (max-width:550px){.upload-box{inset-inline:16px;inset-block-end:20px}}@media only screen and (min-width:551px) and (max-width:1198px),only screen and (min-width:1199px){.upload-box{max-width:285px;inset-inline-end:24px;inset-block-end:24px}}:root .theme-dark .upload-box{--p-header-text-color:#fff;--p-header-bg-color:var(--config-color-background-dark)}.upload-image{--p-upload-image-size:var(--upload-image-size, 40px);--p-upload-bg-color:var(--config-color-fade-super);--p-upload-icon-color:var(--config-color-fade);position:relative;display:grid;place-content:center;flex-shrink:0;width:var(--p-upload-image-size);height:var(--p-upload-image-size);background-color:var(--p-upload-bg-color);color:var(--p-upload-icon-color);border-radius:50%}.upload-image .icon{position:relative;z-index:20}.upload-image .progress{--progress:var(--progress-value, 0);--zero-value:0 0% 0%/0%;position:absolute;z-index:10;inset:0;border-radius:50%;background:radial-gradient(var(--p-upload-bg-color) 0,var(--p-upload-bg-color) 64%,transparent 64.01%,transparent 100%),conic-gradient(hsl(194 66% 50%) 0,hsl(97 66% 50%) calc(var(--progress) * 1%),hsl(var(--zero-value)) calc(var(--progress) * 1%),hsl(var(--zero-value)) 100%)}.upload-image.is-finished .progress{display:none}:root .theme-dark .upload-image{--p-upload-bg-color:var(--config-color-background-dark);--p-upload-icon-color:var(--config-color-focus)}[data-views-current]:not([data-views-current="0"]):not([data-views-current="1"]) .upload-box{margin-right:4rem}.icon-button{--p-icon-button-size:var(--icon-button-size, 20px);width:var(--p-icon-button-size);height:var(--p-icon-button-size);font-size:var(--p-icon-button-size);transition:.2s;line-height:1;text-align:center;flex-shrink:0;cursor:pointer}.icon-button>::before{margin:0}.icon-button.is-open{transform:rotate(180deg)}.icon-button.is-success{color:var(--config-color-success)}.icon-button:focus,.icon-button:hover{background-color:unset}.icon-button:focus-visible{outline:dashed 1px var(--config-color-primary)}.pill{--p-pill-text-color:var(--config-defalut-color-hsl, var(--pill-text-color));color:hsl(var(--p-pill-text-color));background-color:hsl(var(--p-pill-text-color) / .2);display:inline-grid;place-content:center;padding-inline:12px;height:30px;border-radius:15px;font-size:14px;font-weight:500}.pill.is-disabled{--p-pill-text-color:var(--config-disabled-color-hsl)}.pill.is-pending{--p-pill-text-color:var(--config-pending-color-hsl)}.pill.is-failed{--p-pill-text-color:var(--config-failed-color-hsl)}:root .theme-dark .pill.is-failed{color:#ffcfcf;background-color:#b91c1c}.permissions-matrix td:first-child,.permissions-matrix th:first-child{width:35%}.permissions-matrix td:not(:first-child):not(:last-child),.permissions-matrix th:not(:first-child):not(:last-child){text-align:center}.permissions-matrix td:last-child,.permissions-matrix th:last-child{width:10%}.permissions-matrix td{vertical-align:middle}.permissions-matrix input,.permissions-matrix p{margin-bottom:0}.permissions-matrix p{margin-left:15px}.permissions-matrix i{cursor:pointer}html{padding:0;margin:0;direction:ltr}body{margin:0;background:var(--config-console-background) no-repeat fixed;min-width:300px}ul{padding:0;margin:0}ul li{margin:0;list-style:none}
\ No newline at end of file
diff --git a/public/dist/styles/default-rtl.css b/public/dist/styles/default-rtl.css
index d2f12831c5..9a6425b74e 100644
--- a/public/dist/styles/default-rtl.css
+++ b/public/dist/styles/default-rtl.css
@@ -1 +1 @@
-.pull-start{float:right}.pull-end{float:left}img[src=""]{visibility:hidden;display:inline-block}:root{--config-width:910px;--config-width-xxl:1000px;--config-width-xl:910px;--config-width-large:700px;--config-width-medium:550px;--config-width-small:320px;--config-color-primary:#f02e65;--config-color-link:#1e849e;--config-color-background:#eceff1;--config-color-background-dark:#dfe2e4;--config-color-background-fade:#ffffff;--config-color-background-fade-super:#fdfdfd;--config-color-background-focus:#f5f5f5;--config-color-background-input:#ffffff;--config-color-placeholder:#868686;--config-color-tooltip-text:#dce8f5;--config-color-tooltip-background:#333333;--config-color-focus:#f02e65;--config-color-focus-fade:#fef8fa;--config-color-focus-hover:#ff729b;--config-color-focus-glow:#fce5ec;--config-color-focus-dark:#c52653;--config-color-normal:#40404c;--config-color-dark:#313131;--config-color-fade:#8f8f8f;--config-color-fade-dark:#6e6e6e;--config-color-fade-light:#e2e2e2;--config-color-fade-super:#f1f3f5;--config-color-danger:#f53d3d;--config-color-success:#1bbf61;--config-color-warning:#fffbdd;--config-color-info:#386fd2;--config-color-chart:#29b5d9;--config-color-chart-fade:#d4f0f7;--config-border-color:#f3f3f3;--config-border-fade:#e0e3e4;--config-border-fade-super:#f7f7f7;--config-border-radius:10px;--config-prism-background:#373738;--config-prism-numbers:#39393c;--config-note-background:#f1fbff;--config-note-border:#5bceff;--config-warning-background:#fdf7d9;--config-warning-border:#f8e380;--config-social-twitter:#1da1f2;--config-social-github:#000000;--config-social-discord:#7189dc;--config-social-facebook:#4070b4;--config-language-bash:#2b2626;--config-language-bash-contrast:#fff;--config-language-javascript:#fff054;--config-language-javascript-contrast:#333232;--config-language-web:#fff054;--config-language-web-contrast:#333232;--config-language-html:#ff895b;--config-language-html-contrast:#ffffff;--config-language-yaml:#ca3333;--config-language-yaml-contrast:#ffffff;--config-language-php:#6182bb;--config-language-php-contrast:#ffffff;--config-language-nodejs:#8cc500;--config-language-nodejs-contrast:#ffffff;--config-language-ruby:#fc3f48;--config-language-ruby-contrast:#ffffff;--config-language-python:#3873a2;--config-language-python-contrast:#ffffff;--config-language-go:#00add8;--config-language-go-contrast:#ffffff;--config-language-dart:#035698;--config-language-dart-contrast:#ffffff;--config-language-flutter:#035698;--config-language-flutter-contrast:#ffffff;--config-language-android:#a4c439;--config-language-android-contrast:#ffffff;--config-language-kotlin:#766DB2;--config-language-kotlin-contrast:#ffffff;--config-language-swift:#f2624c;--config-language-swift-contrast:#ffffff;--config-language-java:#0074bd;--config-language-java-contrast:#ffffff;--config-modal-note-background:#f5fbff;--config-modal-note-border:#eaf2f7;--config-modal-note-color:#3b5d73;--config-switch-background:#e2e2e2;--config-console-background:#eceff1;--config-console-nav-start:#143650;--config-console-nav-end:#302839;--config-console-nav-border:#2a253a;--config-console-nav-switch-background:#ececec;--config-console-nav-switch-color:#868686;--config-console-nav-switch-arrow:url("data:image/svg+xml;utf8,");--config-defalut-color-hsl:0 0% 62%;--config-disabled-color-hsl:0 0% 62%;--config-pending-color-hsl:36 100% 47%;--config-failed-color-hsl:0 74% 42%}:root .theme-dark{--config-color-primary:#f02e65;--config-color-background:#061F2F;--config-color-background-dark:#262d50;--config-color-background-fade:#1c223a;--config-color-background-fade-super:#1a1f35;--config-color-background-focus:#1a1f35;--config-color-background-input:#dce8f5;--config-color-tooltip-text:#061F2F;--config-color-tooltip-background:#dce8f5;--config-color-link:#4caedb;--config-color-placeholder:#9ea1af;--config-color-focus:#c7d8eb;--config-color-focus-fade:#1e233e;--config-color-focus-hover:#d3deea;--config-color-focus-glow:#d3deea;--config-color-focus-dark:#657586;--config-color-normal:#c7d8eb;--config-color-dark:#c7d8eb;--config-color-fade:#bec3e0;--config-color-fade-dark:#81859b;--config-color-fade-light:#181818;--config-color-fade-super:#262D50;--config-color-danger:#d84a4a;--config-color-success:#34b86d;--config-color-warning:#e0d56d;--config-color-info:#386fd2;--config-color-chart:#29b5d9;--config-color-chart-fade:#c7d8eb;--config-border-color:#262D50;--config-border-fade:#19203a;--config-border-fade-super:#262D50;--config-prism-background:#1F253F;--config-prism-numbers:#1F253F;--config-note-background:#171e33;--config-note-border:#262D50;--config-warning-background:#1F253F;--config-warning-border:#262D50;--config-social-twitter:var(--config-color-normal);--config-social-github:var(--config-color-normal);--config-social-discord:var(--config-color-normal);--config-social-facebook:var(--config-color-normal);--config-language-bash:var(--config-color-normal);--config-language-bash-contrast:var(--config-color-background);--config-language-javascript:var(--config-color-normal);--config-language-javascript-contrast:var(--config-color-background);--config-language-web:var(--config-color-normal);--config-language-web-contrast:var(--config-color-background);--config-language-yaml:var(--config-color-normal);--config-language-yaml-contrast:var(--config-color-background);--config-language-html:var(--config-color-normal);--config-language-html-contrast:var(--config-color-background);--config-language-php:var(--config-color-normal);--config-language-php-contrast:var(--config-color-background);--config-language-nodejs:var(--config-color-normal);--config-language-nodejs-contrast:var(--config-color-background);--config-language-ruby:var(--config-color-normal);--config-language-ruby-contrast:var(--config-color-background);--config-language-python:var(--config-color-normal);--config-language-python-contrast:var(--config-color-background);--config-language-go:var(--config-color-normal);--config-language-go-contrast:var(--config-color-background);--config-language-dart:var(--config-color-normal);--config-language-dart-contrast:var(--config-color-background);--config-language-flutter:var(--config-color-normal);--config-language-flutter-contrast:var(--config-color-background);--config-language-android:var(--config-color-normal);--config-language-android-contrast:var(--config-color-background);--config-language-kotlin:var(--config-color-normal);--config-language-kotlin-contrast:var(--config-color-background);--config-language-swift:var(--config-color-normal);--config-language-swift-contrast:var(--config-color-background);--config-language-java:var(--config-color-normal);--config-language-java-contrast:var(--config-color-background);--config-modal-note-background:#15192b;--config-modal-note-border:#161b31;--config-modal-note-color:var(--config-color-normal);--config-switch-background:var(--config-color-normal);--config-console-background:#20263f;--config-console-nav-start:#1c2139;--config-console-nav-end:#151929;--config-console-nav-border:#171b30;--config-console-nav-switch-background:var(--config-color-focus);--config-console-nav-switch-color:var(--config-color-background);--config-console-nav-switch-arrow:url("data:image/svg+xml;utf8,")}.theme-light .force-light{display:block!important}.theme-dark .force-dark{display:block!important}.force-dark{display:none!important}.force-light{display:none!important}@font-face{font-family:Poppins;font-style:normal;font-weight:100;src:url(/fonts/poppins-v9-latin-100.eot);src:local('Poppins Thin'),local('Poppins-Thin'),url(/fonts/poppins-v9-latin-100.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-100.woff2) format('woff2'),url(/fonts/poppins-v9-latin-100.woff) format('woff'),url(/fonts/poppins-v9-latin-100.ttf) format('truetype'),url(/fonts/poppins-v9-latin-100.svg#Poppins) format('svg')}@font-face{font-family:Poppins;font-style:normal;font-weight:300;src:url(/fonts/poppins-v9-latin-300.eot);src:local('Poppins Light'),local('Poppins-Light'),url(/fonts/poppins-v9-latin-300.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-300.woff2) format('woff2'),url(/fonts/poppins-v9-latin-300.woff) format('woff'),url(/fonts/poppins-v9-latin-300.ttf) format('truetype'),url(/fonts/poppins-v9-latin-300.svg#Poppins) format('svg')}@font-face{font-family:Poppins;font-style:normal;font-weight:400;src:url(/fonts/poppins-v9-latin-regular.eot);src:local('Poppins Regular'),local('Poppins-Regular'),url(/fonts/poppins-v9-latin-regular.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-regular.woff2) format('woff2'),url(/fonts/poppins-v9-latin-regular.woff) format('woff'),url(/fonts/poppins-v9-latin-regular.ttf) format('truetype'),url(/fonts/poppins-v9-latin-regular.svg#Poppins) format('svg')}@font-face{font-family:Poppins;font-style:normal;font-weight:500;src:url(/fonts/poppins-v9-latin-500.eot);src:local('Poppins Medium'),local('Poppins-Medium'),url(/fonts/poppins-v9-latin-500.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-500.woff2) format('woff2'),url(/fonts/poppins-v9-latin-500.woff) format('woff'),url(/fonts/poppins-v9-latin-500.ttf) format('truetype'),url(/fonts/poppins-v9-latin-500.svg#Poppins) format('svg')}@font-face{font-family:Poppins;font-style:normal;font-weight:600;src:url(/fonts/poppins-v9-latin-600.eot);src:local('Poppins SemiBold'),local('Poppins-SemiBold'),url(/fonts/poppins-v9-latin-600.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-600.woff2) format('woff2'),url(/fonts/poppins-v9-latin-600.woff) format('woff'),url(/fonts/poppins-v9-latin-600.ttf) format('truetype'),url(/fonts/poppins-v9-latin-600.svg#Poppins) format('svg')}@font-face{font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url(/fonts/source-code-pro-v11-latin-regular.eot);src:local('Source Code Pro Regular'),local('SourceCodePro-Regular'),url(/fonts/source-code-pro-v11-latin-regular.eot?#iefix) format('embedded-opentype'),url(/fonts/source-code-pro-v11-latin-regular.woff2) format('woff2'),url(/fonts/source-code-pro-v11-latin-regular.woff) format('woff'),url(/fonts/source-code-pro-v11-latin-regular.ttf) format('truetype'),url(/fonts/source-code-pro-v11-latin-regular.svg#SourceCodePro) format('svg')}.padding{padding:30px}.padding-top{padding-top:30px!important}.padding-top-large{padding-top:50px!important}.padding-top-xl{padding-top:80px!important}.padding-bottom{padding-bottom:30px!important}.padding-bottom-large{padding-bottom:50px!important}.padding-bottom-xl{padding-bottom:80px!important}.margin-end{margin-left:20px!important}.margin-start{margin-right:20px!important}.margin-end-small{margin-left:10px!important}.margin-start-small{margin-right:10px!important}.margin-end-large{margin-left:50px!important}.margin-start-large{margin-right:50px!important}.margin-end-no{margin-left:0!important}.margin-start-no{margin-right:0!important}.margin-end-negative{margin-left:-30px!important}.margin-start-negative{margin-right:-30px!important}.margin-end-negative-small{margin-left:-15px!important}.margin-start-negative-small{margin-right:-15px!important}.margin-end-negative-tiny{margin-left:-5px!important}.margin-start-negative-tiny{margin-right:-5px!important}.margin-top{margin-top:30px!important}.margin-bottom{margin-bottom:30px!important}.margin-top-no{margin-top:0!important}.margin-bottom-no{margin-bottom:0!important}.margin-top-xxl{margin-top:140px!important}.margin-top-xl{margin-top:80px!important}.margin-top-large{margin-top:50px!important}.margin-top-small{margin-top:15px!important}.margin-top-tiny{margin-top:5px!important}.margin-top-negative{margin-top:-30px!important}.margin-top-negative-tiny{margin-top:-5px!important}.margin-top-negative-small{margin-top:-15px!important}.margin-top-negative-large{margin-top:-50px!important}.margin-top-negative-xl{margin-top:-80px!important}.margin-top-negative-xxl{margin-top:-100px!important}.margin-top-negative-xxxl{margin-top:-150px!important}.margin-bottom-xxl{margin-bottom:140px!important}.margin-bottom-xl{margin-bottom:80px!important}.margin-bottom-large{margin-bottom:50px!important}.margin-bottom-small{margin-bottom:15px!important}.margin-bottom-tiny{margin-bottom:5px!important}.margin-bottom-negative{margin-bottom:-30px!important}.margin-bottom-negative-tiny{margin-bottom:-5px!important}.margin-bottom-negative-small{margin-bottom:-15px!important}.margin-bottom-negative-large{margin-bottom:-50px!important}.margin-bottom-negative-xl{margin-bottom:-80px!important}.margin-bottom-negative-xl{margin-bottom:-100px!important}.force-left,.ide{direction:ltr;text-align:left}.force-right{direction:rtl;text-align:right}.pull-left{float:left}.pull-right{float:right}.ratio-wide{height:0;overflow:hidden;padding-top:56%;position:relative;width:100%}.ratio-wide>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-square{height:0;overflow:hidden;padding-top:56%;position:relative;width:100%}.ratio-square>*{position:absolute;top:0;left:0;width:100%;height:100%}.clear:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.phones-only{display:none}@media only screen and (max-width:550px){.phones-only{display:inherit!important}}.tablets-only{display:none}@media only screen and (min-width:551px) and (max-width:1198px){.tablets-only{display:inherit!important}}.desktops-only{display:none}@media only screen and (min-width:1199px){.desktops-only{display:inherit!important}}.phones-only-inline{display:none}@media only screen and (max-width:550px){.phones-only-inline{display:inline-block!important}}.tablets-only-inline{display:none}@media only screen and (min-width:551px) and (max-width:1198px){.tablets-only-inline{display:inline-block!important}}.desktops-only-inline{display:none}@media only screen and (min-width:1199px){.desktops-only-inline{display:inline-block!important}}*{font-family:Poppins,sans-serif;-webkit-font-smoothing:antialiased;font-weight:300}h1,h2,h3,h4,h5,h6{margin:0}h4,h5,h6{font-weight:400}.link,a{color:var(--config-color-link);text-decoration:none;border-left:2px solid transparent;border-right:2px solid transparent;transition:.2s;cursor:pointer}.link.disabled,a.disabled{opacity:.5}.link.tag:hover,a.tag:hover{opacity:.9}.link.danger,a.danger{color:var(--config-color-danger)}.link.link-animation-enabled,a.link-animation-enabled{display:inline-flex}.link.link-animation-enabled:hover,a.link-animation-enabled:hover{transform:translateY(-2px)}.link-return-animation--start>i{display:inline-block;transition:.2s}.link-return-animation--start:hover>i{transform:translateX(2px)}.link-return-animation--end>i{display:inline-block;transition:.2s}.link-return-animation--end:hover>i{transform:translateX(-2px)}b,strong{font-weight:500}p{margin:0 0 20px 0;line-height:26px}small{font-size:16px;color:var(--config-color-fade)}.text-size-small{font-size:13px}.text-size-smaller{font-size:11.5px}.text-size-xs{font-size:10px}.text-size-normal{font-size:16px}.text-height-large{height:30px;line-height:30px}.text-height-small{line-height:13px}.text-one-liner{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text-bold{font-weight:400!important}.text-bold-large{font-weight:500!important}.text-bold-xl{font-weight:600!important}.text-danger{color:var(--config-color-danger)!important}.text-success{color:var(--config-color-success)!important}.text-upper{text-transform:uppercase}.text-warning{color:var(--config-color-warning)}.text-focus{color:var(--config-color-focus)}.text-fade{color:var(--config-color-fade)}.text-fade-dark{color:var(--config-color-fade-dark)}.text-green{color:var(--config-color-success)}.text-red{color:var(--config-color-danger)}.text-info{color:var(--config-color-info)}.text-yellow{color:#ffe28b}.text-disclaimer{font-size:11px;color:var(--config-color-fade)}.text-fade-extra{color:var(--config-color-fade);opacity:.5}.text-line-high-large{line-height:30px}.text-line-high-xl{line-height:40px}.text-sign{margin:5px 0;font-size:25px;width:25px;height:25px;line-height:25px;display:inline-block}.text-align-center{text-align:center}.text-align-start{text-align:right}.text-align-end{text-align:left}.text-align-left{text-align:left}.text-align-right{text-align:right}.text-dir-ltr{direction:ltr;display:inline-block}.text-dir-rtl{direction:rtl;display:inline-block}i[class*=' icon-']:before,i[class^=icon-]:before{display:inline;line-height:unset}table{width:calc(100% + 60px);border-collapse:collapse;margin:-30px;border-radius:10px;overflow:hidden;position:relative;table-layout:fixed}table.y-scroll{overflow-y:auto}table.multi-line tbody td,table.multi-line thead th{line-height:inherit;text-overflow:inherit;white-space:inherit}table.borders td,table.borders th{border-left:solid 1px var(--config-border-fade-super)}table.borders td:last-child,table.borders th:last-child{border:none}table thead{border-bottom:solid 1px var(--config-color-fade-super);font-size:14px}table.small{font-size:14px}table.open-end tbody tr:last-child{border-bottom:none;font-weight:700;background:#f7fbf7}table.full tbody td,table.full tbody th{vertical-align:top;white-space:normal;overflow:auto;line-height:24px;padding-top:20px;padding-bottom:20px;height:auto}table .avatar{width:30px;height:30px}table tr{border-bottom:solid 1px var(--config-color-fade-super)}table tr:last-child{border-bottom:none}table tr:last-child td:first-child{border-bottom-left-radius:6px}table tr:last-child td:last-child{border-bottom-right-radius:6px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){table tr:nth-child(even){background:var(--config-color-background-fade-super)}}@media only screen and (min-width:1199px){table tr:nth-child(even) td{background:var(--config-color-background-fade-super)}}table tr.selected{background:var(--config-note-background)}table tr.selected td,table tr.selected td span{font-weight:500}table th{text-align:right;font-weight:400}table th i{color:var(--config-color-fade);font-size:10px;display:inline-block;vertical-align:top;line-height:16px;padding:0 3px}table td,table th{height:65px;padding:0 15px;line-height:50px}table td:first-child,table th:first-child{padding-right:30px}table td,table th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){table.vertical{border-top:solid 1px var(--config-color-fade-super);display:block;overflow:hidden;padding-top:12px}table.vertical .hide{display:none}table.vertical tbody,table.vertical td,table.vertical th,table.vertical thead,table.vertical tr{width:100%;display:block}table.vertical tr{position:relative}table.vertical th,table.vertical tr{padding-top:12px;padding-bottom:12px}table.vertical th:first-child,table.vertical tr:first-child{padding-top:0}table.vertical td,table.vertical th{padding:5px 20px!important;text-overflow:ellipsis;white-space:normal;height:40px;line-height:40px;width:calc(100% - 40px)}table.vertical td.col-name,table.vertical th.col-name{width:calc(100% - 110px)}table.vertical td:first-child,table.vertical td:last-child,table.vertical th:first-child,table.vertical th:last-child{padding:0 10px}table.vertical td:last-child,table.vertical th:last-child{padding-bottom:0}table.vertical td p,table.vertical th p{display:inline-block;width:calc(100% - 40px)}table.vertical td:not([data-title=""]):before{content:attr(data-title);margin-right:4px;font-weight:400}table.vertical thead{display:none}table.vertical .cell-options-more{position:absolute;inset-block-start:0;inset-inline-end:0;width:auto}}table .trim-inner-text{display:inline-flex;align-items:center;gap:8px}@media only screen and (min-width:1199px){table .trim-inner-text{width:100%}}table .cell-options-more button{padding:0 12px;background-color:transparent;color:var(--config-color-fade)}table .cell-options-more button:focus-visible{outline:solid 1px var(--config-color-focus)}.zone{max-width:var(--config-width-xl);margin:0 auto 40px auto}.zone.xxxl{max-width:calc(1400px - 100px)}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.zone.xxxl{max-width:100%}}.zone.xxl{max-width:var(--config-width-xxl)}.zone.xl{max-width:var(--config-width-xl)}.zone.large{max-width:var(--config-width-large)}.zone.medium{max-width:var(--config-width-medium)}.zone.small{max-width:var(--config-width-small)}.row{position:relative;margin:0 -50px;padding-right:50px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.row{margin:0 -30px;padding-right:30px}}.row.force-ltr>.col{float:left}.row.force-rtl>.col{float:right}.row.force-reverse>.col{float:left}.row.wide{margin:0 -100px;padding-right:100px}.row.wide>.span-1{width:calc(8.33333333% * 1 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-2{width:calc(8.33333333% * 2 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-3{width:calc(8.33333333% * 3 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-4{width:calc(8.33333333% * 4 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-5{width:calc(8.33333333% * 5 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-6{width:calc(8.33333333% * 6 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-7{width:calc(8.33333333% * 7 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-8{width:calc(8.33333333% * 8 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-9{width:calc(8.33333333% * 9 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-10{width:calc(8.33333333% * 10 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-11{width:calc(8.33333333% * 11 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-12{width:calc(8.33333333% * 12 - 100px);box-sizing:content-box;padding-left:100px}.row.thin{margin:0 -20px;padding-right:20px}.row.thin>.span-1{width:calc(8.33333333% * 1 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-2{width:calc(8.33333333% * 2 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-3{width:calc(8.33333333% * 3 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-4{width:calc(8.33333333% * 4 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-5{width:calc(8.33333333% * 5 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-6{width:calc(8.33333333% * 6 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-7{width:calc(8.33333333% * 7 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-8{width:calc(8.33333333% * 8 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-9{width:calc(8.33333333% * 9 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-10{width:calc(8.33333333% * 10 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-11{width:calc(8.33333333% * 11 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-12{width:calc(8.33333333% * 12 - 20px);box-sizing:content-box;padding-left:20px}.row.modalize{margin:0 -30px;padding-right:30px}.row.modalize>.span-1{width:calc(8.33333333% * 1 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-2{width:calc(8.33333333% * 2 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-3{width:calc(8.33333333% * 3 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-4{width:calc(8.33333333% * 4 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-5{width:calc(8.33333333% * 5 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-6{width:calc(8.33333333% * 6 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-7{width:calc(8.33333333% * 7 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-8{width:calc(8.33333333% * 8 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-9{width:calc(8.33333333% * 9 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-10{width:calc(8.33333333% * 10 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-11{width:calc(8.33333333% * 11 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-12{width:calc(8.33333333% * 12 - 30px);box-sizing:content-box;padding-left:30px}.row:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.row .col{float:right;box-sizing:border-box}.row .col.sticky-top{position:sticky;top:90px}.row .col.sticky-bottom{position:sticky;bottom:0}.row .span-1{width:calc(8.33333333% * 1 - 40px);box-sizing:content-box;padding-left:40px}.row .span-2{width:calc(8.33333333% * 2 - 40px);box-sizing:content-box;padding-left:40px}.row .span-3{width:calc(8.33333333% * 3 - 40px);box-sizing:content-box;padding-left:40px}.row .span-4{width:calc(8.33333333% * 4 - 40px);box-sizing:content-box;padding-left:40px}.row .span-5{width:calc(8.33333333% * 5 - 40px);box-sizing:content-box;padding-left:40px}.row .span-6{width:calc(8.33333333% * 6 - 40px);box-sizing:content-box;padding-left:40px}.row .span-7{width:calc(8.33333333% * 7 - 40px);box-sizing:content-box;padding-left:40px}.row .span-8{width:calc(8.33333333% * 8 - 40px);box-sizing:content-box;padding-left:40px}.row .span-9{width:calc(8.33333333% * 9 - 40px);box-sizing:content-box;padding-left:40px}.row .span-10{width:calc(8.33333333% * 10 - 40px);box-sizing:content-box;padding-left:40px}.row .span-11{width:calc(8.33333333% * 11 - 40px);box-sizing:content-box;padding-left:40px}.row .span-12{width:calc(8.33333333% * 12 - 40px);box-sizing:content-box;padding-left:40px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.row.responsive{width:100%;padding:0;margin:0}.row.responsive>.span-1,.row.responsive>.span-10,.row.responsive>.span-11,.row.responsive>.span-12,.row.responsive>.span-2,.row.responsive>.span-3,.row.responsive>.span-4,.row.responsive>.span-5,.row.responsive>.span-6,.row.responsive>.span-7,.row.responsive>.span-8,.row.responsive>.span-9{width:calc(8.33333333% * 12 - 0px)!important;box-sizing:content-box!important;padding-left:0!important;width:100%!important}}.tiles{position:relative}.tiles:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.tiles .box hr{margin:15px -15px}.tiles>*{margin-left:50px!important;float:right;width:calc(33.3333% - 33.3333px)}.tiles>* .photo-title{width:calc(100% + 30px);height:15px;margin:-15px -15px 10px -15px;border-radius:10px 10px 0 0;background:var(--config-color-fade-super);border-bottom:solid 1px var(--config-color-fade-super)}.tiles>:nth-child(3n){margin-left:0!important}@media only screen and (min-width:551px) and (max-width:1198px){.tiles>li{width:calc(50% - 25px)}.tiles>li:nth-child(3n){margin-left:50px!important}.tiles>li:nth-child(2n){margin-left:0!important}}@media only screen and (max-width:550px){.tiles>li{width:100%;margin-left:0!important}}@font-face{font-family:icon;src:url(/fonts/icon.eot?t=1650537780691);src:url(/fonts/icon.eot?t=1650537780691#iefix) format('embedded-opentype'),url(/fonts/icon.woff2?t=1650537780691) format("woff2"),url(/fonts/icon.woff?t=1650537780691) format("woff"),url(/fonts/icon.ttf?t=1650537780691) format('truetype'),url(/fonts/icon.svg?t=1650537780691#icon) format('svg');font-weight:400;font-style:normal}[class*=" icon-"]:before,[class^=icon-]:before{font-family:icon!important;font-style:normal;font-weight:400;speak:never;vertical-align:middle;display:inline-block;text-decoration:inherit;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-angle-circled-left:before{content:"\ea01"}.icon-angle-circled-right:before{content:"\ea02"}.icon-archive:before{content:"\ea03"}.icon-article:before{content:"\ea04"}.icon-asterisk:before{content:"\ea05"}.icon-bank:before{content:"\ea06"}.icon-bell:before{content:"\ea07"}.icon-binoculars:before{content:"\ea08"}.icon-bitbucket:before{content:"\ea09"}.icon-bold:before{content:"\ea0a"}.icon-book-open:before{content:"\ea0b"}.icon-boolean:before{content:"\ea0c"}.icon-briefcase:before{content:"\ea0d"}.icon-building-filled:before{content:"\ea0e"}.icon-datetime:before{content:"\ea0f"}.icon-calendar:before{content:"\ea0f"}.icon-cancel-circled:before{content:"\ea10"}.icon-cancel:before{content:"\ea11"}.icon-chart-area:before{content:"\ea12"}.icon-chat-alt:before{content:"\ea13"}.icon-check:before{content:"\ea14"}.icon-chevron-down:before{content:"\ea15"}.icon-clock:before{content:"\ea16"}.icon-code:before{content:"\ea17"}.icon-cog:before{content:"\ea18"}.icon-comment:before{content:"\ea19"}.icon-database:before{content:"\ea1a"}.icon-dev:before{content:"\ea1b"}.icon-discord:before{content:"\ea1c"}.icon-docs:before{content:"\ea1d"}.icon-dot-3:before{content:"\ea1e"}.icon-dot-circled:before{content:"\ea1f"}.icon-double:before{content:"\ea20"}.icon-down-dir:before{content:"\ea21"}.icon-down-open:before{content:"\ea22"}.icon-download:before{content:"\ea23"}.icon-edit:before{content:"\ea24"}.icon-email:before{content:"\ea25"}.icon-enum:before{content:"\ea26"}.icon-export:before{content:"\ea27"}.icon-eye:before{content:"\ea28"}.icon-facebook:before{content:"\ea29"}.icon-file:before{content:"\ea2a"}.icon-film:before{content:"\ea2b"}.icon-filter:before{content:"\ea2c"}.icon-fire:before{content:"\ea2d"}.icon-float:before{content:"\ea2e"}.icon-folder:before{content:"\ea2f"}.icon-github:before{content:"\ea30"}.icon-gitlab:before{content:"\ea31"}.icon-glasses:before{content:"\ea32"}.icon-google:before{content:"\ea33"}.icon-hackernews:before{content:"\ea34"}.icon-header:before{content:"\ea35"}.icon-heart:before{content:"\ea36"}.icon-home:before{content:"\ea37"}.icon-image:before{content:"\ea38"}.icon-inbox:before{content:"\ea39"}.icon-info-circled:before{content:"\ea3a"}.icon-instagram:before{content:"\ea3b"}.icon-integer:before{content:"\ea3c"}.icon-ip:before{content:"\ea3d"}.icon-italic:before{content:"\ea3e"}.icon-key-inv:before{content:"\ea3f"}.icon-key:before{content:"\ea40"}.icon-keyboard:before{content:"\ea41"}.icon-lamp:before{content:"\ea42"}.icon-left-dir:before{content:"\ea43"}.icon-left-open:before{content:"\ea44"}.icon-lifebuoy:before{content:"\ea45"}.icon-lightning:before{content:"\ea46"}.icon-link-ext:before{content:"\ea47"}.icon-link:before{content:"\ea48"}.icon-linkedin:before{content:"\ea49"}.icon-list-bullet:before{content:"\ea4a"}.icon-list-numbered:before{content:"\ea4b"}.icon-list:before{content:"\ea4c"}.icon-location:before{content:"\ea4d"}.icon-lock:before{content:"\ea4e"}.icon-login:before{content:"\ea4f"}.icon-mail:before{content:"\ea50"}.icon-medium:before{content:"\ea51"}.icon-menu:before{content:"\ea52"}.icon-minus:before{content:"\ea53"}.icon-moon-inv:before{content:"\ea54"}.icon-moon:before{content:"\ea55"}.icon-more:before{content:"\ea56"}.icon-network:before{content:"\ea57"}.icon-ok-circled:before{content:"\ea58"}.icon-ok:before{content:"\ea59"}.icon-palette:before{content:"\ea5a"}.icon-pause:before{content:"\ea5b"}.icon-phone:before{content:"\ea5c"}.icon-photograph:before{content:"\ea5d"}.icon-picture:before{content:"\ea5e"}.icon-pinterest:before{content:"\ea5f"}.icon-play:before{content:"\ea60"}.icon-plus:before{content:"\ea61"}.icon-qrcode:before{content:"\ea62"}.icon-question:before{content:"\ea63"}.icon-quote-right:before{content:"\ea64"}.icon-random:before{content:"\ea65"}.icon-reddit:before{content:"\ea66"}.icon-refresh:before{content:"\ea67"}.icon-right-dir:before{content:"\ea68"}.icon-right-open:before{content:"\ea69"}.icon-rocket:before{content:"\ea6a"}.icon-search:before{content:"\ea6b"}.icon-shield:before{content:"\ea6c"}.icon-shuffle:before{content:"\ea6d"}.icon-smile-o:before{content:"\ea6e"}.icon-sort:before{content:"\ea6f"}.icon-stackoverflow:before{content:"\ea70"}.icon-stopwatch:before{content:"\ea71"}.icon-string:before{content:"\ea72"}.icon-sun-inv:before{content:"\ea73"}.icon-telegram:before{content:"\ea74"}.icon-trash-2:before{content:"\ea75"}.icon-trash:before{content:"\ea76"}.icon-twitter:before{content:"\ea77"}.icon-underline:before{content:"\ea78"}.icon-up-dir:before{content:"\ea79"}.icon-up-open:before{content:"\ea7a"}.icon-upload:before{content:"\ea7b"}.icon-url:before{content:"\ea7c"}.icon-user:before{content:"\ea7d"}.icon-users:before{content:"\ea7e"}.icon-videocam:before{content:"\ea7f"}.icon-warning:before{content:"\ea80"}.icon-whatsapp:before{content:"\ea81"}.icon-wheelchair:before{content:"\ea82"}.icon-windows:before{content:"\ea83"}.icon-wrench:before{content:"\ea84"}.icon-x:before{content:"\ea85"}.icon-youtube-play:before{content:"\ea86"}.datalist-polyfill{list-style:none;display:none;background:#fff;box-shadow:0 2px 2px #999;position:absolute;left:0;top:0;margin:0;padding:0;max-height:300px;overflow-y:auto}.datalist-polyfill:empty{display:none!important}.datalist-polyfill>li{padding:3px;font:13px "Lucida Grande",Sans-Serif}.datalist-polyfill__active{background:#3875d7;color:#fff}date-input-polyfill{z-index:1000!important;max-width:320px!important;width:320px!important}date-input-polyfill .monthSelect-wrapper,date-input-polyfill .yearSelect-wrapper{height:50px;line-height:50px;padding:0;width:40%!important;margin-bottom:10px!important}date-input-polyfill .monthSelect-wrapper select,date-input-polyfill .yearSelect-wrapper select{padding:0 12px;height:50px;line-height:50px;box-sizing:border-box}date-input-polyfill .yearSelect-wrapper{width:35%!important}date-input-polyfill table{width:100%!important;max-width:100%!important;padding:0 12px 12px 12px!important;box-sizing:border-box;margin:0}date-input-polyfill table td:first-child,date-input-polyfill table td:last-child,date-input-polyfill table th:first-child,date-input-polyfill table th:last-child{width:32px!important;padding:4px!important}date-input-polyfill select{margin-bottom:10px}date-input-polyfill button{width:25%!important;height:50px!important;line-height:50px!important;margin-bottom:10px!important;background:inherit;position:relative;color:inherit;padding:inherit;box-sizing:inherit;border-radius:inherit;font-size:inherit;box-shadow:none;border:none;border-bottom:none!important}::placeholder{color:var(--config-color-placeholder);text-align:right}::-webkit-input-placeholder{text-align:right}input:-moz-placeholder{text-align:right}form.inline{display:inline-block}input,textarea{background:var(--config-color-background-input)}input[type=file],input[type=file]::-webkit-file-upload-button{cursor:pointer}.button,button{display:inline-block;background:var(--config-color-focus);border-radius:26px;border:none;color:var(--config-color-background-fade);height:52px;line-height:52px;padding:0 25px;cursor:pointer;font-size:16px;box-sizing:border-box;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.button:focus,.button:hover,button:focus,button:hover{background:var(--config-color-focus-hover)}.button.fly,button.fly{position:fixed;z-index:2;bottom:30px;left:30px}@media only screen and (max-width:550px){.button.fly,button.fly{left:15px}}.button.fill,button.fill{display:block;width:100%;text-align:center;padding:0 10px!important}.button.fill-aligned,button.fill-aligned{display:block;width:100%;text-align:right;padding:0 20px!important}.button.icon,button.icon{padding-left:30px!important}.button.icon-reduce,button.icon-reduce{padding-right:15px!important}.button.reverse,button.reverse{background:0 0;height:50px;line-height:48px;padding:0 23px;color:var(--config-color-focus);border:solid 2px var(--config-color-focus)}.button.reverse:focus,.button.reverse:hover,button.reverse:focus,button.reverse:hover{color:var(--config-color-focus-hover);border-color:var(--config-color-focus-hover)}.button.small,button.small{padding:0 15px;height:40px;line-height:36px;font-size:13px}.button.tick,button.tick{background:var(--config-color-fade-light);color:var(--config-color-dark);border-radius:20px;padding:0 10px;line-height:30px;height:30px;font-size:12px;display:inline-block}.button.tick.selected,button.tick.selected{background:var(--config-color-dark);color:var(--config-color-fade)}.button.round,button.round{width:52px;padding:0}.button.round.small,button.round.small{font-size:12px;width:30px;height:30px;line-height:30px}.button.white,button.white{background:#fff;color:var(--config-color-focus)}.button.white.reverse,button.white.reverse{color:#fff;background:0 0;border:solid 2px #fff}.button.trans,button.trans{background:0 0!important}.button.trans.reverse,button.trans.reverse{background:0 0!important}.button.success,button.success{background:var(--config-color-success)}.button.success.reverse,button.success.reverse{color:var(--config-color-success);background:#fff;border:solid 2px var(--config-color-success)}.button.danger,button.danger{background:var(--config-color-danger);color:#fff}.button.danger.reverse,button.danger.reverse{color:var(--config-color-danger);background:var(--config-color-background-fade);border:solid 2px var(--config-color-danger)}.button.dark,button.dark{background:var(--config-color-dark);color:var(--config-color-background-fade)}.button.dark.reverse,button.dark.reverse{color:var(--config-color-dark);background:var(--config-color-background-fade);border:solid 2px var(--config-color-dark)}.button .disabled,.button.disabled,.button:disabled,button .disabled,button.disabled,button:disabled{color:var(--config-color-normal);background:var(--config-color-background-dark);opacity:.6;cursor:default}.button.link,button.link{background:0 0;border-radius:0;color:var(--config-color-link);height:auto;line-height:normal;padding:0;padding-left:0!important}.button.link:focus,button.link:focus{box-shadow:inherit}.button.strip,button.strip{background:0 0;height:auto;line-height:16px;color:inherit;padding:0 5px}.button.facebook,button.facebook{color:#fff!important;background:#4070b4!important}.button.twitter,button.twitter{color:#fff!important;background:#56c2ea!important}.button.linkedin,button.linkedin{color:#fff!important;background:#0076b5!important}.button.github,button.github{color:#fff!important;background:#7e7c7c!important}.button:focus,button:focus{outline:0}button.close{width:30px;height:30px;line-height:30px;padding:0;margin:0;background:var(--config-color-normal);color:var(--config-color-background-fade);border-radius:50%}button.close .icon-cancel::before{line-height:1}button.close.is-margin-top-10{margin-top:10px}label{margin-bottom:15px;display:block;line-height:normal}label.inline{display:inline}.input,input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=url],select,textarea{-webkit-appearance:none;-moz-appearance:none;-webkit-transform:translateZ(0);box-sizing:content-box;color:#313131;height:40px;line-height:40px;border:solid 1px var(--config-color-fade-light);border-radius:10px;padding:5px 15px;font-size:16px;display:block;width:calc(100% - 32px);margin-bottom:30px}.input[type=file],input[type=date][type=file],input[type=datetime-local][type=file],input[type=email][type=file],input[type=file][type=file],input[type=number][type=file],input[type=password][type=file],input[type=search][type=file],input[type=tel][type=file],input[type=text][type=file],input[type=url][type=file],select[type=file],textarea[type=file]{line-height:0;padding:15px;height:auto}.input:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=email]:focus,input[type=file]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=url]:focus,select:focus,textarea:focus{outline:0;border-color:#b3d7fd}.input:disabled,input[type=date]:disabled,input[type=datetime-local]:disabled,input[type=email]:disabled,input[type=file]:disabled,input[type=number]:disabled,input[type=password]:disabled,input[type=search]:disabled,input[type=tel]:disabled,input[type=text]:disabled,input[type=url]:disabled,select:disabled,textarea:disabled{color:var(--config-color-normal);background:var(--config-color-fade-super);opacity:1!important}.input.strip,input[type=date].strip,input[type=datetime-local].strip,input[type=email].strip,input[type=file].strip,input[type=number].strip,input[type=password].strip,input[type=search].strip,input[type=tel].strip,input[type=text].strip,input[type=url].strip,select.strip,textarea.strip{border:none;border-radius:0;padding:5px 0;width:100%;background-color:transparent;background-position:left 2px top 50%;border-bottom:solid 1px var(--config-color-fade-light);color:var(--config-color-placeholder)}.input.strip:focus,input[type=date].strip:focus,input[type=datetime-local].strip:focus,input[type=email].strip:focus,input[type=file].strip:focus,input[type=number].strip:focus,input[type=password].strip:focus,input[type=search].strip:focus,input[type=tel].strip:focus,input[type=text].strip:focus,input[type=url].strip:focus,select.strip:focus,textarea.strip:focus{border-color:#b3d7fd}.input:-webkit-autofill::first-line,input[type=date]:-webkit-autofill::first-line,input[type=datetime-local]:-webkit-autofill::first-line,input[type=email]:-webkit-autofill::first-line,input[type=file]:-webkit-autofill::first-line,input[type=number]:-webkit-autofill::first-line,input[type=password]:-webkit-autofill::first-line,input[type=search]:-webkit-autofill::first-line,input[type=tel]:-webkit-autofill::first-line,input[type=text]:-webkit-autofill::first-line,input[type=url]:-webkit-autofill::first-line,select:-webkit-autofill::first-line,textarea:-webkit-autofill::first-line{font-weight:300;font-size:16px}input[type=email],input[type=url]{direction:ltr}input[type=email]::placeholder,input[type=url]::placeholder{text-align:left;direction:ltr}select{background:0 0;-webkit-appearance:none;background-image:var(--config-console-nav-switch-arrow);background-position:left 15px top 50%;background-repeat:no-repeat;background-color:var(--config-color-background-input);width:calc(100% - 62px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:45px}select:-webkit-autofill{background-image:url("data:image/svg+xml;utf8,")!important;background-position:100% 50%!important;background-repeat:no-repeat!important}input[type=search],input[type=search].strip{background:0 0;-webkit-appearance:none;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAdZJREFUWIXt1s2LjWEYBvDfnDMzFpNIamZIFrMiJYMyFmKhZKfOwoiFr2LFn2BByG6WVrKwMcjWxgoLIlKIUk6RrzAjZWZ8LO731FlwvB+PUbjq6X0X7/VeV/d9P9fz8IdRL8Hpw3x8w0xaOz9GNxq4gJeZcGs1cRab0fU7xLfgMSYzoT3YgNXYhIO4iM+4iTWphGs4jikcFSXvhEGczr4/UFW8C2N4jXUFudvwCYeqGNgnSr6yJH8rpkWLCqMfE9hdUryFE3iC3qLEk7ij+kT34Q32FiHV8Qr7K4q3cArXihCGxd5elMjARnzBvE4f1dreV+AtnicycC/7/7K8BhaIvqXCO3zFwrwGZtCT0EAtW9N5DTSxWGR/CizNns/yEgbFEK5NZGCnaEPHE7e9Ai9wA6OJDIzistgJubFdxHB/RfFVYgCHixJruI5x5dNwDm6J47sUhkTvjpUw0Y1zeOrXR3hHjOA9zmBuTs4Arog4/yhuUZWwHPdFMh7280BZgiP4ILJ/UuymqRQmejPxphiquzgvKnMJDzOxB9glZqiRiecykbfHdawX98EhcdxO4BGu4nYm2EJDzEKPSMIdYrBnFYUq8d/EP2di1gey3cS4ErflvxffASbhcakIINaMAAAAAElFTkSuQmCC);background-color:var(--config-color-background-input);background-position:right 15px top 50%;background-repeat:no-repeat;background-size:20px 20px;width:calc(100% - 60px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:45px}select[multiple]{min-height:75px;padding:5px 10px!important;padding-left:50px!important}select[multiple] option{padding:10px 4px;border-bottom:solid 1px #f1f1f1}select[multiple] option:last-child{border-bottom:none}textarea{min-height:75px;resize:vertical;line-height:32px;padding:5px 15px}textarea.tall{min-height:180px}fieldset{border:none;margin:0;padding:0}.counter{font-size:13px;text-align:left;color:var(--config-color-fade);margin-top:-20px;margin-bottom:20px}.file-preview{background:var(--config-color-background-input) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAIElEQVQoU2NkYGAwZsAEZ9GFGIeIQix+wfQgyDODXSEAcUwGCrDSHgkAAAAASUVORK5CYII=)!important;box-shadow:inset 0 0 3px #a0a0a0;border-radius:8px;width:calc(100% - 2px);max-height:180px;visibility:visible!important;object-fit:cover}.video-preview{padding-top:56%;position:relative;border-radius:10px;background:#e7e7e7;overflow:hidden;margin:0}.video-preview iframe{position:absolute;top:0;width:100%;height:100%;border:none}.map-preview{padding-top:50%;position:relative;margin-bottom:10px;border-radius:10px;background:#e7e7e7;overflow:hidden;box-shadow:0 0 30px rgba(218,218,218,.5)}.map-preview iframe{position:absolute;top:0;width:100%;height:100%;border:none}.tooltip{position:relative}.tooltip.large:hover:after{white-space:normal;width:280px}.tooltip.small:hover:after{white-space:normal;width:180px}.tooltip:hover:after{white-space:nowrap;background:var(--config-color-tooltip-background);border-radius:5px;bottom:calc(100% + 6px);color:var(--config-color-tooltip-text);content:attr(data-tooltip);padding:5px 15px;position:absolute;font-size:13px;line-height:20px;z-index:98;right:20%;margin-right:-30px;word-break:break-word}.tooltip:hover:before{border:solid;border-color:var(--config-color-tooltip-background) transparent;border-width:6px 6px 0 6px;bottom:100%;content:"";position:absolute;z-index:99;right:3px}.tooltip.down:hover:after{top:calc(100% + 6px);bottom:inherit}.tooltip.down:hover:before{top:100%;border-width:0 6px 6px 6px;bottom:inherit}.tag{display:inline-block;background:var(--config-color-fade-light);color:var(--config-color-fade);border-radius:12px;line-height:24px;padding:0 8px;font-size:12px;box-shadow:none!important;border:none;height:auto;width:auto;white-space:nowrap;text-overflow:ellipsis}.tag:hover{border:none}.tag.green{background:var(--config-color-success);color:#fff}.tag.red{background:var(--config-color-danger);color:#fff}.tag.yellow{background:#ffe28b;color:#494949}.tag.focus{background:var(--config-color-focus);color:#fff}.tag.dark{background:var(--config-color-dark);color:#e7e7e7}.tag.blue{background:var(--config-color-info);color:#fff}.tag.link{background:var(--config-color-link);color:#fff}input[type=checkbox],input[type=radio]{width:26px;height:16px;position:relative;-webkit-appearance:none;border-radius:0;border:none;background:0 0;vertical-align:middle;margin:0}input[type=checkbox]:after,input[type=radio]:after{content:"";display:block;width:20px;height:20px;background:var(--config-color-background-fade);top:-5px;border-radius:50%;position:absolute;border:solid 3px var(--config-color-focus);vertical-align:middle}input[type=checkbox]:checked:after,input[type=radio]:checked:after{text-align:center;font-family:icon;content:'\ea14';font-size:16px;line-height:20px;color:var(--config-color-background-fade);background:var(--config-color-focus)}input[type=checkbox][type=radio]:checked:after,input[type=radio][type=radio]:checked:after{content:'';display:block;width:10px;height:10px;border-radius:50%;background:var(--config-color-background-fade);border:solid 8px var(--config-color-focus)}input[type=checkbox]:focus,input[type=radio]:focus{outline:0}input[type=checkbox]:focus:after,input[type=checkbox]:hover:after,input[type=radio]:focus:after,input[type=radio]:hover:after{outline:0;border-color:#000}input[type=checkbox]:checked:focus:after,input[type=checkbox]:checked:hover:after,input[type=radio]:checked:focus:after,input[type=radio]:checked:hover:after{border-color:var(--config-color-focus)}input[type=checkbox]:after{border-radius:4px}.input-copy{position:relative}.input-copy::before{content:'';display:block;position:absolute;height:50px;background:var(--config-color-fade-light);width:50px;right:0;border-radius:8px;z-index:1;margin:1px}.input-copy input,.input-copy textarea{padding-left:65px;width:calc(100% - 82px);resize:none}.input-copy .copy{position:absolute;z-index:2;top:0;left:0;border-right:solid 1px var(--config-color-fade-light);height:calc(100% - 2px);width:50px;line-height:50px;text-align:center;background:var(--config-color-background-focus);margin:1px;border-radius:0 9px 9px 0}.paging{color:var(--config-color-fade);padding:0;font-size:12px}.paging form{display:inline-block}.paging button:disabled{color:var(--config-color-background-fade);opacity:.6}.blue-snap iframe{-webkit-appearance:none;-moz-appearance:none;-webkit-transform:translateZ(0);box-sizing:content-box;color:#313131;height:40px;line-height:40px;border:solid 1px var(--config-color-fade-light);border-radius:10px;padding:5px 15px;font-size:16px;display:block;width:calc(100% - 32px);margin-bottom:30px;float:none!important;height:40px!important;width:calc(100% - 32px)!important;border:solid 1px #e2e2e2!important;background:0 0!important;position:static!important}.blue-snap iframe[type=file]{line-height:0;padding:15px;height:auto}.blue-snap iframe:focus{outline:0;border-color:#b3d7fd}.blue-snap iframe:disabled{color:var(--config-color-normal);background:var(--config-color-fade-super);opacity:1!important}.blue-snap iframe.strip{border:none;border-radius:0;padding:5px 0;width:100%;background-color:transparent;background-position:left 2px top 50%;border-bottom:solid 1px var(--config-color-fade-light);color:var(--config-color-placeholder)}.blue-snap iframe.strip:focus{border-color:#b3d7fd}.blue-snap iframe:-webkit-autofill::first-line{font-weight:300;font-size:16px}.blue-snap .error{font-size:12px;margin-top:-25px;color:var(--config-color-danger);height:40px;padding-right:2px}.pell{height:auto;padding-bottom:0;margin-bottom:0;padding-top:0;background:var(--config-color-background-input);line-height:normal!important;position:relative}.pell.hide{padding:0!important;height:1px;min-height:1px;max-height:1px;border:none;box-shadow:none;margin-bottom:20px;opacity:0}.pell [contenteditable=true]:empty:before{content:attr(placeholder);display:block;color:var(--config-color-placeholder)}.pell .pell-actionbar{border-bottom:solid 1px var(--config-color-fade-light);margin:0 -15px 15px -15px;padding:10px 15px;position:sticky;top:70px;background:var(--config-color-background-input);border-radius:10px 10px 0 0}.pell .pell-content{min-height:100px;display:block;padding:10px;margin:-10px;cursor:text}.pell .pell-content:focus{outline:0}.pell button{background:inherit;color:inherit;margin:0;padding:0;padding-left:15px;height:40px;line-height:40px;box-shadow:none;cursor:pointer;font-size:13px;border-radius:0}.pell button.pell-button-selected,.pell button:focus,.pell button:hover{color:var(--config-color-link)}.pell h1,.pell h2,.pell h3,.pell h4,.pell h5,.pell h6{text-align:inherit;margin-bottom:30px}.pell b,.pell strong{font-weight:700}.pell ol,.pell ul{margin:0 0 20px 0}.pell ol li,.pell ul li{display:list-item!important;list-style:inherit;list-style-position:inside!important;margin:0 20px 2px 20px}.pell ol li p,.pell ul li p{margin:0;display:inline}.pell ol li{list-style:decimal}.pell ol li::before{content:'';display:none}label.switch{line-height:42px}.switch,input[type=checkbox].button.switch,input[type=checkbox].switch{width:52px;height:32px;line-height:32px;border-radius:21px;background:var(--config-color-fade);display:inline-block;margin:0;padding:5px;padding-right:5px;padding-left:30px}.switch.on,.switch:checked,input[type=checkbox].button.switch.on,input[type=checkbox].button.switch:checked,input[type=checkbox].switch.on,input[type=checkbox].switch:checked{background-color:var(--config-color-success);padding-right:25px;padding-left:5px}.switch.on:focus,.switch.on:hover,.switch:checked:focus,.switch:checked:hover,input[type=checkbox].button.switch.on:focus,input[type=checkbox].button.switch.on:hover,input[type=checkbox].button.switch:checked:focus,input[type=checkbox].button.switch:checked:hover,input[type=checkbox].switch.on:focus,input[type=checkbox].switch.on:hover,input[type=checkbox].switch:checked:focus,input[type=checkbox].switch:checked:hover{background:var(--config-color-success)}.switch:focus,.switch:hover,input[type=checkbox].button.switch:focus,input[type=checkbox].button.switch:hover,input[type=checkbox].switch:focus,input[type=checkbox].switch:hover{background:var(--config-color-fade)}.switch:focus:after,.switch:hover:after,input[type=checkbox].button.switch:focus:after,input[type=checkbox].button.switch:hover:after,input[type=checkbox].switch:focus:after,input[type=checkbox].switch:hover:after{background:#fff}.switch:after,input[type=checkbox].button.switch:after,input[type=checkbox].switch:after{content:"";display:block;width:22px;height:22px;background:#fff;border-radius:50%;border:none;position:static;top:0}.password-meter{margin:-41px 10px 30px 10px;height:2px;background:0 0;max-width:100%;z-index:2;position:relative}.password-meter.weak{background:var(--config-color-danger)}.password-meter.medium{background:var(--config-color-success)}.password-meter.strong{background:var(--config-color-success)}.color-input:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.color-input .color-preview{width:53px;height:53px;float:right;margin-left:10px;background:#000;border-radius:10px;box-shadow:inset 0 0 3px #a0a0a0;position:relative}.color-input .color-preview input{opacity:0;position:absolute;top:0;bottom:0;left:0;right:0;width:100%;height:100%;cursor:pointer}.color-input input{text-transform:uppercase;float:right;width:calc(100% - 95px)}.grecaptcha-badge{box-shadow:none!important;border-radius:10px!important;overflow:hidden!important;background:#4d92df!important;bottom:25px}.grecaptcha-badge:hover{width:256px!important}.back{font-size:15px;line-height:24px;height:24px;margin-right:-15px;margin-top:-25px;margin-bottom:20px}.back span{font-weight:inherit!important}@media only screen and (max-width:550px){.back{margin-right:-5px}}hr{height:1px;background:var(--config-border-color)!important;border:none}hr.fade{opacity:.7}.upload{position:relative}.upload:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.upload input{position:absolute;top:0;right:0;opacity:0;cursor:pointer}.upload.single .preview{height:0;position:relative;padding-top:100%;width:100%;margin-bottom:15px!important}.upload.single .preview li{position:absolute;top:0;width:calc(100% - 20px);height:calc(100% - 20px);margin-left:0!important;margin-bottom:0!important}.upload .button{float:right;margin-left:10px!important}.upload .button.disabled,.upload .button.disabled:hover{background:0 0;color:inherit;border-color:inherit}.upload .count{float:right;line-height:52px}.upload .progress{background:var(--config-color-success);height:6px;border-radius:3px;margin-bottom:15px!important}.upload .preview:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.upload .preview li{float:right;margin-left:20px!important;margin-bottom:15px!important;background:var(--config-color-background-fade-super);width:150px;height:150px;line-height:148px;text-align:center;border-radius:20px;overflow:hidden;position:relative;cursor:pointer;border:solid 1px var(--config-color-background-dark)}.upload .preview li:hover:before{background:var(--config-color-focus)}.upload .preview li:before{content:'\ea11';font-family:icon;font-size:12px;position:absolute;width:20px;height:20px;display:block;top:8px;left:8px;text-align:center;line-height:20px;vertical-align:middle;border-radius:50%;background:#484848;color:#fff;z-index:1}.upload .preview li img{vertical-align:middle;max-height:150px;max-width:150px;-webkit-filter:drop-shadow(0 0 6px rgba(0, 0, 0, .3));filter:drop-shadow(0 0 1px rgba(0, 0, 0, .3))}.upload.wide .preview li{height:0;width:100%;position:relative;padding-top:30.547%;background:#e7e7e7;border-radius:10px;overflow:hidden;border:solid 1px #f9f9f9;margin:0}.upload.wide .preview li img{border-radius:10px;position:absolute;top:0;width:100%;display:block;opacity:1;max-width:inherit;max-height:inherit}ol{list-style:none;counter-reset:x-counter;padding:0}ol li{counter-increment:x-counter;line-height:30px;margin-bottom:30px;margin-right:45px}ol li::before{display:inline-block;content:counter(x-counter);color:var(--config-color-background-fade);background:var(--config-color-focus);border:solid 2px var(--config-color-focus);margin-left:15px;margin-right:-45px;width:26px;height:26px;border-radius:50%;text-align:center;line-height:26px}.required{color:var(--config-color-danger);font-size:8px;position:relative;top:-8px}.drop-list{position:relative;outline:0}.drop-list.open ul{display:block}.drop-list ul{position:relative;background:var(--config-color-background-fade);border-radius:10px;border-bottom:none;box-shadow:0 0 3px rgba(0,0,0,.05);display:block;padding:30px;border-radius:4px;box-shadow:0 0 6px rgba(0,0,0,.1);display:none;position:absolute;bottom:calc(100% + 10px);z-index:2;padding:0;right:-10px;max-width:280px;min-width:240px}.drop-list ul.padding-tiny{padding:5px}.drop-list ul.padding-xs{padding:10px}.drop-list ul.padding-small{padding:15px}.drop-list ul.y-scroll{overflow-y:auto}.drop-list ul.danger{background:var(--config-color-danger);color:#fff}.drop-list ul.danger .box{color:var(--config-color-normal);background:var(--config-color-background-fade)}.drop-list ul.danger>.button,.drop-list ul.danger>button{background:#fff;color:var(--config-color-danger)}.drop-list ul.note{background:var(--config-note-background)}.drop-list ul.focus{background:var(--config-color-focus);color:var(--config-color-background-fade)}.drop-list ul.focus .button,.drop-list ul.focus button{background:var(--config-color-background-fade);color:var(--config-color-focus)}.drop-list ul.line{background:0 0;border:solid 1px var(--config-color-background-dark);box-shadow:none}.drop-list ul.warning{background:var(--config-color-warning);color:#2d2d2d}.drop-list ul.warning .button,.drop-list ul.warning button{background:rgba(45,45,45,.8);color:var(--config-color-success)}.drop-list ul .tabs{border-bottom:solid 1px var(--config-border-color);margin:0 -30px;padding:0 30px!important}.drop-list ul>footer{margin:0 -30px -30px -30px;padding:15px 30px;background:var(--config-color-background-fade);border:solid 1px var(--config-border-color);border-radius:0 0 10px 10px}.drop-list ul hr{height:1px;background:var(--config-console-background);border:none;margin:30px -30px}.drop-list ul .label{position:absolute;top:10px;z-index:2;left:10px}.drop-list ul.fade-bottom{position:relative;overflow:hidden}.drop-list ul.fade-bottom:after{content:"";position:absolute;display:block;bottom:15px;width:100%;background:#000;background:linear-gradient(180deg,rgba(0,0,0,0) 0,var(--config-color-background-fade) 80%);height:100px;margin:0 -15px}.drop-list ul .header{position:static;height:40px;padding:20px 30px 20px 30px;margin-bottom:30px;margin:-30px -30px 20px -30px;background:var(--config-color-background-fade);border-bottom:solid 1px #efefef}.drop-list ul ul.numbers>li{position:relative;margin-right:30px;margin-left:50px}.drop-list ul ul.numbers>li hr{margin-right:-60px;margin-left:-80px}.drop-list ul ul.numbers>li .settings{position:absolute;top:3px;left:-50px}.drop-list ul ul.numbers>li::after{display:block;width:25px;height:25px;line-height:25px;font-size:13px;font-weight:500;border-radius:50%;background:var(--config-color-focus);color:var(--config-color-background);counter-increment:section;content:counter(section);text-align:center;position:absolute;top:3px;right:-45px}.drop-list ul .scroll{margin:0 -30px;overflow-y:scroll}.drop-list ul .scroll table{width:100%;margin:0}.drop-list ul ul.sortable{counter-reset:section}.drop-list ul ul.sortable>li [data-move-down].round,.drop-list ul ul.sortable>li [data-move-up].round,.drop-list ul ul.sortable>li [data-remove].round{background:var(--config-color-focus);color:var(--config-color-background-fade);width:25px;height:25px;line-height:25px;display:inline-block;text-align:center;padding:0;margin-left:5px}.drop-list ul ul.sortable>li [data-move-down].round:disabled,.drop-list ul ul.sortable>li [data-move-up].round:disabled,.drop-list ul ul.sortable>li [data-remove].round:disabled{display:none}.drop-list ul ul.sortable>li:first-child [data-move-up]{display:none}.drop-list ul ul.sortable>li:first-child [data-move-up]:disabled{display:inline-block;background:var(--config-color-background)}.drop-list ul ul.sortable>li:last-child [data-move-down]{display:none}.drop-list ul ul.sortable>li:last-child [data-move-down]:disabled{display:inline-block;background:var(--config-color-background)}.drop-list ul .toggle{position:relative;border-top:1px solid var(--config-console-background);border-bottom:1px solid var(--config-console-background);margin:0 -30px;padding:30px 30px 0 30px;height:65px;overflow:hidden}.drop-list ul .toggle.list{border-bottom:none}.drop-list ul .toggle.sorts button.ls-ui-open{width:calc(100% - 100px)}.drop-list ul .toggle button.ls-ui-open{left:0;position:absolute;top:0;width:100%;height:95px;background:0 0;opacity:.5;border-radius:0}.drop-list ul .toggle .icon-minus,.drop-list ul .toggle .icon-up-open{display:none}.drop-list ul .toggle .content{display:none}.drop-list ul .toggle.open{height:auto}.drop-list ul .toggle.open .icon-minus,.drop-list ul .toggle.open .icon-up-open{display:block}.drop-list ul .toggle.open .icon-down-open,.drop-list ul .toggle.open .icon-plus{display:none}.drop-list ul .toggle.open .content{display:block}.drop-list ul .list li{border-bottom:solid 2px var(--config-border-color);margin:0 -30px 30px -30px;padding:0 30px 30px 30px}.drop-list ul .list li:last-child{padding-bottom:0;margin-bottom:0;border-bottom:none}@media only screen and (max-width:550px){.drop-list ul .list li .actions{float:none}}.drop-list ul .list li .avatar{display:block}.drop-list ul .list li .avatar.inline{display:inline-block}.drop-list ul.new{text-align:center}.drop-list ul.new i{font-size:80px;line-height:80px;font-family:Poppins,sans-serif;font-style:normal;font-weight:300}.drop-list ul.new b{margin-top:20px;display:block}.drop-list ul .info{margin:0 -30px;padding:20px 30px;background:var(--config-modal-note-background);color:var(--config-modal-note-color);border-top:solid 1px var(--config-modal-note-border);border-bottom:solid 1px var(--config-modal-note-border)}.drop-list ul .info hr{background:var(--config-modal-note-border)!important}.drop-list ul .table-wrap{margin:0 -30px;overflow-y:scroll}.drop-list ul .table-wrap table{margin:0}.drop-list ul:before{border:solid;border-color:var(--config-color-background-fade) transparent;border-width:8px 8px 0 8px;bottom:-8px;content:"";position:absolute;z-index:99;right:30px}.drop-list ul.arrow-end:before{left:30px;right:unset}.drop-list ul.no-arrow::before{display:none}.drop-list ul li{border-bottom:solid 1px var(--config-color-fade-super);margin:0;padding:0}.drop-list ul li:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.drop-list ul li:first-child{border-radius:4px 4px 0 0}.drop-list ul li:last-child{border-radius:0 0 4px 4px}.drop-list ul li:hover{background:var(--config-color-fade-super)}.drop-list ul li:first-child:hover,.drop-list ul li:last-child:hover{border-color:transparent}.drop-list ul li .link,.drop-list ul li a,.drop-list ul li button.link{display:block;vertical-align:middle;height:auto;line-height:30px;display:inline-block;padding:10px 15px!important;color:inherit;font-size:14px;border:none;cursor:pointer;width:calc(100% - 30px);text-align:right;box-sizing:content-box}.drop-list ul li.disabled .link:hover,.drop-list ul li.disabled a:hover{background:0 0}.drop-list ul li .avatar{width:30px;height:30px;margin-left:10px;float:right}.drop-list ul li i.avatar{text-align:center;background:var(--config-color-dark);color:var(--config-color-background-fade)}.drop-list ul li:last-child{border-bottom:none}.drop-list.bottom ul{bottom:auto;margin-top:-2px}.drop-list.bottom ul:before{bottom:auto;top:-8px;border-width:0 8px 8px 8px}.drop-list.end ul{left:-10px;right:auto}.disabled{opacity:.2;cursor:default}.disabled .button,.disabled .link,.disabled a,.disabled button{cursor:default!important}.disabled .button:hover,.disabled .link:hover,.disabled a:hover,.disabled button:hover{background:0 0}.tags{-webkit-appearance:none;-moz-appearance:none;-webkit-transform:translateZ(0);box-sizing:content-box;color:#313131;height:40px;line-height:40px;border:solid 1px var(--config-color-fade-light);border-radius:10px;padding:5px 15px;font-size:16px;display:block;width:calc(100% - 32px);margin-bottom:30px;background:var(--config-color-background-input);min-height:42px;height:auto;cursor:text}.tags[type=file]{line-height:0;padding:15px;height:auto}.tags:focus{outline:0;border-color:#b3d7fd}.tags:disabled{color:var(--config-color-normal);background:var(--config-color-fade-super);opacity:1!important}.tags.strip{border:none;border-radius:0;padding:5px 0;width:100%;background-color:transparent;background-position:left 2px top 50%;border-bottom:solid 1px var(--config-color-fade-light);color:var(--config-color-placeholder)}.tags.strip:focus{border-color:#b3d7fd}.tags:-webkit-autofill::first-line{font-weight:300;font-size:16px}.tags .add{display:inline-block!important;border:none;padding:0;width:auto;margin:0;max-width:100%;min-width:200px}.tags ul.tags-list{display:inline;white-space:pre-line}.tags ul.tags-list li{display:inline-block!important;margin-left:10px;font-size:16px;padding:5px 10px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tags ul.tags-list li::before{float:left;content:'\ea11';font-family:icon;font-style:normal;display:inline-block;text-align:center;line-height:16px;width:16px;height:16px;font-size:12px;background:#000;color:#fff;border-radius:50%;margin-top:4px;margin-bottom:4px;margin-right:6px;margin-left:0}.switch-theme{background:var(--config-switch-background);border-radius:19px;height:26px;width:44px;margin:9px 0}.switch-theme button{padding:3px;display:block;background:0 0;height:26px;width:100%}.switch-theme i{background:var(--config-color-background-fade);border-radius:50%;height:18px;width:18px;line-height:18px;font-size:10px;padding:0;margin:0;color:var(--config-color-fade)}.switch-theme i.force-light{float:left}.switch-theme i.force-dark{float:right}.dot{width:20px;height:20px;background:var(--config-color-fade);border-radius:50%;display:inline-block;vertical-align:middle;margin:0!important;padding:0!important}.dot.danger{background:var(--config-color-danger)!important}.dot.success{background:var(--config-color-success)!important}.dot.warning{background:var(--config-color-warning)!important}.dot.info{background:var(--config-color-info)!important}.ide{background-color:var(--config-prism-background);overflow:hidden;position:relative;z-index:1;box-shadow:0 2px 4px 0 rgba(50,50,93,.3);border-radius:10px;margin-bottom:30px}.ide *{font-family:"Source Code Pro",monospace}.ide[data-lang]::after{content:attr(data-lang-label);display:inline-block;background:#fff;color:#000;position:absolute;top:15px;padding:5px 10px;border-radius:15px;font-size:10px;right:10px;opacity:.95}.ide[data-lang=bash]::after{background:var(--config-language-bash);color:var(--config-language-bash-contrast)}.ide[data-lang=javascript]::after{background:var(--config-language-javascript);color:var(--config-language-javascript-contrast)}.ide[data-lang=web]::after{background:var(--config-language-web);color:var(--config-language-web-contrast)}.ide[data-lang=html]::after{background:var(--config-language-html);color:var(--config-language-html-contrast)}.ide[data-lang=php]::after{background:var(--config-language-php);color:var(--config-language-php-contrast)}.ide[data-lang=nodejs]::after{background:var(--config-language-nodejs);color:var(--config-language-nodejs-contrast)}.ide[data-lang=ruby]::after{background:var(--config-language-ruby);color:var(--config-language-ruby-contrast)}.ide[data-lang=python]::after{background:var(--config-language-python);color:var(--config-language-python-contrast)}.ide[data-lang=go]::after{background:var(--config-language-go);color:var(--config-language-go-contrast)}.ide[data-lang=dart]::after{background:var(--config-language-dart);color:var(--config-language-dart-contrast)}.ide[data-lang=flutter]::after{background:var(--config-language-flutter);color:var(--config-language-flutter-contrast)}.ide[data-lang=android]::after{background:var(--config-language-android);color:var(--config-language-android-contrast)}.ide[data-lang=swift]::after{background:var(--config-language-swift);color:var(--config-language-swift-contrast)}.ide[data-lang=kotlin]::after{background:var(--config-language-kotlin);color:var(--config-language-kotlin-contrast)}.ide[data-lang=java]::after{background:var(--config-language-java);color:var(--config-language-java-contrast)}.ide[data-lang=yaml]::after{background:var(--config-language-yaml);color:var(--config-language-yaml-contrast)}.ide .tag{color:inherit!important;background:0 0!important;padding:inherit!important;font-size:inherit!important;line-height:14px}.ide .copy{cursor:pointer;content:attr(data-lang);display:inline-block;background:#fff;color:#000;position:absolute;transform:translateX(-50%);bottom:-20px;padding:5px 10px;border-radius:15px;font-size:10px;font-style:normal;right:50%;opacity:0;transition:bottom .3s,opacity .3s;line-height:normal;font-family:Poppins,sans-serif}.ide .copy::before{padding-left:5px}.ide:hover .copy{transition:bottom .3s,opacity .3s;opacity:.9;bottom:16px}.ide pre{-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none;color:#e6ebf1;font-weight:400;line-height:20px;font-size:13px;margin:0;padding:20px;padding-left:60px}.ide.light{box-shadow:0 2px 4px 0 rgba(50,50,93,.1);background-color:#fff}.ide.light pre{color:#414770}.ide.light .token.cdata,.ide.light .token.comment,.ide.light .token.doctype,.ide.light .token.prolog{color:#91a2b0}.ide.light .token.attr-name,.ide.light .token.builtin,.ide.light .token.char,.ide.light .token.inserted,.ide.light .token.selector,.ide.light .token.string{color:#149570}.ide.light .token.punctuation{color:#414770}.ide.light .language-css .token.string,.ide.light .style .token.string,.ide.light .token.entity,.ide.light .token.operator,.ide.light .token.url,.ide.light .token.variable{color:#414770}.ide.light .line-numbers .line-numbers-rows{background:#f2feef}.ide.light .line-numbers-rows>span:before{color:#5dc79e}.ide.light .token.keyword{color:#6772e4;font-weight:500}code[class*=language-],pre[class*=language-]{text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4}pre[class*=language-]{overflow:auto}:not(pre)>code[class*=language-]{padding:.1em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#6b7c93}.token.punctuation{color:#f8f8f2}.namespace{opacity:.7}.token.constant,.token.deleted,.token.property,.token.symbol,.token.tag{color:#f92672}.token.boolean,.token.number{color:#f79a59}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#3ecf8e}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url,.token.variable{color:#f8f8f2}.token.atrule,.token.attr-value,.token.class-name,.token.function{color:#45b2e8}.token.keyword{color:#7795f8}.token.important,.token.regex{color:#fd971f}.token.italic{font-style:italic}.token.entity{cursor:help}pre[class*=language-].line-numbers{position:relative;padding-left:60px;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{background:var(--config-prism-numbers);position:absolute;pointer-events:none;top:-20px;bottom:-21px;padding:20px 0;font-size:100%;left:-60px;width:40px;letter-spacing:-1px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{padding-left:5px;pointer-events:none;display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#636365;display:block;padding-right:.8em;text-align:right}.u-table-layout-normal{table-layout:revert!important}.u-margin-inline-end-16{margin-inline-end:16px!important}.console{width:100%;padding:0;overscroll-behavior:none}.console body{position:relative;width:calc(100% - 320px);padding-top:70px;padding-bottom:0;padding-left:50px;padding-right:270px;margin:0;color:var(--config-color-normal);background:var(--config-console-background)}.console body .project-only{display:none!important}.console body.show-nav .project-only{display:inline-block!important}.console body.hide-nav{padding-right:50px;width:calc(100% - 100px)}.console body.hide-nav header{width:calc(100% - 50px)}.console body.hide-nav header .logo{display:inline-block}.console body.hide-nav .console-back{display:block}.console body.hide-nav .console-index{display:none}.console body.hide-nav .account{display:none}.console body.index .console-back{display:none}.console body.index .console-index{display:block}.console body.index .account{display:block}.console body .console-index{display:block}.console body .console-back{display:none}.console main{min-height:480px}.console header{position:fixed;top:0;width:calc(100% - 280px);height:40px;line-height:40px;padding:15px 30px;background:var(--config-color-background-fade);box-shadow:0 0 2px rgba(0,0,0,.1);margin:0 -50px;z-index:2;font-size:14px}.console header .logo{display:none;border:none}.console header .logo:hover{border:none;opacity:.8}.console header .logo img{height:26px;margin:7px 0}.console header .setup-new{width:40px;height:40px;line-height:40px}.console header .list{width:240px}.console header .list select{height:40px;line-height:40px;padding-top:0;padding-bottom:0;border:none;border-radius:26px;background-color:var(--config-console-nav-switch-background);color:var(--config-console-nav-switch-color)}.console header .account{margin-right:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.console header .switch-theme{margin:2px 0}.console header .avatar{height:40px;width:40px}.console header .account-button{background:0 0;position:absolute;width:100%;height:40px;border-radius:0;z-index:1}.console header .notifications{position:relative;font-size:20px}.console header .notifications a{color:#1b3445}.console header .notifications:after{position:absolute;content:"";display:block;background:var(--config-color-danger);width:8px;height:8px;border-radius:50%;top:3px;left:3px}.console header nav{background:#1b3445;background:linear-gradient(var(--config-console-nav-start),var(--config-console-nav-end));color:#788c99;position:fixed;height:100%;width:220px;top:0;right:0}.console header nav .logo{height:39px;padding:15px 20px;display:block}.console header nav .logo img{display:inline-block;margin-top:7px;margin-bottom:14px}.console header nav .logo svg g{fill:var(--config-color-focus)}.console header nav .icon{display:block;border:none;margin:18px 10px 50px 10px}.console header nav .icon img{display:block}.console header nav .icon:hover{border-bottom:none}.console header nav .icon:hover svg g{fill:var(--config-color-focus)}.console header nav .container{overflow:auto;height:calc(100% - 133px);width:100%}.console header nav .project-box{padding:20px;text-align:center;display:block;border:none;line-height:100px;height:100px}.console header nav .project-box img{max-height:80px;max-width:80%;display:inline-block;vertical-align:middle}.console header nav .project{display:block;padding:85px 25px 20px 25px;color:#788c99;position:relative;border:none;height:20px}.console header nav .project:hover{border-bottom:none}.console header nav .project .name{height:20px;line-height:20px;margin:0;padding:0;display:inline-block;max-width:100%}.console header nav .project .arrow{display:block;position:absolute;left:5px;top:10px;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #788c99;transform:rotate(225deg)}.console header nav .project img{position:absolute;bottom:40px;display:block;margin-bottom:10px;max-height:35px;max-width:40%}.console header nav .subtitle{padding:0 30px;display:block;font-size:12px;font-weight:300}.console header nav .links{margin-bottom:15px!important}.console header nav .links.top{border:none;padding-bottom:0;margin-bottom:5px!important}.console header nav .links.bottom{position:absolute;bottom:0;left:0;right:0;padding-bottom:0;border:none;margin-bottom:0!important;box-shadow:0 0 10px rgba(0,0,0,.1)}.console header nav .links.bottom a{border-top:solid 1px var(--config-console-nav-border);border-bottom:none}.console header nav .links .sub{display:inline-block;border:none;width:25px;height:25px;line-height:25px;border-radius:50%;padding:0;background:var(--config-color-focus);color:#fff;text-align:center;font-size:12px;margin:18px}.console header nav .links .sub i{width:auto;margin:0}.console header nav .links .sub:hover{border:none}.console header nav .links a{padding:8px 20px;border:none;display:flex;color:#87a5b9;font-weight:400;border-right:solid 5px transparent;font-size:13px}.console header nav .links a i{margin-left:8px;width:22px;display:inline-block}.console header nav .links a.selected,.console header nav .links a:hover{color:#e4e4e4}.console header nav:after{content:'';display:block;position:absolute;background:#302839;height:100px;width:100%;bottom:-100px}.console>footer{width:calc(100% + 100px);margin:0 -50px;box-sizing:border-box;background:0 0;padding-left:30px;padding-right:30px}.console>footer ul{float:none;text-align:center}.console>footer ul li{float:none;display:inline-block}.console .projects{position:relative}.console .projects:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.console .projects li{float:right;margin-left:50px;margin-bottom:50px;width:270px}.console .projects li:nth-child(3n){margin-left:0}.console .dashboard{padding:20px;overflow:visible;position:relative;z-index:1;margin-bottom:2px}.console .dashboard .chart{width:80%}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.console .dashboard .chart{width:100%}}.console .dashboard hr{margin:20px -25px;height:2px;background:var(--config-console-background)}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.console .dashboard hr{height:3px}}.console .dashboard footer{margin:-20px;padding:20px;background:#fcfeff;border:none;color:var(--config-color-link)}.console .dashboard .col{position:relative}.console .dashboard .col:last-child:after{display:none}.console .dashboard .col:after{content:"";display:block;width:2px;background:var(--config-console-background);position:absolute;top:-20px;bottom:-20px;left:24px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.console .dashboard .col:after{width:calc(100% + 40px);height:3px;position:static;margin:20px -20px}}.console .dashboard .value{color:var(--config-color-focus);vertical-align:bottom;line-height:45px}.console .dashboard .value.small{line-height:35px}.console .dashboard .value .sum{font-size:45px;line-height:45px;font-weight:700;vertical-align:bottom}.console .dashboard .value .sum.small{font-size:25px;line-height:25px}.console .dashboard .unit{font-weight:500;line-height:20px;vertical-align:bottom;font-size:16px;display:inline-block;margin-bottom:5px;margin-right:5px;color:var(--config-color-focus)}.console .dashboard .metric{color:var(--config-color-focus);font-weight:400;font-size:13px;line-height:16px}.console .dashboard .range{color:var(--config-color-fade);font-weight:400;font-size:14px;line-height:16px}.console .dashboard a{display:block;font-weight:400;font-size:14px;line-height:16px;padding:0;border:none}.console .dashboard .chart-bar{height:4rem;width:auto;display:flex;align-items:flex-end}@media only screen and (min-width:1199px){.console .dashboard .chart-bar{padding-right:15px}}.console .dashboard .chart-bar .bar{width:12.5%;background-color:var(--config-color-chart-fade);margin:0 2px;border-top:2px solid var(--config-color-chart)}.console .dashboard .chart-bar .bar:hover{background-color:var(--config-color-chart)}.console .dashboard .chart-bar .bar.bar-100{height:100%}.console .dashboard .chart-bar .bar.bar-90{height:90%}.console .dashboard .chart-bar .bar.bar-80{height:80%}.console .dashboard .chart-bar .bar.bar-70{height:70%}.console .dashboard .chart-bar .bar.bar-60{height:60%}.console .dashboard .chart-bar .bar.bar-50{height:50%}.console .dashboard .chart-bar .bar.bar-40{height:40%}.console .dashboard .chart-bar .bar.bar-30{height:30%}.console .dashboard .chart-bar .bar.bar-20{height:20%}.console .dashboard .chart-bar .bar.bar-10{height:10%}.console .dashboard .chart-bar .bar.bar-0{height:0%}.console .dashboard .chart-bar .bar.bar-0{border-top:1px solid var(--config-color-chart)}.console .dashboard .chart-bar .bar.bar-5{height:5%}.console .chart-metric{width:19%}@media only screen and (min-width:551px) and (max-width:1198px),only screen and (max-width:550px){.console .chart-metric{width:100%}}.console .chart{width:100%;position:relative;height:0;padding-top:20px;padding-bottom:26%;margin-left:-2px;overflow:hidden;background-color:var(--config-color-background-fade);background-image:linear-gradient(transparent 1px,transparent 1px),linear-gradient(90deg,transparent 1px,transparent 1px),linear-gradient(var(--config-border-color) 1px,transparent 1px),linear-gradient(90deg,var(--config-border-color) 1px,transparent 1px);background-size:100px 100px,100px 100px,20px 20px,20px 20px;background-position:-2px -2px,-2px -2px,-1px -1px,-1px -1px;background-repeat:round;border:solid 1px var(--config-border-color);border-right:solid 1px transparent;border-bottom:solid 1px transparent}.console .chart.background-image-no{background-image:none}.console .chart.border-no{border:none}@media only screen and (min-width:551px) and (max-width:1198px),only screen and (max-width:550px){.console .chart{width:100%;padding-bottom:32%;float:none;margin-bottom:20px}}.console .chart canvas{position:absolute;bottom:0;display:block;height:100%;width:100%}.console .chart-notes{font-size:12px}.console .chart-notes.crud li.create,.console .chart-notes.crud li:nth-child(1){color:#00b680}.console .chart-notes.crud li.create::before,.console .chart-notes.crud li:nth-child(1)::before{background:#00b680}.console .chart-notes.crud li.read,.console .chart-notes.crud li:nth-child(2){color:#009cde}.console .chart-notes.crud li.read::before,.console .chart-notes.crud li:nth-child(2)::before{background:#009cde}.console .chart-notes.crud li.update,.console .chart-notes.crud li:nth-child(3){color:#696fd7}.console .chart-notes.crud li.update::before,.console .chart-notes.crud li:nth-child(3)::before{background:#696fd7}.console .chart-notes.crud li.delete,.console .chart-notes.crud li:nth-child(4){color:#da5d95}.console .chart-notes.crud li.delete::before,.console .chart-notes.crud li:nth-child(4)::before{background:#da5d95}.console .chart-notes li{line-height:20px;display:inline-block;margin-left:15px}.console .chart-notes li::before{display:inline-block;content:'';width:14px;height:14px;background:var(--config-color-normal);border-radius:50%;margin-left:8px;vertical-align:middle}.console .chart-notes li.blue,.console .chart-notes li:nth-child(1){color:var(--config-color-chart)}.console .chart-notes li.blue::before,.console .chart-notes li:nth-child(1)::before{background:var(--config-color-chart)}.console .chart-notes li.green,.console .chart-notes li:nth-child(2){color:#4eb55b}.console .chart-notes li.green::before,.console .chart-notes li:nth-child(2)::before{background:#4eb55b}.console .chart-notes li.orange,.console .chart-notes li:nth-child(3){color:#ec9323}.console .chart-notes li.orange::before,.console .chart-notes li:nth-child(3)::before{background:#ec9323}.console .chart-notes li.red,.console .chart-notes li:nth-child(4){color:#dc3232}.console .chart-notes li.red::before,.console .chart-notes li:nth-child(4)::before{background:#dc3232}.console .community a{padding:0 10px;display:inline-block}.console .link-list li{margin-bottom:15px}.console .link-list i{display:inline-block;width:30px;height:30px;line-height:30px;text-align:center;background:var(--config-color-fade);color:var(--config-color-fade-super);border-radius:50%;margin-left:15px}.console .link-list i.fade{background:0 0;color:var(--config-color-fade)}.console .provider{width:50px;height:50px;background:var(--config-color-background-focus);color:#868686;line-height:50px;text-align:center;font-size:25px;border-radius:50%}.console .provider.facebook{color:#fff;background:#3b5998}.console .provider.twitter{color:#fff;background:#55beff}.console .provider.telegram{color:#fff;background:#3ba9e1}.console .provider.github{color:#fff;background:#24292e}.console .provider.whatsapp{color:#fff;background:#25d366}.console .provider.linkedin{color:#fff;background:#1074af}.console .provider.microsoft{color:#fff;background:#137ad4}.console .provider.google{color:#fff;background:#4489f1}.console .provider.bitbucket{color:#fff;background:#2a88fb}.console .provider.gitlab{color:#faa238;background:#30353e}.console .provider.instagram{color:#fff;background:radial-gradient(circle at 30% 107%,#fdf497 0,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285aeb 90%)}.console .premium{z-index:3;margin-top:320px}.console .premium .message{height:190px;overflow:hidden;position:absolute;top:-280px}.console .premium:after{content:'';position:absolute;top:0;left:-20px;right:-20px;bottom:-20px;background:var(--config-color-background);opacity:.7;z-index:300}.console .app-section{height:90px}.console .confirm{background:var(--config-color-link);color:#fff;border-radius:25px;padding:12px;line-height:28px;text-align:center}.console .confirm .action{font-weight:500;cursor:pointer}.console .platforms{overflow:hidden}.console .platforms .box{overflow:hidden}.console .platforms .box img{width:50px;margin:0 auto;margin-bottom:20px}.console .platforms .box .cover{margin:-30px -30px 30px -30px;padding:30px}.console .platforms .box .cover.android{background:#a4ca24}.console .platforms .box .cover.android h1{color:#fff;font-size:18px;margin-top:20px}.console .platforms .col{text-align:center;line-height:30px}.console .platforms a{display:block;margin:-20px;padding:20px}.console .platforms a:hover{background:#fbfeff}.console .platforms img{display:block;margin:0 30px;width:calc(100% - 60px);border-radius:50%;margin-bottom:20px}.console .document-nav{display:none;position:sticky;top:90px}@media only screen and (min-width:1380px){.console .document-nav{display:block}}.console .document-nav ul{position:absolute;width:200px;right:-260px}.console .document-nav ul li{margin-bottom:20px}.console .document-nav ul li .selected{font-weight:500}@media only screen and (min-width:1199px){.console .logo .top{display:none!important}}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.console>header{width:calc(100% - 30px)!important;margin:0 -30px;padding:15px}.console>header nav{width:100%;height:70px;overflow:hidden}.console>header nav.close{background:0 0}.console>header nav.close .logo .nav{display:none!important}.console>header nav.open{height:100%}.console>header nav.open .logo .top{display:none!important}.console>header nav.open .bottom{display:block!important}.console>header nav.open button{color:#87a5b9}.console>header nav button{margin:9px;background:0 0;color:var(--config-color-normal)}.console>header nav button:focus,.console>header nav button:hover{background:0 0}.console>header nav .logo{display:block!important;position:absolute;top:0;left:50%;margin:auto;transform:translateX(-50%)}.console>header nav .bottom{display:none!important}.console>footer{width:auto;margin:50px -30px 0 -30px!important;padding:0 30px 30px 30px}.console body{height:"calc(100% - 70px)"!important;width:calc(100% - 60px)!important;padding:70px 30px 0 30px!important}.console .cover{padding:25px 30px;margin:0 -30px}}@media only screen and (max-width:550px){.console body{height:"calc(100% - 70px)"!important;width:calc(100% - 40px)!important;padding:70px 20px 0 20px!important}.console .cover{padding:20px 20px;margin:0 -20px}.console>header{margin:0 -20px}.console>header .list{width:175px;font-size:14px}.console>footer{margin:50px -20px 0 -20px!important;padding:0 20px 20px 20px}}.dev-feature{display:none}.prod-feature{display:none}.development .dev-feature{display:block;opacity:.6!important;outline:solid #ff0 3px;outline-offset:3px}.development .dev-feature.dev-inline{display:inline-block}.development .prod-feature{display:none}.production .dev-feature{display:none}.production .prod-feature{display:block}.search{opacity:1!important}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.search button{margin-top:20px}}html.home body{padding:0 50px;color:var(--config-color-normal)}html.home .logo a{display:block}html.home .logo a:hover{opacity:.8}html.home .logo img{max-height:35px;width:198px;margin:45px auto 25px auto}html.home footer{background:0 0;text-align:center}html.home main{min-height:400px}.alerts ul{width:100%;visibility:hidden;position:fixed;padding:0;left:0;right:0;color:var(--config-color-normal);z-index:1001;margin:0 auto;bottom:15px;max-width:560px}.alerts ul li{margin:10px 0 0 0;padding:0}.alerts ul li div.message{position:relative;padding:12px 35px;margin:0 auto;list-style:none;background:var(--config-color-background-dark);text-align:center;font-size:14px;border-radius:10px;line-height:16px;min-height:16px;box-shadow:0 0 10px rgba(0,0,0,.05);opacity:.95}.alerts ul li div.message a,.alerts ul li div.message span{font-weight:600}.alerts ul li div.message a{border-bottom:dotted 1px var(--config-color-normal)}.alerts ul li div.message i{cursor:pointer;position:absolute;font-size:12px;line-height:24px;top:8px;right:8px;color:var(--config-color-background-dark);background:var(--config-color-normal);width:24px;height:24px;border-radius:50%}.alerts ul li div.message.error{color:#fff!important;background:var(--config-color-danger)!important}.alerts ul li div.message.error a{color:#fff!important;border-bottom:dotted 1px #fff!important}.alerts ul li div.message.error i{color:var(--config-color-danger);background:#fff}.alerts ul li div.message.success{color:#fff!important;background:var(--config-color-success)!important}.alerts ul li div.message.success a{color:#fff;border-bottom:dotted 1px #fff}.alerts ul li div.message.success i{color:var(--config-color-success);background:#fff}.alerts ul li div.message.warning{color:var(--config-color-normal)!important;background:var(--config-color-warning)!important}.alerts ul li div.message.warning a{color:var(--config-color-normal)!important;border-bottom:dotted 1px var(--config-color-normal)!important}.alerts ul li div.message.warning i{color:#fff;background:var(--config-color-normal)!important}.alerts ul li div.message.open{display:block}.alerts ul li div.message.close{display:none}.alerts .cookie-alert{background:var(--config-color-focus-fade)!important;color:var(--config-color-focus)}.alerts .cookie-alert a{color:var(--config-color-focus);font-weight:400;border-bottom:dotted 1px var(--config-color-focus)!important}.alerts .cookie-alert i{color:var(--config-color-focus-fade)!important;background:var(--config-color-focus)!important}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.alerts ul{top:auto;bottom:0;max-width:100%;right:0}.alerts ul li{margin:5px 0 0 0}.alerts ul li div.message{border-radius:0}}.show-nav .alerts ul{right:220px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.show-nav .alerts ul{right:0}}article{overflow-wrap:break-word;word-wrap:break-word}article h1{font-size:36px}article h2{font-size:24px}article h3{font-size:20px}article h4{font-size:20px}article h5{font-size:18px}article h6{font-size:16px}article h1,article h2,article h3,article h4,article h5,article h6{margin-top:30px!important;margin-bottom:30px!important}article p{line-height:32px;font-size:16px}article .update{display:block;margin-top:50px!important}article table{width:100%;margin:0;margin-bottom:30px!important;border-radius:0;border-bottom:solid 1px var(--config-border-color)}article table thead td{font-weight:500;padding:5px 15px}article table td,article table th{padding:15px;height:auto}article table td:first-child,article table th:first-child{padding-right:10px}article table td:last-child,article table th:last-child{padding-left:10px}article table td p,article table th p{font-size:inherit;line-height:inherit}article table td p:last-child,article table th p:last-child{margin:0}.avatar-container{position:relative}.avatar-container .corner{position:absolute;bottom:-3px;left:-3px}.avatar{width:60px;height:60px;border-radius:50%;background:var(--config-color-background-focus);display:inline-block;overflow:hidden;box-shadow:0 0 6px rgba(0,0,0,.09);position:relative;z-index:1;opacity:1!important}.avatar.hide{display:none}.avatar:before{width:100%;height:100%;z-index:0}.avatar.inline{display:inline-block;vertical-align:middle}.avatar.trans{background:0 0}.avatar .no-shadow{box-shadow:none}.avatar.xs{width:30px;height:30px}.avatar.xxs{width:20px;height:20px}.avatar.small{width:50px;height:50px}.avatar.big{width:100px;height:100px}.avatar.huge{width:150px;height:150px}.box{position:relative;background:var(--config-color-background-fade);border-radius:10px;border-bottom:none;box-shadow:0 0 3px rgba(0,0,0,.05);display:block;padding:30px}.box.padding-tiny{padding:5px}.box.padding-xs{padding:10px}.box.padding-small{padding:15px}.box.y-scroll{overflow-y:auto}.box.danger{background:var(--config-color-danger);color:#fff}.box.danger .box{color:var(--config-color-normal);background:var(--config-color-background-fade)}.box.danger>.button,.box.danger>button{background:#fff;color:var(--config-color-danger)}.box.note{background:var(--config-note-background)}.box.focus{background:var(--config-color-focus);color:var(--config-color-background-fade)}.box.focus .button,.box.focus button{background:var(--config-color-background-fade);color:var(--config-color-focus)}.box.line{background:0 0;border:solid 1px var(--config-color-background-dark);box-shadow:none}.box.warning{background:var(--config-color-warning);color:#2d2d2d}.box.warning .button,.box.warning button{background:rgba(45,45,45,.8);color:var(--config-color-success)}.box .tabs{border-bottom:solid 1px var(--config-border-color);margin:0 -30px;padding:0 30px!important}.box>footer{margin:0 -30px -30px -30px;padding:15px 30px;background:var(--config-color-background-fade);border:solid 1px var(--config-border-color);border-radius:0 0 10px 10px}.box hr{height:1px;background:var(--config-console-background);border:none;margin:30px -30px}.box .label{position:absolute;top:10px;z-index:2;left:10px}.box.fade-bottom{position:relative;overflow:hidden}.box.fade-bottom:after{content:"";position:absolute;display:block;bottom:15px;width:100%;background:#000;background:linear-gradient(180deg,rgba(0,0,0,0) 0,var(--config-color-background-fade) 80%);height:100px;margin:0 -15px}.box .header{position:static;height:40px;padding:20px 30px 20px 30px;margin-bottom:30px;margin:-30px -30px 20px -30px;background:var(--config-color-background-fade);border-bottom:solid 1px #efefef}.box ul.numbers>li{position:relative;margin-right:30px;margin-left:50px}.box ul.numbers>li hr{margin-right:-60px;margin-left:-80px}.box ul.numbers>li .settings{position:absolute;top:3px;left:-50px}.box ul.numbers>li::after{display:block;width:25px;height:25px;line-height:25px;font-size:13px;font-weight:500;border-radius:50%;background:var(--config-color-focus);color:var(--config-color-background);counter-increment:section;content:counter(section);text-align:center;position:absolute;top:3px;right:-45px}.box .scroll{margin:0 -30px;overflow-y:scroll}.box .scroll table{width:100%;margin:0}.box ul.sortable{counter-reset:section}.box ul.sortable>li [data-move-down].round,.box ul.sortable>li [data-move-up].round,.box ul.sortable>li [data-remove].round{background:var(--config-color-focus);color:var(--config-color-background-fade);width:25px;height:25px;line-height:25px;display:inline-block;text-align:center;padding:0;margin-left:5px}.box ul.sortable>li [data-move-down].round:disabled,.box ul.sortable>li [data-move-up].round:disabled,.box ul.sortable>li [data-remove].round:disabled{display:none}.box ul.sortable>li:first-child [data-move-up]{display:none}.box ul.sortable>li:first-child [data-move-up]:disabled{display:inline-block;background:var(--config-color-background)}.box ul.sortable>li:last-child [data-move-down]{display:none}.box ul.sortable>li:last-child [data-move-down]:disabled{display:inline-block;background:var(--config-color-background)}.box .toggle{position:relative;border-top:1px solid var(--config-console-background);border-bottom:1px solid var(--config-console-background);margin:0 -30px;padding:30px 30px 0 30px;height:65px;overflow:hidden}.box .toggle.list{border-bottom:none}.box .toggle.sorts button.ls-ui-open{width:calc(100% - 100px)}.box .toggle button.ls-ui-open{left:0;position:absolute;top:0;width:100%;height:95px;background:0 0;opacity:.5;border-radius:0}.box .toggle .icon-minus,.box .toggle .icon-up-open{display:none}.box .toggle .content{display:none}.box .toggle.open{height:auto}.box .toggle.open .icon-minus,.box .toggle.open .icon-up-open{display:block}.box .toggle.open .icon-down-open,.box .toggle.open .icon-plus{display:none}.box .toggle.open .content{display:block}.box .list li{border-bottom:solid 2px var(--config-border-color);margin:0 -30px 30px -30px;padding:0 30px 30px 30px}.box .list li:last-child{padding-bottom:0;margin-bottom:0;border-bottom:none}@media only screen and (max-width:550px){.box .list li .actions{float:none}}.box .list li .avatar{display:block}.box .list li .avatar.inline{display:inline-block}.box.new{text-align:center}.box.new i{font-size:80px;line-height:80px;font-family:Poppins,sans-serif;font-style:normal;font-weight:300}.box.new b{margin-top:20px;display:block}.box .info{margin:0 -30px;padding:20px 30px;background:var(--config-modal-note-background);color:var(--config-modal-note-color);border-top:solid 1px var(--config-modal-note-border);border-bottom:solid 1px var(--config-modal-note-border)}.box .info hr{background:var(--config-modal-note-border)!important}.box .table-wrap{margin:0 -30px;overflow-y:scroll}.box .table-wrap table{margin:0}a.box{border-right:none;border-left:none}a.box:hover{box-shadow:0 0 1px rgba(0,0,0,.2);opacity:.7}.box-asidex{padding-left:25px!important;padding-right:70px;left:0;background:#f9f9f9;border-radius:0 10px 10px 0;height:calc(100% - 30px);position:absolute;padding-top:30px}.box-asidex:after{content:"";display:block;position:absolute;height:100%;width:51px;background:#fff;top:0;bottom:0;right:-6px}.cover{background:var(--config-color-focus-fade);padding:30px 50px;margin:0 -50px;position:relative;border-bottom:solid 1px var(--config-border-fade)}.cover .title,.cover h1,.cover h2,.cover h3,.cover h4{color:var(--config-color-focus);font-weight:600;margin-bottom:50px!important;font-size:28px;line-height:42px}.cover .title span,.cover h1 span,.cover h2 span,.cover h3 span,.cover h4 span{font-weight:600}.cover i:before{margin:0!important}.cover p{color:var(--config-color-fade)}.cover .button{color:#fff}.cover .link,.cover a{display:inline-flex;color:var(--config-color-focus);border-left:none;border-right:none;cursor:pointer}.cover .link:hover,.cover a:hover{border-bottom-color:var(--config-color-focus)}.cover .link i,.cover a i{margin-right:.2rem}.console .database .row .col{height:452px}.console .database .row .col:after{width:2px;left:20px}.console .database hr{margin:0 -20px;background:var(--config-color-background);height:1px}.console .database h3{font-size:13px;line-height:20px;height:20px;background-color:var(--config-color-fade-super);margin:-20px -20px 0 -20px;padding:10px 20px;border-bottom:solid 1px var(--config-color-background);font-weight:600}.console .database .empty{height:162px;font-size:12px;text-align:center;margin:50px 0}.console .database .empty h4{font-size:13px;font-weight:600;line-height:120px}.console .database .search{background-color:var(--config-color-fade-super);margin:0 -20px 0 -20px;padding:10px 15px}.console .database .search input{height:40px;background-color:#fff;border-radius:25px;padding-top:0;padding-bottom:0}.console .database .code{height:411px;background:var(--config-color-fade-super);margin:0 -20px -20px -20px;padding:20px;width:calc(100% - 10px)}.console .database .code .ide{overflow:scroll;height:451px;margin:-20px;box-shadow:none;border-radius:0}.console .database .paging{background:var(--config-color-fade-super);margin:0 -20px -20px -20px;padding:20px}.console .database .button{margin:0 -20px;padding:0 20px!important;text-align:inherit;color:var(--config-color-focus);width:100%;font-size:15px;line-height:55px;box-sizing:content-box}.console .database .button i{margin-left:8px}.console .database .button:hover{border:none;background:var(--config-color-focus-fade)}.console .database .items{margin:0 -20px;height:262px;overflow-x:hidden;overflow-y:scroll}.console .database .items form{opacity:0;position:relative}.console .database .items form button{position:absolute;top:0;bottom:0;right:0;left:0;width:100%;height:45px;border-radius:0;cursor:pointer}.console .database .items li{padding:0;margin:0 0;line-height:45px;font-size:15px;padding-right:50px;padding-left:30px;position:relative}.console .database .items li i{position:absolute;display:none;left:10px}.console .database .items li .name{display:inline-block;width:100%;height:28px}.console .database .items li.selected,.console .database .items li:hover{background:#f5f5f5}.console .database .items li.selected i,.console .database .items li:hover i{display:block}.console .database .items li:last-child{border-bottom:none}.events.row{border-bottom:solid 1px var(--config-color-fade-super)}.events.row .col span.text{display:inline-block;width:calc(100% - 28px);word-break:break-all}.events.row .col span.action{float:left;cursor:pointer}.events.row:last-child{border-bottom:none}body>footer{color:var(--config-color-fade);line-height:40px;margin:0 -50px;padding:12px 50px;font-size:13px;width:100%;background:#f1f1f1;position:relative;margin-top:80px!important}body>footer:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}body>footer .logo img{height:22px;padding-top:12px}body>footer a{display:inline-flex;color:var(--config-color-fade);font-size:13px}body>footer a:hover{border-bottom-color:var(--config-color-fade)}body>footer a i{margin-right:.2rem}body>footer ul{display:flex;justify-content:center}body>footer ul:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}body>footer ul li{font-size:13px;float:right;margin-left:20px!important}body>footer .copyright{padding-right:2px}.loader{height:0;direction:ltr;position:fixed;top:0;width:0;margin:0 auto;right:0;opacity:0;z-index:4}.load-start~.loader{width:100%;background:var(--config-color-focus);height:3px;opacity:1;transition:width .3s ease-out,opacity .5s ease-out;-moz-transition:width .3s ease-out,opacity .5s ease-out;-webkit-transition:width .3s ease-out,opacity .5s ease-out;-o-transition:width .3s ease-out,opacity .5s ease-out}.www .load-start~.loader{background:#fff}.load-start>*{opacity:0}.load-end>*{opacity:1;transition:opacity .3s ease-out;-moz-transition:opacity .3s ease-out;-webkit-transition:opacity .3s ease-out;-o-transition:opacity .3s ease-out}[data-ls-if]{display:none}[data-service]{opacity:0}.load-service-start{opacity:0}.load-service-end{opacity:1;transition:opacity .5s ease-out;-moz-transition:opacity .5s ease-out;-webkit-transition:opacity .5s ease-out;-o-transition:opacity .5s ease-out}.load-screen{z-index:100000;position:fixed;height:100%;width:100%;background-color:var(--config-color-background-focus);top:0;right:0}.load-screen.loaded{transition:opacity 1s ease-in-out,top 1s .7s;opacity:0;top:-100%}.load-screen .animation{position:absolute;top:45%;left:50%;transform:translate(-50%,-50%) translateZ(1px);width:140px;height:140px}.load-screen .animation div{box-sizing:border-box;display:block;position:absolute;width:124px;height:124px;margin:10px;border:10px solid var(--config-color-focus);border-radius:50%;animation:animation 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:var(--config-color-focus) transparent transparent transparent}.load-screen .animation div:nth-child(1){animation-delay:-.45s}.load-screen .animation div:nth-child(2){animation-delay:-.3s}.load-screen .animation div:nth-child(3){animation-delay:-.15s}@keyframes animation{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.load-screen img{position:absolute;height:20px;bottom:60px;left:50%;transform:translate(-50%,-50%)}.modal-open .modal-bg,.modal-open body .modal-bg{position:fixed;content:'';display:block;width:100%;height:100%;left:0;right:0;top:0;bottom:0;background:#0c0c0c;opacity:.75;z-index:5}.modal{overflow:auto;display:none;position:fixed;transform:translate3d(0,0,0);width:100%;max-height:90%;max-width:640px;background:var(--config-color-background-fade);z-index:1000;box-shadow:0 0 4px rgba(0,0,0,.25);padding:30px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;box-sizing:border-box;text-align:right;white-space:initial;line-height:normal}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.modal{width:calc(100% - 20px)}}.modal.full{max-width:none;max-height:none;height:100%;border-radius:0;padding:80px 120px}.modal.full h1{font-weight:700}.modal.padding-tiny{padding:5px}.modal.padding-xs{padding:10px}.modal.padding-small{padding:15px}.modal.height-tiny>form{height:100px}.modal.height-small>form{height:220px}.modal.width-small{max-width:400px}.modal.width-medium{max-width:500px}.modal.width-large{max-width:800px}.modal.width-xlarge{max-width:950px}.modal.open{display:block}.modalbutton.close{display:none}.modal.fill{height:95%;max-height:95%;max-width:75%}.modal h1,.modal h2{margin-bottom:25px;margin-top:0;font-size:20px;text-align:right}.modal h1,.modal h2,.modal h3,.modal h4,.modal h5,.modal h6{color:inherit!important;line-height:35px}.modal .main,.modal>form{position:relative;border-top:solid 1px var(--config-border-color);padding:30px 30px 0 30px;margin:0 -30px}.modal .main.strip,.modal>form.strip{border:none;padding:0;margin:0}.modal .separator{margin:20px -30px}.modal .bullets{padding-right:40px}.modal .bullets li{margin-bottom:30px!important}.modal .bullets li:before{position:absolute}.modal .info{margin:0 -30px;padding:20px 30px;background:var(--config-modal-note-background);color:var(--config-modal-note-color);border-top:solid 1px var(--config-modal-note-border);border-bottom:solid 1px var(--config-modal-note-border)}.modal .ide.strech{box-shadow:none;border-radius:0;margin:0 -30px}.modal .ide pre{overflow:auto}.modal .paging form{padding:0;margin:0;border-top:none}.modal.sticky-footer form footer{margin:-30px}.modal.sticky-footer footer{position:sticky;bottom:-30px;background:var(--config-color-background-fade-super);height:50px;z-index:1;padding:30px;box-shadow:0 0 1px rgba(0,0,0,.15)}.modal.sticky-footer footer form{display:inline-block}[data-views-current="0"] .scroll-to,[data-views-current="1"] .scroll-to{opacity:0!important;pointer-events:none}.scroll-to-bottom .scroll-to,.scroll-to-top .scroll-to{opacity:1}.scroll-to{opacity:0;display:block;width:40px;height:40px;line-height:40px;border-radius:50%;position:fixed;transform:translateZ(0);margin:30px;padding:0;bottom:0;font-size:18px;z-index:100000;transition:opacity .15s ease-in-out;left:0}.phases{list-style:none;margin:0;padding:0;position:relative}.phases li{display:none}.phases li .badge{display:none}.phases li li{display:block}.phases li.selected{display:block}.phases .number{display:none}.phases h2,.phases h3,.phases h4,.phases h5,.phases h6{margin:0 0 30px 0;text-align:inherit}.container{position:relative}.container .tabs{height:55px;line-height:55px;list-style:none;padding:0;margin-bottom:50px!important;margin-top:-55px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.container .tabs:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.container .tabs li{position:relative}.container .tabs .badge{background:var(--config-color-focus);color:var(--config-color-background-fade);display:inline-block;border-radius:15px;width:15px;height:15px;margin:10px;line-height:15px;padding:3px;text-align:center;font-weight:500!important;position:absolute;top:-5px;right:-35px;font-size:12px}.container .tabs .selected{font-weight:400;color:var(--config-color-focus);opacity:1}.container .tabs .selected:after{content:"";display:block;height:2px;background:var(--config-color-focus);width:calc(100% + 6px);margin:0 -3px;position:absolute;bottom:0;border-radius:2px}.container .tabs .number{display:none}.container .tabs li{float:right;margin-left:50px;color:var(--config-color-focus);opacity:.9;cursor:pointer}.container .tabs li:focus{outline:0}@media only screen and (max-width:550px){.container .tabs li{margin-left:25px}}.container .icon{display:none}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.container .tabs{width:auto;overflow-x:scroll;overflow-y:hidden;white-space:nowrap}.container .tabs li{display:inline-block;float:none}}.preview-box{display:grid;place-content:center;padding:40px;background:var(--config-color-background-fade);border:1px dashed var(--config-color-background-dark);border-radius:8px}.preview-box-image{display:grid;place-content:center;width:40px;height:40px;margin-inline:auto;background-color:var(--config-color-background-focus);border-radius:50%}.preview-box-text{margin-top:16px;color:var(--config-color-fade)}.upload-box{--p-header-text-color:var(--config-color-background-fade);--p-header-bg-color:var(--config-color-normal);--p-content-text-color:var(--config-color-normal);--p-content-bg-color:var(--config-color-background-fade);--p-border-color:var(--config-modal-note-border);--box-shadow:0 10px 10px rgba(0, 0, 0, 0.05);--border-radius:6px;--transition:0.2s;position:fixed;z-index:1;overflow:hidden;min-width:285px;box-shadow:var(--box-shadow);border-radius:var(--border-radius);font-size:14px;line-height:1}.upload-box *{all:unset;display:revert}.upload-box-header{display:flex;padding:16px;padding-inline-end:21px;color:var(--p-header-text-color);background-color:var(--p-header-bg-color)}.upload-box-header .icon-button{margin-inline-start:16px}.upload-box-title{align-self:center;margin-inline-end:auto;margin-block-end:0}.upload-box-title .amount::before{content:"("}.upload-box-title .amount::after{content:")"}.upload-box-content{background-color:var(--p-content-bg-color);color:var(--p-content-text-color);height:0;overflow:auto;transition:var(--transition)}.upload-box-content.is-open{height:200px}.upload-box-item{display:flex;align-items:center;padding:13px 20px}.upload-box-item .file-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;margin-inline-end:auto;line-height:normal}.upload-box-item .icon-button{align-self:center;margin-inline-start:16px}.upload-box-item .pill{margin-inline-start:8px}.upload-box-item:not(:last-child){border-bottom:solid 1px var(--p-border-color)}@media only screen and (max-width:550px){.upload-box{inset-inline:16px;inset-block-end:20px}}@media only screen and (min-width:551px) and (max-width:1198px),only screen and (min-width:1199px){.upload-box{max-width:285px;inset-inline-end:24px;inset-block-end:24px}}:root .theme-dark .upload-box{--p-header-text-color:#fff;--p-header-bg-color:var(--config-color-background-dark)}.upload-image{--p-upload-image-size:var(--upload-image-size, 40px);--p-upload-bg-color:var(--config-color-fade-super);--p-upload-icon-color:var(--config-color-fade);position:relative;display:grid;place-content:center;flex-shrink:0;width:var(--p-upload-image-size);height:var(--p-upload-image-size);background-color:var(--p-upload-bg-color);color:var(--p-upload-icon-color);border-radius:50%}.upload-image .icon{position:relative;z-index:20}.upload-image .progress{--progress:var(--progress-value, 0);--zero-value:0 0% 0%/0%;position:absolute;z-index:10;inset:0;border-radius:50%;background:radial-gradient(var(--p-upload-bg-color) 0,var(--p-upload-bg-color) 64%,transparent 64.01%,transparent 100%),conic-gradient(hsl(194 66% 50%) 0,hsl(97 66% 50%) calc(var(--progress) * 1%),hsl(var(--zero-value)) calc(var(--progress) * 1%),hsl(var(--zero-value)) 100%)}.upload-image.is-finished .progress{display:none}:root .theme-dark .upload-image{--p-upload-bg-color:var(--config-color-background-dark);--p-upload-icon-color:var(--config-color-focus)}[data-views-current]:not([data-views-current="0"]):not([data-views-current="1"]) .upload-box{margin-right:4rem}.icon-button{--p-icon-button-size:var(--icon-button-size, 20px);width:var(--p-icon-button-size);height:var(--p-icon-button-size);font-size:var(--p-icon-button-size);transition:.2s;line-height:1;text-align:center;flex-shrink:0;cursor:pointer}.icon-button>::before{margin:0}.icon-button.is-open{transform:rotate(180deg)}.icon-button.is-success{color:var(--config-color-success)}.icon-button:focus,.icon-button:hover{background-color:unset}.icon-button:focus-visible{outline:dashed 1px var(--config-color-primary)}.pill{--p-pill-text-color:var(--config-defalut-color-hsl, var(--pill-text-color));color:hsl(var(--p-pill-text-color));background-color:hsl(var(--p-pill-text-color) / .2);display:inline-grid;place-content:center;padding-inline:12px;height:30px;border-radius:15px;font-size:14px;font-weight:500}.pill.is-disabled{--p-pill-text-color:var(--config-disabled-color-hsl)}.pill.is-pending{--p-pill-text-color:var(--config-pending-color-hsl)}.pill.is-failed{--p-pill-text-color:var(--config-failed-color-hsl)}:root .theme-dark .pill.is-failed{color:#ffcfcf;background-color:#b91c1c}.permissions-matrix td:first-child,.permissions-matrix th:first-child{width:35%}.permissions-matrix td:not(:first-child):not(:last-child),.permissions-matrix th:not(:first-child):not(:last-child){text-align:center}.permissions-matrix td:last-child,.permissions-matrix th:last-child{width:10%}.permissions-matrix td{vertical-align:middle}.permissions-matrix input,.permissions-matrix p{margin-bottom:0}.permissions-matrix p{margin-left:15px}.permissions-matrix i{cursor:pointer}html{padding:0;margin:0;direction:rtl}body{margin:0;background:var(--config-console-background) no-repeat fixed;min-width:300px}ul{padding:0;margin:0}ul li{margin:0;list-style:none}.icon-left-open:before{content:'\e814'!important}.icon-right-open:before{content:'\e813'!important}.icon-right-dir:before{content:'\e84e'!important}.icon-left-dir:before{content:'\e84d'!important}.icon-link-ext:before{-moz-transform:scaleX(-1);-o-transform:scaleX(-1);-webkit-transform:scaleX(-1);transform:scaleX(-1)}.icon-article-alt:before{-moz-transform:scaleX(-1);-o-transform:scaleX(-1);-webkit-transform:scaleX(-1);transform:scaleX(-1)}.copy{border-radius:10px 0 0 10px!important}
\ No newline at end of file
+.pull-start{float:right}.pull-end{float:left}img[src=""]{visibility:hidden;display:inline-block}:root{--config-width:910px;--config-width-xxl:1000px;--config-width-xl:910px;--config-width-large:700px;--config-width-medium:550px;--config-width-small:320px;--config-color-primary:#f02e65;--config-color-link:#1e849e;--config-color-background:#eceff1;--config-color-background-dark:#dfe2e4;--config-color-background-fade:#ffffff;--config-color-background-fade-super:#fdfdfd;--config-color-background-focus:#f5f5f5;--config-color-background-input:#ffffff;--config-color-placeholder:#868686;--config-color-tooltip-text:#dce8f5;--config-color-tooltip-background:#333333;--config-color-focus:#f02e65;--config-color-focus-fade:#fef8fa;--config-color-focus-hover:#ff729b;--config-color-focus-glow:#fce5ec;--config-color-focus-dark:#c52653;--config-color-normal:#40404c;--config-color-dark:#313131;--config-color-fade:#8f8f8f;--config-color-fade-dark:#6e6e6e;--config-color-fade-light:#e2e2e2;--config-color-fade-super:#f1f3f5;--config-color-danger:#f53d3d;--config-color-success:#1bbf61;--config-color-warning:#fffbdd;--config-color-info:#386fd2;--config-color-chart:#29b5d9;--config-color-chart-fade:#d4f0f7;--config-border-color:#f3f3f3;--config-border-fade:#e0e3e4;--config-border-fade-super:#f7f7f7;--config-border-radius:10px;--config-prism-background:#373738;--config-prism-numbers:#39393c;--config-note-background:#f1fbff;--config-note-border:#5bceff;--config-warning-background:#fdf7d9;--config-warning-border:#f8e380;--config-social-twitter:#1da1f2;--config-social-github:#000000;--config-social-discord:#7189dc;--config-social-facebook:#4070b4;--config-language-bash:#2b2626;--config-language-bash-contrast:#fff;--config-language-javascript:#fff054;--config-language-javascript-contrast:#333232;--config-language-web:#fff054;--config-language-web-contrast:#333232;--config-language-html:#ff895b;--config-language-html-contrast:#ffffff;--config-language-yaml:#ca3333;--config-language-yaml-contrast:#ffffff;--config-language-php:#6182bb;--config-language-php-contrast:#ffffff;--config-language-nodejs:#8cc500;--config-language-nodejs-contrast:#ffffff;--config-language-ruby:#fc3f48;--config-language-ruby-contrast:#ffffff;--config-language-python:#3873a2;--config-language-python-contrast:#ffffff;--config-language-go:#00add8;--config-language-go-contrast:#ffffff;--config-language-dart:#035698;--config-language-dart-contrast:#ffffff;--config-language-flutter:#035698;--config-language-flutter-contrast:#ffffff;--config-language-android:#a4c439;--config-language-android-contrast:#ffffff;--config-language-kotlin:#766DB2;--config-language-kotlin-contrast:#ffffff;--config-language-swift:#f2624c;--config-language-swift-contrast:#ffffff;--config-language-java:#0074bd;--config-language-java-contrast:#ffffff;--config-modal-note-background:#f5fbff;--config-modal-note-border:#eaf2f7;--config-modal-note-color:#3b5d73;--config-switch-background:#e2e2e2;--config-console-background:#eceff1;--config-console-nav-start:#143650;--config-console-nav-end:#302839;--config-console-nav-border:#2a253a;--config-console-nav-switch-background:#ececec;--config-console-nav-switch-color:#868686;--config-console-nav-switch-arrow:url("data:image/svg+xml;utf8,");--config-defalut-color-hsl:0 0% 62%;--config-disabled-color-hsl:0 0% 62%;--config-pending-color-hsl:36 100% 47%;--config-failed-color-hsl:0 74% 42%}:root .theme-dark{--config-color-primary:#f02e65;--config-color-background:#061F2F;--config-color-background-dark:#262d50;--config-color-background-fade:#1c223a;--config-color-background-fade-super:#1a1f35;--config-color-background-focus:#1a1f35;--config-color-background-input:#dce8f5;--config-color-tooltip-text:#061F2F;--config-color-tooltip-background:#dce8f5;--config-color-link:#4caedb;--config-color-placeholder:#9ea1af;--config-color-focus:#c7d8eb;--config-color-focus-fade:#1e233e;--config-color-focus-hover:#d3deea;--config-color-focus-glow:#d3deea;--config-color-focus-dark:#657586;--config-color-normal:#c7d8eb;--config-color-dark:#c7d8eb;--config-color-fade:#bec3e0;--config-color-fade-dark:#81859b;--config-color-fade-light:#181818;--config-color-fade-super:#262D50;--config-color-danger:#d84a4a;--config-color-success:#34b86d;--config-color-warning:#e0d56d;--config-color-info:#386fd2;--config-color-chart:#29b5d9;--config-color-chart-fade:#c7d8eb;--config-border-color:#262D50;--config-border-fade:#19203a;--config-border-fade-super:#262D50;--config-prism-background:#1F253F;--config-prism-numbers:#1F253F;--config-note-background:#171e33;--config-note-border:#262D50;--config-warning-background:#1F253F;--config-warning-border:#262D50;--config-social-twitter:var(--config-color-normal);--config-social-github:var(--config-color-normal);--config-social-discord:var(--config-color-normal);--config-social-facebook:var(--config-color-normal);--config-language-bash:var(--config-color-normal);--config-language-bash-contrast:var(--config-color-background);--config-language-javascript:var(--config-color-normal);--config-language-javascript-contrast:var(--config-color-background);--config-language-web:var(--config-color-normal);--config-language-web-contrast:var(--config-color-background);--config-language-yaml:var(--config-color-normal);--config-language-yaml-contrast:var(--config-color-background);--config-language-html:var(--config-color-normal);--config-language-html-contrast:var(--config-color-background);--config-language-php:var(--config-color-normal);--config-language-php-contrast:var(--config-color-background);--config-language-nodejs:var(--config-color-normal);--config-language-nodejs-contrast:var(--config-color-background);--config-language-ruby:var(--config-color-normal);--config-language-ruby-contrast:var(--config-color-background);--config-language-python:var(--config-color-normal);--config-language-python-contrast:var(--config-color-background);--config-language-go:var(--config-color-normal);--config-language-go-contrast:var(--config-color-background);--config-language-dart:var(--config-color-normal);--config-language-dart-contrast:var(--config-color-background);--config-language-flutter:var(--config-color-normal);--config-language-flutter-contrast:var(--config-color-background);--config-language-android:var(--config-color-normal);--config-language-android-contrast:var(--config-color-background);--config-language-kotlin:var(--config-color-normal);--config-language-kotlin-contrast:var(--config-color-background);--config-language-swift:var(--config-color-normal);--config-language-swift-contrast:var(--config-color-background);--config-language-java:var(--config-color-normal);--config-language-java-contrast:var(--config-color-background);--config-modal-note-background:#15192b;--config-modal-note-border:#161b31;--config-modal-note-color:var(--config-color-normal);--config-switch-background:var(--config-color-normal);--config-console-background:#20263f;--config-console-nav-start:#1c2139;--config-console-nav-end:#151929;--config-console-nav-border:#171b30;--config-console-nav-switch-background:var(--config-color-focus);--config-console-nav-switch-color:var(--config-color-background);--config-console-nav-switch-arrow:url("data:image/svg+xml;utf8,")}.theme-light .force-light{display:block!important}.theme-dark .force-dark{display:block!important}.force-dark{display:none!important}.force-light{display:none!important}@font-face{font-family:Poppins;font-style:normal;font-weight:100;src:url(/fonts/poppins-v9-latin-100.eot);src:local('Poppins Thin'),local('Poppins-Thin'),url(/fonts/poppins-v9-latin-100.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-100.woff2) format('woff2'),url(/fonts/poppins-v9-latin-100.woff) format('woff'),url(/fonts/poppins-v9-latin-100.ttf) format('truetype'),url(/fonts/poppins-v9-latin-100.svg#Poppins) format('svg')}@font-face{font-family:Poppins;font-style:normal;font-weight:300;src:url(/fonts/poppins-v9-latin-300.eot);src:local('Poppins Light'),local('Poppins-Light'),url(/fonts/poppins-v9-latin-300.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-300.woff2) format('woff2'),url(/fonts/poppins-v9-latin-300.woff) format('woff'),url(/fonts/poppins-v9-latin-300.ttf) format('truetype'),url(/fonts/poppins-v9-latin-300.svg#Poppins) format('svg')}@font-face{font-family:Poppins;font-style:normal;font-weight:400;src:url(/fonts/poppins-v9-latin-regular.eot);src:local('Poppins Regular'),local('Poppins-Regular'),url(/fonts/poppins-v9-latin-regular.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-regular.woff2) format('woff2'),url(/fonts/poppins-v9-latin-regular.woff) format('woff'),url(/fonts/poppins-v9-latin-regular.ttf) format('truetype'),url(/fonts/poppins-v9-latin-regular.svg#Poppins) format('svg')}@font-face{font-family:Poppins;font-style:normal;font-weight:500;src:url(/fonts/poppins-v9-latin-500.eot);src:local('Poppins Medium'),local('Poppins-Medium'),url(/fonts/poppins-v9-latin-500.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-500.woff2) format('woff2'),url(/fonts/poppins-v9-latin-500.woff) format('woff'),url(/fonts/poppins-v9-latin-500.ttf) format('truetype'),url(/fonts/poppins-v9-latin-500.svg#Poppins) format('svg')}@font-face{font-family:Poppins;font-style:normal;font-weight:600;src:url(/fonts/poppins-v9-latin-600.eot);src:local('Poppins SemiBold'),local('Poppins-SemiBold'),url(/fonts/poppins-v9-latin-600.eot?#iefix) format('embedded-opentype'),url(/fonts/poppins-v9-latin-600.woff2) format('woff2'),url(/fonts/poppins-v9-latin-600.woff) format('woff'),url(/fonts/poppins-v9-latin-600.ttf) format('truetype'),url(/fonts/poppins-v9-latin-600.svg#Poppins) format('svg')}@font-face{font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url(/fonts/source-code-pro-v11-latin-regular.eot);src:local('Source Code Pro Regular'),local('SourceCodePro-Regular'),url(/fonts/source-code-pro-v11-latin-regular.eot?#iefix) format('embedded-opentype'),url(/fonts/source-code-pro-v11-latin-regular.woff2) format('woff2'),url(/fonts/source-code-pro-v11-latin-regular.woff) format('woff'),url(/fonts/source-code-pro-v11-latin-regular.ttf) format('truetype'),url(/fonts/source-code-pro-v11-latin-regular.svg#SourceCodePro) format('svg')}.padding{padding:30px}.padding-top{padding-top:30px!important}.padding-top-large{padding-top:50px!important}.padding-top-xl{padding-top:80px!important}.padding-bottom{padding-bottom:30px!important}.padding-bottom-large{padding-bottom:50px!important}.padding-bottom-xl{padding-bottom:80px!important}.margin-end{margin-left:20px!important}.margin-start{margin-right:20px!important}.margin-end-small{margin-left:10px!important}.margin-start-small{margin-right:10px!important}.margin-end-large{margin-left:50px!important}.margin-start-large{margin-right:50px!important}.margin-end-no{margin-left:0!important}.margin-start-no{margin-right:0!important}.margin-end-negative{margin-left:-30px!important}.margin-start-negative{margin-right:-30px!important}.margin-end-negative-small{margin-left:-15px!important}.margin-start-negative-small{margin-right:-15px!important}.margin-end-negative-tiny{margin-left:-5px!important}.margin-start-negative-tiny{margin-right:-5px!important}.margin-top{margin-top:30px!important}.margin-bottom{margin-bottom:30px!important}.margin-top-no{margin-top:0!important}.margin-bottom-no{margin-bottom:0!important}.margin-top-xxl{margin-top:140px!important}.margin-top-xl{margin-top:80px!important}.margin-top-large{margin-top:50px!important}.margin-top-small{margin-top:15px!important}.margin-top-tiny{margin-top:5px!important}.margin-top-negative{margin-top:-30px!important}.margin-top-negative-tiny{margin-top:-5px!important}.margin-top-negative-small{margin-top:-15px!important}.margin-top-negative-large{margin-top:-50px!important}.margin-top-negative-xl{margin-top:-80px!important}.margin-top-negative-xxl{margin-top:-100px!important}.margin-top-negative-xxxl{margin-top:-150px!important}.margin-bottom-xxl{margin-bottom:140px!important}.margin-bottom-xl{margin-bottom:80px!important}.margin-bottom-large{margin-bottom:50px!important}.margin-bottom-small{margin-bottom:15px!important}.margin-bottom-tiny{margin-bottom:5px!important}.margin-bottom-negative{margin-bottom:-30px!important}.margin-bottom-negative-tiny{margin-bottom:-5px!important}.margin-bottom-negative-small{margin-bottom:-15px!important}.margin-bottom-negative-large{margin-bottom:-50px!important}.margin-bottom-negative-xl{margin-bottom:-80px!important}.margin-bottom-negative-xl{margin-bottom:-100px!important}.force-left,.ide{direction:ltr;text-align:left}.force-right{direction:rtl;text-align:right}.pull-left{float:left}.pull-right{float:right}.ratio-wide{height:0;overflow:hidden;padding-top:56%;position:relative;width:100%}.ratio-wide>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-square{height:0;overflow:hidden;padding-top:56%;position:relative;width:100%}.ratio-square>*{position:absolute;top:0;left:0;width:100%;height:100%}.clear:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.phones-only{display:none}@media only screen and (max-width:550px){.phones-only{display:inherit!important}}.tablets-only{display:none}@media only screen and (min-width:551px) and (max-width:1198px){.tablets-only{display:inherit!important}}.desktops-only{display:none}@media only screen and (min-width:1199px){.desktops-only{display:inherit!important}}.phones-only-inline{display:none}@media only screen and (max-width:550px){.phones-only-inline{display:inline-block!important}}.tablets-only-inline{display:none}@media only screen and (min-width:551px) and (max-width:1198px){.tablets-only-inline{display:inline-block!important}}.desktops-only-inline{display:none}@media only screen and (min-width:1199px){.desktops-only-inline{display:inline-block!important}}*{font-family:Poppins,sans-serif;-webkit-font-smoothing:antialiased;font-weight:300}h1,h2,h3,h4,h5,h6{margin:0}h4,h5,h6{font-weight:400}.link,a{color:var(--config-color-link);text-decoration:none;border-left:2px solid transparent;border-right:2px solid transparent;transition:.2s;cursor:pointer}.link.disabled,a.disabled{opacity:.5}.link.tag:hover,a.tag:hover{opacity:.9}.link.danger,a.danger{color:var(--config-color-danger)}.link.link-animation-enabled,a.link-animation-enabled{display:inline-flex}.link.link-animation-enabled:hover,a.link-animation-enabled:hover{transform:translateY(-2px)}.link-return-animation--start>i{display:inline-block;transition:.2s}.link-return-animation--start:hover>i{transform:translateX(2px)}.link-return-animation--end>i{display:inline-block;transition:.2s}.link-return-animation--end:hover>i{transform:translateX(-2px)}b,strong{font-weight:500}p{margin:0 0 20px 0;line-height:26px}small{font-size:16px;color:var(--config-color-fade)}.text-size-small{font-size:13px}.text-size-smaller{font-size:11.5px}.text-size-xs{font-size:10px}.text-size-normal{font-size:16px}.text-height-large{height:30px;line-height:30px}.text-height-small{line-height:13px}.text-one-liner{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text-bold{font-weight:400!important}.text-bold-large{font-weight:500!important}.text-bold-xl{font-weight:600!important}.text-danger{color:var(--config-color-danger)!important}.text-success{color:var(--config-color-success)!important}.text-upper{text-transform:uppercase}.text-warning{color:var(--config-color-warning)}.text-focus{color:var(--config-color-focus)}.text-fade{color:var(--config-color-fade)}.text-fade-dark{color:var(--config-color-fade-dark)}.text-green{color:var(--config-color-success)}.text-red{color:var(--config-color-danger)}.text-info{color:var(--config-color-info)}.text-yellow{color:#ffe28b}.text-disclaimer{font-size:11px;color:var(--config-color-fade)}.text-fade-extra{color:var(--config-color-fade);opacity:.5}.text-line-high-large{line-height:30px}.text-line-high-xl{line-height:40px}.text-sign{margin:5px 0;font-size:25px;width:25px;height:25px;line-height:25px;display:inline-block}.text-align-center{text-align:center}.text-align-start{text-align:right}.text-align-end{text-align:left}.text-align-left{text-align:left}.text-align-right{text-align:right}.text-dir-ltr{direction:ltr;display:inline-block}.text-dir-rtl{direction:rtl;display:inline-block}i[class*=' icon-']:before,i[class^=icon-]:before{display:inline;line-height:unset}table{width:calc(100% + 60px);border-collapse:collapse;margin:-30px;border-radius:10px;overflow:hidden;position:relative;table-layout:fixed}table.y-scroll{overflow-y:auto}table.multi-line tbody td,table.multi-line thead th{line-height:inherit;text-overflow:inherit;white-space:inherit}table.borders td,table.borders th{border-left:solid 1px var(--config-border-fade-super)}table.borders td:last-child,table.borders th:last-child{border:none}table thead{border-bottom:solid 1px var(--config-color-fade-super);font-size:14px}table.small{font-size:14px}table.open-end tbody tr:last-child{border-bottom:none;font-weight:700;background:#f7fbf7}table.full tbody td,table.full tbody th{vertical-align:top;white-space:normal;overflow:auto;line-height:24px;padding-top:20px;padding-bottom:20px;height:auto}table .avatar{width:30px;height:30px}table tr{border-bottom:solid 1px var(--config-color-fade-super)}table tr:last-child{border-bottom:none}table tr:last-child td:first-child{border-bottom-left-radius:6px}table tr:last-child td:last-child{border-bottom-right-radius:6px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){table tr:nth-child(even){background:var(--config-color-background-fade-super)}}@media only screen and (min-width:1199px){table tr:nth-child(even) td{background:var(--config-color-background-fade-super)}}table tr.selected{background:var(--config-note-background)}table tr.selected td,table tr.selected td span{font-weight:500}table th{text-align:right;font-weight:400}table th i{color:var(--config-color-fade);font-size:10px;display:inline-block;vertical-align:top;line-height:16px;padding:0 3px}table td,table th{height:65px;padding:0 15px;line-height:50px}table td:first-child,table th:first-child{padding-right:30px}table td,table th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){table.vertical{border-top:solid 1px var(--config-color-fade-super);display:block;overflow:hidden;padding-top:12px}table.vertical .hide{display:none}table.vertical tbody,table.vertical td,table.vertical th,table.vertical thead,table.vertical tr{width:100%;display:block}table.vertical tr{position:relative}table.vertical th,table.vertical tr{padding-top:12px;padding-bottom:12px}table.vertical th:first-child,table.vertical tr:first-child{padding-top:0}table.vertical td,table.vertical th{padding:5px 20px!important;text-overflow:ellipsis;white-space:normal;height:40px;line-height:40px;width:calc(100% - 40px)}table.vertical td.col-name,table.vertical th.col-name{width:calc(100% - 110px)}table.vertical td:first-child,table.vertical td:last-child,table.vertical th:first-child,table.vertical th:last-child{padding:0 10px}table.vertical td:last-child,table.vertical th:last-child{padding-bottom:0}table.vertical td p,table.vertical th p{display:inline-block;width:calc(100% - 40px)}table.vertical td:not([data-title=""]):before{content:attr(data-title);margin-right:4px;font-weight:400}table.vertical thead{display:none}table.vertical .cell-options-more{position:absolute;inset-block-start:0;inset-inline-end:0;width:auto}}table .trim-inner-text{display:inline-flex;align-items:center;gap:8px}@media only screen and (min-width:1199px){table .trim-inner-text{width:100%}}table .cell-options-more button{padding:0 12px;background-color:transparent;color:var(--config-color-fade)}table .cell-options-more button:focus-visible{outline:solid 1px var(--config-color-focus)}.zone{max-width:var(--config-width-xl);margin:0 auto 40px auto}.zone.xxxl{max-width:calc(1400px - 100px)}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.zone.xxxl{max-width:100%}}.zone.xxl{max-width:var(--config-width-xxl)}.zone.xl{max-width:var(--config-width-xl)}.zone.large{max-width:var(--config-width-large)}.zone.medium{max-width:var(--config-width-medium)}.zone.small{max-width:var(--config-width-small)}.row{position:relative;margin:0 -50px;padding-right:50px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.row{margin:0 -30px;padding-right:30px}}.row.force-ltr>.col{float:left}.row.force-rtl>.col{float:right}.row.force-reverse>.col{float:left}.row.wide{margin:0 -100px;padding-right:100px}.row.wide>.span-1{width:calc(8.33333333% * 1 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-2{width:calc(8.33333333% * 2 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-3{width:calc(8.33333333% * 3 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-4{width:calc(8.33333333% * 4 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-5{width:calc(8.33333333% * 5 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-6{width:calc(8.33333333% * 6 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-7{width:calc(8.33333333% * 7 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-8{width:calc(8.33333333% * 8 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-9{width:calc(8.33333333% * 9 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-10{width:calc(8.33333333% * 10 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-11{width:calc(8.33333333% * 11 - 100px);box-sizing:content-box;padding-left:100px}.row.wide>.span-12{width:calc(8.33333333% * 12 - 100px);box-sizing:content-box;padding-left:100px}.row.thin{margin:0 -20px;padding-right:20px}.row.thin>.span-1{width:calc(8.33333333% * 1 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-2{width:calc(8.33333333% * 2 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-3{width:calc(8.33333333% * 3 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-4{width:calc(8.33333333% * 4 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-5{width:calc(8.33333333% * 5 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-6{width:calc(8.33333333% * 6 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-7{width:calc(8.33333333% * 7 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-8{width:calc(8.33333333% * 8 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-9{width:calc(8.33333333% * 9 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-10{width:calc(8.33333333% * 10 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-11{width:calc(8.33333333% * 11 - 20px);box-sizing:content-box;padding-left:20px}.row.thin>.span-12{width:calc(8.33333333% * 12 - 20px);box-sizing:content-box;padding-left:20px}.row.modalize{margin:0 -30px;padding-right:30px}.row.modalize>.span-1{width:calc(8.33333333% * 1 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-2{width:calc(8.33333333% * 2 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-3{width:calc(8.33333333% * 3 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-4{width:calc(8.33333333% * 4 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-5{width:calc(8.33333333% * 5 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-6{width:calc(8.33333333% * 6 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-7{width:calc(8.33333333% * 7 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-8{width:calc(8.33333333% * 8 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-9{width:calc(8.33333333% * 9 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-10{width:calc(8.33333333% * 10 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-11{width:calc(8.33333333% * 11 - 30px);box-sizing:content-box;padding-left:30px}.row.modalize>.span-12{width:calc(8.33333333% * 12 - 30px);box-sizing:content-box;padding-left:30px}.row:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.row .col{float:right;box-sizing:border-box}.row .col.sticky-top{position:sticky;top:90px}.row .col.sticky-bottom{position:sticky;bottom:0}.row .span-1{width:calc(8.33333333% * 1 - 40px);box-sizing:content-box;padding-left:40px}.row .span-2{width:calc(8.33333333% * 2 - 40px);box-sizing:content-box;padding-left:40px}.row .span-3{width:calc(8.33333333% * 3 - 40px);box-sizing:content-box;padding-left:40px}.row .span-4{width:calc(8.33333333% * 4 - 40px);box-sizing:content-box;padding-left:40px}.row .span-5{width:calc(8.33333333% * 5 - 40px);box-sizing:content-box;padding-left:40px}.row .span-6{width:calc(8.33333333% * 6 - 40px);box-sizing:content-box;padding-left:40px}.row .span-7{width:calc(8.33333333% * 7 - 40px);box-sizing:content-box;padding-left:40px}.row .span-8{width:calc(8.33333333% * 8 - 40px);box-sizing:content-box;padding-left:40px}.row .span-9{width:calc(8.33333333% * 9 - 40px);box-sizing:content-box;padding-left:40px}.row .span-10{width:calc(8.33333333% * 10 - 40px);box-sizing:content-box;padding-left:40px}.row .span-11{width:calc(8.33333333% * 11 - 40px);box-sizing:content-box;padding-left:40px}.row .span-12{width:calc(8.33333333% * 12 - 40px);box-sizing:content-box;padding-left:40px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.row.responsive{width:100%;padding:0;margin:0}.row.responsive>.span-1,.row.responsive>.span-10,.row.responsive>.span-11,.row.responsive>.span-12,.row.responsive>.span-2,.row.responsive>.span-3,.row.responsive>.span-4,.row.responsive>.span-5,.row.responsive>.span-6,.row.responsive>.span-7,.row.responsive>.span-8,.row.responsive>.span-9{width:calc(8.33333333% * 12 - 0px)!important;box-sizing:content-box!important;padding-left:0!important;width:100%!important}}.tiles{position:relative}.tiles:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.tiles .box hr{margin:15px -15px}.tiles>*{margin-left:50px!important;float:right;width:calc(33.3333% - 33.3333px)}.tiles>* .photo-title{width:calc(100% + 30px);height:15px;margin:-15px -15px 10px -15px;border-radius:10px 10px 0 0;background:var(--config-color-fade-super);border-bottom:solid 1px var(--config-color-fade-super)}.tiles>:nth-child(3n){margin-left:0!important}@media only screen and (min-width:551px) and (max-width:1198px){.tiles>li{width:calc(50% - 25px)}.tiles>li:nth-child(3n){margin-left:50px!important}.tiles>li:nth-child(2n){margin-left:0!important}}@media only screen and (max-width:550px){.tiles>li{width:100%;margin-left:0!important}}@font-face{font-family:icon;src:url(/fonts/icon.eot?t=1650537780691);src:url(/fonts/icon.eot?t=1650537780691#iefix) format('embedded-opentype'),url(/fonts/icon.woff2?t=1650537780691) format("woff2"),url(/fonts/icon.woff?t=1650537780691) format("woff"),url(/fonts/icon.ttf?t=1650537780691) format('truetype'),url(/fonts/icon.svg?t=1650537780691#icon) format('svg');font-weight:400;font-style:normal}[class*=" icon-"]:before,[class^=icon-]:before{font-family:icon!important;font-style:normal;font-weight:400;speak:never;vertical-align:middle;display:inline-block;text-decoration:inherit;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-angle-circled-left:before{content:"\ea01"}.icon-angle-circled-right:before{content:"\ea02"}.icon-archive:before{content:"\ea03"}.icon-article:before{content:"\ea04"}.icon-asterisk:before{content:"\ea05"}.icon-bank:before{content:"\ea06"}.icon-bell:before{content:"\ea07"}.icon-binoculars:before{content:"\ea08"}.icon-bitbucket:before{content:"\ea09"}.icon-bold:before{content:"\ea0a"}.icon-book-open:before{content:"\ea0b"}.icon-boolean:before{content:"\ea0c"}.icon-briefcase:before{content:"\ea0d"}.icon-building-filled:before{content:"\ea0e"}.icon-datetime:before{content:"\ea0f"}.icon-calendar:before{content:"\ea0f"}.icon-cancel-circled:before{content:"\ea10"}.icon-cancel:before{content:"\ea11"}.icon-chart-area:before{content:"\ea12"}.icon-chat-alt:before{content:"\ea13"}.icon-check:before{content:"\ea14"}.icon-chevron-down:before{content:"\ea15"}.icon-clock:before{content:"\ea16"}.icon-code:before{content:"\ea17"}.icon-cog:before{content:"\ea18"}.icon-comment:before{content:"\ea19"}.icon-database:before{content:"\ea1a"}.icon-dev:before{content:"\ea1b"}.icon-discord:before{content:"\ea1c"}.icon-docs:before{content:"\ea1d"}.icon-dot-3:before{content:"\ea1e"}.icon-dot-circled:before{content:"\ea1f"}.icon-double:before{content:"\ea20"}.icon-down-dir:before{content:"\ea21"}.icon-down-open:before{content:"\ea22"}.icon-download:before{content:"\ea23"}.icon-edit:before{content:"\ea24"}.icon-email:before{content:"\ea25"}.icon-enum:before{content:"\ea26"}.icon-export:before{content:"\ea27"}.icon-eye:before{content:"\ea28"}.icon-facebook:before{content:"\ea29"}.icon-file:before{content:"\ea2a"}.icon-film:before{content:"\ea2b"}.icon-filter:before{content:"\ea2c"}.icon-fire:before{content:"\ea2d"}.icon-float:before{content:"\ea2e"}.icon-folder:before{content:"\ea2f"}.icon-github:before{content:"\ea30"}.icon-gitlab:before{content:"\ea31"}.icon-glasses:before{content:"\ea32"}.icon-google:before{content:"\ea33"}.icon-hackernews:before{content:"\ea34"}.icon-header:before{content:"\ea35"}.icon-heart:before{content:"\ea36"}.icon-home:before{content:"\ea37"}.icon-image:before{content:"\ea38"}.icon-inbox:before{content:"\ea39"}.icon-info-circled:before{content:"\ea3a"}.icon-instagram:before{content:"\ea3b"}.icon-integer:before{content:"\ea3c"}.icon-ip:before{content:"\ea3d"}.icon-italic:before{content:"\ea3e"}.icon-key-inv:before{content:"\ea3f"}.icon-key:before{content:"\ea40"}.icon-keyboard:before{content:"\ea41"}.icon-lamp:before{content:"\ea42"}.icon-left-dir:before{content:"\ea43"}.icon-left-open:before{content:"\ea44"}.icon-lifebuoy:before{content:"\ea45"}.icon-lightning:before{content:"\ea46"}.icon-link-ext:before{content:"\ea47"}.icon-link:before{content:"\ea48"}.icon-linkedin:before{content:"\ea49"}.icon-list-bullet:before{content:"\ea4a"}.icon-list-numbered:before{content:"\ea4b"}.icon-list:before{content:"\ea4c"}.icon-location:before{content:"\ea4d"}.icon-lock:before{content:"\ea4e"}.icon-login:before{content:"\ea4f"}.icon-mail:before{content:"\ea50"}.icon-medium:before{content:"\ea51"}.icon-menu:before{content:"\ea52"}.icon-minus:before{content:"\ea53"}.icon-moon-inv:before{content:"\ea54"}.icon-moon:before{content:"\ea55"}.icon-more:before{content:"\ea56"}.icon-network:before{content:"\ea57"}.icon-ok-circled:before{content:"\ea58"}.icon-ok:before{content:"\ea59"}.icon-palette:before{content:"\ea5a"}.icon-pause:before{content:"\ea5b"}.icon-phone:before{content:"\ea5c"}.icon-photograph:before{content:"\ea5d"}.icon-picture:before{content:"\ea5e"}.icon-pinterest:before{content:"\ea5f"}.icon-play:before{content:"\ea60"}.icon-plus:before{content:"\ea61"}.icon-qrcode:before{content:"\ea62"}.icon-question:before{content:"\ea63"}.icon-quote-right:before{content:"\ea64"}.icon-random:before{content:"\ea65"}.icon-reddit:before{content:"\ea66"}.icon-refresh:before{content:"\ea67"}.icon-right-dir:before{content:"\ea68"}.icon-right-open:before{content:"\ea69"}.icon-rocket:before{content:"\ea6a"}.icon-search:before{content:"\ea6b"}.icon-shield:before{content:"\ea6c"}.icon-shuffle:before{content:"\ea6d"}.icon-smile-o:before{content:"\ea6e"}.icon-sort:before{content:"\ea6f"}.icon-stackoverflow:before{content:"\ea70"}.icon-stopwatch:before{content:"\ea71"}.icon-string:before{content:"\ea72"}.icon-sun-inv:before{content:"\ea73"}.icon-telegram:before{content:"\ea74"}.icon-trash-2:before{content:"\ea75"}.icon-trash:before{content:"\ea76"}.icon-twitter:before{content:"\ea77"}.icon-underline:before{content:"\ea78"}.icon-up-dir:before{content:"\ea79"}.icon-up-open:before{content:"\ea7a"}.icon-upload:before{content:"\ea7b"}.icon-url:before{content:"\ea7c"}.icon-user:before{content:"\ea7d"}.icon-users:before{content:"\ea7e"}.icon-videocam:before{content:"\ea7f"}.icon-warning:before{content:"\ea80"}.icon-whatsapp:before{content:"\ea81"}.icon-wheelchair:before{content:"\ea82"}.icon-windows:before{content:"\ea83"}.icon-wrench:before{content:"\ea84"}.icon-x:before{content:"\ea85"}.icon-youtube-play:before{content:"\ea86"}.datalist-polyfill{list-style:none;display:none;background:#fff;box-shadow:0 2px 2px #999;position:absolute;left:0;top:0;margin:0;padding:0;max-height:300px;overflow-y:auto}.datalist-polyfill:empty{display:none!important}.datalist-polyfill>li{padding:3px;font:13px "Lucida Grande",Sans-Serif}.datalist-polyfill__active{background:#3875d7;color:#fff}date-input-polyfill{z-index:1000!important;max-width:320px!important;width:320px!important}date-input-polyfill .monthSelect-wrapper,date-input-polyfill .yearSelect-wrapper{height:50px;line-height:50px;padding:0;width:40%!important;margin-bottom:10px!important}date-input-polyfill .monthSelect-wrapper select,date-input-polyfill .yearSelect-wrapper select{padding:0 12px;height:50px;line-height:50px;box-sizing:border-box}date-input-polyfill .yearSelect-wrapper{width:35%!important}date-input-polyfill table{width:100%!important;max-width:100%!important;padding:0 12px 12px 12px!important;box-sizing:border-box;margin:0}date-input-polyfill table td:first-child,date-input-polyfill table td:last-child,date-input-polyfill table th:first-child,date-input-polyfill table th:last-child{width:32px!important;padding:4px!important}date-input-polyfill select{margin-bottom:10px}date-input-polyfill button{width:25%!important;height:50px!important;line-height:50px!important;margin-bottom:10px!important;background:inherit;position:relative;color:inherit;padding:inherit;box-sizing:inherit;border-radius:inherit;font-size:inherit;box-shadow:none;border:none;border-bottom:none!important}::placeholder{color:var(--config-color-placeholder);text-align:right}::-webkit-input-placeholder{text-align:right}input:-moz-placeholder{text-align:right}form.inline{display:inline-block}input,textarea{background:var(--config-color-background-input)}input[type=file],input[type=file]::-webkit-file-upload-button{cursor:pointer}.button,button{display:inline-block;background:var(--config-color-focus);border-radius:26px;border:none;color:var(--config-color-background-fade);height:52px;line-height:52px;padding:0 25px;cursor:pointer;font-size:16px;box-sizing:border-box;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.button:focus,.button:hover,button:focus,button:hover{background:var(--config-color-focus-hover)}.button.fly,button.fly{position:fixed;z-index:2;bottom:30px;left:30px}@media only screen and (max-width:550px){.button.fly,button.fly{left:15px}}.button.fill,button.fill{display:block;width:100%;text-align:center;padding:0 10px!important}.button.fill-aligned,button.fill-aligned{display:block;width:100%;text-align:right;padding:0 20px!important}.button.icon,button.icon{padding-left:30px!important}.button.icon-reduce,button.icon-reduce{padding-right:15px!important}.button.reverse,button.reverse{background:0 0;height:50px;line-height:48px;padding:0 23px;color:var(--config-color-focus);border:solid 2px var(--config-color-focus)}.button.reverse:focus,.button.reverse:hover,button.reverse:focus,button.reverse:hover{color:var(--config-color-focus-hover);border-color:var(--config-color-focus-hover)}.button.small,button.small{padding:0 15px;height:40px;line-height:36px;font-size:13px}.button.tick,button.tick{background:var(--config-color-fade-light);color:var(--config-color-dark);border-radius:20px;padding:0 10px;line-height:30px;height:30px;font-size:12px;display:inline-block}.button.tick.selected,button.tick.selected{background:var(--config-color-dark);color:var(--config-color-fade)}.button.round,button.round{width:52px;padding:0}.button.round.small,button.round.small{font-size:12px;width:30px;height:30px;line-height:30px}.button.white,button.white{background:#fff;color:var(--config-color-focus)}.button.white.reverse,button.white.reverse{color:#fff;background:0 0;border:solid 2px #fff}.button.trans,button.trans{background:0 0!important}.button.trans.reverse,button.trans.reverse{background:0 0!important}.button.success,button.success{background:var(--config-color-success)}.button.success.reverse,button.success.reverse{color:var(--config-color-success);background:#fff;border:solid 2px var(--config-color-success)}.button.danger,button.danger{background:var(--config-color-danger);color:#fff}.button.danger.reverse,button.danger.reverse{color:var(--config-color-danger);background:var(--config-color-background-fade);border:solid 2px var(--config-color-danger)}.button.dark,button.dark{background:var(--config-color-dark);color:var(--config-color-background-fade)}.button.dark.reverse,button.dark.reverse{color:var(--config-color-dark);background:var(--config-color-background-fade);border:solid 2px var(--config-color-dark)}.button .disabled,.button.disabled,.button:disabled,button .disabled,button.disabled,button:disabled{color:var(--config-color-normal);background:var(--config-color-background-dark);opacity:.6;cursor:default}.button.link,button.link{background:0 0;border-radius:0;color:var(--config-color-link);height:auto;line-height:normal;padding:0;padding-left:0!important}.button.link:focus,button.link:focus{box-shadow:inherit}.button.strip,button.strip{background:0 0;height:auto;line-height:16px;color:inherit;padding:0 5px}.button.facebook,button.facebook{color:#fff!important;background:#4070b4!important}.button.twitter,button.twitter{color:#fff!important;background:#56c2ea!important}.button.linkedin,button.linkedin{color:#fff!important;background:#0076b5!important}.button.github,button.github{color:#fff!important;background:#7e7c7c!important}.button:focus,button:focus{outline:0}button.close{width:30px;height:30px;line-height:30px;padding:0;margin:0;background:var(--config-color-normal);color:var(--config-color-background-fade);border-radius:50%}button.close .icon-cancel::before{line-height:1}button.close.is-margin-top-10{margin-top:10px}label{margin-bottom:15px;display:block;line-height:normal}label.inline{display:inline}.input,input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=url],select,textarea{-webkit-appearance:none;-moz-appearance:none;-webkit-transform:translateZ(0);box-sizing:content-box;color:#313131;height:40px;line-height:40px;border:solid 1px var(--config-color-fade-light);border-radius:10px;padding:5px 15px;font-size:16px;display:block;width:calc(100% - 32px);margin-bottom:30px}.input[type=file],input[type=date][type=file],input[type=datetime-local][type=file],input[type=email][type=file],input[type=file][type=file],input[type=number][type=file],input[type=password][type=file],input[type=search][type=file],input[type=tel][type=file],input[type=text][type=file],input[type=url][type=file],select[type=file],textarea[type=file]{line-height:0;padding:15px;height:auto}.input:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=email]:focus,input[type=file]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=url]:focus,select:focus,textarea:focus{outline:0;border-color:#b3d7fd}.input:disabled,input[type=date]:disabled,input[type=datetime-local]:disabled,input[type=email]:disabled,input[type=file]:disabled,input[type=number]:disabled,input[type=password]:disabled,input[type=search]:disabled,input[type=tel]:disabled,input[type=text]:disabled,input[type=url]:disabled,select:disabled,textarea:disabled{color:var(--config-color-normal);background:var(--config-color-fade-super);opacity:1!important}.input.strip,input[type=date].strip,input[type=datetime-local].strip,input[type=email].strip,input[type=file].strip,input[type=number].strip,input[type=password].strip,input[type=search].strip,input[type=tel].strip,input[type=text].strip,input[type=url].strip,select.strip,textarea.strip{border:none;border-radius:0;padding:5px 0;width:100%;background-color:transparent;background-position:left 2px top 50%;border-bottom:solid 1px var(--config-color-fade-light);color:var(--config-color-placeholder)}.input.strip:focus,input[type=date].strip:focus,input[type=datetime-local].strip:focus,input[type=email].strip:focus,input[type=file].strip:focus,input[type=number].strip:focus,input[type=password].strip:focus,input[type=search].strip:focus,input[type=tel].strip:focus,input[type=text].strip:focus,input[type=url].strip:focus,select.strip:focus,textarea.strip:focus{border-color:#b3d7fd}.input:-webkit-autofill::first-line,input[type=date]:-webkit-autofill::first-line,input[type=datetime-local]:-webkit-autofill::first-line,input[type=email]:-webkit-autofill::first-line,input[type=file]:-webkit-autofill::first-line,input[type=number]:-webkit-autofill::first-line,input[type=password]:-webkit-autofill::first-line,input[type=search]:-webkit-autofill::first-line,input[type=tel]:-webkit-autofill::first-line,input[type=text]:-webkit-autofill::first-line,input[type=url]:-webkit-autofill::first-line,select:-webkit-autofill::first-line,textarea:-webkit-autofill::first-line{font-weight:300;font-size:16px}input[type=email],input[type=url]{direction:ltr}input[type=email]::placeholder,input[type=url]::placeholder{text-align:left;direction:ltr}select{background:0 0;-webkit-appearance:none;background-image:var(--config-console-nav-switch-arrow);background-position:left 15px top 50%;background-repeat:no-repeat;background-color:var(--config-color-background-input);width:calc(100% - 62px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:45px}select:-webkit-autofill{background-image:url("data:image/svg+xml;utf8,")!important;background-position:100% 50%!important;background-repeat:no-repeat!important}input[type=search],input[type=search].strip{background:0 0;-webkit-appearance:none;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAdZJREFUWIXt1s2LjWEYBvDfnDMzFpNIamZIFrMiJYMyFmKhZKfOwoiFr2LFn2BByG6WVrKwMcjWxgoLIlKIUk6RrzAjZWZ8LO731FlwvB+PUbjq6X0X7/VeV/d9P9fz8IdRL8Hpw3x8w0xaOz9GNxq4gJeZcGs1cRab0fU7xLfgMSYzoT3YgNXYhIO4iM+4iTWphGs4jikcFSXvhEGczr4/UFW8C2N4jXUFudvwCYeqGNgnSr6yJH8rpkWLCqMfE9hdUryFE3iC3qLEk7ij+kT34Q32FiHV8Qr7K4q3cArXihCGxd5elMjARnzBvE4f1dreV+AtnicycC/7/7K8BhaIvqXCO3zFwrwGZtCT0EAtW9N5DTSxWGR/CizNns/yEgbFEK5NZGCnaEPHE7e9Ai9wA6OJDIzistgJubFdxHB/RfFVYgCHixJruI5x5dNwDm6J47sUhkTvjpUw0Y1zeOrXR3hHjOA9zmBuTs4Arog4/yhuUZWwHPdFMh7280BZgiP4ILJ/UuymqRQmejPxphiquzgvKnMJDzOxB9glZqiRiecykbfHdawX98EhcdxO4BGu4nYm2EJDzEKPSMIdYrBnFYUq8d/EP2di1gey3cS4ErflvxffASbhcakIINaMAAAAAElFTkSuQmCC);background-color:var(--config-color-background-input);background-position:right 15px top 50%;background-repeat:no-repeat;background-size:20px 20px;width:calc(100% - 60px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:45px}select[multiple]{min-height:75px;padding:5px 10px!important;padding-left:50px!important}select[multiple] option{padding:10px 4px;border-bottom:solid 1px #f1f1f1}select[multiple] option:last-child{border-bottom:none}textarea{min-height:75px;resize:vertical;line-height:32px;padding:5px 15px}textarea.tall{min-height:180px}fieldset{border:none;margin:0;padding:0}.counter{font-size:13px;text-align:left;color:var(--config-color-fade);margin-top:-20px;margin-bottom:20px}.file-preview{background:var(--config-color-background-input) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAIElEQVQoU2NkYGAwZsAEZ9GFGIeIQix+wfQgyDODXSEAcUwGCrDSHgkAAAAASUVORK5CYII=)!important;box-shadow:inset 0 0 3px #a0a0a0;border-radius:8px;width:calc(100% - 2px);max-height:180px;visibility:visible!important;object-fit:cover}.video-preview{padding-top:56%;position:relative;border-radius:10px;background:#e7e7e7;overflow:hidden;margin:0}.video-preview iframe{position:absolute;top:0;width:100%;height:100%;border:none}.map-preview{padding-top:50%;position:relative;margin-bottom:10px;border-radius:10px;background:#e7e7e7;overflow:hidden;box-shadow:0 0 30px rgba(218,218,218,.5)}.map-preview iframe{position:absolute;top:0;width:100%;height:100%;border:none}.tooltip{position:relative}.tooltip.large:hover:after{white-space:normal;width:280px}.tooltip.small:hover:after{white-space:normal;width:180px}.tooltip:hover:after{white-space:nowrap;background:var(--config-color-tooltip-background);border-radius:5px;bottom:calc(100% + 6px);color:var(--config-color-tooltip-text);content:attr(data-tooltip);padding:5px 15px;position:absolute;font-size:13px;line-height:20px;z-index:98;right:20%;margin-right:-30px;word-break:break-word}.tooltip:hover:before{border:solid;border-color:var(--config-color-tooltip-background) transparent;border-width:6px 6px 0 6px;bottom:100%;content:"";position:absolute;z-index:99;right:3px}.tooltip.down:hover:after{top:calc(100% + 6px);bottom:inherit}.tooltip.down:hover:before{top:100%;border-width:0 6px 6px 6px;bottom:inherit}.tag{display:inline-block;background:var(--config-color-fade-light);color:var(--config-color-fade);border-radius:12px;line-height:24px;padding:0 8px;font-size:12px;box-shadow:none!important;border:none;height:auto;width:auto;white-space:nowrap;text-overflow:ellipsis}.tag:hover{border:none}.tag.green{background:var(--config-color-success);color:#fff}.tag.red{background:var(--config-color-danger);color:#fff}.tag.yellow{background:#ffe28b;color:#494949}.tag.focus{background:var(--config-color-focus);color:#fff}.tag.dark{background:var(--config-color-dark);color:#e7e7e7}.tag.blue{background:var(--config-color-info);color:#fff}.tag.link{background:var(--config-color-link);color:#fff}input[type=checkbox],input[type=radio]{width:26px;height:16px;position:relative;-webkit-appearance:none;border-radius:0;border:none;background:0 0;vertical-align:middle;margin:0}input[type=checkbox]:after,input[type=radio]:after{content:"";display:block;width:20px;height:20px;background:var(--config-color-background-fade);top:-5px;border-radius:50%;position:absolute;border:solid 3px var(--config-color-focus);vertical-align:middle}input[type=checkbox]:checked:after,input[type=radio]:checked:after{text-align:center;font-family:icon;content:'\ea14';font-size:16px;line-height:20px;color:var(--config-color-background-fade);background:var(--config-color-focus)}input[type=checkbox][type=radio]:checked:after,input[type=radio][type=radio]:checked:after{content:'';display:block;width:10px;height:10px;border-radius:50%;background:var(--config-color-background-fade);border:solid 8px var(--config-color-focus)}input[type=checkbox]:focus,input[type=radio]:focus{outline:0}input[type=checkbox]:focus:after,input[type=checkbox]:hover:after,input[type=radio]:focus:after,input[type=radio]:hover:after{outline:0;border-color:#000}input[type=checkbox]:checked:focus:after,input[type=checkbox]:checked:hover:after,input[type=radio]:checked:focus:after,input[type=radio]:checked:hover:after{border-color:var(--config-color-focus)}input[type=checkbox]:after{border-radius:4px}.input-copy{position:relative}.input-copy::before{content:'';display:block;position:absolute;height:50px;background:var(--config-color-fade-light);width:50px;right:0;border-radius:8px;z-index:1;margin:1px}.input-copy input,.input-copy textarea{padding-left:65px;width:calc(100% - 82px);resize:none}.input-copy .copy{position:absolute;z-index:2;top:0;left:0;border-right:solid 1px var(--config-color-fade-light);height:calc(100% - 2px);width:50px;line-height:50px;text-align:center;background:var(--config-color-background-focus);margin:1px;border-radius:0 9px 9px 0}.paging{color:var(--config-color-fade);padding:0;font-size:12px}.paging form{display:inline-block}.paging button:disabled{color:var(--config-color-background-fade);opacity:.6}.blue-snap iframe{-webkit-appearance:none;-moz-appearance:none;-webkit-transform:translateZ(0);box-sizing:content-box;color:#313131;height:40px;line-height:40px;border:solid 1px var(--config-color-fade-light);border-radius:10px;padding:5px 15px;font-size:16px;display:block;width:calc(100% - 32px);margin-bottom:30px;float:none!important;height:40px!important;width:calc(100% - 32px)!important;border:solid 1px #e2e2e2!important;background:0 0!important;position:static!important}.blue-snap iframe[type=file]{line-height:0;padding:15px;height:auto}.blue-snap iframe:focus{outline:0;border-color:#b3d7fd}.blue-snap iframe:disabled{color:var(--config-color-normal);background:var(--config-color-fade-super);opacity:1!important}.blue-snap iframe.strip{border:none;border-radius:0;padding:5px 0;width:100%;background-color:transparent;background-position:left 2px top 50%;border-bottom:solid 1px var(--config-color-fade-light);color:var(--config-color-placeholder)}.blue-snap iframe.strip:focus{border-color:#b3d7fd}.blue-snap iframe:-webkit-autofill::first-line{font-weight:300;font-size:16px}.blue-snap .error{font-size:12px;margin-top:-25px;color:var(--config-color-danger);height:40px;padding-right:2px}.pell{height:auto;padding-bottom:0;margin-bottom:0;padding-top:0;background:var(--config-color-background-input);line-height:normal!important;position:relative}.pell.hide{padding:0!important;height:1px;min-height:1px;max-height:1px;border:none;box-shadow:none;margin-bottom:20px;opacity:0}.pell [contenteditable=true]:empty:before{content:attr(placeholder);display:block;color:var(--config-color-placeholder)}.pell .pell-actionbar{border-bottom:solid 1px var(--config-color-fade-light);margin:0 -15px 15px -15px;padding:10px 15px;position:sticky;top:70px;background:var(--config-color-background-input);border-radius:10px 10px 0 0}.pell .pell-content{min-height:100px;display:block;padding:10px;margin:-10px;cursor:text}.pell .pell-content:focus{outline:0}.pell button{background:inherit;color:inherit;margin:0;padding:0;padding-left:15px;height:40px;line-height:40px;box-shadow:none;cursor:pointer;font-size:13px;border-radius:0}.pell button.pell-button-selected,.pell button:focus,.pell button:hover{color:var(--config-color-link)}.pell h1,.pell h2,.pell h3,.pell h4,.pell h5,.pell h6{text-align:inherit;margin-bottom:30px}.pell b,.pell strong{font-weight:700}.pell ol,.pell ul{margin:0 0 20px 0}.pell ol li,.pell ul li{display:list-item!important;list-style:inherit;list-style-position:inside!important;margin:0 20px 2px 20px}.pell ol li p,.pell ul li p{margin:0;display:inline}.pell ol li{list-style:decimal}.pell ol li::before{content:'';display:none}label.switch{line-height:42px}.switch,input[type=checkbox].button.switch,input[type=checkbox].switch{width:52px;height:32px;line-height:32px;border-radius:21px;background:var(--config-color-fade);display:inline-block;overflow:visible;margin:0;padding:5px;padding-right:5px;padding-left:30px}.switch.on,.switch:checked,input[type=checkbox].button.switch.on,input[type=checkbox].button.switch:checked,input[type=checkbox].switch.on,input[type=checkbox].switch:checked{background-color:var(--config-color-success);padding-right:25px;padding-left:5px}.switch.on:focus,.switch.on:hover,.switch:checked:focus,.switch:checked:hover,input[type=checkbox].button.switch.on:focus,input[type=checkbox].button.switch.on:hover,input[type=checkbox].button.switch:checked:focus,input[type=checkbox].button.switch:checked:hover,input[type=checkbox].switch.on:focus,input[type=checkbox].switch.on:hover,input[type=checkbox].switch:checked:focus,input[type=checkbox].switch:checked:hover{background:var(--config-color-success)}.switch:focus,.switch:hover,input[type=checkbox].button.switch:focus,input[type=checkbox].button.switch:hover,input[type=checkbox].switch:focus,input[type=checkbox].switch:hover{background:var(--config-color-fade)}.switch:focus:after,.switch:hover:after,input[type=checkbox].button.switch:focus:after,input[type=checkbox].button.switch:hover:after,input[type=checkbox].switch:focus:after,input[type=checkbox].switch:hover:after{background:#fff}.switch:after,input[type=checkbox].button.switch:after,input[type=checkbox].switch:after{content:"";display:block;width:22px;height:22px;background:#fff;border-radius:50%;border:none;position:static;top:0}.password-meter{margin:-41px 10px 30px 10px;height:2px;background:0 0;max-width:100%;z-index:2;position:relative}.password-meter.weak{background:var(--config-color-danger)}.password-meter.medium{background:var(--config-color-success)}.password-meter.strong{background:var(--config-color-success)}.color-input:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.color-input .color-preview{width:53px;height:53px;float:right;margin-left:10px;background:#000;border-radius:10px;box-shadow:inset 0 0 3px #a0a0a0;position:relative}.color-input .color-preview input{opacity:0;position:absolute;top:0;bottom:0;left:0;right:0;width:100%;height:100%;cursor:pointer}.color-input input{text-transform:uppercase;float:right;width:calc(100% - 95px)}.grecaptcha-badge{box-shadow:none!important;border-radius:10px!important;overflow:hidden!important;background:#4d92df!important;bottom:25px}.grecaptcha-badge:hover{width:256px!important}.back{font-size:15px;line-height:24px;height:24px;margin-right:-15px;margin-top:-25px;margin-bottom:20px}.back span{font-weight:inherit!important}@media only screen and (max-width:550px){.back{margin-right:-5px}}hr{height:1px;background:var(--config-border-color)!important;border:none}hr.fade{opacity:.7}.upload{position:relative}.upload:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.upload input{position:absolute;top:0;right:0;opacity:0;cursor:pointer}.upload.single .preview{height:0;position:relative;padding-top:100%;width:100%;margin-bottom:15px!important}.upload.single .preview li{position:absolute;top:0;width:calc(100% - 20px);height:calc(100% - 20px);margin-left:0!important;margin-bottom:0!important}.upload .button{float:right;margin-left:10px!important}.upload .button.disabled,.upload .button.disabled:hover{background:0 0;color:inherit;border-color:inherit}.upload .count{float:right;line-height:52px}.upload .progress{background:var(--config-color-success);height:6px;border-radius:3px;margin-bottom:15px!important}.upload .preview:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.upload .preview li{float:right;margin-left:20px!important;margin-bottom:15px!important;background:var(--config-color-background-fade-super);width:150px;height:150px;line-height:148px;text-align:center;border-radius:20px;overflow:hidden;position:relative;cursor:pointer;border:solid 1px var(--config-color-background-dark)}.upload .preview li:hover:before{background:var(--config-color-focus)}.upload .preview li:before{content:'\ea11';font-family:icon;font-size:12px;position:absolute;width:20px;height:20px;display:block;top:8px;left:8px;text-align:center;line-height:20px;vertical-align:middle;border-radius:50%;background:#484848;color:#fff;z-index:1}.upload .preview li img{vertical-align:middle;max-height:150px;max-width:150px;-webkit-filter:drop-shadow(0 0 6px rgba(0, 0, 0, .3));filter:drop-shadow(0 0 1px rgba(0, 0, 0, .3))}.upload.wide .preview li{height:0;width:100%;position:relative;padding-top:30.547%;background:#e7e7e7;border-radius:10px;overflow:hidden;border:solid 1px #f9f9f9;margin:0}.upload.wide .preview li img{border-radius:10px;position:absolute;top:0;width:100%;display:block;opacity:1;max-width:inherit;max-height:inherit}ol{list-style:none;counter-reset:x-counter;padding:0}ol li{counter-increment:x-counter;line-height:30px;margin-bottom:30px;margin-right:45px}ol li::before{display:inline-block;content:counter(x-counter);color:var(--config-color-background-fade);background:var(--config-color-focus);border:solid 2px var(--config-color-focus);margin-left:15px;margin-right:-45px;width:26px;height:26px;border-radius:50%;text-align:center;line-height:26px}.required{color:var(--config-color-danger);font-size:8px;position:relative;top:-8px}.drop-list{position:relative;outline:0}.drop-list.open ul{display:block}.drop-list ul{position:relative;background:var(--config-color-background-fade);border-radius:10px;border-bottom:none;box-shadow:0 0 3px rgba(0,0,0,.05);display:block;padding:30px;border-radius:4px;box-shadow:0 0 6px rgba(0,0,0,.1);display:none;position:absolute;bottom:calc(100% + 10px);z-index:2;padding:0;right:-10px;max-width:280px;min-width:240px}.drop-list ul.padding-tiny{padding:5px}.drop-list ul.padding-xs{padding:10px}.drop-list ul.padding-small{padding:15px}.drop-list ul.y-scroll{overflow-y:auto}.drop-list ul.danger{background:var(--config-color-danger);color:#fff}.drop-list ul.danger .box{color:var(--config-color-normal);background:var(--config-color-background-fade)}.drop-list ul.danger>.button,.drop-list ul.danger>button{background:#fff;color:var(--config-color-danger)}.drop-list ul.note{background:var(--config-note-background)}.drop-list ul.focus{background:var(--config-color-focus);color:var(--config-color-background-fade)}.drop-list ul.focus .button,.drop-list ul.focus button{background:var(--config-color-background-fade);color:var(--config-color-focus)}.drop-list ul.line{background:0 0;border:solid 1px var(--config-color-background-dark);box-shadow:none}.drop-list ul.warning{background:var(--config-color-warning);color:#2d2d2d}.drop-list ul.warning .button,.drop-list ul.warning button{background:rgba(45,45,45,.8);color:var(--config-color-success)}.drop-list ul .tabs{border-bottom:solid 1px var(--config-border-color);margin:0 -30px;padding:0 30px!important}.drop-list ul>footer{margin:0 -30px -30px -30px;padding:15px 30px;background:var(--config-color-background-fade);border:solid 1px var(--config-border-color);border-radius:0 0 10px 10px}.drop-list ul hr{height:1px;background:var(--config-console-background);border:none;margin:30px -30px}.drop-list ul .label{position:absolute;top:10px;z-index:2;left:10px}.drop-list ul.fade-bottom{position:relative;overflow:hidden}.drop-list ul.fade-bottom:after{content:"";position:absolute;display:block;bottom:15px;width:100%;background:#000;background:linear-gradient(180deg,rgba(0,0,0,0) 0,var(--config-color-background-fade) 80%);height:100px;margin:0 -15px}.drop-list ul .header{position:static;height:40px;padding:20px 30px 20px 30px;margin-bottom:30px;margin:-30px -30px 20px -30px;background:var(--config-color-background-fade);border-bottom:solid 1px #efefef}.drop-list ul ul.numbers>li{position:relative;margin-right:30px;margin-left:50px}.drop-list ul ul.numbers>li hr{margin-right:-60px;margin-left:-80px}.drop-list ul ul.numbers>li .settings{position:absolute;top:3px;left:-50px}.drop-list ul ul.numbers>li::after{display:block;width:25px;height:25px;line-height:25px;font-size:13px;font-weight:500;border-radius:50%;background:var(--config-color-focus);color:var(--config-color-background);counter-increment:section;content:counter(section);text-align:center;position:absolute;top:3px;right:-45px}.drop-list ul .scroll{margin:0 -30px;overflow-y:scroll}.drop-list ul .scroll table{width:100%;margin:0}.drop-list ul ul.sortable{counter-reset:section}.drop-list ul ul.sortable>li [data-move-down].round,.drop-list ul ul.sortable>li [data-move-up].round,.drop-list ul ul.sortable>li [data-remove].round{background:var(--config-color-focus);color:var(--config-color-background-fade);width:25px;height:25px;line-height:25px;display:inline-block;text-align:center;padding:0;margin-left:5px}.drop-list ul ul.sortable>li [data-move-down].round:disabled,.drop-list ul ul.sortable>li [data-move-up].round:disabled,.drop-list ul ul.sortable>li [data-remove].round:disabled{display:none}.drop-list ul ul.sortable>li:first-child [data-move-up]{display:none}.drop-list ul ul.sortable>li:first-child [data-move-up]:disabled{display:inline-block;background:var(--config-color-background)}.drop-list ul ul.sortable>li:last-child [data-move-down]{display:none}.drop-list ul ul.sortable>li:last-child [data-move-down]:disabled{display:inline-block;background:var(--config-color-background)}.drop-list ul .toggle{position:relative;border-top:1px solid var(--config-console-background);border-bottom:1px solid var(--config-console-background);margin:0 -30px;padding:30px 30px 0 30px;height:65px;overflow:hidden}.drop-list ul .toggle.list{border-bottom:none}.drop-list ul .toggle.sorts button.ls-ui-open{width:calc(100% - 100px)}.drop-list ul .toggle button.ls-ui-open{left:0;position:absolute;top:0;width:100%;height:95px;background:0 0;opacity:.5;border-radius:0}.drop-list ul .toggle .icon-minus,.drop-list ul .toggle .icon-up-open{display:none}.drop-list ul .toggle .content{display:none}.drop-list ul .toggle.open{height:auto}.drop-list ul .toggle.open .icon-minus,.drop-list ul .toggle.open .icon-up-open{display:block}.drop-list ul .toggle.open .icon-down-open,.drop-list ul .toggle.open .icon-plus{display:none}.drop-list ul .toggle.open .content{display:block}.drop-list ul .list li{border-bottom:solid 2px var(--config-border-color);margin:0 -30px 30px -30px;padding:0 30px 30px 30px}.drop-list ul .list li:last-child{padding-bottom:0;margin-bottom:0;border-bottom:none}@media only screen and (max-width:550px){.drop-list ul .list li .actions{float:none}}.drop-list ul .list li .avatar{display:block}.drop-list ul .list li .avatar.inline{display:inline-block}.drop-list ul.new{text-align:center}.drop-list ul.new i{font-size:80px;line-height:80px;font-family:Poppins,sans-serif;font-style:normal;font-weight:300}.drop-list ul.new b{margin-top:20px;display:block}.drop-list ul .info{margin:0 -30px;padding:20px 30px;background:var(--config-modal-note-background);color:var(--config-modal-note-color);border-top:solid 1px var(--config-modal-note-border);border-bottom:solid 1px var(--config-modal-note-border)}.drop-list ul .info hr{background:var(--config-modal-note-border)!important}.drop-list ul .table-wrap{margin:0 -30px;overflow-y:scroll}.drop-list ul .table-wrap table{margin:0}.drop-list ul:before{border:solid;border-color:var(--config-color-background-fade) transparent;border-width:8px 8px 0 8px;bottom:-8px;content:"";position:absolute;z-index:99;right:30px}.drop-list ul.arrow-end:before{left:30px;right:unset}.drop-list ul.no-arrow::before{display:none}.drop-list ul li{border-bottom:solid 1px var(--config-color-fade-super);margin:0;padding:0}.drop-list ul li:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.drop-list ul li:first-child{border-radius:4px 4px 0 0}.drop-list ul li:last-child{border-radius:0 0 4px 4px}.drop-list ul li:hover{background:var(--config-color-fade-super)}.drop-list ul li:first-child:hover,.drop-list ul li:last-child:hover{border-color:transparent}.drop-list ul li .link,.drop-list ul li a,.drop-list ul li button.link{display:block;vertical-align:middle;height:auto;line-height:30px;display:inline-block;padding:10px 15px!important;color:inherit;font-size:14px;border:none;cursor:pointer;width:calc(100% - 30px);text-align:right;box-sizing:content-box}.drop-list ul li.disabled .link:hover,.drop-list ul li.disabled a:hover{background:0 0}.drop-list ul li .avatar{width:30px;height:30px;margin-left:10px;float:right}.drop-list ul li i.avatar{text-align:center;background:var(--config-color-dark);color:var(--config-color-background-fade)}.drop-list ul li:last-child{border-bottom:none}.drop-list.bottom ul{bottom:auto;margin-top:-2px}.drop-list.bottom ul:before{bottom:auto;top:-8px;border-width:0 8px 8px 8px}.drop-list.end ul{left:-10px;right:auto}.disabled{opacity:.2;cursor:default}.disabled .button,.disabled .link,.disabled a,.disabled button{cursor:default!important}.disabled .button:hover,.disabled .link:hover,.disabled a:hover,.disabled button:hover{background:0 0}.tags{-webkit-appearance:none;-moz-appearance:none;-webkit-transform:translateZ(0);box-sizing:content-box;color:#313131;height:40px;line-height:40px;border:solid 1px var(--config-color-fade-light);border-radius:10px;padding:5px 15px;font-size:16px;display:block;width:calc(100% - 32px);margin-bottom:30px;background:var(--config-color-background-input);min-height:42px;height:auto;cursor:text}.tags[type=file]{line-height:0;padding:15px;height:auto}.tags:focus{outline:0;border-color:#b3d7fd}.tags:disabled{color:var(--config-color-normal);background:var(--config-color-fade-super);opacity:1!important}.tags.strip{border:none;border-radius:0;padding:5px 0;width:100%;background-color:transparent;background-position:left 2px top 50%;border-bottom:solid 1px var(--config-color-fade-light);color:var(--config-color-placeholder)}.tags.strip:focus{border-color:#b3d7fd}.tags:-webkit-autofill::first-line{font-weight:300;font-size:16px}.tags .add{display:inline-block!important;border:none;padding:0;width:auto;margin:0;max-width:100%;min-width:200px}.tags ul.tags-list{display:inline;white-space:pre-line}.tags ul.tags-list li{display:inline-block!important;margin-left:10px;font-size:16px;padding:5px 10px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tags ul.tags-list li::before{float:left;content:'\ea11';font-family:icon;font-style:normal;display:inline-block;text-align:center;line-height:16px;width:16px;height:16px;font-size:12px;background:#000;color:#fff;border-radius:50%;margin-top:4px;margin-bottom:4px;margin-right:6px;margin-left:0}.switch-theme{background:var(--config-switch-background);border-radius:19px;height:26px;width:44px;margin:9px 0}.switch-theme button{padding:3px;display:block;background:0 0;height:26px;width:100%}.switch-theme i{background:var(--config-color-background-fade);border-radius:50%;height:18px;width:18px;line-height:18px;font-size:10px;padding:0;margin:0;color:var(--config-color-fade)}.switch-theme i.force-light{float:left}.switch-theme i.force-dark{float:right}.dot{width:20px;height:20px;background:var(--config-color-fade);border-radius:50%;display:inline-block;vertical-align:middle;margin:0!important;padding:0!important}.dot.danger{background:var(--config-color-danger)!important}.dot.success{background:var(--config-color-success)!important}.dot.warning{background:var(--config-color-warning)!important}.dot.info{background:var(--config-color-info)!important}.ide{background-color:var(--config-prism-background);overflow:hidden;position:relative;z-index:1;box-shadow:0 2px 4px 0 rgba(50,50,93,.3);border-radius:10px;margin-bottom:30px}.ide *{font-family:"Source Code Pro",monospace}.ide[data-lang]::after{content:attr(data-lang-label);display:inline-block;background:#fff;color:#000;position:absolute;top:15px;padding:5px 10px;border-radius:15px;font-size:10px;right:10px;opacity:.95}.ide[data-lang=bash]::after{background:var(--config-language-bash);color:var(--config-language-bash-contrast)}.ide[data-lang=javascript]::after{background:var(--config-language-javascript);color:var(--config-language-javascript-contrast)}.ide[data-lang=web]::after{background:var(--config-language-web);color:var(--config-language-web-contrast)}.ide[data-lang=html]::after{background:var(--config-language-html);color:var(--config-language-html-contrast)}.ide[data-lang=php]::after{background:var(--config-language-php);color:var(--config-language-php-contrast)}.ide[data-lang=nodejs]::after{background:var(--config-language-nodejs);color:var(--config-language-nodejs-contrast)}.ide[data-lang=ruby]::after{background:var(--config-language-ruby);color:var(--config-language-ruby-contrast)}.ide[data-lang=python]::after{background:var(--config-language-python);color:var(--config-language-python-contrast)}.ide[data-lang=go]::after{background:var(--config-language-go);color:var(--config-language-go-contrast)}.ide[data-lang=dart]::after{background:var(--config-language-dart);color:var(--config-language-dart-contrast)}.ide[data-lang=flutter]::after{background:var(--config-language-flutter);color:var(--config-language-flutter-contrast)}.ide[data-lang=android]::after{background:var(--config-language-android);color:var(--config-language-android-contrast)}.ide[data-lang=swift]::after{background:var(--config-language-swift);color:var(--config-language-swift-contrast)}.ide[data-lang=kotlin]::after{background:var(--config-language-kotlin);color:var(--config-language-kotlin-contrast)}.ide[data-lang=java]::after{background:var(--config-language-java);color:var(--config-language-java-contrast)}.ide[data-lang=yaml]::after{background:var(--config-language-yaml);color:var(--config-language-yaml-contrast)}.ide .tag{color:inherit!important;background:0 0!important;padding:inherit!important;font-size:inherit!important;line-height:14px}.ide .copy{cursor:pointer;content:attr(data-lang);display:inline-block;background:#fff;color:#000;position:absolute;transform:translateX(-50%);bottom:-20px;padding:5px 10px;border-radius:15px;font-size:10px;font-style:normal;right:50%;opacity:0;transition:bottom .3s,opacity .3s;line-height:normal;font-family:Poppins,sans-serif}.ide .copy::before{padding-left:5px}.ide:hover .copy{transition:bottom .3s,opacity .3s;opacity:.9;bottom:16px}.ide pre{-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none;color:#e6ebf1;font-weight:400;line-height:20px;font-size:13px;margin:0;padding:20px;padding-left:60px}.ide.light{box-shadow:0 2px 4px 0 rgba(50,50,93,.1);background-color:#fff}.ide.light pre{color:#414770}.ide.light .token.cdata,.ide.light .token.comment,.ide.light .token.doctype,.ide.light .token.prolog{color:#91a2b0}.ide.light .token.attr-name,.ide.light .token.builtin,.ide.light .token.char,.ide.light .token.inserted,.ide.light .token.selector,.ide.light .token.string{color:#149570}.ide.light .token.punctuation{color:#414770}.ide.light .language-css .token.string,.ide.light .style .token.string,.ide.light .token.entity,.ide.light .token.operator,.ide.light .token.url,.ide.light .token.variable{color:#414770}.ide.light .line-numbers .line-numbers-rows{background:#f2feef}.ide.light .line-numbers-rows>span:before{color:#5dc79e}.ide.light .token.keyword{color:#6772e4;font-weight:500}code[class*=language-],pre[class*=language-]{text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4}pre[class*=language-]{overflow:auto}:not(pre)>code[class*=language-]{padding:.1em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#6b7c93}.token.punctuation{color:#f8f8f2}.namespace{opacity:.7}.token.constant,.token.deleted,.token.property,.token.symbol,.token.tag{color:#f92672}.token.boolean,.token.number{color:#f79a59}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#3ecf8e}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url,.token.variable{color:#f8f8f2}.token.atrule,.token.attr-value,.token.class-name,.token.function{color:#45b2e8}.token.keyword{color:#7795f8}.token.important,.token.regex{color:#fd971f}.token.italic{font-style:italic}.token.entity{cursor:help}pre[class*=language-].line-numbers{position:relative;padding-left:60px;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{background:var(--config-prism-numbers);position:absolute;pointer-events:none;top:-20px;bottom:-21px;padding:20px 0;font-size:100%;left:-60px;width:40px;letter-spacing:-1px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{padding-left:5px;pointer-events:none;display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#636365;display:block;padding-right:.8em;text-align:right}.u-table-layout-normal{table-layout:revert!important}.u-margin-inline-end-16{margin-inline-end:16px!important}.console{width:100%;padding:0;overscroll-behavior:none}.console body{position:relative;width:calc(100% - 320px);padding-top:70px;padding-bottom:0;padding-left:50px;padding-right:270px;margin:0;color:var(--config-color-normal);background:var(--config-console-background)}.console body .project-only{display:none!important}.console body.show-nav .project-only{display:inline-block!important}.console body.hide-nav{padding-right:50px;width:calc(100% - 100px)}.console body.hide-nav header{width:calc(100% - 50px)}.console body.hide-nav header .logo{display:inline-block}.console body.hide-nav .console-back{display:block}.console body.hide-nav .console-index{display:none}.console body.hide-nav .account{display:none}.console body.index .console-back{display:none}.console body.index .console-index{display:block}.console body.index .account{display:block}.console body .console-index{display:block}.console body .console-back{display:none}.console main{min-height:480px}.console header{position:fixed;top:0;width:calc(100% - 280px);height:40px;line-height:40px;padding:15px 30px;background:var(--config-color-background-fade);box-shadow:0 0 2px rgba(0,0,0,.1);margin:0 -50px;z-index:2;font-size:14px}.console header .logo{display:none;border:none}.console header .logo:hover{border:none;opacity:.8}.console header .logo img{height:26px;margin:7px 0}.console header .setup-new{width:40px;height:40px;line-height:40px}.console header .list{width:240px}.console header .list select{height:40px;line-height:40px;padding-top:0;padding-bottom:0;border:none;border-radius:26px;background-color:var(--config-console-nav-switch-background);color:var(--config-console-nav-switch-color)}.console header .account{margin-right:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.console header .switch-theme{margin:2px 0}.console header .avatar{height:40px;width:40px}.console header .account-button{background:0 0;position:absolute;width:100%;height:40px;border-radius:0;z-index:1}.console header .notifications{position:relative;font-size:20px}.console header .notifications a{color:#1b3445}.console header .notifications:after{position:absolute;content:"";display:block;background:var(--config-color-danger);width:8px;height:8px;border-radius:50%;top:3px;left:3px}.console header nav{background:#1b3445;background:linear-gradient(var(--config-console-nav-start),var(--config-console-nav-end));color:#788c99;position:fixed;height:100%;width:220px;top:0;right:0}.console header nav .logo{height:39px;padding:15px 20px;display:block}.console header nav .logo img{display:inline-block;margin-top:7px;margin-bottom:14px}.console header nav .logo svg g{fill:var(--config-color-focus)}.console header nav .icon{display:block;border:none;margin:18px 10px 50px 10px}.console header nav .icon img{display:block}.console header nav .icon:hover{border-bottom:none}.console header nav .icon:hover svg g{fill:var(--config-color-focus)}.console header nav .container{overflow:auto;height:calc(100% - 133px);width:100%}.console header nav .project-box{padding:20px;text-align:center;display:block;border:none;line-height:100px;height:100px}.console header nav .project-box img{max-height:80px;max-width:80%;display:inline-block;vertical-align:middle}.console header nav .project{display:block;padding:85px 25px 20px 25px;color:#788c99;position:relative;border:none;height:20px}.console header nav .project:hover{border-bottom:none}.console header nav .project .name{height:20px;line-height:20px;margin:0;padding:0;display:inline-block;max-width:100%}.console header nav .project .arrow{display:block;position:absolute;left:5px;top:10px;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #788c99;transform:rotate(225deg)}.console header nav .project img{position:absolute;bottom:40px;display:block;margin-bottom:10px;max-height:35px;max-width:40%}.console header nav .subtitle{padding:0 30px;display:block;font-size:12px;font-weight:300}.console header nav .links{margin-bottom:15px!important}.console header nav .links.top{border:none;padding-bottom:0;margin-bottom:5px!important}.console header nav .links.bottom{position:absolute;bottom:0;left:0;right:0;padding-bottom:0;border:none;margin-bottom:0!important;box-shadow:0 0 10px rgba(0,0,0,.1)}.console header nav .links.bottom a{border-top:solid 1px var(--config-console-nav-border);border-bottom:none}.console header nav .links .sub{display:inline-block;border:none;width:25px;height:25px;line-height:25px;border-radius:50%;padding:0;background:var(--config-color-focus);color:#fff;text-align:center;font-size:12px;margin:18px}.console header nav .links .sub i{width:auto;margin:0}.console header nav .links .sub:hover{border:none}.console header nav .links a{padding:8px 20px;border:none;display:flex;color:#87a5b9;font-weight:400;border-right:solid 5px transparent;font-size:13px}.console header nav .links a i{margin-left:8px;width:22px;display:inline-block}.console header nav .links a.selected,.console header nav .links a:hover{color:#e4e4e4}.console header nav:after{content:'';display:block;position:absolute;background:#302839;height:100px;width:100%;bottom:-100px}.console>footer{width:calc(100% + 100px);margin:0 -50px;box-sizing:border-box;background:0 0;padding-left:30px;padding-right:30px}.console>footer ul{float:none;text-align:center}.console>footer ul li{float:none;display:inline-block}.console .projects{position:relative}.console .projects:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.console .projects li{float:right;margin-left:50px;margin-bottom:50px;width:270px}.console .projects li:nth-child(3n){margin-left:0}.console .dashboard{padding:20px;overflow:visible;position:relative;z-index:1;margin-bottom:2px}.console .dashboard .chart{width:80%}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.console .dashboard .chart{width:100%}}.console .dashboard hr{margin:20px -25px;height:2px;background:var(--config-console-background)}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.console .dashboard hr{height:3px}}.console .dashboard footer{margin:-20px;padding:20px;background:#fcfeff;border:none;color:var(--config-color-link)}.console .dashboard .col{position:relative}.console .dashboard .col:last-child:after{display:none}.console .dashboard .col:after{content:"";display:block;width:2px;background:var(--config-console-background);position:absolute;top:-20px;bottom:-20px;left:24px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.console .dashboard .col:after{width:calc(100% + 40px);height:3px;position:static;margin:20px -20px}}.console .dashboard .value{color:var(--config-color-focus);vertical-align:bottom;line-height:45px}.console .dashboard .value.small{line-height:35px}.console .dashboard .value .sum{font-size:45px;line-height:45px;font-weight:700;vertical-align:bottom}.console .dashboard .value .sum.small{font-size:25px;line-height:25px}.console .dashboard .unit{font-weight:500;line-height:20px;vertical-align:bottom;font-size:16px;display:inline-block;margin-bottom:5px;margin-right:5px;color:var(--config-color-focus)}.console .dashboard .metric{color:var(--config-color-focus);font-weight:400;font-size:13px;line-height:16px}.console .dashboard .range{color:var(--config-color-fade);font-weight:400;font-size:14px;line-height:16px}.console .dashboard a{display:block;font-weight:400;font-size:14px;line-height:16px;padding:0;border:none}.console .dashboard .chart-bar{height:4rem;width:auto;display:flex;align-items:flex-end}@media only screen and (min-width:1199px){.console .dashboard .chart-bar{padding-right:15px}}.console .dashboard .chart-bar .bar{width:12.5%;background-color:var(--config-color-chart-fade);margin:0 2px;border-top:2px solid var(--config-color-chart)}.console .dashboard .chart-bar .bar:hover{background-color:var(--config-color-chart)}.console .dashboard .chart-bar .bar.bar-100{height:100%}.console .dashboard .chart-bar .bar.bar-90{height:90%}.console .dashboard .chart-bar .bar.bar-80{height:80%}.console .dashboard .chart-bar .bar.bar-70{height:70%}.console .dashboard .chart-bar .bar.bar-60{height:60%}.console .dashboard .chart-bar .bar.bar-50{height:50%}.console .dashboard .chart-bar .bar.bar-40{height:40%}.console .dashboard .chart-bar .bar.bar-30{height:30%}.console .dashboard .chart-bar .bar.bar-20{height:20%}.console .dashboard .chart-bar .bar.bar-10{height:10%}.console .dashboard .chart-bar .bar.bar-0{height:0%}.console .dashboard .chart-bar .bar.bar-0{border-top:1px solid var(--config-color-chart)}.console .dashboard .chart-bar .bar.bar-5{height:5%}.console .chart-metric{width:19%}@media only screen and (min-width:551px) and (max-width:1198px),only screen and (max-width:550px){.console .chart-metric{width:100%}}.console .chart{width:100%;position:relative;height:0;padding-top:20px;padding-bottom:26%;margin-left:-2px;overflow:hidden;background-color:var(--config-color-background-fade);background-image:linear-gradient(transparent 1px,transparent 1px),linear-gradient(90deg,transparent 1px,transparent 1px),linear-gradient(var(--config-border-color) 1px,transparent 1px),linear-gradient(90deg,var(--config-border-color) 1px,transparent 1px);background-size:100px 100px,100px 100px,20px 20px,20px 20px;background-position:-2px -2px,-2px -2px,-1px -1px,-1px -1px;background-repeat:round;border:solid 1px var(--config-border-color);border-right:solid 1px transparent;border-bottom:solid 1px transparent}.console .chart.background-image-no{background-image:none}.console .chart.border-no{border:none}@media only screen and (min-width:551px) and (max-width:1198px),only screen and (max-width:550px){.console .chart{width:100%;padding-bottom:32%;float:none;margin-bottom:20px}}.console .chart canvas{position:absolute;bottom:0;display:block;height:100%;width:100%}.console .chart-notes{font-size:12px}.console .chart-notes.crud li.create,.console .chart-notes.crud li:nth-child(1){color:#00b680}.console .chart-notes.crud li.create::before,.console .chart-notes.crud li:nth-child(1)::before{background:#00b680}.console .chart-notes.crud li.read,.console .chart-notes.crud li:nth-child(2){color:#009cde}.console .chart-notes.crud li.read::before,.console .chart-notes.crud li:nth-child(2)::before{background:#009cde}.console .chart-notes.crud li.update,.console .chart-notes.crud li:nth-child(3){color:#696fd7}.console .chart-notes.crud li.update::before,.console .chart-notes.crud li:nth-child(3)::before{background:#696fd7}.console .chart-notes.crud li.delete,.console .chart-notes.crud li:nth-child(4){color:#da5d95}.console .chart-notes.crud li.delete::before,.console .chart-notes.crud li:nth-child(4)::before{background:#da5d95}.console .chart-notes li{line-height:20px;display:inline-block;margin-left:15px}.console .chart-notes li::before{display:inline-block;content:'';width:14px;height:14px;background:var(--config-color-normal);border-radius:50%;margin-left:8px;vertical-align:middle}.console .chart-notes li.blue,.console .chart-notes li:nth-child(1){color:var(--config-color-chart)}.console .chart-notes li.blue::before,.console .chart-notes li:nth-child(1)::before{background:var(--config-color-chart)}.console .chart-notes li.green,.console .chart-notes li:nth-child(2){color:#4eb55b}.console .chart-notes li.green::before,.console .chart-notes li:nth-child(2)::before{background:#4eb55b}.console .chart-notes li.orange,.console .chart-notes li:nth-child(3){color:#ec9323}.console .chart-notes li.orange::before,.console .chart-notes li:nth-child(3)::before{background:#ec9323}.console .chart-notes li.red,.console .chart-notes li:nth-child(4){color:#dc3232}.console .chart-notes li.red::before,.console .chart-notes li:nth-child(4)::before{background:#dc3232}.console .community a{padding:0 10px;display:inline-block}.console .link-list li{margin-bottom:15px}.console .link-list i{display:inline-block;width:30px;height:30px;line-height:30px;text-align:center;background:var(--config-color-fade);color:var(--config-color-fade-super);border-radius:50%;margin-left:15px}.console .link-list i.fade{background:0 0;color:var(--config-color-fade)}.console .provider{width:50px;height:50px;background:var(--config-color-background-focus);color:#868686;line-height:50px;text-align:center;font-size:25px;border-radius:50%}.console .provider.facebook{color:#fff;background:#3b5998}.console .provider.twitter{color:#fff;background:#55beff}.console .provider.telegram{color:#fff;background:#3ba9e1}.console .provider.github{color:#fff;background:#24292e}.console .provider.whatsapp{color:#fff;background:#25d366}.console .provider.linkedin{color:#fff;background:#1074af}.console .provider.microsoft{color:#fff;background:#137ad4}.console .provider.google{color:#fff;background:#4489f1}.console .provider.bitbucket{color:#fff;background:#2a88fb}.console .provider.gitlab{color:#faa238;background:#30353e}.console .provider.instagram{color:#fff;background:radial-gradient(circle at 30% 107%,#fdf497 0,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285aeb 90%)}.console .premium{z-index:3;margin-top:320px}.console .premium .message{height:190px;overflow:hidden;position:absolute;top:-280px}.console .premium:after{content:'';position:absolute;top:0;left:-20px;right:-20px;bottom:-20px;background:var(--config-color-background);opacity:.7;z-index:300}.console .app-section{height:90px}.console .confirm{background:var(--config-color-link);color:#fff;border-radius:25px;padding:12px;line-height:28px;text-align:center}.console .confirm .action{font-weight:500;cursor:pointer}.console .platforms{overflow:hidden}.console .platforms .box{overflow:hidden}.console .platforms .box img{width:50px;margin:0 auto;margin-bottom:20px}.console .platforms .box .cover{margin:-30px -30px 30px -30px;padding:30px}.console .platforms .box .cover.android{background:#a4ca24}.console .platforms .box .cover.android h1{color:#fff;font-size:18px;margin-top:20px}.console .platforms .col{text-align:center;line-height:30px}.console .platforms a{display:block;margin:-20px;padding:20px}.console .platforms a:hover{background:#fbfeff}.console .platforms img{display:block;margin:0 30px;width:calc(100% - 60px);border-radius:50%;margin-bottom:20px}.console .document-nav{display:none;position:sticky;top:90px}@media only screen and (min-width:1380px){.console .document-nav{display:block}}.console .document-nav ul{position:absolute;width:200px;right:-260px}.console .document-nav ul li{margin-bottom:20px}.console .document-nav ul li .selected{font-weight:500}@media only screen and (min-width:1199px){.console .logo .top{display:none!important}}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.console>header{width:calc(100% - 30px)!important;margin:0 -30px;padding:15px}.console>header nav{width:100%;height:70px;overflow:hidden}.console>header nav.close{background:0 0}.console>header nav.close .logo .nav{display:none!important}.console>header nav.open{height:100%}.console>header nav.open .logo .top{display:none!important}.console>header nav.open .bottom{display:block!important}.console>header nav.open button{color:#87a5b9}.console>header nav button{margin:9px;background:0 0;color:var(--config-color-normal)}.console>header nav button:focus,.console>header nav button:hover{background:0 0}.console>header nav .logo{display:block!important;position:absolute;top:0;left:50%;margin:auto;transform:translateX(-50%)}.console>header nav .bottom{display:none!important}.console>footer{width:auto;margin:50px -30px 0 -30px!important;padding:0 30px 30px 30px}.console body{height:"calc(100% - 70px)"!important;width:calc(100% - 60px)!important;padding:70px 30px 0 30px!important}.console .cover{padding:25px 30px;margin:0 -30px}}@media only screen and (max-width:550px){.console body{height:"calc(100% - 70px)"!important;width:calc(100% - 40px)!important;padding:70px 20px 0 20px!important}.console .cover{padding:20px 20px;margin:0 -20px}.console>header{margin:0 -20px}.console>header .list{width:175px;font-size:14px}.console>footer{margin:50px -20px 0 -20px!important;padding:0 20px 20px 20px}}.dev-feature{display:none}.prod-feature{display:none}.development .dev-feature{display:block;opacity:.6!important;outline:solid #ff0 3px;outline-offset:3px}.development .dev-feature.dev-inline{display:inline-block}.development .prod-feature{display:none}.production .dev-feature{display:none}.production .prod-feature{display:block}.search{opacity:1!important}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.search button{margin-top:20px}}html.home body{padding:0 50px;color:var(--config-color-normal)}html.home .logo a{display:block}html.home .logo a:hover{opacity:.8}html.home .logo img{max-height:35px;width:198px;margin:45px auto 25px auto}html.home footer{background:0 0;text-align:center}html.home main{min-height:400px}.alerts ul{width:100%;visibility:hidden;position:fixed;padding:0;left:0;right:0;color:var(--config-color-normal);z-index:1001;margin:0 auto;bottom:15px;max-width:560px}.alerts ul li{margin:10px 0 0 0;padding:0}.alerts ul li div.message{position:relative;padding:12px 35px;margin:0 auto;list-style:none;background:var(--config-color-background-dark);text-align:center;font-size:14px;border-radius:10px;line-height:16px;min-height:16px;box-shadow:0 0 10px rgba(0,0,0,.05);opacity:.95}.alerts ul li div.message a,.alerts ul li div.message span{font-weight:600}.alerts ul li div.message a{border-bottom:dotted 1px var(--config-color-normal)}.alerts ul li div.message i{cursor:pointer;position:absolute;font-size:12px;line-height:24px;top:8px;right:8px;color:var(--config-color-background-dark);background:var(--config-color-normal);width:24px;height:24px;border-radius:50%}.alerts ul li div.message.error{color:#fff!important;background:var(--config-color-danger)!important}.alerts ul li div.message.error a{color:#fff!important;border-bottom:dotted 1px #fff!important}.alerts ul li div.message.error i{color:var(--config-color-danger);background:#fff}.alerts ul li div.message.success{color:#fff!important;background:var(--config-color-success)!important}.alerts ul li div.message.success a{color:#fff;border-bottom:dotted 1px #fff}.alerts ul li div.message.success i{color:var(--config-color-success);background:#fff}.alerts ul li div.message.warning{color:var(--config-color-normal)!important;background:var(--config-color-warning)!important}.alerts ul li div.message.warning a{color:var(--config-color-normal)!important;border-bottom:dotted 1px var(--config-color-normal)!important}.alerts ul li div.message.warning i{color:#fff;background:var(--config-color-normal)!important}.alerts ul li div.message.open{display:block}.alerts ul li div.message.close{display:none}.alerts .cookie-alert{background:var(--config-color-focus-fade)!important;color:var(--config-color-focus)}.alerts .cookie-alert a{color:var(--config-color-focus);font-weight:400;border-bottom:dotted 1px var(--config-color-focus)!important}.alerts .cookie-alert i{color:var(--config-color-focus-fade)!important;background:var(--config-color-focus)!important}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.alerts ul{top:auto;bottom:0;max-width:100%;right:0}.alerts ul li{margin:5px 0 0 0}.alerts ul li div.message{border-radius:0}}.show-nav .alerts ul{right:220px}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.show-nav .alerts ul{right:0}}article{overflow-wrap:break-word;word-wrap:break-word}article h1{font-size:36px}article h2{font-size:24px}article h3{font-size:20px}article h4{font-size:20px}article h5{font-size:18px}article h6{font-size:16px}article h1,article h2,article h3,article h4,article h5,article h6{margin-top:30px!important;margin-bottom:30px!important}article p{line-height:32px;font-size:16px}article .update{display:block;margin-top:50px!important}article table{width:100%;margin:0;margin-bottom:30px!important;border-radius:0;border-bottom:solid 1px var(--config-border-color)}article table thead td{font-weight:500;padding:5px 15px}article table td,article table th{padding:15px;height:auto}article table td:first-child,article table th:first-child{padding-right:10px}article table td:last-child,article table th:last-child{padding-left:10px}article table td p,article table th p{font-size:inherit;line-height:inherit}article table td p:last-child,article table th p:last-child{margin:0}.avatar-container{position:relative}.avatar-container .corner{position:absolute;bottom:-3px;left:-3px}.avatar{width:60px;height:60px;border-radius:50%;background:var(--config-color-background-focus);display:inline-block;overflow:hidden;box-shadow:0 0 6px rgba(0,0,0,.09);position:relative;z-index:1;opacity:1!important}.avatar.hide{display:none}.avatar:before{width:100%;height:100%;z-index:0}.avatar.inline{display:inline-block;vertical-align:middle}.avatar.trans{background:0 0}.avatar .no-shadow{box-shadow:none}.avatar.xs{width:30px;height:30px}.avatar.xxs{width:20px;height:20px}.avatar.small{width:50px;height:50px}.avatar.big{width:100px;height:100px}.avatar.huge{width:150px;height:150px}.box{position:relative;background:var(--config-color-background-fade);border-radius:10px;border-bottom:none;box-shadow:0 0 3px rgba(0,0,0,.05);display:block;padding:30px}.box.padding-tiny{padding:5px}.box.padding-xs{padding:10px}.box.padding-small{padding:15px}.box.y-scroll{overflow-y:auto}.box.danger{background:var(--config-color-danger);color:#fff}.box.danger .box{color:var(--config-color-normal);background:var(--config-color-background-fade)}.box.danger>.button,.box.danger>button{background:#fff;color:var(--config-color-danger)}.box.note{background:var(--config-note-background)}.box.focus{background:var(--config-color-focus);color:var(--config-color-background-fade)}.box.focus .button,.box.focus button{background:var(--config-color-background-fade);color:var(--config-color-focus)}.box.line{background:0 0;border:solid 1px var(--config-color-background-dark);box-shadow:none}.box.warning{background:var(--config-color-warning);color:#2d2d2d}.box.warning .button,.box.warning button{background:rgba(45,45,45,.8);color:var(--config-color-success)}.box .tabs{border-bottom:solid 1px var(--config-border-color);margin:0 -30px;padding:0 30px!important}.box>footer{margin:0 -30px -30px -30px;padding:15px 30px;background:var(--config-color-background-fade);border:solid 1px var(--config-border-color);border-radius:0 0 10px 10px}.box hr{height:1px;background:var(--config-console-background);border:none;margin:30px -30px}.box .label{position:absolute;top:10px;z-index:2;left:10px}.box.fade-bottom{position:relative;overflow:hidden}.box.fade-bottom:after{content:"";position:absolute;display:block;bottom:15px;width:100%;background:#000;background:linear-gradient(180deg,rgba(0,0,0,0) 0,var(--config-color-background-fade) 80%);height:100px;margin:0 -15px}.box .header{position:static;height:40px;padding:20px 30px 20px 30px;margin-bottom:30px;margin:-30px -30px 20px -30px;background:var(--config-color-background-fade);border-bottom:solid 1px #efefef}.box ul.numbers>li{position:relative;margin-right:30px;margin-left:50px}.box ul.numbers>li hr{margin-right:-60px;margin-left:-80px}.box ul.numbers>li .settings{position:absolute;top:3px;left:-50px}.box ul.numbers>li::after{display:block;width:25px;height:25px;line-height:25px;font-size:13px;font-weight:500;border-radius:50%;background:var(--config-color-focus);color:var(--config-color-background);counter-increment:section;content:counter(section);text-align:center;position:absolute;top:3px;right:-45px}.box .scroll{margin:0 -30px;overflow-y:scroll}.box .scroll table{width:100%;margin:0}.box ul.sortable{counter-reset:section}.box ul.sortable>li [data-move-down].round,.box ul.sortable>li [data-move-up].round,.box ul.sortable>li [data-remove].round{background:var(--config-color-focus);color:var(--config-color-background-fade);width:25px;height:25px;line-height:25px;display:inline-block;text-align:center;padding:0;margin-left:5px}.box ul.sortable>li [data-move-down].round:disabled,.box ul.sortable>li [data-move-up].round:disabled,.box ul.sortable>li [data-remove].round:disabled{display:none}.box ul.sortable>li:first-child [data-move-up]{display:none}.box ul.sortable>li:first-child [data-move-up]:disabled{display:inline-block;background:var(--config-color-background)}.box ul.sortable>li:last-child [data-move-down]{display:none}.box ul.sortable>li:last-child [data-move-down]:disabled{display:inline-block;background:var(--config-color-background)}.box .toggle{position:relative;border-top:1px solid var(--config-console-background);border-bottom:1px solid var(--config-console-background);margin:0 -30px;padding:30px 30px 0 30px;height:65px;overflow:hidden}.box .toggle.list{border-bottom:none}.box .toggle.sorts button.ls-ui-open{width:calc(100% - 100px)}.box .toggle button.ls-ui-open{left:0;position:absolute;top:0;width:100%;height:95px;background:0 0;opacity:.5;border-radius:0}.box .toggle .icon-minus,.box .toggle .icon-up-open{display:none}.box .toggle .content{display:none}.box .toggle.open{height:auto}.box .toggle.open .icon-minus,.box .toggle.open .icon-up-open{display:block}.box .toggle.open .icon-down-open,.box .toggle.open .icon-plus{display:none}.box .toggle.open .content{display:block}.box .list li{border-bottom:solid 2px var(--config-border-color);margin:0 -30px 30px -30px;padding:0 30px 30px 30px}.box .list li:last-child{padding-bottom:0;margin-bottom:0;border-bottom:none}@media only screen and (max-width:550px){.box .list li .actions{float:none}}.box .list li .avatar{display:block}.box .list li .avatar.inline{display:inline-block}.box.new{text-align:center}.box.new i{font-size:80px;line-height:80px;font-family:Poppins,sans-serif;font-style:normal;font-weight:300}.box.new b{margin-top:20px;display:block}.box .info{margin:0 -30px;padding:20px 30px;background:var(--config-modal-note-background);color:var(--config-modal-note-color);border-top:solid 1px var(--config-modal-note-border);border-bottom:solid 1px var(--config-modal-note-border)}.box .info hr{background:var(--config-modal-note-border)!important}.box .table-wrap{margin:0 -30px;overflow-y:scroll}.box .table-wrap table{margin:0}a.box{border-right:none;border-left:none}a.box:hover{box-shadow:0 0 1px rgba(0,0,0,.2);opacity:.7}.box-asidex{padding-left:25px!important;padding-right:70px;left:0;background:#f9f9f9;border-radius:0 10px 10px 0;height:calc(100% - 30px);position:absolute;padding-top:30px}.box-asidex:after{content:"";display:block;position:absolute;height:100%;width:51px;background:#fff;top:0;bottom:0;right:-6px}.cover{background:var(--config-color-focus-fade);padding:30px 50px;margin:0 -50px;position:relative;border-bottom:solid 1px var(--config-border-fade)}.cover .title,.cover h1,.cover h2,.cover h3,.cover h4{color:var(--config-color-focus);font-weight:600;margin-bottom:50px!important;font-size:28px;line-height:42px}.cover .title span,.cover h1 span,.cover h2 span,.cover h3 span,.cover h4 span{font-weight:600}.cover i:before{margin:0!important}.cover p{color:var(--config-color-fade)}.cover .button{color:#fff}.cover .link,.cover a{display:inline-flex;color:var(--config-color-focus);border-left:none;border-right:none;cursor:pointer}.cover .link:hover,.cover a:hover{border-bottom-color:var(--config-color-focus)}.cover .link i,.cover a i{margin-right:.2rem}.console .database .row .col{height:452px}.console .database .row .col:after{width:2px;left:20px}.console .database hr{margin:0 -20px;background:var(--config-color-background);height:1px}.console .database h3{font-size:13px;line-height:20px;height:20px;background-color:var(--config-color-fade-super);margin:-20px -20px 0 -20px;padding:10px 20px;border-bottom:solid 1px var(--config-color-background);font-weight:600}.console .database .empty{height:162px;font-size:12px;text-align:center;margin:50px 0}.console .database .empty h4{font-size:13px;font-weight:600;line-height:120px}.console .database .search{background-color:var(--config-color-fade-super);margin:0 -20px 0 -20px;padding:10px 15px}.console .database .search input{height:40px;background-color:#fff;border-radius:25px;padding-top:0;padding-bottom:0}.console .database .code{height:411px;background:var(--config-color-fade-super);margin:0 -20px -20px -20px;padding:20px;width:calc(100% - 10px)}.console .database .code .ide{overflow:scroll;height:451px;margin:-20px;box-shadow:none;border-radius:0}.console .database .paging{background:var(--config-color-fade-super);margin:0 -20px -20px -20px;padding:20px}.console .database .button{margin:0 -20px;padding:0 20px!important;text-align:inherit;color:var(--config-color-focus);width:100%;font-size:15px;line-height:55px;box-sizing:content-box}.console .database .button i{margin-left:8px}.console .database .button:hover{border:none;background:var(--config-color-focus-fade)}.console .database .items{margin:0 -20px;height:262px;overflow-x:hidden;overflow-y:scroll}.console .database .items form{opacity:0;position:relative}.console .database .items form button{position:absolute;top:0;bottom:0;right:0;left:0;width:100%;height:45px;border-radius:0;cursor:pointer}.console .database .items li{padding:0;margin:0 0;line-height:45px;font-size:15px;padding-right:50px;padding-left:30px;position:relative}.console .database .items li i{position:absolute;display:none;left:10px}.console .database .items li .name{display:inline-block;width:100%;height:28px}.console .database .items li.selected,.console .database .items li:hover{background:#f5f5f5}.console .database .items li.selected i,.console .database .items li:hover i{display:block}.console .database .items li:last-child{border-bottom:none}.events.row{border-bottom:solid 1px var(--config-color-fade-super)}.events.row .col span.text{display:inline-block;width:calc(100% - 28px);word-break:break-all}.events.row .col span.action{float:left;cursor:pointer}.events.row:last-child{border-bottom:none}body>footer{color:var(--config-color-fade);line-height:40px;margin:0 -50px;padding:12px 50px;font-size:13px;width:100%;background:#f1f1f1;position:relative;margin-top:80px!important}body>footer:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}body>footer .logo img{height:22px;padding-top:12px}body>footer a{display:inline-flex;color:var(--config-color-fade);font-size:13px}body>footer a:hover{border-bottom-color:var(--config-color-fade)}body>footer a i{margin-right:.2rem}body>footer ul{display:flex;justify-content:center}body>footer ul:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}body>footer ul li{font-size:13px;float:right;margin-left:20px!important}body>footer .copyright{padding-right:2px}.loader{height:0;direction:ltr;position:fixed;top:0;width:0;margin:0 auto;right:0;opacity:0;z-index:4}.load-start~.loader{width:100%;background:var(--config-color-focus);height:3px;opacity:1;transition:width .3s ease-out,opacity .5s ease-out;-moz-transition:width .3s ease-out,opacity .5s ease-out;-webkit-transition:width .3s ease-out,opacity .5s ease-out;-o-transition:width .3s ease-out,opacity .5s ease-out}.www .load-start~.loader{background:#fff}.load-start>*{opacity:0}.load-end>*{opacity:1;transition:opacity .3s ease-out;-moz-transition:opacity .3s ease-out;-webkit-transition:opacity .3s ease-out;-o-transition:opacity .3s ease-out}[data-ls-if]{display:none}[data-service]{opacity:0}.load-service-start{opacity:0}.load-service-end{opacity:1;transition:opacity .5s ease-out;-moz-transition:opacity .5s ease-out;-webkit-transition:opacity .5s ease-out;-o-transition:opacity .5s ease-out}.load-screen{z-index:100000;position:fixed;height:100%;width:100%;background-color:var(--config-color-background-focus);top:0;right:0}.load-screen.loaded{transition:opacity 1s ease-in-out,top 1s .7s;opacity:0;top:-100%}.load-screen .animation{position:absolute;top:45%;left:50%;transform:translate(-50%,-50%) translateZ(1px);width:140px;height:140px}.load-screen .animation div{box-sizing:border-box;display:block;position:absolute;width:124px;height:124px;margin:10px;border:10px solid var(--config-color-focus);border-radius:50%;animation:animation 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:var(--config-color-focus) transparent transparent transparent}.load-screen .animation div:nth-child(1){animation-delay:-.45s}.load-screen .animation div:nth-child(2){animation-delay:-.3s}.load-screen .animation div:nth-child(3){animation-delay:-.15s}@keyframes animation{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.load-screen img{position:absolute;height:20px;bottom:60px;left:50%;transform:translate(-50%,-50%)}.modal-open .modal-bg,.modal-open body .modal-bg{position:fixed;content:'';display:block;width:100%;height:100%;left:0;right:0;top:0;bottom:0;background:#0c0c0c;opacity:.75;z-index:5}.modal{overflow:auto;display:none;position:fixed;transform:translate3d(0,0,0);width:100%;max-height:90%;max-width:640px;background:var(--config-color-background-fade);z-index:1000;box-shadow:0 0 4px rgba(0,0,0,.25);padding:30px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;box-sizing:border-box;text-align:right;white-space:initial;line-height:normal}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.modal{width:calc(100% - 20px)}}.modal.full{max-width:none;max-height:none;height:100%;border-radius:0;padding:80px 120px}.modal.full h1{font-weight:700}.modal.padding-tiny{padding:5px}.modal.padding-xs{padding:10px}.modal.padding-small{padding:15px}.modal.height-tiny>form{height:100px}.modal.height-small>form{height:220px}.modal.width-small{max-width:400px}.modal.width-medium{max-width:500px}.modal.width-large{max-width:800px}.modal.width-xlarge{max-width:950px}.modal.open{display:block}.modalbutton.close{display:none}.modal.fill{height:95%;max-height:95%;max-width:75%}.modal h1,.modal h2{margin-bottom:25px;margin-top:0;font-size:20px;text-align:right}.modal h1,.modal h2,.modal h3,.modal h4,.modal h5,.modal h6{color:inherit!important;line-height:35px}.modal .main,.modal>form{position:relative;border-top:solid 1px var(--config-border-color);padding:30px 30px 0 30px;margin:0 -30px}.modal .main.strip,.modal>form.strip{border:none;padding:0;margin:0}.modal .separator{margin:20px -30px}.modal .bullets{padding-right:40px}.modal .bullets li{margin-bottom:30px!important}.modal .bullets li:before{position:absolute}.modal .info{margin:0 -30px;padding:20px 30px;background:var(--config-modal-note-background);color:var(--config-modal-note-color);border-top:solid 1px var(--config-modal-note-border);border-bottom:solid 1px var(--config-modal-note-border)}.modal .ide.strech{box-shadow:none;border-radius:0;margin:0 -30px}.modal .ide pre{overflow:auto}.modal .paging form{padding:0;margin:0;border-top:none}.modal.sticky-footer form footer{margin:-30px}.modal.sticky-footer footer{position:sticky;bottom:-30px;background:var(--config-color-background-fade-super);height:50px;z-index:1;padding:30px;box-shadow:0 0 1px rgba(0,0,0,.15)}.modal.sticky-footer footer form{display:inline-block}[data-views-current="0"] .scroll-to,[data-views-current="1"] .scroll-to{opacity:0!important;pointer-events:none}.scroll-to-bottom .scroll-to,.scroll-to-top .scroll-to{opacity:1}.scroll-to{opacity:0;display:block;width:40px;height:40px;line-height:40px;border-radius:50%;position:fixed;transform:translateZ(0);margin:30px;padding:0;bottom:0;font-size:18px;z-index:100000;transition:opacity .15s ease-in-out;left:0}.phases{list-style:none;margin:0;padding:0;position:relative}.phases li{display:none}.phases li .badge{display:none}.phases li li{display:block}.phases li.selected{display:block}.phases .number{display:none}.phases h2,.phases h3,.phases h4,.phases h5,.phases h6{margin:0 0 30px 0;text-align:inherit}.container{position:relative}.container .tabs{height:55px;line-height:55px;list-style:none;padding:0;margin-bottom:50px!important;margin-top:-55px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.container .tabs:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.container .tabs li{position:relative}.container .tabs .badge{background:var(--config-color-focus);color:var(--config-color-background-fade);display:inline-block;border-radius:15px;width:15px;height:15px;margin:10px;line-height:15px;padding:3px;text-align:center;font-weight:500!important;position:absolute;top:-5px;right:-35px;font-size:12px}.container .tabs .selected{font-weight:400;color:var(--config-color-focus);opacity:1}.container .tabs .selected:after{content:"";display:block;height:2px;background:var(--config-color-focus);width:calc(100% + 6px);margin:0 -3px;position:absolute;bottom:0;border-radius:2px}.container .tabs .number{display:none}.container .tabs li{float:right;margin-left:50px;color:var(--config-color-focus);opacity:.9;cursor:pointer}.container .tabs li:focus{outline:0}@media only screen and (max-width:550px){.container .tabs li{margin-left:25px}}.container .icon{display:none}@media only screen and (max-width:550px),only screen and (min-width:551px) and (max-width:1198px){.container .tabs{width:auto;overflow-x:scroll;overflow-y:hidden;white-space:nowrap}.container .tabs li{display:inline-block;float:none}}.preview-box{display:grid;place-content:center;padding:40px;background:var(--config-color-background-fade);border:1px dashed var(--config-color-background-dark);border-radius:8px}.preview-box-image{display:grid;place-content:center;width:40px;height:40px;margin-inline:auto;background-color:var(--config-color-background-focus);border-radius:50%}.preview-box-text{margin-top:16px;color:var(--config-color-fade)}.upload-box{--p-header-text-color:var(--config-color-background-fade);--p-header-bg-color:var(--config-color-normal);--p-content-text-color:var(--config-color-normal);--p-content-bg-color:var(--config-color-background-fade);--p-border-color:var(--config-modal-note-border);--box-shadow:0 10px 10px rgba(0, 0, 0, 0.05);--border-radius:6px;--transition:0.2s;position:fixed;z-index:1;overflow:hidden;min-width:285px;box-shadow:var(--box-shadow);border-radius:var(--border-radius);font-size:14px;line-height:1}.upload-box *{all:unset;display:revert}.upload-box-header{display:flex;padding:16px;padding-inline-end:21px;color:var(--p-header-text-color);background-color:var(--p-header-bg-color)}.upload-box-header .icon-button{margin-inline-start:16px}.upload-box-title{align-self:center;margin-inline-end:auto;margin-block-end:0}.upload-box-title .amount::before{content:"("}.upload-box-title .amount::after{content:")"}.upload-box-content{background-color:var(--p-content-bg-color);color:var(--p-content-text-color);height:0;overflow:auto;transition:var(--transition)}.upload-box-content.is-open{height:200px}.upload-box-item{display:flex;align-items:center;padding:13px 20px}.upload-box-item .file-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;margin-inline-end:auto;line-height:normal}.upload-box-item .icon-button{align-self:center;margin-inline-start:16px}.upload-box-item .pill{margin-inline-start:8px}.upload-box-item:not(:last-child){border-bottom:solid 1px var(--p-border-color)}@media only screen and (max-width:550px){.upload-box{inset-inline:16px;inset-block-end:20px}}@media only screen and (min-width:551px) and (max-width:1198px),only screen and (min-width:1199px){.upload-box{max-width:285px;inset-inline-end:24px;inset-block-end:24px}}:root .theme-dark .upload-box{--p-header-text-color:#fff;--p-header-bg-color:var(--config-color-background-dark)}.upload-image{--p-upload-image-size:var(--upload-image-size, 40px);--p-upload-bg-color:var(--config-color-fade-super);--p-upload-icon-color:var(--config-color-fade);position:relative;display:grid;place-content:center;flex-shrink:0;width:var(--p-upload-image-size);height:var(--p-upload-image-size);background-color:var(--p-upload-bg-color);color:var(--p-upload-icon-color);border-radius:50%}.upload-image .icon{position:relative;z-index:20}.upload-image .progress{--progress:var(--progress-value, 0);--zero-value:0 0% 0%/0%;position:absolute;z-index:10;inset:0;border-radius:50%;background:radial-gradient(var(--p-upload-bg-color) 0,var(--p-upload-bg-color) 64%,transparent 64.01%,transparent 100%),conic-gradient(hsl(194 66% 50%) 0,hsl(97 66% 50%) calc(var(--progress) * 1%),hsl(var(--zero-value)) calc(var(--progress) * 1%),hsl(var(--zero-value)) 100%)}.upload-image.is-finished .progress{display:none}:root .theme-dark .upload-image{--p-upload-bg-color:var(--config-color-background-dark);--p-upload-icon-color:var(--config-color-focus)}[data-views-current]:not([data-views-current="0"]):not([data-views-current="1"]) .upload-box{margin-right:4rem}.icon-button{--p-icon-button-size:var(--icon-button-size, 20px);width:var(--p-icon-button-size);height:var(--p-icon-button-size);font-size:var(--p-icon-button-size);transition:.2s;line-height:1;text-align:center;flex-shrink:0;cursor:pointer}.icon-button>::before{margin:0}.icon-button.is-open{transform:rotate(180deg)}.icon-button.is-success{color:var(--config-color-success)}.icon-button:focus,.icon-button:hover{background-color:unset}.icon-button:focus-visible{outline:dashed 1px var(--config-color-primary)}.pill{--p-pill-text-color:var(--config-defalut-color-hsl, var(--pill-text-color));color:hsl(var(--p-pill-text-color));background-color:hsl(var(--p-pill-text-color) / .2);display:inline-grid;place-content:center;padding-inline:12px;height:30px;border-radius:15px;font-size:14px;font-weight:500}.pill.is-disabled{--p-pill-text-color:var(--config-disabled-color-hsl)}.pill.is-pending{--p-pill-text-color:var(--config-pending-color-hsl)}.pill.is-failed{--p-pill-text-color:var(--config-failed-color-hsl)}:root .theme-dark .pill.is-failed{color:#ffcfcf;background-color:#b91c1c}.permissions-matrix td:first-child,.permissions-matrix th:first-child{width:35%}.permissions-matrix td:not(:first-child):not(:last-child),.permissions-matrix th:not(:first-child):not(:last-child){text-align:center}.permissions-matrix td:last-child,.permissions-matrix th:last-child{width:10%}.permissions-matrix td{vertical-align:middle}.permissions-matrix input,.permissions-matrix p{margin-bottom:0}.permissions-matrix p{margin-left:15px}.permissions-matrix i{cursor:pointer}html{padding:0;margin:0;direction:rtl}body{margin:0;background:var(--config-console-background) no-repeat fixed;min-width:300px}ul{padding:0;margin:0}ul li{margin:0;list-style:none}.icon-left-open:before{content:'\e814'!important}.icon-right-open:before{content:'\e813'!important}.icon-right-dir:before{content:'\e84e'!important}.icon-left-dir:before{content:'\e84d'!important}.icon-link-ext:before{-moz-transform:scaleX(-1);-o-transform:scaleX(-1);-webkit-transform:scaleX(-1);transform:scaleX(-1)}.icon-article-alt:before{-moz-transform:scaleX(-1);-o-transform:scaleX(-1);-webkit-transform:scaleX(-1);transform:scaleX(-1)}.copy{border-radius:10px 0 0 10px!important}
\ No newline at end of file
diff --git a/public/scripts/permissions-matrix.js b/public/scripts/permissions-matrix.js
index 81a869a8f4..5196e1cbc1 100644
--- a/public/scripts/permissions-matrix.js
+++ b/public/scripts/permissions-matrix.js
@@ -75,6 +75,14 @@
});
});
},
+ clearPermission(index) {
+ let currentRole = this.permissions[index].role;
+ this.rawPermissions = this.rawPermissions.filter(p => {
+ let {type, role} = this.parsePermission(p);
+
+ return role !== currentRole;
+ });
+ },
removePermission(index) {
let row = this.permissions.splice(index, 1);
if (row.length === 1) {
diff --git a/public/sdk-console/client.ts b/public/sdk-console/client.ts
new file mode 100644
index 0000000000..edf675e789
--- /dev/null
+++ b/public/sdk-console/client.ts
@@ -0,0 +1,442 @@
+import 'isomorphic-form-data';
+import { fetch } from 'cross-fetch';
+import { Models } from './models';
+import { Service } from './service';
+
+type Payload = {
+ [key: string]: any;
+}
+
+type Headers = {
+ [key: string]: string;
+}
+
+type RealtimeResponse = {
+ type: 'error' | 'event' | 'connected' | 'response';
+ data: RealtimeResponseAuthenticated | RealtimeResponseConnected | RealtimeResponseError | RealtimeResponseEvent;
+}
+
+type RealtimeRequest = {
+ type: 'authentication';
+ data: RealtimeRequestAuthenticate;
+}
+
+export type RealtimeResponseEvent = {
+ events: string[];
+ channels: string[];
+ timestamp: number;
+ payload: T;
+}
+
+type RealtimeResponseError = {
+ code: number;
+ message: string;
+}
+
+type RealtimeResponseConnected = {
+ channels: string[];
+ user?: object;
+}
+
+type RealtimeResponseAuthenticated = {
+ to: string;
+ success: boolean;
+ user: object;
+}
+
+type RealtimeRequestAuthenticate = {
+ session: string;
+}
+
+type Realtime = {
+ socket?: WebSocket;
+ timeout?: number;
+ url?: string;
+ lastMessage?: RealtimeResponse;
+ channels: Set;
+ subscriptions: Map) => void
+ }>;
+ subscriptionsCounter: number;
+ reconnect: boolean;
+ reconnectAttempts: number;
+ getTimeout: () => number;
+ connect: () => void;
+ createSocket: () => void;
+ cleanUp: (channels: string[]) => void;
+ onMessage: (event: MessageEvent) => void;
+}
+
+export type UploadProgress = {
+ $id: string;
+ progress: number;
+ sizeUploaded: number;
+ chunksTotal: number;
+ chunksUploaded: number;
+}
+
+class AppwriteException extends Error {
+ code: number;
+ response: string;
+ type: string;
+ constructor(message: string, code: number = 0, type: string = '', response: string = '') {
+ super(message);
+ this.name = 'AppwriteException';
+ this.message = message;
+ this.code = code;
+ this.type = type;
+ this.response = response;
+ }
+}
+
+class Client {
+ config = {
+ endpoint: 'https://HOSTNAME/v1',
+ endpointRealtime: '',
+ project: '',
+ jwt: '',
+ locale: '',
+ };
+ headers: Headers = {
+ 'x-sdk-name': 'Web',
+ 'x-sdk-platform': 'client',
+ 'x-sdk-language': 'web',
+ 'x-sdk-version': '10.0.1',
+ 'X-Appwrite-Response-Format': '1.0.0',
+ };
+
+ /**
+ * Set Endpoint
+ *
+ * Your project endpoint
+ *
+ * @param {string} endpoint
+ *
+ * @returns {this}
+ */
+ setEndpoint(endpoint: string): this {
+ this.config.endpoint = endpoint;
+ this.config.endpointRealtime = this.config.endpointRealtime || this.config.endpoint.replace('https://', 'wss://').replace('http://', 'ws://');
+
+ return this;
+ }
+
+ /**
+ * Set Realtime Endpoint
+ *
+ * @param {string} endpointRealtime
+ *
+ * @returns {this}
+ */
+ setEndpointRealtime(endpointRealtime: string): this {
+ this.config.endpointRealtime = endpointRealtime;
+
+ return this;
+ }
+
+ /**
+ * Set Project
+ *
+ * Your project ID
+ *
+ * @param value string
+ *
+ * @return {this}
+ */
+ setProject(value: string): this {
+ this.headers['X-Appwrite-Project'] = value;
+ this.config.project = value;
+ return this;
+ }
+
+ /**
+ * Set JWT
+ *
+ * Your secret JSON Web Token
+ *
+ * @param value string
+ *
+ * @return {this}
+ */
+ setJWT(value: string): this {
+ this.headers['X-Appwrite-JWT'] = value;
+ this.config.jwt = value;
+ return this;
+ }
+
+ /**
+ * Set Locale
+ *
+ * @param value string
+ *
+ * @return {this}
+ */
+ setLocale(value: string): this {
+ this.headers['X-Appwrite-Locale'] = value;
+ this.config.locale = value;
+ return this;
+ }
+
+
+ private realtime: Realtime = {
+ socket: undefined,
+ timeout: undefined,
+ url: '',
+ channels: new Set(),
+ subscriptions: new Map(),
+ subscriptionsCounter: 0,
+ reconnect: true,
+ reconnectAttempts: 0,
+ lastMessage: undefined,
+ connect: () => {
+ clearTimeout(this.realtime.timeout);
+ this.realtime.timeout = window?.setTimeout(() => {
+ this.realtime.createSocket();
+ }, 50);
+ },
+ getTimeout: () => {
+ switch (true) {
+ case this.realtime.reconnectAttempts < 5:
+ return 1000;
+ case this.realtime.reconnectAttempts < 15:
+ return 5000;
+ case this.realtime.reconnectAttempts < 100:
+ return 10_000;
+ default:
+ return 60_000;
+ }
+ },
+ createSocket: () => {
+ if (this.realtime.channels.size < 1) return;
+
+ const channels = new URLSearchParams();
+ channels.set('project', this.config.project);
+ this.realtime.channels.forEach(channel => {
+ channels.append('channels[]', channel);
+ });
+
+ const url = this.config.endpointRealtime + '/realtime?' + channels.toString();
+
+ if (
+ url !== this.realtime.url || // Check if URL is present
+ !this.realtime.socket || // Check if WebSocket has not been created
+ this.realtime.socket?.readyState > WebSocket.OPEN // Check if WebSocket is CLOSING (3) or CLOSED (4)
+ ) {
+ if (
+ this.realtime.socket &&
+ this.realtime.socket?.readyState < WebSocket.CLOSING // Close WebSocket if it is CONNECTING (0) or OPEN (1)
+ ) {
+ this.realtime.reconnect = false;
+ this.realtime.socket.close();
+ }
+
+ this.realtime.url = url;
+ this.realtime.socket = new WebSocket(url);
+ this.realtime.socket.addEventListener('message', this.realtime.onMessage);
+ this.realtime.socket.addEventListener('open', _event => {
+ this.realtime.reconnectAttempts = 0;
+ });
+ this.realtime.socket.addEventListener('close', event => {
+ if (
+ !this.realtime.reconnect ||
+ (
+ this.realtime?.lastMessage?.type === 'error' && // Check if last message was of type error
+ (this.realtime?.lastMessage.data).code === 1008 // Check for policy violation 1008
+ )
+ ) {
+ this.realtime.reconnect = true;
+ return;
+ }
+
+ const timeout = this.realtime.getTimeout();
+ console.error(`Realtime got disconnected. Reconnect will be attempted in ${timeout / 1000} seconds.`, event.reason);
+
+ setTimeout(() => {
+ this.realtime.reconnectAttempts++;
+ this.realtime.createSocket();
+ }, timeout);
+ })
+ }
+ },
+ onMessage: (event) => {
+ try {
+ const message: RealtimeResponse = JSON.parse(event.data);
+ this.realtime.lastMessage = message;
+ switch (message.type) {
+ case 'connected':
+ const cookie = JSON.parse(window.localStorage.getItem('cookieFallback') ?? '{}');
+ const session = cookie?.[`a_session_${this.config.project}`];
+ const messageData = message.data;
+
+ if (session && !messageData.user) {
+ this.realtime.socket?.send(JSON.stringify({
+ type: 'authentication',
+ data: {
+ session
+ }
+ }));
+ }
+ break;
+ case 'event':
+ let data = >message.data;
+ if (data?.channels) {
+ const isSubscribed = data.channels.some(channel => this.realtime.channels.has(channel));
+ if (!isSubscribed) return;
+ this.realtime.subscriptions.forEach(subscription => {
+ if (data.channels.some(channel => subscription.channels.includes(channel))) {
+ setTimeout(() => subscription.callback(data));
+ }
+ })
+ }
+ break;
+ case 'error':
+ throw message.data;
+ default:
+ break;
+ }
+ } catch (e) {
+ console.error(e);
+ }
+ },
+ cleanUp: channels => {
+ this.realtime.channels.forEach(channel => {
+ if (channels.includes(channel)) {
+ let found = Array.from(this.realtime.subscriptions).some(([_key, subscription] )=> {
+ return subscription.channels.includes(channel);
+ })
+
+ if (!found) {
+ this.realtime.channels.delete(channel);
+ }
+ }
+ })
+ }
+ }
+
+ /**
+ * Subscribes to Appwrite events and passes you the payload in realtime.
+ *
+ * @param {string|string[]} channels
+ * Channel to subscribe - pass a single channel as a string or multiple with an array of strings.
+ *
+ * Possible channels are:
+ * - account
+ * - collections
+ * - collections.[ID]
+ * - collections.[ID].documents
+ * - documents
+ * - documents.[ID]
+ * - files
+ * - files.[ID]
+ * - executions
+ * - executions.[ID]
+ * - functions.[ID]
+ * - teams
+ * - teams.[ID]
+ * - memberships
+ * - memberships.[ID]
+ * @param {(payload: RealtimeMessage) => void} callback Is called on every realtime update.
+ * @returns {() => void} Unsubscribes from events.
+ */
+ subscribe(channels: string | string[], callback: (payload: RealtimeResponseEvent) => void): () => void {
+ let channelArray = typeof channels === 'string' ? [channels] : channels;
+ channelArray.forEach(channel => this.realtime.channels.add(channel));
+
+ const counter = this.realtime.subscriptionsCounter++;
+ this.realtime.subscriptions.set(counter, {
+ channels: channelArray,
+ callback
+ });
+
+ this.realtime.connect();
+
+ return () => {
+ this.realtime.subscriptions.delete(counter);
+ this.realtime.cleanUp(channelArray);
+ this.realtime.connect();
+ }
+ }
+
+ async call(method: string, url: URL, headers: Headers = {}, params: Payload = {}): Promise {
+ method = method.toUpperCase();
+
+
+ headers = Object.assign({}, this.headers, headers);
+
+ let options: RequestInit = {
+ method,
+ headers,
+ credentials: 'include'
+ };
+
+ if (typeof window !== 'undefined' && window.localStorage) {
+ headers['X-Fallback-Cookies'] = window.localStorage.getItem('cookieFallback') ?? '';
+ }
+
+ if (method === 'GET') {
+ for (const [key, value] of Object.entries(Service.flatten(params))) {
+ url.searchParams.append(key, value);
+ }
+ } else {
+ switch (headers['content-type']) {
+ case 'application/json':
+ options.body = JSON.stringify(params);
+ break;
+
+ case 'multipart/form-data':
+ let formData = new FormData();
+
+ for (const key in params) {
+ if (Array.isArray(params[key])) {
+ params[key].forEach((value: any) => {
+ formData.append(key + '[]', value);
+ })
+ } else {
+ formData.append(key, params[key]);
+ }
+ }
+
+ options.body = formData;
+ delete headers['content-type'];
+ break;
+ }
+ }
+
+ try {
+ let data = null;
+ const response = await fetch(url.toString(), options);
+
+ if (response.headers.get('content-type')?.includes('application/json')) {
+ data = await response.json();
+ } else {
+ data = {
+ message: await response.text()
+ };
+ }
+
+ if (400 <= response.status) {
+ throw new AppwriteException(data?.message, response.status, data?.type, data);
+ }
+
+ const cookieFallback = response.headers.get('X-Fallback-Cookies');
+
+ if (typeof window !== 'undefined' && window.localStorage && cookieFallback) {
+ window.console.warn('Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.');
+ window.localStorage.setItem('cookieFallback', cookieFallback);
+ }
+
+ return data;
+ } catch (e) {
+ if (e instanceof AppwriteException) {
+ throw e;
+ }
+ throw new AppwriteException((e).message);
+ }
+ }
+}
+
+export { Client, AppwriteException };
+export { Query } from './query';
+export type { Models, Payload };
+export type { QueryTypes, QueryTypesList } from './query';
diff --git a/public/sdk-console/id.ts b/public/sdk-console/id.ts
new file mode 100644
index 0000000000..9577e4b179
--- /dev/null
+++ b/public/sdk-console/id.ts
@@ -0,0 +1,9 @@
+export class ID {
+ public static custom(id: string): string {
+ return id
+ }
+
+ public static unique(): string {
+ return 'unique()'
+ }
+}
\ No newline at end of file
diff --git a/public/sdk-console/index.ts b/public/sdk-console/index.ts
new file mode 100644
index 0000000000..3b9f1b87a3
--- /dev/null
+++ b/public/sdk-console/index.ts
@@ -0,0 +1,13 @@
+export { Client, Query, AppwriteException } from './client';
+export { Account } from './services/account';
+export { Avatars } from './services/avatars';
+export { Databases } from './services/databases';
+export { Functions } from './services/functions';
+export { Locale } from './services/locale';
+export { Storage } from './services/storage';
+export { Teams } from './services/teams';
+export type { Models, Payload, RealtimeResponseEvent, UploadProgress } from './client';
+export type { QueryTypes, QueryTypesList } from './query';
+export { Permission } from './permission';
+export { Role } from './role';
+export { ID } from './id';
\ No newline at end of file
diff --git a/public/sdk-console/models.ts b/public/sdk-console/models.ts
new file mode 100644
index 0000000000..2692a83730
--- /dev/null
+++ b/public/sdk-console/models.ts
@@ -0,0 +1,781 @@
+export namespace Models {
+ /**
+ * Documents List
+ */
+ export type DocumentList = {
+ /**
+ * Total number of documents documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of documents.
+ */
+ documents: Document[];
+ }
+ /**
+ * Sessions List
+ */
+ export type SessionList = {
+ /**
+ * Total number of sessions documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of sessions.
+ */
+ sessions: Session[];
+ }
+ /**
+ * Logs List
+ */
+ export type LogList = {
+ /**
+ * Total number of logs documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of logs.
+ */
+ logs: Log[];
+ }
+ /**
+ * Files List
+ */
+ export type FileList = {
+ /**
+ * Total number of files documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of files.
+ */
+ files: File[];
+ }
+ /**
+ * Teams List
+ */
+ export type TeamList = {
+ /**
+ * Total number of teams documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of teams.
+ */
+ teams: Team[];
+ }
+ /**
+ * Memberships List
+ */
+ export type MembershipList = {
+ /**
+ * Total number of memberships documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of memberships.
+ */
+ memberships: Membership[];
+ }
+ /**
+ * Executions List
+ */
+ export type ExecutionList = {
+ /**
+ * Total number of executions documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of executions.
+ */
+ executions: Execution[];
+ }
+ /**
+ * Countries List
+ */
+ export type CountryList = {
+ /**
+ * Total number of countries documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of countries.
+ */
+ countries: Country[];
+ }
+ /**
+ * Continents List
+ */
+ export type ContinentList = {
+ /**
+ * Total number of continents documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of continents.
+ */
+ continents: Continent[];
+ }
+ /**
+ * Languages List
+ */
+ export type LanguageList = {
+ /**
+ * Total number of languages documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of languages.
+ */
+ languages: Language[];
+ }
+ /**
+ * Currencies List
+ */
+ export type CurrencyList = {
+ /**
+ * Total number of currencies documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of currencies.
+ */
+ currencies: Currency[];
+ }
+ /**
+ * Phones List
+ */
+ export type PhoneList = {
+ /**
+ * Total number of phones documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of phones.
+ */
+ phones: Phone[];
+ }
+ /**
+ * Document
+ */
+ export type Document = {
+ /**
+ * Document ID.
+ */
+ $id: string;
+ /**
+ * Collection ID.
+ */
+ $collectionId: string;
+ /**
+ * Database ID.
+ */
+ $databaseId: string;
+ /**
+ * Document creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * Document update date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * Document permissions. [Learn more about permissions](/docs/permissions).
+ */
+ $permissions: string[];
+ [key: string]: any;
+ }
+ /**
+ * Log
+ */
+ export type Log = {
+ /**
+ * Event name.
+ */
+ event: string;
+ /**
+ * User ID.
+ */
+ userId: string;
+ /**
+ * User Email.
+ */
+ userEmail: string;
+ /**
+ * User Name.
+ */
+ userName: string;
+ /**
+ * API mode when event triggered.
+ */
+ mode: string;
+ /**
+ * IP session in use when the session was created.
+ */
+ ip: string;
+ /**
+ * Log creation date in ISO 8601 format.
+ */
+ time: string;
+ /**
+ * Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json).
+ */
+ osCode: string;
+ /**
+ * Operating system name.
+ */
+ osName: string;
+ /**
+ * Operating system version.
+ */
+ osVersion: string;
+ /**
+ * Client type.
+ */
+ clientType: string;
+ /**
+ * Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json).
+ */
+ clientCode: string;
+ /**
+ * Client name.
+ */
+ clientName: string;
+ /**
+ * Client version.
+ */
+ clientVersion: string;
+ /**
+ * Client engine name.
+ */
+ clientEngine: string;
+ /**
+ * Client engine name.
+ */
+ clientEngineVersion: string;
+ /**
+ * Device name.
+ */
+ deviceName: string;
+ /**
+ * Device brand name.
+ */
+ deviceBrand: string;
+ /**
+ * Device model name.
+ */
+ deviceModel: string;
+ /**
+ * Country two-character ISO 3166-1 alpha code.
+ */
+ countryCode: string;
+ /**
+ * Country name.
+ */
+ countryName: string;
+ }
+ /**
+ * Account
+ */
+ export type Account = {
+ /**
+ * User ID.
+ */
+ $id: string;
+ /**
+ * User creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * User update date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * User name.
+ */
+ name: string;
+ /**
+ * User registration date in ISO 8601 format.
+ */
+ registration: string;
+ /**
+ * User status. Pass `true` for enabled and `false` for disabled.
+ */
+ status: boolean;
+ /**
+ * Password update time in ISO 8601 format.
+ */
+ passwordUpdate: string;
+ /**
+ * User email address.
+ */
+ email: string;
+ /**
+ * User phone number in E.164 format.
+ */
+ phone: string;
+ /**
+ * Email verification status.
+ */
+ emailVerification: boolean;
+ /**
+ * Phone verification status.
+ */
+ phoneVerification: boolean;
+ /**
+ * User preferences as a key-value object
+ */
+ prefs: Preferences;
+ }
+ /**
+ * Preferences
+ */
+ export type Preferences = {
+ [key: string]: any;
+ }
+ /**
+ * Session
+ */
+ export type Session = {
+ /**
+ * Session ID.
+ */
+ $id: string;
+ /**
+ * Session creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * User ID.
+ */
+ userId: string;
+ /**
+ * Session expiration date in ISO 8601 format.
+ */
+ expire: string;
+ /**
+ * Session Provider.
+ */
+ provider: string;
+ /**
+ * Session Provider User ID.
+ */
+ providerUid: string;
+ /**
+ * Session Provider Access Token.
+ */
+ providerAccessToken: string;
+ /**
+ * The date of when the access token expires in ISO 8601 format.
+ */
+ providerAccessTokenExpiry: string;
+ /**
+ * Session Provider Refresh Token.
+ */
+ providerRefreshToken: string;
+ /**
+ * IP in use when the session was created.
+ */
+ ip: string;
+ /**
+ * Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json).
+ */
+ osCode: string;
+ /**
+ * Operating system name.
+ */
+ osName: string;
+ /**
+ * Operating system version.
+ */
+ osVersion: string;
+ /**
+ * Client type.
+ */
+ clientType: string;
+ /**
+ * Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json).
+ */
+ clientCode: string;
+ /**
+ * Client name.
+ */
+ clientName: string;
+ /**
+ * Client version.
+ */
+ clientVersion: string;
+ /**
+ * Client engine name.
+ */
+ clientEngine: string;
+ /**
+ * Client engine name.
+ */
+ clientEngineVersion: string;
+ /**
+ * Device name.
+ */
+ deviceName: string;
+ /**
+ * Device brand name.
+ */
+ deviceBrand: string;
+ /**
+ * Device model name.
+ */
+ deviceModel: string;
+ /**
+ * Country two-character ISO 3166-1 alpha code.
+ */
+ countryCode: string;
+ /**
+ * Country name.
+ */
+ countryName: string;
+ /**
+ * Returns true if this the current user session.
+ */
+ current: boolean;
+ }
+ /**
+ * Token
+ */
+ export type Token = {
+ /**
+ * Token ID.
+ */
+ $id: string;
+ /**
+ * Token creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * User ID.
+ */
+ userId: string;
+ /**
+ * Token secret key. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
+ */
+ secret: string;
+ /**
+ * Token expiration date in ISO 8601 format.
+ */
+ expire: string;
+ }
+ /**
+ * JWT
+ */
+ export type Jwt = {
+ /**
+ * JWT encoded string.
+ */
+ jwt: string;
+ }
+ /**
+ * Locale
+ */
+ export type Locale = {
+ /**
+ * User IP address.
+ */
+ ip: string;
+ /**
+ * Country code in [ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) two-character format
+ */
+ countryCode: string;
+ /**
+ * Country name. This field support localization.
+ */
+ country: string;
+ /**
+ * Continent code. A two character continent code "AF" for Africa, "AN" for Antarctica, "AS" for Asia, "EU" for Europe, "NA" for North America, "OC" for Oceania, and "SA" for South America.
+ */
+ continentCode: string;
+ /**
+ * Continent name. This field support localization.
+ */
+ continent: string;
+ /**
+ * True if country is part of the Europian Union.
+ */
+ eu: boolean;
+ /**
+ * Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format
+ */
+ currency: string;
+ }
+ /**
+ * File
+ */
+ export type File = {
+ /**
+ * File ID.
+ */
+ $id: string;
+ /**
+ * Bucket ID.
+ */
+ bucketId: string;
+ /**
+ * File creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * File update date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * File permissions. [Learn more about permissions](/docs/permissions).
+ */
+ $permissions: string[];
+ /**
+ * File name.
+ */
+ name: string;
+ /**
+ * File MD5 signature.
+ */
+ signature: string;
+ /**
+ * File mime type.
+ */
+ mimeType: string;
+ /**
+ * File original size in bytes.
+ */
+ sizeOriginal: number;
+ /**
+ * Total number of chunks available
+ */
+ chunksTotal: number;
+ /**
+ * Total number of chunks uploaded
+ */
+ chunksUploaded: number;
+ }
+ /**
+ * Team
+ */
+ export type Team = {
+ /**
+ * Team ID.
+ */
+ $id: string;
+ /**
+ * Team creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * Team update date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * Team name.
+ */
+ name: string;
+ /**
+ * Total number of team members.
+ */
+ total: number;
+ }
+ /**
+ * Membership
+ */
+ export type Membership = {
+ /**
+ * Membership ID.
+ */
+ $id: string;
+ /**
+ * Membership creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * Membership update date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * User ID.
+ */
+ userId: string;
+ /**
+ * User name.
+ */
+ userName: string;
+ /**
+ * User email address.
+ */
+ userEmail: string;
+ /**
+ * Team ID.
+ */
+ teamId: string;
+ /**
+ * Team name.
+ */
+ teamName: string;
+ /**
+ * Date, the user has been invited to join the team in ISO 8601 format.
+ */
+ invited: string;
+ /**
+ * Date, the user has accepted the invitation to join the team in ISO 8601 format.
+ */
+ joined: string;
+ /**
+ * User confirmation status, true if the user has joined the team or false otherwise.
+ */
+ confirm: boolean;
+ /**
+ * User list of roles
+ */
+ roles: string[];
+ }
+ /**
+ * Execution
+ */
+ export type Execution = {
+ /**
+ * Execution ID.
+ */
+ $id: string;
+ /**
+ * Execution creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * Execution upate date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * Execution roles.
+ */
+ $permissions: string[];
+ /**
+ * Function ID.
+ */
+ functionId: string;
+ /**
+ * The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.
+ */
+ trigger: string;
+ /**
+ * The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.
+ */
+ status: string;
+ /**
+ * The script status code.
+ */
+ statusCode: number;
+ /**
+ * The script response output string. Logs the last 4,000 characters of the execution response output.
+ */
+ response: string;
+ /**
+ * The script stdout output string. Logs the last 4,000 characters of the execution stdout output. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
+ */
+ stdout: string;
+ /**
+ * The script stderr output string. Logs the last 4,000 characters of the execution stderr output. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
+ */
+ stderr: string;
+ /**
+ * The script execution duration in seconds.
+ */
+ duration: number;
+ }
+ /**
+ * Country
+ */
+ export type Country = {
+ /**
+ * Country name.
+ */
+ name: string;
+ /**
+ * Country two-character ISO 3166-1 alpha code.
+ */
+ code: string;
+ }
+ /**
+ * Continent
+ */
+ export type Continent = {
+ /**
+ * Continent name.
+ */
+ name: string;
+ /**
+ * Continent two letter code.
+ */
+ code: string;
+ }
+ /**
+ * Language
+ */
+ export type Language = {
+ /**
+ * Language name.
+ */
+ name: string;
+ /**
+ * Language two-character ISO 639-1 codes.
+ */
+ code: string;
+ /**
+ * Language native name.
+ */
+ nativeName: string;
+ }
+ /**
+ * Currency
+ */
+ export type Currency = {
+ /**
+ * Currency symbol.
+ */
+ symbol: string;
+ /**
+ * Currency name.
+ */
+ name: string;
+ /**
+ * Currency native symbol.
+ */
+ symbolNative: string;
+ /**
+ * Number of decimal digits.
+ */
+ decimalDigits: number;
+ /**
+ * Currency digit rounding.
+ */
+ rounding: number;
+ /**
+ * Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format.
+ */
+ code: string;
+ /**
+ * Currency plural name
+ */
+ namePlural: string;
+ }
+ /**
+ * Phone
+ */
+ export type Phone = {
+ /**
+ * Phone code.
+ */
+ code: string;
+ /**
+ * Country two-character ISO 3166-1 alpha code.
+ */
+ countryCode: string;
+ /**
+ * Country name.
+ */
+ countryName: string;
+ }
+}
diff --git a/public/sdk-console/permission.ts b/public/sdk-console/permission.ts
new file mode 100644
index 0000000000..bfc330a166
--- /dev/null
+++ b/public/sdk-console/permission.ts
@@ -0,0 +1,22 @@
+export class Permission {
+
+ static read = (role: string): string => {
+ return `read("${role}")`
+ }
+
+ static write = (role: string): string => {
+ return `write("${role}")`
+ }
+
+ static create = (role: string): string => {
+ return `create("${role}")`
+ }
+
+ static update = (role: string): string => {
+ return `update("${role}")`
+ }
+
+ static delete = (role: string): string => {
+ return `delete("${role}")`
+ }
+}
diff --git a/public/sdk-console/query.ts b/public/sdk-console/query.ts
new file mode 100644
index 0000000000..962a6c8f7e
--- /dev/null
+++ b/public/sdk-console/query.ts
@@ -0,0 +1,56 @@
+type QueryTypesSingle = string | number | boolean;
+export type QueryTypesList = string[] | number[] | boolean[];
+export type QueryTypes = QueryTypesSingle | QueryTypesList;
+
+export class Query {
+ static equal = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "equal", value);
+
+ static notEqual = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "notEqual", value);
+
+ static lessThan = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "lessThan", value);
+
+ static lessThanEqual = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "lessThanEqual", value);
+
+ static greaterThan = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "greaterThan", value);
+
+ static greaterThanEqual = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "greaterThanEqual", value);
+
+ static search = (attribute: string, value: string): string =>
+ Query.addQuery(attribute, "search", value);
+
+ static orderDesc = (attribute: string): string =>
+ `orderDesc("${attribute}")`;
+
+ static orderAsc = (attribute: string): string =>
+ `orderAsc("${attribute}")`;
+
+ static cursorAfter = (documentId: string): string =>
+ `cursorAfter("${documentId}")`;
+
+ static cursorBefore = (documentId: string): string =>
+ `cursorBefore("${documentId}")`;
+
+ static limit = (limit: number): string =>
+ `limit(${limit})`;
+
+ static offset = (offset: number): string =>
+ `offset(${offset})`;
+
+ private static addQuery = (attribute: string, method: string, value: QueryTypes): string =>
+ value instanceof Array
+ ? `${method}("${attribute}", [${value
+ .map((v: QueryTypesSingle) => Query.parseValues(v))
+ .join(",")}])`
+ : `${method}("${attribute}", [${Query.parseValues(value)}])`;
+
+ private static parseValues = (value: QueryTypes): string =>
+ typeof value === "string" || value instanceof String
+ ? `"${value}"`
+ : `${value}`;
+}
\ No newline at end of file
diff --git a/public/sdk-console/role.ts b/public/sdk-console/role.ts
new file mode 100644
index 0000000000..579e6f8195
--- /dev/null
+++ b/public/sdk-console/role.ts
@@ -0,0 +1,38 @@
+export class Role {
+ public static any(): string {
+ return 'any'
+ }
+
+ public static user(id: string, status: string = ''): string {
+ if(status === '') {
+ return `user:${id}`
+ }
+ return `user:${id}/${status}`
+ }
+
+ public static users(status: string = ''): string {
+ if(status === '') {
+ return 'users'
+ }
+ return `users/${status}`
+ }
+
+ public static guests(): string {
+ return 'guests'
+ }
+
+ public static team(id: string, role: string = ''): string {
+ if(role === '') {
+ return `team:${id}`
+ }
+ return `team:${id}/${role}`
+ }
+
+ public static member(id: string): string {
+ return `member:${id}`
+ }
+
+ public static status(status: string): string {
+ return `status:${status}`
+ }
+}
\ No newline at end of file
diff --git a/public/sdk-console/service.ts b/public/sdk-console/service.ts
new file mode 100644
index 0000000000..0c9662be37
--- /dev/null
+++ b/public/sdk-console/service.ts
@@ -0,0 +1,30 @@
+import { Client } from './client';
+import type { Payload } from './client';
+
+export class Service {
+ static CHUNK_SIZE = 5*1024*1024; // 5MB
+
+ client: Client;
+
+ constructor(client: Client) {
+ this.client = client;
+ }
+
+ static flatten(data: Payload, prefix = ''): Payload {
+ let output: Payload = {};
+
+ for (const key in data) {
+ let value = data[key];
+ let finalKey = prefix ? `${prefix}[${key}]` : key;
+
+ if (Array.isArray(value)) {
+ output = Object.assign(output, this.flatten(value, finalKey));
+ }
+ else {
+ output[finalKey] = value;
+ }
+ }
+
+ return output;
+ }
+}
\ No newline at end of file
diff --git a/public/sdk-console/services/account.ts b/public/sdk-console/services/account.ts
new file mode 100644
index 0000000000..be45b6ac1f
--- /dev/null
+++ b/public/sdk-console/services/account.ts
@@ -0,0 +1,997 @@
+import { Service } from '../service';
+import { AppwriteException, Client } from '../client';
+import type { Models } from '../models';
+import type { UploadProgress, Payload } from '../client';
+
+export class Account extends Service {
+
+ constructor(client: Client)
+ {
+ super(client);
+ }
+
+ /**
+ * Get Account
+ *
+ * Get currently logged in user data as JSON object.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async get(): Promise> {
+ let path = '/account';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Account
+ *
+ * Use this endpoint to allow a new user to register a new account in your
+ * project. After the user registration completes successfully, you can use
+ * the [/account/verfication](/docs/client/account#accountCreateVerification)
+ * route to start verifying the user email address. To allow the new user to
+ * login to their new account, you need to create a new [account
+ * session](/docs/client/account#accountCreateSession).
+ *
+ * @param {string} userId
+ * @param {string} email
+ * @param {string} password
+ * @param {string} name
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async create(userId: string, email: string, password: string, name?: string): Promise> {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ if (typeof name !== 'undefined') {
+ payload['name'] = name;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Email
+ *
+ * Update currently logged in user account email address. After changing user
+ * address, the user confirmation status will get reset. A new confirmation
+ * email is not sent automatically however you can use the send confirmation
+ * email endpoint again to send the confirmation email. For security measures,
+ * user password is required to complete this request.
+ * This endpoint can also be used to convert an anonymous account to a normal
+ * one, by passing an email address and a new password.
+ *
+ *
+ * @param {string} email
+ * @param {string} password
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateEmail(email: string, password: string): Promise> {
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account/email';
+ let payload: Payload = {};
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Account JWT
+ *
+ * Use this endpoint to create a JSON Web Token. You can use the resulting JWT
+ * to authenticate on behalf of the current user when working with the
+ * Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes
+ * from its creation and will be invalid if the user will logout in that time
+ * frame.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createJWT(): Promise {
+ let path = '/account/jwt';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Account Logs
+ *
+ * Get currently logged in user list of latest security activity logs. Each
+ * log returns user IP address, location and date and time of log.
+ *
+ * @param {string[]} queries
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listLogs(queries?: string[]): Promise {
+ let path = '/account/logs';
+ let payload: Payload = {};
+
+ if (typeof queries !== 'undefined') {
+ payload['queries'] = queries;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Name
+ *
+ * Update currently logged in user account name.
+ *
+ * @param {string} name
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateName(name: string): Promise> {
+ if (typeof name === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "name"');
+ }
+
+ let path = '/account/name';
+ let payload: Payload = {};
+
+ if (typeof name !== 'undefined') {
+ payload['name'] = name;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Password
+ *
+ * Update currently logged in user password. For validation, user is required
+ * to pass in the new password, and the old password. For users created with
+ * OAuth, Team Invites and Magic URL, oldPassword is optional.
+ *
+ * @param {string} password
+ * @param {string} oldPassword
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePassword(password: string, oldPassword?: string): Promise> {
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account/password';
+ let payload: Payload = {};
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ if (typeof oldPassword !== 'undefined') {
+ payload['oldPassword'] = oldPassword;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Phone
+ *
+ * Update the currently logged in user's phone number. After updating the
+ * phone number, the phone verification status will be reset. A confirmation
+ * SMS is not sent automatically, however you can use the [POST
+ * /account/verification/phone](/docs/client/account#accountCreatePhoneVerification)
+ * endpoint to send a confirmation SMS.
+ *
+ * @param {string} phone
+ * @param {string} password
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePhone(phone: string, password: string): Promise> {
+ if (typeof phone === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "phone"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account/phone';
+ let payload: Payload = {};
+
+ if (typeof phone !== 'undefined') {
+ payload['phone'] = phone;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get Account Preferences
+ *
+ * Get currently logged in user preferences as a key-value object.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async getPrefs(): Promise {
+ let path = '/account/prefs';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Preferences
+ *
+ * Update currently logged in user account preferences. The object you pass is
+ * stored as is, and replaces any previous value. The maximum allowed prefs
+ * size is 64kB and throws error if exceeded.
+ *
+ * @param {object} prefs
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePrefs(prefs: object): Promise> {
+ if (typeof prefs === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "prefs"');
+ }
+
+ let path = '/account/prefs';
+ let payload: Payload = {};
+
+ if (typeof prefs !== 'undefined') {
+ payload['prefs'] = prefs;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Password Recovery
+ *
+ * Sends the user an email with a temporary secret key for password reset.
+ * When the user clicks the confirmation link he is redirected back to your
+ * app password reset URL with the secret key and email address values
+ * attached to the URL query string. Use the query string params to submit a
+ * request to the [PUT
+ * /account/recovery](/docs/client/account#accountUpdateRecovery) endpoint to
+ * complete the process. The verification link sent to the user's email
+ * address is valid for 1 hour.
+ *
+ * @param {string} email
+ * @param {string} url
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createRecovery(email: string, url: string): Promise {
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof url === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "url"');
+ }
+
+ let path = '/account/recovery';
+ let payload: Payload = {};
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Password Recovery (confirmation)
+ *
+ * Use this endpoint to complete the user account password reset. Both the
+ * **userId** and **secret** arguments will be passed as query parameters to
+ * the redirect URL you have provided when sending your request to the [POST
+ * /account/recovery](/docs/client/account#accountCreateRecovery) endpoint.
+ *
+ * Please note that in order to avoid a [Redirect
+ * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
+ * the only valid redirect URLs are the ones from domains you have set when
+ * adding your platforms in the console interface.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @param {string} password
+ * @param {string} passwordAgain
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateRecovery(userId: string, secret: string, password: string, passwordAgain: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ if (typeof passwordAgain === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "passwordAgain"');
+ }
+
+ let path = '/account/recovery';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ if (typeof passwordAgain !== 'undefined') {
+ payload['passwordAgain'] = passwordAgain;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Account Sessions
+ *
+ * Get currently logged in user list of active sessions across different
+ * devices.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listSessions(): Promise {
+ let path = '/account/sessions';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Delete All Account Sessions
+ *
+ * Delete all sessions from the user account and remove any sessions cookies
+ * from the end client.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async deleteSessions(): Promise<{}> {
+ let path = '/account/sessions';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('delete', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Anonymous Session
+ *
+ * Use this endpoint to allow a new user to register an anonymous account in
+ * your project. This route will also create a new session for the user. To
+ * allow the new user to convert an anonymous account to a normal account, you
+ * need to update its [email and
+ * password](/docs/client/account#accountUpdateEmail) or create an [OAuth2
+ * session](/docs/client/account#accountCreateOAuth2Session).
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createAnonymousSession(): Promise {
+ let path = '/account/sessions/anonymous';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Account Session with Email
+ *
+ * Allow the user to login into their account by providing a valid email and
+ * password combination. This route will create a new session for the user.
+ *
+ * @param {string} email
+ * @param {string} password
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createEmailSession(email: string, password: string): Promise {
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account/sessions/email';
+ let payload: Payload = {};
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Magic URL session
+ *
+ * Sends the user an email with a secret key for creating a session. If the
+ * provided user ID has not be registered, a new user will be created. When
+ * the user clicks the link in the email, the user is redirected back to the
+ * URL you provided with the secret key and userId values attached to the URL
+ * query string. Use the query string parameters to submit a request to the
+ * [PUT
+ * /account/sessions/magic-url](/docs/client/account#accountUpdateMagicURLSession)
+ * endpoint to complete the login process. The link sent to the user's email
+ * address is valid for 1 hour. If you are on a mobile device you can leave
+ * the URL parameter empty, so that the login completion will be handled by
+ * your Appwrite instance by default.
+ *
+ * @param {string} userId
+ * @param {string} email
+ * @param {string} url
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createMagicURLSession(userId: string, email: string, url?: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ let path = '/account/sessions/magic-url';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Magic URL session (confirmation)
+ *
+ * Use this endpoint to complete creating the session with the Magic URL. Both
+ * the **userId** and **secret** arguments will be passed as query parameters
+ * to the redirect URL you have provided when sending your request to the
+ * [POST
+ * /account/sessions/magic-url](/docs/client/account#accountCreateMagicURLSession)
+ * endpoint.
+ *
+ * Please note that in order to avoid a [Redirect
+ * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
+ * the only valid redirect URLs are the ones from domains you have set when
+ * adding your platforms in the console interface.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateMagicURLSession(userId: string, secret: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ let path = '/account/sessions/magic-url';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Account Session with OAuth2
+ *
+ * Allow the user to login to their account using the OAuth2 provider of their
+ * choice. Each OAuth2 provider should be enabled from the Appwrite console
+ * first. Use the success and failure arguments to provide a redirect URL's
+ * back to your app when login is completed.
+ *
+ * If there is already an active session, the new session will be attached to
+ * the logged-in account. If there are no active sessions, the server will
+ * attempt to look for a user with the same email address as the email
+ * received from the OAuth2 provider and attach the new session to the
+ * existing user. If no matching user is found - the server will create a new
+ * user..
+ *
+ *
+ * @param {string} provider
+ * @param {string} success
+ * @param {string} failure
+ * @param {string[]} scopes
+ * @throws {AppwriteException}
+ * @returns {void|string}
+ */
+ createOAuth2Session(provider: string, success?: string, failure?: string, scopes?: string[]): void | URL {
+ if (typeof provider === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "provider"');
+ }
+
+ let path = '/account/sessions/oauth2/{provider}'.replace('{provider}', provider);
+ let payload: Payload = {};
+
+ if (typeof success !== 'undefined') {
+ payload['success'] = success;
+ }
+
+ if (typeof failure !== 'undefined') {
+ payload['failure'] = failure;
+ }
+
+ if (typeof scopes !== 'undefined') {
+ payload['scopes'] = scopes;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ if (typeof window !== 'undefined' && window?.location) {
+ window.location.href = uri.toString();
+ } else {
+ return uri;
+ }
+ }
+
+ /**
+ * Create Phone session
+ *
+ * Sends the user an SMS with a secret key for creating a session. If the
+ * provided user ID has not be registered, a new user will be created. Use the
+ * returned user ID and secret and submit a request to the [PUT
+ * /account/sessions/phone](/docs/client/account#accountUpdatePhoneSession)
+ * endpoint to complete the login process. The secret sent to the user's phone
+ * is valid for 15 minutes.
+ *
+ * @param {string} userId
+ * @param {string} phone
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createPhoneSession(userId: string, phone: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof phone === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "phone"');
+ }
+
+ let path = '/account/sessions/phone';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof phone !== 'undefined') {
+ payload['phone'] = phone;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Phone Session (confirmation)
+ *
+ * Use this endpoint to complete creating a session with SMS. Use the
+ * **userId** from the
+ * [createPhoneSession](/docs/client/account#accountCreatePhoneSession)
+ * endpoint and the **secret** received via SMS to successfully update and
+ * confirm the phone session.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePhoneSession(userId: string, secret: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ let path = '/account/sessions/phone';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get Session By ID
+ *
+ * Use this endpoint to get a logged in user's session using a Session ID.
+ * Inputting 'current' will return the current session being used.
+ *
+ * @param {string} sessionId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async getSession(sessionId: string): Promise {
+ if (typeof sessionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "sessionId"');
+ }
+
+ let path = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Session (Refresh Tokens)
+ *
+ * Access tokens have limited lifespan and expire to mitigate security risks.
+ * If session was created using an OAuth provider, this route can be used to
+ * "refresh" the access token.
+ *
+ * @param {string} sessionId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateSession(sessionId: string): Promise {
+ if (typeof sessionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "sessionId"');
+ }
+
+ let path = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Delete Account Session
+ *
+ * Use this endpoint to log out the currently logged in user from all their
+ * account sessions across all of their different devices. When using the
+ * Session ID argument, only the unique session ID provided is deleted.
+ *
+ *
+ * @param {string} sessionId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async deleteSession(sessionId: string): Promise<{}> {
+ if (typeof sessionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "sessionId"');
+ }
+
+ let path = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('delete', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Status
+ *
+ * Block the currently logged in user account. Behind the scene, the user
+ * record is not deleted but permanently blocked from any access. To
+ * completely delete a user, use the Users API instead.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateStatus(): Promise> {
+ let path = '/account/status';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Email Verification
+ *
+ * Use this endpoint to send a verification message to your user email address
+ * to confirm they are the valid owners of that address. Both the **userId**
+ * and **secret** arguments will be passed as query parameters to the URL you
+ * have provided to be attached to the verification email. The provided URL
+ * should redirect the user back to your app and allow you to complete the
+ * verification process by verifying both the **userId** and **secret**
+ * parameters. Learn more about how to [complete the verification
+ * process](/docs/client/account#accountUpdateEmailVerification). The
+ * verification link sent to the user's email address is valid for 7 days.
+ *
+ * Please note that in order to avoid a [Redirect
+ * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md),
+ * the only valid redirect URLs are the ones from domains you have set when
+ * adding your platforms in the console interface.
+ *
+ *
+ * @param {string} url
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createVerification(url: string): Promise {
+ if (typeof url === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "url"');
+ }
+
+ let path = '/account/verification';
+ let payload: Payload = {};
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Email Verification (confirmation)
+ *
+ * Use this endpoint to complete the user email verification process. Use both
+ * the **userId** and **secret** parameters that were attached to your app URL
+ * to verify the user email ownership. If confirmed this route will return a
+ * 200 status code.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateVerification(userId: string, secret: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ let path = '/account/verification';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Phone Verification
+ *
+ * Use this endpoint to send a verification SMS to the currently logged in
+ * user. This endpoint is meant for use after updating a user's phone number
+ * using the [accountUpdatePhone](/docs/client/account#accountUpdatePhone)
+ * endpoint. Learn more about how to [complete the verification
+ * process](/docs/client/account#accountUpdatePhoneVerification). The
+ * verification code sent to the user's phone number is valid for 15 minutes.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createPhoneVerification(): Promise {
+ let path = '/account/verification/phone';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Phone Verification (confirmation)
+ *
+ * Use this endpoint to complete the user phone verification process. Use the
+ * **userId** and **secret** that were sent to your user's phone number to
+ * verify the user email ownership. If confirmed this route will return a 200
+ * status code.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePhoneVerification(userId: string, secret: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ let path = '/account/verification/phone';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+};
diff --git a/public/sdk-console/services/avatars.ts b/public/sdk-console/services/avatars.ts
new file mode 100644
index 0000000000..88872695f2
--- /dev/null
+++ b/public/sdk-console/services/avatars.ts
@@ -0,0 +1,351 @@
+import { Service } from '../service';
+import { AppwriteException, Client } from '../client';
+import type { Models } from '../models';
+import type { UploadProgress, Payload } from '../client';
+
+export class Avatars extends Service {
+
+ constructor(client: Client)
+ {
+ super(client);
+ }
+
+ /**
+ * Get Browser Icon
+ *
+ * You can use this endpoint to show different browser icons to your users.
+ * The code argument receives the browser code as it appears in your user [GET
+ * /account/sessions](/docs/client/account#accountGetSessions) endpoint. Use
+ * width, height and quality arguments to change the output settings.
+ *
+ * When one dimension is specified and the other is 0, the image is scaled
+ * with preserved aspect ratio. If both dimensions are 0, the API provides an
+ * image at source quality. If dimensions are not specified, the default size
+ * of image returned is 100x100px.
+ *
+ * @param {string} code
+ * @param {number} width
+ * @param {number} height
+ * @param {number} quality
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getBrowser(code: string, width?: number, height?: number, quality?: number): URL {
+ if (typeof code === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "code"');
+ }
+
+ let path = '/avatars/browsers/{code}'.replace('{code}', code);
+ let payload: Payload = {};
+
+ if (typeof width !== 'undefined') {
+ payload['width'] = width;
+ }
+
+ if (typeof height !== 'undefined') {
+ payload['height'] = height;
+ }
+
+ if (typeof quality !== 'undefined') {
+ payload['quality'] = quality;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+
+ /**
+ * Get Credit Card Icon
+ *
+ * The credit card endpoint will return you the icon of the credit card
+ * provider you need. Use width, height and quality arguments to change the
+ * output settings.
+ *
+ * When one dimension is specified and the other is 0, the image is scaled
+ * with preserved aspect ratio. If both dimensions are 0, the API provides an
+ * image at source quality. If dimensions are not specified, the default size
+ * of image returned is 100x100px.
+ *
+ *
+ * @param {string} code
+ * @param {number} width
+ * @param {number} height
+ * @param {number} quality
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getCreditCard(code: string, width?: number, height?: number, quality?: number): URL {
+ if (typeof code === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "code"');
+ }
+
+ let path = '/avatars/credit-cards/{code}'.replace('{code}', code);
+ let payload: Payload = {};
+
+ if (typeof width !== 'undefined') {
+ payload['width'] = width;
+ }
+
+ if (typeof height !== 'undefined') {
+ payload['height'] = height;
+ }
+
+ if (typeof quality !== 'undefined') {
+ payload['quality'] = quality;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+
+ /**
+ * Get Favicon
+ *
+ * Use this endpoint to fetch the favorite icon (AKA favicon) of any remote
+ * website URL.
+ *
+ *
+ * @param {string} url
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getFavicon(url: string): URL {
+ if (typeof url === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "url"');
+ }
+
+ let path = '/avatars/favicon';
+ let payload: Payload = {};
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+
+ /**
+ * Get Country Flag
+ *
+ * You can use this endpoint to show different country flags icons to your
+ * users. The code argument receives the 2 letter country code. Use width,
+ * height and quality arguments to change the output settings. Country codes
+ * follow the [ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) standard.
+ *
+ * When one dimension is specified and the other is 0, the image is scaled
+ * with preserved aspect ratio. If both dimensions are 0, the API provides an
+ * image at source quality. If dimensions are not specified, the default size
+ * of image returned is 100x100px.
+ *
+ *
+ * @param {string} code
+ * @param {number} width
+ * @param {number} height
+ * @param {number} quality
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getFlag(code: string, width?: number, height?: number, quality?: number): URL {
+ if (typeof code === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "code"');
+ }
+
+ let path = '/avatars/flags/{code}'.replace('{code}', code);
+ let payload: Payload = {};
+
+ if (typeof width !== 'undefined') {
+ payload['width'] = width;
+ }
+
+ if (typeof height !== 'undefined') {
+ payload['height'] = height;
+ }
+
+ if (typeof quality !== 'undefined') {
+ payload['quality'] = quality;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+
+ /**
+ * Get Image from URL
+ *
+ * Use this endpoint to fetch a remote image URL and crop it to any image size
+ * you want. This endpoint is very useful if you need to crop and display
+ * remote images in your app or in case you want to make sure a 3rd party
+ * image is properly served using a TLS protocol.
+ *
+ * When one dimension is specified and the other is 0, the image is scaled
+ * with preserved aspect ratio. If both dimensions are 0, the API provides an
+ * image at source quality. If dimensions are not specified, the default size
+ * of image returned is 400x400px.
+ *
+ *
+ * @param {string} url
+ * @param {number} width
+ * @param {number} height
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getImage(url: string, width?: number, height?: number): URL {
+ if (typeof url === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "url"');
+ }
+
+ let path = '/avatars/image';
+ let payload: Payload = {};
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ if (typeof width !== 'undefined') {
+ payload['width'] = width;
+ }
+
+ if (typeof height !== 'undefined') {
+ payload['height'] = height;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+
+ /**
+ * Get User Initials
+ *
+ * Use this endpoint to show your user initials avatar icon on your website or
+ * app. By default, this route will try to print your logged-in user name or
+ * email initials. You can also overwrite the user name if you pass the 'name'
+ * parameter. If no name is given and no user is logged, an empty avatar will
+ * be returned.
+ *
+ * You can use the color and background params to change the avatar colors. By
+ * default, a random theme will be selected. The random theme will persist for
+ * the user's initials when reloading the same theme will always return for
+ * the same initials.
+ *
+ * When one dimension is specified and the other is 0, the image is scaled
+ * with preserved aspect ratio. If both dimensions are 0, the API provides an
+ * image at source quality. If dimensions are not specified, the default size
+ * of image returned is 100x100px.
+ *
+ *
+ * @param {string} name
+ * @param {number} width
+ * @param {number} height
+ * @param {string} background
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getInitials(name?: string, width?: number, height?: number, background?: string): URL {
+ let path = '/avatars/initials';
+ let payload: Payload = {};
+
+ if (typeof name !== 'undefined') {
+ payload['name'] = name;
+ }
+
+ if (typeof width !== 'undefined') {
+ payload['width'] = width;
+ }
+
+ if (typeof height !== 'undefined') {
+ payload['height'] = height;
+ }
+
+ if (typeof background !== 'undefined') {
+ payload['background'] = background;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+
+ /**
+ * Get QR Code
+ *
+ * Converts a given plain text to a QR code image. You can use the query
+ * parameters to change the size and style of the resulting image.
+ *
+ *
+ * @param {string} text
+ * @param {number} size
+ * @param {number} margin
+ * @param {boolean} download
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getQR(text: string, size?: number, margin?: number, download?: boolean): URL {
+ if (typeof text === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "text"');
+ }
+
+ let path = '/avatars/qr';
+ let payload: Payload = {};
+
+ if (typeof text !== 'undefined') {
+ payload['text'] = text;
+ }
+
+ if (typeof size !== 'undefined') {
+ payload['size'] = size;
+ }
+
+ if (typeof margin !== 'undefined') {
+ payload['margin'] = margin;
+ }
+
+ if (typeof download !== 'undefined') {
+ payload['download'] = download;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+};
diff --git a/public/sdk-console/services/databases.ts b/public/sdk-console/services/databases.ts
new file mode 100644
index 0000000000..766c7385ad
--- /dev/null
+++ b/public/sdk-console/services/databases.ts
@@ -0,0 +1,213 @@
+import { Service } from '../service';
+import { AppwriteException, Client } from '../client';
+import type { Models } from '../models';
+import type { UploadProgress, Payload } from '../client';
+
+export class Databases extends Service {
+
+ constructor(client: Client)
+ {
+ super(client);
+ }
+
+ /**
+ * List Documents
+ *
+ * Get a list of all the user's documents in a given collection. You can use
+ * the query params to filter your results. On admin mode, this endpoint will
+ * return a list of all of documents belonging to the provided collectionId.
+ * [Learn more about different API modes](/docs/admin).
+ *
+ * @param {string} databaseId
+ * @param {string} collectionId
+ * @param {string[]} queries
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listDocuments(databaseId: string, collectionId: string, queries?: string[]): Promise> {
+ if (typeof databaseId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "databaseId"');
+ }
+
+ if (typeof collectionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "collectionId"');
+ }
+
+ let path = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
+ let payload: Payload = {};
+
+ if (typeof queries !== 'undefined') {
+ payload['queries'] = queries;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Document
+ *
+ * Create a new Document. Before using this route, you should create a new
+ * collection resource using either a [server
+ * integration](/docs/server/databases#databasesCreateCollection) API or
+ * directly from your database console.
+ *
+ * @param {string} databaseId
+ * @param {string} collectionId
+ * @param {string} documentId
+ * @param {Omit} data
+ * @param {string[]} permissions
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createDocument(databaseId: string, collectionId: string, documentId: string, data: Omit, permissions?: string[]): Promise {
+ if (typeof databaseId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "databaseId"');
+ }
+
+ if (typeof collectionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "collectionId"');
+ }
+
+ if (typeof documentId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "documentId"');
+ }
+
+ if (typeof data === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "data"');
+ }
+
+ let path = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
+ let payload: Payload = {};
+
+ if (typeof documentId !== 'undefined') {
+ payload['documentId'] = documentId;
+ }
+
+ if (typeof data !== 'undefined') {
+ payload['data'] = data;
+ }
+
+ if (typeof permissions !== 'undefined') {
+ payload['permissions'] = permissions;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get Document
+ *
+ * Get a document by its unique ID. This endpoint response returns a JSON
+ * object with the document data.
+ *
+ * @param {string} databaseId
+ * @param {string} collectionId
+ * @param {string} documentId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async getDocument(databaseId: string, collectionId: string, documentId: string): Promise {
+ if (typeof databaseId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "databaseId"');
+ }
+
+ if (typeof collectionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "collectionId"');
+ }
+
+ if (typeof documentId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "documentId"');
+ }
+
+ let path = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Document
+ *
+ * Update a document by its unique ID. Using the patch method you can pass
+ * only specific fields that will get updated.
+ *
+ * @param {string} databaseId
+ * @param {string} collectionId
+ * @param {string} documentId
+ * @param {Partial>} data
+ * @param {string[]} permissions
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateDocument(databaseId: string, collectionId: string, documentId: string, data?: Partial>, permissions?: string[]): Promise {
+ if (typeof databaseId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "databaseId"');
+ }
+
+ if (typeof collectionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "collectionId"');
+ }
+
+ if (typeof documentId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "documentId"');
+ }
+
+ let path = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
+ let payload: Payload = {};
+
+ if (typeof data !== 'undefined') {
+ payload['data'] = data;
+ }
+
+ if (typeof permissions !== 'undefined') {
+ payload['permissions'] = permissions;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Delete Document
+ *
+ * Delete a document by its unique ID.
+ *
+ * @param {string} databaseId
+ * @param {string} collectionId
+ * @param {string} documentId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async deleteDocument(databaseId: string, collectionId: string, documentId: string): Promise<{}> {
+ if (typeof databaseId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "databaseId"');
+ }
+
+ if (typeof collectionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "collectionId"');
+ }
+
+ if (typeof documentId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "documentId"');
+ }
+
+ let path = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('delete', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+};
diff --git a/public/sdk-console/services/functions.ts b/public/sdk-console/services/functions.ts
new file mode 100644
index 0000000000..79719252e4
--- /dev/null
+++ b/public/sdk-console/services/functions.ts
@@ -0,0 +1,144 @@
+import { Service } from '../service';
+import { AppwriteException, Client } from '../client';
+import type { Models } from '../models';
+import type { UploadProgress, Payload } from '../client';
+
+export class Functions extends Service {
+
+ constructor(client: Client)
+ {
+ super(client);
+ }
+
+ /**
+ * Retry Build
+ *
+ *
+ * @param {string} functionId
+ * @param {string} deploymentId
+ * @param {string} buildId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async retryBuild(functionId: string, deploymentId: string, buildId: string): Promise<{}> {
+ if (typeof functionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "functionId"');
+ }
+
+ if (typeof deploymentId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "deploymentId"');
+ }
+
+ if (typeof buildId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "buildId"');
+ }
+
+ let path = '/functions/{functionId}/deployments/{deploymentId}/builds/{buildId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId).replace('{buildId}', buildId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Executions
+ *
+ * Get a list of all the current user function execution logs. You can use the
+ * query params to filter your results. On admin mode, this endpoint will
+ * return a list of all of the project's executions. [Learn more about
+ * different API modes](/docs/admin).
+ *
+ * @param {string} functionId
+ * @param {string[]} queries
+ * @param {string} search
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listExecutions(functionId: string, queries?: string[], search?: string): Promise {
+ if (typeof functionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "functionId"');
+ }
+
+ let path = '/functions/{functionId}/executions'.replace('{functionId}', functionId);
+ let payload: Payload = {};
+
+ if (typeof queries !== 'undefined') {
+ payload['queries'] = queries;
+ }
+
+ if (typeof search !== 'undefined') {
+ payload['search'] = search;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Execution
+ *
+ * Trigger a function execution. The returned object will return you the
+ * current execution status. You can ping the `Get Execution` endpoint to get
+ * updates on the current execution status. Once this endpoint is called, your
+ * function execution process will start asynchronously.
+ *
+ * @param {string} functionId
+ * @param {string} data
+ * @param {boolean} async
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createExecution(functionId: string, data?: string, async?: boolean): Promise {
+ if (typeof functionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "functionId"');
+ }
+
+ let path = '/functions/{functionId}/executions'.replace('{functionId}', functionId);
+ let payload: Payload = {};
+
+ if (typeof data !== 'undefined') {
+ payload['data'] = data;
+ }
+
+ if (typeof async !== 'undefined') {
+ payload['async'] = async;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get Execution
+ *
+ * Get a function execution log by its unique ID.
+ *
+ * @param {string} functionId
+ * @param {string} executionId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async getExecution(functionId: string, executionId: string): Promise {
+ if (typeof functionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "functionId"');
+ }
+
+ if (typeof executionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "executionId"');
+ }
+
+ let path = '/functions/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+};
diff --git a/public/sdk-console/services/locale.ts b/public/sdk-console/services/locale.ts
new file mode 100644
index 0000000000..62a234756f
--- /dev/null
+++ b/public/sdk-console/services/locale.ts
@@ -0,0 +1,150 @@
+import { Service } from '../service';
+import { AppwriteException, Client } from '../client';
+import type { Models } from '../models';
+import type { UploadProgress, Payload } from '../client';
+
+export class Locale extends Service {
+
+ constructor(client: Client)
+ {
+ super(client);
+ }
+
+ /**
+ * Get User Locale
+ *
+ * Get the current user location based on IP. Returns an object with user
+ * country code, country name, continent name, continent code, ip address and
+ * suggested currency. You can use the locale header to get the data in a
+ * supported language.
+ *
+ * ([IP Geolocation by DB-IP](https://db-ip.com))
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async get(): Promise {
+ let path = '/locale';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Continents
+ *
+ * List of all continents. You can use the locale header to get the data in a
+ * supported language.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listContinents(): Promise {
+ let path = '/locale/continents';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Countries
+ *
+ * List of all countries. You can use the locale header to get the data in a
+ * supported language.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listCountries(): Promise {
+ let path = '/locale/countries';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List EU Countries
+ *
+ * List of all countries that are currently members of the EU. You can use the
+ * locale header to get the data in a supported language.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listCountriesEU(): Promise {
+ let path = '/locale/countries/eu';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Countries Phone Codes
+ *
+ * List of all countries phone codes. You can use the locale header to get the
+ * data in a supported language.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listCountriesPhones(): Promise {
+ let path = '/locale/countries/phones';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Currencies
+ *
+ * List of all currencies, including currency symbol, name, plural, and
+ * decimal digits for all major and minor currencies. You can use the locale
+ * header to get the data in a supported language.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listCurrencies(): Promise {
+ let path = '/locale/currencies';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Languages
+ *
+ * List of all languages classified by ISO 639-1 including 2-letter code, name
+ * in English, and name in the respective language.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listLanguages(): Promise {
+ let path = '/locale/languages';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+};
diff --git a/public/sdk-console/services/storage.ts b/public/sdk-console/services/storage.ts
new file mode 100644
index 0000000000..abed03be28
--- /dev/null
+++ b/public/sdk-console/services/storage.ts
@@ -0,0 +1,419 @@
+import { Service } from '../service';
+import { AppwriteException, Client } from '../client';
+import type { Models } from '../models';
+import type { UploadProgress, Payload } from '../client';
+
+export class Storage extends Service {
+
+ constructor(client: Client)
+ {
+ super(client);
+ }
+
+ /**
+ * List Files
+ *
+ * Get a list of all the user files. You can use the query params to filter
+ * your results. On admin mode, this endpoint will return a list of all of the
+ * project's files. [Learn more about different API modes](/docs/admin).
+ *
+ * @param {string} bucketId
+ * @param {string[]} queries
+ * @param {string} search
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listFiles(bucketId: string, queries?: string[], search?: string): Promise {
+ if (typeof bucketId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "bucketId"');
+ }
+
+ let path = '/storage/buckets/{bucketId}/files'.replace('{bucketId}', bucketId);
+ let payload: Payload = {};
+
+ if (typeof queries !== 'undefined') {
+ payload['queries'] = queries;
+ }
+
+ if (typeof search !== 'undefined') {
+ payload['search'] = search;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create File
+ *
+ * Create a new file. Before using this route, you should create a new bucket
+ * resource using either a [server
+ * integration](/docs/server/storage#storageCreateBucket) API or directly from
+ * your Appwrite console.
+ *
+ * Larger files should be uploaded using multiple requests with the
+ * [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range)
+ * header to send a partial request with a maximum supported chunk of `5MB`.
+ * The `content-range` header values should always be in bytes.
+ *
+ * When the first request is sent, the server will return the **File** object,
+ * and the subsequent part request must include the file's **id** in
+ * `x-appwrite-id` header to allow the server to know that the partial upload
+ * is for the existing file and not for a new one.
+ *
+ * If you're creating a new file using one of the Appwrite SDKs, all the
+ * chunking logic will be managed by the SDK internally.
+ *
+ *
+ * @param {string} bucketId
+ * @param {string} fileId
+ * @param {File} file
+ * @param {string[]} permissions
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createFile(bucketId: string, fileId: string, file: File, permissions?: string[], onProgress = (progress: UploadProgress) => {}): Promise {
+ if (typeof bucketId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "bucketId"');
+ }
+
+ if (typeof fileId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "fileId"');
+ }
+
+ if (typeof file === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "file"');
+ }
+
+ let path = '/storage/buckets/{bucketId}/files'.replace('{bucketId}', bucketId);
+ let payload: Payload = {};
+
+ if (typeof fileId !== 'undefined') {
+ payload['fileId'] = fileId;
+ }
+
+ if (typeof file !== 'undefined') {
+ payload['file'] = file;
+ }
+
+ if (typeof permissions !== 'undefined') {
+ payload['permissions'] = permissions;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+
+ if(!(file instanceof File)) {
+ throw new AppwriteException('Parameter "file" has to be a File.');
+ }
+
+ const size = file.size;
+
+ if (size <= Service.CHUNK_SIZE) {
+ return await this.client.call('post', uri, {
+
+ 'content-type': 'multipart/form-data',
+ }, payload);
+ }
+ let id = undefined;
+ let response = undefined;
+
+ const headers: { [header: string]: string } = {
+ 'content-type': 'multipart/form-data',
+ }
+
+ let counter = 0;
+ const totalCounters = Math.ceil(size / Service.CHUNK_SIZE);
+ if(fileId != 'unique()') {
+ try {
+ response = await this.client.call('GET', new URL(this.client.config.endpoint + path + '/' + fileId), headers);
+ counter = response.chunksUploaded;
+ } catch(e) {
+ }
+ }
+
+ for (counter; counter < totalCounters; counter++) {
+ const start = (counter * Service.CHUNK_SIZE);
+ const end = Math.min((((counter * Service.CHUNK_SIZE) + Service.CHUNK_SIZE) - 1), size);
+
+ headers['content-range'] = 'bytes ' + start + '-' + end + '/' + size
+
+ if (id) {
+ headers['x-appwrite-id'] = id;
+ }
+
+ const stream = file.slice(start, end + 1);
+ payload['file'] = new File([stream], file.name);
+
+ response = await this.client.call('post', uri, headers, payload);
+
+ if (!id) {
+ id = response['$id'];
+ }
+
+ if (onProgress) {
+ onProgress({
+ $id: response.$id,
+ progress: Math.min((counter + 1) * Service.CHUNK_SIZE - 1, size) / size * 100,
+ sizeUploaded: end,
+ chunksTotal: response.chunksTotal,
+ chunksUploaded: response.chunksUploaded
+ });
+ }
+ }
+
+ return response;
+ }
+
+ /**
+ * Get File
+ *
+ * Get a file by its unique ID. This endpoint response returns a JSON object
+ * with the file metadata.
+ *
+ * @param {string} bucketId
+ * @param {string} fileId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async getFile(bucketId: string, fileId: string): Promise {
+ if (typeof bucketId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "bucketId"');
+ }
+
+ if (typeof fileId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "fileId"');
+ }
+
+ let path = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update File
+ *
+ * Update a file by its unique ID. Only users with write permissions have
+ * access to update this resource.
+ *
+ * @param {string} bucketId
+ * @param {string} fileId
+ * @param {string[]} permissions
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateFile(bucketId: string, fileId: string, permissions?: string[]): Promise {
+ if (typeof bucketId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "bucketId"');
+ }
+
+ if (typeof fileId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "fileId"');
+ }
+
+ let path = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
+ let payload: Payload = {};
+
+ if (typeof permissions !== 'undefined') {
+ payload['permissions'] = permissions;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Delete File
+ *
+ * Delete a file by its unique ID. Only users with write permissions have
+ * access to delete this resource.
+ *
+ * @param {string} bucketId
+ * @param {string} fileId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async deleteFile(bucketId: string, fileId: string): Promise<{}> {
+ if (typeof bucketId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "bucketId"');
+ }
+
+ if (typeof fileId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "fileId"');
+ }
+
+ let path = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('delete', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get File for Download
+ *
+ * Get a file content by its unique ID. The endpoint response return with a
+ * 'Content-Disposition: attachment' header that tells the browser to start
+ * downloading the file to user downloads directory.
+ *
+ * @param {string} bucketId
+ * @param {string} fileId
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getFileDownload(bucketId: string, fileId: string): URL {
+ if (typeof bucketId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "bucketId"');
+ }
+
+ if (typeof fileId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "fileId"');
+ }
+
+ let path = '/storage/buckets/{bucketId}/files/{fileId}/download'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+
+ /**
+ * Get File Preview
+ *
+ * Get a file preview image. Currently, this method supports preview for image
+ * files (jpg, png, and gif), other supported formats, like pdf, docs, slides,
+ * and spreadsheets, will return the file icon image. You can also pass query
+ * string arguments for cutting and resizing your preview image. Preview is
+ * supported only for image files smaller than 10MB.
+ *
+ * @param {string} bucketId
+ * @param {string} fileId
+ * @param {number} width
+ * @param {number} height
+ * @param {string} gravity
+ * @param {number} quality
+ * @param {number} borderWidth
+ * @param {string} borderColor
+ * @param {number} borderRadius
+ * @param {number} opacity
+ * @param {number} rotation
+ * @param {string} background
+ * @param {string} output
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getFilePreview(bucketId: string, fileId: string, width?: number, height?: number, gravity?: string, quality?: number, borderWidth?: number, borderColor?: string, borderRadius?: number, opacity?: number, rotation?: number, background?: string, output?: string): URL {
+ if (typeof bucketId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "bucketId"');
+ }
+
+ if (typeof fileId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "fileId"');
+ }
+
+ let path = '/storage/buckets/{bucketId}/files/{fileId}/preview'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
+ let payload: Payload = {};
+
+ if (typeof width !== 'undefined') {
+ payload['width'] = width;
+ }
+
+ if (typeof height !== 'undefined') {
+ payload['height'] = height;
+ }
+
+ if (typeof gravity !== 'undefined') {
+ payload['gravity'] = gravity;
+ }
+
+ if (typeof quality !== 'undefined') {
+ payload['quality'] = quality;
+ }
+
+ if (typeof borderWidth !== 'undefined') {
+ payload['borderWidth'] = borderWidth;
+ }
+
+ if (typeof borderColor !== 'undefined') {
+ payload['borderColor'] = borderColor;
+ }
+
+ if (typeof borderRadius !== 'undefined') {
+ payload['borderRadius'] = borderRadius;
+ }
+
+ if (typeof opacity !== 'undefined') {
+ payload['opacity'] = opacity;
+ }
+
+ if (typeof rotation !== 'undefined') {
+ payload['rotation'] = rotation;
+ }
+
+ if (typeof background !== 'undefined') {
+ payload['background'] = background;
+ }
+
+ if (typeof output !== 'undefined') {
+ payload['output'] = output;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+
+ /**
+ * Get File for View
+ *
+ * Get a file content by its unique ID. This endpoint is similar to the
+ * download method but returns with no 'Content-Disposition: attachment'
+ * header.
+ *
+ * @param {string} bucketId
+ * @param {string} fileId
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getFileView(bucketId: string, fileId: string): URL {
+ if (typeof bucketId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "bucketId"');
+ }
+
+ if (typeof fileId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "fileId"');
+ }
+
+ let path = '/storage/buckets/{bucketId}/files/{fileId}/view'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+};
diff --git a/public/sdk-console/services/teams.ts b/public/sdk-console/services/teams.ts
new file mode 100644
index 0000000000..ed72fcbbf8
--- /dev/null
+++ b/public/sdk-console/services/teams.ts
@@ -0,0 +1,420 @@
+import { Service } from '../service';
+import { AppwriteException, Client } from '../client';
+import type { Models } from '../models';
+import type { UploadProgress, Payload } from '../client';
+
+export class Teams extends Service {
+
+ constructor(client: Client)
+ {
+ super(client);
+ }
+
+ /**
+ * List Teams
+ *
+ * Get a list of all the teams in which the current user is a member. You can
+ * use the parameters to filter your results.
+ *
+ * In admin mode, this endpoint returns a list of all the teams in the current
+ * project. [Learn more about different API modes](/docs/admin).
+ *
+ * @param {string[]} queries
+ * @param {string} search
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async list(queries?: string[], search?: string): Promise {
+ let path = '/teams';
+ let payload: Payload = {};
+
+ if (typeof queries !== 'undefined') {
+ payload['queries'] = queries;
+ }
+
+ if (typeof search !== 'undefined') {
+ payload['search'] = search;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Team
+ *
+ * Create a new team. The user who creates the team will automatically be
+ * assigned as the owner of the team. Only the users with the owner role can
+ * invite new members, add new owners and delete or update the team.
+ *
+ * @param {string} teamId
+ * @param {string} name
+ * @param {string[]} roles
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async create(teamId: string, name: string, roles?: string[]): Promise {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ if (typeof name === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "name"');
+ }
+
+ let path = '/teams';
+ let payload: Payload = {};
+
+ if (typeof teamId !== 'undefined') {
+ payload['teamId'] = teamId;
+ }
+
+ if (typeof name !== 'undefined') {
+ payload['name'] = name;
+ }
+
+ if (typeof roles !== 'undefined') {
+ payload['roles'] = roles;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get Team
+ *
+ * Get a team by its ID. All team members have read access for this resource.
+ *
+ * @param {string} teamId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async get(teamId: string): Promise {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ let path = '/teams/{teamId}'.replace('{teamId}', teamId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Team
+ *
+ * Update a team using its ID. Only members with the owner role can update the
+ * team.
+ *
+ * @param {string} teamId
+ * @param {string} name
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async update(teamId: string, name: string): Promise {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ if (typeof name === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "name"');
+ }
+
+ let path = '/teams/{teamId}'.replace('{teamId}', teamId);
+ let payload: Payload = {};
+
+ if (typeof name !== 'undefined') {
+ payload['name'] = name;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Delete Team
+ *
+ * Delete a team using its ID. Only team members with the owner role can
+ * delete the team.
+ *
+ * @param {string} teamId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async delete(teamId: string): Promise<{}> {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ let path = '/teams/{teamId}'.replace('{teamId}', teamId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('delete', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Team Memberships
+ *
+ * Use this endpoint to list a team's members using the team's ID. All team
+ * members have read access to this endpoint.
+ *
+ * @param {string} teamId
+ * @param {string[]} queries
+ * @param {string} search
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listMemberships(teamId: string, queries?: string[], search?: string): Promise {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ let path = '/teams/{teamId}/memberships'.replace('{teamId}', teamId);
+ let payload: Payload = {};
+
+ if (typeof queries !== 'undefined') {
+ payload['queries'] = queries;
+ }
+
+ if (typeof search !== 'undefined') {
+ payload['search'] = search;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Team Membership
+ *
+ * Invite a new member to join your team. If initiated from the client SDK, an
+ * email with a link to join the team will be sent to the member's email
+ * address and an account will be created for them should they not be signed
+ * up already. If initiated from server-side SDKs, the new member will
+ * automatically be added to the team.
+ *
+ * Use the 'url' parameter to redirect the user from the invitation email back
+ * to your app. When the user is redirected, use the [Update Team Membership
+ * Status](/docs/client/teams#teamsUpdateMembershipStatus) endpoint to allow
+ * the user to accept the invitation to the team.
+ *
+ * Please note that to avoid a [Redirect
+ * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
+ * the only valid redirect URL's are the once from domains you have set when
+ * adding your platforms in the console interface.
+ *
+ * @param {string} teamId
+ * @param {string} email
+ * @param {string[]} roles
+ * @param {string} url
+ * @param {string} name
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createMembership(teamId: string, email: string, roles: string[], url: string, name?: string): Promise {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof roles === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "roles"');
+ }
+
+ if (typeof url === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "url"');
+ }
+
+ let path = '/teams/{teamId}/memberships'.replace('{teamId}', teamId);
+ let payload: Payload = {};
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof roles !== 'undefined') {
+ payload['roles'] = roles;
+ }
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ if (typeof name !== 'undefined') {
+ payload['name'] = name;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get Team Membership
+ *
+ * Get a team member by the membership unique id. All team members have read
+ * access for this resource.
+ *
+ * @param {string} teamId
+ * @param {string} membershipId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async getMembership(teamId: string, membershipId: string): Promise {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ if (typeof membershipId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "membershipId"');
+ }
+
+ let path = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Membership Roles
+ *
+ * Modify the roles of a team member. Only team members with the owner role
+ * have access to this endpoint. Learn more about [roles and
+ * permissions](/docs/permissions).
+ *
+ * @param {string} teamId
+ * @param {string} membershipId
+ * @param {string[]} roles
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateMembershipRoles(teamId: string, membershipId: string, roles: string[]): Promise {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ if (typeof membershipId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "membershipId"');
+ }
+
+ if (typeof roles === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "roles"');
+ }
+
+ let path = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
+ let payload: Payload = {};
+
+ if (typeof roles !== 'undefined') {
+ payload['roles'] = roles;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Delete Team Membership
+ *
+ * This endpoint allows a user to leave a team or for a team owner to delete
+ * the membership of any other team member. You can also use this endpoint to
+ * delete a user membership even if it is not accepted.
+ *
+ * @param {string} teamId
+ * @param {string} membershipId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async deleteMembership(teamId: string, membershipId: string): Promise<{}> {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ if (typeof membershipId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "membershipId"');
+ }
+
+ let path = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('delete', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Team Membership Status
+ *
+ * Use this endpoint to allow a user to accept an invitation to join a team
+ * after being redirected back to your app from the invitation email received
+ * by the user.
+ *
+ * If the request is successful, a session for the user is automatically
+ * created.
+ *
+ *
+ * @param {string} teamId
+ * @param {string} membershipId
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateMembershipStatus(teamId: string, membershipId: string, userId: string, secret: string): Promise {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ if (typeof membershipId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "membershipId"');
+ }
+
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ let path = '/teams/{teamId}/memberships/{membershipId}/status'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+};
diff --git a/public/sdk-project/client.ts b/public/sdk-project/client.ts
new file mode 100644
index 0000000000..edf675e789
--- /dev/null
+++ b/public/sdk-project/client.ts
@@ -0,0 +1,442 @@
+import 'isomorphic-form-data';
+import { fetch } from 'cross-fetch';
+import { Models } from './models';
+import { Service } from './service';
+
+type Payload = {
+ [key: string]: any;
+}
+
+type Headers = {
+ [key: string]: string;
+}
+
+type RealtimeResponse = {
+ type: 'error' | 'event' | 'connected' | 'response';
+ data: RealtimeResponseAuthenticated | RealtimeResponseConnected | RealtimeResponseError | RealtimeResponseEvent;
+}
+
+type RealtimeRequest = {
+ type: 'authentication';
+ data: RealtimeRequestAuthenticate;
+}
+
+export type RealtimeResponseEvent = {
+ events: string[];
+ channels: string[];
+ timestamp: number;
+ payload: T;
+}
+
+type RealtimeResponseError = {
+ code: number;
+ message: string;
+}
+
+type RealtimeResponseConnected = {
+ channels: string[];
+ user?: object;
+}
+
+type RealtimeResponseAuthenticated = {
+ to: string;
+ success: boolean;
+ user: object;
+}
+
+type RealtimeRequestAuthenticate = {
+ session: string;
+}
+
+type Realtime = {
+ socket?: WebSocket;
+ timeout?: number;
+ url?: string;
+ lastMessage?: RealtimeResponse;
+ channels: Set;
+ subscriptions: Map) => void
+ }>;
+ subscriptionsCounter: number;
+ reconnect: boolean;
+ reconnectAttempts: number;
+ getTimeout: () => number;
+ connect: () => void;
+ createSocket: () => void;
+ cleanUp: (channels: string[]) => void;
+ onMessage: (event: MessageEvent) => void;
+}
+
+export type UploadProgress = {
+ $id: string;
+ progress: number;
+ sizeUploaded: number;
+ chunksTotal: number;
+ chunksUploaded: number;
+}
+
+class AppwriteException extends Error {
+ code: number;
+ response: string;
+ type: string;
+ constructor(message: string, code: number = 0, type: string = '', response: string = '') {
+ super(message);
+ this.name = 'AppwriteException';
+ this.message = message;
+ this.code = code;
+ this.type = type;
+ this.response = response;
+ }
+}
+
+class Client {
+ config = {
+ endpoint: 'https://HOSTNAME/v1',
+ endpointRealtime: '',
+ project: '',
+ jwt: '',
+ locale: '',
+ };
+ headers: Headers = {
+ 'x-sdk-name': 'Web',
+ 'x-sdk-platform': 'client',
+ 'x-sdk-language': 'web',
+ 'x-sdk-version': '10.0.1',
+ 'X-Appwrite-Response-Format': '1.0.0',
+ };
+
+ /**
+ * Set Endpoint
+ *
+ * Your project endpoint
+ *
+ * @param {string} endpoint
+ *
+ * @returns {this}
+ */
+ setEndpoint(endpoint: string): this {
+ this.config.endpoint = endpoint;
+ this.config.endpointRealtime = this.config.endpointRealtime || this.config.endpoint.replace('https://', 'wss://').replace('http://', 'ws://');
+
+ return this;
+ }
+
+ /**
+ * Set Realtime Endpoint
+ *
+ * @param {string} endpointRealtime
+ *
+ * @returns {this}
+ */
+ setEndpointRealtime(endpointRealtime: string): this {
+ this.config.endpointRealtime = endpointRealtime;
+
+ return this;
+ }
+
+ /**
+ * Set Project
+ *
+ * Your project ID
+ *
+ * @param value string
+ *
+ * @return {this}
+ */
+ setProject(value: string): this {
+ this.headers['X-Appwrite-Project'] = value;
+ this.config.project = value;
+ return this;
+ }
+
+ /**
+ * Set JWT
+ *
+ * Your secret JSON Web Token
+ *
+ * @param value string
+ *
+ * @return {this}
+ */
+ setJWT(value: string): this {
+ this.headers['X-Appwrite-JWT'] = value;
+ this.config.jwt = value;
+ return this;
+ }
+
+ /**
+ * Set Locale
+ *
+ * @param value string
+ *
+ * @return {this}
+ */
+ setLocale(value: string): this {
+ this.headers['X-Appwrite-Locale'] = value;
+ this.config.locale = value;
+ return this;
+ }
+
+
+ private realtime: Realtime = {
+ socket: undefined,
+ timeout: undefined,
+ url: '',
+ channels: new Set(),
+ subscriptions: new Map(),
+ subscriptionsCounter: 0,
+ reconnect: true,
+ reconnectAttempts: 0,
+ lastMessage: undefined,
+ connect: () => {
+ clearTimeout(this.realtime.timeout);
+ this.realtime.timeout = window?.setTimeout(() => {
+ this.realtime.createSocket();
+ }, 50);
+ },
+ getTimeout: () => {
+ switch (true) {
+ case this.realtime.reconnectAttempts < 5:
+ return 1000;
+ case this.realtime.reconnectAttempts < 15:
+ return 5000;
+ case this.realtime.reconnectAttempts < 100:
+ return 10_000;
+ default:
+ return 60_000;
+ }
+ },
+ createSocket: () => {
+ if (this.realtime.channels.size < 1) return;
+
+ const channels = new URLSearchParams();
+ channels.set('project', this.config.project);
+ this.realtime.channels.forEach(channel => {
+ channels.append('channels[]', channel);
+ });
+
+ const url = this.config.endpointRealtime + '/realtime?' + channels.toString();
+
+ if (
+ url !== this.realtime.url || // Check if URL is present
+ !this.realtime.socket || // Check if WebSocket has not been created
+ this.realtime.socket?.readyState > WebSocket.OPEN // Check if WebSocket is CLOSING (3) or CLOSED (4)
+ ) {
+ if (
+ this.realtime.socket &&
+ this.realtime.socket?.readyState < WebSocket.CLOSING // Close WebSocket if it is CONNECTING (0) or OPEN (1)
+ ) {
+ this.realtime.reconnect = false;
+ this.realtime.socket.close();
+ }
+
+ this.realtime.url = url;
+ this.realtime.socket = new WebSocket(url);
+ this.realtime.socket.addEventListener('message', this.realtime.onMessage);
+ this.realtime.socket.addEventListener('open', _event => {
+ this.realtime.reconnectAttempts = 0;
+ });
+ this.realtime.socket.addEventListener('close', event => {
+ if (
+ !this.realtime.reconnect ||
+ (
+ this.realtime?.lastMessage?.type === 'error' && // Check if last message was of type error
+ (this.realtime?.lastMessage.data).code === 1008 // Check for policy violation 1008
+ )
+ ) {
+ this.realtime.reconnect = true;
+ return;
+ }
+
+ const timeout = this.realtime.getTimeout();
+ console.error(`Realtime got disconnected. Reconnect will be attempted in ${timeout / 1000} seconds.`, event.reason);
+
+ setTimeout(() => {
+ this.realtime.reconnectAttempts++;
+ this.realtime.createSocket();
+ }, timeout);
+ })
+ }
+ },
+ onMessage: (event) => {
+ try {
+ const message: RealtimeResponse = JSON.parse(event.data);
+ this.realtime.lastMessage = message;
+ switch (message.type) {
+ case 'connected':
+ const cookie = JSON.parse(window.localStorage.getItem('cookieFallback') ?? '{}');
+ const session = cookie?.[`a_session_${this.config.project}`];
+ const messageData = message.data;
+
+ if (session && !messageData.user) {
+ this.realtime.socket?.send(JSON.stringify({
+ type: 'authentication',
+ data: {
+ session
+ }
+ }));
+ }
+ break;
+ case 'event':
+ let data = >message.data;
+ if (data?.channels) {
+ const isSubscribed = data.channels.some(channel => this.realtime.channels.has(channel));
+ if (!isSubscribed) return;
+ this.realtime.subscriptions.forEach(subscription => {
+ if (data.channels.some(channel => subscription.channels.includes(channel))) {
+ setTimeout(() => subscription.callback(data));
+ }
+ })
+ }
+ break;
+ case 'error':
+ throw message.data;
+ default:
+ break;
+ }
+ } catch (e) {
+ console.error(e);
+ }
+ },
+ cleanUp: channels => {
+ this.realtime.channels.forEach(channel => {
+ if (channels.includes(channel)) {
+ let found = Array.from(this.realtime.subscriptions).some(([_key, subscription] )=> {
+ return subscription.channels.includes(channel);
+ })
+
+ if (!found) {
+ this.realtime.channels.delete(channel);
+ }
+ }
+ })
+ }
+ }
+
+ /**
+ * Subscribes to Appwrite events and passes you the payload in realtime.
+ *
+ * @param {string|string[]} channels
+ * Channel to subscribe - pass a single channel as a string or multiple with an array of strings.
+ *
+ * Possible channels are:
+ * - account
+ * - collections
+ * - collections.[ID]
+ * - collections.[ID].documents
+ * - documents
+ * - documents.[ID]
+ * - files
+ * - files.[ID]
+ * - executions
+ * - executions.[ID]
+ * - functions.[ID]
+ * - teams
+ * - teams.[ID]
+ * - memberships
+ * - memberships.[ID]
+ * @param {(payload: RealtimeMessage) => void} callback Is called on every realtime update.
+ * @returns {() => void} Unsubscribes from events.
+ */
+ subscribe(channels: string | string[], callback: (payload: RealtimeResponseEvent) => void): () => void {
+ let channelArray = typeof channels === 'string' ? [channels] : channels;
+ channelArray.forEach(channel => this.realtime.channels.add(channel));
+
+ const counter = this.realtime.subscriptionsCounter++;
+ this.realtime.subscriptions.set(counter, {
+ channels: channelArray,
+ callback
+ });
+
+ this.realtime.connect();
+
+ return () => {
+ this.realtime.subscriptions.delete(counter);
+ this.realtime.cleanUp(channelArray);
+ this.realtime.connect();
+ }
+ }
+
+ async call(method: string, url: URL, headers: Headers = {}, params: Payload = {}): Promise {
+ method = method.toUpperCase();
+
+
+ headers = Object.assign({}, this.headers, headers);
+
+ let options: RequestInit = {
+ method,
+ headers,
+ credentials: 'include'
+ };
+
+ if (typeof window !== 'undefined' && window.localStorage) {
+ headers['X-Fallback-Cookies'] = window.localStorage.getItem('cookieFallback') ?? '';
+ }
+
+ if (method === 'GET') {
+ for (const [key, value] of Object.entries(Service.flatten(params))) {
+ url.searchParams.append(key, value);
+ }
+ } else {
+ switch (headers['content-type']) {
+ case 'application/json':
+ options.body = JSON.stringify(params);
+ break;
+
+ case 'multipart/form-data':
+ let formData = new FormData();
+
+ for (const key in params) {
+ if (Array.isArray(params[key])) {
+ params[key].forEach((value: any) => {
+ formData.append(key + '[]', value);
+ })
+ } else {
+ formData.append(key, params[key]);
+ }
+ }
+
+ options.body = formData;
+ delete headers['content-type'];
+ break;
+ }
+ }
+
+ try {
+ let data = null;
+ const response = await fetch(url.toString(), options);
+
+ if (response.headers.get('content-type')?.includes('application/json')) {
+ data = await response.json();
+ } else {
+ data = {
+ message: await response.text()
+ };
+ }
+
+ if (400 <= response.status) {
+ throw new AppwriteException(data?.message, response.status, data?.type, data);
+ }
+
+ const cookieFallback = response.headers.get('X-Fallback-Cookies');
+
+ if (typeof window !== 'undefined' && window.localStorage && cookieFallback) {
+ window.console.warn('Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.');
+ window.localStorage.setItem('cookieFallback', cookieFallback);
+ }
+
+ return data;
+ } catch (e) {
+ if (e instanceof AppwriteException) {
+ throw e;
+ }
+ throw new AppwriteException((e).message);
+ }
+ }
+}
+
+export { Client, AppwriteException };
+export { Query } from './query';
+export type { Models, Payload };
+export type { QueryTypes, QueryTypesList } from './query';
diff --git a/public/sdk-project/id.ts b/public/sdk-project/id.ts
new file mode 100644
index 0000000000..9577e4b179
--- /dev/null
+++ b/public/sdk-project/id.ts
@@ -0,0 +1,9 @@
+export class ID {
+ public static custom(id: string): string {
+ return id
+ }
+
+ public static unique(): string {
+ return 'unique()'
+ }
+}
\ No newline at end of file
diff --git a/public/sdk-project/index.ts b/public/sdk-project/index.ts
new file mode 100644
index 0000000000..3b9f1b87a3
--- /dev/null
+++ b/public/sdk-project/index.ts
@@ -0,0 +1,13 @@
+export { Client, Query, AppwriteException } from './client';
+export { Account } from './services/account';
+export { Avatars } from './services/avatars';
+export { Databases } from './services/databases';
+export { Functions } from './services/functions';
+export { Locale } from './services/locale';
+export { Storage } from './services/storage';
+export { Teams } from './services/teams';
+export type { Models, Payload, RealtimeResponseEvent, UploadProgress } from './client';
+export type { QueryTypes, QueryTypesList } from './query';
+export { Permission } from './permission';
+export { Role } from './role';
+export { ID } from './id';
\ No newline at end of file
diff --git a/public/sdk-project/models.ts b/public/sdk-project/models.ts
new file mode 100644
index 0000000000..2692a83730
--- /dev/null
+++ b/public/sdk-project/models.ts
@@ -0,0 +1,781 @@
+export namespace Models {
+ /**
+ * Documents List
+ */
+ export type DocumentList = {
+ /**
+ * Total number of documents documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of documents.
+ */
+ documents: Document[];
+ }
+ /**
+ * Sessions List
+ */
+ export type SessionList = {
+ /**
+ * Total number of sessions documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of sessions.
+ */
+ sessions: Session[];
+ }
+ /**
+ * Logs List
+ */
+ export type LogList = {
+ /**
+ * Total number of logs documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of logs.
+ */
+ logs: Log[];
+ }
+ /**
+ * Files List
+ */
+ export type FileList = {
+ /**
+ * Total number of files documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of files.
+ */
+ files: File[];
+ }
+ /**
+ * Teams List
+ */
+ export type TeamList = {
+ /**
+ * Total number of teams documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of teams.
+ */
+ teams: Team[];
+ }
+ /**
+ * Memberships List
+ */
+ export type MembershipList = {
+ /**
+ * Total number of memberships documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of memberships.
+ */
+ memberships: Membership[];
+ }
+ /**
+ * Executions List
+ */
+ export type ExecutionList = {
+ /**
+ * Total number of executions documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of executions.
+ */
+ executions: Execution[];
+ }
+ /**
+ * Countries List
+ */
+ export type CountryList = {
+ /**
+ * Total number of countries documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of countries.
+ */
+ countries: Country[];
+ }
+ /**
+ * Continents List
+ */
+ export type ContinentList = {
+ /**
+ * Total number of continents documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of continents.
+ */
+ continents: Continent[];
+ }
+ /**
+ * Languages List
+ */
+ export type LanguageList = {
+ /**
+ * Total number of languages documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of languages.
+ */
+ languages: Language[];
+ }
+ /**
+ * Currencies List
+ */
+ export type CurrencyList = {
+ /**
+ * Total number of currencies documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of currencies.
+ */
+ currencies: Currency[];
+ }
+ /**
+ * Phones List
+ */
+ export type PhoneList = {
+ /**
+ * Total number of phones documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of phones.
+ */
+ phones: Phone[];
+ }
+ /**
+ * Document
+ */
+ export type Document = {
+ /**
+ * Document ID.
+ */
+ $id: string;
+ /**
+ * Collection ID.
+ */
+ $collectionId: string;
+ /**
+ * Database ID.
+ */
+ $databaseId: string;
+ /**
+ * Document creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * Document update date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * Document permissions. [Learn more about permissions](/docs/permissions).
+ */
+ $permissions: string[];
+ [key: string]: any;
+ }
+ /**
+ * Log
+ */
+ export type Log = {
+ /**
+ * Event name.
+ */
+ event: string;
+ /**
+ * User ID.
+ */
+ userId: string;
+ /**
+ * User Email.
+ */
+ userEmail: string;
+ /**
+ * User Name.
+ */
+ userName: string;
+ /**
+ * API mode when event triggered.
+ */
+ mode: string;
+ /**
+ * IP session in use when the session was created.
+ */
+ ip: string;
+ /**
+ * Log creation date in ISO 8601 format.
+ */
+ time: string;
+ /**
+ * Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json).
+ */
+ osCode: string;
+ /**
+ * Operating system name.
+ */
+ osName: string;
+ /**
+ * Operating system version.
+ */
+ osVersion: string;
+ /**
+ * Client type.
+ */
+ clientType: string;
+ /**
+ * Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json).
+ */
+ clientCode: string;
+ /**
+ * Client name.
+ */
+ clientName: string;
+ /**
+ * Client version.
+ */
+ clientVersion: string;
+ /**
+ * Client engine name.
+ */
+ clientEngine: string;
+ /**
+ * Client engine name.
+ */
+ clientEngineVersion: string;
+ /**
+ * Device name.
+ */
+ deviceName: string;
+ /**
+ * Device brand name.
+ */
+ deviceBrand: string;
+ /**
+ * Device model name.
+ */
+ deviceModel: string;
+ /**
+ * Country two-character ISO 3166-1 alpha code.
+ */
+ countryCode: string;
+ /**
+ * Country name.
+ */
+ countryName: string;
+ }
+ /**
+ * Account
+ */
+ export type Account = {
+ /**
+ * User ID.
+ */
+ $id: string;
+ /**
+ * User creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * User update date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * User name.
+ */
+ name: string;
+ /**
+ * User registration date in ISO 8601 format.
+ */
+ registration: string;
+ /**
+ * User status. Pass `true` for enabled and `false` for disabled.
+ */
+ status: boolean;
+ /**
+ * Password update time in ISO 8601 format.
+ */
+ passwordUpdate: string;
+ /**
+ * User email address.
+ */
+ email: string;
+ /**
+ * User phone number in E.164 format.
+ */
+ phone: string;
+ /**
+ * Email verification status.
+ */
+ emailVerification: boolean;
+ /**
+ * Phone verification status.
+ */
+ phoneVerification: boolean;
+ /**
+ * User preferences as a key-value object
+ */
+ prefs: Preferences;
+ }
+ /**
+ * Preferences
+ */
+ export type Preferences = {
+ [key: string]: any;
+ }
+ /**
+ * Session
+ */
+ export type Session = {
+ /**
+ * Session ID.
+ */
+ $id: string;
+ /**
+ * Session creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * User ID.
+ */
+ userId: string;
+ /**
+ * Session expiration date in ISO 8601 format.
+ */
+ expire: string;
+ /**
+ * Session Provider.
+ */
+ provider: string;
+ /**
+ * Session Provider User ID.
+ */
+ providerUid: string;
+ /**
+ * Session Provider Access Token.
+ */
+ providerAccessToken: string;
+ /**
+ * The date of when the access token expires in ISO 8601 format.
+ */
+ providerAccessTokenExpiry: string;
+ /**
+ * Session Provider Refresh Token.
+ */
+ providerRefreshToken: string;
+ /**
+ * IP in use when the session was created.
+ */
+ ip: string;
+ /**
+ * Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json).
+ */
+ osCode: string;
+ /**
+ * Operating system name.
+ */
+ osName: string;
+ /**
+ * Operating system version.
+ */
+ osVersion: string;
+ /**
+ * Client type.
+ */
+ clientType: string;
+ /**
+ * Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json).
+ */
+ clientCode: string;
+ /**
+ * Client name.
+ */
+ clientName: string;
+ /**
+ * Client version.
+ */
+ clientVersion: string;
+ /**
+ * Client engine name.
+ */
+ clientEngine: string;
+ /**
+ * Client engine name.
+ */
+ clientEngineVersion: string;
+ /**
+ * Device name.
+ */
+ deviceName: string;
+ /**
+ * Device brand name.
+ */
+ deviceBrand: string;
+ /**
+ * Device model name.
+ */
+ deviceModel: string;
+ /**
+ * Country two-character ISO 3166-1 alpha code.
+ */
+ countryCode: string;
+ /**
+ * Country name.
+ */
+ countryName: string;
+ /**
+ * Returns true if this the current user session.
+ */
+ current: boolean;
+ }
+ /**
+ * Token
+ */
+ export type Token = {
+ /**
+ * Token ID.
+ */
+ $id: string;
+ /**
+ * Token creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * User ID.
+ */
+ userId: string;
+ /**
+ * Token secret key. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
+ */
+ secret: string;
+ /**
+ * Token expiration date in ISO 8601 format.
+ */
+ expire: string;
+ }
+ /**
+ * JWT
+ */
+ export type Jwt = {
+ /**
+ * JWT encoded string.
+ */
+ jwt: string;
+ }
+ /**
+ * Locale
+ */
+ export type Locale = {
+ /**
+ * User IP address.
+ */
+ ip: string;
+ /**
+ * Country code in [ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) two-character format
+ */
+ countryCode: string;
+ /**
+ * Country name. This field support localization.
+ */
+ country: string;
+ /**
+ * Continent code. A two character continent code "AF" for Africa, "AN" for Antarctica, "AS" for Asia, "EU" for Europe, "NA" for North America, "OC" for Oceania, and "SA" for South America.
+ */
+ continentCode: string;
+ /**
+ * Continent name. This field support localization.
+ */
+ continent: string;
+ /**
+ * True if country is part of the Europian Union.
+ */
+ eu: boolean;
+ /**
+ * Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format
+ */
+ currency: string;
+ }
+ /**
+ * File
+ */
+ export type File = {
+ /**
+ * File ID.
+ */
+ $id: string;
+ /**
+ * Bucket ID.
+ */
+ bucketId: string;
+ /**
+ * File creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * File update date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * File permissions. [Learn more about permissions](/docs/permissions).
+ */
+ $permissions: string[];
+ /**
+ * File name.
+ */
+ name: string;
+ /**
+ * File MD5 signature.
+ */
+ signature: string;
+ /**
+ * File mime type.
+ */
+ mimeType: string;
+ /**
+ * File original size in bytes.
+ */
+ sizeOriginal: number;
+ /**
+ * Total number of chunks available
+ */
+ chunksTotal: number;
+ /**
+ * Total number of chunks uploaded
+ */
+ chunksUploaded: number;
+ }
+ /**
+ * Team
+ */
+ export type Team = {
+ /**
+ * Team ID.
+ */
+ $id: string;
+ /**
+ * Team creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * Team update date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * Team name.
+ */
+ name: string;
+ /**
+ * Total number of team members.
+ */
+ total: number;
+ }
+ /**
+ * Membership
+ */
+ export type Membership = {
+ /**
+ * Membership ID.
+ */
+ $id: string;
+ /**
+ * Membership creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * Membership update date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * User ID.
+ */
+ userId: string;
+ /**
+ * User name.
+ */
+ userName: string;
+ /**
+ * User email address.
+ */
+ userEmail: string;
+ /**
+ * Team ID.
+ */
+ teamId: string;
+ /**
+ * Team name.
+ */
+ teamName: string;
+ /**
+ * Date, the user has been invited to join the team in ISO 8601 format.
+ */
+ invited: string;
+ /**
+ * Date, the user has accepted the invitation to join the team in ISO 8601 format.
+ */
+ joined: string;
+ /**
+ * User confirmation status, true if the user has joined the team or false otherwise.
+ */
+ confirm: boolean;
+ /**
+ * User list of roles
+ */
+ roles: string[];
+ }
+ /**
+ * Execution
+ */
+ export type Execution = {
+ /**
+ * Execution ID.
+ */
+ $id: string;
+ /**
+ * Execution creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * Execution upate date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * Execution roles.
+ */
+ $permissions: string[];
+ /**
+ * Function ID.
+ */
+ functionId: string;
+ /**
+ * The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.
+ */
+ trigger: string;
+ /**
+ * The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.
+ */
+ status: string;
+ /**
+ * The script status code.
+ */
+ statusCode: number;
+ /**
+ * The script response output string. Logs the last 4,000 characters of the execution response output.
+ */
+ response: string;
+ /**
+ * The script stdout output string. Logs the last 4,000 characters of the execution stdout output. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
+ */
+ stdout: string;
+ /**
+ * The script stderr output string. Logs the last 4,000 characters of the execution stderr output. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
+ */
+ stderr: string;
+ /**
+ * The script execution duration in seconds.
+ */
+ duration: number;
+ }
+ /**
+ * Country
+ */
+ export type Country = {
+ /**
+ * Country name.
+ */
+ name: string;
+ /**
+ * Country two-character ISO 3166-1 alpha code.
+ */
+ code: string;
+ }
+ /**
+ * Continent
+ */
+ export type Continent = {
+ /**
+ * Continent name.
+ */
+ name: string;
+ /**
+ * Continent two letter code.
+ */
+ code: string;
+ }
+ /**
+ * Language
+ */
+ export type Language = {
+ /**
+ * Language name.
+ */
+ name: string;
+ /**
+ * Language two-character ISO 639-1 codes.
+ */
+ code: string;
+ /**
+ * Language native name.
+ */
+ nativeName: string;
+ }
+ /**
+ * Currency
+ */
+ export type Currency = {
+ /**
+ * Currency symbol.
+ */
+ symbol: string;
+ /**
+ * Currency name.
+ */
+ name: string;
+ /**
+ * Currency native symbol.
+ */
+ symbolNative: string;
+ /**
+ * Number of decimal digits.
+ */
+ decimalDigits: number;
+ /**
+ * Currency digit rounding.
+ */
+ rounding: number;
+ /**
+ * Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format.
+ */
+ code: string;
+ /**
+ * Currency plural name
+ */
+ namePlural: string;
+ }
+ /**
+ * Phone
+ */
+ export type Phone = {
+ /**
+ * Phone code.
+ */
+ code: string;
+ /**
+ * Country two-character ISO 3166-1 alpha code.
+ */
+ countryCode: string;
+ /**
+ * Country name.
+ */
+ countryName: string;
+ }
+}
diff --git a/public/sdk-project/permission.ts b/public/sdk-project/permission.ts
new file mode 100644
index 0000000000..bfc330a166
--- /dev/null
+++ b/public/sdk-project/permission.ts
@@ -0,0 +1,22 @@
+export class Permission {
+
+ static read = (role: string): string => {
+ return `read("${role}")`
+ }
+
+ static write = (role: string): string => {
+ return `write("${role}")`
+ }
+
+ static create = (role: string): string => {
+ return `create("${role}")`
+ }
+
+ static update = (role: string): string => {
+ return `update("${role}")`
+ }
+
+ static delete = (role: string): string => {
+ return `delete("${role}")`
+ }
+}
diff --git a/public/sdk-project/query.ts b/public/sdk-project/query.ts
new file mode 100644
index 0000000000..962a6c8f7e
--- /dev/null
+++ b/public/sdk-project/query.ts
@@ -0,0 +1,56 @@
+type QueryTypesSingle = string | number | boolean;
+export type QueryTypesList = string[] | number[] | boolean[];
+export type QueryTypes = QueryTypesSingle | QueryTypesList;
+
+export class Query {
+ static equal = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "equal", value);
+
+ static notEqual = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "notEqual", value);
+
+ static lessThan = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "lessThan", value);
+
+ static lessThanEqual = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "lessThanEqual", value);
+
+ static greaterThan = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "greaterThan", value);
+
+ static greaterThanEqual = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "greaterThanEqual", value);
+
+ static search = (attribute: string, value: string): string =>
+ Query.addQuery(attribute, "search", value);
+
+ static orderDesc = (attribute: string): string =>
+ `orderDesc("${attribute}")`;
+
+ static orderAsc = (attribute: string): string =>
+ `orderAsc("${attribute}")`;
+
+ static cursorAfter = (documentId: string): string =>
+ `cursorAfter("${documentId}")`;
+
+ static cursorBefore = (documentId: string): string =>
+ `cursorBefore("${documentId}")`;
+
+ static limit = (limit: number): string =>
+ `limit(${limit})`;
+
+ static offset = (offset: number): string =>
+ `offset(${offset})`;
+
+ private static addQuery = (attribute: string, method: string, value: QueryTypes): string =>
+ value instanceof Array
+ ? `${method}("${attribute}", [${value
+ .map((v: QueryTypesSingle) => Query.parseValues(v))
+ .join(",")}])`
+ : `${method}("${attribute}", [${Query.parseValues(value)}])`;
+
+ private static parseValues = (value: QueryTypes): string =>
+ typeof value === "string" || value instanceof String
+ ? `"${value}"`
+ : `${value}`;
+}
\ No newline at end of file
diff --git a/public/sdk-project/role.ts b/public/sdk-project/role.ts
new file mode 100644
index 0000000000..579e6f8195
--- /dev/null
+++ b/public/sdk-project/role.ts
@@ -0,0 +1,38 @@
+export class Role {
+ public static any(): string {
+ return 'any'
+ }
+
+ public static user(id: string, status: string = ''): string {
+ if(status === '') {
+ return `user:${id}`
+ }
+ return `user:${id}/${status}`
+ }
+
+ public static users(status: string = ''): string {
+ if(status === '') {
+ return 'users'
+ }
+ return `users/${status}`
+ }
+
+ public static guests(): string {
+ return 'guests'
+ }
+
+ public static team(id: string, role: string = ''): string {
+ if(role === '') {
+ return `team:${id}`
+ }
+ return `team:${id}/${role}`
+ }
+
+ public static member(id: string): string {
+ return `member:${id}`
+ }
+
+ public static status(status: string): string {
+ return `status:${status}`
+ }
+}
\ No newline at end of file
diff --git a/public/sdk-project/service.ts b/public/sdk-project/service.ts
new file mode 100644
index 0000000000..0c9662be37
--- /dev/null
+++ b/public/sdk-project/service.ts
@@ -0,0 +1,30 @@
+import { Client } from './client';
+import type { Payload } from './client';
+
+export class Service {
+ static CHUNK_SIZE = 5*1024*1024; // 5MB
+
+ client: Client;
+
+ constructor(client: Client) {
+ this.client = client;
+ }
+
+ static flatten(data: Payload, prefix = ''): Payload {
+ let output: Payload = {};
+
+ for (const key in data) {
+ let value = data[key];
+ let finalKey = prefix ? `${prefix}[${key}]` : key;
+
+ if (Array.isArray(value)) {
+ output = Object.assign(output, this.flatten(value, finalKey));
+ }
+ else {
+ output[finalKey] = value;
+ }
+ }
+
+ return output;
+ }
+}
\ No newline at end of file
diff --git a/public/sdk-project/services/account.ts b/public/sdk-project/services/account.ts
new file mode 100644
index 0000000000..7e7fd13f01
--- /dev/null
+++ b/public/sdk-project/services/account.ts
@@ -0,0 +1,1990 @@
+import { Service } from '../service';
+import { AppwriteException, Client } from '../client';
+import type { Models } from '../models';
+import type { UploadProgress, Payload } from '../client';
+
+export class Account extends Service {
+
+ constructor(client: Client)
+ {
+ super(client);
+ }
+
+ /**
+ * Get Account
+ *
+ * Get currently logged in user data as JSON object.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async get(): Promise> {
+ let path = '/account';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Account
+ *
+ * Use this endpoint to allow a new user to register a new account in your
+ * project. After the user registration completes successfully, you can use
+ * the [/account/verfication](/docs/client/account#accountCreateVerification)
+ * route to start verifying the user email address. To allow the new user to
+ * login to their new account, you need to create a new [account
+ * session](/docs/client/account#accountCreateSession).
+ *
+ * @param {string} userId
+ * @param {string} email
+ * @param {string} password
+ * @param {string} name
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async create(userId: string, email: string, password: string, name?: string): Promise> {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ if (typeof name !== 'undefined') {
+ payload['name'] = name;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Email
+ *
+ * Update currently logged in user account email address. After changing user
+ * address, the user confirmation status will get reset. A new confirmation
+ * email is not sent automatically however you can use the send confirmation
+ * email endpoint again to send the confirmation email. For security measures,
+ * user password is required to complete this request.
+ * This endpoint can also be used to convert an anonymous account to a normal
+ * one, by passing an email address and a new password.
+ *
+ *
+ * @param {string} email
+ * @param {string} password
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateEmail(email: string, password: string): Promise> {
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account/email';
+ let payload: Payload = {};
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Account JWT
+ *
+ * Use this endpoint to create a JSON Web Token. You can use the resulting JWT
+ * to authenticate on behalf of the current user when working with the
+ * Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes
+ * from its creation and will be invalid if the user will logout in that time
+ * frame.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createJWT(): Promise {
+ let path = '/account/jwt';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Account Logs
+ *
+ * Get currently logged in user list of latest security activity logs. Each
+ * log returns user IP address, location and date and time of log.
+ *
+ * @param {string[]} queries
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listLogs(queries?: string[]): Promise {
+ let path = '/account/logs';
+ let payload: Payload = {};
+
+ if (typeof queries !== 'undefined') {
+ payload['queries'] = queries;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Name
+ *
+ * Update currently logged in user account name.
+ *
+ * @param {string} name
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateName(name: string): Promise> {
+ if (typeof name === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "name"');
+ }
+
+ let path = '/account/name';
+ let payload: Payload = {};
+
+ if (typeof name !== 'undefined') {
+ payload['name'] = name;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Password
+ *
+ * Update currently logged in user password. For validation, user is required
+ * to pass in the new password, and the old password. For users created with
+ * OAuth, Team Invites and Magic URL, oldPassword is optional.
+ *
+ * @param {string} password
+ * @param {string} oldPassword
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePassword(password: string, oldPassword?: string): Promise> {
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account/password';
+ let payload: Payload = {};
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ if (typeof oldPassword !== 'undefined') {
+ payload['oldPassword'] = oldPassword;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Phone
+ *
+ * Update the currently logged in user's phone number. After updating the
+ * phone number, the phone verification status will be reset. A confirmation
+ * SMS is not sent automatically, however you can use the [POST
+ * /account/verification/phone](/docs/client/account#accountCreatePhoneVerification)
+ * endpoint to send a confirmation SMS.
+ *
+ * @param {string} phone
+ * @param {string} password
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePhone(phone: string, password: string): Promise> {
+ if (typeof phone === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "phone"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account/phone';
+ let payload: Payload = {};
+
+ if (typeof phone !== 'undefined') {
+ payload['phone'] = phone;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get Account Preferences
+ *
+ * Get currently logged in user preferences as a key-value object.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async getPrefs(): Promise {
+ let path = '/account/prefs';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Preferences
+ *
+ * Update currently logged in user account preferences. The object you pass is
+ * stored as is, and replaces any previous value. The maximum allowed prefs
+ * size is 64kB and throws error if exceeded.
+ *
+ * @param {object} prefs
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePrefs(prefs: object): Promise> {
+ if (typeof prefs === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "prefs"');
+ }
+
+ let path = '/account/prefs';
+ let payload: Payload = {};
+
+ if (typeof prefs !== 'undefined') {
+ payload['prefs'] = prefs;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Password Recovery
+ *
+ * Sends the user an email with a temporary secret key for password reset.
+ * When the user clicks the confirmation link he is redirected back to your
+ * app password reset URL with the secret key and email address values
+ * attached to the URL query string. Use the query string params to submit a
+ * request to the [PUT
+ * /account/recovery](/docs/client/account#accountUpdateRecovery) endpoint to
+ * complete the process. The verification link sent to the user's email
+ * address is valid for 1 hour.
+ *
+ * @param {string} email
+ * @param {string} url
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createRecovery(email: string, url: string): Promise {
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof url === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "url"');
+ }
+
+ let path = '/account/recovery';
+ let payload: Payload = {};
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Password Recovery (confirmation)
+ *
+ * Use this endpoint to complete the user account password reset. Both the
+ * **userId** and **secret** arguments will be passed as query parameters to
+ * the redirect URL you have provided when sending your request to the [POST
+ * /account/recovery](/docs/client/account#accountCreateRecovery) endpoint.
+ *
+ * Please note that in order to avoid a [Redirect
+ * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
+ * the only valid redirect URLs are the ones from domains you have set when
+ * adding your platforms in the console interface.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @param {string} password
+ * @param {string} passwordAgain
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateRecovery(userId: string, secret: string, password: string, passwordAgain: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ if (typeof passwordAgain === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "passwordAgain"');
+ }
+
+ let path = '/account/recovery';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ if (typeof passwordAgain !== 'undefined') {
+ payload['passwordAgain'] = passwordAgain;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Account Sessions
+ *
+ * Get currently logged in user list of active sessions across different
+ * devices.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listSessions(): Promise {
+ let path = '/account/sessions';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Delete All Account Sessions
+ *
+ * Delete all sessions from the user account and remove any sessions cookies
+ * from the end client.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async deleteSessions(): Promise<{}> {
+ let path = '/account/sessions';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('delete', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Anonymous Session
+ *
+ * Use this endpoint to allow a new user to register an anonymous account in
+ * your project. This route will also create a new session for the user. To
+ * allow the new user to convert an anonymous account to a normal account, you
+ * need to update its [email and
+ * password](/docs/client/account#accountUpdateEmail) or create an [OAuth2
+ * session](/docs/client/account#accountCreateOAuth2Session).
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createAnonymousSession(): Promise {
+ let path = '/account/sessions/anonymous';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Account Session with Email
+ *
+ * Allow the user to login into their account by providing a valid email and
+ * password combination. This route will create a new session for the user.
+ *
+ * @param {string} email
+ * @param {string} password
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createEmailSession(email: string, password: string): Promise {
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account/sessions/email';
+ let payload: Payload = {};
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Magic URL session
+ *
+ * Sends the user an email with a secret key for creating a session. If the
+ * provided user ID has not be registered, a new user will be created. When
+ * the user clicks the link in the email, the user is redirected back to the
+ * URL you provided with the secret key and userId values attached to the URL
+ * query string. Use the query string parameters to submit a request to the
+ * [PUT
+ * /account/sessions/magic-url](/docs/client/account#accountUpdateMagicURLSession)
+ * endpoint to complete the login process. The link sent to the user's email
+ * address is valid for 1 hour. If you are on a mobile device you can leave
+ * the URL parameter empty, so that the login completion will be handled by
+ * your Appwrite instance by default.
+ *
+ * @param {string} userId
+ * @param {string} email
+ * @param {string} url
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createMagicURLSession(userId: string, email: string, url?: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ let path = '/account/sessions/magic-url';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Magic URL session (confirmation)
+ *
+ * Use this endpoint to complete creating the session with the Magic URL. Both
+ * the **userId** and **secret** arguments will be passed as query parameters
+ * to the redirect URL you have provided when sending your request to the
+ * [POST
+ * /account/sessions/magic-url](/docs/client/account#accountCreateMagicURLSession)
+ * endpoint.
+ *
+ * Please note that in order to avoid a [Redirect
+ * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
+ * the only valid redirect URLs are the ones from domains you have set when
+ * adding your platforms in the console interface.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateMagicURLSession(userId: string, secret: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ let path = '/account/sessions/magic-url';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Account Session with OAuth2
+ *
+ * Allow the user to login to their account using the OAuth2 provider of their
+ * choice. Each OAuth2 provider should be enabled from the Appwrite console
+ * first. Use the success and failure arguments to provide a redirect URL's
+ * back to your app when login is completed.
+ *
+ * If there is already an active session, the new session will be attached to
+ * the logged-in account. If there are no active sessions, the server will
+ * attempt to look for a user with the same email address as the email
+ * received from the OAuth2 provider and attach the new session to the
+ * existing user. If no matching user is found - the server will create a new
+ * user..
+ *
+ *
+ * @param {string} provider
+ * @param {string} success
+ * @param {string} failure
+ * @param {string[]} scopes
+ * @throws {AppwriteException}
+ * @returns {void|string}
+ */
+ createOAuth2Session(provider: string, success?: string, failure?: string, scopes?: string[]): void | URL {
+ if (typeof provider === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "provider"');
+ }
+
+ let path = '/account/sessions/oauth2/{provider}'.replace('{provider}', provider);
+ let payload: Payload = {};
+
+ if (typeof success !== 'undefined') {
+ payload['success'] = success;
+ }
+
+ if (typeof failure !== 'undefined') {
+ payload['failure'] = failure;
+ }
+
+ if (typeof scopes !== 'undefined') {
+ payload['scopes'] = scopes;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ if (typeof window !== 'undefined' && window?.location) {
+ window.location.href = uri.toString();
+ } else {
+ return uri;
+ }
+ }
+
+ /**
+ * Create Phone session
+ *
+ * Sends the user an SMS with a secret key for creating a session. If the
+ * provided user ID has not be registered, a new user will be created. Use the
+ * returned user ID and secret and submit a request to the [PUT
+ * /account/sessions/phone](/docs/client/account#accountUpdatePhoneSession)
+ * endpoint to complete the login process. The secret sent to the user's phone
+ * is valid for 15 minutes.
+ *
+ * @param {string} userId
+ * @param {string} phone
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createPhoneSession(userId: string, phone: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof phone === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "phone"');
+ }
+
+ let path = '/account/sessions/phone';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof phone !== 'undefined') {
+ payload['phone'] = phone;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Phone Session (confirmation)
+ *
+ * Use this endpoint to complete creating a session with SMS. Use the
+ * **userId** from the
+ * [createPhoneSession](/docs/client/account#accountCreatePhoneSession)
+ * endpoint and the **secret** received via SMS to successfully update and
+ * confirm the phone session.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePhoneSession(userId: string, secret: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ let path = '/account/sessions/phone';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get Session By ID
+ *
+ * Use this endpoint to get a logged in user's session using a Session ID.
+ * Inputting 'current' will return the current session being used.
+ *
+ * @param {string} sessionId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async getSession(sessionId: string): Promise {
+ if (typeof sessionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "sessionId"');
+ }
+
+ let path = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Session (Refresh Tokens)
+ *
+ * Access tokens have limited lifespan and expire to mitigate security risks.
+ * If session was created using an OAuth provider, this route can be used to
+ * "refresh" the access token.
+ *
+ * @param {string} sessionId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateSession(sessionId: string): Promise {
+ if (typeof sessionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "sessionId"');
+ }
+
+ let path = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Delete Account Session
+ *
+ * Use this endpoint to log out the currently logged in user from all their
+ * account sessions across all of their different devices. When using the
+ * Session ID argument, only the unique session ID provided is deleted.
+ *
+ *
+ * @param {string} sessionId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async deleteSession(sessionId: string): Promise<{}> {
+ if (typeof sessionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "sessionId"');
+ }
+
+ let path = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('delete', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Status
+ *
+ * Block the currently logged in user account. Behind the scene, the user
+ * record is not deleted but permanently blocked from any access. To
+ * completely delete a user, use the Users API instead.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateStatus(): Promise> {
+ let path = '/account/status';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Email Verification
+ *
+ * Use this endpoint to send a verification message to your user email address
+ * to confirm they are the valid owners of that address. Both the **userId**
+ * and **secret** arguments will be passed as query parameters to the URL you
+ * have provided to be attached to the verification email. The provided URL
+ * should redirect the user back to your app and allow you to complete the
+ * verification process by verifying both the **userId** and **secret**
+ * parameters. Learn more about how to [complete the verification
+ * process](/docs/client/account#accountUpdateEmailVerification). The
+ * verification link sent to the user's email address is valid for 7 days.
+ *
+ * Please note that in order to avoid a [Redirect
+ * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md),
+ * the only valid redirect URLs are the ones from domains you have set when
+ * adding your platforms in the console interface.
+ *
+ *
+ * @param {string} url
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createVerification(url: string): Promise {
+ if (typeof url === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "url"');
+ }
+
+ let path = '/account/verification';
+ let payload: Payload = {};
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Email Verification (confirmation)
+ *
+ * Use this endpoint to complete the user email verification process. Use both
+ * the **userId** and **secret** parameters that were attached to your app URL
+ * to verify the user email ownership. If confirmed this route will return a
+ * 200 status code.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateVerification(userId: string, secret: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ let path = '/account/verification';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Phone Verification
+ *
+ * Use this endpoint to send a verification SMS to the currently logged in
+ * user. This endpoint is meant for use after updating a user's phone number
+ * using the [accountUpdatePhone](/docs/client/account#accountUpdatePhone)
+ * endpoint. Learn more about how to [complete the verification
+ * process](/docs/client/account#accountUpdatePhoneVerification). The
+ * verification code sent to the user's phone number is valid for 15 minutes.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createPhoneVerification(): Promise {
+ let path = '/account/verification/phone';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Phone Verification (confirmation)
+ *
+ * Use this endpoint to complete the user phone verification process. Use the
+ * **userId** and **secret** that were sent to your user's phone number to
+ * verify the user email ownership. If confirmed this route will return a 200
+ * status code.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePhoneVerification(userId: string, secret: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ let path = '/account/verification/phone';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+};
+
+export class AccountDev extends Service {
+
+ constructor(client: Client)
+ {
+ super(client);
+ }
+
+ /**
+ * Get Account
+ *
+ * Get currently logged in user data as JSON object.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async get(): Promise> {
+ let path = '/account';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Account
+ *
+ * Use this endpoint to allow a new user to register a new account in your
+ * project. After the user registration completes successfully, you can use
+ * the [/account/verfication](/docs/client/account#accountCreateVerification)
+ * route to start verifying the user email address. To allow the new user to
+ * login to their new account, you need to create a new [account
+ * session](/docs/client/account#accountCreateSession).
+ *
+ * @param {string} userId
+ * @param {string} email
+ * @param {string} password
+ * @param {string} name
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async create(userId: string, email: string, password: string, name?: string): Promise> {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ if (typeof name !== 'undefined') {
+ payload['name'] = name;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Email
+ *
+ * Update currently logged in user account email address. After changing user
+ * address, the user confirmation status will get reset. A new confirmation
+ * email is not sent automatically however you can use the send confirmation
+ * email endpoint again to send the confirmation email. For security measures,
+ * user password is required to complete this request.
+ * This endpoint can also be used to convert an anonymous account to a normal
+ * one, by passing an email address and a new password.
+ *
+ *
+ * @param {string} email
+ * @param {string} password
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateEmail(email: string, password: string): Promise> {
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account/email';
+ let payload: Payload = {};
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Account JWT
+ *
+ * Use this endpoint to create a JSON Web Token. You can use the resulting JWT
+ * to authenticate on behalf of the current user when working with the
+ * Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes
+ * from its creation and will be invalid if the user will logout in that time
+ * frame.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createJWT(): Promise {
+ let path = '/account/jwt';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Account Logs
+ *
+ * Get currently logged in user list of latest security activity logs. Each
+ * log returns user IP address, location and date and time of log.
+ *
+ * @param {string[]} queries
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listLogs(queries?: string[]): Promise {
+ let path = '/account/logs';
+ let payload: Payload = {};
+
+ if (typeof queries !== 'undefined') {
+ payload['queries'] = queries;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Name
+ *
+ * Update currently logged in user account name.
+ *
+ * @param {string} name
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateName(name: string): Promise> {
+ if (typeof name === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "name"');
+ }
+
+ let path = '/account/name';
+ let payload: Payload = {};
+
+ if (typeof name !== 'undefined') {
+ payload['name'] = name;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Password
+ *
+ * Update currently logged in user password. For validation, user is required
+ * to pass in the new password, and the old password. For users created with
+ * OAuth, Team Invites and Magic URL, oldPassword is optional.
+ *
+ * @param {string} password
+ * @param {string} oldPassword
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePassword(password: string, oldPassword?: string): Promise> {
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account/password';
+ let payload: Payload = {};
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ if (typeof oldPassword !== 'undefined') {
+ payload['oldPassword'] = oldPassword;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Phone
+ *
+ * Update the currently logged in user's phone number. After updating the
+ * phone number, the phone verification status will be reset. A confirmation
+ * SMS is not sent automatically, however you can use the [POST
+ * /account/verification/phone](/docs/client/account#accountCreatePhoneVerification)
+ * endpoint to send a confirmation SMS.
+ *
+ * @param {string} phone
+ * @param {string} password
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePhone(phone: string, password: string): Promise> {
+ if (typeof phone === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "phone"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account/phone';
+ let payload: Payload = {};
+
+ if (typeof phone !== 'undefined') {
+ payload['phone'] = phone;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get Account Preferences
+ *
+ * Get currently logged in user preferences as a key-value object.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async getPrefs(): Promise {
+ let path = '/account/prefs';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Preferences
+ *
+ * Update currently logged in user account preferences. The object you pass is
+ * stored as is, and replaces any previous value. The maximum allowed prefs
+ * size is 64kB and throws error if exceeded.
+ *
+ * @param {object} prefs
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePrefs(prefs: object): Promise> {
+ if (typeof prefs === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "prefs"');
+ }
+
+ let path = '/account/prefs';
+ let payload: Payload = {};
+
+ if (typeof prefs !== 'undefined') {
+ payload['prefs'] = prefs;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Password Recovery
+ *
+ * Sends the user an email with a temporary secret key for password reset.
+ * When the user clicks the confirmation link he is redirected back to your
+ * app password reset URL with the secret key and email address values
+ * attached to the URL query string. Use the query string params to submit a
+ * request to the [PUT
+ * /account/recovery](/docs/client/account#accountUpdateRecovery) endpoint to
+ * complete the process. The verification link sent to the user's email
+ * address is valid for 1 hour.
+ *
+ * @param {string} email
+ * @param {string} url
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createRecovery(email: string, url: string): Promise {
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof url === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "url"');
+ }
+
+ let path = '/account/recovery';
+ let payload: Payload = {};
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Password Recovery (confirmation)
+ *
+ * Use this endpoint to complete the user account password reset. Both the
+ * **userId** and **secret** arguments will be passed as query parameters to
+ * the redirect URL you have provided when sending your request to the [POST
+ * /account/recovery](/docs/client/account#accountCreateRecovery) endpoint.
+ *
+ * Please note that in order to avoid a [Redirect
+ * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
+ * the only valid redirect URLs are the ones from domains you have set when
+ * adding your platforms in the console interface.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @param {string} password
+ * @param {string} passwordAgain
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateRecovery(userId: string, secret: string, password: string, passwordAgain: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ if (typeof passwordAgain === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "passwordAgain"');
+ }
+
+ let path = '/account/recovery';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ if (typeof passwordAgain !== 'undefined') {
+ payload['passwordAgain'] = passwordAgain;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Account Sessions
+ *
+ * Get currently logged in user list of active sessions across different
+ * devices.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listSessions(): Promise {
+ let path = '/account/sessions';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Delete All Account Sessions
+ *
+ * Delete all sessions from the user account and remove any sessions cookies
+ * from the end client.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async deleteSessions(): Promise<{}> {
+ let path = '/account/sessions';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('delete', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Anonymous Session
+ *
+ * Use this endpoint to allow a new user to register an anonymous account in
+ * your project. This route will also create a new session for the user. To
+ * allow the new user to convert an anonymous account to a normal account, you
+ * need to update its [email and
+ * password](/docs/client/account#accountUpdateEmail) or create an [OAuth2
+ * session](/docs/client/account#accountCreateOAuth2Session).
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createAnonymousSession(): Promise {
+ let path = '/account/sessions/anonymous';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Account Session with Email
+ *
+ * Allow the user to login into their account by providing a valid email and
+ * password combination. This route will create a new session for the user.
+ *
+ * @param {string} email
+ * @param {string} password
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createEmailSession(email: string, password: string): Promise {
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account/sessions/email';
+ let payload: Payload = {};
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Magic URL session
+ *
+ * Sends the user an email with a secret key for creating a session. If the
+ * provided user ID has not be registered, a new user will be created. When
+ * the user clicks the link in the email, the user is redirected back to the
+ * URL you provided with the secret key and userId values attached to the URL
+ * query string. Use the query string parameters to submit a request to the
+ * [PUT
+ * /account/sessions/magic-url](/docs/client/account#accountUpdateMagicURLSession)
+ * endpoint to complete the login process. The link sent to the user's email
+ * address is valid for 1 hour. If you are on a mobile device you can leave
+ * the URL parameter empty, so that the login completion will be handled by
+ * your Appwrite instance by default.
+ *
+ * @param {string} userId
+ * @param {string} email
+ * @param {string} url
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createMagicURLSession(userId: string, email: string, url?: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ let path = '/account/sessions/magic-url';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Magic URL session (confirmation)
+ *
+ * Use this endpoint to complete creating the session with the Magic URL. Both
+ * the **userId** and **secret** arguments will be passed as query parameters
+ * to the redirect URL you have provided when sending your request to the
+ * [POST
+ * /account/sessions/magic-url](/docs/client/account#accountCreateMagicURLSession)
+ * endpoint.
+ *
+ * Please note that in order to avoid a [Redirect
+ * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
+ * the only valid redirect URLs are the ones from domains you have set when
+ * adding your platforms in the console interface.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateMagicURLSession(userId: string, secret: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ let path = '/account/sessions/magic-url';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Account Session with OAuth2
+ *
+ * Allow the user to login to their account using the OAuth2 provider of their
+ * choice. Each OAuth2 provider should be enabled from the Appwrite console
+ * first. Use the success and failure arguments to provide a redirect URL's
+ * back to your app when login is completed.
+ *
+ * If there is already an active session, the new session will be attached to
+ * the logged-in account. If there are no active sessions, the server will
+ * attempt to look for a user with the same email address as the email
+ * received from the OAuth2 provider and attach the new session to the
+ * existing user. If no matching user is found - the server will create a new
+ * user..
+ *
+ *
+ * @param {string} provider
+ * @param {string} success
+ * @param {string} failure
+ * @param {string[]} scopes
+ * @throws {AppwriteException}
+ * @returns {void|string}
+ */
+ createOAuth2Session(provider: string, success?: string, failure?: string, scopes?: string[]): void | URL {
+ if (typeof provider === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "provider"');
+ }
+
+ let path = '/account/sessions/oauth2/{provider}'.replace('{provider}', provider);
+ let payload: Payload = {};
+
+ if (typeof success !== 'undefined') {
+ payload['success'] = success;
+ }
+
+ if (typeof failure !== 'undefined') {
+ payload['failure'] = failure;
+ }
+
+ if (typeof scopes !== 'undefined') {
+ payload['scopes'] = scopes;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ if (typeof window !== 'undefined' && window?.location) {
+ window.location.href = uri.toString();
+ } else {
+ return uri;
+ }
+ }
+
+ /**
+ * Create Phone session
+ *
+ * Sends the user an SMS with a secret key for creating a session. If the
+ * provided user ID has not be registered, a new user will be created. Use the
+ * returned user ID and secret and submit a request to the [PUT
+ * /account/sessions/phone](/docs/client/account#accountUpdatePhoneSession)
+ * endpoint to complete the login process. The secret sent to the user's phone
+ * is valid for 15 minutes.
+ *
+ * @param {string} userId
+ * @param {string} phone
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createPhoneSession(userId: string, phone: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof phone === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "phone"');
+ }
+
+ let path = '/account/sessions/phone';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof phone !== 'undefined') {
+ payload['phone'] = phone;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Phone Session (confirmation)
+ *
+ * Use this endpoint to complete creating a session with SMS. Use the
+ * **userId** from the
+ * [createPhoneSession](/docs/client/account#accountCreatePhoneSession)
+ * endpoint and the **secret** received via SMS to successfully update and
+ * confirm the phone session.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePhoneSession(userId: string, secret: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ let path = '/account/sessions/phone';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get Session By ID
+ *
+ * Use this endpoint to get a logged in user's session using a Session ID.
+ * Inputting 'current' will return the current session being used.
+ *
+ * @param {string} sessionId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async getSession(sessionId: string): Promise {
+ if (typeof sessionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "sessionId"');
+ }
+
+ let path = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Session (Refresh Tokens)
+ *
+ * Access tokens have limited lifespan and expire to mitigate security risks.
+ * If session was created using an OAuth provider, this route can be used to
+ * "refresh" the access token.
+ *
+ * @param {string} sessionId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateSession(sessionId: string): Promise {
+ if (typeof sessionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "sessionId"');
+ }
+
+ let path = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Delete Account Session
+ *
+ * Use this endpoint to log out the currently logged in user from all their
+ * account sessions across all of their different devices. When using the
+ * Session ID argument, only the unique session ID provided is deleted.
+ *
+ *
+ * @param {string} sessionId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async deleteSession(sessionId: string): Promise<{}> {
+ if (typeof sessionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "sessionId"');
+ }
+
+ let path = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('delete', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Status
+ *
+ * Block the currently logged in user account. Behind the scene, the user
+ * record is not deleted but permanently blocked from any access. To
+ * completely delete a user, use the Users API instead.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateStatus(): Promise> {
+ let path = '/account/status';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Email Verification
+ *
+ * Use this endpoint to send a verification message to your user email address
+ * to confirm they are the valid owners of that address. Both the **userId**
+ * and **secret** arguments will be passed as query parameters to the URL you
+ * have provided to be attached to the verification email. The provided URL
+ * should redirect the user back to your app and allow you to complete the
+ * verification process by verifying both the **userId** and **secret**
+ * parameters. Learn more about how to [complete the verification
+ * process](/docs/client/account#accountUpdateEmailVerification). The
+ * verification link sent to the user's email address is valid for 7 days.
+ *
+ * Please note that in order to avoid a [Redirect
+ * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md),
+ * the only valid redirect URLs are the ones from domains you have set when
+ * adding your platforms in the console interface.
+ *
+ *
+ * @param {string} url
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createVerification(url: string): Promise {
+ if (typeof url === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "url"');
+ }
+
+ let path = '/account/verification';
+ let payload: Payload = {};
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Email Verification (confirmation)
+ *
+ * Use this endpoint to complete the user email verification process. Use both
+ * the **userId** and **secret** parameters that were attached to your app URL
+ * to verify the user email ownership. If confirmed this route will return a
+ * 200 status code.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateVerification(userId: string, secret: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ let path = '/account/verification';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Phone Verification
+ *
+ * Use this endpoint to send a verification SMS to the currently logged in
+ * user. This endpoint is meant for use after updating a user's phone number
+ * using the [accountUpdatePhone](/docs/client/account#accountUpdatePhone)
+ * endpoint. Learn more about how to [complete the verification
+ * process](/docs/client/account#accountUpdatePhoneVerification). The
+ * verification code sent to the user's phone number is valid for 15 minutes.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createPhoneVerification(): Promise {
+ let path = '/account/verification/phone';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Phone Verification (confirmation)
+ *
+ * Use this endpoint to complete the user phone verification process. Use the
+ * **userId** and **secret** that were sent to your user's phone number to
+ * verify the user email ownership. If confirmed this route will return a 200
+ * status code.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePhoneVerification(userId: string, secret: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ let path = '/account/verification/phone';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+};
\ No newline at end of file
diff --git a/public/sdk-project/services/avatars.ts b/public/sdk-project/services/avatars.ts
new file mode 100644
index 0000000000..88872695f2
--- /dev/null
+++ b/public/sdk-project/services/avatars.ts
@@ -0,0 +1,351 @@
+import { Service } from '../service';
+import { AppwriteException, Client } from '../client';
+import type { Models } from '../models';
+import type { UploadProgress, Payload } from '../client';
+
+export class Avatars extends Service {
+
+ constructor(client: Client)
+ {
+ super(client);
+ }
+
+ /**
+ * Get Browser Icon
+ *
+ * You can use this endpoint to show different browser icons to your users.
+ * The code argument receives the browser code as it appears in your user [GET
+ * /account/sessions](/docs/client/account#accountGetSessions) endpoint. Use
+ * width, height and quality arguments to change the output settings.
+ *
+ * When one dimension is specified and the other is 0, the image is scaled
+ * with preserved aspect ratio. If both dimensions are 0, the API provides an
+ * image at source quality. If dimensions are not specified, the default size
+ * of image returned is 100x100px.
+ *
+ * @param {string} code
+ * @param {number} width
+ * @param {number} height
+ * @param {number} quality
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getBrowser(code: string, width?: number, height?: number, quality?: number): URL {
+ if (typeof code === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "code"');
+ }
+
+ let path = '/avatars/browsers/{code}'.replace('{code}', code);
+ let payload: Payload = {};
+
+ if (typeof width !== 'undefined') {
+ payload['width'] = width;
+ }
+
+ if (typeof height !== 'undefined') {
+ payload['height'] = height;
+ }
+
+ if (typeof quality !== 'undefined') {
+ payload['quality'] = quality;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+
+ /**
+ * Get Credit Card Icon
+ *
+ * The credit card endpoint will return you the icon of the credit card
+ * provider you need. Use width, height and quality arguments to change the
+ * output settings.
+ *
+ * When one dimension is specified and the other is 0, the image is scaled
+ * with preserved aspect ratio. If both dimensions are 0, the API provides an
+ * image at source quality. If dimensions are not specified, the default size
+ * of image returned is 100x100px.
+ *
+ *
+ * @param {string} code
+ * @param {number} width
+ * @param {number} height
+ * @param {number} quality
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getCreditCard(code: string, width?: number, height?: number, quality?: number): URL {
+ if (typeof code === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "code"');
+ }
+
+ let path = '/avatars/credit-cards/{code}'.replace('{code}', code);
+ let payload: Payload = {};
+
+ if (typeof width !== 'undefined') {
+ payload['width'] = width;
+ }
+
+ if (typeof height !== 'undefined') {
+ payload['height'] = height;
+ }
+
+ if (typeof quality !== 'undefined') {
+ payload['quality'] = quality;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+
+ /**
+ * Get Favicon
+ *
+ * Use this endpoint to fetch the favorite icon (AKA favicon) of any remote
+ * website URL.
+ *
+ *
+ * @param {string} url
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getFavicon(url: string): URL {
+ if (typeof url === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "url"');
+ }
+
+ let path = '/avatars/favicon';
+ let payload: Payload = {};
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+
+ /**
+ * Get Country Flag
+ *
+ * You can use this endpoint to show different country flags icons to your
+ * users. The code argument receives the 2 letter country code. Use width,
+ * height and quality arguments to change the output settings. Country codes
+ * follow the [ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) standard.
+ *
+ * When one dimension is specified and the other is 0, the image is scaled
+ * with preserved aspect ratio. If both dimensions are 0, the API provides an
+ * image at source quality. If dimensions are not specified, the default size
+ * of image returned is 100x100px.
+ *
+ *
+ * @param {string} code
+ * @param {number} width
+ * @param {number} height
+ * @param {number} quality
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getFlag(code: string, width?: number, height?: number, quality?: number): URL {
+ if (typeof code === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "code"');
+ }
+
+ let path = '/avatars/flags/{code}'.replace('{code}', code);
+ let payload: Payload = {};
+
+ if (typeof width !== 'undefined') {
+ payload['width'] = width;
+ }
+
+ if (typeof height !== 'undefined') {
+ payload['height'] = height;
+ }
+
+ if (typeof quality !== 'undefined') {
+ payload['quality'] = quality;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+
+ /**
+ * Get Image from URL
+ *
+ * Use this endpoint to fetch a remote image URL and crop it to any image size
+ * you want. This endpoint is very useful if you need to crop and display
+ * remote images in your app or in case you want to make sure a 3rd party
+ * image is properly served using a TLS protocol.
+ *
+ * When one dimension is specified and the other is 0, the image is scaled
+ * with preserved aspect ratio. If both dimensions are 0, the API provides an
+ * image at source quality. If dimensions are not specified, the default size
+ * of image returned is 400x400px.
+ *
+ *
+ * @param {string} url
+ * @param {number} width
+ * @param {number} height
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getImage(url: string, width?: number, height?: number): URL {
+ if (typeof url === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "url"');
+ }
+
+ let path = '/avatars/image';
+ let payload: Payload = {};
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ if (typeof width !== 'undefined') {
+ payload['width'] = width;
+ }
+
+ if (typeof height !== 'undefined') {
+ payload['height'] = height;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+
+ /**
+ * Get User Initials
+ *
+ * Use this endpoint to show your user initials avatar icon on your website or
+ * app. By default, this route will try to print your logged-in user name or
+ * email initials. You can also overwrite the user name if you pass the 'name'
+ * parameter. If no name is given and no user is logged, an empty avatar will
+ * be returned.
+ *
+ * You can use the color and background params to change the avatar colors. By
+ * default, a random theme will be selected. The random theme will persist for
+ * the user's initials when reloading the same theme will always return for
+ * the same initials.
+ *
+ * When one dimension is specified and the other is 0, the image is scaled
+ * with preserved aspect ratio. If both dimensions are 0, the API provides an
+ * image at source quality. If dimensions are not specified, the default size
+ * of image returned is 100x100px.
+ *
+ *
+ * @param {string} name
+ * @param {number} width
+ * @param {number} height
+ * @param {string} background
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getInitials(name?: string, width?: number, height?: number, background?: string): URL {
+ let path = '/avatars/initials';
+ let payload: Payload = {};
+
+ if (typeof name !== 'undefined') {
+ payload['name'] = name;
+ }
+
+ if (typeof width !== 'undefined') {
+ payload['width'] = width;
+ }
+
+ if (typeof height !== 'undefined') {
+ payload['height'] = height;
+ }
+
+ if (typeof background !== 'undefined') {
+ payload['background'] = background;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+
+ /**
+ * Get QR Code
+ *
+ * Converts a given plain text to a QR code image. You can use the query
+ * parameters to change the size and style of the resulting image.
+ *
+ *
+ * @param {string} text
+ * @param {number} size
+ * @param {number} margin
+ * @param {boolean} download
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getQR(text: string, size?: number, margin?: number, download?: boolean): URL {
+ if (typeof text === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "text"');
+ }
+
+ let path = '/avatars/qr';
+ let payload: Payload = {};
+
+ if (typeof text !== 'undefined') {
+ payload['text'] = text;
+ }
+
+ if (typeof size !== 'undefined') {
+ payload['size'] = size;
+ }
+
+ if (typeof margin !== 'undefined') {
+ payload['margin'] = margin;
+ }
+
+ if (typeof download !== 'undefined') {
+ payload['download'] = download;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+};
diff --git a/public/sdk-project/services/databases.ts b/public/sdk-project/services/databases.ts
new file mode 100644
index 0000000000..766c7385ad
--- /dev/null
+++ b/public/sdk-project/services/databases.ts
@@ -0,0 +1,213 @@
+import { Service } from '../service';
+import { AppwriteException, Client } from '../client';
+import type { Models } from '../models';
+import type { UploadProgress, Payload } from '../client';
+
+export class Databases extends Service {
+
+ constructor(client: Client)
+ {
+ super(client);
+ }
+
+ /**
+ * List Documents
+ *
+ * Get a list of all the user's documents in a given collection. You can use
+ * the query params to filter your results. On admin mode, this endpoint will
+ * return a list of all of documents belonging to the provided collectionId.
+ * [Learn more about different API modes](/docs/admin).
+ *
+ * @param {string} databaseId
+ * @param {string} collectionId
+ * @param {string[]} queries
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listDocuments(databaseId: string, collectionId: string, queries?: string[]): Promise> {
+ if (typeof databaseId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "databaseId"');
+ }
+
+ if (typeof collectionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "collectionId"');
+ }
+
+ let path = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
+ let payload: Payload = {};
+
+ if (typeof queries !== 'undefined') {
+ payload['queries'] = queries;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Document
+ *
+ * Create a new Document. Before using this route, you should create a new
+ * collection resource using either a [server
+ * integration](/docs/server/databases#databasesCreateCollection) API or
+ * directly from your database console.
+ *
+ * @param {string} databaseId
+ * @param {string} collectionId
+ * @param {string} documentId
+ * @param {Omit} data
+ * @param {string[]} permissions
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createDocument(databaseId: string, collectionId: string, documentId: string, data: Omit, permissions?: string[]): Promise {
+ if (typeof databaseId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "databaseId"');
+ }
+
+ if (typeof collectionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "collectionId"');
+ }
+
+ if (typeof documentId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "documentId"');
+ }
+
+ if (typeof data === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "data"');
+ }
+
+ let path = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
+ let payload: Payload = {};
+
+ if (typeof documentId !== 'undefined') {
+ payload['documentId'] = documentId;
+ }
+
+ if (typeof data !== 'undefined') {
+ payload['data'] = data;
+ }
+
+ if (typeof permissions !== 'undefined') {
+ payload['permissions'] = permissions;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get Document
+ *
+ * Get a document by its unique ID. This endpoint response returns a JSON
+ * object with the document data.
+ *
+ * @param {string} databaseId
+ * @param {string} collectionId
+ * @param {string} documentId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async getDocument(databaseId: string, collectionId: string, documentId: string): Promise {
+ if (typeof databaseId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "databaseId"');
+ }
+
+ if (typeof collectionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "collectionId"');
+ }
+
+ if (typeof documentId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "documentId"');
+ }
+
+ let path = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Document
+ *
+ * Update a document by its unique ID. Using the patch method you can pass
+ * only specific fields that will get updated.
+ *
+ * @param {string} databaseId
+ * @param {string} collectionId
+ * @param {string} documentId
+ * @param {Partial>} data
+ * @param {string[]} permissions
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateDocument(databaseId: string, collectionId: string, documentId: string, data?: Partial>, permissions?: string[]): Promise {
+ if (typeof databaseId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "databaseId"');
+ }
+
+ if (typeof collectionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "collectionId"');
+ }
+
+ if (typeof documentId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "documentId"');
+ }
+
+ let path = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
+ let payload: Payload = {};
+
+ if (typeof data !== 'undefined') {
+ payload['data'] = data;
+ }
+
+ if (typeof permissions !== 'undefined') {
+ payload['permissions'] = permissions;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Delete Document
+ *
+ * Delete a document by its unique ID.
+ *
+ * @param {string} databaseId
+ * @param {string} collectionId
+ * @param {string} documentId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async deleteDocument(databaseId: string, collectionId: string, documentId: string): Promise<{}> {
+ if (typeof databaseId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "databaseId"');
+ }
+
+ if (typeof collectionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "collectionId"');
+ }
+
+ if (typeof documentId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "documentId"');
+ }
+
+ let path = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('delete', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+};
diff --git a/public/sdk-project/services/functions.ts b/public/sdk-project/services/functions.ts
new file mode 100644
index 0000000000..79719252e4
--- /dev/null
+++ b/public/sdk-project/services/functions.ts
@@ -0,0 +1,144 @@
+import { Service } from '../service';
+import { AppwriteException, Client } from '../client';
+import type { Models } from '../models';
+import type { UploadProgress, Payload } from '../client';
+
+export class Functions extends Service {
+
+ constructor(client: Client)
+ {
+ super(client);
+ }
+
+ /**
+ * Retry Build
+ *
+ *
+ * @param {string} functionId
+ * @param {string} deploymentId
+ * @param {string} buildId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async retryBuild(functionId: string, deploymentId: string, buildId: string): Promise<{}> {
+ if (typeof functionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "functionId"');
+ }
+
+ if (typeof deploymentId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "deploymentId"');
+ }
+
+ if (typeof buildId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "buildId"');
+ }
+
+ let path = '/functions/{functionId}/deployments/{deploymentId}/builds/{buildId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId).replace('{buildId}', buildId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Executions
+ *
+ * Get a list of all the current user function execution logs. You can use the
+ * query params to filter your results. On admin mode, this endpoint will
+ * return a list of all of the project's executions. [Learn more about
+ * different API modes](/docs/admin).
+ *
+ * @param {string} functionId
+ * @param {string[]} queries
+ * @param {string} search
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listExecutions(functionId: string, queries?: string[], search?: string): Promise {
+ if (typeof functionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "functionId"');
+ }
+
+ let path = '/functions/{functionId}/executions'.replace('{functionId}', functionId);
+ let payload: Payload = {};
+
+ if (typeof queries !== 'undefined') {
+ payload['queries'] = queries;
+ }
+
+ if (typeof search !== 'undefined') {
+ payload['search'] = search;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Execution
+ *
+ * Trigger a function execution. The returned object will return you the
+ * current execution status. You can ping the `Get Execution` endpoint to get
+ * updates on the current execution status. Once this endpoint is called, your
+ * function execution process will start asynchronously.
+ *
+ * @param {string} functionId
+ * @param {string} data
+ * @param {boolean} async
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createExecution(functionId: string, data?: string, async?: boolean): Promise {
+ if (typeof functionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "functionId"');
+ }
+
+ let path = '/functions/{functionId}/executions'.replace('{functionId}', functionId);
+ let payload: Payload = {};
+
+ if (typeof data !== 'undefined') {
+ payload['data'] = data;
+ }
+
+ if (typeof async !== 'undefined') {
+ payload['async'] = async;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get Execution
+ *
+ * Get a function execution log by its unique ID.
+ *
+ * @param {string} functionId
+ * @param {string} executionId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async getExecution(functionId: string, executionId: string): Promise {
+ if (typeof functionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "functionId"');
+ }
+
+ if (typeof executionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "executionId"');
+ }
+
+ let path = '/functions/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+};
diff --git a/public/sdk-project/services/locale.ts b/public/sdk-project/services/locale.ts
new file mode 100644
index 0000000000..62a234756f
--- /dev/null
+++ b/public/sdk-project/services/locale.ts
@@ -0,0 +1,150 @@
+import { Service } from '../service';
+import { AppwriteException, Client } from '../client';
+import type { Models } from '../models';
+import type { UploadProgress, Payload } from '../client';
+
+export class Locale extends Service {
+
+ constructor(client: Client)
+ {
+ super(client);
+ }
+
+ /**
+ * Get User Locale
+ *
+ * Get the current user location based on IP. Returns an object with user
+ * country code, country name, continent name, continent code, ip address and
+ * suggested currency. You can use the locale header to get the data in a
+ * supported language.
+ *
+ * ([IP Geolocation by DB-IP](https://db-ip.com))
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async get(): Promise {
+ let path = '/locale';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Continents
+ *
+ * List of all continents. You can use the locale header to get the data in a
+ * supported language.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listContinents(): Promise {
+ let path = '/locale/continents';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Countries
+ *
+ * List of all countries. You can use the locale header to get the data in a
+ * supported language.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listCountries(): Promise {
+ let path = '/locale/countries';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List EU Countries
+ *
+ * List of all countries that are currently members of the EU. You can use the
+ * locale header to get the data in a supported language.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listCountriesEU(): Promise {
+ let path = '/locale/countries/eu';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Countries Phone Codes
+ *
+ * List of all countries phone codes. You can use the locale header to get the
+ * data in a supported language.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listCountriesPhones(): Promise {
+ let path = '/locale/countries/phones';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Currencies
+ *
+ * List of all currencies, including currency symbol, name, plural, and
+ * decimal digits for all major and minor currencies. You can use the locale
+ * header to get the data in a supported language.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listCurrencies(): Promise {
+ let path = '/locale/currencies';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Languages
+ *
+ * List of all languages classified by ISO 639-1 including 2-letter code, name
+ * in English, and name in the respective language.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listLanguages(): Promise {
+ let path = '/locale/languages';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+};
diff --git a/public/sdk-project/services/storage.ts b/public/sdk-project/services/storage.ts
new file mode 100644
index 0000000000..abed03be28
--- /dev/null
+++ b/public/sdk-project/services/storage.ts
@@ -0,0 +1,419 @@
+import { Service } from '../service';
+import { AppwriteException, Client } from '../client';
+import type { Models } from '../models';
+import type { UploadProgress, Payload } from '../client';
+
+export class Storage extends Service {
+
+ constructor(client: Client)
+ {
+ super(client);
+ }
+
+ /**
+ * List Files
+ *
+ * Get a list of all the user files. You can use the query params to filter
+ * your results. On admin mode, this endpoint will return a list of all of the
+ * project's files. [Learn more about different API modes](/docs/admin).
+ *
+ * @param {string} bucketId
+ * @param {string[]} queries
+ * @param {string} search
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listFiles(bucketId: string, queries?: string[], search?: string): Promise {
+ if (typeof bucketId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "bucketId"');
+ }
+
+ let path = '/storage/buckets/{bucketId}/files'.replace('{bucketId}', bucketId);
+ let payload: Payload = {};
+
+ if (typeof queries !== 'undefined') {
+ payload['queries'] = queries;
+ }
+
+ if (typeof search !== 'undefined') {
+ payload['search'] = search;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create File
+ *
+ * Create a new file. Before using this route, you should create a new bucket
+ * resource using either a [server
+ * integration](/docs/server/storage#storageCreateBucket) API or directly from
+ * your Appwrite console.
+ *
+ * Larger files should be uploaded using multiple requests with the
+ * [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range)
+ * header to send a partial request with a maximum supported chunk of `5MB`.
+ * The `content-range` header values should always be in bytes.
+ *
+ * When the first request is sent, the server will return the **File** object,
+ * and the subsequent part request must include the file's **id** in
+ * `x-appwrite-id` header to allow the server to know that the partial upload
+ * is for the existing file and not for a new one.
+ *
+ * If you're creating a new file using one of the Appwrite SDKs, all the
+ * chunking logic will be managed by the SDK internally.
+ *
+ *
+ * @param {string} bucketId
+ * @param {string} fileId
+ * @param {File} file
+ * @param {string[]} permissions
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createFile(bucketId: string, fileId: string, file: File, permissions?: string[], onProgress = (progress: UploadProgress) => {}): Promise {
+ if (typeof bucketId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "bucketId"');
+ }
+
+ if (typeof fileId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "fileId"');
+ }
+
+ if (typeof file === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "file"');
+ }
+
+ let path = '/storage/buckets/{bucketId}/files'.replace('{bucketId}', bucketId);
+ let payload: Payload = {};
+
+ if (typeof fileId !== 'undefined') {
+ payload['fileId'] = fileId;
+ }
+
+ if (typeof file !== 'undefined') {
+ payload['file'] = file;
+ }
+
+ if (typeof permissions !== 'undefined') {
+ payload['permissions'] = permissions;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+
+ if(!(file instanceof File)) {
+ throw new AppwriteException('Parameter "file" has to be a File.');
+ }
+
+ const size = file.size;
+
+ if (size <= Service.CHUNK_SIZE) {
+ return await this.client.call('post', uri, {
+
+ 'content-type': 'multipart/form-data',
+ }, payload);
+ }
+ let id = undefined;
+ let response = undefined;
+
+ const headers: { [header: string]: string } = {
+ 'content-type': 'multipart/form-data',
+ }
+
+ let counter = 0;
+ const totalCounters = Math.ceil(size / Service.CHUNK_SIZE);
+ if(fileId != 'unique()') {
+ try {
+ response = await this.client.call('GET', new URL(this.client.config.endpoint + path + '/' + fileId), headers);
+ counter = response.chunksUploaded;
+ } catch(e) {
+ }
+ }
+
+ for (counter; counter < totalCounters; counter++) {
+ const start = (counter * Service.CHUNK_SIZE);
+ const end = Math.min((((counter * Service.CHUNK_SIZE) + Service.CHUNK_SIZE) - 1), size);
+
+ headers['content-range'] = 'bytes ' + start + '-' + end + '/' + size
+
+ if (id) {
+ headers['x-appwrite-id'] = id;
+ }
+
+ const stream = file.slice(start, end + 1);
+ payload['file'] = new File([stream], file.name);
+
+ response = await this.client.call('post', uri, headers, payload);
+
+ if (!id) {
+ id = response['$id'];
+ }
+
+ if (onProgress) {
+ onProgress({
+ $id: response.$id,
+ progress: Math.min((counter + 1) * Service.CHUNK_SIZE - 1, size) / size * 100,
+ sizeUploaded: end,
+ chunksTotal: response.chunksTotal,
+ chunksUploaded: response.chunksUploaded
+ });
+ }
+ }
+
+ return response;
+ }
+
+ /**
+ * Get File
+ *
+ * Get a file by its unique ID. This endpoint response returns a JSON object
+ * with the file metadata.
+ *
+ * @param {string} bucketId
+ * @param {string} fileId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async getFile(bucketId: string, fileId: string): Promise {
+ if (typeof bucketId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "bucketId"');
+ }
+
+ if (typeof fileId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "fileId"');
+ }
+
+ let path = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update File
+ *
+ * Update a file by its unique ID. Only users with write permissions have
+ * access to update this resource.
+ *
+ * @param {string} bucketId
+ * @param {string} fileId
+ * @param {string[]} permissions
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateFile(bucketId: string, fileId: string, permissions?: string[]): Promise {
+ if (typeof bucketId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "bucketId"');
+ }
+
+ if (typeof fileId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "fileId"');
+ }
+
+ let path = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
+ let payload: Payload = {};
+
+ if (typeof permissions !== 'undefined') {
+ payload['permissions'] = permissions;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Delete File
+ *
+ * Delete a file by its unique ID. Only users with write permissions have
+ * access to delete this resource.
+ *
+ * @param {string} bucketId
+ * @param {string} fileId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async deleteFile(bucketId: string, fileId: string): Promise<{}> {
+ if (typeof bucketId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "bucketId"');
+ }
+
+ if (typeof fileId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "fileId"');
+ }
+
+ let path = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('delete', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get File for Download
+ *
+ * Get a file content by its unique ID. The endpoint response return with a
+ * 'Content-Disposition: attachment' header that tells the browser to start
+ * downloading the file to user downloads directory.
+ *
+ * @param {string} bucketId
+ * @param {string} fileId
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getFileDownload(bucketId: string, fileId: string): URL {
+ if (typeof bucketId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "bucketId"');
+ }
+
+ if (typeof fileId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "fileId"');
+ }
+
+ let path = '/storage/buckets/{bucketId}/files/{fileId}/download'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+
+ /**
+ * Get File Preview
+ *
+ * Get a file preview image. Currently, this method supports preview for image
+ * files (jpg, png, and gif), other supported formats, like pdf, docs, slides,
+ * and spreadsheets, will return the file icon image. You can also pass query
+ * string arguments for cutting and resizing your preview image. Preview is
+ * supported only for image files smaller than 10MB.
+ *
+ * @param {string} bucketId
+ * @param {string} fileId
+ * @param {number} width
+ * @param {number} height
+ * @param {string} gravity
+ * @param {number} quality
+ * @param {number} borderWidth
+ * @param {string} borderColor
+ * @param {number} borderRadius
+ * @param {number} opacity
+ * @param {number} rotation
+ * @param {string} background
+ * @param {string} output
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getFilePreview(bucketId: string, fileId: string, width?: number, height?: number, gravity?: string, quality?: number, borderWidth?: number, borderColor?: string, borderRadius?: number, opacity?: number, rotation?: number, background?: string, output?: string): URL {
+ if (typeof bucketId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "bucketId"');
+ }
+
+ if (typeof fileId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "fileId"');
+ }
+
+ let path = '/storage/buckets/{bucketId}/files/{fileId}/preview'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
+ let payload: Payload = {};
+
+ if (typeof width !== 'undefined') {
+ payload['width'] = width;
+ }
+
+ if (typeof height !== 'undefined') {
+ payload['height'] = height;
+ }
+
+ if (typeof gravity !== 'undefined') {
+ payload['gravity'] = gravity;
+ }
+
+ if (typeof quality !== 'undefined') {
+ payload['quality'] = quality;
+ }
+
+ if (typeof borderWidth !== 'undefined') {
+ payload['borderWidth'] = borderWidth;
+ }
+
+ if (typeof borderColor !== 'undefined') {
+ payload['borderColor'] = borderColor;
+ }
+
+ if (typeof borderRadius !== 'undefined') {
+ payload['borderRadius'] = borderRadius;
+ }
+
+ if (typeof opacity !== 'undefined') {
+ payload['opacity'] = opacity;
+ }
+
+ if (typeof rotation !== 'undefined') {
+ payload['rotation'] = rotation;
+ }
+
+ if (typeof background !== 'undefined') {
+ payload['background'] = background;
+ }
+
+ if (typeof output !== 'undefined') {
+ payload['output'] = output;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+
+ /**
+ * Get File for View
+ *
+ * Get a file content by its unique ID. This endpoint is similar to the
+ * download method but returns with no 'Content-Disposition: attachment'
+ * header.
+ *
+ * @param {string} bucketId
+ * @param {string} fileId
+ * @throws {AppwriteException}
+ * @returns {URL}
+ */
+ getFileView(bucketId: string, fileId: string): URL {
+ if (typeof bucketId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "bucketId"');
+ }
+
+ if (typeof fileId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "fileId"');
+ }
+
+ let path = '/storage/buckets/{bucketId}/files/{fileId}/view'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ return uri;
+ }
+};
diff --git a/public/sdk-project/services/teams.ts b/public/sdk-project/services/teams.ts
new file mode 100644
index 0000000000..ed72fcbbf8
--- /dev/null
+++ b/public/sdk-project/services/teams.ts
@@ -0,0 +1,420 @@
+import { Service } from '../service';
+import { AppwriteException, Client } from '../client';
+import type { Models } from '../models';
+import type { UploadProgress, Payload } from '../client';
+
+export class Teams extends Service {
+
+ constructor(client: Client)
+ {
+ super(client);
+ }
+
+ /**
+ * List Teams
+ *
+ * Get a list of all the teams in which the current user is a member. You can
+ * use the parameters to filter your results.
+ *
+ * In admin mode, this endpoint returns a list of all the teams in the current
+ * project. [Learn more about different API modes](/docs/admin).
+ *
+ * @param {string[]} queries
+ * @param {string} search
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async list(queries?: string[], search?: string): Promise {
+ let path = '/teams';
+ let payload: Payload = {};
+
+ if (typeof queries !== 'undefined') {
+ payload['queries'] = queries;
+ }
+
+ if (typeof search !== 'undefined') {
+ payload['search'] = search;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Team
+ *
+ * Create a new team. The user who creates the team will automatically be
+ * assigned as the owner of the team. Only the users with the owner role can
+ * invite new members, add new owners and delete or update the team.
+ *
+ * @param {string} teamId
+ * @param {string} name
+ * @param {string[]} roles
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async create(teamId: string, name: string, roles?: string[]): Promise {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ if (typeof name === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "name"');
+ }
+
+ let path = '/teams';
+ let payload: Payload = {};
+
+ if (typeof teamId !== 'undefined') {
+ payload['teamId'] = teamId;
+ }
+
+ if (typeof name !== 'undefined') {
+ payload['name'] = name;
+ }
+
+ if (typeof roles !== 'undefined') {
+ payload['roles'] = roles;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get Team
+ *
+ * Get a team by its ID. All team members have read access for this resource.
+ *
+ * @param {string} teamId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async get(teamId: string): Promise {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ let path = '/teams/{teamId}'.replace('{teamId}', teamId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Team
+ *
+ * Update a team using its ID. Only members with the owner role can update the
+ * team.
+ *
+ * @param {string} teamId
+ * @param {string} name
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async update(teamId: string, name: string): Promise {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ if (typeof name === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "name"');
+ }
+
+ let path = '/teams/{teamId}'.replace('{teamId}', teamId);
+ let payload: Payload = {};
+
+ if (typeof name !== 'undefined') {
+ payload['name'] = name;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Delete Team
+ *
+ * Delete a team using its ID. Only team members with the owner role can
+ * delete the team.
+ *
+ * @param {string} teamId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async delete(teamId: string): Promise<{}> {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ let path = '/teams/{teamId}'.replace('{teamId}', teamId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('delete', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Team Memberships
+ *
+ * Use this endpoint to list a team's members using the team's ID. All team
+ * members have read access to this endpoint.
+ *
+ * @param {string} teamId
+ * @param {string[]} queries
+ * @param {string} search
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listMemberships(teamId: string, queries?: string[], search?: string): Promise {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ let path = '/teams/{teamId}/memberships'.replace('{teamId}', teamId);
+ let payload: Payload = {};
+
+ if (typeof queries !== 'undefined') {
+ payload['queries'] = queries;
+ }
+
+ if (typeof search !== 'undefined') {
+ payload['search'] = search;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Team Membership
+ *
+ * Invite a new member to join your team. If initiated from the client SDK, an
+ * email with a link to join the team will be sent to the member's email
+ * address and an account will be created for them should they not be signed
+ * up already. If initiated from server-side SDKs, the new member will
+ * automatically be added to the team.
+ *
+ * Use the 'url' parameter to redirect the user from the invitation email back
+ * to your app. When the user is redirected, use the [Update Team Membership
+ * Status](/docs/client/teams#teamsUpdateMembershipStatus) endpoint to allow
+ * the user to accept the invitation to the team.
+ *
+ * Please note that to avoid a [Redirect
+ * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
+ * the only valid redirect URL's are the once from domains you have set when
+ * adding your platforms in the console interface.
+ *
+ * @param {string} teamId
+ * @param {string} email
+ * @param {string[]} roles
+ * @param {string} url
+ * @param {string} name
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createMembership(teamId: string, email: string, roles: string[], url: string, name?: string): Promise {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof roles === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "roles"');
+ }
+
+ if (typeof url === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "url"');
+ }
+
+ let path = '/teams/{teamId}/memberships'.replace('{teamId}', teamId);
+ let payload: Payload = {};
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof roles !== 'undefined') {
+ payload['roles'] = roles;
+ }
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ if (typeof name !== 'undefined') {
+ payload['name'] = name;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get Team Membership
+ *
+ * Get a team member by the membership unique id. All team members have read
+ * access for this resource.
+ *
+ * @param {string} teamId
+ * @param {string} membershipId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async getMembership(teamId: string, membershipId: string): Promise {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ if (typeof membershipId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "membershipId"');
+ }
+
+ let path = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Membership Roles
+ *
+ * Modify the roles of a team member. Only team members with the owner role
+ * have access to this endpoint. Learn more about [roles and
+ * permissions](/docs/permissions).
+ *
+ * @param {string} teamId
+ * @param {string} membershipId
+ * @param {string[]} roles
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateMembershipRoles(teamId: string, membershipId: string, roles: string[]): Promise {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ if (typeof membershipId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "membershipId"');
+ }
+
+ if (typeof roles === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "roles"');
+ }
+
+ let path = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
+ let payload: Payload = {};
+
+ if (typeof roles !== 'undefined') {
+ payload['roles'] = roles;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Delete Team Membership
+ *
+ * This endpoint allows a user to leave a team or for a team owner to delete
+ * the membership of any other team member. You can also use this endpoint to
+ * delete a user membership even if it is not accepted.
+ *
+ * @param {string} teamId
+ * @param {string} membershipId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async deleteMembership(teamId: string, membershipId: string): Promise<{}> {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ if (typeof membershipId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "membershipId"');
+ }
+
+ let path = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('delete', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Team Membership Status
+ *
+ * Use this endpoint to allow a user to accept an invitation to join a team
+ * after being redirected back to your app from the invitation email received
+ * by the user.
+ *
+ * If the request is successful, a session for the user is automatically
+ * created.
+ *
+ *
+ * @param {string} teamId
+ * @param {string} membershipId
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateMembershipStatus(teamId: string, membershipId: string, userId: string, secret: string): Promise {
+ if (typeof teamId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "teamId"');
+ }
+
+ if (typeof membershipId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "membershipId"');
+ }
+
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ let path = '/teams/{teamId}/memberships/{membershipId}/status'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+};
diff --git a/public/sdk-web/client.ts b/public/sdk-web/client.ts
new file mode 100644
index 0000000000..edf675e789
--- /dev/null
+++ b/public/sdk-web/client.ts
@@ -0,0 +1,442 @@
+import 'isomorphic-form-data';
+import { fetch } from 'cross-fetch';
+import { Models } from './models';
+import { Service } from './service';
+
+type Payload = {
+ [key: string]: any;
+}
+
+type Headers = {
+ [key: string]: string;
+}
+
+type RealtimeResponse = {
+ type: 'error' | 'event' | 'connected' | 'response';
+ data: RealtimeResponseAuthenticated | RealtimeResponseConnected | RealtimeResponseError | RealtimeResponseEvent;
+}
+
+type RealtimeRequest = {
+ type: 'authentication';
+ data: RealtimeRequestAuthenticate;
+}
+
+export type RealtimeResponseEvent = {
+ events: string[];
+ channels: string[];
+ timestamp: number;
+ payload: T;
+}
+
+type RealtimeResponseError = {
+ code: number;
+ message: string;
+}
+
+type RealtimeResponseConnected = {
+ channels: string[];
+ user?: object;
+}
+
+type RealtimeResponseAuthenticated = {
+ to: string;
+ success: boolean;
+ user: object;
+}
+
+type RealtimeRequestAuthenticate = {
+ session: string;
+}
+
+type Realtime = {
+ socket?: WebSocket;
+ timeout?: number;
+ url?: string;
+ lastMessage?: RealtimeResponse;
+ channels: Set;
+ subscriptions: Map) => void
+ }>;
+ subscriptionsCounter: number;
+ reconnect: boolean;
+ reconnectAttempts: number;
+ getTimeout: () => number;
+ connect: () => void;
+ createSocket: () => void;
+ cleanUp: (channels: string[]) => void;
+ onMessage: (event: MessageEvent) => void;
+}
+
+export type UploadProgress = {
+ $id: string;
+ progress: number;
+ sizeUploaded: number;
+ chunksTotal: number;
+ chunksUploaded: number;
+}
+
+class AppwriteException extends Error {
+ code: number;
+ response: string;
+ type: string;
+ constructor(message: string, code: number = 0, type: string = '', response: string = '') {
+ super(message);
+ this.name = 'AppwriteException';
+ this.message = message;
+ this.code = code;
+ this.type = type;
+ this.response = response;
+ }
+}
+
+class Client {
+ config = {
+ endpoint: 'https://HOSTNAME/v1',
+ endpointRealtime: '',
+ project: '',
+ jwt: '',
+ locale: '',
+ };
+ headers: Headers = {
+ 'x-sdk-name': 'Web',
+ 'x-sdk-platform': 'client',
+ 'x-sdk-language': 'web',
+ 'x-sdk-version': '10.0.1',
+ 'X-Appwrite-Response-Format': '1.0.0',
+ };
+
+ /**
+ * Set Endpoint
+ *
+ * Your project endpoint
+ *
+ * @param {string} endpoint
+ *
+ * @returns {this}
+ */
+ setEndpoint(endpoint: string): this {
+ this.config.endpoint = endpoint;
+ this.config.endpointRealtime = this.config.endpointRealtime || this.config.endpoint.replace('https://', 'wss://').replace('http://', 'ws://');
+
+ return this;
+ }
+
+ /**
+ * Set Realtime Endpoint
+ *
+ * @param {string} endpointRealtime
+ *
+ * @returns {this}
+ */
+ setEndpointRealtime(endpointRealtime: string): this {
+ this.config.endpointRealtime = endpointRealtime;
+
+ return this;
+ }
+
+ /**
+ * Set Project
+ *
+ * Your project ID
+ *
+ * @param value string
+ *
+ * @return {this}
+ */
+ setProject(value: string): this {
+ this.headers['X-Appwrite-Project'] = value;
+ this.config.project = value;
+ return this;
+ }
+
+ /**
+ * Set JWT
+ *
+ * Your secret JSON Web Token
+ *
+ * @param value string
+ *
+ * @return {this}
+ */
+ setJWT(value: string): this {
+ this.headers['X-Appwrite-JWT'] = value;
+ this.config.jwt = value;
+ return this;
+ }
+
+ /**
+ * Set Locale
+ *
+ * @param value string
+ *
+ * @return {this}
+ */
+ setLocale(value: string): this {
+ this.headers['X-Appwrite-Locale'] = value;
+ this.config.locale = value;
+ return this;
+ }
+
+
+ private realtime: Realtime = {
+ socket: undefined,
+ timeout: undefined,
+ url: '',
+ channels: new Set(),
+ subscriptions: new Map(),
+ subscriptionsCounter: 0,
+ reconnect: true,
+ reconnectAttempts: 0,
+ lastMessage: undefined,
+ connect: () => {
+ clearTimeout(this.realtime.timeout);
+ this.realtime.timeout = window?.setTimeout(() => {
+ this.realtime.createSocket();
+ }, 50);
+ },
+ getTimeout: () => {
+ switch (true) {
+ case this.realtime.reconnectAttempts < 5:
+ return 1000;
+ case this.realtime.reconnectAttempts < 15:
+ return 5000;
+ case this.realtime.reconnectAttempts < 100:
+ return 10_000;
+ default:
+ return 60_000;
+ }
+ },
+ createSocket: () => {
+ if (this.realtime.channels.size < 1) return;
+
+ const channels = new URLSearchParams();
+ channels.set('project', this.config.project);
+ this.realtime.channels.forEach(channel => {
+ channels.append('channels[]', channel);
+ });
+
+ const url = this.config.endpointRealtime + '/realtime?' + channels.toString();
+
+ if (
+ url !== this.realtime.url || // Check if URL is present
+ !this.realtime.socket || // Check if WebSocket has not been created
+ this.realtime.socket?.readyState > WebSocket.OPEN // Check if WebSocket is CLOSING (3) or CLOSED (4)
+ ) {
+ if (
+ this.realtime.socket &&
+ this.realtime.socket?.readyState < WebSocket.CLOSING // Close WebSocket if it is CONNECTING (0) or OPEN (1)
+ ) {
+ this.realtime.reconnect = false;
+ this.realtime.socket.close();
+ }
+
+ this.realtime.url = url;
+ this.realtime.socket = new WebSocket(url);
+ this.realtime.socket.addEventListener('message', this.realtime.onMessage);
+ this.realtime.socket.addEventListener('open', _event => {
+ this.realtime.reconnectAttempts = 0;
+ });
+ this.realtime.socket.addEventListener('close', event => {
+ if (
+ !this.realtime.reconnect ||
+ (
+ this.realtime?.lastMessage?.type === 'error' && // Check if last message was of type error
+ (this.realtime?.lastMessage.data).code === 1008 // Check for policy violation 1008
+ )
+ ) {
+ this.realtime.reconnect = true;
+ return;
+ }
+
+ const timeout = this.realtime.getTimeout();
+ console.error(`Realtime got disconnected. Reconnect will be attempted in ${timeout / 1000} seconds.`, event.reason);
+
+ setTimeout(() => {
+ this.realtime.reconnectAttempts++;
+ this.realtime.createSocket();
+ }, timeout);
+ })
+ }
+ },
+ onMessage: (event) => {
+ try {
+ const message: RealtimeResponse = JSON.parse(event.data);
+ this.realtime.lastMessage = message;
+ switch (message.type) {
+ case 'connected':
+ const cookie = JSON.parse(window.localStorage.getItem('cookieFallback') ?? '{}');
+ const session = cookie?.[`a_session_${this.config.project}`];
+ const messageData = message.data;
+
+ if (session && !messageData.user) {
+ this.realtime.socket?.send(JSON.stringify({
+ type: 'authentication',
+ data: {
+ session
+ }
+ }));
+ }
+ break;
+ case 'event':
+ let data = >message.data;
+ if (data?.channels) {
+ const isSubscribed = data.channels.some(channel => this.realtime.channels.has(channel));
+ if (!isSubscribed) return;
+ this.realtime.subscriptions.forEach(subscription => {
+ if (data.channels.some(channel => subscription.channels.includes(channel))) {
+ setTimeout(() => subscription.callback(data));
+ }
+ })
+ }
+ break;
+ case 'error':
+ throw message.data;
+ default:
+ break;
+ }
+ } catch (e) {
+ console.error(e);
+ }
+ },
+ cleanUp: channels => {
+ this.realtime.channels.forEach(channel => {
+ if (channels.includes(channel)) {
+ let found = Array.from(this.realtime.subscriptions).some(([_key, subscription] )=> {
+ return subscription.channels.includes(channel);
+ })
+
+ if (!found) {
+ this.realtime.channels.delete(channel);
+ }
+ }
+ })
+ }
+ }
+
+ /**
+ * Subscribes to Appwrite events and passes you the payload in realtime.
+ *
+ * @param {string|string[]} channels
+ * Channel to subscribe - pass a single channel as a string or multiple with an array of strings.
+ *
+ * Possible channels are:
+ * - account
+ * - collections
+ * - collections.[ID]
+ * - collections.[ID].documents
+ * - documents
+ * - documents.[ID]
+ * - files
+ * - files.[ID]
+ * - executions
+ * - executions.[ID]
+ * - functions.[ID]
+ * - teams
+ * - teams.[ID]
+ * - memberships
+ * - memberships.[ID]
+ * @param {(payload: RealtimeMessage) => void} callback Is called on every realtime update.
+ * @returns {() => void} Unsubscribes from events.
+ */
+ subscribe(channels: string | string[], callback: (payload: RealtimeResponseEvent) => void): () => void {
+ let channelArray = typeof channels === 'string' ? [channels] : channels;
+ channelArray.forEach(channel => this.realtime.channels.add(channel));
+
+ const counter = this.realtime.subscriptionsCounter++;
+ this.realtime.subscriptions.set(counter, {
+ channels: channelArray,
+ callback
+ });
+
+ this.realtime.connect();
+
+ return () => {
+ this.realtime.subscriptions.delete(counter);
+ this.realtime.cleanUp(channelArray);
+ this.realtime.connect();
+ }
+ }
+
+ async call(method: string, url: URL, headers: Headers = {}, params: Payload = {}): Promise {
+ method = method.toUpperCase();
+
+
+ headers = Object.assign({}, this.headers, headers);
+
+ let options: RequestInit = {
+ method,
+ headers,
+ credentials: 'include'
+ };
+
+ if (typeof window !== 'undefined' && window.localStorage) {
+ headers['X-Fallback-Cookies'] = window.localStorage.getItem('cookieFallback') ?? '';
+ }
+
+ if (method === 'GET') {
+ for (const [key, value] of Object.entries(Service.flatten(params))) {
+ url.searchParams.append(key, value);
+ }
+ } else {
+ switch (headers['content-type']) {
+ case 'application/json':
+ options.body = JSON.stringify(params);
+ break;
+
+ case 'multipart/form-data':
+ let formData = new FormData();
+
+ for (const key in params) {
+ if (Array.isArray(params[key])) {
+ params[key].forEach((value: any) => {
+ formData.append(key + '[]', value);
+ })
+ } else {
+ formData.append(key, params[key]);
+ }
+ }
+
+ options.body = formData;
+ delete headers['content-type'];
+ break;
+ }
+ }
+
+ try {
+ let data = null;
+ const response = await fetch(url.toString(), options);
+
+ if (response.headers.get('content-type')?.includes('application/json')) {
+ data = await response.json();
+ } else {
+ data = {
+ message: await response.text()
+ };
+ }
+
+ if (400 <= response.status) {
+ throw new AppwriteException(data?.message, response.status, data?.type, data);
+ }
+
+ const cookieFallback = response.headers.get('X-Fallback-Cookies');
+
+ if (typeof window !== 'undefined' && window.localStorage && cookieFallback) {
+ window.console.warn('Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.');
+ window.localStorage.setItem('cookieFallback', cookieFallback);
+ }
+
+ return data;
+ } catch (e) {
+ if (e instanceof AppwriteException) {
+ throw e;
+ }
+ throw new AppwriteException((e).message);
+ }
+ }
+}
+
+export { Client, AppwriteException };
+export { Query } from './query';
+export type { Models, Payload };
+export type { QueryTypes, QueryTypesList } from './query';
diff --git a/public/sdk-web/id.ts b/public/sdk-web/id.ts
new file mode 100644
index 0000000000..9577e4b179
--- /dev/null
+++ b/public/sdk-web/id.ts
@@ -0,0 +1,9 @@
+export class ID {
+ public static custom(id: string): string {
+ return id
+ }
+
+ public static unique(): string {
+ return 'unique()'
+ }
+}
\ No newline at end of file
diff --git a/public/sdk-web/index.ts b/public/sdk-web/index.ts
new file mode 100644
index 0000000000..3b9f1b87a3
--- /dev/null
+++ b/public/sdk-web/index.ts
@@ -0,0 +1,13 @@
+export { Client, Query, AppwriteException } from './client';
+export { Account } from './services/account';
+export { Avatars } from './services/avatars';
+export { Databases } from './services/databases';
+export { Functions } from './services/functions';
+export { Locale } from './services/locale';
+export { Storage } from './services/storage';
+export { Teams } from './services/teams';
+export type { Models, Payload, RealtimeResponseEvent, UploadProgress } from './client';
+export type { QueryTypes, QueryTypesList } from './query';
+export { Permission } from './permission';
+export { Role } from './role';
+export { ID } from './id';
\ No newline at end of file
diff --git a/public/sdk-web/models.ts b/public/sdk-web/models.ts
new file mode 100644
index 0000000000..2692a83730
--- /dev/null
+++ b/public/sdk-web/models.ts
@@ -0,0 +1,781 @@
+export namespace Models {
+ /**
+ * Documents List
+ */
+ export type DocumentList = {
+ /**
+ * Total number of documents documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of documents.
+ */
+ documents: Document[];
+ }
+ /**
+ * Sessions List
+ */
+ export type SessionList = {
+ /**
+ * Total number of sessions documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of sessions.
+ */
+ sessions: Session[];
+ }
+ /**
+ * Logs List
+ */
+ export type LogList = {
+ /**
+ * Total number of logs documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of logs.
+ */
+ logs: Log[];
+ }
+ /**
+ * Files List
+ */
+ export type FileList = {
+ /**
+ * Total number of files documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of files.
+ */
+ files: File[];
+ }
+ /**
+ * Teams List
+ */
+ export type TeamList = {
+ /**
+ * Total number of teams documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of teams.
+ */
+ teams: Team[];
+ }
+ /**
+ * Memberships List
+ */
+ export type MembershipList = {
+ /**
+ * Total number of memberships documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of memberships.
+ */
+ memberships: Membership[];
+ }
+ /**
+ * Executions List
+ */
+ export type ExecutionList = {
+ /**
+ * Total number of executions documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of executions.
+ */
+ executions: Execution[];
+ }
+ /**
+ * Countries List
+ */
+ export type CountryList = {
+ /**
+ * Total number of countries documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of countries.
+ */
+ countries: Country[];
+ }
+ /**
+ * Continents List
+ */
+ export type ContinentList = {
+ /**
+ * Total number of continents documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of continents.
+ */
+ continents: Continent[];
+ }
+ /**
+ * Languages List
+ */
+ export type LanguageList = {
+ /**
+ * Total number of languages documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of languages.
+ */
+ languages: Language[];
+ }
+ /**
+ * Currencies List
+ */
+ export type CurrencyList = {
+ /**
+ * Total number of currencies documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of currencies.
+ */
+ currencies: Currency[];
+ }
+ /**
+ * Phones List
+ */
+ export type PhoneList = {
+ /**
+ * Total number of phones documents that matched your query.
+ */
+ total: number;
+ /**
+ * List of phones.
+ */
+ phones: Phone[];
+ }
+ /**
+ * Document
+ */
+ export type Document = {
+ /**
+ * Document ID.
+ */
+ $id: string;
+ /**
+ * Collection ID.
+ */
+ $collectionId: string;
+ /**
+ * Database ID.
+ */
+ $databaseId: string;
+ /**
+ * Document creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * Document update date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * Document permissions. [Learn more about permissions](/docs/permissions).
+ */
+ $permissions: string[];
+ [key: string]: any;
+ }
+ /**
+ * Log
+ */
+ export type Log = {
+ /**
+ * Event name.
+ */
+ event: string;
+ /**
+ * User ID.
+ */
+ userId: string;
+ /**
+ * User Email.
+ */
+ userEmail: string;
+ /**
+ * User Name.
+ */
+ userName: string;
+ /**
+ * API mode when event triggered.
+ */
+ mode: string;
+ /**
+ * IP session in use when the session was created.
+ */
+ ip: string;
+ /**
+ * Log creation date in ISO 8601 format.
+ */
+ time: string;
+ /**
+ * Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json).
+ */
+ osCode: string;
+ /**
+ * Operating system name.
+ */
+ osName: string;
+ /**
+ * Operating system version.
+ */
+ osVersion: string;
+ /**
+ * Client type.
+ */
+ clientType: string;
+ /**
+ * Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json).
+ */
+ clientCode: string;
+ /**
+ * Client name.
+ */
+ clientName: string;
+ /**
+ * Client version.
+ */
+ clientVersion: string;
+ /**
+ * Client engine name.
+ */
+ clientEngine: string;
+ /**
+ * Client engine name.
+ */
+ clientEngineVersion: string;
+ /**
+ * Device name.
+ */
+ deviceName: string;
+ /**
+ * Device brand name.
+ */
+ deviceBrand: string;
+ /**
+ * Device model name.
+ */
+ deviceModel: string;
+ /**
+ * Country two-character ISO 3166-1 alpha code.
+ */
+ countryCode: string;
+ /**
+ * Country name.
+ */
+ countryName: string;
+ }
+ /**
+ * Account
+ */
+ export type Account = {
+ /**
+ * User ID.
+ */
+ $id: string;
+ /**
+ * User creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * User update date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * User name.
+ */
+ name: string;
+ /**
+ * User registration date in ISO 8601 format.
+ */
+ registration: string;
+ /**
+ * User status. Pass `true` for enabled and `false` for disabled.
+ */
+ status: boolean;
+ /**
+ * Password update time in ISO 8601 format.
+ */
+ passwordUpdate: string;
+ /**
+ * User email address.
+ */
+ email: string;
+ /**
+ * User phone number in E.164 format.
+ */
+ phone: string;
+ /**
+ * Email verification status.
+ */
+ emailVerification: boolean;
+ /**
+ * Phone verification status.
+ */
+ phoneVerification: boolean;
+ /**
+ * User preferences as a key-value object
+ */
+ prefs: Preferences;
+ }
+ /**
+ * Preferences
+ */
+ export type Preferences = {
+ [key: string]: any;
+ }
+ /**
+ * Session
+ */
+ export type Session = {
+ /**
+ * Session ID.
+ */
+ $id: string;
+ /**
+ * Session creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * User ID.
+ */
+ userId: string;
+ /**
+ * Session expiration date in ISO 8601 format.
+ */
+ expire: string;
+ /**
+ * Session Provider.
+ */
+ provider: string;
+ /**
+ * Session Provider User ID.
+ */
+ providerUid: string;
+ /**
+ * Session Provider Access Token.
+ */
+ providerAccessToken: string;
+ /**
+ * The date of when the access token expires in ISO 8601 format.
+ */
+ providerAccessTokenExpiry: string;
+ /**
+ * Session Provider Refresh Token.
+ */
+ providerRefreshToken: string;
+ /**
+ * IP in use when the session was created.
+ */
+ ip: string;
+ /**
+ * Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json).
+ */
+ osCode: string;
+ /**
+ * Operating system name.
+ */
+ osName: string;
+ /**
+ * Operating system version.
+ */
+ osVersion: string;
+ /**
+ * Client type.
+ */
+ clientType: string;
+ /**
+ * Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json).
+ */
+ clientCode: string;
+ /**
+ * Client name.
+ */
+ clientName: string;
+ /**
+ * Client version.
+ */
+ clientVersion: string;
+ /**
+ * Client engine name.
+ */
+ clientEngine: string;
+ /**
+ * Client engine name.
+ */
+ clientEngineVersion: string;
+ /**
+ * Device name.
+ */
+ deviceName: string;
+ /**
+ * Device brand name.
+ */
+ deviceBrand: string;
+ /**
+ * Device model name.
+ */
+ deviceModel: string;
+ /**
+ * Country two-character ISO 3166-1 alpha code.
+ */
+ countryCode: string;
+ /**
+ * Country name.
+ */
+ countryName: string;
+ /**
+ * Returns true if this the current user session.
+ */
+ current: boolean;
+ }
+ /**
+ * Token
+ */
+ export type Token = {
+ /**
+ * Token ID.
+ */
+ $id: string;
+ /**
+ * Token creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * User ID.
+ */
+ userId: string;
+ /**
+ * Token secret key. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
+ */
+ secret: string;
+ /**
+ * Token expiration date in ISO 8601 format.
+ */
+ expire: string;
+ }
+ /**
+ * JWT
+ */
+ export type Jwt = {
+ /**
+ * JWT encoded string.
+ */
+ jwt: string;
+ }
+ /**
+ * Locale
+ */
+ export type Locale = {
+ /**
+ * User IP address.
+ */
+ ip: string;
+ /**
+ * Country code in [ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) two-character format
+ */
+ countryCode: string;
+ /**
+ * Country name. This field support localization.
+ */
+ country: string;
+ /**
+ * Continent code. A two character continent code "AF" for Africa, "AN" for Antarctica, "AS" for Asia, "EU" for Europe, "NA" for North America, "OC" for Oceania, and "SA" for South America.
+ */
+ continentCode: string;
+ /**
+ * Continent name. This field support localization.
+ */
+ continent: string;
+ /**
+ * True if country is part of the Europian Union.
+ */
+ eu: boolean;
+ /**
+ * Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format
+ */
+ currency: string;
+ }
+ /**
+ * File
+ */
+ export type File = {
+ /**
+ * File ID.
+ */
+ $id: string;
+ /**
+ * Bucket ID.
+ */
+ bucketId: string;
+ /**
+ * File creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * File update date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * File permissions. [Learn more about permissions](/docs/permissions).
+ */
+ $permissions: string[];
+ /**
+ * File name.
+ */
+ name: string;
+ /**
+ * File MD5 signature.
+ */
+ signature: string;
+ /**
+ * File mime type.
+ */
+ mimeType: string;
+ /**
+ * File original size in bytes.
+ */
+ sizeOriginal: number;
+ /**
+ * Total number of chunks available
+ */
+ chunksTotal: number;
+ /**
+ * Total number of chunks uploaded
+ */
+ chunksUploaded: number;
+ }
+ /**
+ * Team
+ */
+ export type Team = {
+ /**
+ * Team ID.
+ */
+ $id: string;
+ /**
+ * Team creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * Team update date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * Team name.
+ */
+ name: string;
+ /**
+ * Total number of team members.
+ */
+ total: number;
+ }
+ /**
+ * Membership
+ */
+ export type Membership = {
+ /**
+ * Membership ID.
+ */
+ $id: string;
+ /**
+ * Membership creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * Membership update date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * User ID.
+ */
+ userId: string;
+ /**
+ * User name.
+ */
+ userName: string;
+ /**
+ * User email address.
+ */
+ userEmail: string;
+ /**
+ * Team ID.
+ */
+ teamId: string;
+ /**
+ * Team name.
+ */
+ teamName: string;
+ /**
+ * Date, the user has been invited to join the team in ISO 8601 format.
+ */
+ invited: string;
+ /**
+ * Date, the user has accepted the invitation to join the team in ISO 8601 format.
+ */
+ joined: string;
+ /**
+ * User confirmation status, true if the user has joined the team or false otherwise.
+ */
+ confirm: boolean;
+ /**
+ * User list of roles
+ */
+ roles: string[];
+ }
+ /**
+ * Execution
+ */
+ export type Execution = {
+ /**
+ * Execution ID.
+ */
+ $id: string;
+ /**
+ * Execution creation date in ISO 8601 format.
+ */
+ $createdAt: string;
+ /**
+ * Execution upate date in ISO 8601 format.
+ */
+ $updatedAt: string;
+ /**
+ * Execution roles.
+ */
+ $permissions: string[];
+ /**
+ * Function ID.
+ */
+ functionId: string;
+ /**
+ * The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.
+ */
+ trigger: string;
+ /**
+ * The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.
+ */
+ status: string;
+ /**
+ * The script status code.
+ */
+ statusCode: number;
+ /**
+ * The script response output string. Logs the last 4,000 characters of the execution response output.
+ */
+ response: string;
+ /**
+ * The script stdout output string. Logs the last 4,000 characters of the execution stdout output. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
+ */
+ stdout: string;
+ /**
+ * The script stderr output string. Logs the last 4,000 characters of the execution stderr output. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
+ */
+ stderr: string;
+ /**
+ * The script execution duration in seconds.
+ */
+ duration: number;
+ }
+ /**
+ * Country
+ */
+ export type Country = {
+ /**
+ * Country name.
+ */
+ name: string;
+ /**
+ * Country two-character ISO 3166-1 alpha code.
+ */
+ code: string;
+ }
+ /**
+ * Continent
+ */
+ export type Continent = {
+ /**
+ * Continent name.
+ */
+ name: string;
+ /**
+ * Continent two letter code.
+ */
+ code: string;
+ }
+ /**
+ * Language
+ */
+ export type Language = {
+ /**
+ * Language name.
+ */
+ name: string;
+ /**
+ * Language two-character ISO 639-1 codes.
+ */
+ code: string;
+ /**
+ * Language native name.
+ */
+ nativeName: string;
+ }
+ /**
+ * Currency
+ */
+ export type Currency = {
+ /**
+ * Currency symbol.
+ */
+ symbol: string;
+ /**
+ * Currency name.
+ */
+ name: string;
+ /**
+ * Currency native symbol.
+ */
+ symbolNative: string;
+ /**
+ * Number of decimal digits.
+ */
+ decimalDigits: number;
+ /**
+ * Currency digit rounding.
+ */
+ rounding: number;
+ /**
+ * Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format.
+ */
+ code: string;
+ /**
+ * Currency plural name
+ */
+ namePlural: string;
+ }
+ /**
+ * Phone
+ */
+ export type Phone = {
+ /**
+ * Phone code.
+ */
+ code: string;
+ /**
+ * Country two-character ISO 3166-1 alpha code.
+ */
+ countryCode: string;
+ /**
+ * Country name.
+ */
+ countryName: string;
+ }
+}
diff --git a/public/sdk-web/permission.ts b/public/sdk-web/permission.ts
new file mode 100644
index 0000000000..bfc330a166
--- /dev/null
+++ b/public/sdk-web/permission.ts
@@ -0,0 +1,22 @@
+export class Permission {
+
+ static read = (role: string): string => {
+ return `read("${role}")`
+ }
+
+ static write = (role: string): string => {
+ return `write("${role}")`
+ }
+
+ static create = (role: string): string => {
+ return `create("${role}")`
+ }
+
+ static update = (role: string): string => {
+ return `update("${role}")`
+ }
+
+ static delete = (role: string): string => {
+ return `delete("${role}")`
+ }
+}
diff --git a/public/sdk-web/query.ts b/public/sdk-web/query.ts
new file mode 100644
index 0000000000..962a6c8f7e
--- /dev/null
+++ b/public/sdk-web/query.ts
@@ -0,0 +1,56 @@
+type QueryTypesSingle = string | number | boolean;
+export type QueryTypesList = string[] | number[] | boolean[];
+export type QueryTypes = QueryTypesSingle | QueryTypesList;
+
+export class Query {
+ static equal = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "equal", value);
+
+ static notEqual = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "notEqual", value);
+
+ static lessThan = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "lessThan", value);
+
+ static lessThanEqual = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "lessThanEqual", value);
+
+ static greaterThan = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "greaterThan", value);
+
+ static greaterThanEqual = (attribute: string, value: QueryTypes): string =>
+ Query.addQuery(attribute, "greaterThanEqual", value);
+
+ static search = (attribute: string, value: string): string =>
+ Query.addQuery(attribute, "search", value);
+
+ static orderDesc = (attribute: string): string =>
+ `orderDesc("${attribute}")`;
+
+ static orderAsc = (attribute: string): string =>
+ `orderAsc("${attribute}")`;
+
+ static cursorAfter = (documentId: string): string =>
+ `cursorAfter("${documentId}")`;
+
+ static cursorBefore = (documentId: string): string =>
+ `cursorBefore("${documentId}")`;
+
+ static limit = (limit: number): string =>
+ `limit(${limit})`;
+
+ static offset = (offset: number): string =>
+ `offset(${offset})`;
+
+ private static addQuery = (attribute: string, method: string, value: QueryTypes): string =>
+ value instanceof Array
+ ? `${method}("${attribute}", [${value
+ .map((v: QueryTypesSingle) => Query.parseValues(v))
+ .join(",")}])`
+ : `${method}("${attribute}", [${Query.parseValues(value)}])`;
+
+ private static parseValues = (value: QueryTypes): string =>
+ typeof value === "string" || value instanceof String
+ ? `"${value}"`
+ : `${value}`;
+}
\ No newline at end of file
diff --git a/public/sdk-web/role.ts b/public/sdk-web/role.ts
new file mode 100644
index 0000000000..579e6f8195
--- /dev/null
+++ b/public/sdk-web/role.ts
@@ -0,0 +1,38 @@
+export class Role {
+ public static any(): string {
+ return 'any'
+ }
+
+ public static user(id: string, status: string = ''): string {
+ if(status === '') {
+ return `user:${id}`
+ }
+ return `user:${id}/${status}`
+ }
+
+ public static users(status: string = ''): string {
+ if(status === '') {
+ return 'users'
+ }
+ return `users/${status}`
+ }
+
+ public static guests(): string {
+ return 'guests'
+ }
+
+ public static team(id: string, role: string = ''): string {
+ if(role === '') {
+ return `team:${id}`
+ }
+ return `team:${id}/${role}`
+ }
+
+ public static member(id: string): string {
+ return `member:${id}`
+ }
+
+ public static status(status: string): string {
+ return `status:${status}`
+ }
+}
\ No newline at end of file
diff --git a/public/sdk-web/service.ts b/public/sdk-web/service.ts
new file mode 100644
index 0000000000..0c9662be37
--- /dev/null
+++ b/public/sdk-web/service.ts
@@ -0,0 +1,30 @@
+import { Client } from './client';
+import type { Payload } from './client';
+
+export class Service {
+ static CHUNK_SIZE = 5*1024*1024; // 5MB
+
+ client: Client;
+
+ constructor(client: Client) {
+ this.client = client;
+ }
+
+ static flatten(data: Payload, prefix = ''): Payload {
+ let output: Payload = {};
+
+ for (const key in data) {
+ let value = data[key];
+ let finalKey = prefix ? `${prefix}[${key}]` : key;
+
+ if (Array.isArray(value)) {
+ output = Object.assign(output, this.flatten(value, finalKey));
+ }
+ else {
+ output[finalKey] = value;
+ }
+ }
+
+ return output;
+ }
+}
\ No newline at end of file
diff --git a/public/sdk-web/services/account.ts b/public/sdk-web/services/account.ts
new file mode 100644
index 0000000000..7e7fd13f01
--- /dev/null
+++ b/public/sdk-web/services/account.ts
@@ -0,0 +1,1990 @@
+import { Service } from '../service';
+import { AppwriteException, Client } from '../client';
+import type { Models } from '../models';
+import type { UploadProgress, Payload } from '../client';
+
+export class Account extends Service {
+
+ constructor(client: Client)
+ {
+ super(client);
+ }
+
+ /**
+ * Get Account
+ *
+ * Get currently logged in user data as JSON object.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async get(): Promise> {
+ let path = '/account';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Account
+ *
+ * Use this endpoint to allow a new user to register a new account in your
+ * project. After the user registration completes successfully, you can use
+ * the [/account/verfication](/docs/client/account#accountCreateVerification)
+ * route to start verifying the user email address. To allow the new user to
+ * login to their new account, you need to create a new [account
+ * session](/docs/client/account#accountCreateSession).
+ *
+ * @param {string} userId
+ * @param {string} email
+ * @param {string} password
+ * @param {string} name
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async create(userId: string, email: string, password: string, name?: string): Promise> {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ if (typeof name !== 'undefined') {
+ payload['name'] = name;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Email
+ *
+ * Update currently logged in user account email address. After changing user
+ * address, the user confirmation status will get reset. A new confirmation
+ * email is not sent automatically however you can use the send confirmation
+ * email endpoint again to send the confirmation email. For security measures,
+ * user password is required to complete this request.
+ * This endpoint can also be used to convert an anonymous account to a normal
+ * one, by passing an email address and a new password.
+ *
+ *
+ * @param {string} email
+ * @param {string} password
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateEmail(email: string, password: string): Promise> {
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account/email';
+ let payload: Payload = {};
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Account JWT
+ *
+ * Use this endpoint to create a JSON Web Token. You can use the resulting JWT
+ * to authenticate on behalf of the current user when working with the
+ * Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes
+ * from its creation and will be invalid if the user will logout in that time
+ * frame.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createJWT(): Promise {
+ let path = '/account/jwt';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Account Logs
+ *
+ * Get currently logged in user list of latest security activity logs. Each
+ * log returns user IP address, location and date and time of log.
+ *
+ * @param {string[]} queries
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listLogs(queries?: string[]): Promise {
+ let path = '/account/logs';
+ let payload: Payload = {};
+
+ if (typeof queries !== 'undefined') {
+ payload['queries'] = queries;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Name
+ *
+ * Update currently logged in user account name.
+ *
+ * @param {string} name
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateName(name: string): Promise> {
+ if (typeof name === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "name"');
+ }
+
+ let path = '/account/name';
+ let payload: Payload = {};
+
+ if (typeof name !== 'undefined') {
+ payload['name'] = name;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Password
+ *
+ * Update currently logged in user password. For validation, user is required
+ * to pass in the new password, and the old password. For users created with
+ * OAuth, Team Invites and Magic URL, oldPassword is optional.
+ *
+ * @param {string} password
+ * @param {string} oldPassword
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePassword(password: string, oldPassword?: string): Promise> {
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account/password';
+ let payload: Payload = {};
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ if (typeof oldPassword !== 'undefined') {
+ payload['oldPassword'] = oldPassword;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Phone
+ *
+ * Update the currently logged in user's phone number. After updating the
+ * phone number, the phone verification status will be reset. A confirmation
+ * SMS is not sent automatically, however you can use the [POST
+ * /account/verification/phone](/docs/client/account#accountCreatePhoneVerification)
+ * endpoint to send a confirmation SMS.
+ *
+ * @param {string} phone
+ * @param {string} password
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePhone(phone: string, password: string): Promise> {
+ if (typeof phone === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "phone"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account/phone';
+ let payload: Payload = {};
+
+ if (typeof phone !== 'undefined') {
+ payload['phone'] = phone;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get Account Preferences
+ *
+ * Get currently logged in user preferences as a key-value object.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async getPrefs(): Promise {
+ let path = '/account/prefs';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Preferences
+ *
+ * Update currently logged in user account preferences. The object you pass is
+ * stored as is, and replaces any previous value. The maximum allowed prefs
+ * size is 64kB and throws error if exceeded.
+ *
+ * @param {object} prefs
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePrefs(prefs: object): Promise> {
+ if (typeof prefs === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "prefs"');
+ }
+
+ let path = '/account/prefs';
+ let payload: Payload = {};
+
+ if (typeof prefs !== 'undefined') {
+ payload['prefs'] = prefs;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Password Recovery
+ *
+ * Sends the user an email with a temporary secret key for password reset.
+ * When the user clicks the confirmation link he is redirected back to your
+ * app password reset URL with the secret key and email address values
+ * attached to the URL query string. Use the query string params to submit a
+ * request to the [PUT
+ * /account/recovery](/docs/client/account#accountUpdateRecovery) endpoint to
+ * complete the process. The verification link sent to the user's email
+ * address is valid for 1 hour.
+ *
+ * @param {string} email
+ * @param {string} url
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createRecovery(email: string, url: string): Promise {
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof url === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "url"');
+ }
+
+ let path = '/account/recovery';
+ let payload: Payload = {};
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Password Recovery (confirmation)
+ *
+ * Use this endpoint to complete the user account password reset. Both the
+ * **userId** and **secret** arguments will be passed as query parameters to
+ * the redirect URL you have provided when sending your request to the [POST
+ * /account/recovery](/docs/client/account#accountCreateRecovery) endpoint.
+ *
+ * Please note that in order to avoid a [Redirect
+ * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
+ * the only valid redirect URLs are the ones from domains you have set when
+ * adding your platforms in the console interface.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @param {string} password
+ * @param {string} passwordAgain
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateRecovery(userId: string, secret: string, password: string, passwordAgain: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ if (typeof passwordAgain === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "passwordAgain"');
+ }
+
+ let path = '/account/recovery';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ if (typeof passwordAgain !== 'undefined') {
+ payload['passwordAgain'] = passwordAgain;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * List Account Sessions
+ *
+ * Get currently logged in user list of active sessions across different
+ * devices.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async listSessions(): Promise {
+ let path = '/account/sessions';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Delete All Account Sessions
+ *
+ * Delete all sessions from the user account and remove any sessions cookies
+ * from the end client.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async deleteSessions(): Promise<{}> {
+ let path = '/account/sessions';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('delete', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Anonymous Session
+ *
+ * Use this endpoint to allow a new user to register an anonymous account in
+ * your project. This route will also create a new session for the user. To
+ * allow the new user to convert an anonymous account to a normal account, you
+ * need to update its [email and
+ * password](/docs/client/account#accountUpdateEmail) or create an [OAuth2
+ * session](/docs/client/account#accountCreateOAuth2Session).
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createAnonymousSession(): Promise {
+ let path = '/account/sessions/anonymous';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Account Session with Email
+ *
+ * Allow the user to login into their account by providing a valid email and
+ * password combination. This route will create a new session for the user.
+ *
+ * @param {string} email
+ * @param {string} password
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createEmailSession(email: string, password: string): Promise {
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ if (typeof password === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "password"');
+ }
+
+ let path = '/account/sessions/email';
+ let payload: Payload = {};
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof password !== 'undefined') {
+ payload['password'] = password;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Magic URL session
+ *
+ * Sends the user an email with a secret key for creating a session. If the
+ * provided user ID has not be registered, a new user will be created. When
+ * the user clicks the link in the email, the user is redirected back to the
+ * URL you provided with the secret key and userId values attached to the URL
+ * query string. Use the query string parameters to submit a request to the
+ * [PUT
+ * /account/sessions/magic-url](/docs/client/account#accountUpdateMagicURLSession)
+ * endpoint to complete the login process. The link sent to the user's email
+ * address is valid for 1 hour. If you are on a mobile device you can leave
+ * the URL parameter empty, so that the login completion will be handled by
+ * your Appwrite instance by default.
+ *
+ * @param {string} userId
+ * @param {string} email
+ * @param {string} url
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createMagicURLSession(userId: string, email: string, url?: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof email === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "email"');
+ }
+
+ let path = '/account/sessions/magic-url';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof email !== 'undefined') {
+ payload['email'] = email;
+ }
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Magic URL session (confirmation)
+ *
+ * Use this endpoint to complete creating the session with the Magic URL. Both
+ * the **userId** and **secret** arguments will be passed as query parameters
+ * to the redirect URL you have provided when sending your request to the
+ * [POST
+ * /account/sessions/magic-url](/docs/client/account#accountCreateMagicURLSession)
+ * endpoint.
+ *
+ * Please note that in order to avoid a [Redirect
+ * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
+ * the only valid redirect URLs are the ones from domains you have set when
+ * adding your platforms in the console interface.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateMagicURLSession(userId: string, secret: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ let path = '/account/sessions/magic-url';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Account Session with OAuth2
+ *
+ * Allow the user to login to their account using the OAuth2 provider of their
+ * choice. Each OAuth2 provider should be enabled from the Appwrite console
+ * first. Use the success and failure arguments to provide a redirect URL's
+ * back to your app when login is completed.
+ *
+ * If there is already an active session, the new session will be attached to
+ * the logged-in account. If there are no active sessions, the server will
+ * attempt to look for a user with the same email address as the email
+ * received from the OAuth2 provider and attach the new session to the
+ * existing user. If no matching user is found - the server will create a new
+ * user..
+ *
+ *
+ * @param {string} provider
+ * @param {string} success
+ * @param {string} failure
+ * @param {string[]} scopes
+ * @throws {AppwriteException}
+ * @returns {void|string}
+ */
+ createOAuth2Session(provider: string, success?: string, failure?: string, scopes?: string[]): void | URL {
+ if (typeof provider === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "provider"');
+ }
+
+ let path = '/account/sessions/oauth2/{provider}'.replace('{provider}', provider);
+ let payload: Payload = {};
+
+ if (typeof success !== 'undefined') {
+ payload['success'] = success;
+ }
+
+ if (typeof failure !== 'undefined') {
+ payload['failure'] = failure;
+ }
+
+ if (typeof scopes !== 'undefined') {
+ payload['scopes'] = scopes;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ payload['project'] = this.client.config.project;
+
+
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
+ uri.searchParams.append(key, value);
+ }
+ if (typeof window !== 'undefined' && window?.location) {
+ window.location.href = uri.toString();
+ } else {
+ return uri;
+ }
+ }
+
+ /**
+ * Create Phone session
+ *
+ * Sends the user an SMS with a secret key for creating a session. If the
+ * provided user ID has not be registered, a new user will be created. Use the
+ * returned user ID and secret and submit a request to the [PUT
+ * /account/sessions/phone](/docs/client/account#accountUpdatePhoneSession)
+ * endpoint to complete the login process. The secret sent to the user's phone
+ * is valid for 15 minutes.
+ *
+ * @param {string} userId
+ * @param {string} phone
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createPhoneSession(userId: string, phone: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof phone === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "phone"');
+ }
+
+ let path = '/account/sessions/phone';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof phone !== 'undefined') {
+ payload['phone'] = phone;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Phone Session (confirmation)
+ *
+ * Use this endpoint to complete creating a session with SMS. Use the
+ * **userId** from the
+ * [createPhoneSession](/docs/client/account#accountCreatePhoneSession)
+ * endpoint and the **secret** received via SMS to successfully update and
+ * confirm the phone session.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePhoneSession(userId: string, secret: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ let path = '/account/sessions/phone';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Get Session By ID
+ *
+ * Use this endpoint to get a logged in user's session using a Session ID.
+ * Inputting 'current' will return the current session being used.
+ *
+ * @param {string} sessionId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async getSession(sessionId: string): Promise {
+ if (typeof sessionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "sessionId"');
+ }
+
+ let path = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('get', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Session (Refresh Tokens)
+ *
+ * Access tokens have limited lifespan and expire to mitigate security risks.
+ * If session was created using an OAuth provider, this route can be used to
+ * "refresh" the access token.
+ *
+ * @param {string} sessionId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateSession(sessionId: string): Promise {
+ if (typeof sessionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "sessionId"');
+ }
+
+ let path = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Delete Account Session
+ *
+ * Use this endpoint to log out the currently logged in user from all their
+ * account sessions across all of their different devices. When using the
+ * Session ID argument, only the unique session ID provided is deleted.
+ *
+ *
+ * @param {string} sessionId
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async deleteSession(sessionId: string): Promise<{}> {
+ if (typeof sessionId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "sessionId"');
+ }
+
+ let path = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('delete', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Update Account Status
+ *
+ * Block the currently logged in user account. Behind the scene, the user
+ * record is not deleted but permanently blocked from any access. To
+ * completely delete a user, use the Users API instead.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateStatus(): Promise> {
+ let path = '/account/status';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('patch', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Email Verification
+ *
+ * Use this endpoint to send a verification message to your user email address
+ * to confirm they are the valid owners of that address. Both the **userId**
+ * and **secret** arguments will be passed as query parameters to the URL you
+ * have provided to be attached to the verification email. The provided URL
+ * should redirect the user back to your app and allow you to complete the
+ * verification process by verifying both the **userId** and **secret**
+ * parameters. Learn more about how to [complete the verification
+ * process](/docs/client/account#accountUpdateEmailVerification). The
+ * verification link sent to the user's email address is valid for 7 days.
+ *
+ * Please note that in order to avoid a [Redirect
+ * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md),
+ * the only valid redirect URLs are the ones from domains you have set when
+ * adding your platforms in the console interface.
+ *
+ *
+ * @param {string} url
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createVerification(url: string): Promise {
+ if (typeof url === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "url"');
+ }
+
+ let path = '/account/verification';
+ let payload: Payload = {};
+
+ if (typeof url !== 'undefined') {
+ payload['url'] = url;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Email Verification (confirmation)
+ *
+ * Use this endpoint to complete the user email verification process. Use both
+ * the **userId** and **secret** parameters that were attached to your app URL
+ * to verify the user email ownership. If confirmed this route will return a
+ * 200 status code.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updateVerification(userId: string, secret: string): Promise {
+ if (typeof userId === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "userId"');
+ }
+
+ if (typeof secret === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "secret"');
+ }
+
+ let path = '/account/verification';
+ let payload: Payload = {};
+
+ if (typeof userId !== 'undefined') {
+ payload['userId'] = userId;
+ }
+
+ if (typeof secret !== 'undefined') {
+ payload['secret'] = secret;
+ }
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('put', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Phone Verification
+ *
+ * Use this endpoint to send a verification SMS to the currently logged in
+ * user. This endpoint is meant for use after updating a user's phone number
+ * using the [accountUpdatePhone](/docs/client/account#accountUpdatePhone)
+ * endpoint. Learn more about how to [complete the verification
+ * process](/docs/client/account#accountUpdatePhoneVerification). The
+ * verification code sent to the user's phone number is valid for 15 minutes.
+ *
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async createPhoneVerification(): Promise {
+ let path = '/account/verification/phone';
+ let payload: Payload = {};
+
+ const uri = new URL(this.client.config.endpoint + path);
+ return await this.client.call('post', uri, {
+ 'content-type': 'application/json',
+ }, payload);
+ }
+
+ /**
+ * Create Phone Verification (confirmation)
+ *
+ * Use this endpoint to complete the user phone verification process. Use the
+ * **userId** and **secret** that were sent to your user's phone number to
+ * verify the user email ownership. If confirmed this route will return a 200
+ * status code.
+ *
+ * @param {string} userId
+ * @param {string} secret
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ async updatePhoneVerification(userId: string, secret: string): Promise