A web-based drawing app
git clone git://soophie.de/outline
1
# Outline3
## Installation5
The following steps are only required for backend.7
### Canvas Module Libraries9
The following libraries are required in order to build and execute the *canvas* module properly.11
```bash12
$ sudo apt-get update13
$ sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev14
```16
Now the node module can be installed.18
```bash19
$ npm run build20
```22
### Grant Port Binding24
The following command makes it for node possible to bind a port beneath *1024*. The command must be execute after every single `apt-get update`.26
```bash27
$ sudo setcap 'cap_net_bin_service=+ep' `which node`28
```30
### Grant Certificate Access32
The following commands enables node to read from the directories and files generate from *Certbot*.34
```bash35
$ sudo chmod 0755 /etc/letsencrypt/{live,archive}36
$ sudo chmod 0640 /etc/letsencrypt/live/<domain>/privkey.pem37
$ sudo chown -R <user>:<user> /etc/letsencrypt/live/<domain>/privkey.pem38
```40
## Launch42
### Frontend44
The following command starts the *Firebase Hosting* service, which provides the frontend.46
```bash47
$ npm run serve48
```50
### Backend52
The following command starts the backend server.54
```bash55
$ npm run start56
```
1
const fs = require('fs');2
const express = require('express');3
const app = express();4
const http = require('http');5
const https = require('https');6
const io = require('socket.io');8
let env = {9
port: 443,10
path: '/etc/letsencrypt/live/',11
domain: 'server.typable.dev',12
ssl: true13
};15
if(fs.existsSync(env.path)) {16
env.credentials = {17
key: fs.readFileSync(env.path + env.domain + '/privkey.pem', 'utf8'),18
cert: fs.readFileSync(env.path + env.domain + '/cert.pem', 'utf8'),19
ca: fs.readFileSync(env.path + env.domain + '/chain.pem', 'utf8')20
};21
}22
else {23
env.ssl = false;24
env.port = 80;25
}27
const proxy = env.ssl ? https.createServer(env.credentials, app) : http.createServer(app);28
const server = io(https);30
proxy.listen(env.port, function() {31
console.log('Server started on port:', env.port);32
});34
server.path('/pipe');35
server.listen(proxy);37
const { createCanvas } = require('canvas');38
const paint = require('./mod/paint');40
let client = {};41
let width = 1920;42
let height = 1080;43
let canvas = createCanvas(width, height);44
let g = canvas.getContext('2d');45
g.fillStyle = 'white';46
g.fillRect(0, 0, width, height);48
paint.init(g);50
server.on('connection', function(socket) {51
socket.on('request', function(data) {52
let { x, y, width, height } = data;53
let image = g.getImageData(x, y, width, height);54
socket.emit('load', new Uint8Array(image.data).buffer);55
});56
socket.on('data' , function(data) {57
paint.draw(data);58
socket.broadcast.emit('data', data);59
});60
socket.on('clear' , function(data) {61
g.fillStyle = 'white';62
g.fillRect(0, 0, width, height);63
socket.broadcast.emit('clear', data);64
});65
socket.on('background' , function(data) {66
g.fillStyle = data;67
g.fillRect(0, 0, width, height);68
g.fillStyle = 'black';69
socket.broadcast.emit('background', data);70
});71
socket.on('cursor' , function(data) {72
if(typeof client[socket.id] === 'undefined') {73
client[socket.id] = data.uuid;74
}75
socket.broadcast.emit('cursor', data);76
});77
socket.on('disconnect', function() {78
if(typeof client[socket.id] !== 'undefined') {79
socket.broadcast.emit('cursor', {80
quit: true,81
uuid: client[socket.id]82
});83
delete client[socket.id];84
}85
});86
});88
server.on('disconnect', function(socket) {89
if(typeof client[socket.id] !== 'undefined') {90
socket.broadcast.emit('cursor', {91
quit: true,92
uuid: client[socket.id].uuid93
});94
delete client[socket.id];95
}96
});
1
module.exports = {2
init: function(g, o) {3
this.g = g;4
this.o = o;5
},6
draw: function(args) {7
let { pos, last, radius, color } = args || {};8
if(last) {9
let delta = {10
x: last.x - pos.x,11
y: last.y - pos.y12
};13
let dist = Math.sqrt(Math.pow(delta.x, 2) + Math.pow(delta.y, 2));14
let length = dist / (radius / 2);15
for(let i = 0; i < length; i++) {16
let x = pos.x + (delta.x / length * i);17
let y = pos.y + (delta.y / length * i);18
this.g.fillStyle = color;19
this.g.beginPath();20
this.g.arc(x, y, 2 * radius, 0, 2 * Math.PI);21
this.g.fill();22
this.g.fillStyle = 'black';23
}24
}25
else {26
this.g.fillStyle = color;27
this.g.beginPath();28
this.g.arc(pos.x, pos.y, 2 * radius, 0, 2 * Math.PI);29
this.g.fill();30
this.g.fillStyle = 'black';31
}32
}33
};
1
{2
"name": "Outline",3
"version": "1.0.0",3
"version": "1.1.0",4
"description": "Draw with friends together",5
"main": "index.js",6
"scripts": {7
"build": "npm i --unsafe-perm --allow-root",8
"serve": "firebase serve --only hosting --port 80",9
"start": "node index"9
"start": "node index",10
"host": "http-server public --port 8080"11
},12
"repository": {13
"type": "git",
Binary file
1
@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCRc4EsA.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fABc4EsA.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCBc4EsA.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBxc4EsA.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCxc4EsA.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fChc4EsA.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBBc4.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu72xKOzY.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu5mxKOzY.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7mxKOzY.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4WxKOzY.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7WxKOzY.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7GxKOzY.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCRc4EsA.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fABc4EsA.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCBc4EsA.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBxc4EsA.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCxc4EsA.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fChc4EsA.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBBc4.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCRc4EsA.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfABc4EsA.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCBc4EsA.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBxc4EsA.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCxc4EsA.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Material Icons';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v50/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2')}.material-icons{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased}.ico{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;user-select:none;pointer-events:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:'liga'}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
1
@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCRc4EsA.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fABc4EsA.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCBc4EsA.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBxc4EsA.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCxc4EsA.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fChc4EsA.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBBc4.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu72xKOzY.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu5mxKOzY.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7mxKOzY.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4WxKOzY.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7WxKOzY.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7GxKOzY.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCRc4EsA.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fABc4EsA.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCBc4EsA.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBxc4EsA.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCxc4EsA.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fChc4EsA.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBBc4.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCRc4EsA.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfABc4EsA.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCBc4EsA.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBxc4EsA.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCxc4EsA.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Material Icons';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v50/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2')}.material-icons{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased}.ico{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;user-select:none;pointer-events:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:'liga'}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{margin:0;padding:0;font-family:Roboto,sans-serif;box-sizing:border-box}:focus,:hover{outline:0}html{position:relative;overflow:hidden;min-height:100vh}body{width:100%;font-size:14px;min-height:100vh}img{pointer-events:none;user-select:none}input{-webkit-appearance:none}button{user-select:none;cursor:pointer}.hidden{display:none!important}canvas.canvas{position:relative;z-index:1;cursor:none;touch-action:none}canvas.overlay{pointer-events:none;user-select:none;position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.wrapper{width:100vw;height:100vh;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,.2);z-index:9999;user-select:none}.wrapper>.info{position:fixed;right:30px;bottom:30px;display:flex}.wrapper>.info ul.info-list{display:flex;list-style-type:none}.wrapper>.info ul.info-list li.info-item{color:#333C41;margin-left:15px;user-select:none;font-weight:500}.wrapper>.info ul.info-list li.info-item a{user-select:none;color:#007BFF;text-decoration:none}.wrapper>.info ul.info-list li.info-item a.subtle{color:#777}.wrapper>.info ul.info-list li.info-item a:hover{text-decoration:underline}.spinner{width:80px;height:80px;border-radius:40px;border:10px solid rgba(255,255,255,.2);border-top:10px solid #fff;animation:spin 2s linear infinite}.spinner.theme-dark{border:10px solid rgba(0,0,0,.2);border-top:10px solid #272F34}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.modal{background:#fff;width:400px;border-radius:6px;padding:20px;margin:20px;box-shadow:0 0 4px 0 rgba(0,0,0,.03)}.modal.modal-error{width:300px}.modal.modal-error .align{justify-content:flex-end}.modal.theme-dark{background:#333C41;color:#fff}.modal.theme-dark button.action-cancel{background:#3e494f;color:#fff}.modal.theme-dark button.action-cancel:hover{background:#374147}.modal.theme-dark input[type=text]{background:#272F34;color:#fff}.modal.theme-dark input[type=text]:hover{background:#232a2e}.modal.theme-dark input[type=text]:focus{background:#232a2e}.modal.theme-dark .separator{border-color:#3e494f}.modal.theme-dark input[type=range]{background:#2b343a}.modal.theme-dark input[type=range]:hover{background:#272F34}.modal.theme-dark input[type=range]:hover::-webkit-slider-thumb{background:#374147}.modal.theme-dark input[type=range]::-webkit-slider-thumb{background:#3e494f}.modal.theme-dark .preview{background:#2b343a}.modal.theme-dark ul.avatar-list li.avatar{border-color:#333C41;background:#293237}.modal.theme-dark ul.avatar-list li.avatar:hover{border-color:#2f383e}.modal.theme-dark.modal-color:before{background:linear-gradient(#333C41,transparent)}.modal.theme-dark.modal-color:after{background:linear-gradient(transparent,#333C41)}.modal.theme-dark.modal-color .bucket-list::-webkit-scrollbar-thumb{background:#2b343a}.modal.theme-dark.modal-color .bucket-list::-webkit-scrollbar-thumb:hover{background:#272F34}.modal input.action-file,.modal input.action-uuid{padding:12px 14px;width:100%;border:none;background:#FAFAFA;border-radius:3px;font-size:16px;user-select:none;margin-bottom:3px}.modal input.action-file:hover,.modal input.action-uuid:hover{background:#F8F8F8}.modal input.action-file:focus,.modal input.action-uuid:focus{background:#F5F5F5}.modal input.action-file.invalid,.modal input.action-uuid.invalid{border-bottom:3px solid #FF4A4A;border-radius:3px 3px 0 0;margin-bottom:0}.modal .separator{border-top:1px solid #F5F5F5;margin:20px 0}.modal .align{display:flex;justify-content:space-between;align-items:center}.modal p{font-size:18px;letter-spacing:.2px;padding-top:5px;margin-bottom:25px}.modal button{padding:12px 14px;border:none;background:#F8F9FA;border-radius:3px;font-size:16px;cursor:pointer;user-select:none;transition:background .1s;color:#212121}.modal button:hover{background:#e9ecef}.modal button.success{background:#28A745;color:#fff}.modal button.success:hover{background:#23923c}.modal button.danger{background:#DC3545;color:#fff}.modal button.danger:hover{background:#d32535}.modal button.info{background:#007BFF;color:#fff}.modal button.info:hover{background:#006fe6}.modal button.action-join{width:100%}.modal button.action-cancel{width:calc(50% - 10px)}.modal button.action-background,.modal button.action-clear,.modal button.action-color,.modal button.action-default,.modal button.action-save,.modal button.action-scaling{width:calc(50% - 10px)}.modal ul.avatar-list{display:flex;flex-wrap:wrap;width:100%;list-style-type:none}.modal ul.avatar-list li.avatar{background:#EEE;border-radius:9999px;border:5px solid #fff;margin:10px;width:70px;height:70px;cursor:pointer;transition:border-color .1s}.modal ul.avatar-list li.avatar:hover{border:5px solid #F8F8F8}.modal input.action-range{width:calc(100% - 80px);-webkit-appearance:none;background:#F8F8F8;height:6px}.modal input.action-range:hover{background:#F5F5F5}.modal input.action-range:hover::-webkit-slider-thumb{background:#555}.modal input.action-range::-webkit-slider-thumb{-webkit-appearance:none;background:#888;width:20px;height:20px;border-radius:9999px;border:none;cursor:pointer;transition:background .1s}.modal input.action-range::-webkit-slider-runnable-track{-webkit-appearance:none}.modal .preview{width:60px;height:60px;background:#F5F5F5;border-radius:9999px;display:flex;justify-content:center;align-items:center}.modal .preview .circle{width:12px;height:12px;background:#212121;border-radius:9999px}.modal.modal-color{width:420px;position:relative}.modal.modal-color:before{content:'';display:block;position:absolute;top:20px;left:20px;right:26px;height:10px;background:linear-gradient(white,transparent);z-index:9}.modal.modal-color:after{content:'';display:block;position:absolute;bottom:82px;left:20px;right:26px;height:10px;background:linear-gradient(transparent,#fff);z-index:9}.modal.modal-color .bucket-list{display:flex;justify-content:center;max-height:400px;overflow-x:hidden;overflow-y:auto;padding-top:10px;padding-bottom:10px;margin-bottom:20px}.modal.modal-color .bucket-list::-webkit-scrollbar{width:6px}.modal.modal-color .bucket-list::-webkit-scrollbar-thumb{width:6px;background:#EEE}.modal.modal-color .bucket-list::-webkit-scrollbar-thumb:hover{background:#CACACA}.modal.modal-color .align{width:100%;justify-content:flex-end}.modal .bucket-list{display:flex;flex-wrap:wrap;width:100%;list-style-type:none}.modal .bucket-list .bucket{background:#EEE;border-radius:9999px;margin:5px;width:60px;height:60px;cursor:pointer;transition:transform .2s;box-shadow:0 0 8px 2px rgba(0,0,0,.05);transform:scale(.9);user-select:none}.modal .bucket-list .bucket:hover{transition:transform .2s;transform:scale(1)}.modal .bucket-list .bucket.active{transform:scale(1);border:3px solid #212121}.modal .bucket-list .bucket::after{position:absolute;bottom:-20%}.toolbar{position:fixed;left:calc(50% - 210px);bottom:30px;display:flex;z-index:999}.toolbar .bucket{width:56px;height:56px;border-radius:9999px;background:#CCC;margin:7px;transition:transform .2s;box-shadow:0 0 8px 2px rgba(0,0,0,.05);cursor:pointer;transform:scale(.9);user-select:none}.toolbar .bucket:hover{transition:transform .2s;transform:scale(1)}.toolbar .bucket.active{transform:scale(1.1)}.infobar{position:fixed;top:30px;right:30px;display:flex}.actions{position:fixed;top:30px;left:30px;display:flex}.action{user-select:none;position:relative;width:46px;height:46px;border:none;border-radius:9999px;background:0 0;cursor:pointer;outline:0;position:fixed;margin-right:8px}.action i{color:#212121;user-select:none;pointer-events:none}.action:hover{background:#ECECEC}.action::after{bottom:-60%}.tooltip{position:relative;display:flex;justify-content:center;align-items:center}.tooltip:hover::before{opacity:1;transition-delay:.6s}.tooltip:hover::after{opacity:1;transition-delay:.6s}.tooltip::after{display:flex;opacity:0;content:attr(data-title);justify-content:center;align-items:center;position:absolute;background:#212121;color:#fff;min-height:24px;padding:0 10px;border-radius:4px;font-size:12px;top:auto;bottom:-70%;white-space:nowrap;z-index:9999;pointer-events:none}.tooltip.up::before{top:calc(-90% + 26px);bottom:auto;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #212121;border-bottom:none}.tooltip.up::after{top:-60%;bottom:auto}.tooltip.down::before{top:auto;bottom:calc(-90% + 26px);border-left:6px solid transparent;border-right:6px solid transparent;border-top:none;border-bottom:6px solid #212121}.tooltip.down::after{top:auto;bottom:-60%}1
\ No newline at end of file1
*{margin:0;padding:0;font-family:Roboto,sans-serif;box-sizing:border-box}:focus,:hover{outline:0}html{position:relative;overflow-x:hidden;min-height:100vh}body{width:100%;font-size:14px;min-height:100vh}img{pointer-events:none;user-select:none}input{-webkit-appearance:none}button{user-select:none;cursor:pointer}.hidden{display:none!important}.ico{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:'liga';user-select:none;pointer-events:none}*{-webkit-tap-highlight-color:transparent}body,html{overflow:hidden}#canvas,#overlay,.controls{position:fixed;top:0;left:0;right:0;bottom:0}#overlay{pointer-events:none}.prime-badge{display:inline-block;margin-top:-1px;margin-left:5px;padding:2px 4px;background:#0372EF;border-radius:2px;font-weight:500;font-size:12px;color:#fff!important}.beta-badge{display:inline-block;margin-top:-1px;margin-left:5px;padding:2px 4px;background:#388E3C;border-radius:2px;font-weight:500;font-size:12px;color:#fff!important}.controls{pointer-events:none}.controls .notification{top:30px;position:fixed;display:flex;justify-content:center;width:100%;opacity:0}.controls .notification p{display:inline-block;padding:10px 24px;border-radius:999px;background:#24292E;color:#fff;opacity:.95;user-select:none;pointer-events:none}.controls .ad{position:fixed;width:400px;height:150px;border-radius:4px;background:#EEE;bottom:40px;right:40px;pointer-events:all}.controls .hotbar{display:flex;position:fixed;left:calc(50% - 216px);bottom:30px;pointer-events:all;z-index:-1}.controls .hotbar .color{margin:6px;width:60px;height:60px;border-radius:30px;background:#EEE;cursor:pointer;transition:transform .2s;transform:scale(.9)}.controls .hotbar .color:not(.active):hover{transform:scale(1)}.controls .hotbar .color.focus{transform:scale(1)}.controls .hotbar .color.active{transform:scale(1.1)}.controls .toolbar{top:20px;left:20px}.controls .actionbar{top:20px;right:20px}.controls .actionbar,.controls .toolbar{display:flex;position:fixed;pointer-events:all}.controls .actionbar .action,.controls .actionbar .tool,.controls .toolbar .action,.controls .toolbar .tool{width:44px;height:44px;padding:10px;margin-left:8px;border-radius:22px;cursor:pointer}.controls .actionbar .action:hover,.controls .actionbar .tool:hover,.controls .toolbar .action:hover,.controls .toolbar .tool:hover{background:rgba(250,250,250,.95)}.controls .actionbar .action:hover.ripple:not(.active).ripple-active,.controls .actionbar .tool:hover.ripple:not(.active).ripple-active,.controls .toolbar .action:hover.ripple:not(.active).ripple-active,.controls .toolbar .tool:hover.ripple:not(.active).ripple-active{background:rgba(245,245,245,.95)}.controls .actionbar .action:hover.ripple.active.ripple-active,.controls .actionbar .tool:hover.ripple.active.ripple-active,.controls .toolbar .action:hover.ripple.active.ripple-active,.controls .toolbar .tool:hover.ripple.active.ripple-active{background:rgba(233,233,233,.95)}.controls .actionbar .action.active,.controls .actionbar .tool.active,.controls .toolbar .action.active,.controls .toolbar .tool.active{background:rgba(238,238,238,.95)}.controls .actionbar .action i.ico,.controls .actionbar .tool i.ico,.controls .toolbar .action i.ico,.controls .toolbar .tool i.ico{color:#424242}.multiplayer-modal{top:75px;right:120px}.account-modal{top:75px;right:70px}.settings-modal{top:75px;right:20px}.device-modal{top:100px;right:320px}.language-modal{top:100px;right:860px}.settings-modal{top:75px;right:20px}.colors-modal{flex-wrap:wrap;width:425px;max-width:425px;min-width:425px;height:860px;padding:30px!important;top:calc(50% - 430px);left:calc(50% - 212.5px)}.colors-modal .color{margin:6px;width:60px;height:60px;border-radius:30px;background:#EEE;cursor:pointer;transition:transform .2s;transform:scale(.9)}.colors-modal .color:not(.active):hover{transform:scale(1)}.colors-modal .color.active{transform:scale(1.1)}.colors-modal .color.focus{transform:scale(1)}.modal{width:250px;position:fixed;background:#fff;border:1px solid #F1F1F1;border-radius:4px;padding:6px 0;pointer-events:all;overflow:hidden;z-index:-1;display:flex}.modal .main{width:248px;min-width:248px;7max-width:248px}.modal ul.tab-list{width:248px;min-width:248px;max-width:248px}.modal .header{display:flex;margin-bottom:3px}.modal .header .back{margin:10px;margin-top:15px;margin-right:3px;width:36px;height:36px;border-radius:18px;padding:6px;padding-left:5px;cursor:pointer}.modal .header .back i.ico{color:#424242}.modal .header .back:hover{background:#FAFAFA}.modal .header .back.ripple.ripple-active{background:#f5f5f5}.modal .header .info{display:flex;flex-direction:column;margin-top:15px}.modal .header .info p{display:flex;align-items:center;font-weight:500;color:#616161;user-select:none;pointer-events:none}.modal .header .info span{display:block;margin-top:3px;font-size:12px;color:#9E9E9E;user-select:none;pointer-events:none}.modal ul.item-list li.caption{padding:2px 15px;padding-top:12px;list-style:none}.modal ul.item-list li.caption p{color:#9E9E9E;user-select:none;pointer-events:none}.modal ul.item-list li.item{display:flex;align-items:center;padding:15px;cursor:pointer}.modal ul.item-list li.item.empty p{display:block;width:100%;color:#9E9E9E;text-align:center;user-select:none;pointer-events:none}.modal ul.item-list li.item:not(.active):not(.inactive):hover{background:#FAFAFA}.modal ul.item-list li.item:not(.active):not(.inactive).ripple.ripple-active{background:#f5f5f5}.modal ul.item-list li.item i.ico{color:#424242;user-select:none;pointer-events:none}.modal ul.item-list li.item i.lang{display:flex;justify-content:center;align-items:center;font-style:normal;font-weight:600;width:24px;height:24px;color:#424242;user-select:none;pointer-events:none}.modal ul.item-list li.item .info{display:flex;flex-direction:column;margin-left:10px;max-width:calc(100% - 24px - 10px)}.modal ul.item-list li.item .info p{display:flex;align-items:center;font-weight:500;color:#616161;user-select:none;pointer-events:none}.modal ul.item-list li.item .info span{display:block;margin-top:3px;font-size:12px;color:#9E9E9E;user-select:none;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.modal ul.item-list li.item.active{background:#EEE}.modal ul.item-list li.item.active.ripple.ripple-active{background:#e9e9e9}.modal ul.item-list li.item.inactive i.ico{color:#9E9E9E}.modal ul.item-list li.item.inactive .info p{color:#9E9E9E}.tooltip{position:relative;display:flex;justify-content:center;align-items:center}.tooltip:hover::before{opacity:.95;transition-delay:.6s}.tooltip:hover::after{opacity:.95;transition-delay:.6s}.tooltip::after{display:flex;opacity:0;content:attr(data-title);justify-content:center;align-items:center;position:absolute;background:#24292E;color:#fff;min-height:24px;padding:0 12px;border-radius:999px;font-size:12px;top:auto;bottom:-70%;white-space:nowrap;z-index:9999;pointer-events:none}.tooltip.up::before{top:calc(-90% + 26px);bottom:auto;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #24292E;border-bottom:none}.tooltip.up::after{top:-60%;bottom:auto}.tooltip.down::before{top:auto;bottom:calc(-90% + 26px);border-left:6px solid transparent;border-right:6px solid transparent;border-top:none;border-bottom:6px solid #24292E}.tooltip.down::after{top:auto;bottom:-60%}1
\ No newline at end of file
5
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">6
<meta name="author" content="typable">7
<meta name="keywords" content="">8
<meta name="description" content="Draw with friends together">9
<meta name="robots" content="index,follow">8
<meta name="description" content="">9
<meta name="robots" content="noindex,nofollow">10
<meta name="google" content="notranslate">11
<title>Outline</title>12
<link href="asset/favicon.png" rel="shortcut icon" type="image/png">13
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">14
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">15
<link href="css/style.css" rel="stylesheet">13
<!-- <script src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" data-ad-client="ca-pub-3486258424475487" async></script> -->14
<script src="https://www.gstatic.com/firebasejs/7.14.5/firebase-app.js"></script>15
<script src="https://www.gstatic.com/firebasejs/7.14.5/firebase-analytics.js"></script>16
<script src="https://www.gstatic.com/firebasejs/7.14.5/firebase-performance.js"></script>17
<script src="js/lib/socket.io.min.js"></script>18
<script src="js/index.js" type="module"></script>16
<script src="js/index.js"></script>17
</head>18
<body>21
<canvas class="canvas"></canvas>22
<canvas class="overlay"></canvas>23
<div class="toolbar">24
<div class="actions">25
<button class="action tooltip" data-title="Color ( C )" data-action="color">26
<i class="ico">color_lens</i>27
</button>28
<button class="action tooltip" data-title="Scaling ( V )" data-action="scaling">19
<canvas id="canvas"></canvas>20
<canvas id="overlay"></canvas>21
<div class="controls">22
<div class="notification">23
<p class="content"></p>24
</div>25
<div class="ad hidden"></div>26
<div class="toolbar">27
<div class="tool ripple tooltip" data-lang="tool.colors" data-type="tooltip" data-title="Colors" data-modal="colors" onclick="toggle_modal(this)">28
<i class="ico">palette</i>29
</div>30
<div class="tool ripple tooltip" data-lang="tool.scale" data-type="tooltip" data-title="Scale" data-modal="scale" onclick="toggle_modal(this)">31
<i class="ico">bubble_chart</i>30
</button>31
<button class="action tooltip" data-title="Clear ( T )" data-action="clear">32
</div>33
<div class="tool ripple tooltip" data-lang="tool.clear" data-type="tooltip" data-title="Clear" data-modal="clear" onclick="toggle_modal(this)">34
<i class="ico">delete</i>33
</button>34
<button class="action tooltip" data-title="Save ( S )" data-action="save">35
<i class="ico">save</i>36
</button>35
</div>36
<div class="tool ripple tooltip" data-lang="tool.screenshot" data-type="tooltip" data-title="Screenshot" data-modal="screenshot" onclick="toggle_modal(this)">37
<i class="ico">crop_free</i>38
</div>39
</div>38
<div class="infobar">39
<button class="action tooltip" data-title="Dark Theme" data-action="theme">40
<i class="ico">brightness_2</i>41
</button>40
<div class="actionbar">41
<div class="action ripple tooltip" data-lang="action.multiplayer" data-type="tooltip" data-title="Multiplayer" data-modal="multiplayer" onclick="toggle_modal(this)">42
<i class="ico">dns</i>43
</div>44
<div class="action ripple tooltip" data-lang="action.account" data-type="tooltip" data-title="Account" data-modal="account" onclick="toggle_modal(this)">45
<i class="ico">person</i>46
</div>47
<div class="action ripple tooltip" data-lang="action.settings" data-type="tooltip" data-title="Settings" data-modal="settings" onclick="toggle_modal(this)">48
<i class="ico">settings</i>49
</div>50
</div>43
</div>44
<div class="wrapper">45
<div class="info">46
<ul class="info-list">47
<li class="info-item">48
<a href="https://github.com/typable/outline/issues" target="_blank">Found an issue?</a>49
</li>50
<li class="info-item">51
Powered by <a href="https://typable.dev">typable</a>52
</li>53
</ul>51
<div class="hotbar">52
<div class="color"></div>53
<div class="color"></div>54
<div class="color"></div>55
<div class="color"></div>56
<div class="color"></div>57
<div class="color"></div>58
</div>55
<div class="spinner hidden"></div>56
<div class="modal modal-join" data-modal="join">57
<input type="text" class="action-uuid" maxlength="20" spellcheck="false" autocomplete="off" placeholder="Choose a custom name">58
<div class="separator"></div>59
<button type="button" class="action-join success">Join</button>59
<div class="modal colors-modal hidden">60
<div class="color"></div>61
<div class="color"></div>62
<div class="color"></div>63
<div class="color"></div>64
<div class="color"></div>65
<div class="color"></div>66
<div class="color"></div>67
<div class="color"></div>68
<div class="color"></div>69
<div class="color"></div>70
<div class="color"></div>71
<div class="color"></div>72
<div class="color"></div>73
<div class="color"></div>74
<div class="color"></div>75
<div class="color"></div>76
<div class="color"></div>77
<div class="color"></div>78
<div class="color"></div>79
<div class="color"></div>80
<div class="color"></div>81
<div class="color"></div>82
<div class="color"></div>83
<div class="color"></div>84
<div class="color"></div>85
<div class="color"></div>86
<div class="color"></div>87
<div class="color"></div>88
<div class="color"></div>89
<div class="color"></div>90
<div class="color"></div>91
<div class="color"></div>92
<div class="color"></div>93
<div class="color"></div>94
<div class="color"></div>95
<div class="color"></div>96
<div class="color"></div>97
<div class="color"></div>98
<div class="color"></div>99
<div class="color"></div>100
<div class="color"></div>101
<div class="color"></div>102
<div class="color"></div>103
<div class="color"></div>104
<div class="color"></div>105
<div class="color"></div>106
<div class="color"></div>107
<div class="color"></div>108
<div class="color"></div>109
<div class="color"></div>110
<div class="color"></div>111
<div class="color"></div>112
<div class="color"></div>113
<div class="color"></div>114
<div class="color"></div>115
</div>61
<div class="modal modal-save hidden" data-modal="save">62
<input type="text" class="action-file" maxlength="40" spellcheck="false" autocomplete="off" placeholder="Choose a file name">63
<div class="separator"></div>64
<div class="align">65
<button type="button" class="action-cancel">Cancel</button>66
<button type="button" class="action-save info">Save</button>67
</div>116
<div class="modal scale-modal hidden">117
<input type="range" min="1" max="50" value="3" step="1" class="action-range">118
<div class="preview-circle"></div>119
</div>69
<div class="modal modal-clear hidden" data-modal="clear">70
<p>Do you want to clear the screen?</p>71
<div class="align">72
<button type="button" class="action-cancel">Cancel</button>73
<button type="button" class="action-clear danger">Clear</button>74
</div>120
<div class="modal clear-modal hidden">121
</div>76
<div class="modal modal-scaling hidden" data-modal="scaling">77
<div class="align">78
<input type="range" min="1" max="15" value="3" step="0.5" class="action-range">79
<div class="preview">80
<div class="circle"></div>81
</div>82
</div>83
<div class="separator"></div>84
<div class="align">85
<button type="button" class="action-cancel">Cancel</button>86
<button type="button" class="action-scaling info">Change</button>122
<div class="modal screenshot-modal hidden">123
</div>124
<div class="modal multiplayer-modal hidden">125
<div class="main">126
<ul class="item-list">127
<li class="item ripple">128
<i class="ico">login</i>129
<div class="info">130
<p data-lang="multiplayer.join">Join</p>131
<span data-lang="multiplayer.join.info">Search for channel to join</span>132
</div>133
</li>134
<li class="item ripple">135
<i class="ico">add</i>136
<div class="info">137
<p data-lang="multiplayer.create">Create</p>138
<span data-lang="multiplayer.create.info">Create a new channel</span>139
</div>140
</li>141
<li class="item ripple">142
<i class="ico">device_hub</i>143
<div class="info">144
<p data-lang="multiplayer.host" data-prime="true">Host<b class="prime-badge">Prime</b></p>145
<span data-lang="multiplayer.host.info">Host current state as channel</span>146
</div>147
</li>148
<!--149
<li class="item ripple">150
<i class="ico">info</i>151
<div class="info">152
<p data-lang="channel.information">Info</p>153
<span data-lang="channel.information.info">Customize channel info</span>154
</div>155
</li>156
<li class="item ripple">157
<i class="ico">person_add</i>158
<div class="info">159
<p data-lang="channel.invite-friends">Invite friends</p>160
<span data-lang="channel.invite-friends.info">Share channel with others</span>161
</div>162
</li>163
<li class="item ripple">164
<i class="ico">lock</i>165
<div class="info">166
<p data-lang="channel.private">Private</p>167
<span data-lang="channel.private.info">Prevent channel being listed</span>168
</div>169
</li>170
<li class="item ripple">171
<i class="ico">watch_later</i>172
<div class="info">173
<p data-lang="channel.permanent" data-prime="true">Permanent<b class="prime-badge">Prime</b></p>174
<span data-lang="channel.permanent.info">Keep channel permanent online</span>175
</div>176
</li>177
<li class="item ripple">178
<i class="ico">verified_user</i>179
<div class="info">180
<p data-lang="channel.roles" data-prime="true">Roles<b class="prime-badge">Prime</b></p>181
<span data-lang="channel.roles.info">Manage user permissions</span>182
</div>183
</li>184
-->185
</ul>186
</div>187
<ul class="tab-list"></ul>188
</div>89
<div class="modal modal-color hidden" data-modal="color">90
<div class="bucket-list"></div>91
<div class="align">92
<button type="button" class="action-cancel">Cancel</button>189
<div class="modal account-modal hidden">190
<div class="main">191
<ul class="item-list">192
<li class="item ripple">193
<i class="ico">account_circle</i>194
<div class="info">195
<p data-lang="account.profile">Profile</p>196
<span data-lang="account.profile.info">View your profile</span>197
</div>198
</li>199
<li class="item ripple">200
<i class="ico">card_giftcard</i>201
<div class="info">202
<p data-lang="account.support" data-beta="true">Support<b class="beta-badge">Beta</b></p>203
<span data-lang="account.support.info">Donate a cup of coffee</span>204
</div>205
</li>206
<li class="item ripple">207
<i class="ico">exit_to_app</i>208
<div class="info">209
<p data-lang="account.logout">Log out</p>210
<span data-lang="account.logout.info">Sign out from account</span>211
</div>212
</li>213
</ul>214
</div>215
<ul class="tab-list"></ul>216
</div>95
<div class="modal modal-error hidden" data-modal="error">96
<p>Service currently unavailable! Try again later.</p>97
<div class="align">98
<button type="button" class="action-reconnect danger">Reconnect</button>217
<div class="modal settings-modal hidden">218
<div class="main">219
<ul class="item-list">220
<li class="item ripple" data-tab="language" onclick="open_tab(this)">221
<i class="ico">language</i>222
<div class="info">223
<p data-lang="setting.language">Language</p>224
<span data-lang="setting.language.info">Choose preferred language</span>225
</div>226
</li>227
<li class="item ripple" data-tab="device" onclick="open_tab(this)">228
<i class="ico">power</i>229
<div class="info">230
<p data-lang="setting.input-device">Input Device</p>231
<span data-lang="setting.input-device.info">Choose preferred input device</span>232
</div>233
</li>234
<li class="item ripple" data-tab="appearance" onclick="open_tab(this)">235
<i class="ico">brush</i>236
<div class="info">237
<p data-lang="setting.appearance" data-prime="true">Appearance<b class="prime-badge">Prime</b></p>238
<span data-lang="setting.appearance.info">Customize how you want</span>239
</div>240
</li>241
</ul>242
</div>243
<ul class="tab-list">244
<li class="tab language-tab hidden">245
<div class="header">246
<div class="back ripple" onclick="close_tab(this)">247
<i class="ico">keyboard_arrow_left</i>248
</div>249
<div class="info">250
<p data-lang="setting.language">Language</p>251
<span data-lang="setting.language.info">Choose preferred language</span>252
</div>253
</div>254
<ul class="item-list">255
<li class="item ripple active" data-code="en" onclick="change_language(this)">256
<i class="lang">EN</i>257
<div class="info">258
<p>English</p>259
<span data-lang="setting.language.default">Default language</span>260
</div>261
</li>262
<li class="item ripple" data-code="de" onclick="change_language(this)">263
<i class="lang">DE</i>264
<div class="info">265
<p>Deutsch</p>266
</div>267
</li>268
</ul>269
</li>270
<li class="tab device-tab hidden">271
<div class="header">272
<div class="back ripple" onclick="close_tab(this)">273
<i class="ico">keyboard_arrow_left</i>274
</div>275
<div class="info">276
<p data-lang="setting.input-device">Input Device</p>277
<span data-lang="setting.input-device.info">Choose preferred input device</span>278
</div>279
</div>280
<ul class="item-list">281
<li class="item empty inactive">282
<p data-lang="setting.input-device.empty">No devices detected</p>283
</li>284
<li class="item ripple hidden" data-device="mouse" onclick="change_device(this)">285
<i class="ico">mouse</i>286
<div class="info">287
<p data-lang="setting.input-device.mouse">Mouse</p>288
<span data-lang="setting.input-device.default">Default input device</span>289
</div>290
</li>291
<li class="item ripple hidden" data-device="touch" onclick="change_device(this)">292
<i class="ico">gesture</i>293
<div class="info">294
<p data-lang="setting.input-device.touch">Touch</p>295
<span data-lang="setting.input-device.touch.info">Finger interaction</span>296
</div>297
</li>298
<li class="item hidden" data-device="pen" onclick="change_device(this)">299
<i class="ico">edit</i>300
<div class="info">301
<p data-lang="setting.input-device.pencil" data-prime="true">Pencil<b class="prime-badge">Prime</b></p>302
<span data-lang="setting.input-device.pencil.info">Stylus pen, touch disabled</span>303
</div>304
</li>305
<li class="item hidden" data-device="gamepad" onclick="change_device(this)">306
<i class="ico">sports_esports</i>307
<div class="info">308
<p data-lang="setting.input-device.gamepad" data-prime="true">Gamepad<b class="prime-badge">Prime</b></p>309
<span data-lang="setting.input-device.gamepad.info">Stadia Controller supported</span>310
</div>311
</li>312
</ul>313
</li>314
<li class="tab appearance-tab hidden">315
<div class="header">316
<div class="back ripple" onclick="close_tab(this)">317
<i class="ico">keyboard_arrow_left</i>318
</div>319
<div class="info">320
<p data-lang="setting.appearance" data-prime="true">Appearance<b class="prime-badge">Prime</b></p>321
<span data-lang="setting.appearance.info">Customize how you want</span>322
</div>323
</div>324
<ul class="item-list">325
<li class="item ripple inactive">326
<i class="ico">toggle_off</i>327
<div class="info">328
<p>Dark Mode</p>329
<span data-lang="">More pleasant for your eyes</span>330
</div>331
</li>332
<li class="item ripple inactive">333
<i class="ico">toggle_off</i>334
<div class="info">335
<p>Fading UI</p>336
<span data-lang="">UI fades out while drawing</span>337
</div>338
</li>339
</ul>340
</li>341
</ul>342
</div>343
</div>344
</body>
1
import constant from './mod/constant.js';2
import { uuid, download, switchTheme } from './mod/util.js';3
import { define, html } from './mod/node.js';4
import event from './mod/event.js';5
import paint from './mod/paint.js';6
import modal from './mod/modal.js';7
import socket from './mod/socket.js';9
const GOOGLE_API_KEY = 'QUl6YVN5QzZVcFRpNVlYc1h6eFJ2aEo4Z1RWbnJtTkpCQ2JCMjBn';11
export default {12
state: {13
last: null,14
cursor: null,15
radius: 3,16
color: '#000000',17
client: [],18
opened: true,19
current: undefined,20
modal: {},21
action: {},22
fps: 1000 / 60,23
then: Date.now(),24
dark: false25
},26
template: {},27
modal: {},28
init: function() {29
this.constant = constant;30
this.event = event;31
this.paint = paint;32
this.modal = modal;33
this.socket = socket;35
// build36
this.node = define({37
canvas: '.canvas',38
overlay: '.overlay',39
toolbar: '.toolbar',40
wrapper: '.wrapper',41
modal: { query: '.modal', all: true },42
action: { query: '[data-action]', all: true },43
list: '.bucket-list',44
spinner: '.spinner'45
});47
this.template.bucket = html(function(item) {48
return `<div class="bucket${item.active ? ' active' : ''}"49
data-color="${item.code}"50
style="background: ${item.code}"></div>`;51
});52
this.node.bucket = [];53
for(let item of this.constant.basic) {54
let result = this.template.bucket.build(item);55
this.node.bucket.push(result.element);56
result.render(this.node.toolbar);57
}58
this.node.color = [];59
for(let item of this.constant.color) {60
let result = this.template.bucket.build(item);61
this.node.color.push(result.element);62
result.render(this.node.list);63
}65
// init66
this.event.init(this);67
this.paint.init(this);68
this.modal.init(this);69
this.socket.init(this);70
let that = this;72
// cache73
if(typeof localStorage !== 'undefined') {74
if(typeof localStorage.getItem('outline.theme.dark') !== 'undefined') {75
this.state.dark = (localStorage.getItem('outline.theme.dark') === 'true');76
for(let item of this.node.action) {77
if(item.dataset.action === 'theme') {78
switchTheme(item, that);79
}80
}81
}82
}84
// events85
this.event.bind(this.node.canvas, {86
prevent: ['dragstart', 'contextmenu'],87
begin: ['mousedown', 'touchstart'],88
drag: ['mousemove', 'touchmove']89
});90
this.event.bind(document, {91
move: ['mousemove', 'touchmove'],92
end: ['mouseup', 'touchend', 'mouseleave'],93
key: 'keydown',94
out: 'mouseout',95
scroll: { type: 'wheel', passive: false }96
});97
this.event.bind(window, {98
resize: 'resize'99
});100
this.event.bind(this.node.bucket, {101
button: 'mousedown'102
});103
this.event.resize();105
// actions106
for(let item of this.node.action) {107
if(item.dataset.action === 'theme') {108
item.addEventListener('click', function(event) {109
switchTheme(item, that, true);110
});111
}112
}114
this.modal.get('color').action.open.before = function(modal) {115
for(let item of that.node.color) {116
item.classList[that.state.color === item.dataset.color ? 'add' : 'remove']('active');117
}118
}120
this.modal.get('join').element.querySelector('.action-uuid').focus();121
this.event.action(this.modal.get('join').action.uuid, 'keydown', function(event) {122
let input = that.modal.get('join').element.querySelector('.action-uuid');123
input.classList.remove('invalid');124
if(event.keyCode === 13) {125
that.state.name = input.value.replace(/\s+/g, '');126
if(that.state.name.length >= 3 && that.state.name.length <= 20) {127
that.state.uuid = that.state.name + '-' + uuid();128
that.socket.connect();129
that.modal.load();130
}131
else {132
input.classList.add('invalid');133
}134
}135
});136
this.event.action(this.modal.get('join').action.join, 'click', function(event) {137
let input = that.modal.get('join').element.querySelector('.action-uuid');138
that.state.name = input.value.replace(/\s+/g, '');139
if(that.state.name.length >= 3 && that.state.name.length <= 20) {140
that.state.uuid = that.state.name + '-' + uuid();141
that.socket.connect();142
that.modal.load();143
}144
else {145
input.classList.add('invalid');146
}147
});148
this.modal.get('scaling').action.open.before = function(modal) {149
modal.element.querySelector('input.action-range').value = that.state.radius;150
let circle = modal.element.querySelector('.circle');151
circle.style.width = that.state.radius * 4 + 'px';152
circle.style.height = that.state.radius * 4 + 'px';153
}154
this.event.action(this.modal.get('scaling').action.range, 'input', function(event) {155
setTimeout(function() {156
let circle = that.modal.get('scaling').element.querySelector('.modal .circle');157
circle.style.width = event.target.value * 4 + 'px';158
circle.style.height = event.target.value * 4 + 'px';159
}, 10);160
});161
this.event.action(this.modal.get('scaling').action.scaling, 'click', function(event) {162
that.state.radius = parseInt(that.modal.get('scaling').element.querySelector('.modal input.action-range').value);163
that.modal.close();164
});165
this.event.action(this.modal.get('clear').action.clear, 'click', function(event) {166
that.paint.g.fillStyle = 'white';167
that.paint.g.fillRect(0, 0, window.innerWidth, window.innerHeight);168
that.socket.clear();169
that.modal.close();170
});171
this.modal.get('save').action.open.before = function(modal) {172
modal.element.querySelector('input.action-file').value = 'outline-image-' + uuid();173
let input = that.modal.get('save').element.querySelector('.modal input.action-file');174
input.classList.remove('invalid');175
}176
this.event.action(this.modal.get('save').action.save, 'click', function(event) {177
let input = that.modal.get('save').element.querySelector('.modal input.action-file');178
input.classList.remove('invalid');179
let file = input.value.replace(/\s+/g, '');180
if(file.length >= 3 && file.length <= 40) {181
download(file, that.node.canvas.toDataURL('image/jpg'));182
that.modal.close();183
}184
else {185
input.classList.add('invalid');186
}187
});188
for(let item of this.node.color) {189
item.addEventListener('click', function(event) {190
that.state.color = item.dataset.color;191
for(let _item of that.node.bucket) {192
_item.classList.remove('active');193
}194
that.modal.close();195
});196
}197
this.event.action(this.modal.get('error').action.reconnect, 'click', function(event) {198
that.modal.load();199
that.socket.reconnect();200
});201
this.loop();202
},203
update: function() {204
this.socket.cursor();205
this.paint.o.clearRect(0, 0, window.innerWidth, window.innerHeight);206
this.paint.cursor(this.state);207
for(let client of Object.values(this.state.client)) {208
this.paint.cursor(client);209
}210
},211
loop: function() {212
requestAnimationFrame(this.loop.bind(this));213
this.state.now = Date.now();214
this.state.elapsed = this.state.now - this.state.then;216
if(this.state.elapsed > this.state.fps) {217
this.state.then = this.state.now - (this.state.elapsed % this.state.fps);218
this.update();219
}220
}221
};
1
import app from './app.js';3
const GOOGLE_API_KEY = 'QUl6YVN5QzZVcFRpNVlYc1h6eFJ2aEo4Z1RWbnJtTkpCQ2JCMjBn';5
window.addEventListener('load', function(event) {7
if(typeof firebase !== 'undefined') {8
firebase.initializeApp({9
apiKey: atob(GOOGLE_API_KEY),10
authDomain: "typable-website.firebaseapp.com",11
databaseURL: "https://typable-website.firebaseio.com",12
projectId: "typable-website",13
storageBucket: "typable-website.appspot.com",14
messagingSenderId: "1097239723234",15
appId: "1:1097239723234:web:a9b8491f4778f46b96f2bb",16
measurementId: "G-6881VEFYTQ"1
const LANG = {2
en: {3
'tool.colors': 'Colors',4
'tool.scale': 'Scale',5
'tool.clear': 'Clear',6
'tool.screenshot': 'Screenshot',7
'action.multiplayer': 'Multiplayer',8
'action.account': 'Account',9
'action.settings': 'Settings',10
'notification.input-device.mouse.add': 'Mouse detected',11
'notification.input-device.touch.add': 'Touch detected',12
'notification.input-device.pencil.add': 'Pencil detected',13
'notification.input-device.gamepad.add': 'Gamepad detected',14
'notification.input-device.gamepad.remove': 'Gamepad removed',15
'multiplayer.join': 'Join',16
'multiplayer.join.info': 'Search for channel to join',17
'multiplayer.create': 'Create',18
'multiplayer.create.info': 'Create a new channel',19
'multiplayer.host': 'Host',20
'multiplayer.host.info': 'Host current state as channel',21
'channel.information': 'Info',22
'channel.information.info': 'Customize channel info',23
'channel.invite-friends': 'Invite friends',24
'channel.invite-friends.info': 'Share channel with others',25
'channel.private': 'Private',26
'channel.private.info': 'Prevent channel being listed',27
'channel.permanent': 'Permanent',28
'channel.permanent.info': 'Keep channel permanent online',29
'channel.roles': 'Roles',30
'channel.roles.info': 'Manage user permissions',31
'account.profile': 'Profile',32
'account.profile.info': 'View your profile',33
'account.support': 'Support',34
'account.support.info': 'Donate a cup of coffee',35
'account.logout': 'Log out',36
'account.logout.info': 'Sign out from account',37
'setting.language': 'Language',38
'setting.language.info': 'Choose preferred language',39
'setting.language.default': 'Default language',40
'setting.input-device': 'Input Device',41
'setting.input-device.info': 'Choose preferred input device',42
'setting.input-device.default': 'Default input device',43
'setting.input-device.empty': 'No devices detected',44
'setting.input-device.mouse': 'Mouse',45
'setting.input-device.touch': 'Touch',46
'setting.input-device.pencil': 'Pencil',47
'setting.input-device.gamepad': 'Gamepad',48
'setting.input-device.touch.info': 'Finger interaction',49
'setting.input-device.pencil.info': 'Stylus pen, touch disabled',50
'setting.input-device.gamepad.info': 'Stadia Controller supported',51
'setting.dark-mode': 'Dark Mode',52
'setting.dark-mode.info': 'More pleasant for your eyes',53
'setting.appearance': 'Appearance',54
'setting.appearance.info': 'Customize how you want'55
},56
de: {57
'tool.colors': 'Farben',58
'tool.scale': 'Skalierung',59
'tool.clear': 'Löschen',60
'tool.screenshot': 'Screenshot',61
'action.multiplayer': 'Mehrspieler',62
'action.account': 'Konto',63
'action.settings': 'Einstellungen',64
'notification.input-device.mouse.add': 'Maus erkannt',65
'notification.input-device.touch.add': 'Touch erkannt',66
'notification.input-device.pencil.add': 'Stift erkannt',67
'notification.input-device.gamepad.add': 'Gamepad erkannt',68
'notification.input-device.gamepad.remove': 'Gamepad entfernt',69
'multiplayer.join': 'Beitreten',70
'multiplayer.join.info': 'Suche nach beitretbaren Channels',71
'multiplayer.create': 'Erstellen',72
'multiplayer.create.info': 'Erstelle einen Channel',73
'multiplayer.host': 'Hosten',74
'multiplayer.host.info': 'Hoste aktuellen Stand als Channel',75
'channel.information': 'Info',76
'channel.information.info': 'Personalisiere Channel Info',77
'channel.invite-friends': 'Freunde einladen',78
'channel.invite-friends.info': 'Teile Channel mit anderen',79
'channel.private': 'Privat',80
'channel.private.info': 'Verhindere Channel Listung',81
'channel.permanent': 'Permanent',82
'channel.permanent.info': 'Behalte Channel dauerhaft online',83
'channel.roles': 'Rollen',84
'channel.roles.info': 'Verwalte Nutzerberechtigungen',85
'account.profile': 'Profil',86
'account.profile.info': 'Zu Profil gehen',87
'account.support': 'Unterstützen',88
'account.support.info': 'Spende eine Tasse Kaffee',89
'account.logout': 'Abmelden',90
'account.logout.info': 'Von Konto abmelden',91
'setting.language': 'Sprache',92
'setting.language.info': 'Wähle bevorzugte Sprache',93
'setting.language.default': 'Standard Sprache',94
'setting.input-device': 'Eingabegerät',95
'setting.input-device.info': 'Wähle bevorzugtes Eingabegerät',96
'setting.input-device.default': 'Standard Eingabegerät',97
'setting.input-device.empty': 'Keine Geräte erkannt',98
'setting.input-device.mouse': 'Maus',99
'setting.input-device.touch': 'Touch',100
'setting.input-device.pencil': 'Stift',101
'setting.input-device.gamepad': 'Gamepad',102
'setting.input-device.touch.info': 'Fingerinteraktion',103
'setting.input-device.pencil.info': 'Stylus Stift, touch deaktiviert',104
'setting.input-device.gamepad.info': 'Stadia Controller unterstützt',105
'setting.dark-mode': 'Dark Mode',106
'setting.dark-mode.info': 'Angenehmer für deine Augen',107
'setting.appearance': 'Erscheinungsbild',108
'setting.appearance.info': 'Gestalte wie du möchtest'109
}110
};112
const PRIME_CODE = '<b class="prime-badge">Prime</b>';113
const BETA_CODE = '<b class="beta-badge">Beta</b>';115
const KEY_BINDING = {116
0: 'A',117
1: 'B',118
2: 'X',119
3: 'Y',120
4: 'L1',121
5: 'R1',122
6: 'L2',123
7: 'R2',124
8: 'Option',125
9: 'Menu',126
10: 'L3',127
11: 'R3',128
12: 'Up',129
13: 'Down',130
14: 'Left',131
15: 'Right',132
16: 'Power',133
17: 'Assist',134
18: 'Capture'135
};137
const COLORS = {138
0: '#FFCDD2',139
1: '#E57373',140
2: '#F44336',141
3: '#D32F2F',142
4: '#B71C1C',143
5: '#F8BBD0',144
6: '#F06292',145
7: '#E91E63',146
8: '#C2185B',147
9: '#880E4F',148
10: '#E1BEE7',149
11: '#BA68C8',150
12: '#9C27B0',151
13: '#7B1FA2',152
14: '#4A148C',153
15: '#BBDEFB',154
16: '#64B5F6',155
17: '#2196F3',156
18: '#1976D2',157
19: '#0D47A1',158
20: '#B2EBF2',159
21: '#4DD0E1',160
22: '#00BCD4',161
23: '#0097A7',162
24: '#006064',163
25: '#B2DFDB',164
26: '#4DB6AC',165
27: '#009688',166
28: '#00796B',167
29: '#004D40',168
30: '#C8E6C9',169
31: '#81C784',170
32: '#4CAF50',171
33: '#388E3C',172
34: '#1B5E20',173
35: '#FFF9C4',174
36: '#FFF176',175
37: '#FFEB3B',176
38: '#FBC02D',177
39: '#F57F17',178
40: '#FFE0B2',179
41: '#FFB74D',180
42: '#FF9800',181
43: '#F57C00',182
44: '#E65100',183
45: '#D7CCC8',184
46: '#A1887F',185
47: '#795548',186
48: '#5D4037',187
49: '#3E2723',188
50: '#F5F5F5',189
51: '#E0E0E0',190
52: '#9E9E9E',191
53: '#616161',192
54: '#141414'193
};195
const COLOR = {196
0: '#141414',197
1: '#F44336',198
2: '#2196F3',199
3: '#009688',200
4: '#FFEB3B',201
5: '#9C27B0'202
};204
const COLORS_LENGTH = Object.values(COLORS).length;205
const COLOR_LENGTH = Object.values(COLOR).length;207
let canvas;208
let overlay;209
let g;210
let o;211
let ad;212
let hotbar;213
let toolbar;214
let actionbar;215
let colors;216
let actions;217
let tools;218
let modals;219
let device_options;220
let device_empty;221
let current_modal;222
let current_tab;223
let modal_colors;224
let colors_modal;226
let device;227
let devices = {228
mouse: false,229
touch: false,230
pen: false,231
gamepad: false232
};233
let fallback_device;235
let lang = 'en';236
let notification_code;238
let cache;239
let point;240
let last;241
let index = 0;242
let radius = 14;243
let lock_x = false;244
let lock_y = false;245
let draw;246
let erase;247
let pressed = {};248
let arrow_y = 0;249
let arrow_x = 0;251
window.addEventListener('load', init);253
function init() {254
canvas = document.querySelector('#canvas');255
canvas.width = window.innerWidth;256
canvas.height = window.innerHeight;257
g = canvas.getContext('2d');258
overlay = document.querySelector('#overlay');259
overlay.width = window.innerWidth;260
overlay.height = window.innerHeight;261
o = overlay.getContext('2d');262
window.onresize = function() {263
cache = g.getImageData(0, 0, canvas.width, canvas.height);264
canvas.width = window.innerWidth;265
canvas.height = window.innerHeight;266
g.putImageData(cache, 0, 0);267
cache = o.getImageData(0, 0, overlay.width, overlay.height);268
overlay.width = window.innerWidth;269
overlay.height = window.innerHeight;270
o.putImageData(cache, 0, 0);271
}272
let ripple = document.querySelectorAll('.ripple');273
for(let item of ripple) {274
item.addEventListener('mousedown', function(event) {275
item.classList.add('ripple-active');276
});18
firebase.analytics();19
firebase.performance();277
}278
document.addEventListener('touchmove', function(event) {279
event.preventDefault();280
}, { passive: false });281
document.addEventListener('mouseup', function(event) {282
for(let item of ripple) {283
item.classList.remove('ripple-active');284
}285
});287
device_options = document.querySelectorAll('.settings-modal .device-tab .item[data-device]');288
device_empty = document.querySelector('.settings-modal .device-tab .item.empty');290
ad = document.querySelector('.controls .ad');291
hotbar = document.querySelector('.controls .hotbar');292
toolbar = document.querySelector('.controls .toolbar');293
actionbar = document.querySelector('.controls .actionbar');294
colors = Array.from(hotbar.querySelectorAll('.color'));295
actions = document.querySelectorAll('.actionbar .action');296
tools = document.querySelectorAll('.toolbar .tool');297
modals = document.querySelectorAll('.modal');298
modal_colors = document.querySelectorAll('.colors-modal .color');299
colors_modal = document.querySelector('.toolbar .tool[data-modal="colors"]');300
for(let i in colors) {301
if(COLOR_LENGTH > i) {302
if(i == index) {303
colors[i].classList.add('active');304
}305
colors[i].style.background = COLOR[i];306
colors[i].addEventListener('click', function(event) {307
for(let j in colors) {308
if(COLOR_LENGTH > j) {309
if(j == i) {310
index = j;311
}312
colors[j].classList[j == i ? 'add' : 'remove']('active');313
}314
}315
});316
}317
}318
for(let i in modal_colors) {319
if(COLORS_LENGTH > i) {320
modal_colors[i].style.background = COLORS[i];321
/*322
modal_colors[i].addEventListener('click', function(event) {323
for(let j in colors) {324
if(COLORS_LENGTH > j) {325
if(j == i) {326
index = j;327
}328
colors[j].classList[j == i ? 'add' : 'remove']('active');329
}330
}331
});332
*/333
}334
}335
document.addEventListener('dragstart', function(event) {336
event.preventDefault();337
});338
document.addEventListener('contextmenu', function(event) {339
event.preventDefault();340
});341
document.addEventListener('wheel', function(event) {342
if(device !== 'gamepad') {343
let { deltaY } = event;344
let y = deltaY < 0 ? 1 : -1;345
if(radius + y > 2 - 1 && radius + y < 50 + 1) {346
radius += y;347
}348
}349
});350
document.addEventListener('wheel', function(event) {351
if(device !== 'gamepad') {352
let { ctrlKey } = event;353
if(ctrlKey) {354
event.preventDefault();355
return;356
}357
}358
}, { passive: false });359
canvas.addEventListener('pointerdown', function(event) {360
let { layerX, layerY, buttons, pointerType } = event;361
if(!devices.touch && pointerType === 'touch') {362
devices.touch = true;363
if(device) {364
show_notification('notification.input-device.touch.add');365
}366
}367
if(!devices.pen && pointerType === 'pen') {368
devices.pen = true;369
show_notification('notification.input-device.pencil.add');370
}371
if(device !== 'gamepad') {372
if(device === pointerType) {373
if(!lock_x) {374
point.x = layerX;375
last.x = layerX;376
}377
if(!lock_y) {378
point.y = layerY;379
last.y = layerY;380
}381
draw = buttons == 1;382
erase = buttons == 2;383
ad.style.pointerEvents = 'none';384
hotbar.style.pointerEvents = 'none';385
toolbar.style.pointerEvents = 'none';386
actionbar.style.pointerEvents = 'none';387
for(let modal of modals) {388
modal.style.pointerEvents = 'none';389
}390
}391
}392
});393
document.addEventListener('pointermove', function(event) {394
let { layerX, layerY, target, pointerType } = event;395
if(!devices.mouse && pointerType === 'mouse') {396
devices.mouse = true;397
}398
if(device !== 'gamepad') {399
if(device === pointerType) {400
if(target == canvas) {401
if(!lock_x) {402
point.x = layerX;403
}404
if(!lock_y) {405
point.y = layerY;406
}407
}408
}409
if(!document.hasFocus()) {410
draw = false;411
erase = false;412
}413
}414
});415
document.addEventListener('pointerout', function(event) {416
if(device !== 'gamepad') {417
if(!lock_x && !lock_y) {418
point.x = null;419
point.y = null;420
}421
}422
});423
document.addEventListener('pointerup', function(event) {424
if(device !== 'gamepad') {425
let { buttons } = event;426
draw = buttons == 1;427
erase = buttons == 2;428
last.x = null;429
last.y = null;430
ad.style.pointerEvents = '';431
hotbar.style.pointerEvents = '';432
toolbar.style.pointerEvents = '';433
actionbar.style.pointerEvents = '';434
for(let modal of modals) {435
modal.style.pointerEvents = '';436
}437
}438
});439
document.addEventListener('keydown', function(event) {440
let { code, ctrlKey, shiftKey, altKey } = event;441
if(device !== 'gamepad') {442
let lock = event.getModifierState("CapsLock");443
if(!ctrlKey && !shiftKey && !altKey) {444
if(code === 'KeyX') {445
lock_y = !lock_y;446
lock_x = false;447
}448
if(code === 'KeyZ') {449
lock_x = !lock_x;450
lock_y = false;451
}452
if(!lock) {453
if(code.startsWith('Digit')) {454
let number = parseInt(code.substr(5)) - 1;455
if(number >= 0 && number < COLOR_LENGTH) {456
index = number;457
for(let i in colors) {458
if(COLOR_LENGTH > i) {459
colors[i].classList[i == index ? 'add' : 'remove']('active');460
}461
}462
}463
}464
}465
}466
}467
if(code === 'Escape') {468
if(current_tab) {469
close_tab(current_tab);470
}471
else if(current_modal) {472
toggle_modal(current_modal);473
}474
}475
});476
point = { x: null, y: null };477
last = { x: null, y: null };478
update();479
}481
function read_input(gamepad) {482
let input = {483
button: {},484
axes: {}485
};486
for(let [ id, key ] of Object.entries(KEY_BINDING)) {487
if(gamepad.buttons[id]) {488
input.button[key] = gamepad.buttons[id].pressed;489
}490
}491
input.axes['Left'] = {492
x: gamepad.axes[0],493
y: gamepad.axes[1]494
};495
input.axes['Right'] = {496
x: gamepad.axes[2],497
y: gamepad.axes[3]498
};499
return input;500
}502
function key_pressed(key, input, func) {503
if(input.button[key]) {504
if(!pressed[key]) {505
pressed[key] = true;506
if(func) {507
func();508
}509
}510
}511
else {512
pressed[key] = false;513
}514
}516
function update() {517
if(radius < 2) {518
radius = 2;519
}520
if(radius > 50) {521
radius = 50;522
}523
let gamepad = navigator.getGamepads()[0];524
if(gamepad) {525
if(!devices.gamepad) {526
devices.gamepad = true;527
show_notification('notification.input-device.gamepad.add');528
}529
if(device === 'gamepad') {530
if(point.x == null && point.y == null) {531
point.x = parseInt(window.innerWidth / 2);532
point.y = parseInt(window.innerHeight / 2);533
}534
let input = read_input(gamepad);535
let speed = 4;536
draw = input.button['A'];537
erase = input.button['B'];538
if(pressed['L2'] && !pressed['R2']) {539
speed = 10;540
}541
if(pressed['R2'] && !pressed['L2']) {542
speed = 1;543
}544
// move545
if(!lock_x) {546
point.x += input.axes['Left'].x * speed;547
if(point.x < 0 ) {548
point.x = 0;549
}550
if(point.x > window.innerWidth) {551
point.x = window.innerWidth;552
}553
}554
if(!lock_y) {555
point.y += input.axes['Left'].y * speed;556
if(point.y < 0) {557
point.y = 0;558
}559
if(point.y > window.innerHeight) {560
point.y = window.innerHeight;561
}562
}563
// colors564
key_pressed('Option', input, function() {565
toggle_modal(colors_modal);566
});567
// draw568
key_pressed('A', input, function() {569
last.x = null;570
last.y = null;571
});572
// erase573
key_pressed('B', input, function() {574
last.x = null;575
last.y = null;576
if(current_tab) {577
close_tab(current_tab);578
}579
else if(current_modal) {580
toggle_modal(current_modal);581
}582
});583
// sprint584
key_pressed('L2', input);585
// sneak586
key_pressed('R2', input);587
// clear588
key_pressed('Y', input, function() {589
if(!current_modal) {590
g.clearRect(0, 0, window.innerWidth, window.innerHeight);591
}592
});593
// radius594
let y = -(input.axes['Right'].y / 2);595
if(y !== 0 && radius + y > 2 && radius + y < 50 + 1) {596
radius += y;597
}598
// lock y599
key_pressed('L3', input, function() {600
lock_y = !lock_y;601
lock_x = false;602
});603
// lock x604
key_pressed('R3', input, function() {605
lock_x = !lock_x;606
lock_y = false;607
});608
// color-wheel left609
key_pressed('L1', input, function() {610
if(index > 0) {611
index--;612
for(let i in colors) {613
if(COLOR_LENGTH > i) {614
colors[i].classList[i == index ? 'add' : 'remove']('active');615
}616
}617
}618
});619
// color-wheel right620
key_pressed('R1', input, function() {621
if(index < COLOR_LENGTH - 1) {622
index++;623
for(let i in colors) {624
if(COLOR_LENGTH > i) {625
colors[i].classList[i == index ? 'add' : 'remove']('active');626
}627
}628
}629
});630
key_pressed('Up', input, function() {631
if(arrow_y > 0) {632
arrow_y--;633
}634
});635
key_pressed('Down', input, function() {636
if(arrow_y < 10) {637
arrow_y++;638
}639
});640
key_pressed('Left', input, function() {641
if(arrow_x > 0) {642
arrow_x--;643
}644
});645
key_pressed('Right', input, function() {646
if(arrow_x < 4) {647
arrow_x++;648
}649
});650
}651
}652
else {653
if(devices.gamepad) {654
devices.gamepad = false;655
show_notification('notification.input-device.gamepad.remove');656
}657
}658
if(device !== 'gamepad') {659
let pos = arrow_y * 5 + arrow_x;660
if(modal_colors[pos].classList.contains('focus')) {661
modal_colors[pos].classList.remove('focus');662
}663
}664
// device mouse option665
let mouse_option = document.querySelector('.settings-modal .device-tab .item[data-device="mouse"]');666
if(devices.mouse && mouse_option.classList.contains('hidden')) {667
mouse_option.classList.remove('hidden');668
if(!device) {669
device = 'mouse';670
fallback_device = 'mouse';671
mouse_option.classList.add('active');672
}673
}674
// device touch option675
let touch_option = document.querySelector('.settings-modal .device-tab .item[data-device="touch"]');676
if(devices.touch && touch_option.classList.contains('hidden')) {677
touch_option.classList.remove('hidden');678
if(!device) {679
device = 'touch';680
fallback_device = 'touch';681
touch_option.classList.add('active');682
}683
}684
// device pen option685
let pen_option = document.querySelector('.settings-modal .device-tab .item[data-device="pen"]');686
if(devices.pen && pen_option.classList.contains('hidden')) {687
pen_option.classList.remove('hidden');688
if(!device) {689
device = 'pen';690
fallback_device = 'pen';691
pen_option.classList.add('active');692
}693
}694
// device gamepad option695
let gamepad_option = document.querySelector('.settings-modal .device-tab .item[data-device="gamepad"]');696
if(devices.gamepad && gamepad_option.classList.contains('hidden')) {697
gamepad_option.classList.remove('hidden');698
if(!device) {699
device = 'gamepad';700
fallback_device = 'gamepad';701
gamepad_option.classList.add('active');702
}703
}704
if(!devices.gamepad && !gamepad_option.classList.contains('hidden')) {705
gamepad_option.classList.add('hidden');706
gamepad_option.classList.remove('active');707
if(device !== fallback_device) {708
device = fallback_device;709
let option = document.querySelector(`.device-modal .item[data-device="${device}"]`);710
option.classList.add('active');711
}712
else {713
device = null;714
}715
}716
// cursor visible717
canvas.style.cursor = device === 'mouse' ? 'none' : 'default';718
if(!current_modal) {719
// pencil720
if(draw && !erase) {721
if(point.x !== null && point.y !== null) {722
if(last.x !== null && last.y !== null) {723
for(let p of lerp(point, last, radius)) {724
g.fillStyle = COLOR[index];725
g.beginPath();726
g.arc(p.x, p.y, parseInt(radius), 2 * Math.PI, 0);727
g.fill();728
}729
}730
}731
}732
// eraser733
if(erase && !draw) {734
if(point.x !== null && point.y !== null) {735
if(last.x !== null && last.y !== null) {736
for(let p of lerp(point, last, radius)) {737
g.fillStyle = 'white';738
g.beginPath();739
g.arc(p.x, p.y, parseInt(radius), 2 * Math.PI, 0);740
g.fill();741
}742
}743
}744
}745
}746
// at least one device747
let one_device = Object.values(devices).some(function(device) {748
return device;749
});750
if(one_device && !device_empty.classList.contains('hidden')) {751
device_empty.classList.add('hidden');752
}753
if(!one_device && device_empty.classList.contains('hidden')) {754
device_empty.classList.remove('hidden');755
}756
// navigate colors757
let pos = arrow_y * 5 + arrow_x;758
if(device === 'gamepad') {759
for(let [ i, item ] of Object.entries(modal_colors)) {760
item.classList[parseInt(i) == pos ? 'add' : 'remove']('focus');761
}762
}763
render();764
if(draw || erase) {765
last.x = point.x;766
last.y = point.y;767
}768
requestAnimationFrame(update);769
}771
function render() {772
if(radius < 2) {773
radius = 2;774
}775
o.clearRect(0, 0, window.innerWidth, window.innerHeight);776
if(point.x !== null && point.y !== null) {777
o.fillStyle = 'white';778
o.beginPath();779
o.arc(point.x, point.y, parseInt(radius) + 2, 2 * Math.PI, 0);780
o.fill();781
o.fillStyle = COLOR[index];782
o.beginPath();783
o.arc(point.x, point.y, parseInt(radius), 2 * Math.PI, 0);784
o.fill();785
}786
if(erase && !draw) {787
o.beginPath();788
o.lineWidth = 2;789
o.strokeStyle = 'white';790
o.moveTo(point.x, point.y - parseInt(radius) * 0.5);791
o.lineTo(point.x, point.y + parseInt(radius) * 0.5);792
o.moveTo(point.x - parseInt(radius) * 0.5, point.y);793
o.lineTo(point.x + parseInt(radius) * 0.5, point.y);794
o.stroke();795
}796
if(lock_x || lock_y) {797
o.beginPath();798
o.lineWidth = 2;799
o.strokeStyle = 'white';800
if(lock_x) {801
o.moveTo(point.x, point.y - parseInt(radius));802
o.lineTo(point.x, point.y + parseInt(radius));803
}804
if(lock_y) {805
o.moveTo(point.x - parseInt(radius), point.y);806
o.lineTo(point.x + parseInt(radius), point.y);807
}808
o.stroke();809
}810
}812
function lerp(point, last, radius) {813
let result = [];814
let delta = {815
x: last.x - point.x,816
y: last.y - point.y817
};818
let distance = Math.sqrt(Math.pow(delta.x, 2) + Math.pow(delta.y, 2));819
let length = parseInt(distance / (radius / 20));820
for(let i = 0; i < length; i++) {821
let x = point.x + (delta.x / length * i);822
let y = point.y + (delta.y / length * i);823
result.push({ x: x, y: y });824
}825
if(length == 0) {826
result.push({ x: point.x, y: point.y });827
}828
return result;829
}831
function change_device(element) {832
device = element.dataset.device;833
for(let item of device_options) {834
item.classList[element === item ? 'add' : 'remove']('active');835
}836
if(device !== 'gamepad') {837
point.x = null;838
point.y = null;839
last.x = null;840
last.y = null;841
}842
}844
function change_language(element) {845
let code = element.dataset.code;846
lang = code;847
let items = document.querySelectorAll('[data-lang]');848
for(let item of items) {849
let prime = item.dataset.prime === 'true';850
let beta = item.dataset.beta === 'true';851
let type = item.dataset.type;852
let text = LANG[code][item.dataset.lang];853
if(text) {854
if(type === 'tooltip') {855
item.dataset.title = text;856
}857
else {858
item.textContent = text;859
}860
if(prime && type !== 'tooltip') {861
item.innerHTML += PRIME_CODE;862
}863
if(beta && type !== 'tooltip') {864
item.innerHTML += BETA_CODE;865
}866
}867
}868
let options = document.querySelectorAll('.language-tab .item');869
for(let option of options) {870
option.classList[option === element ? 'add' : 'remove']('active');871
}872
}874
function toggle_modal(element) {875
let code = element.dataset.modal;876
let modal = document.querySelector(`.${code}-modal`);877
if(modal) {878
let open = modal.classList.contains('hidden');879
if(open) {880
current_modal = element;881
for(let item of actions) {882
if(item !== element) {883
item.classList.remove('active');884
}885
}886
for(let item of tools) {887
if(item !== element) {888
item.classList.remove('active');889
}890
}891
for(let item of modals) {892
if(item !== modal) {893
item.classList.add('hidden');894
}895
let main = item.querySelector('.main');896
if(main) {897
main.classList.remove('hidden');898
main.style.marginLeft = '0';899
}900
let tab_list = item.querySelector('.tab-list');901
if(tab_list) {902
let tabs = tab_list.querySelectorAll('.tab');903
for(let tab of tabs) {904
tab.classList.add('hidden');905
}906
}907
}908
if(code === 'colors') {909
if(device === 'gamepad') {910
modal_colors[0].classList.add('focus');911
arrow_x = 0;912
arrow_y = 0;913
}914
}915
}916
else {917
current_modal = null;918
}919
element.classList[open ? 'add' : 'remove']('active');920
modal.classList[open ? 'remove' : 'add']('hidden');921
modal.animate([922
{ opacity: 0, marginTop: '-6px' },923
{ opacity: 1, marginTop: '0' }924
], {925
duration: 100,926
fill: 'both'927
});928
}929
}931
function open_tab(element) {932
let code = element.dataset.tab;933
let main = element.parentNode.parentNode;934
main.style.marginLeft = '-100%';935
let tab = document.querySelector(`.${code}-tab`);936
current_tab = tab.querySelector('.back');937
tab.classList.remove('hidden');938
main.classList.add('hidden');939
}941
function close_tab(element) {942
let modal = element.parentNode.parentNode.parentNode.parentNode;943
let main = modal.querySelector('.main');944
let tab_list = modal.querySelector('.tab-list');945
let tabs = tab_list.querySelectorAll('.tab');946
for(let tab of tabs) {947
tab.classList.add('hidden');948
}949
main.classList.remove('hidden');950
main.style.marginLeft = '0';951
current_tab = null;952
}954
function show_notification(message) {955
let code = uuid();956
notification_code = code;957
let element = document.querySelector('.notification');958
let content = element.querySelector('.content');959
content.textContent = LANG[lang][message];960
element.animate([961
{ opacity: 0 },962
{ opacity: 1}963
], {964
duration: 200,965
fill: 'both'966
});967
setTimeout(function() {968
if(notification_code === code) {969
element.animate([970
{ opacity: 1 },971
{ opacity: 0}972
], {973
duration: 200,974
fill: 'both'975
});976
}977
}, 2000);978
}22
app.init();23
// window.app = app;24
});980
function uuid() {981
return 'xxxxxxxxxxxxxxxx'.replace(/[xy]/g, function(c) {982
let r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);983
return v.toString(16);984
});985
}
1
/*!2
* Socket.IO v2.3.03
* (c) 2014-2019 Guillermo Rauch4
* Released under the MIT License.5
*/6
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.io=e():t.io=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){function r(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r=o(t),i=r.source,u=r.id,p=r.path,h=c[u]&&p in c[u].nsps,f=e.forceNew||e["force new connection"]||!1===e.multiplex||h;return f?(a("ignoring socket cache for %s",i),n=s(i,e)):(c[u]||(a("new io instance for %s",i),c[u]=s(i,e)),n=c[u]),r.query&&!e.query&&(e.query=r.query),n.socket(r.path,e)}var o=n(1),i=n(7),s=n(15),a=n(3)("socket.io-client");t.exports=e=r;var c=e.managers={};e.protocol=i.protocol,e.connect=r,e.Manager=n(15),e.Socket=n(39)},function(t,e,n){function r(t,e){var n=t;e=e||"undefined"!=typeof location&&location,null==t&&(t=e.protocol+"//"+e.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?e.protocol+t:e.host+t),/^(https?|wss?):\/\//.test(t)||(i("protocol-less url %s",t),t="undefined"!=typeof e?e.protocol+"//"+t:"https://"+t),i("parse %s",t),n=o(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";var r=n.host.indexOf(":")!==-1,s=r?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port,n.href=n.protocol+"://"+s+(e&&e.port===n.port?"":":"+n.port),n}var o=n(2),i=n(3)("socket.io-client:url");t.exports=r},function(t,e){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,o=t.indexOf("["),i=t.indexOf("]");o!=-1&&i!=-1&&(t=t.substring(0,o)+t.substring(o,i).replace(/:/g,";")+t.substring(i,t.length));for(var s=n.exec(t||""),a={},c=14;c--;)a[r[c]]=s[c]||"";return o!=-1&&i!=-1&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a}},function(t,e,n){(function(r){"use strict";function o(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),this.useColors){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(r++,"%c"===t&&(o=r))}),e.splice(o,0,n)}}function s(){var t;return"object"===("undefined"==typeof console?"undefined":p(console))&&console.log&&(t=console).log.apply(t,arguments)}function a(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}}function c(){var t=void 0;try{t=e.storage.getItem("debug")}catch(n){}return!t&&"undefined"!=typeof r&&"env"in r&&(t=r.env.DEBUG),t}function u(){try{return localStorage}catch(t){}}var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.log=s,e.formatArgs=i,e.save=a,e.load=c,e.useColors=o,e.storage=u(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.exports=n(5)(e);var h=t.exports.formatters;h.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(e,n(4))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(p===setTimeout)return setTimeout(t,0);if((p===n||!p)&&setTimeout)return p=setTimeout,setTimeout(t,0);try{return p(t,0)}catch(e){try{return p.call(null,t,0)}catch(e){return p.call(this,t,0)}}}function i(t){if(h===clearTimeout)return clearTimeout(t);if((h===r||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function s(){y&&l&&(y=!1,l.length?d=l.concat(d):m=-1,d.length&&a())}function a(){if(!y){var t=o(s);y=!0;for(var e=d.length;e;){for(l=d,d=[];++m<e;)l&&l[m].run();m=-1,e=d.length}l=null,y=!1,i(t)}}function c(t,e){this.fun=t,this.array=e}function u(){}var p,h,f=t.exports={};!function(){try{p="function"==typeof setTimeout?setTimeout:n}catch(t){p=n}try{h="function"==typeof clearTimeout?clearTimeout:r}catch(t){h=r}}();var l,d=[],y=!1,m=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new c(t,e)),1!==d.length||y||o(a)},c.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(t){return[]},f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function o(t){function e(t){for(var e=0,n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e|=0;return o.colors[Math.abs(e)%o.colors.length]}function o(t){function n(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];if(n.enabled){var s=n,a=Number(new Date),c=a-(r||a);s.diff=c,s.prev=r,s.curr=a,r=a,e[0]=o.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");var u=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,function(t,n){if("%%"===t)return t;u++;var r=o.formatters[n];if("function"==typeof r){var i=e[u];t=r.call(s,i),e.splice(u,1),u--}return t}),o.formatArgs.call(s,e);var p=s.log||o.log;p.apply(s,e)}}var r=void 0;return n.namespace=t,n.enabled=o.enabled(t),n.useColors=o.useColors(),n.color=e(t),n.destroy=i,n.extend=s,"function"==typeof o.init&&o.init(n),o.instances.push(n),n}function i(){var t=o.instances.indexOf(this);return t!==-1&&(o.instances.splice(t,1),!0)}function s(t,e){var n=o(this.namespace+("undefined"==typeof e?":":e)+t);return n.log=this.log,n}function a(t){o.save(t),o.names=[],o.skips=[];var e=void 0,n=("string"==typeof t?t:"").split(/[\s,]+/),r=n.length;for(e=0;e<r;e++)n[e]&&(t=n[e].replace(/\*/g,".*?"),"-"===t[0]?o.skips.push(new RegExp("^"+t.substr(1)+"$")):o.names.push(new RegExp("^"+t+"$")));for(e=0;e<o.instances.length;e++){var i=o.instances[e];i.enabled=o.enabled(i.namespace)}}function c(){var t=[].concat(r(o.names.map(p)),r(o.skips.map(p).map(function(t){return"-"+t}))).join(",");return o.enable(""),t}function u(t){if("*"===t[t.length-1])return!0;var e=void 0,n=void 0;for(e=0,n=o.skips.length;e<n;e++)if(o.skips[e].test(t))return!1;for(e=0,n=o.names.length;e<n;e++)if(o.names[e].test(t))return!0;return!1}function p(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}function h(t){return t instanceof Error?t.stack||t.message:t}return o.debug=o,o["default"]=o,o.coerce=h,o.disable=c,o.enable=a,o.enabled=u,o.humanize=n(6),Object.keys(t).forEach(function(e){o[e]=t[e]}),o.instances=[],o.names=[],o.skips=[],o.formatters={},o.selectColor=e,o.enable(o.load()),o}t.exports=o},function(t,e){function n(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*h;case"weeks":case"week":case"w":return n*p;case"days":case"day":case"d":return n*u;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(t){var e=Math.abs(t);return e>=u?Math.round(t/u)+"d":e>=c?Math.round(t/c)+"h":e>=a?Math.round(t/a)+"m":e>=s?Math.round(t/s)+"s":t+"ms"}function o(t){var e=Math.abs(t);return e>=u?i(t,e,u,"day"):e>=c?i(t,e,c,"hour"):e>=a?i(t,e,a,"minute"):e>=s?i(t,e,s,"second"):t+" ms"}function i(t,e,n,r){var o=e>=1.5*n;return Math.round(t/n)+" "+r+(o?"s":"")}var s=1e3,a=60*s,c=60*a,u=24*c,p=7*u,h=365.25*u;t.exports=function(t,e){e=e||{};var i=typeof t;if("string"===i&&t.length>0)return n(t);if("number"===i&&isFinite(t))return e["long"]?o(t):r(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){function r(){}function o(t){var n=""+t.type;if(e.BINARY_EVENT!==t.type&&e.BINARY_ACK!==t.type||(n+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(n+=t.nsp+","),null!=t.id&&(n+=t.id),null!=t.data){var r=i(t.data);if(r===!1)return g;n+=r}return f("encoded %j as %s",t,n),n}function i(t){try{return JSON.stringify(t)}catch(e){return!1}}function s(t,e){function n(t){var n=d.deconstructPacket(t),r=o(n.packet),i=n.buffers;i.unshift(r),e(i)}d.removeBlobs(t,n)}function a(){this.reconstructor=null}function c(t){var n=0,r={type:Number(t.charAt(0))};if(null==e.types[r.type])return h("unknown packet type "+r.type);if(e.BINARY_EVENT===r.type||e.BINARY_ACK===r.type){for(var o="";"-"!==t.charAt(++n)&&(o+=t.charAt(n),n!=t.length););if(o!=Number(o)||"-"!==t.charAt(n))throw new Error("Illegal attachments");r.attachments=Number(o)}if("/"===t.charAt(n+1))for(r.nsp="";++n;){var i=t.charAt(n);if(","===i)break;if(r.nsp+=i,n===t.length)break}else r.nsp="/";var s=t.charAt(n+1);if(""!==s&&Number(s)==s){for(r.id="";++n;){var i=t.charAt(n);if(null==i||Number(i)!=i){--n;break}if(r.id+=t.charAt(n),n===t.length)break}r.id=Number(r.id)}if(t.charAt(++n)){var a=u(t.substr(n)),c=a!==!1&&(r.type===e.ERROR||y(a));if(!c)return h("invalid payload");r.data=a}return f("decoded %s as %j",t,r),r}function u(t){try{return JSON.parse(t)}catch(e){return!1}}function p(t){this.reconPack=t,this.buffers=[]}function h(t){return{type:e.ERROR,data:"parser error: "+t}}var f=n(8)("socket.io-parser"),l=n(11),d=n(12),y=n(13),m=n(14);e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=r,e.Decoder=a;var g=e.ERROR+'"encode error"';r.prototype.encode=function(t,n){if(f("encoding packet %j",t),e.BINARY_EVENT===t.type||e.BINARY_ACK===t.type)s(t,n);else{var r=o(t);n([r])}},l(a.prototype),a.prototype.add=function(t){var n;if("string"==typeof t)n=c(t),e.BINARY_EVENT===n.type||e.BINARY_ACK===n.type?(this.reconstructor=new p(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!m(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,this.emit("decoded",n))}},a.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},p.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e=d.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},p.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(t,e,n){(function(r){"use strict";function o(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var o=0,i=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(o++,"%c"===t&&(i=o))}),t.splice(i,0,r)}}function s(){return"object"===("undefined"==typeof console?"undefined":p(console))&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(n){}}function c(){var t;try{t=e.storage.debug}catch(n){}return!t&&"undefined"!=typeof r&&"env"in r&&(t=r.env.DEBUG),t}function u(){try{return window.localStorage}catch(t){}}var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e=t.exports=n(9),e.log=s,e.formatArgs=i,e.save=a,e.load=c,e.useColors=o,e.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},e.enable(c())}).call(e,n(4))},function(t,e,n){"use strict";function r(t){var n,r=0;for(n in t)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]}function o(t){function n(){if(n.enabled){var t=n,r=+new Date,i=r-(o||r);t.diff=i,t.prev=o,t.curr=r,o=r;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=e.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var c=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;c++;var o=e.formatters[r];if("function"==typeof o){var i=s[c];n=o.call(t,i),s.splice(c,1),c--}return n}),e.formatArgs.call(t,s);var u=n.log||e.log||console.log.bind(console);u.apply(t,s)}}var o;return n.namespace=t,n.enabled=e.enabled(t),n.useColors=e.useColors(),n.color=r(t),n.destroy=i,"function"==typeof e.init&&e.init(n),e.instances.push(n),n}function i(){var t=e.instances.indexOf(this);return t!==-1&&(e.instances.splice(t,1),!0)}function s(t){e.save(t),e.names=[],e.skips=[];var n,r=("string"==typeof t?t:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&(t=r[n].replace(/\*/g,".*?"),"-"===t[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")));for(n=0;n<e.instances.length;n++){var i=e.instances[n];i.enabled=e.enabled(i.namespace)}}function a(){e.enable("")}function c(t){if("*"===t[t.length-1])return!0;var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1}function u(t){return t instanceof Error?t.stack||t.message:t}e=t.exports=o.debug=o["default"]=o,e.coerce=u,e.disable=a,e.enable=s,e.enabled=c,e.humanize=n(10),e.instances=[],e.names=[],e.skips=[],e.formatters={}},function(t,e){function n(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*p;case"days":case"day":case"d":return n*u;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(t){return t>=u?Math.round(t/u)+"d":t>=c?Math.round(t/c)+"h":t>=a?Math.round(t/a)+"m":t>=s?Math.round(t/s)+"s":t+"ms"}function o(t){return i(t,u,"day")||i(t,c,"hour")||i(t,a,"minute")||i(t,s,"second")||t+" ms"}function i(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var s=1e3,a=60*s,c=60*a,u=24*c,p=365.25*u;t.exports=function(t,e){e=e||{};var i=typeof t;if("string"===i&&t.length>0)return n(t);if("number"===i&&isNaN(t)===!1)return e["long"]?o(t):r(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){function r(t){if(t)return o(t)}function o(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===e||r.fn===e){n.splice(o,1);break}return this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,e)}return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,n){function r(t,e){if(!t)return t;if(s(t)){var n={_placeholder:!0,num:e.length};return e.push(t),n}if(i(t)){for(var o=new Array(t.length),a=0;a<t.length;a++)o[a]=r(t[a],e);return o}if("object"==typeof t&&!(t instanceof Date)){var o={};for(var c in t)o[c]=r(t[c],e);return o}return t}function o(t,e){if(!t)return t;if(t&&t._placeholder)return e[t.num];if(i(t))for(var n=0;n<t.length;n++)t[n]=o(t[n],e);else if("object"==typeof t)for(var r in t)t[r]=o(t[r],e);return t}var i=n(13),s=n(14),a=Object.prototype.toString,c="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===a.call(Blob),u="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===a.call(File);e.deconstructPacket=function(t){var e=[],n=t.data,o=t;return o.data=r(n,e),o.attachments=e.length,{packet:o,buffers:e}},e.reconstructPacket=function(t,e){return t.data=o(t.data,e),t.attachments=void 0,t},e.removeBlobs=function(t,e){function n(t,a,p){if(!t)return t;if(c&&t instanceof Blob||u&&t instanceof File){r++;var h=new FileReader;h.onload=function(){p?p[a]=this.result:o=this.result,--r||e(o)},h.readAsArrayBuffer(t)}else if(i(t))for(var f=0;f<t.length;f++)n(t[f],f,t);else if("object"==typeof t&&!s(t))for(var l in t)n(t[l],l,t)}var r=0,o=t;n(o),r||e(o)}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){function n(t){return r&&Buffer.isBuffer(t)||o&&(t instanceof ArrayBuffer||i(t))}t.exports=n;var r="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,o="function"==typeof ArrayBuffer,i=function(t){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer}},function(t,e,n){function r(t,e){if(!(this instanceof r))return new r(t,e);t&&"object"==typeof t&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new f({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=e.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=e.autoConnect!==!1,this.autoConnect&&this.open()}var o=n(16),i=n(39),s=n(11),a=n(7),c=n(41),u=n(42),p=n(3)("socket.io-client:manager"),h=n(38),f=n(43),l=Object.prototype.hasOwnProperty;t.exports=r,r.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var t in this.nsps)l.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},r.prototype.updateSocketIds=function(){for(var t in this.nsps)l.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},r.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},s(r.prototype),r.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},r.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},r.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},r.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},r.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},r.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},r.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},r.prototype.open=r.prototype.connect=function(t,e){if(p("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;p("opening %s",this.uri),this.engine=o(this.uri,this.opts);var n=this.engine,r=this;this.readyState="opening",this.skipReconnect=!1;var i=c(n,"open",function(){r.onopen(),t&&t()}),s=c(n,"error",function(e){if(p("connect_error"),r.cleanup(),r.readyState="closed",r.emitAll("connect_error",e),t){var n=new Error("Connection error");n.data=e,t(n)}else r.maybeReconnectOnOpen()});if(!1!==this._timeout){var a=this._timeout;p("connect attempt will timeout after %d",a);var u=setTimeout(function(){p("connect attempt timed out after %d",a),i.destroy(),n.close(),n.emit("error","timeout"),r.emitAll("connect_timeout",a)},a);this.subs.push({destroy:function(){clearTimeout(u)}})}return this.subs.push(i),this.subs.push(s),this},r.prototype.onopen=function(){p("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(c(t,"data",u(this,"ondata"))),this.subs.push(c(t,"ping",u(this,"onping"))),this.subs.push(c(t,"pong",u(this,"onpong"))),this.subs.push(c(t,"error",u(this,"onerror"))),this.subs.push(c(t,"close",u(this,"onclose"))),this.subs.push(c(this.decoder,"decoded",u(this,"ondecoded")))},r.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},r.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},r.prototype.ondata=function(t){this.decoder.add(t)},r.prototype.ondecoded=function(t){this.emit("packet",t)},r.prototype.onerror=function(t){p("error",t),this.emitAll("error",t)},r.prototype.socket=function(t,e){function n(){~h(o.connecting,r)||o.connecting.push(r)}var r=this.nsps[t];if(!r){r=new i(this,t,e),this.nsps[t]=r;var o=this;r.on("connecting",n),r.on("connect",function(){r.id=o.generateId(t)}),this.autoConnect&&n()}return r},r.prototype.destroy=function(t){var e=h(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},r.prototype.packet=function(t){p("writing packet %j",t);var e=this;t.query&&0===t.type&&(t.nsp+="?"+t.query),e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,function(n){for(var r=0;r<n.length;r++)e.engine.write(n[r],t.options);e.encoding=!1,e.processPacketQueue()}))},r.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},r.prototype.cleanup=function(){p("cleanup");for(var t=this.subs.length,e=0;e<t;e++){var n=this.subs.shift();n.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},r.prototype.close=r.prototype.disconnect=function(){p("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},r.prototype.onclose=function(t){p("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},r.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)p("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();p("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout(function(){t.skipReconnect||(p("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(p("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(p("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e,n){t.exports=n(17),t.exports.parser=n(24)},function(t,e,n){function r(t,e){return this instanceof r?(e=e||{},t&&"object"==typeof t&&(e=t,t=null),t?(t=p(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=p(e.host).host),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.agent=e.agent||!1,this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=e.query||{},"string"==typeof this.query&&(this.query=h.decode(this.query)),this.upgrade=!1!==e.upgrade,this.path=(e.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!e.forceJSONP,this.jsonp=!1!==e.jsonp,this.forceBase64=!!e.forceBase64,this.enablesXDR=!!e.enablesXDR,this.withCredentials=!1!==e.withCredentials,this.timestampParam=e.timestampParam||"t",this.timestampRequests=e.timestampRequests,this.transports=e.transports||["polling","websocket"],this.transportOptions=e.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=e.policyPort||843,this.rememberUpgrade=e.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=e.onlyBinaryUpgrades,this.perMessageDeflate=!1!==e.perMessageDeflate&&(e.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=e.pfx||null,this.key=e.key||null,this.passphrase=e.passphrase||null,this.cert=e.cert||null,this.ca=e.ca||null,this.ciphers=e.ciphers||null,this.rejectUnauthorized=void 0===e.rejectUnauthorized||e.rejectUnauthorized,this.forceNode=!!e.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(e.extraHeaders&&Object.keys(e.extraHeaders).length>0&&(this.extraHeaders=e.extraHeaders),e.localAddress&&(this.localAddress=e.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,void this.open()):new r(t,e)}function o(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var i=n(18),s=n(11),a=n(3)("engine.io-client:socket"),c=n(38),u=n(24),p=n(2),h=n(32);t.exports=r,r.priorWebsocketSuccess=!1,s(r.prototype),r.protocol=u.protocol,r.Socket=r,r.Transport=n(23),r.transports=n(18),r.parser=n(24),r.prototype.createTransport=function(t){a('creating transport "%s"',t);var e=o(this.query);e.EIO=u.protocol,e.transport=t;var n=this.transportOptions[t]||{};this.id&&(e.sid=this.id);var r=new i[t]({query:e,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,withCredentials:n.withCredentials||this.withCredentials,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative});return r},r.prototype.open=function(){var t;if(this.rememberUpgrade&&r.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else{7
if(0===this.transports.length){var e=this;return void setTimeout(function(){e.emit("error","No transports available")},0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(n){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},r.prototype.setTransport=function(t){a("setting transport %s",t.name);var e=this;this.transport&&(a("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){e.onDrain()}).on("packet",function(t){e.onPacket(t)}).on("error",function(t){e.onError(t)}).on("close",function(){e.onClose("transport close")})},r.prototype.probe=function(t){function e(){if(f.onlyBinaryUpgrades){var e=!this.supportsBinary&&f.transport.supportsBinary;h=h||e}h||(a('probe transport "%s" opened',t),p.send([{type:"ping",data:"probe"}]),p.once("packet",function(e){if(!h)if("pong"===e.type&&"probe"===e.data){if(a('probe transport "%s" pong',t),f.upgrading=!0,f.emit("upgrading",p),!p)return;r.priorWebsocketSuccess="websocket"===p.name,a('pausing current transport "%s"',f.transport.name),f.transport.pause(function(){h||"closed"!==f.readyState&&(a("changing transport and sending upgrade packet"),u(),f.setTransport(p),p.send([{type:"upgrade"}]),f.emit("upgrade",p),p=null,f.upgrading=!1,f.flush())})}else{a('probe transport "%s" failed',t);var n=new Error("probe error");n.transport=p.name,f.emit("upgradeError",n)}}))}function n(){h||(h=!0,u(),p.close(),p=null)}function o(e){var r=new Error("probe error: "+e);r.transport=p.name,n(),a('probe transport "%s" failed because of error: %s',t,e),f.emit("upgradeError",r)}function i(){o("transport closed")}function s(){o("socket closed")}function c(t){p&&t.name!==p.name&&(a('"%s" works - aborting "%s"',t.name,p.name),n())}function u(){p.removeListener("open",e),p.removeListener("error",o),p.removeListener("close",i),f.removeListener("close",s),f.removeListener("upgrading",c)}a('probing transport "%s"',t);var p=this.createTransport(t,{probe:1}),h=!1,f=this;r.priorWebsocketSuccess=!1,p.once("open",e),p.once("error",o),p.once("close",i),this.once("close",s),this.once("upgrading",c),p.open()},r.prototype.onOpen=function(){if(a("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){a("starting upgrade probes");for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},r.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(a('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else a('packet received with socket readyState "%s"',this.readyState)},r.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},r.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout(function(){"closed"!==e.readyState&&e.onClose("ping timeout")},t||e.pingInterval+e.pingTimeout)},r.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){a("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)},r.prototype.ping=function(){var t=this;this.sendPacket("ping",function(){t.emit("ping")})},r.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},r.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(a("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},r.prototype.write=r.prototype.send=function(t,e,n){return this.sendPacket("message",t,e,n),this},r.prototype.sendPacket=function(t,e,n,r){if("function"==typeof e&&(r=e,e=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){n=n||{},n.compress=!1!==n.compress;var o={type:t,data:e,options:n};this.emit("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}},r.prototype.close=function(){function t(){r.onClose("forced close"),a("socket closing - telling transport to close"),r.transport.close()}function e(){r.removeListener("upgrade",e),r.removeListener("upgradeError",e),t()}function n(){r.once("upgrade",e),r.once("upgradeError",e)}if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var r=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():t()}):this.upgrading?n():t()}return this},r.prototype.onError=function(t){a("socket error %j",t),r.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},r.prototype.onClose=function(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){a('socket close with reason: "%s"',t);var n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),n.writeBuffer=[],n.prevBufferLen=0}},r.prototype.filterUpgrades=function(t){for(var e=[],n=0,r=t.length;n<r;n++)~c(this.transports,t[n])&&e.push(t[n]);return e}},function(t,e,n){function r(t){var e,n=!1,r=!1,a=!1!==t.jsonp;if("undefined"!=typeof location){var c="https:"===location.protocol,u=location.port;u||(u=c?443:80),n=t.hostname!==location.hostname||u!==t.port,r=t.secure!==c}if(t.xdomain=n,t.xscheme=r,e=new o(t),"open"in e&&!t.forceJSONP)return new i(t);if(!a)throw new Error("JSONP disabled");return new s(t)}var o=n(19),i=n(21),s=n(35),a=n(36);e.polling=r,e.websocket=a},function(t,e,n){var r=n(20);t.exports=function(t){var e=t.xdomain,n=t.xscheme,o=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!e||r))return new XMLHttpRequest}catch(i){}try{if("undefined"!=typeof XDomainRequest&&!n&&o)return new XDomainRequest}catch(i){}if(!e)try{return new(self[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(i){}}},function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(n){t.exports=!1}},function(t,e,n){function r(){}function o(t){if(c.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,"undefined"!=typeof location){var e="https:"===location.protocol,n=location.port;n||(n=e?443:80),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||n!==t.port,this.xs=t.secure!==e}}function i(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function s(){for(var t in i.requests)i.requests.hasOwnProperty(t)&&i.requests[t].abort()}var a=n(19),c=n(22),u=n(11),p=n(33),h=n(3)("engine.io-client:polling-xhr");if(t.exports=o,t.exports.Request=i,p(o,c),o.prototype.supportsBinary=!0,o.prototype.request=function(t){return t=t||{},t.uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.withCredentials=this.withCredentials,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new i(t)},o.prototype.doWrite=function(t,e){var n="string"!=typeof t&&void 0!==t,r=this.request({method:"POST",data:t,isBinary:n}),o=this;r.on("success",e),r.on("error",function(t){o.onError("xhr post error",t)}),this.sendXhr=r},o.prototype.doPoll=function(){h("xhr poll");var t=this.request(),e=this;t.on("data",function(t){e.onData(t)}),t.on("error",function(t){e.onError("xhr poll error",t)}),this.pollXhr=t},u(i.prototype),i.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var e=this.xhr=new a(t),n=this;try{h("xhr open %s: %s",this.method,this.uri),e.open(this.method,this.uri,this.async);try{if(this.extraHeaders){e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0);for(var r in this.extraHeaders)this.extraHeaders.hasOwnProperty(r)&&e.setRequestHeader(r,this.extraHeaders[r])}}catch(o){}if("POST"===this.method)try{this.isBinary?e.setRequestHeader("Content-type","application/octet-stream"):e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(o){}try{e.setRequestHeader("Accept","*/*")}catch(o){}"withCredentials"in e&&(e.withCredentials=this.withCredentials),this.requestTimeout&&(e.timeout=this.requestTimeout),this.hasXDR()?(e.onload=function(){n.onLoad()},e.onerror=function(){n.onError(e.responseText)}):e.onreadystatechange=function(){if(2===e.readyState)try{var t=e.getResponseHeader("Content-Type");(n.supportsBinary&&"application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&(e.responseType="arraybuffer")}catch(r){}4===e.readyState&&(200===e.status||1223===e.status?n.onLoad():setTimeout(function(){n.onError("number"==typeof e.status?e.status:0)},0))},h("xhr data %s",this.data),e.send(this.data)}catch(o){return void setTimeout(function(){n.onError(o)},0)}"undefined"!=typeof document&&(this.index=i.requestsCount++,i.requests[this.index]=this)},i.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},i.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},i.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},i.prototype.cleanup=function(t){if("undefined"!=typeof this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=r:this.xhr.onreadystatechange=r,t)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete i.requests[this.index],this.xhr=null}},i.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch(n){}t="application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e?this.xhr.response||this.xhr.responseText:this.xhr.responseText}catch(n){this.onError(n)}null!=t&&this.onData(t)},i.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},i.prototype.abort=function(){this.cleanup()},i.requestsCount=0,i.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",s);else if("function"==typeof addEventListener){var f="onpagehide"in self?"pagehide":"unload";addEventListener(f,s,!1)}},function(t,e,n){function r(t){var e=t&&t.forceBase64;p&&!e||(this.supportsBinary=!1),o.call(this,t)}var o=n(23),i=n(32),s=n(24),a=n(33),c=n(34),u=n(3)("engine.io-client:polling");t.exports=r;var p=function(){var t=n(19),e=new t({xdomain:!1});return null!=e.responseType}();a(r,o),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(t){function e(){u("paused"),n.readyState="paused",t()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(u("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){u("pre-pause polling complete"),--r||e()})),this.writable||(u("we are currently writing - waiting to pause"),r++,this.once("drain",function(){u("pre-pause writing complete"),--r||e()}))}else e()},r.prototype.poll=function(){u("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(t){var e=this;u("polling got data %s",t);var n=function(t,n,r){return"opening"===e.readyState&&e.onOpen(),"close"===t.type?(e.onClose(),!1):void e.onPacket(t)};s.decodePayload(t,this.socket.binaryType,n),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():u('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function t(){u("writing close packet"),e.write([{type:"close"}])}var e=this;"open"===this.readyState?(u("transport open - closing"),t()):(u("transport not open - deferring close"),this.once("open",t))},r.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")};s.encodePayload(t,this.supportsBinary,function(t){e.doWrite(t,n)})},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";!1!==this.timestampRequests&&(t[this.timestampParam]=c()),this.supportsBinary||t.sid||(t.b64=1),t=i.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(n=":"+this.port),t.length&&(t="?"+t);var r=this.hostname.indexOf(":")!==-1;return e+"://"+(r?"["+this.hostname+"]":this.hostname)+n+this.path+t}},function(t,e,n){function r(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.isReactNative=t.isReactNative,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}var o=n(24),i=n(11);t.exports=r,i(r.prototype),r.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},r.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},r.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(t){var e=o.decodePacket(t,this.socket.binaryType);this.onPacket(e)},r.prototype.onPacket=function(t){this.emit("packet",t)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(t,e,n){function r(t,n){var r="b"+e.packets[t.type]+t.data.data;return n(r)}function o(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var o=t.data,i=new Uint8Array(o),s=new Uint8Array(1+o.byteLength);s[0]=v[t.type];for(var a=0;a<i.length;a++)s[a+1]=i[a];return r(s.buffer)}function i(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var o=new FileReader;return o.onload=function(){e.encodePacket({type:t.type,data:o.result},n,!0,r)},o.readAsArrayBuffer(t.data)}function s(t,n,r){if(!n)return e.encodeBase64Packet(t,r);if(g)return i(t,n,r);var o=new Uint8Array(1);o[0]=v[t.type];var s=new w([o.buffer,t.data]);return r(s)}function a(t){try{t=d.decode(t,{strict:!1})}catch(e){return!1}return t}function c(t,e,n){for(var r=new Array(t.length),o=l(t.length,n),i=function(t,n,o){e(n,function(e,n){r[t]=n,o(e,r)})},s=0;s<t.length;s++)i(s,t[s],o)}var u,p=n(25),h=n(26),f=n(27),l=n(28),d=n(29);"undefined"!=typeof ArrayBuffer&&(u=n(30));var y="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),m="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),g=y||m;e.protocol=3;var v=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},b=p(v),C={type:"error",data:"parser error"},w=n(31);e.encodePacket=function(t,e,n,i){"function"==typeof e&&(i=e,e=!1),"function"==typeof n&&(i=n,n=null);var a=void 0===t.data?void 0:t.data.buffer||t.data;if("undefined"!=typeof ArrayBuffer&&a instanceof ArrayBuffer)return o(t,e,i);if("undefined"!=typeof w&&a instanceof w)return s(t,e,i);if(a&&a.base64)return r(t,i);var c=v[t.type];return void 0!==t.data&&(c+=n?d.encode(String(t.data),{strict:!1}):String(t.data)),i(""+c)},e.encodeBase64Packet=function(t,n){var r="b"+e.packets[t.type];if("undefined"!=typeof w&&t.data instanceof w){var o=new FileReader;return o.onload=function(){var t=o.result.split(",")[1];n(r+t)},o.readAsDataURL(t.data)}var i;try{i=String.fromCharCode.apply(null,new Uint8Array(t.data))}catch(s){for(var a=new Uint8Array(t.data),c=new Array(a.length),u=0;u<a.length;u++)c[u]=a[u];i=String.fromCharCode.apply(null,c)}return r+=btoa(i),n(r)},e.decodePacket=function(t,n,r){if(void 0===t)return C;if("string"==typeof t){if("b"===t.charAt(0))return e.decodeBase64Packet(t.substr(1),n);if(r&&(t=a(t),t===!1))return C;var o=t.charAt(0);return Number(o)==o&&b[o]?t.length>1?{type:b[o],data:t.substring(1)}:{type:b[o]}:C}var i=new Uint8Array(t),o=i[0],s=f(t,1);return w&&"blob"===n&&(s=new w([s])),{type:b[o],data:s}},e.decodeBase64Packet=function(t,e){var n=b[t.charAt(0)];if(!u)return{type:n,data:{base64:!0,data:t.substr(1)}};var r=u.decode(t.substr(1));return"blob"===e&&w&&(r=new w([r])),{type:n,data:r}},e.encodePayload=function(t,n,r){function o(t){return t.length+":"+t}function i(t,r){e.encodePacket(t,!!s&&n,!1,function(t){r(null,o(t))})}"function"==typeof n&&(r=n,n=null);var s=h(t);return n&&s?w&&!g?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r):t.length?void c(t,i,function(t,e){return r(e.join(""))}):r("0:")},e.decodePayload=function(t,n,r){if("string"!=typeof t)return e.decodePayloadAsBinary(t,n,r);"function"==typeof n&&(r=n,n=null);var o;if(""===t)return r(C,0,1);for(var i,s,a="",c=0,u=t.length;c<u;c++){var p=t.charAt(c);if(":"===p){if(""===a||a!=(i=Number(a)))return r(C,0,1);if(s=t.substr(c+1,i),a!=s.length)return r(C,0,1);if(s.length){if(o=e.decodePacket(s,n,!1),C.type===o.type&&C.data===o.data)return r(C,0,1);var h=r(o,c+i,u);if(!1===h)return}c+=i,a=""}else a+=p}return""!==a?r(C,0,1):void 0},e.encodePayloadAsArrayBuffer=function(t,n){function r(t,n){e.encodePacket(t,!0,!0,function(t){return n(null,t)})}return t.length?void c(t,r,function(t,e){var r=e.reduce(function(t,e){var n;return n="string"==typeof e?e.length:e.byteLength,t+n.toString().length+n+2},0),o=new Uint8Array(r),i=0;return e.forEach(function(t){var e="string"==typeof t,n=t;if(e){for(var r=new Uint8Array(t.length),s=0;s<t.length;s++)r[s]=t.charCodeAt(s);n=r.buffer}e?o[i++]=0:o[i++]=1;for(var a=n.byteLength.toString(),s=0;s<a.length;s++)o[i++]=parseInt(a[s]);o[i++]=255;for(var r=new Uint8Array(n),s=0;s<r.length;s++)o[i++]=r[s]}),n(o.buffer)}):n(new ArrayBuffer(0))},e.encodePayloadAsBlob=function(t,n){function r(t,n){e.encodePacket(t,!0,!0,function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var r=new Uint8Array(t.length),o=0;o<t.length;o++)r[o]=t.charCodeAt(o);t=r.buffer,e[0]=0}for(var i=t instanceof ArrayBuffer?t.byteLength:t.size,s=i.toString(),a=new Uint8Array(s.length+1),o=0;o<s.length;o++)a[o]=parseInt(s[o]);if(a[s.length]=255,w){var c=new w([e.buffer,a.buffer,t]);n(null,c)}})}c(t,r,function(t,e){return n(new w(e))})},e.decodePayloadAsBinary=function(t,n,r){"function"==typeof n&&(r=n,n=null);for(var o=t,i=[];o.byteLength>0;){for(var s=new Uint8Array(o),a=0===s[0],c="",u=1;255!==s[u];u++){if(c.length>310)return r(C,0,1);c+=s[u]}o=f(o,2+c.length),c=parseInt(c);var p=f(o,0,c);if(a)try{p=String.fromCharCode.apply(null,new Uint8Array(p))}catch(h){var l=new Uint8Array(p);p="";for(var u=0;u<l.length;u++)p+=String.fromCharCode(l[u])}i.push(p),o=f(o,c)}var d=i.length;i.forEach(function(t,o){r(e.decodePacket(t,n,!0),o,d)})}},function(t,e){t.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var r in t)n.call(t,r)&&e.push(r);return e}},function(t,e,n){function r(t){if(!t||"object"!=typeof t)return!1;if(o(t)){for(var e=0,n=t.length;e<n;e++)if(r(t[e]))return!0;return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(t)||"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||s&&t instanceof Blob||a&&t instanceof File)return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return r(t.toJSON(),!0);for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&r(t[i]))return!0;return!1}var o=n(13),i=Object.prototype.toString,s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===i.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===i.call(File);t.exports=r},function(t,e){t.exports=function(t,e,n){var r=t.byteLength;if(e=e||0,n=n||r,t.slice)return t.slice(e,n);if(e<0&&(e+=r),n<0&&(n+=r),n>r&&(n=r),e>=r||e>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(t),i=new Uint8Array(n-e),s=e,a=0;s<n;s++,a++)i[a]=o[s];return i.buffer}},function(t,e){function n(t,e,n){function o(t,r){if(o.count<=0)throw new Error("after called too many times");--o.count,t?(i=!0,e(t),e=n):0!==o.count||i||e(null,r)}var i=!1;return n=n||r,o.count=t,0===t?e():o}function r(){}t.exports=n},function(t,e){function n(t){for(var e,n,r=[],o=0,i=t.length;o<i;)e=t.charCodeAt(o++),e>=55296&&e<=56319&&o<i?(n=t.charCodeAt(o++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--)):r.push(e);return r}function r(t){for(var e,n=t.length,r=-1,o="";++r<n;)e=t[r],e>65535&&(e-=65536,o+=d(e>>>10&1023|55296),e=56320|1023&e),o+=d(e);return o}function o(t,e){if(t>=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function i(t,e){return d(t>>e&63|128)}function s(t,e){if(0==(4294967168&t))return d(t);var n="";return 0==(4294965248&t)?n=d(t>>6&31|192):0==(4294901760&t)?(o(t,e)||(t=65533),n=d(t>>12&15|224),n+=i(t,6)):0==(4292870144&t)&&(n=d(t>>18&7|240),n+=i(t,12),n+=i(t,6)),n+=d(63&t|128)}function a(t,e){e=e||{};for(var r,o=!1!==e.strict,i=n(t),a=i.length,c=-1,u="";++c<a;)r=i[c],u+=s(r,o);return u}function c(){if(l>=f)throw Error("Invalid byte index");var t=255&h[l];if(l++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function u(t){var e,n,r,i,s;if(l>f)throw Error("Invalid byte index");if(l==f)return!1;if(e=255&h[l],l++,0==(128&e))return e;if(192==(224&e)){if(n=c(),s=(31&e)<<6|n,s>=128)return s;throw Error("Invalid continuation byte")}if(224==(240&e)){if(n=c(),r=c(),s=(15&e)<<12|n<<6|r,s>=2048)return o(s,t)?s:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(n=c(),r=c(),i=c(),s=(7&e)<<18|n<<12|r<<6|i,s>=65536&&s<=1114111))return s;throw Error("Invalid UTF-8 detected")}function p(t,e){e=e||{};var o=!1!==e.strict;h=n(t),f=h.length,l=0;for(var i,s=[];(i=u(o))!==!1;)s.push(i);return r(s)}/*! https://mths.be/utf8js v2.1.2 by @mathias */8
var h,f,l,d=String.fromCharCode;t.exports={version:"2.1.2",encode:a,decode:p}},function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<t.length;r++)n[t.charCodeAt(r)]=r;e.encode=function(e){var n,r=new Uint8Array(e),o=r.length,i="";for(n=0;n<o;n+=3)i+=t[r[n]>>2],i+=t[(3&r[n])<<4|r[n+1]>>4],i+=t[(15&r[n+1])<<2|r[n+2]>>6],i+=t[63&r[n+2]];return o%3===2?i=i.substring(0,i.length-1)+"=":o%3===1&&(i=i.substring(0,i.length-2)+"=="),i},e.decode=function(t){var e,r,o,i,s,a=.75*t.length,c=t.length,u=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var p=new ArrayBuffer(a),h=new Uint8Array(p);for(e=0;e<c;e+=4)r=n[t.charCodeAt(e)],o=n[t.charCodeAt(e+1)],i=n[t.charCodeAt(e+2)],s=n[t.charCodeAt(e+3)],h[u++]=r<<2|o>>4,h[u++]=(15&o)<<4|i>>2,h[u++]=(3&i)<<6|63&s;return p}}()},function(t,e){function n(t){return t.map(function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var n=new Uint8Array(t.byteLength);n.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=n.buffer}return e}return t})}function r(t,e){e=e||{};var r=new i;return n(t).forEach(function(t){r.append(t)}),e.type?r.getBlob(e.type):r.getBlob()}function o(t,e){return new Blob(n(t),e||{})}var i="undefined"!=typeof i?i:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,s=function(){try{var t=new Blob(["hi"]);return 2===t.size}catch(e){return!1}}(),a=s&&function(){try{var t=new Blob([new Uint8Array([1,2])]);return 2===t.size}catch(e){return!1}}(),c=i&&i.prototype.append&&i.prototype.getBlob;"undefined"!=typeof Blob&&(r.prototype=Blob.prototype,o.prototype=Blob.prototype),t.exports=function(){return s?a?Blob:o:c?r:void 0}()},function(t,e){e.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){for(var e={},n=t.split("&"),r=0,o=n.length;r<o;r++){var i=n[r].split("=");e[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return e}},function(t,e){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){"use strict";function n(t){var e="";do e=s[t%a]+e,t=Math.floor(t/a);while(t>0);return e}function r(t){var e=0;for(p=0;p<t.length;p++)e=e*a+c[t.charAt(p)];return e}function o(){var t=n(+new Date);return t!==i?(u=0,i=t):t+"."+n(u++)}for(var i,s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),a=64,c={},u=0,p=0;p<a;p++)c[s[p]]=p;o.encode=n,o.decode=r,t.exports=o},function(t,e,n){(function(e){function r(){}function o(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof e?e:{}}function i(t){if(s.call(this,t),this.query=this.query||{},!c){var e=o();c=e.___eio=e.___eio||[]}this.index=c.length;var n=this;c.push(function(t){n.onData(t)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){n.script&&(n.script.onerror=r)},!1)}var s=n(22),a=n(33);t.exports=i;var c,u=/\n/g,p=/\\n/g;a(i,s),i.prototype.supportsBinary=!1,i.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),s.prototype.doClose.call(this)},i.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):(document.head||document.body).appendChild(e),this.script=e;var r="undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent);r&&setTimeout(function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)},100)},i.prototype.doWrite=function(t,e){function n(){r(),e()}function r(){if(o.iframe)try{o.form.removeChild(o.iframe)}catch(t){o.onError("jsonp polling iframe removal error",t)}try{var e='<iframe src="javascript:0" name="'+o.iframeId+'">';i=document.createElement(e)}catch(t){i=document.createElement("iframe"),i.name=o.iframeId,i.src="javascript:0"}i.id=o.iframeId,o.form.appendChild(i),o.iframe=i}var o=this;if(!this.form){var i,s=document.createElement("form"),a=document.createElement("textarea"),c=this.iframeId="eio_iframe_"+this.index;s.className="socketio",s.style.position="absolute",s.style.top="-1000px",s.style.left="-1000px",s.target=c,s.method="POST",s.setAttribute("accept-charset","utf-8"),a.name="d",s.appendChild(a),document.body.appendChild(s),this.form=s,this.area=a}this.form.action=this.uri(),r(),t=t.replace(p,"\\\n"),this.area.value=t.replace(u,"\\n");try{this.form.submit()}catch(h){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===o.iframe.readyState&&n()}:this.iframe.onload=n}}).call(e,function(){return this}())},function(t,e,n){function r(t){var e=t&&t.forceBase64;e&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=o&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(l=i),s.call(this,t)}var o,i,s=n(23),a=n(24),c=n(32),u=n(33),p=n(34),h=n(3)("engine.io-client:websocket");if("undefined"!=typeof WebSocket?o=WebSocket:"undefined"!=typeof self&&(o=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{i=n(37)}catch(f){}var l=o||i;t.exports=r,u(r,s),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?e?new l(t,e):new l(t):new l(t,e,n)}catch(r){return this.emit("error",r)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},r.prototype.write=function(t){function e(){n.emit("flush"),setTimeout(function(){n.writable=!0,n.emit("drain")},0)}var n=this;this.writable=!1;for(var r=t.length,o=0,i=r;o<i;o++)!function(t){a.encodePacket(t,n.supportsBinary,function(o){if(!n.usingBrowserWebSocket){var i={};if(t.options&&(i.compress=t.options.compress),n.perMessageDeflate){var s="string"==typeof o?Buffer.byteLength(o):o.length;s<n.perMessageDeflate.threshold&&(i.compress=!1)}}try{n.usingBrowserWebSocket?n.ws.send(o):n.ws.send(o,i)}catch(a){h("websocket closed before onclose event")}--r||e()})}(t[o])},r.prototype.onClose=function(){s.prototype.onClose.call(this)},r.prototype.doClose=function(){"undefined"!=typeof this.ws&&this.ws.close()},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";this.port&&("wss"===e&&443!==Number(this.port)||"ws"===e&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=p()),this.supportsBinary||(t.b64=1),t=c.encode(t),t.length&&(t="?"+t);var r=this.hostname.indexOf(":")!==-1;return e+"://"+(r?"["+this.hostname+"]":this.hostname)+n+this.path+t},r.prototype.check=function(){return!(!l||"__initialize"in l&&this.name===r.prototype.name)}},function(t,e){},function(t,e){var n=[].indexOf;t.exports=function(t,e){if(n)return t.indexOf(e);for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}},function(t,e,n){function r(t,e,n){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}var o=n(7),i=n(11),s=n(40),a=n(41),c=n(42),u=n(3)("socket.io-client:socket"),p=n(32),h=n(26);t.exports=e=r;var f={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},l=i.prototype.emit;i(r.prototype),r.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[a(t,"open",c(this,"onopen")),a(t,"packet",c(this,"onpacket")),a(t,"close",c(this,"onclose"))]}},r.prototype.open=r.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},r.prototype.send=function(){var t=s(arguments);return t.unshift("message"),this.emit.apply(this,t),this},r.prototype.emit=function(t){if(f.hasOwnProperty(t))return l.apply(this,arguments),this;var e=s(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:h(e))?o.BINARY_EVENT:o.EVENT,data:e};return n.options={},n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(u("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},r.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},r.prototype.onopen=function(){if(u("transport is open - connecting"),"/"!==this.nsp)if(this.query){var t="object"==typeof this.query?p.encode(this.query):this.query;u("sending connect packet with query %s",t),this.packet({type:o.CONNECT,query:t})}else this.packet({type:o.CONNECT})},r.prototype.onclose=function(t){u("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},r.prototype.onpacket=function(t){var e=t.nsp===this.nsp,n=t.type===o.ERROR&&"/"===t.nsp;if(e||n)switch(t.type){case o.CONNECT:this.onconnect();break;case o.EVENT:this.onevent(t);break;case o.BINARY_EVENT:this.onevent(t);break;case o.ACK:this.onack(t);break;case o.BINARY_ACK:this.onack(t);break;case o.DISCONNECT:this.ondisconnect();break;case o.ERROR:this.emit("error",t.data)}},r.prototype.onevent=function(t){var e=t.data||[];u("emitting event %j",e),null!=t.id&&(u("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?l.apply(this,e):this.receiveBuffer.push(e)},r.prototype.ack=function(t){var e=this,n=!1;return function(){if(!n){n=!0;var r=s(arguments);u("sending ack %j",r),e.packet({type:h(r)?o.BINARY_ACK:o.ACK,id:t,data:r})}}},r.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(u("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):u("bad ack %s",t.id)},r.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},r.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)l.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},r.prototype.ondisconnect=function(){u("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},r.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},r.prototype.close=r.prototype.disconnect=function(){return this.connected&&(u("performing disconnect (%s)",this.nsp),this.packet({type:o.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},r.prototype.compress=function(t){return this.flags.compress=t,this},r.prototype.binary=function(t){return this.flags.binary=t,this}},function(t,e){function n(t,e){var n=[];e=e||0;for(var r=e||0;r<t.length;r++)n[r-e]=t[r];return n}t.exports=n},function(t,e){function n(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}t.exports=n},function(t,e){var n=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}},function(t,e){function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}}])});
1
export default {2
color: [3
{ name: 'Salmon', code: '#FA8072' },4
{ name: 'Crimson', code: '#DC143C' },5
{ name: 'Pink', code: '#FFC0CB' },6
{ name: 'Hotpink', code: '#FF69B4' },7
{ name: 'Coral', code: '#FF7F50' },8
{ name: 'Tomato', code: '#FF6347' },9
{ name: 'Orange', code: '#FFA500' },10
{ name: 'Gold', code: '#FFD700' },11
{ name: 'Khaki', code: '#F0E68C' },12
{ name: 'Lavender', code: '#E6E6FA' },13
{ name: 'Plum', code: '#DDA0DD' },14
{ name: 'Violet', code: '#EE82EE' },15
{ name: 'Magenta', code: '#FF00FF' },16
{ name: 'Purple', code: '#800080' },17
{ name: 'Indigo', code: '#4B0082' },18
{ name: 'Lime', code: '#00FF00' },19
{ name: 'Olive', code: '#808000' },20
{ name: 'Teal', code: '#008080' },21
{ name: 'Cyan', code: '#00FFFF' },22
{ name: 'Aquamarine', code: '#7FFFD4' },23
{ name: 'Turquoise', code: '#40E0D0' },24
{ name: 'Bisque', code: '#FFE4C4' },25
{ name: 'Tan', code: '#D2B48C' },26
{ name: 'Peru', code: '#CD853F' },27
{ name: 'Chocolate', code: '#D2691E' },28
{ name: 'Sienna', code: '#A0522D' },29
{ name: 'Brown', code: '#A52A2A' },30
{ name: 'Silver', code: '#C0C0C0' }31
],32
basic: [33
{ name: 'Black', code: '#000000', active: true },34
{ name: 'White', code: '#FFFFFF' },35
{ name: 'Grey', code: '#808080' },36
{ name: 'Red', code: '#FF0000' },37
{ name: 'Blue', code: '#0000FF' },38
{ name: 'Yellow', code: '#FFFF00' }39
]40
};
1
import { uuid } from './util.js';3
export default {4
init: function(app) {5
this.app = app;6
},7
bind: function(element, args) {8
if(typeof args === 'object') {9
for(let entry of Object.entries(args)) {10
let [ key, value ] = entry;11
if(typeof this[key] === 'function' || typeof this.app.state.action[key] === 'object') {12
this.bindType(element, key, value);13
}14
}15
}16
},17
action: function(action, type, func, args) {18
action.element.addEventListener(type, function(event) {19
if(action.before) {20
action.before();21
}22
func(event);23
if(action.after) {24
action.after();25
}26
}, args);27
},28
bindType: function(element, key, value) {29
let that = this;30
if(typeof value === 'string') {31
if(Array.isArray(element)) {32
for(let item of element) {33
item.addEventListener(value, function(event) {34
if(that[key]) {35
that[key](event);36
}37
if(that.app.state.action[key]) {38
that.app.state.action[key].trigger();39
}40
});41
}42
}43
else {44
element.addEventListener(value, function(event) {45
if(that[key]) {46
that[key](event);47
}48
if(that.app.state.action[key]) {49
that.app.state.action[key].trigger();50
}51
});52
}53
}54
if(typeof value === 'object') {55
if(Array.isArray(value)) {56
for(let item of value) {57
this.bindType(element, key, item);58
}59
}60
else {61
let { type } = value;62
if(typeof type === 'string') {63
delete value.type;64
if(Array.isArray(element)) {65
for(let item of element) {66
item.addEventListener(type, function(event) {67
if(that[key]) {68
that[key](event);69
}70
if(that.app.state.action[key]) {71
that.app.state.action[key].trigger();72
}73
}, value);74
}75
}76
else {77
element.addEventListener(type, function(event) {78
if(that[key]) {79
that[key](event);80
}81
if(that.app.state.action[key]) {82
that.app.state.action[key].trigger();83
}84
}, value);85
}86
}87
}88
}89
},90
prevent: function(event) {91
event.preventDefault();92
},93
begin: function(event) {94
this.app.state.dragging = true;95
let state = this.state(event);96
this.app.socket.data(state);97
this.app.paint.draw(state);98
this.app.state.last = state.pos;99
this.app.node.toolbar.style.pointerEvents = 'none';100
},101
drag: function(event) {102
let state = this.state(event);103
if(this.app.state.dragging && document.hasFocus()) {104
this.app.socket.data(state);105
this.app.paint.draw(state);106
this.app.state.last = state.pos;107
if(event.type === 'touchmove') {108
this.prevent(event);109
}110
}111
},112
end: function(event) {113
this.state(event);114
this.app.state.dragging = false;115
this.app.state.last = null;116
this.app.node.toolbar.style.pointerEvents = '';117
},118
move: function(event) {119
this.app.state.cursor = event.target === this.app.node.canvas ? this.app.state.pos : null;120
},121
out: function(event) {122
this.app.state.cursor = null;123
},124
scroll: function(event) {125
if(event.ctrlKey) {126
event.preventDefault();127
return;128
}129
if(!this.app.modal.opened) {130
if(event.deltaY < 0) {131
this.app.state.radius += this.app.state.radius < 15 ? 1 : 0;132
}133
else {134
this.app.state.radius -= this.app.state.radius > 1 ? 1 : 0;135
}136
}137
},138
key: function(event) {139
if(!this.app.state.opened) {140
if(!event.getModifierState("CapsLock")) {141
let index;142
if(event.code.startsWith('Digit')) {143
index = parseInt(event.code.substr(5));144
}145
if(event.code.startsWith('Numpad')) {146
index = parseInt(event.code.substr(6));147
}148
if(Number.isInteger(index) && index < 7 && index > 0) {149
index--;150
for(let i in this.app.node.bucket) {151
let item = this.app.node.bucket[i];152
if(index === parseInt(i)) {153
item.classList.add('active');154
this.app.state.color = item.dataset.color;155
}156
else {157
item.classList.remove('active');158
}159
}160
}161
if(event.code === 'KeyC') {162
for(let item of this.app.node.color) {163
item.classList[this.app.state.color === item.dataset.color ? 'add' : 'remove']('active');164
}165
this.app.modal.open('color');166
}167
if(event.code === 'KeyV') {168
this.app.modal.open('scaling');169
}170
if(event.code === 'KeyT') {171
this.app.modal.open('clear');172
}173
if(event.code === 'KeyS') {174
this.app.modal.get('save').element.querySelector('input.action-file').value = 'outline-image-' + uuid();175
let input = this.app.modal.get('save').element.querySelector('.modal input.action-file');176
input.classList.remove('invalid');177
this.app.modal.open('save');178
}179
}180
}181
else if(this.app.state.current && this.app.state.current.action.cancel) {182
if(event.keyCode === 27) {183
this.app.modal.close();184
}185
}186
},187
button: function(event) {188
for(let item of this.app.node.bucket) {189
if(item === event.target) {190
item.classList.add('active');191
this.app.state.color = item.dataset.color;192
}193
else {194
item.classList.remove('active');195
}196
}197
},198
resize: function(event) {199
if(typeof event !== 'undefined') {200
let that = this;201
clearTimeout(this.app.state.delay);202
this.app.state.delay = setTimeout(function() {203
that.delayResize();204
}, 100);205
}206
else {207
this.delayResize();208
}209
},210
delayResize: function(event) {211
this.app.node.canvas.width = window.innerWidth;212
this.app.node.canvas.height = window.innerHeight;213
let cache = this.app.paint.o.getImageData(0, 0, this.app.node.overlay.width, this.app.node.overlay.height);214
this.app.node.overlay.width = window.innerWidth;215
this.app.node.overlay.height = window.innerHeight;216
this.app.paint.o.putImageData(cache, 0, 0);217
this.app.socket.request();218
},219
state: function(event) {220
let pos = null;221
if(event.type === 'mousemove' || event.type === 'mousedown') {222
pos = {223
x: event.layerX,224
y: event.layerY225
};226
}227
if(event.type === 'touchmove' || event.type === 'touchstart') {228
pos = {229
x: event.touches[0].pageX,230
y: event.touches[0].pageY231
};232
}233
return Object.assign(this.app.state, { pos: pos });234
}235
}
1
export default {2
init: function(app) {3
this.app = app;4
let that = this;5
for(let item of this.app.node.modal) {6
let name = item.dataset.modal;7
let modal = { element: item, action: {}, type: name };8
let cancel = item.querySelector('button.action-cancel');9
if(cancel) {10
modal.action.cancel = { element: cancel };11
cancel.addEventListener('click', function(event) {12
that.close();13
});14
}15
this.app.state.modal[name] = modal;16
for(let item of modal.element.querySelectorAll('[class*="action-"]')) {17
let name = item.classList[0].substr(7);18
if(name !== 'cancel') {19
modal.action[name] = { element: item };20
}21
}22
}23
this.app.state.current = this.get('join');24
for(let item of this.app.node.action) {25
let name = item.dataset.action;26
if(this.app.state.modal[name]) {27
let modal = this.app.state.modal[name];28
modal.action.open = {};29
item.addEventListener('click', function(event) {30
if(typeof modal.action.open.before === 'function') {31
modal.action.open.before(modal);32
}33
that.open(name);34
if(typeof modal.action.open.after === 'function') {35
modal.action.open.after(modal);36
}37
});38
}39
}40
},41
open: function(name) {42
if(this.app.state.modal[name]) {43
this.app.node.spinner.classList.add('hidden');44
for(let item of Object.values(this.app.state.modal)) {45
item.element.classList.add('hidden');46
}47
this.app.state.modal[name].element.classList.remove('hidden');48
this.app.node.wrapper.classList.remove('hidden');49
this.app.state.opened = true;50
this.app.state.current = this.app.state.modal[name];51
}52
},53
load: function() {54
this.app.node.wrapper.classList.remove('hidden');55
for(let item of Object.values(this.app.state.modal)) {56
item.element.classList.add('hidden');57
}58
this.app.node.spinner.classList.remove('hidden');59
this.app.state.opened = true;60
this.app.state.current = undefined;61
},62
close: function() {63
this.app.node.wrapper.classList.add('hidden');64
this.app.node.spinner.classList.add('hidden');65
for(let item of Object.values(this.app.state.modal)) {66
item.element.classList.add('hidden');67
}68
this.app.state.opened = false;69
this.app.state.current = undefined;70
},71
get: function(name) {72
if(this.app.state.modal[name]) {73
return this.app.state.modal[name];74
}75
}76
};
1
function define(args) {2
let node = {};3
if(typeof args === 'object') {4
for(let entry of Object.entries(args)) {5
let [ key, value ] = entry;6
if(typeof value === 'string') {7
node[key] = document.querySelector(value);8
}9
if(typeof value === 'object') {10
let { query, all = false, parent = document } = value;11
if(typeof query === 'string') {12
if(typeof parent === 'string') {13
parent = document.querySelector(parent);14
}15
node[key] = all ?16
Array.from(parent.querySelectorAll(query))17
: parent.querySelector(query);18
}19
}20
}21
return node;22
}23
}25
function html(func) {26
return {27
build: function(args) {28
let template = document.createElement('template');29
template.innerHTML = func(args);30
let fragment = template.content.cloneNode(true);31
return {32
element: fragment.firstElementChild,33
render: function(parent) {34
parent.appendChild(fragment);35
}36
};37
}38
};39
}41
export { define, html };
1
import { luma } from './util.js';3
export default {4
init: function(app) {5
this.app = app;6
this.g = this.app.node.canvas.getContext('2d');7
this.o = this.app.node.overlay.getContext('2d');8
},9
draw: function(args) {10
let { pos, last, radius, color } = args || {};11
if(pos) {12
if(last) {13
let delta = {14
x: last.x - pos.x,15
y: last.y - pos.y16
};17
let dist = Math.sqrt(Math.pow(delta.x, 2) + Math.pow(delta.y, 2));18
let length = dist / (radius / 2);19
for(let i = 0; i < length; i++) {20
let x = pos.x + (delta.x / length * i);21
let y = pos.y + (delta.y / length * i);22
this.g.fillStyle = color;23
this.g.beginPath();24
this.g.arc(x, y, 2 * radius, 0, 2 * Math.PI);25
this.g.fill();26
this.g.fillStyle = 'black';27
}28
}29
else {30
this.g.fillStyle = color;31
this.g.beginPath();32
this.g.arc(pos.x, pos.y, 2 * radius, 0, 2 * Math.PI);33
this.g.fill();34
this.g.fillStyle = 'black';35
}36
}37
},38
roundRect: function(x, y, w, h, r) {39
if(w < 2 * r) r = w / 2;40
if(h < 2 * r) r = h / 2;41
this.o.beginPath();42
this.o.moveTo(x + r, y);43
this.o.arcTo(x + w, y, x + w, y + h, r);44
this.o.arcTo(x + w, y + h, x, y + h, r);45
this.o.arcTo(x, y + h, x, y, r);46
this.o.arcTo(x, y, x + w, y, r);47
},48
cursor: function(state) {49
if(state.cursor) {50
this.o.fillStyle = state.color;51
this.o.lineWidth = 4;52
this.o.beginPath();53
this.o.arc(state.cursor.x, state.cursor.y, 2 * state.radius, 0, 2 * Math.PI);54
this.o.strokeStyle = luma(state.color) ? 'black' : 'white';55
this.o.stroke();56
this.o.beginPath();57
this.o.arc(state.cursor.x, state.cursor.y, 2 * state.radius, 0, 2 * Math.PI);58
this.o.fill();59
if(this.app.state !== state) {60
this.o.fillStyle = '#212121';61
this.o.font = '14px Roboto';62
this.o.textBaseline = 'top';63
this.o.textAlign = 'left';64
let text = this.o.measureText(state.name);65
this.roundRect(state.cursor.x, state.cursor.y, text.width + 12, 22, 4);66
this.o.fill();67
this.o.fillStyle = 'white';68
this.o.fillText(state.name, state.cursor.x + 6, state.cursor.y + 5);69
}70
}71
}72
};
1
export default {2
socket: null,3
connected: false,4
timeout: false,5
init: function(app) {6
this.app = app;7
},8
connect: function() {9
let that = this;10
this.socket = io('https://server.typable.dev', {11
path: '/pipe',12
reconnection: false13
});14
this.socket.on('connect', function() {15
that.connected = true;16
that.timeout = false;17
that.request();18
that.cursor();19
});20
this.socket.on('disconnect', function() {21
that.connected = false;22
that.timeout = true;23
that.app.modal.open('error');24
that.app.state.client = [];25
});26
this.socket.on('connect_error', function() {27
that.connected = false;28
that.timeout = true;29
that.app.modal.open('error');30
that.app.state.client = [];31
});32
this.socket.on('load', function(data) {33
let buffer = new Uint8Array(data);34
let image = that.app.paint.g.getImageData(0, 0, that.app.node.canvas.width, that.app.node.canvas.height);35
let array = image.data;36
for(let i = 0; i < buffer.length / 4; i++) {37
let p = i * 4;38
let data = buffer.slice(i * 4, i * 4 + 4);39
if(data[3] === 0) {40
data = [255, 255, 255, 255];41
}42
array[p] = data[0];43
array[p + 1] = data[1];44
array[p + 2] = data[2];45
array[p + 3] = data[3];46
}47
that.app.paint.g.putImageData(image, 0, 0);48
if(!that.app.state.current) {49
that.app.modal.close();50
}51
});52
this.socket.on('data', function(data) {53
that.app.paint.draw(data);54
});55
this.socket.on('clear', function(data) {56
that.app.paint.g.fillStyle = 'white';57
that.app.paint.g.fillRect(0, 0, window.innerWidth, window.innerHeight);58
});59
this.socket.on('background', function(data) {60
that.app.paint.g.fillStyle = data;61
that.app.paint.g.fillRect(0, 0, window.innerWidth, window.innerHeight);62
that.app.paint.g.fillStyle = 'black';63
});64
this.socket.on('cursor', function(data) {65
if(data.quit) {66
delete that.app.state.client[data.uuid];67
}68
else {69
that.app.state.client[data.uuid] = data;70
}71
});72
},73
reconnect: function() {74
this.socket.open();75
this.timeout = false;76
},77
send: function(key, data) {78
if(this.socket) {79
this.socket.emit(key, data);80
}81
},82
data: function({ pos, last }) {83
this.send('data', {84
pos: pos,85
last: last,86
radius: this.app.state.radius,87
color: this.app.state.color88
});89
},90
cursor: function() {91
this.send('cursor', {92
cursor: this.app.state.cursor,93
color: this.app.state.color,94
radius: this.app.state.radius,95
name: this.app.state.name,96
uuid: this.app.state.uuid97
});98
},99
request: function() {100
if(this.app.socket.connected) {101
if(!this.app.state.current) {102
this.app.modal.load();103
}104
}105
this.send('request', {106
x: 0,107
y: 0,108
width: window.innerWidth,109
height: window.innerHeight110
});111
},112
clear: function() {113
this.send('clear');114
}115
}
1
function uuid() {2
return 'xxxxxxxxxxxxxxxx'.replace(/[xy]/g, function(c) {3
let r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);4
return v.toString(16);5
});6
}8
function luma(color) {9
color = color.substr(1);10
let r = parseInt(color.substr(0, 2), 16);11
let g = parseInt(color.substr(2, 4), 16);12
let b = parseInt(color.substr(4, 6), 16);13
return ((r * 0.299) + (g * 0.587) + (b * 0.114)) > 50;14
}16
function download(file, data) {17
let link = document.createElement('a');18
link.classList.add('hidden');19
link.download = file;20
link.href = data;21
document.body.appendChild(link);22
link.click();23
}25
function switchTheme(item, that, isChanged) {26
if(isChanged) {27
that.state.dark = !that.state.dark;28
}29
item.querySelector('.ico').textContent = that.state.dark ? 'wb_sunny' : 'brightness_2';30
item.dataset.title = that.state.dark ? 'Light Theme' : 'Dark Theme';31
for(let modal of that.node.modal) {32
modal.classList[that.state.dark ? 'add' : 'remove']('theme-dark');33
}34
that.node.spinner.classList[that.state.dark ? 'add' : 'remove']('theme-dark');35
if(typeof localStorage !== 'undefined') {36
localStorage.setItem('outline.theme.dark', that.state.dark);37
}38
}40
function isMobile() {41
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent.toLowerCase());42
}44
export { uuid, luma, download, switchTheme, isMobile };
1
canvas.canvas {2
position: relative;3
z-index: 1;4
cursor: none;5
touch-action: none;1
* {2
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);3
}8
canvas.overlay {9
pointer-events: none;10
user-select: none;11
position: absolute;12
top: 0;13
left: 0;14
right: 0;15
bottom: 0;16
z-index: 99;5
html,6
body {7
overflow: hidden;8
}19
.wrapper {20
width: 100vw;21
height: 100vh;10
#canvas,11
#overlay,12
.controls {13
position: fixed;14
top: 0;15
left: 0;16
right: 0;17
bottom: 0;27
display: flex;28
justify-content: center;29
align-items: center;30
background: rgba(0, 0, 0, 0.2);31
z-index: 9999;32
user-select: none;34
& > .info {35
position: fixed;36
right: 30px;37
bottom: 30px;38
display: flex;40
ul.info-list {41
display: flex;42
list-style-type: none;44
li.info-item {45
color: @color-dark;46
margin-left: 15px;47
user-select: none;48
font-weight: 500;50
a {51
user-select: none;52
color: @color-blue;53
text-decoration: none;55
&.subtle {56
color: @color-grey;57
}18
}59
&:hover {60
text-decoration: underline;61
}62
}63
}64
}65
}20
#overlay {21
pointer-events: none;22
}68
.spinner {69
width: 80px;70
height: 80px;71
border-radius: 40px;72
border: 10px solid rgba(255,255,255,0.2);73
border-top: 10px solid white;74
animation: spin 2s linear infinite;76
&.theme-dark {77
border: 10px solid rgba(0,0,0,0.2);78
border-top: 10px solid @color-black;79
}24
.prime-badge {25
display: inline-block;26
margin-top: -1px;27
margin-left: 5px;28
padding: 2px 4px;29
background: #0372EF;30
border-radius: 2px;31
font-weight: 500;32
font-size: 12px;33
color: white !important;34
}82
@keyframes spin {83
0% { transform: rotate(0deg); }84
100% { transform: rotate(360deg); }36
.beta-badge {37
display: inline-block;38
margin-top: -1px;39
margin-left: 5px;40
padding: 2px 4px;41
background: #388E3C;42
border-radius: 2px;43
font-weight: 500;44
font-size: 12px;45
color: white !important;46
}87
.modal {88
background: white;89
width: 400px;90
border-radius: 6px;91
padding: 20px;92
margin: 20px;93
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.03);48
.controls {49
pointer-events: none;95
&.modal-error {96
width: 300px;51
.notification {52
top: 30px;53
position: fixed;54
display: flex;55
justify-content: center;56
width: 100%;57
opacity: 0;98
.align {99
justify-content: flex-end;59
p {60
display: inline-block;61
padding: 10px 24px;62
border-radius: 999px;63
background: #24292E;64
color: white;65
opacity: 0.95;66
user-select: none;67
pointer-events: none;68
}69
}103
&.theme-dark {104
background: @color-dark;105
color: white;71
.ad {72
position: fixed;73
width: 400px;74
height: 150px;75
border-radius: 4px;76
background: #EEE;77
bottom: 40px;78
right: 40px;79
pointer-events: all;80
}107
button.action-cancel {108
background: lighten(@color-dark, 5%);109
color: white;82
.hotbar {83
display: flex;84
position: fixed;85
left: calc(50% - 216px);86
bottom: 30px;87
pointer-events: all;88
z-index: -1;90
.color {91
margin: 6px;92
width: 60px;93
height: 60px;94
border-radius: 30px;95
background: #EEE;96
cursor: pointer;97
transition: transform 0.2s;98
transform: scale(0.9);111
&:hover {112
background: lighten(@color-dark, 2%);100
&:not(.active):hover {101
transform: scale(1);102
}114
}116
input[type="text"] {117
background: @color-black;118
color: white;120
&:hover {121
background: lighten(@color-black, -2%);104
&.focus {105
transform: scale(1);106
}124
&:focus {125
background: lighten(@color-black, -2%);108
&.active {109
transform: scale(1.1);110
}111
}112
}129
.separator {130
border-color: lighten(@color-dark, 5%);131
}114
.toolbar {115
top: 20px;116
left: 20px;117
}133
input[type="range"] {134
background: lighten(@color-black, 2%);119
.actionbar {120
top: 20px;121
right: 20px;122
}124
.actionbar,125
.toolbar {126
display: flex;127
position: fixed;128
pointer-events: all;130
.action,131
.tool {132
width: 44px;133
height: 44px;134
padding: 10px;135
margin-left: 8px;136
border-radius: 22px;137
cursor: pointer;139
&:hover {137
background: @color-black;140
background: rgba(#FAFAFA, 0.95);142
&.ripple {144
&:not(.active).ripple-active {145
background: lighten(rgba(#FAFAFA, 0.95), -2%);146
}139
&::-webkit-slider-thumb {140
background: lighten(@color-dark, 2%);148
&.active.ripple-active {149
background: lighten(rgba(#EEEEEE, 0.95), -2%);150
}151
}152
}144
&::-webkit-slider-thumb {145
background: lighten(@color-dark, 5%);154
&.active {155
background: rgba(#EEEEEE, 0.95);156
}147
}149
.preview {150
background: lighten(@color-black, 2%);151
}153
ul.avatar-list {155
li.avatar {156
border-color: @color-dark;157
background: lighten(@color-black, 1%);159
&:hover {160
border-color: lighten(@color-black, 3.5%);161
}158
i.ico {159
color: #424242;160
}161
}162
}163
}165
&.modal-color {165
.multiplayer-modal {166
top: 75px;167
right: 120px;168
}167
&:before {168
background: linear-gradient(@color-dark, transparent);169
}170
.account-modal {171
top: 75px;172
right: 70px;173
}171
&:after {172
background: linear-gradient(transparent, @color-dark);173
}175
.settings-modal {176
top: 75px;177
right: 20px;178
}175
.bucket-list {180
.device-modal {181
top: 100px;182
right: 320px;183
}177
&::-webkit-scrollbar-thumb {178
background: lighten(@color-black, 2%);185
.language-modal {186
top: 100px;187
right: 860px;188
}180
&:hover {181
background: @color-black;182
}183
}184
}185
}186
}190
.settings-modal {191
top: 75px;192
right: 20px;193
}188
input.action-uuid,189
input.action-file {190
padding: 12px 14px;191
width: 100%;192
border: none;193
background: #FAFAFA;194
border-radius: 3px;195
font-size: 16px;196
user-select: none;197
margin-bottom: 3px;195
.colors-modal {196
flex-wrap: wrap;197
width: 425px;198
max-width: 425px;199
min-width: 425px;200
height: 860px;201
padding: 30px !important;202
top: calc(50% - 430px);203
left: calc(50% - 212.5px);205
.color {206
margin: 6px;207
width: 60px;208
height: 60px;209
border-radius: 30px;210
background: #EEE;211
cursor: pointer;212
transition: transform 0.2s;213
transform: scale(0.9);199
&:hover {200
background: #F8F8F8;215
&:not(.active):hover {216
transform: scale(1);217
}203
&:focus {204
background: #F5F5F5;219
&.active {220
transform: scale(1.1);221
}207
&.invalid {208
border-bottom: 3px solid #FF4A4A;209
border-radius: 3px 3px 0 0;210
margin-bottom: 0;223
&.focus {224
transform: scale(1);225
}226
}227
}214
.separator {215
border-top: 1px solid #F5F5F5;216
margin: 20px 0;217
}219
.align {220
display: flex;221
justify-content: space-between;222
align-items: center;223
}230
.modal {231
width: 250px;232
position: fixed;233
background: white;234
border: 1px solid #F1F1F1;235
border-radius: 4px;236
padding: 6px 0;237
pointer-events: all;238
overflow: hidden;239
z-index: -1;240
display: flex;225
p {226
font-size: 18px;227
letter-spacing: 0.2px;228
padding-top: 5px;229
margin-bottom: 25px;242
.main {243
width: 248px;244
min-width: 248px;7245
max-width: 248px;246
}232
button {233
padding: 12px 14px;234
border: none;235
background: #F8F9FA;236
border-radius: 3px;237
font-size: 16px;238
cursor: pointer;239
user-select: none;240
transition: background 0.1s;241
color: #212121;248
ul.tab-list {249
width: 248px;250
min-width: 248px;251
max-width: 248px;252
}243
&:hover {244
background: lighten(#F8F9FA, -5%);245
}254
.header {255
display: flex;256
margin-bottom: 3px;247
&.success {248
background: #28A745;249
color: white;258
.back {259
margin: 10px;260
margin-top: 15px;261
margin-right: 3px;262
width: 36px;263
height: 36px;264
border-radius: 18px;265
padding: 6px;266
padding-left: 5px;267
cursor: pointer;251
&:hover {252
background: lighten(#28A745, -5%);269
i.ico {270
color: #424242;271
}254
}256
&.danger {257
background: #DC3545;258
color: white;273
&:hover {261
background: lighten(#DC3545, -5%);274
background: #FAFAFA;275
}263
}265
&.info {266
background: #007BFF;267
color: white;277
&.ripple {269
&:hover {270
background: lighten(#007BFF, -5%);279
&.ripple-active {280
background: lighten(#FAFAFA, -2%);281
}282
}283
}273
}275
button.action-join {276
width: 100%;277
}279
button.action-cancel {280
width: calc(50% - 10px);281
}283
button.action-save,284
button.action-clear,285
button.action-background,286
button.action-scaling,287
button.action-color,288
button.action-default {289
width: calc(50% - 10px);290
}292
ul.avatar-list {293
display: flex;294
flex-wrap: wrap;295
width: 100%;296
list-style-type: none;285
.info {286
display: flex;287
flex-direction: column;288
margin-top: 15px;298
li.avatar {299
background: #EEE;300
border-radius: 9999px;301
border: 5px solid white;302
margin: 10px;303
width: 70px;304
height: 70px;305
cursor: pointer;306
transition: border-color 0.1s;290
p {291
display: flex;292
align-items: center;293
font-weight: 500;294
color: #616161;295
user-select: none;296
pointer-events: none;297
}308
&:hover {309
border: 5px solid #F8F8F8;299
span {300
display: block;301
margin-top: 3px;302
font-size: 12px;303
color: #9E9E9E;304
user-select: none;305
pointer-events: none;306
}307
}308
}314
input.action-range {315
width: calc(100% - 80px);316
-webkit-appearance: none;317
background: #F8F8F8;318
height: 6px;310
ul.item-list {320
&:hover {321
background: #F5F5F5;312
li.caption {313
padding: 2px 15px;314
padding-top: 12px;315
list-style: none;323
&::-webkit-slider-thumb {324
background: lighten(#888888, -20%);317
p {318
color: #9E9E9E;319
user-select: none;320
pointer-events: none;321
}322
}328
&::-webkit-slider-thumb {329
-webkit-appearance: none;330
background: #888888;331
width: 20px;332
height: 20px;333
border-radius: 9999px;334
border: none;324
li.item {325
display: flex;326
align-items: center;327
padding: 15px;328
cursor: pointer;336
transition: background 0.1s;337
}339
&::-webkit-slider-runnable-track {340
-webkit-appearance: none;341
}342
}344
.preview {345
width: 60px;346
height: 60px;347
background: #F5F5F5;348
border-radius: 9999px;349
display: flex;350
justify-content: center;351
align-items: center;353
.circle {354
width: 12px;355
height: 12px;356
background: #212121;357
border-radius: 9999px;358
}359
}361
&.modal-color {362
width: 420px;363
position: relative;365
&:before {366
content: '';367
display: block;368
position: absolute;369
top: 20px;370
left: 20px;371
right: 26px;372
height: 10px;373
background: linear-gradient(white, transparent);374
z-index: 9;375
}330
&.empty {377
&:after {378
content: '';379
display: block;380
position: absolute;381
bottom: 82px;382
left: 20px;383
right: 26px;384
height: 10px;385
background: linear-gradient(transparent, white);386
z-index: 9;387
}332
p {333
display: block;334
width: 100%;335
color: #9E9E9E;336
text-align: center;337
user-select: none;338
pointer-events: none;339
}340
}389
.bucket-list {390
display: flex;391
justify-content: center;392
max-height: 400px;393
overflow-x: hidden;394
overflow-y: auto;395
padding-top: 10px;396
padding-bottom: 10px;397
margin-bottom: 20px;399
&::-webkit-scrollbar {400
width: 6px;401
}403
&::-webkit-scrollbar-thumb {404
width: 6px;405
background: #EEE;407
&:hover {408
background: #CACACA;409
}410
}411
}413
.align {414
width: 100%;415
justify-content: flex-end;416
}417
}419
.bucket-list {420
display: flex;421
flex-wrap: wrap;422
width: 100%;423
list-style-type: none;425
.bucket {426
background: #EEE;427
border-radius: 9999px;428
margin: 5px;429
width: 60px;430
height: 60px;431
cursor: pointer;432
transition: transform 0.2s;433
box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);342
&:not(.active):not(.inactive) {435
transform: scale(0.9);436
user-select: none;344
&:hover {345
background: #FAFAFA;346
}438
&:hover {439
transition: transform 0.2s;440
transform: scale(1);348
&.ripple {350
&.ripple-active {351
background: lighten(#FAFAFA, -2%);352
}353
}354
}443
&.active {444
transform: scale(1);445
border: 3px solid #212121;356
i.ico {357
color: #424242;358
user-select: none;359
pointer-events: none;360
}448
&::after {449
position: absolute;450
bottom: -20%;362
i.lang {363
display: flex;364
justify-content: center;365
align-items: center;366
font-style: normal;367
font-weight: 600;368
width: 24px;369
height: 24px;370
color: #424242;371
user-select: none;372
pointer-events: none;373
}452
}453
}454
}456
.toolbar {457
position: fixed;458
left: calc(50% - 210px);459
bottom: 30px;460
display: flex;461
z-index: 999;463
.bucket {464
width: 56px;465
height: 56px;466
border-radius: 9999px;467
background: #CCC;468
margin: 7px;469
transition: transform 0.2s;470
box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);471
cursor: pointer;472
transform: scale(0.9);473
user-select: none;375
.info {376
display: flex;377
flex-direction: column;378
margin-left: 10px;379
max-width: calc(100% - 24px - 10px);381
p {382
display: flex;383
align-items: center;384
font-weight: 500;385
color: #616161;386
user-select: none;387
pointer-events: none;388
}475
&:hover {476
transition: transform 0.2s;477
transform: scale(1);478
}390
span {391
display: block;392
margin-top: 3px;393
font-size: 12px;394
color: #9E9E9E;395
user-select: none;396
pointer-events: none;397
white-space: nowrap;398
overflow: hidden;399
text-overflow: ellipsis;400
}401
}480
&.active {481
transform: scale(1.1);482
}483
}484
}403
&.active {404
background: #EEEEEE;486
.infobar {487
position: fixed;488
top: 30px;489
right: 30px;490
display: flex;491
}406
&.ripple {493
.actions {494
position: fixed;495
top: 30px;496
left: 30px;497
display: flex;498
}408
&.ripple-active {409
background: lighten(#EEEEEE, -2%);410
}411
}412
}500
.action {501
user-select: none;502
position: relative;503
width: 46px;504
height: 46px;505
border: none;506
border-radius: 9999px;507
background: transparent;508
cursor: pointer;509
outline: none;510
position: fixed;511
margin-right: 8px;414
&.inactive {513
i {514
color: #212121;515
user-select: none;516
pointer-events: none;517
}416
i.ico {417
color: #9E9E9E;418
}519
&:hover {520
background: #ECECEC;521
}420
.info {523
&::after {524
bottom: -60%;422
p {423
color: #9E9E9E;424
}425
}426
}427
}428
}429
}
437
&:hover {439
&::before {537
opacity: 1;440
opacity: 0.95;441
transition-delay: 0.6s;442
}444
&::after {542
opacity: 1;445
opacity: 0.95;446
transition-delay: 0.6s;447
}448
}
454
justify-content: center;455
align-items: center;456
position: absolute;554
background: #212121;457
background: #24292E;458
color: white;459
min-height: 24px;557
padding: 0 10px;558
border-radius: 4px;460
padding: 0 12px;461
border-radius: 999px;462
font-size: 12px;463
top: auto;464
bottom: -70%;
474
bottom: auto;475
border-left: 6px solid transparent;476
border-right: 6px solid transparent;574
border-top: 6px solid #212121;477
border-top: 6px solid #24292E;478
border-bottom: none;479
}
492
border-left: 6px solid transparent;493
border-right: 6px solid transparent;494
border-top: none;592
border-bottom: 6px solid #212121;495
border-bottom: 6px solid #24292E;496
}498
&::after {
1
@import (less) '../css/lib/google-fonts.min.css';1
@import (less) 'variable.less';3
@import (less) 'theme.less';5
@import 'index.less';3
@import (less) 'index.less';
1
@color-dark: #333C41;2
@color-black: #272F34;3
@color-dark-grey: #555555;4
@color-grey: #777777;5
@color-blue: #007BFF;
23
html {24
position: relative;25
overflow: hidden;25
overflow-x: hidden;26
min-height: 100vh;27
}
46
cursor: pointer;47
}49
.gutter(@unit, @width) {51
[class*="col"],52
.col-auto,53
.container,54
.container-fluid {55
padding-left: @unit;56
padding-right: @unit;57
}59
.col-auto-out {60
margin-left: @unit;61
margin-right: @unit;62
}64
.row {65
display: flex;66
margin-left: -@unit;67
margin-right: -@unit;68
}70
.container {71
max-width: @width;72
margin-left: auto;73
margin-right: auto;74
}75
}49
.hidden {50
display: none !important;51
}53
.ico {54
font-family: 'Material Icons';55
font-weight: normal;56
font-style: normal;57
font-size: 24px;58
display: inline-block;59
line-height: 1;60
text-transform: none;61
letter-spacing: normal;62
word-wrap: normal;63
white-space: nowrap;64
direction: ltr;65
-webkit-font-smoothing: antialiased;66
text-rendering: optimizeLegibility;67
-moz-osx-font-smoothing: grayscale;68
font-feature-settings: 'liga';69
user-select: none;70
pointer-events: none;71
}